PageSourceSearch

https://confettigifts.in/cdn/shop/t/258/assets/tab-collection.js?v=40361385909195701561790657716

js confettigifts.in collected 2026-10-07 00:19:56 UTC 2,498 bytes, 2 lines download raw bytes

1(function(){var flickityMap=new WeakMap,resizeTimer;function isDesktop(){return window.innerWidth>=768}function getOptions(){var mobile=!isDesktop();return{cellAlign:"left",contain:!0,pageDots:!1,prevNextButtons:!mobile,draggable:!0,freeScroll:!0,wrapAround:!1,friction:.25,selectedAttraction:.025,groupCells:mobile?1:!1}}function initFlickityForPanel(panel){var carousel=panel.querySelector(".flickity-carousel");if(!carousel||typeof Flickity=="undefined")return null;var existing=flickityMap.get(carousel)||Flickity.data(carousel);if(existing)return existing.resize(),existing;var flkty=new Flickity(carousel,getOptions());return flickityMap.set(carousel,flkty),flkty}function initTabCollection(root){if(!root||root.dataset.tabCollectionInit==="true")return;root.dataset.tabCollectionInit="true";var buttons=root.querySelectorAll(".tab-btn"),panels=root.querySelectorAll(".tab-panel");function activateTab(index){buttons.forEach(function(btn,idx){btn.classList.toggle("is-active",idx===index)}),panels.forEach(function(panel,idx){var isActive=idx===index;panel.classList.toggle("is-active",isActive),isActive&&initFlickityForPanel(panel)})}buttons.forEach(function(btn,index){btn.addEventListener("click",function(){activateTab(index)})}),buttons.length>0&&activateTab(0)}function initAll(root){var scope=root||document;scope.querySelectorAll(".ats-collection-tabs[data-tab-collection]").forEach(initTabCollection)}function destroyIn(root){var scope=root||document;scope.querySelectorAll(".ats-collection-tabs .flickity-carousel").forEach(function(el){var flkty=flickityMap.get(el)||Flickity.data(el);flkty&&(flkty.destroy(),flickityMap.delete(el))}),scope.querySelectorAll(".ats-collection-tabs[data-tab-collection]").forEach(function(section){delete section.dataset.tabCollectionInit})}function onResize(){clearTimeout(resizeTimer),resizeTimer=setTimeout(function(){document.querySelectorAll(".ats-collection-tabs .tab-panel.is-active .flickity-carousel").forEach(function(el){var flkty=flickityMap.get(el)||Flickity.data(el);flkty&&flkty.resize()})},200)}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",function(){initAll()}):initAll(),window.addEventListener("resize",onResize),document.addEventListener("shopify:section:load",function(event){initAll(event.target)}),document.addEventListener("shopify:section:unload",function(event){destroyIn(event.target)})})();
2//# sourceMappingURL=/cdn/shop/t/258/assets/tab-collection.js.map?v=40361385909195701561790657716

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.