{"version":3,"file":"724.18775196dca89085.js","mappings":"0FAEA,I,QAAIA,IAAO,UACP,CACIC,UAAW,MACXC,OAAQ,QACRC,QAAS,EACTC,QAAS,EACTC,IAAK,OACLC,QAAQ,EACRC,KAAM,UACPC,QACP,MAAMC,EAASC,SAASC,iBAAiB,iBACnCC,EAAYF,SAASG,cAAc,sBACrCD,IACAA,EAAUE,MAAMC,iBAAmB,YACnCH,EAAUE,MAAME,eAAiB,WAEjCP,GACAA,EAAOQ,SAAQ,SAAUC,EAAOC,GAC5BD,EAAME,iBAAiB,SACnB,SAAUC,GACN,MAAMC,EAAUZ,SAASG,cAAc,4BACnCS,GACAA,EAAQC,UAAUC,OAAO,cAE7B,MAAMC,EAAQP,EAAML,cAAc,uBAC9BY,GAASb,IACTA,EAAUE,MAAMY,gBAAkB,OAASD,EAAME,QAAQC,SAAW,IACpEhB,EAAUE,MAAME,eAAiB,UACjCJ,EAAUE,MAAMC,iBAAmB,YACnCH,EAAUE,MAAMe,mBAAqB,gBACrCX,EAAMK,UAAUO,IAAI,cAE5B,GACR,G","sources":["webpack:///./Scripts/brafab.splide.js"],"sourcesContent":["import Splide from '@splidejs/splide';\n\nnew Splide('.splide',\n {\n direction: 'ttb',\n height: '400px',\n perPage: 3,\n perMove: 1,\n gap: '15px',\n rewind: true,\n type: 'slide',\n }).mount();\nconst images = document.querySelectorAll('.splide-image');\nconst mainImage = document.querySelector('#family-main-image');\nif (mainImage) {\n mainImage.style.backgroundRepeat = \"no-repeat\";\n mainImage.style.backgroundSize = \"contain\";\n}\nif (images) {\n images.forEach(function (image, index) {\n image.addEventListener('click',\n function (event) {\n const imageEl = document.querySelector(\".splide-image.is-clicked\");\n if (imageEl) {\n imageEl.classList.remove(\"is-clicked\");\n }\n const imgEl = image.querySelector('.splide__item-image');\n if (imgEl && mainImage) {\n mainImage.style.backgroundImage = \"url(\" + imgEl.dataset.imageUrl + \")\";\n mainImage.style.backgroundSize = \"contain\";\n mainImage.style.backgroundRepeat = \"no-repeat\";\n mainImage.style.backgroundPosition = \"center center\";\n image.classList.add(\"is-clicked\");\n }\n });\n });\n}"],"names":["Splide","direction","height","perPage","perMove","gap","rewind","type","mount","images","document","querySelectorAll","mainImage","querySelector","style","backgroundRepeat","backgroundSize","forEach","image","index","addEventListener","event","imageEl","classList","remove","imgEl","backgroundImage","dataset","imageUrl","backgroundPosition","add"],"sourceRoot":""}