{"version":3,"file":"/js/blocks/tabbed-locations/script.js","mappings":"6IAEAA,SACEC,iBACA,oBACA,WAECD,SACEE,iBAAiB,mCACjBC,SACA,SAACC,GAEA,IAAMC,EAAW,IAAIC,EAAAA,EACpBF,EACA,CACCG,KAAM,WACNC,QAAQ,EACRC,IAAK,GACLC,SAAU,EACVC,QAAS,IAIXN,EAASO,GAAG,cAAc,WAClB,IAAMC,EAAcR,EAASS,MACvBC,EAAUX,EAAGY,cAAc,mBAC3BC,EAASb,EAAGY,cAAc,mCAADE,OAAoCL,EAAW,OAErFE,EAAQI,OAAO,CACdC,KAAMH,EAAOI,WACbC,SAAU,UAEN,IAENjB,EAASkB,OAEV,GAGH,G","sources":["webpack://wp-plugin-cirrus-blocks/./blocks/tabbed-locations/script.js"],"sourcesContent":["import Glide from \"@glidejs/glide\";\n\ndocument\n\t.addEventListener(\n\t\t'DOMContentLoaded',\n\t\t() => {\n\n\t\t\tdocument\n\t\t\t\t.querySelectorAll('.cirrus-tabbed-locations .glide')\n\t\t\t\t.forEach(\n\t\t\t\t\t(el) => {\n\n\t\t\t\t\t\tconst carousel = new Glide(\n\t\t\t\t\t\t\tel,\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttype: 'carousel',\n\t\t\t\t\t\t\t\trewind: false,\n\t\t\t\t\t\t\t\tgap: 40,\n\t\t\t\t\t\t\t\tperTouch: 1,\n\t\t\t\t\t\t\t\tperView: 1,\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\tcarousel.on('move.after', () => {\n const activeSlide = carousel.index;\n const bullets = el.querySelector('.glide__bullets');\n const bullet = el.querySelector(`.glide__bullet[data-glide-dir=\"=${activeSlide}\"]`);\n\n\t\t\t\t\t\t\tbullets.scroll({\n\t\t\t\t\t\t\t\tleft: bullet.offsetLeft,\n\t\t\t\t\t\t\t\tbehavior: 'smooth'\n\t\t\t\t\t\t\t});\n });\n\n\t\t\t\t\t\tcarousel.mount();\n\n\t\t\t\t\t}\n\t\t\t\t);\n\n\t\t}\n\t);"],"names":["document","addEventListener","querySelectorAll","forEach","el","carousel","Glide","type","rewind","gap","perTouch","perView","on","activeSlide","index","bullets","querySelector","bullet","concat","scroll","left","offsetLeft","behavior","mount"],"sourceRoot":""}