https://www.premier-deadsea.com/cdn/shop/t/10/assets/wd-premier-ca…?v=168731108529586404931781528509
1(function(){function getCartDrawer(){return document.getElementById("cart-drawer")}function getCartDrawerSectionId(){const drawer=getCartDrawer();return drawer&&drawer.closest('.shopify-section[id^="shopify-section-"]')?.id?.replace(/^shopify-section-/,"")||""}function isQuickAddForceDrawer(detail){return detail?.baseEvent==="variant:add"&&detail?.onSuccessDo==="force_open_drawer"}function shouldOpenDrawer(detail){return(window.themeVariables?.settings?.cartType==="drawer"||detail?.onSuccessDo==="force_open_drawer")&&detail?.baseEvent==="variant:add"}function dispatchCartChange(detail){document.documentElement.dispatchEvent(new CustomEvent("cart:change",{bubbles:!0,composed:!0,detail}))}function refreshDrawerAndShow(){document.documentElement.dispatchEvent(new CustomEvent("cart:refresh",{bubbles:!0})),requestAnimationFrame(()=>getCartDrawer()?.show?.())}function fetchCartDrawerSectionHtml(sectionId){return fetch(`${Shopify.routes.root}?section_id=${encodeURIComponent(sectionId)}`,{headers:{"X-Requested-With":"XMLHttpRequest"}}).then(response=>{if(!response.ok)throw new Error(`cart drawer section fetch failed (${response.status})`);return response.text()})}function ensureBundledSections(event){const sectionId=getCartDrawerSectionId();!sectionId||event.detail.sections.includes(sectionId)||event.detail.sections.push(sectionId)}function ensureCartDrawerSectionOnChange(event){const detail=event.detail;if(!detail?.cart||!isQuickAddForceDrawer(detail)||detail.__wdPremierCartDrawerHandled)return;const sectionId=getCartDrawerSectionId();if(!sectionId){event.stopPropagation(),event.stopImmediatePropagation(),detail.__wdPremierCartDrawerHandled=!0,refreshDrawerAndShow();return}event.stopPropagation(),event.stopImmediatePropagation(),fetchCartDrawerSectionHtml(sectionId).then(html=>{detail.cart.sections={...detail.cart.sections||{},[sectionId]:html},detail.__wdPremierCartDrawerHandled=!0,dispatchCartChange(detail)}).catch(()=>{detail.__wdPremierCartDrawerHandled=!0,refreshDrawerAndShow()})}function openCartDrawerOnForceOpen(event){shouldOpenDrawer(event.detail)&&getCartDrawer()?.show?.()}function reinforceDrawerRefresh(event){isQuickAddForceDrawer(event.detail)&&requestAnimationFrame(()=>{document.documentElement.dispatchEvent(new CustomEvent("cart:refresh",{bubbles:!0}))})}function init(){document.addEventListener("cart:prepare-bundled-sections",ensureBundledSections,!0),document.addEventListener("cart:change",ensureCartDrawerSectionOnChange,!0),document.addEventListener("cart:change",openCartDrawerOnForceOpen),document.addEventListener("cart:change",reinforceDrawerRefresh)}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",init):init()})(); 2//# sourceMappingURL=/cdn/shop/t/10/assets/wd-premier-cart-drawer.js.map?v=168731108529586404931781528509
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.