{"mappings":"C,A,W,I,E,A,C,A,a,O,W,W,A,a,O,K,K,A,a,O,O,O,A,a,O,O,O,C,C,E,iB,C,A,C,E,E,Q,A,E,Q,S,C,C,C,E,O,c,C,E,O,C,wB,C,I,W,O,C,E,I,K,E,W,C,E,a,C,C,G,I,E,E,SCIO,IAAM,EAAwB,AAAC,IACpC,GAAI,CAAC,EAAa,OAElB,IAAM,EAAsB,AAA6C,QAA7C,EAAY,YAAY,CAAC,iBAC/C,EAA2B,EAAY,YAAY,CAAC,kBAAkB,OAAS,EAAI,OAAO,EAAY,YAAY,CAAC,kBAAoB,IAE7I,IAAI,EAAa,IAAI,EAAA,OAAK,CAAG,EAAa,CACtC,KAAM,OACN,SAAU,EACV,SAAU,EACV,cAAe,CAAA,CACnB,GAEA,EAAW,EAAE,CAAE,WAAY,SAAW,CAAU,EAC5C,EAAW,OAAO,CAAG,CACnB,OAAQ,EACR,KAAM,CACR,CACF,GAEF,EAAW,KAAK,EAClB,C,E","sources":["","js/initHeroSectionSplide.ts"],"sourcesContent":["(function () {\n\nfunction $parcel$export(e, n, v, s) {\n Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});\n}\n\n var $parcel$global =\n typeof globalThis !== 'undefined'\n ? globalThis\n : typeof self !== 'undefined'\n ? self\n : typeof window !== 'undefined'\n ? window\n : typeof global !== 'undefined'\n ? global\n : {};\n var parcelRequire = $parcel$global[\"parcelRequireb86c\"];\nvar parcelRegister = parcelRequire.register;\nparcelRegister(\"iONh6\", function(module, exports) {\n\n$parcel$export(module.exports, \"initHeroSectionSplide\", function () { return $e0155e0f924ed2a3$export$e3e7daf394f93a30; });\n// Splide\n\nvar $9yyrO = parcelRequire(\"9yyrO\");\nconst $e0155e0f924ed2a3$export$e3e7daf394f93a30 = (containerEl)=>{\n if (!containerEl) return;\n const isAutoPlay = containerEl.getAttribute(\"data-autoplay\") == \"True\" ? true : false;\n const selectedInterval = containerEl.getAttribute(\"data-interval\")?.length > 0 ? Number(containerEl.getAttribute(\"data-interval\")) : 5000;\n var heroSplide = new (0, $9yyrO.default)(containerEl, {\n type: 'loop',\n autoplay: isAutoPlay,\n interval: selectedInterval,\n resetProgress: false\n });\n heroSplide.on('overflow', function(isOverflow) {\n heroSplide.options = {\n arrows: isOverflow,\n drag: isOverflow\n };\n });\n heroSplide.mount();\n};\n\n});\n\n})();\n//# sourceMappingURL=initHeroSectionSplide.23f4f672.js.map\n","// Splide\r\nimport Splide from '@splidejs/splide';\r\n\r\n// Initiate splide slider for hero section\r\nexport const initHeroSectionSplide = (containerEl: HTMLElement) => {\r\n if (!containerEl) return;\r\n\r\n const isAutoPlay: boolean = containerEl.getAttribute(\"data-autoplay\") == \"True\" ? true : false;\r\n const selectedInterval: number = containerEl.getAttribute(\"data-interval\")?.length > 0 ? Number(containerEl.getAttribute(\"data-interval\")) : 5000;\r\n\r\n var heroSplide = new Splide( containerEl, {\r\n type: 'loop',\r\n autoplay: isAutoPlay,\r\n interval: selectedInterval,\r\n resetProgress: false\r\n } );\r\n\r\n heroSplide.on( 'overflow', function ( isOverflow ) {\r\n heroSplide.options = {\r\n arrows: isOverflow,\r\n drag: isOverflow\r\n };\r\n } );\r\n\r\n heroSplide.mount();\r\n}"],"names":["parcelRequire","$parcel$global","globalThis","self","window","global","parcelRegister","register","module","exports","Object","defineProperty","get","$e0155e0f924ed2a3$export$e3e7daf394f93a30","set","s","enumerable","configurable","$9yyrO","containerEl","isAutoPlay","getAttribute","selectedInterval","length","Number","heroSplide","default","type","autoplay","interval","resetProgress","on","isOverflow","options","arrows","drag","mount"],"version":3,"file":"initHeroSectionSplide.23f4f672.js.map"}