PageSourceSearch

https://www.klick.africa/cdn/shop/t/18/compiled_assets/scripts.js?v=162053296824395517581786692338

js klick.africa collected 2026-10-04 12:32:08 UTC 25,594 bytes, 39 lines download raw bytes

1(function(){var __sections__={};(function(){for(var i=0,s=document.getElementById("sections-script").getAttribute("data-sections").split(",");i<s.length;i++)__sections__[s[i]]=!0})(),(function(){if(__sections__.footer)try{class LocalizationForm extends HTMLElement{constructor(){super(),this.elements={input:this.querySelector('input[name="locale_code"], input[name="country_code"]'),button:this.querySelector("button"),panel:this.querySelector("ul")},this.handleDocumentClick=this.handleDocumentClick.bind(this),this.elements.button.addEventListener("click",this.togglePanel.bind(this)),this.addEventListener("keydown",this.onEscapePress.bind(this)),this.querySelectorAll("a").forEach(item=>item.addEventListener("click",this.onItemClick.bind(this)))}connectedCallback(){document.addEventListener("click",this.handleDocumentClick)}disconnectedCallback(){document.removeEventListener("click",this.handleDocumentClick)}handleDocumentClick(event){this.contains(event.target)||this.hidePanel()}hidePanel(){this.elements.button.setAttribute("aria-expanded","false"),this.elements.panel.setAttribute("hidden",!0)}showPanel(){this.elements.button.setAttribute("aria-expanded","true"),this.elements.panel.removeAttribute("hidden")}togglePanel(){this.elements.button.getAttribute("aria-expanded")==="true"?this.hidePanel():this.showPanel()}onEscapePress(event){event.key==="Escape"&&this.hidePanel()}onItemClick(event){event.preventDefault(),this.elements.input.value=event.currentTarget.dataset.value,this.querySelector("form")?.submit(),this.hidePanel()}}customElements.get("localization-form")||customElements.define("localization-form",LocalizationForm)}catch(e){console.error(e)}})(),(function(){if(__sections__.header)try{class StickyHeader extends HTMLElement{constructor(){super()}connectedCallback(){this.header=document.querySelector(".shopify-section-header"),this.hasOverlay=this.header.classList.contains("has-overlay"),this.headerIsAlwaysSticky=this.getAttribute("data-sticky-type")==="always",this.headerBounds={},this.currentScrollTop=0,this.preventReveal=!1,this.predictiveSearch=this.querySelector("predictive-search"),this.onScrollHandler=this.onScroll.bind(this),this.hideHeaderOnScrollUp=()=>this.preventReveal=!0,this.addEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.addEventListener("scroll",this.onScrollHandler,!1),this.createObserver(),this.headerIsAlwaysSticky&&this.reveal}disconnectedCallback(){this.removeEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.removeEventListener("scroll",this.onScrollHandler)}createObserver(){let observer=new IntersectionObserver((entries,observer2)=>{this.headerBounds=entries[0].intersectionRect,observer2.disconnect()});this.header&&observer.observe(this.header)}onScroll(){const scrollTop=window.pageYOffset||document.documentElement.scrollTop,headerTop=document.querySelector(".shopify-section-header .header__top"),headerSearch=document.querySelector(".shopify-section-header .search__content"),headerBottom=document.querySelector(".shopify-section-header .header__bottom");if(this.headerIsAlwaysSticky&&scrollTop>this.header.offsetHeight+1&&this.header.classList.add("shopify-section-header-sticky","shopify-section-header-always-sticky"),this.hasOverlay&&this.headerIsAlwaysSticky&&scrollTop>this.header.offsetHeight+2&&(this.header.classList.remove("color-background-3"),headerTop.classList.remove("color-background-3"),headerBottom?.classList?.remove("color-background-3"),headerSearch.classList.remove("color-background-3"),this.header.style.transition="background var(--duration-short)",this.header.style.transform="translateY(0)"),this.headerIsAlwaysSticky&&scrollTop<this.header.offsetHeight&&(this.header.classList.remove("shopify-section-header-sticky"),this.hasOverlay&&(this.header.style.transform="translateY(0)",this.header.style.transition="background var(--duration-short)",this.header.classList.contains("color-background-1")&&(this.header.classList.add("color-background-3"),headerTop.classList.add("color-background-3"),headerSearch.classList.add("color-background-3"),headerBottom?.classList?.add("color-background-3")))),scrollTop>this.currentScrollTop&&scrollTop>this.headerBounds.bottom){if(this.predictiveSearch&&this.predictiveSearch.onFocusOut&&(this.predictiveSearch.onFocusOut(),this.predictiveSearch.onBlur()),this.preventHide)return;requestAnimationFrame(this.hide.bind(this))}else scrollTop<this.currentScrollTop&&scrollTop>this.headerBounds.bottom?this.preventReveal?(window.clearTimeout(this.isScrolling),this.isScrolling=setTimeout(()=>{this.preventReveal=!1},66),requestAnimationFrame(this.hide.bind(this))):requestAnimationFrame(this.reveal.bind(this)):scrollTop<=this.headerBounds.top&&requestAnimationFrame(this.reset.bind(this));this.currentScrollTop=scrollTop}hide(){this.headerIsAlwaysSticky||(this.header.classList.add("shopify-section-header-hidden","shopify-section-header-sticky"),this.closeMenuDisclosure())}reveal(){if(this.headerIsAlwaysSticky)return;const headerTop=document.querySelector(".shopify-section-header .header__top"),headerSearch=document.querySelector(".shopify-section-header .search__content"),headerBottom=document.querySelector(".shopify-section-header .header__bottom");this.header.classList.add("shopify-section-header-sticky","animate"),this.header.classList.remove("shopify-section-header-hidden"),this.hasOverlay&&(this.header.classList.add("shopify-section-header-sticky","animate"),this.header.classList.remove("shopify-section-header-hidden","color-background-3"),headerTop.classList.remove("color-background-3"),headerSearch.classList.remove("color-background-3"),headerBottom?.classList?.remove("color-background-3"))}reset(){if(this.headerIsAlwaysSticky)return;const headerTop=document.querySelector(".shopify-section-header .header__top"),headerSearch=document.querySelector(".shopify-section-header .search__content"),headerBottom=document.querySelector(".shopify-section-header .header__bottom");this.header.classList.remove("shopify-section-header-hidden","shopify-section-header-sticky","animate"),this.header.classList.contains("color-background-1")&&this.hasOverlay&&(this.header.classList.add("color-background-3"),headerTop.classList.add("color-background-3"),headerBottom?.classList?.add("color-background-3"),headerSearch.classList.add("color-background-3"))}closeMenuDisclosure(){this.disclosures=this.disclosures||this.header.querySelectorAll("details-disclosure"),this.disclosures&&this.disclosures.forEac
1h(disclosure=>disclosure.close())}}customElements.define("sticky-header",StickyHeader)}catch(e){console.error(e)}})(),(function(){if(__sections__["main-cart-footer"])try{class CartNote extends HTMLElement{constructor(){super(),this.addEventListener("change",debounce(event=>{const body=JSON.stringify({note:event.target.value});fetch(`${routes.cart_update_url}`,{...fetchConfig(),body})},300))}}customElements.define("cart-note",CartNote)}catch(e){console.error(e)}})(),(function(){if(__sections__["main-product"])try{class ProductModal extends ModalDialog{constructor(){super()}hide(){super.hide(),window.pauseAllMedia()}show(opener){super.show(opener),this.showActiveMedia()}showActiveMedia(){this.querySelectorAll(`[data-media-id]:not([data-media-id="${this.openedBy.getAttribute("data-media-id")}"])`).forEach(element=>{element.classList.remove("active")});const activeMedia=this.querySelector(`[data-media-id="${this.openedBy.getAttribute("data-media-id")}"]`),activeMediaTemplate=activeMedia.querySelector("template"),activeMediaContent=activeMediaTemplate?activeMediaTemplate.content:null;activeMedia.classList.add("active"),activeMedia.scrollIntoView(),activeMedia.nodeName=="DEFERRED-MEDIA"&&activeMediaContent&&activeMediaContent.querySelector(".js-youtube")&&activeMedia.loadContent()}}class RelatedProduct extends HTMLElement{constructor(){super();const handleIntersection=(entries,observer)=>{entries[0].isIntersecting&&(observer.unobserve(this),fetch(this.dataset.url).then(response=>response.text()).then(text=>{const html=document.createElement("div");html.innerHTML=text;const related=html.querySelector(".related-product");related&&related.innerHTML.trim().length&&(this.innerHTML=related.innerHTML),$(".product-description-more").click(function(e){e.preventDefault(),$(this).closest(".product-description-short").next().show(),$(this).closest(".product-description-short").hide()}),$(".product-description-less").click(function(e){e.preventDefault(),$(this).closest(".product-description-full").prev().show(),$(this).closest(".product-description-full").hide()})}).catch(e=>{console.error(e)}))};new IntersectionObserver(handleIntersection.bind(this),{rootMargin:"0px 0px 200px 0px"}).observe(this)}}class RelatedSlider extends HTMLElement{constructor(){super();const handleIntersection=(entries,observer)=>{entries[0].isIntersecting&&(observer.unobserve(this),fetch(this.dataset.url).then(response=>response.text()).then(text=>{const html=document.createElement("div");html.innerHTML=text;
1const relatedSlider=html.querySelector(`related-slider[data-id="${this.getAttribute("data-id")}"]`);relatedSlider&&relatedSlider.innerHTML.trim().length&&(this.innerHTML=relatedSlider.innerHTML);const slider=this.querySelector(".related-slider__list"),prevBtn=this.querySelector(".related-slider__button-prev"),nextBtn=this.querySelector(".related-slider__button-next");if(this.querySelector(".swiper-wrapper-2-mobile")&&document.querySelector(".related-slider__list")){const productSlider=new Swiper(slider,{slidesPerView:2,spaceBetween:10,navigation:{nextEl:nextBtn,prevEl:prevBtn},simulateTouch:!0,allowTouchMove:!0,watchSlidesProgress:!0,preventInteractionOnTransition:!0,mousewheel:{forceToAxis:!0},breakpoints:{750:{slidesPerView:2},1200:{slidesPerView:3}}})}else if(document.querySelector(".related-slider__list")){const productSlider=new Swiper(slider,{slidesPerView:1,spaceBetween:10,navigation:{nextEl:nextBtn,prevEl:prevBtn},simulateTouch:!0,allowTouchMove:!0,watchSlidesProgress:!0,preventInteractionOnTransition:!0,mousewheel:{forceToAxis:!0},breakpoints:{750:{slidesPerView:2},1200:{slidesPerView:3}}})}const generateSrcset=(image,widths=[])=>{const imageUrl=new URL(image.src);return widths.filter(width=>width<=image.width).map(width=>(imageUrl.searchParams.set("width",width.toString()),`${imageUrl.href} ${width}w`)).join(", ")},createImageElement=(image,classes,sizes,productTitle)=>{const previewImage=image.preview_image,newImage=new Image(previewImage.width,previewImage.height);return newImage.className=classes,newImage.alt=image.alt||productTitle,newImage.sizes=sizes,newImage.src=previewImage.src,newImage.srcset=generateSrcset(previewImage,[165,360,533,720,940,1066]),newImage.loading="lazy",newImage};document.querySelectorAll(".js-color-swatches-wrapper").forEach(wrapper=>{wrapper.querySelectorAll(".js-color-swatches input").forEach(input=>{input.addEventListener("click",event=>{const primaryImage=wrapper.querySelector(".media--first"),secondaryImage=wrapper.querySelector(".media--second"),handleProduct=wrapper.dataset.product;if(event.currentTarget.checked&&primaryImage){wrapper.querySelector(".js-color-swatches-link").setAttribute("href",event.currentTarget.dataset.variantLink),wrapper.querySelector('.card__add-to-cart button[name="add"]')&&(wrapper.querySelector('.card__add-to-cart button[name="add"]').setAttribute("aria-disabled",!1),wrapper.querySelector('.card__add-to-cart button[name="add"] > span').classList.remove("hidden"),wrapper.querySelector('.card__add-to-cart button[name="add"] .sold-out-message').classList.add("hidden"),wrapper.querySelector('.card__add-to-cart input[name="id"]').value=event.currentTarget.dataset.variantId);const currentColor=event.currentTarget.value;jQuery.getJSON(window.Shopify.routes.root+`products/${handleProduct}.js`,function(product){const variant=product.variants.filter(item=>item.featured_media!=null&&item.options.includes(currentColor))[0];if(variant){const newPrimaryImage=createImageElement(variant.featured_media,primaryImage.className,primaryImage.sizes,product.title);if(newPrimaryImage.src!==primaryImage.src){let flag=!1;if(secondaryImage){const secondaryImagePathname=new URL(secondaryImage.src).pathname,newPrimaryImagePathname=new URL(newPrimaryImage.src).pathname;secondaryImagePathname==newPrimaryImagePathname&&(primaryImage.remove(),secondaryImage.classList.remove("media--second"),secondaryImage.classList.add("media--first"),flag=!0)}flag==!1&&(primaryImage.animate({opacity:[1,0]},{duration:200,easing:"ease-in",fill:"forwards"}).finished,setTimeout(function(){primaryImage.replaceWith(newPrimaryImage),newPrimaryImage.animate({opacity:[0,1]},{duration:200,easing:"ease-in"}),secondaryImage&&secondaryImage.remove()},200))}}})}})})})}).catch(e=>{console.error(e)}))};new IntersectionObserver(handleIntersection.bind(this),{rootMargin:"0px 0px 200px 0px"}).observe(this)}}customElements.define("product-modal",ProductModal),customElements.define("related-product",RelatedProduct),customElements.define("related-slider",RelatedSlider)}catch(e){console.error(e)}})(),(function(){if(__sections__["product-recommendations"])try{class ProductRecommendations extends HTMLElement{constructor(){super();const handleIntersection=(entries,observer)=>{entries[0].isIntersecting&&(observer.unobserve(this),fetch(this.dataset.url).then(response=>response.text()).then(text=>{const html=document.createElement("div");
1html.innerHTML=text;const recommendations=html.querySelector("product-recommendations");recommendations&&recommendations.innerHTML.trim().length&&(this.innerHTML=recommendations.innerHTML);const generateSrcset=(image,widths=[])=>{const imageUrl=new URL(image.src);return widths.filter(width=>width<=image.width).map(width=>(imageUrl.searchParams.set("width",width.toString()),`${imageUrl.href} ${width}w`)).join(", ")},createImageElement=(image,classes,sizes,productTitle)=>{const previewImage=image.preview_image,newImage=new Image(previewImage.width,previewImage.height);return newImage.className=classes,newImage.alt=image.alt||productTitle,newImage.sizes=sizes,newImage.src=previewImage.src,newImage.srcset=generateSrcset(previewImage,[165,360,533,720,940,1066]),newImage.loading="lazy",newImage};document.querySelectorAll(".js-color-swatches-wrapper").forEach(wrapper=>{wrapper.querySelectorAll(".js-color-swatches input").forEach(input=>{input.addEventListener("click",event=>{const primaryImage=wrapper.querySelector(".media--first"),secondaryImage=wrapper.querySelector(".media--second"),handleProduct=wrapper.dataset.product;if(event.currentTarget.checked&&primaryImage){wrapper.querySelector(".js-color-swatches-link").setAttribute("href",event.currentTarget.dataset.variantLink),wrapper.querySelector('.card__add-to-cart button[name="add"]')&&(wrapper.querySelector('.card__add-to-cart button[name="add"]').setAttribute("aria-disabled",!1),wrapper.querySelector('.card__add-to-cart button[name="add"] > span').classList.remove("hidden"),wrapper.querySelector('.card__add-to-cart button[name="add"] .sold-out-message').classList.add("hidden"),wrapper.querySelector('.card__add-to-cart input[name="id"]').value=event.currentTarget.dataset.variantId);const currentColor=event.currentTarget.value;jQuery.getJSON(window.Shopify.routes.root+`products/${handleProduct}.js`,function(product){const variant=product.variants.filter(item=>item.featured_media!=null&&item.options.includes(currentColor))[0];if(variant){const newPrimaryImage=createImageElement(variant.featured_media,primaryImage.className,primaryImage.sizes,product.title);if(newPrimaryImage.src!==primaryImage.src){let flag=!1;if(secondaryImage){const secondaryImagePathname=new URL(secondaryImage.src).pathname,newPrimaryImagePathname=new URL(newPrimaryImage.src).pathname;secondaryImagePathname==newPrimaryImagePathname&&(primaryImage.remove(),secondaryImage.classList.remove("media--second"),secondaryImage.classList.add("media--first"),flag=!0)}flag==!1&&(primaryImage.animate({opacity:[1,0]},{duration:200,easing:"ease-in",fill:"forwards"}).finished,setTimeout(function(){primaryImage.replaceWith(newPrimaryImage),newPrimaryImage.animate({opacity:[0,1]},{duration:200,easing:"ease-in"}),secondaryImage&&secondaryImage.remove()},200))}}})}})})})}).catch(e=>{console.error(e)}))};new IntersectionObserver(handleIntersection.bind(this),{rootMargin:"0px 0px 200px 0px"}).observe(this)}}customElements.define("product-recommendations",ProductRecommendations)}catch(e){console.error(e)}})(),(function(){if(__sections__["swym-registry-manage"])try{const swymRegistry_pageWrapper=document.getElementsByClassName("swym-registry-wrapper")[0],swymRegistry_manageHeader=document.getElementsByClassName("swym-registry-manage-page-header")[0],swymRegistry_manageGridLists=document.getElementsByClassName("swym-registry-manage-page-grid-section")[0],swymRegistry_headerTotalRegistries=document.getElementById("swym-registry-manage-page-header-info-total-registries"),swymRegistry_gridLists=document.getElementById("swym-registry-manage-page-grid-lists");async function swymRegistryOnloadHandler(){if(!Shopify.designMode){document.querySelector("#swym-registry-share-mail-link")&&document.querySelector("#swym-registry-share-mail-link").addEventListener("click",()=>{_LTracker.push({eventInfo:"Share by mail button clicked - Manage",tag:"event"}),Shopify.analytics.publish("swym_registry_manage_view",{eventAction:"Share by mail button clicked",customerInfo:{name:"{{ customer.name }}",email:"{{ customer.email }}",id:"{{ customer.id }}"}})});async function swymRegistry_getRegistryByEmail(authData){const swymRegistry_customerEmail=swymRegistryCustomer.email,token=authData.swym_registry.jwt.token;return swymRegistry_getAllRegistries(swymRegistry_customerEmail,token).then(response=>response.json()).then(data=>{if(data.length)try{swymRegistry_headerTotalRegistries.innerText=data.length>1?data.length+" "+swymRegistryStrings.swym_registry_registries_label:data.length+" "+swymRegistryStrings.swym_registry_registry_label,swymRegistry_manageHeader.style.visibility="visible",swymRegistry_pageWrapper.style.visibility="visible",data.forEach(registry=>{let swymRegistry_fname=registry.address.firstName,swymRegistry_lname=registry.address.lastName,swymRegistry_initials;return swymRegistry_fname&&swymRegistry_lname?swymRegistry_initials=swymRegistry_fname.charAt(0)+swymRegistry_lname.charAt(0):swymRegistry_initials=registry.creatorName.charAt(0),swymRegistry_gridLists.innerHTML+=`
2                    <li id="swym-registry-manage-page-grid-lists-list-${registry.Id}" class="swym-registry-manage-page-grid-lists-list">
3                      <div class="swym-registry-manage-page-grid-lists-circle-parent">
4                        <div class="swym-registry-manage-page-grid-lists-circle">
5                          <p class="${swymRegistryStrings.swym_registry_custom_para_class} swym-registry-font-very-large">${swymRegistry_initials}</p>
6                        </div>
7                      </div>
8                      <div class="swym-registry-manage-page-grid-lists-registry-info-parent">
9                        <h3 class="swym-registry-font-sub-title">${registry.registryName}</h3>
10                        <span class="swym-registry-gifter-banner-edit" onclick="swymRegistry_manageEditRegistryBtn(${registry.Id})">
11                          <svg xmlns="http://www.w3.org/2000/svg" height="25" width="25" viewbox="0 0 50 50"><path d="M9 39h2.2l22.15-22.15-2.2-2.2L9 36.8Zm30.7-24.3-6.4-6.4 2.1-2.1q.85-.85 2.1-.85t2.1.85l2.2 2.2q.85.85.85 2.1t-.85 2.1Zm-2.1 2.1L12.4 42H6v-6.4l25.2-25.2Zm-5.35-1.05-1.1-1.1 2.2 2.2Z"/></svg>
12                        </span>
13                        <span class="swym-registry-gifter-banner-share" onclick="swymRegistryOpenShareModal(\`${registry.registryName}\`,${registry.Id},${registry.settings.isPasswordProtected},\`${registry.email}\`,\`${token}\`,\`${registry.occasion}\`)">
14                          <svg xmlns="http://www.w3.org/2000/svg" height="25" width="25" viewbox="0 0 50 50"><path d="M36.35 44q-2.35 0-4.025-1.675Q30.65 40.65 30.65 38.3q0-.35.075-.825t.225-.875L15.8 27.8q-.75.85-1.85 1.375t-2.25.525q-2.35 0-4.025-1.675Q6 26.35 6 24q0-2.4 1.675-4.05T11.7 18.3q1.15 0 2.2.45 1.05.45 1.9 1.3l15.15-8.7q-.15-.35-.225-.8-.075-.45-.075-.85 0-2.4 1.675-4.05T36.35 4q2.4 0 4.05 1.65t1.65 4.05q0 2.35-1.65 4.025-1.65 1.675-4.05 1.675-1.15 0-2.225-.375Q33.05 14.65 32.3 13.8l-15.15 8.4q.1.4.175.925.075.525.075.875t-.075.75q-.075.4-.175.8l15.15 8.6q.75-.7 1.75-1.125 1-.425 2.3-.425 2.4 0 4.05 1.65t1.65 4.05q0 2.35-1.65 4.025Q38.75 44 36.35 44Zm0-31.6q1.15 0 1.925-.775.775-.775.775-1.925t-.775-1.925Q37.5 7 36.35 7t-1.925.775q-.775.775-.775 1.925t.775 1.925q.775.775 1.925.775ZM11.7 26.7q1.15 0 1.925-.775.775-.775.775-1.925t-.775-1.925Q12.85 21.3 11.7 21.3t-1.925.775Q9 22.85 9 24t.775 1.925q.775.775 1.925.775ZM36.35 41q1.15 0 1.925-.775.775-.775.775-1.925t-.775-1.925Q37.5 35.6 36.35 35.6t-1.925.775q-.775.775-.775 1.925t.775 1.925Q35.2 41 36.35 41Zm0-31.3ZM11.7 24Zm24.65 14.3Z"/></svg>
15                        </span>
16                        <ul class="swym-registry-manage-page-grid-lists-registry-info swym-registry-font-small">
17                          <li class="swym-registry-manage-page-grid-lists-registry-info-list">
18                            <span>${swymRegistryStrings.swym_registry_reg_id_label}</span> : <span id="swym-registry-manage-page-info-value"><strong>${registry.Id}</strong></span>
19                          </li>
20                          <li class="swym-registry-manage-page-grid-lists-registry-info-list">
21                            <span>${swymRegistryStrings.swym_registry_event_date_label}</span>  : <span id="swym-registry-manage-page-info-value"><strong>${registry.expiryDate}</strong></span>
22                          </li>
23                          <li class="swym-registry-manage-page-grid-lists-registry-info-list">
24                            <span>${swymRegistryStrings.swym_registry_event_type_label}</span> : <span id="swym-registry-manage-page-info-value"><strong>${registry.occasion}</strong></span>
25                          </li>
26                        </ul>
27                        <p class="${swymRegistryStrings.swym_registry_custom_para_class} swym-registry-manage-page-grid-lists-registry-description-title swym-registry-font-small" id="swym-registry-manage-page-grid-lists-registry-description-title-${registry.Id}"><strong>${swymRegistryStrings.swym_registry_description_label}</strong></p>
28                        <p class="${swymRegistryStrings.swym_registry_custom_para_class} swym-registry-manage-page-grid-lists-registry-description swym-registry-font-small" id="swym-registry-manage-page-grid-lists-registry-description-${registry.Id}">
29                          ${registry.description}
30                        </p>
31                        <div class="swym-registry-manage-page-grid-lists-registry-btn-parent">
32                          <a class="${swymRegistryStrings.swym_registry_custom_link_class}">
33                            <button class="${swymRegistryStrings.swym_registry_custom_btn_class} swym-registry-manage-page-grid-lists-registry-btn" onClick="swymRegistry_manageViewRegistryBtn(${registry.Id})">${swymRegistryStrings.swym_registry_view_registry_button_label}</button>
34                          </a>
35                        </div>
36                      </div>
37                    </li>
38                  `,registry.description.length===0&&(document.querySelector(`#swym-registry-manage-page-grid-lists-registry-description-title-${registry.Id}`).style.display="none",document.querySelector(`#swym-registry-manage-page-grid-lists-registry-description-${registry.Id}`).style.display="none"),"success"})}catch(error){return console.error("Error in showing list of registries for user: ",error),"failed"}else try{const swymRegistry_emptyCardSection=document.getElementById("swym-registry-manage-page-empty-section");swymRegistry_headerTotalRegistries.innerText="0 "+swymRegistryStrings.swym_registry_registry_label,swymRegistry_manageHeader.style.visibility="visible",swymRegistry_pageWrapper.style.visibility="visible",swymRegistry_manageGridLists.style.display="none",swymRegistry_emptyCardSection.style.display="block",document.getElementById("swym-registry-manage-page-create-btn").addEventListener("click",function(e){e.preventDefault(),Shopify.analytics.publish("swym_registry_manage_view",{eventAction:"Create Registry button clicked",customerInfo:{name:"{{ customer.name }}",email:"{{ customer.email }}",id:"{{ customer.id }}"}}),window.location="/pages/swym-registry-form?mode=create"})}catch(error){console.log("Error in Showing 'No registries found card'",error)}}).catch(error=>{_LTracker.push({ErrorLocation:"Get all registries API call - Manage Template",ErrorInfo:{error:{msg:error.message,Reference_stack:error.stack}},MerchantInfo:{pid:authData.swym_registry.pid,shop:Shopify.shop,themeId:Shopify.theme.id,themeName:Shopify.theme.name},CustomerInfo:{customerId:authData.swym_registry.customerId,customerEmail:swymRegistryCustomer.email,userAgent:navigator.userAgent}})})}var swymRegistry_lsInit=JSON.parse(localStorage.getItem(swymRegistry_lsName));const swymRegistry_authData=await swymRegistry_refreshAuth(swymRegistryCustomer,swymRegistry_lsInit);swymRegistry_getRegistryByEmail(swymRegistry_authData),document.querySelector("#swym-registry-copy-text").value=window.location.href}}swymRegistryAddOnloadEvent(swymRegistryOnloadHandler)}catch(e){console.error(e)}})()})();
39//# sourceMappingURL=/cdn/shop/t/18/compiled_assets/scripts.js.map?v=162053296824395517581786692338

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.