/* Build Time: 2026/08/24 12:38:08 */ !function(){var e='.seel_widget *:not(svg,svg *) {\n all: revert;\n}\n#seel_widget {\n border: 1px #d9d9d9 solid;\n border-radius: 5px;\n width: 100%;\n padding: 12px;\n max-width: 500px;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n min-width: 180px;\n text-align: left;\n margin: 10px 0 10px auto;\n color: inherit;\n}\n\n:is(drawer,cart-drawer,.ast-cart__content,.cart-notification,.minicart__content,.quick-cart,.mini-cart-content,.cart-drawer,.drawer,#cart-drawer,.is-opened,.is-open,.dropdn-modal-slide,.mini-cart,mini-cart,.dropdn-modal-slide,#dropdnMinicartPopup) .seel_widget {\n max-width: none;\n}\n\n#seel_widget .seel_widget--title_line--checkbox {\n /* appearance: none !important; */\n min-width: 16px;\n width: 16px !important;\n height: 16px !important;\n border: 1px solid #202223 !important;\n border-radius: 4px;\n display: grid !important;\n place-content: center;\n cursor: pointer !important;\n padding: 0px !important;\n margin: 0 !important;\n position: relative !important;\n border-width: 1px !important;\n}\n\n#seel_widget .seel_widget--title_line--checkbox:focus {\n outline: none;\n}\n.seel_widget--rtl .seel_widget--desc_line--icon{\n margin: 0 !important;\n}\n\n#seel_widget .seel_widget--title_line--checkbox:checked {\n background-color: #2360FD !important;\n border-color: #2360FD !important;\n}\n\n#seel_widget .seel_widget--title_line_input:has(.seel_widget--title_line--checkbox:checked) {\n /* overflow:hidden; */\n border-radius: 4px;\n}\n\n#seel_widget .seel_widget--title_line--checkbox::before {\n content: "";\n position: static !important;\n display: block !important;\n height: 15px;\n width: 12px;\n transform: scale(0);\n box-shadow: inset 1em 1em white;\n clip-path: polygon(13% 48%, 0 61%, 54% 83%, 100% 16%, 80% 11%, 46% 60%);\n}\n\n/* .seel_widget .seel_widget--title_line--checkbox:checked::before {\n transform: scale(1) !important;\n} */\n\n#seel_widget .seel_widget--title_line--name {\n margin: 0 4px 0 8px;\n font-weight: 600;\n /* color: #202223; */\n font-size: 12px;\n line-height: 20px;\n}\n\n#seel_widget .seel_widget--title_line a{\n color: inherit;\n}\n\n#seel_widget .seel_widget--title_line--icon {\n width: 16px !important;\n height: 16px !important;\n fill: currentColor;\n}\n\n#seel_widget .seel_widget--title_line--icon:hover {\n cursor: pointer;\n}\n\n#seel_widget .seel_widget--title_line {\n display: flex;\n flex-direction: row;\n height: 20px;\n align-items: center;\n /* margin-bottom: 10px; */\n}\n\n#seel_widget .seel_widget--desc_line {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n#seel_widget .seel_widget--desc_line--icon {\n /*flex: 0 0 18px;*/\n /*width: 24px;*/\n /*height: 22px;*/\n /*margin-right: 8px;*/\n /* flex: 0 0 18px; */\n /* width: 24px;\n height: 24px; */\n margin-right: 7px;\n /* margin-left: -4px; */\n}\n#seel_widget .seel_widget--desc_line--icon svg {\n width: 100%;\n}\n#seel_widget .seel_widget--desc_line--icon svg path{\n stroke: currentColor;\n}\n\n.seel_widget--title_line svg{\n width:16px;\n height:16px;\n fill: currentColor;\n stroke: none;\n opacity: 0.6;\n}\n\n.seel_widget--title_line svg path{\n fill: currentColor;\n}\n\n\n#seel_widget .seel_widget--desc_line--des {\n margin-top: 6px;\n display: flex;\n align-items: center;\n}\n#seel_widget .seel_widget--desc_line--icon {\n flex-shrink: 0;\n}\n\n#seel_widget .seel_widget--desc_line--text {\n font-size: 12px;\n line-height: 1.5em;\n}\n\n\n#seel_widget .seel_widget--title_line_input{\n flex: 0 0 16px;\n position: relative;\n}\n\n\n#seel_widget .custom-checkbox {\n position: relative;\n z-index: 1;\n}\n\n#seel_widget .loading-spinner {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 16px;\n height: 16px;\n margin-top: -10px;\n margin-left: -10px;\n border: 2px solid transparent;\n border-top-color: rgb(35, 96, 253);\n border-radius: 50%;\n animation: spin 1s linear infinite;\n display: none; /* 默认隐藏 */\n pointer-events: none;\n z-index: 100;\n}\n\n@keyframes spin {\n to {\n transform: rotate(360deg);\n }\n}\n\n/* ========== 结账按钮小部件样式 (参考 captain 项目 insurance.css) ========== */\n.seel-checkout-button {\n margin: 10px 0;\n width: 100%;\n}\n\n.seel-checkout-button .seel-checkout-a-link:before {\n content: none !important;\n display: none !important;\n}\n\n.seel-checkout-button .seel-checkout-a-link {\n display: inline-flex;\n align-items: center;\n text-decoration: none;\n}\n.seel-checkout-button .seel-checkout-a-link-info {\n display: flex;\n margin-left: 4px;\n cursor: pointer;\n}\n.seel-checkout-button .seel-checkout-a-link-ordinary {\n color: unset;\n text-decoration: underline;\n margin: 0;\n text-align: center;\n font-size: 15px;\n display: block !important;\n padding: 12px 0 0 0;\n width: 100%;\n}\n.seel-checkout-button .seel-checkout-a-link-ordinary:hover {\n opacity: 0.8 !important;\n}\n\n.seel-checkout-button .seel-checkout-button-submit {\n margin: 0;\n width: 100%;\n cursor: pointer;\n}\n.seel-checkout-button .seel-checkout-button-submit:hover {\n opacity: 0.8 !important;\n}\n\n.seel-checkout-button .tm_cart {\n max-width: 400px;\n padding: 10px 5px;\n display: flex !important;\n flex-direction: row;\n margin: 0 0 0 auto;\n gap: 10px;\n}\n\n.seel-checkout-button .tm_cart_content {\n line-height: 18px;\n white-space: normal;\n flex: 1;\n}\n\n.seel-checkout-button .tm_cart_f {\n font-size: 14px;\n display: flex !important;\n font-weight: bold;\n text-align: left;\n justify-content: space-between;\n align-items: center;\n}\n\n.seel-checkout-button .tm_cart_description {\n font-size: 13px;\n text-align: left;\n font-weight: 450;\n margin-top: 4px;\n}\n\n.seel-checkout-button .seel-checkout-max-width {\n box-sizing: border-box;\n width: 100%;\n max-width: 500px;\n}\n\n:is(drawer, cart-drawer, .cart-notification, .minicart__content, .quick-cart, .mini-cart-content, .cart-drawer, .drawer, #cart-drawer, .is-opened, .is-open, .dropdn-modal-slide, .mini-cart, mini-cart, .dropdn-modal-slide, #dropdnMinicartPopup) .seel-checkout-button #tm_cart {\n max-width: none;\n}\n.seel-insurance {\n display: inline-block;\n width: 100%;\n max-width: 600px;\n}\n\n/* Learn-more modal: Shadow DOM styles in learnMoreModal.ts */',t=".seel-insurance",n=[{name:"upCart",id:"#upCart",anchor:".upcart-checkout-button-container",footerUpdateSection:".upcart-checkout-button,.styles_Footer__cartSubtotalValue__,.upcartEndTotal",submit:".upcart-checkout-button"},{name:"vangaSmartcart",id:"#vanga-smartcart",anchor:".vanga-cart__summary",footerUpdateSection:".vanga-cart__summary-subtotal dd",submit:'[part="vanga-checkout-button"]'},{name:"opusShadowContainer",id:"#opus-shadow-container",anchor:".opus-btn-checkout",footerUpdateSection:".opus-price .money",submit:".cd-checkout-section-button"},{name:"kachingCart",id:"kaching-cart-drawer#cart-drawer",anchor:"#kaching-cart__checkout-button",footerUpdateSection:".kaching-cart__subtotal span",submit:"#kaching-cart__checkout-button"},{name:"aopCart",id:"#aov-cart-drawer",anchor:".AOV-CDMinimal__ButtonGroup,.AOV-CDMinimal__CheckoutButton,.AOV-CartDrawer-Checkout",footerUpdateSection:"#aov-cart-drawer .cart-final-subtotal",submit:".AOV-CDMinimal__CheckoutButton,.AOV-CartDrawer-Checkout"}],i=n.map(e=>e.id).join(","),o=()=>!!document.querySelector(i),r="seel-widget-style",a="data-polyfill-insurance",s={creatDom:()=>{},updateTemplate:(e,t)=>{},updateWidgetDom:()=>{},remove:()=>{},submitDom:()=>[],updateCartTotal:()=>{},hasInsuranceDom:()=>!1,setOnReady:()=>{}},c=null;function l(){return c||(o()?c=new d:s)}var d=class{id=i;anchor=n.map(e=>e.anchor).join(",");footerUpdateSection=n.map(e=>e.footerUpdateSection).join(",");submit=n.map(e=>e.submit).join(",");shadowRoot=[];observers=[];onReady=null;latestTemplate="";latestIsCheckoutButton=!1;syncQueued=!1;setOnReady(e){this.onReady=e}constructor(){const e=setInterval(()=>{const t=Array.from(document.querySelectorAll(this.id));console.log("doms",t);const n=t.map(e=>e.shadowRoot).filter(Boolean);(n.length||t.length)&&(clearInterval(e),this.shadowRoot=n.length?n:t,console.log("shadowRoot",this.shadowRoot),this.styles(),this.syncDom(),this.onReady?.(),this.onReady=null)},300);setTimeout(()=>{clearInterval(e)},1e4)}cartDom(e){return this.shadowRoot.flatMap(t=>Array.from(t?.querySelectorAll(e)??[]))||[]}insuranceDom(e){return e?Array.from(e.querySelectorAll(t)):this.cartDom(t)}queryByPriority(e,t){const n=t.split(",").map(e=>e.trim()).filter(Boolean);for(const i of n){const t=Array.from(e.querySelectorAll(i));if(t.length>0)return t}return[]}anchorDom(e){return e?this.queryByPriority(e,this.anchor):this.cartDom(this.anchor)}async styles(){this.shadowRoot.length&&this.shadowRoot.forEach(t=>{if(t.querySelector(`style[data-id="${r}"]`))return;const n=document.createElement("style");n.setAttribute("data-id",r),n.textContent=`${e} #seel_widget{max-width: none !important;}`,t.appendChild(n)})}startObservers(){this.observers.forEach(e=>e.disconnect()),this.observers=[],this.shadowRoot.forEach(e=>{const t=new MutationObserver(e=>{this.shouldIgnoreMutations(e)||this.queueSyncDom()});t.observe(e,{childList:!0,subtree:!0}),this.observers.push(t)})}stopObservers(){this.observers.forEach(e=>e.disconnect()),this.observers=[]}shouldIgnoreMutations(e){return e.every(e=>{const n=e.target?.closest?.(t),i=Array.from(e.addedNodes).every(e=>this.isPolyfillNode(e)),o=Array.from(e.removedNodes).every(e=>this.isPolyfillNode(e));return!!n||i&&o})}isPolyfillNode(e){return!(e instanceof Element)||(!!e.matches(t)||(!!e.hasAttribute(a)||!!e.closest(t)))}queueSyncDom(){this.syncQueued||(this.syncQueued=!0,requestAnimationFrame(()=>{this.syncQueued=!1,this.syncDom()}))}ensureDomInRoot(e){const n=this.anchorDom(e);n.length&&n.forEach(e=>{e.previousElementSibling?.matches(t)||e.insertAdjacentHTML("beforebegin",`
`)})}syncDom(){this.shadowRoot.length&&(this.shadowRoot.forEach(e=>{this.ensureDomInRoot(e)}),this.latestTemplate&&this.insuranceDom().forEach(e=>{e.innerHTML!==this.latestTemplate&&(e.innerHTML=this.latestTemplate)}),this.latestIsCheckoutButton&&this.hideShadowSubmitButtons())}hideShadowSubmitButtons(){this.cartDom(this.submit).forEach(e=>{e.getAttribute("data-seel-button")||(e.style.display="none")})}restoreShadowSubmitButtons(){this.cartDom(this.submit).forEach(e=>{e.getAttribute("data-seel-button")||(e.style.display="",e.offsetHeight)})}remove=()=>{this.latestTemplate="",this.latestIsCheckoutButton=!1,this.stopObservers(),this.cartDom(t)?.forEach(e=>{e.remove()}),this.restoreShadowSubmitButtons(),setTimeout(()=>{this.restoreShadowSubmitButtons()},30),setTimeout(()=>{this.restoreShadowSubmitButtons()},300)};creatDom(){this.syncDom()}updateTemplate(e,t=!1){this.latestTemplate=e,this.latestIsCheckoutButton=t,t?0===this.observers.length&&this.startObservers():this.stopObservers(),this.syncDom(),t&&(this.hideShadowSubmitButtons(),setTimeout(()=>this.hideShadowSubmitButtons(),30),setTimeout(()=>this.hideShadowSubmitButtons(),300))}updateWidgetDom(e){this.cartDom(".seel_widget--title_line--checkbox")?.forEach(t=>{t.checked=e})}submitDom(){return this.cartDom(this.submit)}updateCartTotal(e){setTimeout(()=>{this.cartDom(this.footerUpdateSection).forEach(t=>{"a"===t.tagName.toLowerCase()?t.innerHTML=(t?.innerText||t.innerHTML).replace(/•.*$/,"• "+e):t.innerHTML=e})},100)}hasInsuranceDom(){return this.cartDom(t).length>0}},u=["cart/change","cart/add","cart/update","cart.js"];function h(e,t){let n=null;return(...i)=>{n&&clearTimeout(n),n=setTimeout(()=>{n=null,e(...i)},t)}}var m="seel-widget-style",p=".seel-insurance",f=/^(.+?):root\s+(.+)$/,g=[],b=new Map,w=null,v=h(()=>{w?.()},150);function y(e){return[e.anchor,e.dynamicAnchor,e.submit,e.dynamicSubmit,e.footerUpdateSection,e.dynamicFooterUpdateSection].some(e=>!!e&&/:root\s+/.test(e))}function k(e,t){if(!t.trim())return[];let n=[];try{n=[...e.querySelectorAll(t)]}catch{return[]}for(const i of e.querySelectorAll("*"))i.shadowRoot&&n.push(...k(i.shadowRoot,t));return n}function _(e){return!(e instanceof Element)||(!!e.matches(p)||!!e.closest(p))}function S(e){if(b.has(e))return;const t=new MutationObserver(e=>{(function(e){return e.every(e=>{const t=e.target?.closest?.(p),n=Array.from(e.addedNodes).every(e=>_(e)),i=Array.from(e.removedNodes).every(e=>_(e));return!!t||n&&i})})(e)||v()});t.observe(e,{childList:!0,subtree:!0}),b.set(e,t)}function x(t){g.includes(t)||(g.push(t),function(t){if(t.querySelector(`style[data-id="${m}"]`))return;const n=document.createElement("style");n.setAttribute("data-id",m),n.textContent=`${e} #seel_widget{max-width: none !important;}`,t.appendChild(n)}(t),S(t))}function C(e){!function(){for(let e=g.length-1;e>=0;e--){const t=g[e];t.host.isConnected||(b.get(t)?.disconnect(),b.delete(t),g.splice(e,1))}}();const t=[];for(const n of g)try{t.push(...n.querySelectorAll(e))}catch{}return t}function L(e){const t=e.trim();if(!t)return[];const n=t.match(f);if(n)return function(e,t){const n=k(document,e),i=[];for(const o of n){const e=o.shadowRoot;e&&(x(e),i.push(...k(e,t)))}return i}(n[1].trim(),n[2].trim());let i=[];try{i=[...document.querySelectorAll(t)]}catch{return C(t)}return[...i,...C(t)]}function P(e){if(!e)return[];const t=new Set,n=[];for(const i of e.split(","))for(const e of L(i))t.has(e)||(t.add(e),n.push(e));return n}function I(e){return P(e)[0]??null}function A(e){return P(e)}function F(e){const t=document.createElement("style");t.textContent=e,document.body.appendChild(t)}async function T(e){try{return(await e).json()}catch(t){return console.log(`seel:fetch ${t}`),null}}function R(){return window.location.href.includes("/cart")}function M(e){return u.some(t=>e.includes(t))}var E="pp_gsp-",V="seel-user-id",j="seel-session-id",W=(e,t)=>(n,i)=>{const o=e.getItem(t?`${t}${n}`:n);try{if(null!==o)return JSON.parse(o)}catch(r){console.log(`seel: Error reading Storage key '${t?`${t}${n}`:n}':`,r)}return i??null},z=(e,t)=>(n,i)=>{try{e.setItem(t?`${t}${n}`:n,JSON.stringify(void 0!==i?i:null))}catch(o){console.log(`seel: Error writing Storage key '${t?`${t}${n}`:n}':`,o)}},N=(e,t)=>n=>e.removeItem(t?`${t}${n}`:n),D=(W(localStorage,E),z(localStorage,E),N(localStorage,E),W(sessionStorage,E)),Z=z(sessionStorage,E),B=(N(sessionStorage,E),function(e){return e[e.PartialRender=1]="PartialRender",e[e.FakeUpdate=2]="FakeUpdate",e}({})),G={type:1,anchor:"[name='checkout'],a[href='/checkout']",position:"beforebegin",dynamicAnchor:"",dynamicPosition:"beforebegin",updateSection:"",dynamicUpdateSection:"",dynamicFooterUpdateSection:"",isRefreshCartPage:!1,ppSeelCartTemplate:!1,sections:"",dynamicSection:"",footerUpdateSection:".totals__subtotal-value,.totals__total-value,.cart__subtotal,.cart-summary__subtotal .amount .theme-money,[data-hulkapps-cart-total]",submit:'[name="checkout"],a[href="/checkout"]',dynamicSubmit:"",isPrevent:!0,weight:0},H=function(e){return e.LEARNMORE_MODAL="learnmore-modal",e}({}),$=["min-height","paddingTop","paddingRight","paddingBottom","paddingLeft","borderWidth","borderStyle","borderColor","borderRadius","boxSizing","position","overflow","overflowX","overflowY","backgroundColor","backgroundImage","backgroundSize","backgroundPosition","backgroundRepeat","fontSize","fontWeight","fontFamily","lineHeight","color","textAlign","textDecoration","textTransform","letterSpacing","opacity","boxShadow","cursor","flex","flexDirection","justifyContent","alignItems"];function U(e){const t=e.split(",");for(const n of t){const e=I(n.trim());if(e)return e}return null}function O(e,t){const n=window.getComputedStyle(e);let i="";return $.forEach(e=>{const o=n[e];if(o&&t&&("backgroundColor"===e&&"rgba(0, 0, 0, 0)"===o?t.style.backgroundColor="#000":t&&(t.style[e]=o)),!t&&o){const t=/[A-Z]/.test(e)?e.replace(/([A-Z])/g,"-$1").toLowerCase():e,n="string"==typeof o?o.replace(/"/g,"'"):o;i+="background-color"===t&&"rgba(0, 0, 0, 0)"===n?"background-color: rgba(var(--color-button));":`${t}: ${n};`}}),t&&(t.style.width="100%",t.style.maxWidth="500px",t.style.minHeight="40px"),i&&(i+="width: 100%; max-width: 500px; min-height: 40px;"),t?t.style.cssText:i}var Y=function(e){return e.Amount="{{amount}}",e.AmountNoDecimals="{{amount_no_decimals}}",e.AmountWithCommaSeparator="{{amount_with_comma_separator}}",e.AmountNoDecimalsWithCommaSeparator="{{amount_no_decimals_with_comma_separator}}",e.AmountWithApostropheSeparator="{{amount_with_apostrophe_separator}}",e.AmountNoDecimalsWithSpaceSeparator="{{amount_no_decimals_with_space_separator}}",e.AmountWithSpaceSeparator="{{amount_with_space_separator}}",e.AmountWithPeriodAndSpaceSeparator="{{amount_with_period_and_space_separator}}",e}({}),X={USD:"en-US",CAD:"en-CA",GBP:"en-GB",EUR:"de-DE",AUD:"en-AU",NZD:"en-NZ",PLN:"pl-PL",HUF:"de-DE",CZK:"cs-CZ"},q=(e,t)=>{const n=Number(e),i=window.Shopify.currency.active,o={style:"currency",currency:i,minimumFractionDigits:2,maximumFractionDigits:2},r=`${window.Shopify.locale}-${window.Shopify.country}`;let a=n.toLocaleString(r,o);return t&&(a=((e,t,n)=>{const i=Number(e),o={useGrouping:!0,style:"decimal",currency:n,minimumFractionDigits:2,maximumFractionDigits:2},r=`${window.Shopify.locale}-${window.Shopify.country}`;let a;const s=String(t).replace(/{{(.+?)}}/g,(e,t)=>`{{${t.replace(/\s+/g,"")}}}`),c=s.match(/{{\s*(.*?)\s*}}/);switch(c?c[0]:s){case Y.Amount:a=i.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2});break;case Y.AmountNoDecimals:o.maximumFractionDigits=0,o.minimumFractionDigits=0,a=i.toLocaleString(X[n]||r,o);break;case Y.AmountWithCommaSeparator:a=i.toLocaleString(X[n]||r,o);break;case Y.AmountNoDecimalsWithCommaSeparator:o.maximumFractionDigits=0,o.minimumFractionDigits=0,a=i.toLocaleString(X[n]||r,o);break;case Y.AmountWithApostropheSeparator:a=i.toLocaleString("de-CH",o).replace(/’/g,"'");break;case Y.AmountNoDecimalsWithSpaceSeparator:o.maximumFractionDigits=0,o.minimumFractionDigits=0,a=i.toLocaleString("fr-FR",o);break;case Y.AmountWithSpaceSeparator:a=i.toLocaleString("fr-FR",o);break;case Y.AmountWithPeriodAndSpaceSeparator:a=i.toLocaleString("en-US",o).replace(/,/g," ");break;default:a=i.toLocaleString()}return s.replace(/{{\s*(.*?)\s*}}/,a)})(e,t,i)),a},J=new class{subscribers={};on(e,t){this.subscribers[e]||(this.subscribers[e]=[]),this.subscribers[e].push(t)}emit(e,t){this.subscribers[e]&&this.subscribers[e].forEach(e=>e(t))}off(e,t){this.subscribers[e]&&(this.subscribers[e]=this.subscribers[e].filter(e=>e!==t))}},Q={en:{"Shipping Protection":"Shipping Protection","Peace of mind for loss, damage, theft, and delay":"Peace of mind for loss, damage, theft, and delay","What’s covered?":"What’s covered?","Marked delivered but not received, or lost in transit.":"Marked delivered but not received, or lost in transit.","Items arrive damaged or broken.":"Items arrive damaged or broken.","Porch piracy or theft after delivery.":"Porch piracy or theft after delivery.","Not delivered within the delay window after shipment.":"Not delivered within the delay window after shipment.","Fast claims: Most claims are resolved within 48 hours.":"Fast claims: Most claims are resolved within 48 hours.","Easy to file: Submit online in minutes.":"Easy to file: Submit online in minutes.","Get protection":"Get protection","No, I don’t need protection":"No, I don’t need protection","FAQ · Terms & Conditions":"FAQ · Terms & Conditions"},fr:{"Shipping Protection":"Protection d'expédition","Peace of mind for loss, damage, theft, and delay":"Tranquillité d'esprit en cas de perte, dommages, vol et retard","What’s covered?":"Qu'est-ce qui est couvert ?","Marked delivered but not received, or lost in transit.":"Marqué comme livré mais non reçu, ou perdu en transit.","Items arrive damaged or broken.":"Les articles arrivent endommagés ou cassés.","Porch piracy or theft after delivery.":"Vol de colis devant la porte ou après la livraison.","Not delivered within the delay window after shipment.":"Non livré dans le délai imparti après l'expédition.","Fast claims: Most claims are resolved within 48 hours.":"Réclamations rapides : la plupart des réclamations sont résolues dans les 48 heures.","Easy to file: Submit online in minutes.":"Facile à soumettre : faites votre demande en ligne en quelques minutes.","Get protection":"Obtenir la protection","No, I don’t need protection":"Non, je n'ai pas besoin de protection","FAQ · Terms & Conditions":"FAQ · Conditions générales"},de:{"Shipping Protection":"Versandschutz","Peace of mind for loss, damage, theft, and delay":"Sorgenfrei bei Verlust, Beschädigung, Diebstahl und Verzögerung","What’s covered?":"Was ist abgedeckt?","Marked delivered but not received, or lost in transit.":"Als zugestellt markiert, aber nicht erhalten, oder auf dem Transportweg verloren.","Items arrive damaged or broken.":"Artikel kommen beschädigt oder kaputt an.","Porch piracy or theft after delivery.":"Paketdiebstahl vor der Haustür oder nach der Lieferung.","Not delivered within the delay window after shipment.":"Nicht innerhalb des vorgesehenen Zeitfensters nach dem Versand geliefert.","Fast claims: Most claims are resolved within 48 hours.":"Schnelle Schadensabwicklung: Die meisten Ansprüche werden innerhalb von 48 Stunden geklärt.","Easy to file: Submit online in minutes.":"Einfache Einreichung: Online in wenigen Minuten beantragen.","Get protection":"Schutz sichern","No, I don’t need protection":"Nein, ich brauche keinen Schutz","FAQ · Terms & Conditions":"FAQ · Allgemeine Geschäftsbedingungen"},it:{"Shipping Protection":"Protezione della spedizione","Peace of mind for loss, damage, theft, and delay":"Tranquillità in caso di smarrimento, danni, furto e ritardo","What’s covered?":"Cosa è coperto?","Marked delivered but not received, or lost in transit.":"Contrassegnato come consegnato ma non ricevuto, o smarrito durante il trasporto.","Items arrive damaged or broken.":"Gli articoli arrivano danneggiati o rotti.","Porch piracy or theft after delivery.":"Furto del pacco all'ingresso o dopo la consegna.","Not delivered within the delay window after shipment.":"Non consegnato entro la finestra di ritardo dopo la spedizione.","Fast claims: Most claims are resolved within 48 hours.":"Reclami veloci: la maggior parte dei reclami viene risolta entro 48 ore.","Easy to file: Submit online in minutes.":"Facile da presentare: invia la richiesta online in pochi minuti.","Get protection":"Ottieni protezione","No, I don’t need protection":"No, non ho bisogno di protezione","FAQ · Terms & Conditions":"FAQ · Termini e Condizioni"},nl:{"Shipping Protection":"Verzendbescherming","Peace of mind for loss, damage, theft, and delay":"Gemoedsrust bij verlies, schade, diefstal en vertraging","What’s covered?":"Wat is gedekt?","Marked delivered but not received, or lost in transit.":"Gemarkeerd als bezorgd maar niet ontvangen, of kwijtgeraakt tijdens transport.","Items arrive damaged or broken.":"Artikelen komen beschadigd of kapot aan.","Porch piracy or theft after delivery.":"Pakketdiefstal bij de voordeur of na bezorging.","Not delivered within the delay window after shipment.":"Niet bezorgd binnen het aangegeven tijdsbestek na verzending.","Fast claims: Most claims are resolved within 48 hours.":"Snelle claims: De meeste claims worden binnen 48 uur opgelost.","Easy to file: Submit online in minutes.":"Eenvoudig in te dienen: Online aanvragen in een paar minuten.","Get protection":"Bescherming toevoegen","No, I don’t need protection":"Nee, ik heb geen bescherming nodig","FAQ · Terms & Conditions":"FAQ · Algemene voorwaarden"},es:{"Shipping Protection":"Protección de envío","Peace of mind for loss, damage, theft, and delay":"Tranquilidad en caso de pérdida, daños, robo y retraso","What’s covered?":"¿Qué está cubierto?","Marked delivered but not received, or lost in transit.":"Marcado como entregado pero no recibido, o perdido en tránsito.","Items arrive damaged or broken.":"Los artículos llegan dañados o rotos.","Porch piracy or theft after delivery.":"Robo de paquetes en la puerta o después de la entrega.","Not delivered within the delay window after shipment.":"No entregado dentro del plazo de retraso posterior al envío.","Fast claims: Most claims are resolved within 48 hours.":"Reclamaciones rápidas: la mayoría se resuelven en 48 horas.","Easy to file: Submit online in minutes.":"Fácil de presentar: envíalo online en minutos.","Get protection":"Obtener protección","No, I don’t need protection":"No, no necesito protección","FAQ · Terms & Conditions":"FAQ · Términos y condiciones"},"pt-BR":{"Shipping Protection":"Proteção de envio","Peace of mind for loss, damage, theft, and delay":"Tranquilidade em caso de perda, danos, roubo e atraso","What’s covered?":"O que está coberto?","Marked delivered but not received, or lost in transit.":"Marcado como entregue mas não recebido, ou perdido em trânsito.","Items arrive damaged or broken.":"Os itens chegam danificados ou quebrados.","Porch piracy or theft after delivery.":"Roubo de pacotes na porta ou após a entrega.","Not delivered within the delay window after shipment.":"Não entregue dentro do prazo limite após o envio.","Fast claims: Most claims are resolved within 48 hours.":"Reivindicações rápidas: a maioria dos casos é resolvida em 48 horas.","Easy to file: Submit online in minutes.":"Fácil de abrir: envie online em minutos.","Get protection":"Obter proteção","No, I don’t need protection":"Não, eu não preciso de proteção","FAQ · Terms & Conditions":"FAQ · Termos e Condições"},"pt-PT":{"Shipping Protection":"Proteção de envio","Peace of mind for loss, damage, theft, and delay":"Tranquilidade em caso de perda, danos, roubo e atraso","What’s covered?":"O que está coberto?","Marked delivered but not received, or lost in transit.":"Marcado como entregue mas não recebido, ou perdido em trânsito.","Items arrive damaged or broken.":"Os artigos chegam danificados ou partidos.","Porch piracy or theft after delivery.":"Roubo de encomendas à porta ou após a entrega.","Not delivered within the delay window after shipment.":"Não entregue dentro do prazo limite após o envio.","Fast claims: Most claims are resolved within 48 hours.":"Reclamações rápidas: a maioria dos casos é resolvida em 48 horas.","Easy to file: Submit online in minutes.":"Fácil de apresentar: envie online em minutos.","Get protection":"Obter proteção","No, I don’t need protection":"Não, não preciso de proteção","FAQ · Terms & Conditions":"FAQ · Termos e Condições"},cs:{"Shipping Protection":"Ochrana zásilky","Peace of mind for loss, damage, theft, and delay":"Klid na duši v případě ztráty, poškození, krádeže a zpoždění","What’s covered?":"Co je kryto?","Marked delivered but not received, or lost in transit.":"Označeno jako doručené, ale nepřijaté, nebo ztracené během přepravy.","Items arrive damaged or broken.":"Položky dorazí poškozené nebo rozbité.","Porch piracy or theft after delivery.":"Krádež balíčku přede dveřmi nebo po doručení.","Not delivered within the delay window after shipment.":"Nedoručeno v rámci časového okna po odeslání.","Fast claims: Most claims are resolved within 48 hours.":"Rychlé vyřízení: Většina reklamací je vyřešena do 48 hodin.","Easy to file: Submit online in minutes.":"Snadné podání: Odešlete online během několika minut.","Get protection":"Získat ochranu","No, I don’t need protection":"Ne, nepotřebuji ochranu","FAQ · Terms & Conditions":"FAQ · Obchodní podmínky"},pl:{"Shipping Protection":"Ochrona wysyłki","Peace of mind for loss, damage, theft, and delay":"Spokój ducha w przypadku zgubienia, uszkodzenia, kradzieży i opóźnienia","What’s covered?":"Co obejmuje ochrona?","Marked delivered but not received, or lost in transit.":"Oznaczone jako dostarczone, ale nieodebrane, lub zagubione w transporcie.","Items arrive damaged or broken.":"Przedmioty docierają uszkodzone lub zepsute.","Porch piracy or theft after delivery.":"Kradzież paczki spod drzwi lub po dostawie.","Not delivered within the delay window after shipment.":"Niedostarczone w wyznaczonym oknie czasowym od wysyłki.","Fast claims: Most claims are resolved within 48 hours.":"Szybkie roszczenia: większość wniosków jest rozpatrywana w ciągu 48 godzin.","Easy to file: Submit online in minutes.":"Łatwe zgłaszanie: złóż wniosek online w kilka minut.","Get protection":"Zyskaj ochronę","No, I don’t need protection":"Nie, nie potrzebuję ochrony","FAQ · Terms & Conditions":"FAQ · Regulamin"},hu:{"Shipping Protection":"Szállítási védelem","Peace of mind for loss, damage, theft, and delay":"Nyugalom elvesztés, sérülés, lopás és késedelem esetén","What’s covered?":"Mit fedez?","Marked delivered but not received, or lost in transit.":"Kézbesítettnek jelölve, de nem kapta meg, vagy szállítás közben elveszett.","Items arrive damaged or broken.":"A termékek sérülten vagy törötten érkeznek.","Porch piracy or theft after delivery.":"Csomaglopás az ajtó elől vagy kiszállítás után.","Not delivered within the delay window after shipment.":"Nem került kiszállításra a feladás utáni határidőn belül.","Fast claims: Most claims are resolved within 48 hours.":"Gyors kárrendezés: A legtöbb igényt 48 órán belül elbírálják.","Easy to file: Submit online in minutes.":"Könnyű benyújtás: Igényelje online perceken belül.","Get protection":"Védelem kérése","No, I don’t need protection":"Nem, nincs szükségem védelemre","FAQ · Terms & Conditions":"GYIK · Felhasználási feltételek"}},K={"3d54b1-24.myshopify.com":{en:{"Peace of mind for loss, damage, theft, and delay":"Peace of mind for loss, damage, theft","Not delivered within the delay window after shipment.":""},fr:{"Peace of mind for loss, damage, theft, and delay":"Tranquillité d'esprit en cas de perte, dommages, vol","Not delivered within the delay window after shipment.":""},de:{"Peace of mind for loss, damage, theft, and delay":"Sorgenfrei bei Verlust, Beschädigung, Diebstahl","Not delivered within the delay window after shipment.":""},it:{"Peace of mind for loss, damage, theft, and delay":"Tranquillità in caso di smarrimento, danni, furto","Not delivered within the delay window after shipment.":""},nl:{"Peace of mind for loss, damage, theft, and delay":"Gemoedsrust bij verlies, schade, diefstal","Not delivered within the delay window after shipment.":""},es:{"Peace of mind for loss, damage, theft, and delay":"Tranquilidad en caso de pérdida, daños, robo","Not delivered within the delay window after shipment.":""},"pt-BR":{"Peace of mind for loss, damage, theft, and delay":"Tranquilidade em caso de perda, danos, roubo","Not delivered within the delay window after shipment.":""},"pt-PT":{"Peace of mind for loss, damage, theft, and delay":"Tranquilidade em caso de perda, danos, roubo","Not delivered within the delay window after shipment.":""},cs:{"Peace of mind for loss, damage, theft, and delay":"Klid na duši v případě ztráty, poškození, krádeže","Not delivered within the delay window after shipment.":""},pl:{"Peace of mind for loss, damage, theft, and delay":"Spokój ducha w przypadku zgubienia, uszkodzenia, kradzieży","Not delivered within the delay window after shipment.":""},hu:{"Peace of mind for loss, damage, theft, and delay":"Nyugalom elvesztés, sérülés, lopás esetén","Not delivered within the delay window after shipment.":""}}},ee="seel-learn-more-modal",te="seel-learn-more-modal-shadow-host";function ne(){const e=document.getElementById(ee),t=document.getElementById(te);if(!e?.open||!t)return;if(!t.classList.contains("seel-learn-more-modal--visible"))return void e.close();t.classList.remove("seel-learn-more-modal--visible");let n=!1;const i=()=>{n||(n=!0,e.close())},o=e=>{e.target===t&&"opacity"===e.propertyName&&(t.removeEventListener("transitionend",o),i())};t.addEventListener("transitionend",o),window.setTimeout(()=>{t.removeEventListener("transitionend",o),i()},350)}function ie(e){if(document.getElementById("seel-learn-more-modal"))return;const t=window.Shopify?.locale??"en",n=Object.keys(Q).includes(t)?Q[t]:Q.en,i=window.Shopify?.shop;console.log("shopDomain",i),console.log("specialTranslations",K);const o=i?K?.[i]?.[t]:null;console.log("specialOverride",o);const r=o?{...n,...o}:n,[a,s]=r["FAQ · Terms & Conditions"].split(" · "),{primaryButtonExtraClass:c,onGetProtection:l}=e,d=document.createElement("dialog");d.id=ee,d.setAttribute("aria-label",r["Shipping Protection"]),d.style.cssText="border:none;margin:0;padding:0;position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;background:transparent;box-sizing:border-box;";const u=document.createElement("div");u.style.display="block",u.id=te;const h=e=>`
`,m=h(''),p=h(''),f=h(''),g=h(''),b=u.attachShadow({mode:"open"}),w=document.createElement("style");w.textContent=":host {\n position: fixed;\n inset: 0;\n z-index: calc(infinite);\n display: flex;\n align-items: center;\n justify-content: center;\n padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));\n box-sizing: border-box;\n border: none;\n margin: 0;\n max-width: none;\n max-height: none;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.5);\n opacity: 0;\n visibility: hidden;\n pointer-events: none;\n transition: opacity 0.28s ease, visibility 0.28s ease;\n}\n\n:host(.seel-learn-more-modal--visible) {\n opacity: 1;\n visibility: visible;\n pointer-events: auto;\n}\n\n.seel-learn-more-modal__backdrop {\n position: absolute;\n inset: 0;\n z-index: 0;\n cursor: default;\n}\n\n.seel-learn-more-modal__panel {\n position: relative;\n width: 100%;\n max-width: 540px;\n overflow-y: auto;\n box-sizing: border-box;\n margin: 0;\n padding: 32px 46px;\n background: #fff;\n border-radius: 12px;\n box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);\n text-align: center;\n transform: translateY(10px) scale(0.98);\n opacity: 0;\n transition: transform 0.28s ease, opacity 0.28s ease;\n -webkit-overflow-scrolling: touch;\n z-index: 1;\n}\n\n@media (max-width: 1000px) {\n .seel-learn-more-modal__panel {\n padding: 28px 22px;\n }\n}\n\n.seel-learn-more-modal__panel .seel-learn-more-modal__content {\n width: 100%;\n margin: 0 auto;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n}\n\n.seel-learn-more-modal__content>* {\n width: 100%;\n}\n\n:host(.seel-learn-more-modal--visible) .seel-learn-more-modal__panel {\n transform: translateY(0) scale(1);\n opacity: 1;\n}\n\n.seel-learn-more-modal__close {\n position: absolute;\n top: 12px;\n right: 12px;\n width: 36px;\n height: 36px;\n margin: 0;\n padding: 0;\n border: none;\n background: transparent;\n color: #1a1a1a;\n font-size: 22px;\n line-height: 1;\n cursor: pointer;\n border-radius: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.seel-learn-more-modal__close:hover {\n background: rgba(0, 0, 0, 0.06);\n}\n\n.seel-learn-more-modal__title {\n margin: 0 0 8px 0;\n font-size: 24px;\n font-weight: 700;\n color: #303030;\n line-height: 1.25;\n text-align: center;\n}\n\n.seel-learn-more-modal__subtitle {\n margin: 0 0 20px;\n font-size: 13px;\n line-height: 1.45;\n color: #000;\n font-weight: 450;\n}\n\n.seel-learn-more-modal__section-title {\n margin: 0 0 6px;\n font-size: 14px;\n font-weight: 700;\n color: #303030;\n text-align: left;\n}\n\n.seel-learn-more-modal__list {\n margin: 0 0 16px;\n padding: 0;\n list-style: none;\n text-align: left;\n}\n\n.seel-learn-more-modal__item {\n display: flex;\n gap: 10px;\n align-items: flex-start;\n margin-bottom: 6px;\n font-size: 13px;\n line-height: 1.45;\n color: #333;\n}\n\n.seel-learn-more-modal__item:last-child {\n margin-bottom: 0;\n}\n\n.seel-learn-more-modal__item-icon {\n flex: 0 0 20px;\n width: 20px;\n height: 20px;\n margin-top: 1px;\n color: #444;\n background: #E3E3E3;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.seel-learn-more-modal__summary {\n display: flex;\n padding: 8px 12px;\n flex-direction: column;\n gap: 4px;\n text-align: left;\n box-sizing: border-box;\n background: #F1F1F1;\n border-radius: 8px;\n font-size: 13px;\n font-weight: 450;\n line-height: 20px; \n}\n\n.seel-learn-more-modal__summary p {\n margin: 0;\n color: #303030;\n}\n\n.seel-learn-more-modal__summary a {\n text-decoration: none;\n color: #005BD3;\n}\n\n.seel-learn-more-modal__summary a:hover {\n color: #1d4ed8;\n}\n\n.seel-learn-more-modal__primary {\n display: block;\n width: 100%;\n box-sizing: border-box;\n padding: 14px 16px;\n border: none;\n border-radius: 4px;\n font-size: 15px;\n font-weight: 600;\n text-align: center;\n cursor: pointer;\n font-family: inherit;\n}\n\n.seel-learn-more-modal__decline {\n display: block;\n width: 100%;\n margin-top: 14px;\n padding: 0;\n border: none;\n background: none;\n font-size: 14px;\n color: #555;\n cursor: pointer;\n font-family: inherit;\n}\n\n.seel-learn-more-modal__decline:hover {\n color: #222;\n}\n\n.seel-learn-more-modal__footer {\n margin-top: 20px;\n font-size: 13px;\n line-height: 1.4;\n max-width: 300px;\n}\n\n#seel-learn-more-modal-buttons {\n margin-top: 20px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n}",b.appendChild(w);const v=document.createElement("div");for(v.innerHTML=`\n\n
\n
\n
\n \n

${r["Shipping Protection"]}

\n

${r["Peace of mind for loss, damage, theft, and delay"]}

\n

${r["What’s covered?"]}

\n
    \n ${r["Marked delivered but not received, or lost in transit."]?`
  • ${m}${r["Marked delivered but not received, or lost in transit."]}
  • `:""}\n ${r["Items arrive damaged or broken."]?`
  • ${p}${r["Items arrive damaged or broken."]}
  • `:""}\n ${r["Porch piracy or theft after delivery."]?`
  • ${f}${r["Porch piracy or theft after delivery."]}
  • `:""}\n ${r["Not delivered within the delay window after shipment."]?`
  • ${g}${r["Not delivered within the delay window after shipment."]}
  • `:""}\n
\n
\n

${r["Fast claims: Most claims are resolved within 48 hours."]}

\n

${r["Easy to file: Submit online in minutes."]}

\n
\n ${a}\n \n ${s}\n
\n
\n
\n \n \n
\n
\n
\n
`;v.firstElementChild;)b.appendChild(v.firstElementChild);b.querySelector(".seel-learn-more-modal__panel")?.addEventListener("click",e=>e.stopPropagation()),b.querySelector(".seel-learn-more-modal__backdrop")?.addEventListener("click",()=>{ne()}),b.querySelector("#seel-learn-more-close")?.addEventListener("click",e=>{e.stopPropagation(),ne()}),b.querySelector("#seel-learn-more-decline")?.addEventListener("click",e=>{e.stopPropagation(),ne()});const y=b.querySelector("#seel-learn-more-get-protection");y?.addEventListener("click",async e=>{e.stopPropagation(),ne(),await l()}),d.addEventListener("cancel",e=>{e.preventDefault(),ne()});const k=document.createElement("style");k.textContent=`#${ee}::backdrop{background:transparent;}`,document.head.appendChild(k),d.appendChild(u),document.body.appendChild(d),J.on(H.LEARNMORE_MODAL,({widgetType:e=0}={})=>{const t=U(c)||null,n=D("checked");n||1===e||!t?b.querySelector("#seel-learn-more-modal-buttons")?.setAttribute("style","display: none;"):b.querySelector("#seel-learn-more-modal-buttons")?.removeAttribute("style"),function(e,t){const n=document.getElementById(ee),i=document.getElementById(te);n&&i&&(n.open||(n.showModal(),i.offsetWidth,e&&t&&e&&O(e,t),requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.classList.add("seel-learn-more-modal--visible")})})))}(t,n?void 0:y)})}var oe=".seel-insurance",re={appearance:{border_radius:4,border_width:1,custom_icon_url:"",icon_size:20,icon_url:"https://cdn.parcelpanel.com/insurance/admin/widget-logo-1.svg",padding_horizontal:12,padding_vertical:12},text:{description:"1",title:"1",protected_button_text:"1",basic_button_text:"1"}},ae=class{template="";anchor="";position="beforebegin";dynamicAnchor="";dynamicPosition="beforebegin";dynamicFooterUpdateSection=".totals__total-value";isGlobalFitter=!1;checked=!1;show=!1;priceText="$1.28";styleConfig={checkout:re,plus:re,widget:re};onChange;widgetType=0;checkoutButtonSubmit='[name="checkout"],a[href="/checkout"]';lastCheckoutPrice=0;lastCheckoutTotalPrice;currentTextLocale={title:"",description:"",protected_button_text:"",basic_button_text:""};constructor(e){const{anchor:t,position:n,defaultChecked:i,dynamicAnchor:o,dynamicPosition:r,dynamicFooterUpdateSection:a,onChange:s,priceText:c,isGlobalFitter:l,widgetType:d,checkoutButtonSubmit:u,styleConfig:h,currentTextLocale:m}=e;this.anchor=t,this.position=n||"beforebegin",this.dynamicAnchor=o,this.dynamicPosition=r||"beforebegin",this.dynamicFooterUpdateSection=a||".totals__total-value",this.checked=D("checked",i)??!1,Z("checked",this.checked),this.isGlobalFitter=l,this.priceText=c,this.styleConfig=h,this.onChange=s,this.currentTextLocale=m,null!=d&&(this.widgetType=d),u&&(this.checkoutButtonSubmit=u),window.seel_checkboxChange=async(e,t)=>{t.stopPropagation(),t.preventDefault(),e.disabled=!0,e.nextElementSibling.style.display="block",e.style.opacity=0,e.style.visibility="hidden",await this.setChecked(e.checked,!0),e.disabled=!1,e.style.opacity=1,e.nextElementSibling.style.display="none",e.style.visibility="visible"}}_allRenderedCache=!1;_cacheInvalidated=!0;invalidateCache(){this._cacheInvalidated=!0}get size(){return A(".seel-insurance").length}get isAllWidgetRendered(){return this._cacheInvalidated&&(this._allRenderedCache=this.isGlobalFitter?ce(this.anchor)&&ce(this.dynamicAnchor):se(this.anchor,this.position)&&se(this.dynamicAnchor,this.dynamicPosition),this._cacheInvalidated=!1),this._allRenderedCache}get poly(){return l()}get isRealShow(){return!!this.size}setShow(e){if(this.show=e,this.invalidateCache(),1===this.widgetType)if(this.show){if(A(oe).length>0)return this.setCheckoutButtonPrice(this.lastCheckoutPrice,this.lastCheckoutTotalPrice),void this.invalidateCache();this.create(),this.setCheckoutButtonPrice(this.lastCheckoutPrice,this.lastCheckoutTotalPrice)}else this.remove();else this.show?(this.rerender(),this.isRealShow||(this.show=!1)):this.remove();this.invalidateCache()}setPrice(e){this.priceText!==e&&(this.priceText=e,this.update(this.priceText))}async setChecked(e,t=!1){this.checked!==e&&(this.checked=e,Z("checked",e),t&&await this.onChange(t),this.updateWidgetDom(e))}updateWidgetDom(e){A(".seel_widget--title_line--checkbox")?.forEach(t=>{t.checked=e}),this.poly.updateWidgetDom(e)}rerender(){this.remove(),this.create(),this.update(this.priceText)}create(){if(this.dynamicPosition===this.position){const e=[this.anchor,this.dynamicAnchor].filter(e=>e.trim()).join(",");e&&this.createPlaceholder(e,this.position)}else this.anchor&&this.createPlaceholder(this.anchor,this.position),this.dynamicAnchor&&this.anchor!==this.dynamicAnchor&&this.createPlaceholder(this.dynamicAnchor,this.dynamicPosition);0===this.size&&this.createPlaceholder(G.anchor,G.position),this.poly.creatDom(),this.invalidateCache(),ie({primaryButtonExtraClass:(this.poly.submitDom()[0]?.className?this.poly.submitDom()[0]?.className+" ":"")+this.checkoutButtonSubmit,onGetProtection:()=>this.setChecked(!0,!0)})}insertPlaceHolder(e,t){const n="seel-insurance",i=["seel-insurance","return-insurance","ship-insurance"],o=i.indexOf(n);if(0!==o){for(let t=0;t`)}e.insertAdjacentHTML(t.position,`
`)}else e.insertAdjacentHTML(t.position,`
`)}createPlaceholder(e,t){const n=A(e);this.isGlobalFitter?n.forEach(e=>{const n=e.parentElement||e;this.insertPlaceHolder(n,{position:t})}):n.forEach(e=>{this.insertPlaceHolder(e,{position:t})})}update(e){this.template=de({price:e,checked:this.checked,styleConfig:this.styleConfig,currentTextLocale:this.currentTextLocale}),A(".seel-insurance").forEach(e=>{e.innerHTML!==this.template&&(e.innerHTML=this.template)}),this.poly.updateTemplate(this.template),this.invalidateCache()}setCheckoutButtonPrice(e,t){this.lastCheckoutPrice=e,this.lastCheckoutTotalPrice=t;const n=window.seel_global?.info?.quote;let i;window.seel_global?.config?.moneyFormat&&n&&n.convertedSymbol===n.symbol&&(i=window.seel_global.config.moneyFormat);const o=q(e,i),r=t?q(t,i):"",a=this.styleConfig?.checkout?.text?.description,s=(this.poly.submitDom()[0]?.className?this.poly.submitDom()[0]?.className+" ":"")+this.checkoutButtonSubmit,c=function(e){const{title:t,protectedText:n,noProtectedText:i,classNamesCheckout:o="",checkout_description:r,dynamicFooterUpdateSection:a,totalStr:s,priceStr:c}=e,l=r?`
${r}
`:"",d=U(o);let u="";const h=I(a);u=d?.contains(h)&&!R()?n.replace(/\+\s?{{protection_price}}/,`${s} + ${c}`):n.replace("{{protection_price}}",c);let m="";m=d?O(d):"width: 100%; max-width: 500px; background: #000; color: #fff; padding: 8px 10px; border: none;";const p=`\n \n \n \n \n \n `,f=`${i}`;return`
\n
\n
\n
\n
\n
\n ${t}\n ${p}\n
\n
\n ${l}\n
\n
\n
\n
\n \n
\n ${f}\n
\n
\n
`}({title:this.currentTextLocale.title,protectedText:this.currentTextLocale.protected_button_text,totalStr:r,priceStr:o,dynamicFooterUpdateSection:this.dynamicFooterUpdateSection,noProtectedText:this.currentTextLocale.basic_button_text,checkout_description:"hide"===a?void 0:this.currentTextLocale.description.replace("{{protection_price}}",o),classNamesCheckout:s}),l=A(oe);l.forEach(e=>{e.innerHTML!==c&&(e.innerHTML=c)}),l.length>0&&A(this.checkoutButtonSubmit).forEach(e=>{e.getAttribute("data-seel-button")||e.setAttribute("style","display: none !important;")}),this.poly.updateTemplate(c,!0)}remove(){A(".seel-insurance").forEach(e=>{e.remove()}),1===this.widgetType&&A(oe).forEach(e=>{e.innerHTML=""}),this.poly.remove(),this.invalidateCache()}};function se(e,t){return[...A(e)].every(e=>{const t=e.parentElement;return!!t&&t.querySelector(".seel-insurance")})}function ce(e){return[...A(e)].every(e=>{const t=e.parentElement?.parentElement;return!!t&&t.querySelector(".seel-insurance")})}var le,de=e=>{const{price:t,checked:n,currentTextLocale:i,styleConfig:o}=e,{title:r,description:a}=i,s="hide"===a||!a.includes("{{protection_price}}"),c="hide"===a?"":``+a.replace("{{protection_price}}",`${t}`),l="rtl"===document.documentElement.dir||"rtl"===getComputedStyle(document.body).direction,d="hide"===a?"":`\n
\n ${0===o?.widget.appearance.icon_size?"":'
'}\n
\n ${c}\n
\n
\n `;return`\n
\n
\n
\n \n \n
\n
\n ${r}${s?` + ${t}`:""}\n
\n \n\n \n\n \n
\n ${d}\n
\n `};function ue(e){let t="";for(let n=0;n`${e}=${n[e]}`).join("&"),o="5e51bca767fd7f703c27ba2e08565113",r=await async function(e,t){const n=new TextEncoder,i=n.encode(t),o=n.encode(e),r=await crypto.subtle.importKey("raw",i,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),a=await crypto.subtle.sign("HMAC",r,o);return Array.from(new Uint8Array(a)).map(e=>e.toString(16).padStart(2,"0")).join("")}(`${i}&key=${o}`,o),a=encodeURIComponent(r);return t?{timestamp:n.timestamp,state:n.state,sign:a}:`×tamp=${n.timestamp}&state=${n.state}&sign=${a}`}async function me(){const e=await he(window.Shopify.shop);return T(fetch(`https://insurance-api.parcelwill.com/api/v1/getConfig?storeName=${window.Shopify.shop}${e}`,{headers:{"content-type":"application/json"},method:"get"}))}async function pe(){const e=new URLSearchParams({themeId:window.Shopify.theme?.id??"",storeName:window.Shopify.shop,themeName:window.Shopify.theme?.schema_name??window.BOOMR?.themeName??"",schemaVersion:window.Shopify.theme?.schema_version??window.BOOMR?.themeVersion??""}).toString(),t=await he(window.Shopify.shop);return T(fetch(`https://insurance-api.parcelwill.com/api/v1/themeFitInfo?${e}${t}`,{headers:{"content-type":"application/json"},method:"get"}))}var fe=async()=>{const e=window.Shopify.shop,t=window.Shopify.locale||"en";try{le||(le=await(await fetch("https://cdn.parcelpanel.com/insurance/js/SpecialStoreTexts.json?v=1b09a6f5a759d380fd722e2a410e571e6250b13e")).json());const n=le[e];return!!n&&(n[t]||n.en)}catch(n){return!1}},ge=new Set(["cs","de","en","es","fr","hu","it","nl","pl","pt-BR","pt-PT"]),be=new Map,we=new Map;async function ve(e="en",t="widget"){const[n]=e.split("-");let i="en";["pt-BR","pt-PT"].includes(e)?i=e:ge.has(n)&&(i=n);try{const e=await async function(e){const t=be.get(e);if(t)return t;let n=we.get(e);n||(n=(async()=>{try{const t=await(await fetch(`https://cdn.parcelpanel.com/insurance/js/${e}.json?v=1b09a6f5a759d380fd722e2a410e571e6250b13e`)).json();return be.set(e,t),t}finally{we.delete(e)}})(),we.set(e,n));try{return await n}catch{return null}}(i);if(e)return e[t]||{title:[],description:[],protected_button_text:[],basic_button_text:[]}}catch(o){}return{title:[],description:[],protected_button_text:[],basic_button_text:[]}}var ye,ke=[];for(let Kt=0;Kt<256;++Kt)ke.push((Kt+256).toString(16).slice(1));var _e=new Uint8Array(16);var Se={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function xe(e,t,n){const i=(e=e||{}).random??e.rng?.()??function(){if(!ye){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ye=crypto.getRandomValues.bind(crypto)}return ye(_e)}();if(i.length<16)throw new Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=i[e];return t}return function(e,t=0){return(ke[e[t+0]]+ke[e[t+1]]+ke[e[t+2]]+ke[e[t+3]]+"-"+ke[e[t+4]]+ke[e[t+5]]+"-"+ke[e[t+6]]+ke[e[t+7]]+"-"+ke[e[t+8]]+ke[e[t+9]]+"-"+ke[e[t+10]]+ke[e[t+11]]+ke[e[t+12]]+ke[e[t+13]]+ke[e[t+14]]+ke[e[t+15]]).toLowerCase()}(i)}var Ce=function(){return Ce=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0&&o[o.length-1])||6!==s[0]&&2!==s[0])){r=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]=o+n?(o=a,[4,Fe(0)]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++r,[3,1];case 4:return[2,i]}})})}function Ee(e){e.then(void 0,function(){})}function Ve(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function je(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function We(e,t){return 32===(t%=64)?[e[1],e[0]]:t<32?[e[0]<>>32-t,e[1]<>>32-t]:(t-=32,[e[1]<>>32-t,e[0]<>>32-t])}function ze(e,t){return 0===(t%=64)?e:t<32?[e[0]<>>32-t,e[1]<>>1]),e=Ne(e=je(e,[4283543511,3981806797]),[0,e[0]>>>1]),e=Ne(e=je(e,[3301882366,444984403]),[0,e[0]>>>1])}function Ze(e){return parseInt(e)}function Be(e){return parseFloat(e)}function Ge(e,t){return"number"==typeof e&&isNaN(e)?t:e}function He(e){return e.reduce(function(e,t){return e+(t?1:0)},0)}function $e(e,t){if(void 0===t&&(t=1),Math.abs(t)>=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function Ue(e){return e&&"object"==typeof e&&"message"in e?e:{message:e}}function Oe(e,t,n){var i=Object.keys(e).filter(function(e){return!function(e,t){for(var n=0,i=e.length;n=4}function Xe(){var e=window,t=navigator;return He(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,0===t.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function qe(){var e=window,t=navigator;return He(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,0===t.vendor.indexOf("Apple"),"getStorageUpdates"in t,"WebKitMediaKeys"in e])>=4}function Je(){var e=window;return He(["safari"in e,!("DeviceMotionEvent"in e),!("ongestureend"in e),!("standalone"in navigator)])>=3}function Qe(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function Ke(){var e=Xe(),t=function(){var e,t,n=window;return He(["buildID"in navigator,"MozAppearance"in(null!==(t=null===(e=document.documentElement)||void 0===e?void 0:e.style)&&void 0!==t?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}();if(!e&&!t)return!1;var n=window;return He(["onorientationchange"in n,"orientation"in n,e&&!("SharedWorker"in n),t&&/android/i.test(navigator.appVersion)])>=2}function et(e){var t=new Error(e);return t.name=e,t}function tt(e,t,n){var i,o,r;return void 0===n&&(n=50),Le(this,void 0,void 0,function(){var a,s;return Pe(this,function(c){switch(c.label){case 0:a=document,c.label=1;case 1:return a.body?[3,3]:[4,Fe(n)];case 2:return c.sent(),[3,1];case 3:s=a.createElement("iframe"),c.label=4;case 4:return c.trys.push([4,,10,11]),[4,new Promise(function(e,n){var i=!1,o=function(){i=!0,e()};s.onload=o,s.onerror=function(e){i=!0,n(e)};var r=s.style;r.setProperty("display","block","important"),r.position="absolute",r.top="0",r.left="0",r.visibility="hidden",t&&"srcdoc"in s?s.srcdoc=t:s.src="about:blank",a.body.appendChild(s);var c=function(){var e,t;i||("complete"===(null===(t=null===(e=s.contentWindow)||void 0===e?void 0:e.document)||void 0===t?void 0:t.readyState)?o():setTimeout(c,10))};c()})];case 5:c.sent(),c.label=6;case 6:return(null===(o=null===(i=s.contentWindow)||void 0===i?void 0:i.document)||void 0===o?void 0:o.body)?[3,8]:[4,Fe(n)];case 7:return c.sent(),[3,6];case 8:return[4,e(s,s.contentWindow)];case 9:return[2,c.sent()];case 10:return null===(r=s.parentNode)||void 0===r||r.removeChild(s),[7];case 11:return[2]}})})}function nt(e){for(var t=function(e){for(var t,n,i="Unexpected syntax '".concat(e,"'"),o=/^\s*([a-z-]*)(.*)$/i.exec(e),r=o[1]||void 0,a={},s=/([.:#][\w-]+|\[.+?\])/gi,c=function(e,t){a[e]=a[e]||[],a[e].push(t)};;){var l=s.exec(o[2]);if(!l)break;var d=l[0];switch(d[0]){case".":c("class",d.slice(1));break;case"#":c("id",d.slice(1));break;case"[":var u=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(d);if(!u)throw new Error(i);c(u[1],null!==(n=null!==(t=u[4])&&void 0!==t?t:u[5])&&void 0!==n?n:"");break;default:throw new Error(i)}}return[r,a]}(e),n=t[0],i=t[1],o=document.createElement(null!=n?n:"div"),r=0,a=Object.keys(i);r.6*n.length})).sort(),[2,o]}var s})})},fontPreferences:function(){return function(e,t){void 0===t&&(t=4e3);return tt(function(n,i){var o=i.document,r=o.body,a=r.style;a.width="".concat(t,"px"),a.webkitTextSizeAdjust=a.textSizeAdjust="none",Xe()?r.style.zoom="".concat(1/i.devicePixelRatio):qe()&&(r.style.zoom="reset");var s=o.createElement("div");return s.textContent=Ie([],Array(t/20|0),!0).map(function(){return"word"}).join(" "),r.appendChild(s),e(o,r)},'')}(function(e,t){for(var n={},i={},o=0,r=Object.keys(kt);o=3}())return-1;var n=new t(1,5e3,44100),i=n.createOscillator();i.type="triangle",i.frequency.value=1e4;var o=n.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,i.connect(o),o.connect(n.destination),i.start(0);var r=function(e){var t=3,n=500,i=500,o=5e3,r=function(){};return[new Promise(function(a,s){var c=!1,l=0,d=0;e.oncomplete=function(e){return a(e.renderedBuffer)};var u=function(){setTimeout(function(){return s(et("timeout"))},Math.min(i,d+o-Date.now()))},h=function(){try{var i=e.startRendering();switch(Te(i)&&Ee(i),e.state){case"running":d=Date.now(),c&&u();break;case"suspended":document.hidden||l++,c&&l>=t?s(et("suspended")):setTimeout(h,n)}}catch(o){s(o)}};h(),r=function(){c||(c=!0,d>0&&u())}}),r]}(n),a=r[0],s=r[1],c=a.then(function(e){return function(e){for(var t=0,n=0;n=3||n.push(t.languages);else if("string"==typeof t.languages){var o=t.languages;o&&n.push(o.split(","))}return n},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return Ge(Be(navigator.deviceMemory),void 0)},screenResolution:function(){var e=screen,t=function(e){return Ge(Ze(e),null)},n=[t(e.width),t(e.height)];return n.sort().reverse(),n},hardwareConcurrency:function(){return Ge(Ze(navigator.hardwareConcurrency),void 0)},timezone:function(){var e,t=null===(e=window.Intl)||void 0===e?void 0:e.DateTimeFormat;if(t){var n=(new t).resolvedOptions().timeZone;if(n)return n}var i,o=(i=(new Date).getFullYear(),-Math.max(Be(new Date(i,0,1).getTimezoneOffset()),Be(new Date(i,6,1).getTimezoneOffset())));return"UTC".concat(o>=0?"+":"").concat(Math.abs(o))},sessionStorage:function(){try{return!!window.sessionStorage}catch(e){return!0}},localStorage:function(){try{return!!window.localStorage}catch(e){return!0}},indexedDB:function(){var e,t;if(!(Ye()||(e=window,t=navigator,He(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Ye())))try{return!!window.indexedDB}catch(n){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var e=navigator.platform;return"MacIntel"===e&&qe()&&!Je()?function(){if("iPad"===navigator.platform)return!0;var e=screen,t=e.width/e.height;return He(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}()?"iPad":"iPhone":e},plugins:function(){var e=navigator.plugins;if(e){for(var t=[],n=0;n>>0).toString(16)).slice(-8)+("00000000"+(r[1]>>>0).toString(16)).slice(-8)+("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)}(function(e){for(var t="",n=0,i=Object.keys(e).sort();n=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(Ae,"/npm-monitoring"),!0),e.send()}catch(t){console.error(t)}}(),[4,Lt(n)];case 1:return e.sent(),[2,Pt(Oe(_t,{debug:i},[]),i)]}})})},hashComponents:Ct,componentsToDebugString:xt},At=new class{currentAppCode="P";constructor(e){this.currentAppCode=e}isPluginOn(){return"ON"===window.document.body.dataset.insurancePlugin}isFittingNow(){return this.isPluginOn()&&"0"===window.sessionStorage.getItem("ins-status")}isCheckingOtherApp(){return this.isPluginOn()&&"1"===window.sessionStorage.getItem("ins-status")&&window.sessionStorage.getItem("ins:currentApp")!==this.currentAppCode}isCheckingCurrentApp(){return this.isPluginOn()&&"1"===window.sessionStorage.getItem("ins-status")&&window.sessionStorage.getItem("ins:currentApp")===this.currentAppCode}isDisabled(){return!(!this.isFittingNow()&&!this.isCheckingOtherApp())}waitChecking(e=5e3){return"PENDING"===document.body.dataset.insurancePlugin?new Promise(t=>{const n=Date.now()+e,i=setInterval(()=>{if("PENDING"!==document.body.dataset.insurancePlugin)return clearInterval(i),void t(1);Date.now()>=n&&(clearInterval(i),t(0))},200)}):Promise.resolve(1)}}("P");function Ft(e){const t=["rejected","declined"].includes(e.status),n=!e.price;return t||n}var Tt=It.load(),Rt=localStorage.getItem(V),Mt=()=>{const e=sessionStorage.getItem(j);if(e)return e;const t=!Se.randomUUID||i||n?xe(n,i,o):Se.randomUUID();var n,i,o;return sessionStorage.setItem(j,t),t};async function Et(e){try{const t=await(async()=>Rt||new Promise((e,t)=>{Tt.then(e=>e.get()).then(t=>{Rt=t.visitorId,localStorage.setItem(V,t.visitorId),e(t.visitorId)}).catch(e=>{t(e)})}))(),n={product_code:"parcelpanel_shopify-gsp",source:window?.Shopify?.Checkout?.token||window?.location?.pathname?.includes?.("checkout")?"checkout":"cart",cart_info:e,customer_info:{timestamp_in_ms:Date.now(),user_id:Mt(),device_id:t},shop_domain:window.Shopify.shop,active_currency:window.Shopify.currency?.active,country:window.Shopify.country};return At.isCheckingCurrentApp()&&(n.is_mock=!0),await async function(e){const t=await he(window.Shopify.shop,!0),n={...e,storeName:window.Shopify.shop,...t};return T(fetch("https://insurance-api.parcelwill.com/api/v1/quotes",{body:JSON.stringify(n),method:"POST"}))}(n)??null}catch(t){return console.log(`seel:${t.message}`),null}}var Vt=null;function jt(){const e=document.querySelectorAll(".shopify-section"),t=[];if(e.forEach(e=>{"function"==typeof e.getSectionsToRender&&t.push(e)}),t.length>0)return t;const n=document.querySelectorAll('#MainContent, [id*="cart"], [id*="Cart"], main, [role="main"]');return 0===n.length?(document.querySelectorAll("*").forEach(e=>{"function"==typeof e.getSectionsToRender&&t.push(e)}),t):(n.forEach(e=>{e.querySelectorAll("*").forEach(e=>{"function"==typeof e.getSectionsToRender&&t.push(e)})}),t)}function Wt(){const e=Date.now();if(Vt&&e-Vt.ts<2e3)return Vt.ids;const t=jt(),n=[];t.forEach(e=>{e.getSectionsToRender().forEach(e=>{n.push(e.section||e.id)})});const i=[...new Set(n)].filter(Boolean);for(;i.length>5;){const e=["cart-live-region-text","cart-icon-bubble","cart-notification-button","cart-notification-product"];let t=!1;for(const n of e){const e=i.indexOf(n);if(-1!==e){i.splice(e,1),t=!0;break}}if(!t)break}return Vt={ids:i,ts:e},i}function zt(e,t,n=!1){e&&(window.is_use_update_auto?function(e){jt().forEach(t=>{t.getSectionsToRender().forEach(n=>{const i=document.getElementById(n.id);if(!i)return;const o=i.querySelector(n.selector)||i,r=n.section||n.id;if(e[r])try{o.innerHTML=t.getSectionInnerHTML(e[r],n.selector)}catch(a){}})})}(e):Object.keys(e).forEach(i=>{const o=e[i];if(!o)return;const r=Nt(o);r&&(n&&function(e,t){const n=I(`#shopify-section-${e},#${e},${e}`);try{n?.parentElement&&n.parentElement.replaceChild(t,n)}catch(i){console.log(`seel section render:${i}`)}}(i,r),t.forEach(e=>{e&&function(e,t){A(e).forEach(n=>{const i=t.querySelector(e);i&&n&&(n.innerHTML=i.innerHTML)})}(e,r)}))}))}var Nt=e=>{const t=document.createElement("div");return t.innerHTML=e.trim(),t.firstElementChild};var Dt=window.p_sybiosis||new class{updates={};calcPriceBox={};addUpdateIdFn(e,t){this.updates[e]=t}get updateIds(){return this.getUpdateIds()}get calcPrice(){return this.getCalcPrice()}getUpdateIds(){let e={};return Object.keys(this.updates).forEach(t=>{const n=this.updates[t]?.();n&&(e={...e,...n})}),e}addCalcPriceFn(e,t){this.calcPriceBox[e]=t}getCalcPrice(){let e=0;return Object.keys(this.calcPriceBox).forEach(t=>{e+=this.calcPriceBox[t]?.()??0}),e}checkIsUpdateWithoutUs(e){return!!e.includes("cart/update")&&(!e.includes("cart/update.js?return=1")&&!e.includes("cart/update.js?seel=1"))}},Zt=class{info=null;sections;dynamicSection;constructor(e="",t=""){this.sections=e,this.dynamicSection=t}get realSection(){return function(e,t){if(window.is_use_update_auto)return Wt().join(",");let n=[e,t];R()||(n=n.reverse());let i=n.filter(e=>e?.trim()).join(",");const o=[...new Set(i.split(","))];return A(".shopify-section").forEach(e=>{if(e.id){const t=e.id.replace("shopify-section-","");if(/\d+/.test(t)){const e=t.replace(/\d+/,"{{id}}");o.includes(e)&&(i=i.replace(e,t))}}}),i.split(",").filter((e,t)=>t<5).join(",")}(this.sections,this.dynamicSection)}async updateInfo(e=!0){const t=await this.getUpdateInfo(e);window.seel_global.info=t,this.info=t}async removeInsuranceInCart(){if(!this.info)return;const{hasInsuranceVariant:e}=this.info;e&&await this.updateCart(!1)}async updateCart(e,t=!1){if(!this.info)return;const{quote:n,cart:i}=this.info;let o={};t?o=Dt.updateIds:(i.items.forEach(e=>{e.product_id===+n.productId&&(o[e.variant_id]=0)}),e&&+n.variantsId&&(o[n.variantsId]=1));const r=await async function(e){return T(fetch(`//${window.location.host}/cart/update.js?seel=1`,{headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(e)}))}({updates:o,attributes:{pp_gsp_quote_id:n.quoteId,cart_token:i.token,pp_gsp_checked:e},sections:this.realSection});if(!r)throw"updateCart error";this.info.cart=r}checkCart(e,t){return{hasRealProduct:e.items?.some(e=>e.variant_id!==+t.variantsId),hasInsuranceVariant:e.items?.some(e=>e.product_id===+t.productId)}}async genRejectedInfo(e){return{cart:e,quote:{convertedCurrency:1,convertedSymbol:"$",price:1,productId:"0",quoteId:"0",status:"rejected",symbol:"$",variantsId:"0",isMarketExcluded:!0,marketPrice:0,realPrice:0},isRejectedBySeel:!0,hasRealProduct:!1,hasInsuranceVariant:!1,priceText:"$1.28"}}async getUpdateInfo(e=!0){const t=await(window.seel_currentCart?Promise.resolve(window.seel_currentCart):T(fetch(`//${window.location.host}/cart.js`)));if(!t)throw"getCart error";if(!t.items.length)return this.genRejectedInfo(t);if(t.items.some(e=>!e.product_id))return this.genRejectedInfo(t);let n=this.info?.quote;if(e||!n){const e=await Et(t);if(!e)return this.genRejectedInfo(t);if(e.data.isMarketExcluded)return this.genRejectedInfo(t);n=e.data}const{hasInsuranceVariant:i,hasRealProduct:o}=this.checkCart(t,n),r=n.marketPrice?n.marketPrice:n.price;let a;window.seel_global?.config?.moneyFormat&&n.convertedSymbol===n.symbol&&(a=window.seel_global.config.moneyFormat);const s=q(r,a);return{cart:t,quote:n,isRejectedBySeel:Ft(n),hasRealProduct:o,hasInsuranceVariant:i,priceText:s}}},Bt=class extends Zt{widget;isFirstTimeUseInsurance=D("is_new",!0)??!0;fitter;constructor(e,t){super(e.sections,e.dynamicSection),this.widget=t,this.fitter=e,this.init(),window.is_use_update_auto=this.fitter.weight<3&&Wt().length>0}setIsFirstTimeUseInsurance(e){this.isFirstTimeUseInsurance=e,Z("is_new",e)}async init(){if(await this.updateInfo(),!this.info)return;const{isRejectedBySeel:e,hasRealProduct:t,hasInsuranceVariant:n}=this.info;return n&&this.setIsFirstTimeUseInsurance(!1),e?(await this.removeInsuranceInCart(),void this.updateCartSection()):t||!n?!this.widget.checked&&n?(this.widget.setChecked(!0),void this.rerender()):t&&this.widget.checked&&!n?(await this.updateCart(!0),this.setIsFirstTimeUseInsurance(!1),void this.rerender()):void this.rerender():void 0}async manualUpdate(){this.setIsFirstTimeUseInsurance(!1),this.info&&(await this.updateCart(this.widget.checked),(this.fitter.isRefreshCartPage||this.fitter.ppSeelCartTemplate)&&R()?window.location.reload():this.rerender())}async autoUpdate(){if(await this.updateInfo(),!this.info)return;const{isRejectedBySeel:e,hasRealProduct:t,hasInsuranceVariant:n,quote:i,priceText:o,cart:r}=this.info;if(n&&this.setIsFirstTimeUseInsurance(!1),e)return await this.removeInsuranceInCart(),this.updateCartSection(),this.widget.setShow(!1),void(this.isFirstTimeUseInsurance||this.widget.setChecked(!1));if(!t&&n)return void this.widget.setShow(!1);if(this.widget.setShow(!0),!n&&this.widget.checked&&this.isFirstTimeUseInsurance)return void this.manualUpdate();if(!n&&this.widget.checked&&!this.isFirstTimeUseInsurance)return this.widget.setChecked(!1),void this.setIsFirstTimeUseInsurance(!1);if(this.widget.priceText!==o)return void this.manualUpdate();let a=0;r.items?.forEach(e=>{e.product_id===+i?.productId&&(a+=e.quantity)}),a>1?this.manualUpdate():this.setIsFirstTimeUseInsurance(!1)}updateCartSection(){this.info?.cart.sections&&zt(this.info.cart.sections,[this.fitter.updateSection,this.fitter.footerUpdateSection,this.fitter.dynamicUpdateSection,this.fitter.dynamicFooterUpdateSection],!1)}async rerender(){this.updateCartSection(),this.updateWidgetPrice(),this.widget.setShow(!0)}updateWidgetPrice(){if(!this.info)return;const{priceText:e}=this.info;this.widget.setPrice(e)}},Gt=class{beforeInit;beforeRender;beforeSubmit;convertFn(e=""){const t=new Function("data",e);return(...e)=>{try{return t(...e)}catch(n){console.log("convertFn",n)}}}constructor(e){this.beforeInit=this.convertFn(e.beforeInit),this.beforeRender=this.convertFn(e.beforeRender),this.beforeSubmit=this.convertFn(e.beforeSubmit)}},Ht=class{submit="";dynamicSubmit="";onSubmit=e=>{};constructor(e){const{submit:t,dynamicSubmit:n,onSubmit:i}=e;this.submit=t,this.dynamicSubmit=n,this.onSubmit=i.bind(this),this.handleSubmit=this.handleSubmit.bind(this),this.handleWindowSubmit=this.handleWindowSubmit.bind(this)}get submitBtns(){return[...A([this.submit,this.dynamicSubmit].filter(e=>!!e).join(",")),...l().submitDom()]}handleWindowSubmit(e){const t=e.composedPath();this.submitBtns?.some(e=>t.includes(e))&&this.onSubmit(e)}handleSubmit(e){this.onSubmit(e)}watch(){window.addEventListener("click",this.handleWindowSubmit,!0),window.addEventListener("mousedown",this.handleWindowSubmit,!0),this.submitBtns.forEach(e=>{e.addEventListener("click",this.handleSubmit,!0),e.addEventListener("mousedown",this.handleSubmit,!0)})}unwatch(){window.removeEventListener("click",this.handleWindowSubmit,!0),window.removeEventListener("mousedown",this.handleWindowSubmit,!0),this.submitBtns.forEach(e=>{e.removeEventListener("click",this.handleSubmit,!0),e.removeEventListener("mousedown",this.handleSubmit,!0)})}},$t=class extends Zt{widget;submitWatcher;fitter;config;lifecycle;constructor(e,t,n){super(),this.fitter=e,this.widget=t,this.config=n,this.lifecycle=new Gt({beforeInit:n.beforeInit,beforeRender:n.beforeRender,beforeSubmit:n.beforeSubmit});let i=!1;const o=this;this.submitWatcher=new Ht({submit:e.submit,dynamicSubmit:e.dynamicSubmit,async onSubmit(e){try{if(!o.widget.isRealShow&&!l().hasInsuranceDom())return;if("break"===o.lifecycle.beforeSubmit({ctx:o,ev:e}))return;if(o.fitter.isPrevent&&(e?.stopPropagation?.(),e?.preventDefault?.()),i)return;i=!0,await o.updateCart(o.widget.checked,!0),i=!1,location.href="/checkout"}catch(t){console.log(t),i=!1}}}),this.registerVisibleEvent(),"break"!==this.lifecycle.beforeInit({ctx:this})&&this.init()}registerVisibleEvent(){document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&this.init()})}async init(){if(await this.updateInfo(),!this.info)return;const{isRejectedBySeel:e,hasInsuranceVariant:t}=this.info;if(t)return await this.removeInsuranceInCart(),this.widget.setChecked(!0),void window.location.reload();e||(this.widget.checked&&this.submitWatcher.watch(),this.rerender())}async manualUpdate(){this.info&&(this.widget.checked?this.submitWatcher.watch():this.submitWatcher.unwatch(),this.rerender())}async autoUpdate(){if(await this.updateInfo(),!this.info)return;const{isRejectedBySeel:e,hasInsuranceVariant:t}=this.info;return t?(await this.removeInsuranceInCart(),this.widget.setChecked(!0),void window.location.reload()):e?(this.submitWatcher.unwatch(),this.updateTotalPriceDom(),void this.widget.setShow(!1)):void this.manualUpdate()}async rerender(){"break"!==this.lifecycle.beforeRender({ctx:this})&&(this.updateTotalPriceDom(),this.updateWidgetPrice(),this.widget.setShow(!0))}updateWidgetPrice(){if(!this.info)return;const{priceText:e}=this.info;this.widget.setPrice(e)}replacePriceInText(e,t){if(!e.match(/\d/))return e;const n=t.match(/(\d*\.?\d*)/);if(!n)return e;const i=n[0],o=n[1]||"",r=i.replace(/\.\d*$/,"");let a=e;const s=/[\d,]+\d*<\/sup>/g;return a=s.test(e)?e.replace(s,()=>o?`${r}${o}`:`${r}00`):e.replace(/[\d,]+\.?\d*/g,i),a}updateTotalPriceDom(){const{footerUpdateSection:e,dynamicFooterUpdateSection:t,isPriceInSubmitText:n}=this.fitter,i=[...A([e,t].filter(e=>!!e).join(","))];if(!this.info)return;const{quote:o,cart:r}=this.info,a=r.total_price/100;let s;window.seel_global?.config?.moneyFormat&&o.convertedSymbol===o.symbol&&(s=`${o.convertedSymbol}{{amount}} ${window.Shopify?.currency?.active??""}`);const c=Dt.calcPrice,d=q(a+c,s);i.forEach(e=>{e.innerHTML.match(/\d+/)&&(e.innerHTML=n?this.replacePriceInText(e.innerHTML,d):d)}),l().updateCartTotal(d)}},Ut=class extends Zt{widget;fitter;config;lifecycle;constructor(e,t,n){super(e.sections,e.dynamicSection),this.fitter=e,this.widget=t,this.config=n,this.lifecycle=new Gt({beforeInit:n.beforeInit,beforeRender:n.beforeRender,beforeSubmit:n.beforeSubmit});let i=!1;const o=this;window.seelSubmitCheckout=async(e,t,n)=>{if(!n)return t?.preventDefault?.(),void o.addPointerEvent(t);try{if("break"===o.lifecycle.beforeSubmit({ctx:o,ev:t}))return;if(i)return;t?.preventDefault?.(),t?.stopImmediatePropagation?.(),t?.stopPropagation?.(),i=!0,await o.updateCart(!0),o.addPointerEvent(t),setTimeout(()=>{location.href="/checkout"},10)}catch(r){console.error(r)}finally{i=!1}},"break"!==this.lifecycle.beforeInit({ctx:this})&&(this.init(),this.registerVisibleEvent())}getSelector(){const e=[this.fitter.submit,this.fitter.dynamicSubmit].filter(Boolean).join(","),t=e?[...A(e)]:[];return t.length>0?t:[...A(G.anchor)]}addPointerEvent(e){const t=new PointerEvent("click",{bubbles:!0,cancelable:!0,pointerId:1,pointerType:"mouse",clientX:e?.clientX??0,clientY:e?.clientY??0});this.getSelector().forEach(e=>{e&&(e.closest?.('[data-seel-button="true"]')||e.dispatchEvent(t))})}registerVisibleEvent(){document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&this.init()})}async init(){try{await this.updateInfo()}catch{this.info=null}if(!this.info)return this.widget.setCheckoutButtonPrice(1.28,55.85),this.widget.setShow(!0),void this.scheduleCheckoutButtonReapply(1.28,55.85);const{hasInsuranceVariant:e,isRejectedBySeel:t}=this.info;if(e&&!["/account/login","/account/register"].some(e=>window.location.pathname.includes(e)))return await this.removeInsuranceInCart(),this.widget.setChecked(!0),void window.location.reload();t?this.widget.setShow(!1):(this.rerender(),this.scheduleCheckoutButtonReapply(Number(this.info.quote.marketPrice||this.info.quote.price),null!=this.info.cart?.total_price?this.info.cart.total_price/100:void 0))}scheduleCheckoutButtonReapply(e,t){requestAnimationFrame(()=>{this.widget.setCheckoutButtonPrice(e,t),this.widget.setShow(!0)}),setTimeout(()=>{this.widget.setCheckoutButtonPrice(e,t),this.widget.setShow(!0)},300)}rerender(){"break"!==this.lifecycle.beforeRender({ctx:this})&&(this.updateWidgetPrice(),this.widget.setShow(!0))}updateWidgetPrice(){if(!this.info)return;const{quote:e,cart:t}=this.info,n=e.marketPrice||e.price,i=null!=t.total_price?t.total_price/100:void 0;this.widget.lastCheckoutPrice=Number(n),this.widget.lastCheckoutTotalPrice=i,this.widget.setCheckoutButtonPrice(Number(n),i)}async manualUpdate(e=!1){this.info&&this.rerender()}async autoUpdate(){if(await this.updateInfo(),!this.info)return;const{hasInsuranceVariant:e,isRejectedBySeel:t}=this.info;return e?(await this.removeInsuranceInCart(),this.widget.setChecked(!0),void window.location.reload()):t?(this.updateWidgetPrice(),this.widget.setShow(!1),void A(this.widget.checkoutButtonSubmit).forEach(e=>{e.style.display=""})):void this.manualUpdate()}};function Ot(){if(At.isDisabled())return!1;if(At.isCheckingCurrentApp())return!0;const e=window.seel_global?.config;if(!e)return!1;const t=2===e.isFit||window.is_use_update_auto;return e.isEnable&&t}window.PPInsurancePluginEventBus=J;var Yt,Xt,qt,Jt=!1;async function Qt(e,t){if(["cart/change","cart/add","cart/update","cart.js"].some(e=>t.includes(e))){if(t.includes("cart/add")||!e||window.seel_global?.config?.isQueryCart)window.seel_currentCart=void 0;else try{const t="clone"in e?await e.clone().json():null;t&&(window.seel_currentCart=t)}catch{window.seel_currentCart=void 0}Ot()&&(["cart/change","cart/add"].some(e=>t.includes(e))||Dt?.checkIsUpdateWithoutUs(t))&&(Yt&&clearTimeout(Yt),Yt=setTimeout(()=>{qt?.autoUpdate()},100))}}!async function(){!function(e){const t=window.fetch;window.fetch=async function(n,i){const o=await t(n,i),r="string"==typeof n?n:n instanceof Request?n.url:String(n);return o.ok&&200===o.status&&M(r)&&e(o).catch(()=>{}),o}}(async e=>{await Qt(e,e.url)}),function(e){const t=window.XMLHttpRequest;window.XMLHttpRequest=function(){const n=new t;return n.addEventListener("load",function(){const t=n.responseURL,i=n.responseText;t&&M(t)&&e(t,i).catch(()=>{})}),n}}(async(e,t)=>{try{const n=t?JSON.parse(t):null;await Qt(n?{url:e,data:n}:{url:e},e)}catch(n){window.seel_currentCart=void 0,console.error(n,"proxyAjax")}});const[e,t]=await Promise.all([me(),pe()]);if(await At.waitChecking(),!e)throw new Error("getConfig error");if(!t)throw new Error("getFitters error");const n=e.data;if(window.seel_global={info:null,config:n},!Ot())return;const i=!t.data.theme&&!t.data.user,r={...G,...t.data.theme,...t.data.user};var a;r.dynamicSubmit=r.dynamicSubmit.replace(/""/g,'"'),r.submit=r.submit.replace(/""/g,'"'),n.customStyle&&F(n.customStyle),0===n.widgetType&&F((a=n.styleConfig?.widget,a?`\n #seel_widget.withConfig {\n border-radius: ${a.appearance.border_radius}px;\n border-width: ${a.appearance.border_width}px;\n padding: ${a.appearance.padding_vertical}px ${a.appearance.padding_horizontal}px;\n }\n #seel_widget.withConfig .seel_widget--desc_line--des {\n align-items: ${a.appearance.icon_size>24?"flex-start":"center"}\n }\n #seel_widget.withConfig .seel_widget--desc_line--icon {\n width: ${a.appearance.icon_size}px;\n height: ${a.appearance.icon_size}px;\n background-image: url(${a.appearance.icon_url});\n background-size: cover;\n background-position: center;\n background-repeat: no-repeat;\n }\n `:""));const s=1===n.widgetType?n.styleConfig?.checkout:n.styleConfig?.widget,c=await async function(e={},t={}){let n="";if(e&&e.title&&t.title)if("custom"===t.title){const t=await fe();n=t?t.title:e.title[0].label}else{const i=e.title.find(e=>e.value===t.title);i&&(n=i.label||"")}let i="";if(e&&e.description&&t.description)if("custom"===t.description){const t=await fe();i=t?t.description:e.description[0].label}else if("hide"===t.description)i="hide";else{const n=e.description.find(e=>e.value===t.description);n&&(i=n.label||"")}let o="";if(e&&e.protected_button_text&&t.protected_button_text){const n=e.protected_button_text.find(e=>e.value===t.protected_button_text);n&&(o=n.label||"")}let r="";if(e&&e.basic_button_text&&t.basic_button_text){const n=e.basic_button_text.find(e=>e.value===t.basic_button_text);n&&(r=n.label||"")}return{title:n,description:i,protected_button_text:o,basic_button_text:r}}(await ve(window.Shopify?.locale??"en",1===n.widgetType?"checkout":"widget"),s?.text??{}),d=[r.submit,r.dynamicSubmit,G.submit,G.dynamicSubmit].filter(Boolean).join(",").trim()||void 0,u=new ae({anchor:r.anchor,position:r.position,isGlobalFitter:i,dynamicAnchor:r.dynamicAnchor,dynamicPosition:r.dynamicPosition,dynamicFooterUpdateSection:r.dynamicFooterUpdateSection,defaultChecked:1===n.defaultDisplayStatus,priceText:`${n.symbol} 1.28`,widgetType:n.widgetType,checkoutButtonSubmit:d,styleConfig:n.styleConfig,currentTextLocale:c,async onChange(){try{Jt=!0,await(qt?.manualUpdate()),Jt=!1}catch(e){console.error(e),Jt=!1}}});if((o()||y(r))&&(r.type=B.FakeUpdate),qt=1===n.widgetType?new Ut(r,u,n):r.type===B.FakeUpdate?new $t(r,u,n):new Bt(r,u),r.type===B.FakeUpdate){const e=()=>{Ot()&&window.seel_global?.info&&!window.seel_global.info.isRejectedBySeel&&window.seel_global.info.hasRealProduct&&qt?.widget.setShow(!0)};l().setOnReady(e),y(r)&&(w=e),Dt.addUpdateIdFn("ppi",()=>{if(!u.checked)return{};if(!window.seel_global.info)return{};const{quote:e}=window.seel_global.info;return Ft(e)?{}:{[e.variantsId]:1}}),Dt.addCalcPriceFn("ppi",()=>{if(!u.checked)return 0;if(!window.seel_global.info)return 0;const{quote:e}=window.seel_global.info;return(e.marketPrice?e.marketPrice:e.convertedCurrency)??0})}function m(){Xt&&(clearInterval(Xt),Xt=void 0)}let p=0;Xt=setInterval(()=>{if(!Ot())return;const e=window.seel_global.info;if(!e)return;if(!R())return;if(u.size>=2)return;if(Jt)return;if(u.isAllWidgetRendered)return;const t=!e.isRejectedBySeel&&e.hasRealProduct;t&&qt?.widget.setShow(!0),(u.isAllWidgetRendered&&t||p>10)&&m(),p++},500),"undefined"!=typeof window&&window.addEventListener("beforeunload",m);let f=0;!function(e,t=150){const n=h(e,t),i=new MutationObserver(e=>{e.some(e=>"childList"===e.type)&&n()});i.observe(document.body,{childList:!0,subtree:!0})}(()=>{if(!Ot())return;const e=window.seel_global.info;if(e&&!e.isRejectedBySeel&&e.hasRealProduct&&(!u.isRealShow||!u.isAllWidgetRendered)){const e=Date.now();if(e-f<600)return;f=e,qt?.widget.setShow(!0)}})}()}();