{"version":3,"file":"chunk.6274.4ceecde28bafdeb9.js","mappings":"0KAKAA,EAAAA,GAAKC,eAAeC,EAAAA,EAAWC,EAAAA,IAE/B,MAAMC,EACLC,WAAAA,GACCC,KAAKC,KAAMC,EAAAA,EAAAA,IAAG,kDACdF,KAAKG,SACN,CAEAA,OAAAA,GACC,MAAMC,GAAgBF,EAAAA,EAAAA,IAAG,oBACnBG,GAAoBH,EAAAA,EAAAA,IAAG,yBAEtBI,GAAeV,EAAAA,EAAUW,OAAOP,KAAKC,IAAK,CAChDO,KAAM,WACNC,SAAS,IAEVT,KAAKU,UAAYJ,EACjB,MAAMK,EAAKjB,EAAAA,GAAKkB,WAChBD,EAAGE,GACFb,KAAKU,UAAUI,OACf,EACA,CACCC,SAAU,IAAsB,IAAhBC,KAAKC,SAAiB,GAEvC,YAEDN,EAAGE,GACFT,EACAc,EAAAA,GACA,CACCC,QAAS,EACTC,KAAM,GACNC,MAAO,IAER,iBAEDV,EAAGE,GACFR,EACAa,EAAAA,GACA,CACCC,QAAS,EACTG,QAAS,IACTC,OAAQ,KAET,gBAEF,EAGGC,SAASC,cAAc,mDAC1B,IAAI3B,C","sources":["webpack://tombras/./js/components/Page404.js"],"sourcesContent":["import { qs } from \"../utils\";\nimport gsap from \"gsap\";\nimport { DEFAULT_TIME_SHORT } from \"../animations/config\";\nimport Draggable from \"gsap/Draggable\";\nimport InertiaPlugin from '../vendors/gsap-bonus/InertiaPlugin';\ngsap.registerPlugin(Draggable, InertiaPlugin);\n\nclass Page404 {\n\tconstructor() {\n\t\tthis.pan = qs(\".will-the-real-cast-iron-skillet-please-rotate\");\n\t\tthis.animate();\n\t}\n\n\tanimate() {\n\t\tconst topLeftCrumbs = qs(\".top-left-crumbs\");\n\t\tconst bottomRightCrumbs = qs(\".bottom-right-crumbs\");\n\n\t\tconst [rotatingPan] = Draggable.create(this.pan, {\n\t\t\ttype: \"rotation\",\n\t\t\tinertia: true,\n\t\t});\n\t\tthis.draggable = rotatingPan;\n\t\tconst tl = gsap.timeline();\n\t\ttl.to(\n\t\t\tthis.draggable.target,\n\t\t\t2,\n\t\t\t{\n\t\t\t\trotation: 360 + Math.random() * 360 + 1,\n\t\t\t},\n\t\t\t\"together\",\n\t\t);\n\t\ttl.to(\n\t\t\ttopLeftCrumbs,\n\t\t\tDEFAULT_TIME_SHORT,\n\t\t\t{\n\t\t\t\topacity: 1,\n\t\t\t\ttop: -50,\n\t\t\t\tleft: -50,\n\t\t\t},\n\t\t\t\"together+=0.1\",\n\t\t);\n\t\ttl.to(\n\t\t\tbottomRightCrumbs,\n\t\t\tDEFAULT_TIME_SHORT,\n\t\t\t{\n\t\t\t\topacity: 1,\n\t\t\t\tbottom: -100,\n\t\t\t\tright: -100,\n\t\t\t},\n\t\t\t\"together+=0.1\",\n\t\t);\n\t}\n}\n\nif (document.querySelector(\".will-the-real-cast-iron-skillet-please-rotate\")) {\n\tnew Page404();\n}\n"],"names":["gsap","registerPlugin","Draggable","InertiaPlugin","Page404","constructor","this","pan","qs","animate","topLeftCrumbs","bottomRightCrumbs","rotatingPan","create","type","inertia","draggable","tl","timeline","to","target","rotation","Math","random","DEFAULT_TIME_SHORT","opacity","top","left","bottom","right","document","querySelector"],"sourceRoot":""}