{"version":3,"file":"chunk.9053.fc22a5bfeeb5f53b.js","mappings":"+JASA,MAAMA,EACLC,WAAAA,CAAYC,GACXC,KAAKD,GAAKA,EACVC,KAAKD,GAAGE,iBAAiB,SAAUD,KAAKE,QAAQC,KAAKH,OACrDI,EAAAA,EAA0BC,IAAIL,KAAKD,GACpC,CAEAG,OAAAA,GACC,MAAM,GAAEH,GAAOC,KACfM,EAAAA,GAAKC,OACJR,EACAS,EAAAA,GACAC,EAAAA,GACAC,EAAAA,GAEF,EAGD,MAAMC,GAAWC,EAAAA,EAAAA,IAAI,mBACrB,IAAID,GAAUE,SAAQd,GAAM,IAAIF,EAASE,I,0ECvBzC,MAAMe,EACLhB,WAAAA,CAAYC,GACXC,KAAKD,GAAKA,EACVC,KAAKe,cACLX,EAAAA,EAA0BC,IAAIN,EAC/B,CAEAgB,WAAAA,GACCf,KAAKD,GAAGE,iBAAiB,SAAUD,KAAKE,QAAQC,KAAKH,MACtD,CAEAE,OAAAA,GACC,MAAMc,EAAQhB,KAAKD,GAAGkB,cAAc,OAC9BC,EAAUlB,KAAKD,GAAGkB,cAAc,YAChCE,EAAUnB,KAAKD,GAAGkB,cAAc,kBACtC,IAAIG,EAAKd,EAAAA,GAAKe,WACdD,GAAKE,EAAAA,EAAAA,GAAuB,CAAEH,UAASH,QAAOE,WAAWE,EAAI,IAAI,EAClE,EAID,eACA,KAAIR,EAAAA,EAAAA,IAAI,uBAAuBW,KAAIxB,GAAM,IAAIe,EAAWf,I","sources":["webpack://tombras/./js/components/Heading.js","webpack://tombras/./js/components/MediaImage.js"],"sourcesContent":["import gsap from \"gsap\";\nimport {\n\tDEFAULT_TIME,\n\tSIMPLE_ANIMATION_START,\n\tSIMPLE_ANIMATION_FINISH,\n} from \"../animations/config\";\nimport { qsa } from \"../utils\";\nimport { componentAnimationHandler } from \"../animations/AnimationHandler\";\n\nclass Headings {\n\tconstructor(el) {\n\t\tthis.el = el;\n\t\tthis.el.addEventListener(\"inview\", this.animate.bind(this));\n\t\tcomponentAnimationHandler.add(this.el);\n\t}\n\n\tanimate() {\n\t\tconst { el } = this;\n\t\tgsap.fromTo(\n\t\t\tel,\n\t\t\tDEFAULT_TIME,\n\t\t\tSIMPLE_ANIMATION_START,\n\t\t\tSIMPLE_ANIMATION_FINISH,\n\t\t);\n\t}\n}\n\nconst headings = qsa(\".block-headings\");\n[...headings].forEach(el => new Headings(el));\n","import { componentAnimationHandler } from \"../animations/AnimationHandler\";\nimport { qsa } from \"../utils\";\nimport gsap from \"gsap\";\nimport { tweenImagesWithOverlay } from \"../animations\";\n\nclass MediaImage {\n\tconstructor(el) {\n\t\tthis.el = el;\n\t\tthis.setupEvents();\n\t\tcomponentAnimationHandler.add(el);\n\t}\n\n\tsetupEvents() {\n\t\tthis.el.addEventListener(\"inview\", this.animate.bind(this));\n\t}\n\n\tanimate() {\n\t\tconst image = this.el.querySelector(\"img\");\n\t\tconst caption = this.el.querySelector(\".caption\");\n\t\tconst overlay = this.el.querySelector(\".hider-overlay\");\n\t\tlet tl = gsap.timeline();\n\t\ttl = tweenImagesWithOverlay({ overlay, image, caption }, tl, \"\", true);\n\t}\n}\n\n\nexport default MediaImage;\n[...qsa(\".media-image-block\")].map(el => new MediaImage(el));\n"],"names":["Headings","constructor","el","this","addEventListener","animate","bind","componentAnimationHandler","add","gsap","fromTo","DEFAULT_TIME","SIMPLE_ANIMATION_START","SIMPLE_ANIMATION_FINISH","headings","qsa","forEach","MediaImage","setupEvents","image","querySelector","caption","overlay","tl","timeline","tweenImagesWithOverlay","map"],"sourceRoot":""}