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Aa,EAAE;UACbC,OAAO,EAAE,6BAA6B;UACtCC,KAAK,EAAE,eAAe;UAAE;UACxBC,GAAG,EAAE,YAAY;UACjBC,KAAK,EAAE;QACT;MACF,CAAC,CAAC;MACF/B,IAAI,CAACC,EAAE,CAAC,iBAAiB,EAAE;QACzBwB,CAAC,EAAE,CAAC,GAAG;QACPE,aAAa,EAAE;UACbC,OAAO,EAAE,6BAA6B;UACtCC,KAAK,EAAE,eAAe;UAAE;UACxBC,GAAG,EAAE,YAAY;UACjBC,KAAK,EAAE;QACT;MACF,CAAC,CAAC;IACJ;EACF;AACF,CAAC,CAAC,C","sources":["webpack://pivot-design-v3/./blocks/soul-home-montage/index.scss?cf95","webpack://pivot-design-v3/webpack/bootstrap","webpack://pivot-design-v3/webpack/runtime/make namespace object","webpack://pivot-design-v3/./blocks/soul-home-montage/index.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport {};","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import \"./index.scss\";\n\nwindow.addEventListener(\"DOMContentLoaded\", (event) => {\n if (document.body.classList.contains(\"home\")) {\n // Generate random image numbers for each section\n\n const soulForeground = document.querySelector(\".soul-foreground\");\n const soulMid = document.querySelector(\".soul-mid\");\n const soulBackground = document.querySelector(\".soul-background\");\n\n // Function to generate a random number between min and max (inclusive) without duplicates\n function getRandomNumberUnique(min, max, usedNumbers) {\n const availableNumbers = [];\n for (let i = min; i <= max; i++) {\n if (!usedNumbers.includes(i)) {\n availableNumbers.push(i);\n }\n }\n\n if (availableNumbers.length === 0) {\n throw new Error(\"Not enough unique numbers available!\");\n }\n\n const randomIndex = Math.floor(Math.random() * availableNumbers.length);\n return availableNumbers[randomIndex];\n }\n\n // Track used random numbers\n const usedNumbers = [];\n\n // Check if screen width is less than 768px\n if (!window.matchMedia(\"(min-width: 768px)\").matches) {\n const foregroundImagesMobile = soulForeground.querySelectorAll(\"img.soul-img:not(.soul-img-video)\");\n const midgroundImagesMobile = soulMid ? soulMid.querySelectorAll(\"img.soul-img:not(.soul-img-video)\") : []; // Handle optional element\n const backgroundImagesMobile = soulBackground ? soulBackground.querySelectorAll(\"img.soul-img:not(.soul-img-video)\") : []; // Handle optional element\n\n // Loop through foreground images\n foregroundImagesMobile.forEach((img, index) => {\n let randomOrder;\n do {\n randomOrder = getRandomNumberUnique(1, 8, usedNumbers);\n } while (usedNumbers.includes(randomOrder));\n usedNumbers.push(randomOrder);\n img.classList.add(`soul-${randomOrder}`);\n });\n\n // Loop through midground images (if section exists)\n if (midgroundImagesMobile.length > 0) {\n midgroundImagesMobile.forEach((img, index) => {\n let randomOrder;\n do {\n randomOrder = getRandomNumberUnique(9, 16, usedNumbers);\n } while (usedNumbers.includes(randomOrder));\n usedNumbers.push(randomOrder);\n img.classList.add(`soul-${randomOrder}`);\n });\n }\n\n // Loop through background images (if section exists)\n if (backgroundImagesMobile.length > 0) {\n backgroundImagesMobile.forEach((img, index) => {\n let randomOrder;\n do {\n randomOrder = getRandomNumberUnique(17, 24, usedNumbers);\n } while (usedNumbers.includes(randomOrder));\n usedNumbers.push(randomOrder);\n img.classList.add(`soul-${randomOrder}`);\n });\n }\n } else {\n const foregroundImagesDesktop = soulForeground.querySelectorAll(\"img.soul-img:not(.soul-img-video-static)\");\n const midgroundImagesDesktop = soulMid ? soulMid.querySelectorAll(\"img.soul-img:not(.soul-img-video-static)\") : []; // Handle optional element\n const backgroundImagesDesktop = soulBackground ? soulBackground.querySelectorAll(\"img.soul-img:not(.soul-img-video-static)\") : []; // Handle optional element\n\n // Loop through foreground images\n foregroundImagesDesktop.forEach((img, index) => {\n let randomOrder;\n do {\n randomOrder = getRandomNumberUnique(1, 8, usedNumbers);\n } while (usedNumbers.includes(randomOrder));\n usedNumbers.push(randomOrder);\n img.classList.add(`soul-${randomOrder}`);\n });\n\n // Loop through midground images (if section exists)\n if (midgroundImagesDesktop.length > 0) {\n midgroundImagesDesktop.forEach((img, index) => {\n let randomOrder;\n do {\n randomOrder = getRandomNumberUnique(9, 16, usedNumbers);\n } while (usedNumbers.includes(randomOrder));\n usedNumbers.push(randomOrder);\n img.classList.add(`soul-${randomOrder}`);\n });\n }\n\n // Loop through background images (if section exists)\n if (backgroundImagesDesktop.length > 0) {\n backgroundImagesDesktop.forEach((img, index) => {\n let randomOrder;\n do {\n randomOrder = getRandomNumberUnique(17, 24, usedNumbers);\n } while (usedNumbers.includes(randomOrder));\n usedNumbers.push(randomOrder);\n img.classList.add(`soul-${randomOrder}`);\n });\n }\n }\n\n // Animate the images / + is to left/down\n\n // const soulImages = document.querySelectorAll(\".soul-img\");\n\n // soulImages.forEach((image) => {\n // image.style.maxWidth = \"600px\";\n // });\n\n gsap.to(\".soul-img\", { scale: 0.01, duration: 0.001 });\n\n var soulMontage = gsap.timeline({ repeat: -1, delay: 0.15, defaults: {} });\n\n CustomEase.create(\"hyperdrive\", \"M0,0 C0,0.038 0,0.04 0.039,0.139 0.082,0.249 0.398,0.227 0.5,0.3 0.794,0.52 0.85,0.62 1,1 \");\n\n const pdSoulMain = document.getElementById(\"pd-soul-main\");\n const pdSoulMainWidth = pdSoulMain.offsetWidth;\n const pdSoulMainHeight = pdSoulMain.offsetHeight;\n\n function animateSoul(targetClass, offsetX, offsetY, duration, scale, position, ease) {\n soulMontage\n .to(\n targetClass,\n {\n opacity: 1,\n duration: 0.5,\n },\n position\n ) // Added position parameter here\n .to(\n targetClass,\n {\n x: offsetX * pdSoulMainWidth,\n y: offsetY * pdSoulMainHeight,\n duration: duration,\n scale: scale * pdSoulMainWidth * 0.01,\n ease: ease,\n //force3D: false\n },\n position\n );\n }\n\n // Animate each soul with specific offsets and durations, positions can be adjusted here\n\n // Desktop\n\n if (window.matchMedia(\"(min-width: 600px)\").matches) {\n animateSoul(\".soul-1\", -0.85, -0.75, 6, 0.04, 0, \"hyperdrive\");\n animateSoul(\".soul-5\", -0.25, -1.2, 10, 0.11, 0, \"hyperdrive\");\n animateSoul(\".soul-20\", 1.25, -0.35, 6, 0.04, 0, \"hyperdrive\");\n animateSoul(\".soul-2\", 1, -0.5, 8, 0.11, 0, \"hyperdrive\");\n animateSoul(\".soul-22\", 1, 0.65, 10, 0.08, 0, \"hyperdrive\");\n animateSoul(\".soul-15\", 0.55, -0.25, 12, 0.06, 0, \"hyperdrive\");\n animateSoul(\".soul-11\", 0.55, 1, 10, 0.11, 0, \"hyperdrive\");\n animateSoul(\".soul-4\", 0.5, -1, 6, 0.04, 0, \"hyperdrive\");\n animateSoul(\".soul-9\", -1, -0.5, 12, 0.11, 0, \"hyperdrive\");\n animateSoul(\".soul-19\", -0.85, 0.5, 8, 0.08, 0, \"hyperdrive\");\n animateSoul(\".soul-6\", -0.5, 1, 11, 0.08, 0, \"hyperdrive\");\n\n animateSoul(\".soul-24\", 0.8, 2, 11, 0.08, 9, \"sine.inOut\");\n animateSoul(\".soul-13\", -0.85, -0.85, 13, 0.08, 6, \"sine.inOut\");\n animateSoul(\".soul-18\", -0.5, 1.25, 11, 0.08, 4.5, \"sine.inOut\");\n animateSoul(\".soul-8\", 0.9, -0.85, 13, 0.08, 5, \"sine.inOut\");\n animateSoul(\".soul-17\", -0.5, 1.25, 13, 0.08, 9, \"sine.inOut\");\n animateSoul(\".soul-14\", 0.85, -0.5, 13, 0.08, 7.5, \"sine.inOut\");\n animateSoul(\".soul-10\", 1, 0.65, 13, 0.08, 6, \"sine.inOut\");\n animateSoul(\".soul-3\", 1, -0.05, 11, 0.08, 6.5, \"sine.inOut\");\n animateSoul(\".soul-23\", 0.55, 1.25, 13, 0.08, 5, \"sine.inOut\");\n animateSoul(\".soul-16\", 0.5, -1, 13, 0.08, 9, \"sine.inOut\");\n animateSoul(\".soul-21\", -1, -0.5, 11, 0.08, 6.5, \"sine.inOut\");\n animateSoul(\".soul-7\", -0.85, 0.5, 11, 0.08, 8, \"sine.inOut\");\n animateSoul(\".soul-12\", 0.8, 1.5, 13, 0.08, 6, \"sine.inOut\");\n }\n\n // Mobile\n\n if (window.matchMedia(\"(max-width: 599px)\").matches) {\n animateSoul(\".soul-1\", -0.95, -0.85, 6, 0.14, 0, \"hyperdrive\");\n animateSoul(\".soul-5\", -0.35, -1.3, 10, 0.21, 0, \"hyperdrive\");\n animateSoul(\".soul-20\", 1.35, -0.45, 6, 0.14, 0, \"hyperdrive\");\n animateSoul(\".soul-2\", 1.2, -0.15, 3.5, 0.11, 0, \"hyperdrive\");\n animateSoul(\".soul-22\", 1.1, 0.75, 10, 0.18, 0, \"hyperdrive\");\n animateSoul(\".soul-15\", 0.65, -0.85, 12, 0.16, 0, \"hyperdrive\");\n animateSoul(\".soul-11\", 0.75, 1.1, 10, 0.21, 0, \"hyperdrive\");\n animateSoul(\".soul-4\", 0.85, -1.1, 8, 0.14, 0, \"hyperdrive\");\n animateSoul(\".soul-9\", -1.1, -0.6, 12, 0.21, 0, \"hyperdrive\");\n animateSoul(\".soul-19\", -0.95, 0.95, 8, 0.17, 0, \"hyperdrive\");\n animateSoul(\".soul-6\", 0.56, 1.1, 8.5, 0.15, 0, \"hyperdrive\");\n\n animateSoul(\".soul-24\", 0.9, 2.1, 10, 0.18, 8, \"sine.inOut\");\n animateSoul(\".soul-13\", -0.95, -0.95, 9, 0.18, 6, \"sine.inOut\");\n animateSoul(\".soul-18\", -0.25, 1.35, 10, 0.18, 4.5, \"sine.inOut\");\n animateSoul(\".soul-8\", 0.19, -0.95, 8, 0.18, 6, \"sine.inOut\");\n animateSoul(\".soul-17\", -0.15, 1.35, 12, 0.18, 9, \"sine.inOut\");\n animateSoul(\".soul-14\", 1.05, -0.35, 9, 0.18, 7.5, \"sine.inOut\");\n animateSoul(\".soul-10\", 1.1, 0.75, 12, 0.18, 6, \"sine.inOut\");\n animateSoul(\".soul-3\", 1.21, -0.15, 9, 0.18, 6.5, \"sine.inOut\");\n animateSoul(\".soul-23\", 0.45, 1.35, 12, 0.18, 5, \"sine.inOut\");\n animateSoul(\".soul-16\", 0.15, -1.1, 12, 0.18, 8, \"sine.inOut\");\n animateSoul(\".soul-21\", -1.2, -0.15, 10, 0.14, 6, \"sine.inOut\");\n animateSoul(\".soul-7\", -1.35, 0.65, 9, 0.18, 8, \"sine.inOut\");\n animateSoul(\".soul-12\", 0.9, 1.65, 12, 0.18, 6, \"sine.inOut\");\n }\n\n // Animate Soul text on scroll on desktop only\n\n const mediaQuery = window.matchMedia(\"(min-width: 1024px)\");\n\n if (mediaQuery.matches) {\n gsap.to(\".soul-text\", {\n y: -200,\n scrollTrigger: {\n trigger: \".pd-block-soul-home-montage\",\n start: \"bottom bottom\", // when the top of the trigger hits the top of the viewport\n end: \"bottom top\",\n scrub: true,\n },\n });\n gsap.to(\".building-brand\", {\n y: -100,\n scrollTrigger: {\n trigger: \".pd-block-soul-home-montage\",\n start: \"bottom bottom\", // when the top of the trigger hits the top of the viewport\n end: \"bottom top\",\n scrub: true,\n },\n });\n }\n }\n});\n"],"names":["window","addEventListener","event","document","body","classList","contains","soulForeground","querySelector","soulMid","soulBackground","getRandomNumberUnique","min","max","usedNumbers","availableNumbers","i","includes","push","length","Error","randomIndex","Math","floor","random","matchMedia","matches","foregroundImagesMobile","querySelectorAll","midgroundImagesMobile","backgroundImagesMobile","forEach","img","index","randomOrder","add","foregroundImagesDesktop","midgroundImagesDesktop","backgroundImagesDesktop","gsap","to","scale","duration","soulMontage","timeline","repeat","delay","defaults","CustomEase","create","pdSoulMain","getElementById","pdSoulMainWidth","offsetWidth","pdSoulMainHeight","offsetHeight","animateSoul","targetClass","offsetX","offsetY","position","ease","opacity","x","y","mediaQuery","scrollTrigger","trigger","start","end","scrub"],"sourceRoot":""}