ui.shipaid.com 0.3.102 → 0.3.104
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +202 -202
- package/dist/widget.es.js +29 -8
- package/dist/widget.iife.js +87 -84
- package/dist/widget.umd.js +87 -84
- package/dist-types/common/shopify/index.d.ts +6 -6
- package/dist-types/common/shopify/protection.d.ts +7 -7
- package/dist-types/common/shopify/types/ShopifyCart.d.ts +29 -29
- package/dist-types/common/shopify/types/ShopifyProduct.d.ts +12 -12
- package/dist-types/common/types/ShipAid.d.ts +82 -82
- package/dist-types/widget/src/assets/confirmation-styles.d.ts +2 -2
- package/dist-types/widget/src/assets/icons.d.ts +9 -9
- package/dist-types/widget/src/assets/learn-more-styles.d.ts +2 -2
- package/dist-types/widget/src/assets/styles.d.ts +2 -2
- package/dist-types/widget/src/components/checkout-package-protection.d.ts +13 -13
- package/dist-types/widget/src/components/confirmation-popup.d.ts +9 -9
- package/dist-types/widget/src/components/learn-more-popup.d.ts +8 -8
- package/dist-types/widget/src/components/product-add-confirmation.d.ts +13 -0
- package/dist-types/widget/src/components/shipaid-cart-confirmation.d.ts +15 -15
- package/dist-types/widget/src/shipaid-widget.d.ts +152 -150
- package/dist-types/widget/src/utils/fetch_interceptor.d.ts +3 -3
- package/dist-types/widget/src/utils/fetch_interceptor.test.d.ts +1 -1
- package/dist-types/widget/types/shipaid.d.ts +10 -10
- package/dist-types/widget/types/shopify.d.ts +29 -29
- package/dist-types/widget/types/widget.d.ts +13 -13
- package/package.json +48 -48
- package/dist-types/widget/src/components/checkout-button.d.ts +0 -7
- package/dist-types/widget/src/components/checkoutButton.d.ts +0 -13
- package/dist-types/widget/src/components/content-loader.d.ts +0 -6
package/dist/widget.iife.js
CHANGED
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
var ShipAidWidget=function(t){"use strict";const e={calculateProtectionTotal:function(t,e,i){var o,r;if(!t)throw new Error("Missing store settings.");if(!e)throw new Error("Missing protectionProduct.");if(!i)throw new Error("Missing Shopify cart.");const
|
|
1
|
+
var ShipAidWidget=function(t){"use strict";const e={calculateProtectionTotal:function(t,e,i){var o,r,n;if(!t)throw new Error("Missing store settings.");if(!e)throw new Error("Missing protectionProduct.");if(!i)throw new Error("Missing Shopify cart.");const a=null==t?void 0:t.protectionSettings;if(!a)throw new Error("Tried to find protection variant, but protection settings for this store are missing.");const s=Array.isArray(null==t?void 0:t.excludedProductSkus)?t.excludedProductSkus.map((t=>t.trim())):[],d=Array.isArray(null==t?void 0:t.excludedProductsVariantsId)?t.excludedProductsVariantsId.map((t=>{var e;return parseInt((null==(e=t.match(/\d+/))?void 0:e[0])??"",10)})):[],p=(i.items??[]).reduce(((t,e)=>(t=>!(!t.sku||!s.includes(t.sku.trim()))||!(!t.variant_id||!d.includes(t.variant_id)))(e)?t-e.final_line_price:t),i.total_price||0)-((null==(o=i.items)?void 0:o.filter((t=>{var i;return null==(i=null==e?void 0:e.variants)?void 0:i.some((e=>e.id===t.variant_id))})))??[]).reduce(((t,e)=>t+e.final_line_price),0),l=null==(r=t.widgetConfigurations)?void 0:r.allowZeroCartValueProtection;if(!l&&0===p)return p;if("FIXED"===a.protectionType){if("number"!=typeof a.defaultFee)throw new Error("Missing default fee amount.");if(!(null==(n=a.rules)?void 0:n.length))return a.defaultFee;const t=p/100,e=a.rules.sort(((t,e)=>t.rangeLower&&e.rangeLower?t.rangeLower-e.rangeLower:0)).find((e=>{const i=Boolean(e.rangeLower&&e.rangeLower<t);return e.rangeUpper?i&&e.rangeUpper>=t:i}));return"number"==typeof(null==e?void 0:e.fee)?e.fee:a.defaultFee}if("PERCENTAGE"===a.protectionType){if(p<=0&&l){const t=((null==e?void 0:e.variants)??[]).reduce(((t,e)=>{const i=Number(e.price);return i>0&&(!t||i<Number(t.price))?e:t}),null);if(t)return Number(t.price)}const t=p*a.percentage/100;return t>=a.minimumFee?t:a.minimumFee}throw new Error("No protection type handler found for this store.")},findProtectionVariant:function(t,e,i){var o;if(!(null==t?void 0:t.protectionSettings)||!(null==(o=null==e?void 0:e.variants)?void 0:o.length))throw new Error("Missing product and variants from protection settings.");const r=null==e?void 0:e.variants.flatMap((t=>{if(!(null==t?void 0:t.price))return[];const e=Number(t.price);return[{...t,formattedPrice:e}]})).sort(((t,e)=>t.formattedPrice-e.formattedPrice)),n=r.find((t=>t.formattedPrice>=i));return n||r[r.length-1]}},i=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
-
*/function
|
|
6
|
+
*/function o(t){return(e,o)=>void 0!==o?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,o):i(t,e)}
|
|
7
7
|
/**
|
|
8
8
|
* @license
|
|
9
9
|
* Copyright 2017 Google LLC
|
|
10
10
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
-
*/function
|
|
11
|
+
*/function r(t){return o({...t,state:!0})}
|
|
12
12
|
/**
|
|
13
13
|
* @license
|
|
14
14
|
* Copyright 2021 Google LLC
|
|
15
15
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
16
|
-
*/var
|
|
16
|
+
*/var n;null===(n=window.HTMLSlotElement)||void 0===n||n.prototype.assignedElements;
|
|
17
17
|
/**
|
|
18
18
|
* @license
|
|
19
19
|
* Copyright 2019 Google LLC
|
|
20
20
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
21
|
*/
|
|
22
|
-
const
|
|
22
|
+
const a=window,s=a.ShadowRoot&&(void 0===a.ShadyCSS||a.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,d=Symbol(),p=new WeakMap;let l=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==d)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(s&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=p.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&p.set(e,t))}return t}toString(){return this.cssText}};const c=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new l(i,t,d)},h=s?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new l("string"==typeof t?t:t+"",void 0,d))(e)})(t):t;
|
|
23
23
|
/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
|
|
27
|
+
*/var u;const m=window,g=m.trustedTypes,f=g?g.emptyScript:"",v=m.reactiveElementPolyfillSupport,b={toAttribute(t,e){switch(e){case Boolean:t=t?f:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(o){i=null}}return i}},y=(t,e)=>e!==t&&(e==e||t==t),_={attribute:!0,type:String,converter:b,reflect:!1,hasChanged:y},w="finalized";let C=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=_){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const r=this[t];this[e]=o,this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||_}static finalize(){if(this.hasOwnProperty(w))return!1;this[w]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(h(t))}else void 0!==t&&e.push(h(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{s?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=a.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=_){var o;const r=this.constructor._$Ep(t,i);if(void 0!==r&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:b).toAttribute(e,i.type);this._$El=t,null==n?this.removeAttribute(r):this.setAttribute(r,n),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,r=o._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=o.getPropertyOptions(r),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:b;this._$El=r,this[r]=n.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||y)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(o){throw e=!1,this._$Ek(),o}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};
|
|
28
28
|
/**
|
|
29
29
|
* @license
|
|
30
30
|
* Copyright 2017 Google LLC
|
|
31
31
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
32
|
*/
|
|
33
|
-
var
|
|
33
|
+
var x;C[w]=!0,C.elementProperties=new Map,C.elementStyles=[],C.shadowRootOptions={mode:"open"},null==v||v({ReactiveElement:C}),(null!==(u=m.reactiveElementVersions)&&void 0!==u?u:m.reactiveElementVersions=[]).push("1.6.3");const k=window,$=k.trustedTypes,S=$?$.createPolicy("lit-html",{createHTML:t=>t}):void 0,A="$lit$",P=`lit$${(Math.random()+"").slice(9)}$`,L="?"+P,z=`<${L}>`,E=document,I=()=>E.createComment(""),M=t=>null===t||"object"!=typeof t&&"function"!=typeof t,T=Array.isArray,q="[ \t\n\f\r]",j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,N=/-->/g,O=/>/g,V=RegExp(`>|${q}(?:([^\\s"'>=/]+)(${q}*=${q}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),R=/'/g,B=/"/g,U=/^(?:script|style|textarea|title)$/i,D=(G=1,(t,...e)=>({_$litType$:G,strings:t,values:e})),F=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),W=new WeakMap,Z=E.createTreeWalker(E,129,null,!1);var G;function K(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==S?S.createHTML(e):e}class J{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,n=0;const a=t.length-1,s=this.parts,[d,p]=((t,e)=>{const i=t.length-1,o=[];let r,n=2===e?"<svg>":"",a=j;for(let s=0;s<i;s++){const e=t[s];let i,d,p=-1,l=0;for(;l<e.length&&(a.lastIndex=l,d=a.exec(e),null!==d);)l=a.lastIndex,a===j?"!--"===d[1]?a=N:void 0!==d[1]?a=O:void 0!==d[2]?(U.test(d[2])&&(r=RegExp("</"+d[2],"g")),a=V):void 0!==d[3]&&(a=V):a===V?">"===d[0]?(a=null!=r?r:j,p=-1):void 0===d[1]?p=-2:(p=a.lastIndex-d[2].length,i=d[1],a=void 0===d[3]?V:'"'===d[3]?B:R):a===B||a===R?a=V:a===N||a===O?a=j:(a=V,r=void 0);const c=a===V&&t[s+1].startsWith("/>")?" ":"";n+=a===j?e+z:p>=0?(o.push(i),e.slice(0,p)+A+e.slice(p)+P+c):e+P+(-2===p?(o.push(void 0),s):c)}return[K(t,n+(t[i]||"<?>")+(2===e?"</svg>":"")),o]})(t,e);if(this.el=J.createElement(d,i),Z.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=Z.nextNode())&&s.length<a;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(A)||e.startsWith(P)){const i=p[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+A).split(P),e=/([.?@])?(.*)/.exec(i);s.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?et:"?"===e[1]?ot:"@"===e[1]?rt:tt})}else s.push({type:6,index:r})}for(const e of t)o.removeAttribute(e)}if(U.test(o.tagName)){const t=o.textContent.split(P),e=t.length-1;if(e>0){o.textContent=$?$.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],I()),Z.nextNode(),s.push({type:2,index:++r});o.append(t[e],I())}}}else if(8===o.nodeType)if(o.data===L)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(P,t+1));)s.push({type:7,index:r}),t+=P.length-1}r++}}static createElement(t,e){const i=E.createElement("template");return i.innerHTML=t,i}}function Q(t,e,i=t,o){var r,n,a,s;if(e===F)return e;let d=void 0!==o?null===(r=i._$Co)||void 0===r?void 0:r[o]:i._$Cl;const p=M(e)?void 0:e._$litDirective$;return(null==d?void 0:d.constructor)!==p&&(null===(n=null==d?void 0:d._$AO)||void 0===n||n.call(d,!1),void 0===p?d=void 0:(d=new p(t),d._$AT(t,i,o)),void 0!==o?(null!==(a=(s=i)._$Co)&&void 0!==a?a:s._$Co=[])[o]=d:i._$Cl=d),void 0!==d&&(e=Q(t,d._$AS(t,e.values),d,o)),e}class Y{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:E).importNode(i,!0);Z.currentNode=r;let n=Z.nextNode(),a=0,s=0,d=o[0];for(;void 0!==d;){if(a===d.index){let e;2===d.type?e=new X(n,n.nextSibling,this,t):1===d.type?e=new d.ctor(n,d.name,d.strings,this,t):6===d.type&&(e=new nt(n,this,t)),this._$AV.push(e),d=o[++s]}a!==(null==d?void 0:d.index)&&(n=Z.nextNode(),a++)}return Z.currentNode=E,r}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class X{constructor(t,e,i,o){var r;this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=null===(r=null==o?void 0:o.isConnected)||void 0===r||r}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Q(this,t,e),M(t)?t===H||null==t||""===t?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==F&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>T(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==H&&M(this._$AH)?this._$AA.nextSibling.data=t:this.$(E.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=J.createElement(K(o.h,o.h[0]),this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.v(i);else{const t=new Y(r,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=W.get(t.strings);return void 0===e&&W.set(t.strings,e=new J(t)),e}T(t){T(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const r of t)o===e.length?e.push(i=new X(this.k(I()),this.k(I()),this,this.options)):i=e[o],i._$AI(r),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class tt{constructor(t,e,i,o,r){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=H}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(void 0===r)t=Q(this,t,e,0),n=!M(t)||t!==this._$AH&&t!==F,n&&(this._$AH=t);else{const o=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=Q(this,o[i+a],e,a),s===F&&(s=this._$AH[a]),n||(n=!M(s)||s!==this._$AH[a]),s===H?t=H:t!==H&&(t+=(null!=s?s:"")+r[a+1]),this._$AH[a]=s}n&&!o&&this.j(t)}j(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class et extends tt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===H?void 0:t}}const it=$?$.emptyScript:"";class ot extends tt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==H?this.element.setAttribute(this.name,it):this.element.removeAttribute(this.name)}}class rt extends tt{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=Q(this,t,e,0))&&void 0!==i?i:H)===F)return;const o=this._$AH,r=t===H&&o!==H||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==H&&(o===H||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class nt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Q(this,t)}}const at=k.litHtmlPolyfillSupport;null==at||at(J,X),(null!==(x=k.litHtmlVersions)&&void 0!==x?x:k.litHtmlVersions=[]).push("2.8.0");const st=(t,e,i)=>{var o,r;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let a=n._$litPart$;if(void 0===a){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;n._$litPart$=a=new X(e.insertBefore(I(),t),t,void 0,null!=i?i:{})}return a._$AI(t),a};
|
|
34
34
|
/**
|
|
35
35
|
* @license
|
|
36
36
|
* Copyright 2017 Google LLC
|
|
37
37
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
38
|
-
*/var pt
|
|
38
|
+
*/var dt,pt;let lt=class extends C{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=st(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return F}};lt.finalized=!0,lt._$litElement$=!0,null===(dt=globalThis.litElementHydrateSupport)||void 0===dt||dt.call(globalThis,{LitElement:lt});const ct=globalThis.litElementPolyfillSupport;null==ct||ct({LitElement:lt}),(null!==(pt=globalThis.litElementVersions)&&void 0!==pt?pt:globalThis.litElementVersions=[]).push("3.3.3");const ht="langChanged";function ut(t,e,i){return Object.entries(gt(e||{})).reduce(((t,[e,i])=>t.replace(new RegExp(`{{[ ]*${e}[ ]*}}`,"gm"),String(gt(i)))),t)}function mt(t,e){const i=t.split(".");let o=e.strings;for(;null!=o&&i.length>0;)o=o[i.shift()];return null!=o?o.toString():null}function gt(t){return"function"==typeof t?t():t}let ft={loader:()=>Promise.resolve({}),empty:t=>`[${t}]`,lookup:mt,interpolate:ut,translationCache:{}};function vt(t,e,i=ft){var o;o={previousStrings:i.strings,previousLang:i.lang,lang:i.lang=t,strings:i.strings=e},window.dispatchEvent(new CustomEvent(ht,{detail:o}))}
|
|
39
39
|
/**
|
|
40
40
|
* @license
|
|
41
41
|
* Copyright 2017 Google LLC
|
|
42
42
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
43
43
|
*/
|
|
44
|
-
const
|
|
44
|
+
const bt=2;class yt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
45
45
|
/**
|
|
46
46
|
* @license
|
|
47
47
|
* Copyright 2020 Google LLC
|
|
48
48
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
49
|
-
*/const
|
|
49
|
+
*/const _t=(t,e)=>{var i,o;const r=t._$AN;if(void 0===r)return!1;for(const n of r)null===(o=(i=n)._$AO)||void 0===o||o.call(i,e,!1),_t(n,e);return!0},wt=t=>{let e,i;do{if(void 0===(e=t._$AM))break;i=e._$AN,i.delete(t),t=e}while(0===(null==i?void 0:i.size))},Ct=t=>{for(let e;e=t._$AM;t=e){let i=e._$AN;if(void 0===i)e._$AN=i=new Set;else if(i.has(t))break;i.add(t),$t(e)}};
|
|
50
50
|
/**
|
|
51
51
|
* @license
|
|
52
52
|
* Copyright 2017 Google LLC
|
|
53
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
54
|
-
*/function
|
|
54
|
+
*/function xt(t){void 0!==this._$AN?(wt(this),this._$AM=t,Ct(this)):this._$AM=t}function kt(t,e=!1,i=0){const o=this._$AH,r=this._$AN;if(void 0!==r&&0!==r.size)if(e)if(Array.isArray(o))for(let n=i;n<o.length;n++)_t(o[n],!1),wt(o[n]);else null!=o&&(_t(o,!1),wt(o));else _t(this,t)}const $t=t=>{var e,i,o,r;t.type==bt&&(null!==(e=(o=t)._$AP)&&void 0!==e||(o._$AP=kt),null!==(i=(r=t)._$AQ)&&void 0!==i||(r._$AQ=xt))};class St extends yt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),Ct(this),this.isConnected=t._$AU}_$AO(t,e=!0){var i,o;t!==this.isConnected&&(this.isConnected=t,t?null===(i=this.reconnected)||void 0===i||i.call(this):null===(o=this.disconnected)||void 0===o||o.call(this)),e&&(_t(this,t),wt(this))}setValue(t){if(void 0===this._$Ct.strings)this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}class At extends St{constructor(){super(...arguments),this.langChangedSubscription=null,this.getValue=()=>""}renderValue(t){return this.getValue=t,this.subscribe(),this.getValue()}langChanged(t){this.setValue(this.getValue(t))}subscribe(){null==this.langChangedSubscription&&(this.langChangedSubscription=function(t,e){const i=e=>t(e.detail);return window.addEventListener(ht,i,e),()=>window.removeEventListener(ht,i)}(this.langChanged.bind(this)))}unsubscribe(){null!=this.langChangedSubscription&&this.langChangedSubscription()}disconnected(){this.unsubscribe()}reconnected(){this.subscribe()}}const Pt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends At{render(t,e,i){return this.renderValue((()=>function(t,e,i=ft){let o=i.translationCache[t]||(i.translationCache[t]=i.lookup(t,i)||i.empty(t,i));return null!=(e=null!=e?gt(e):null)?i.interpolate(o,e,i):o}(t,e,i)))}});
|
|
55
55
|
/**
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2017 Google LLC
|
|
58
58
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
59
|
-
*/class
|
|
59
|
+
*/class Lt extends yt{constructor(t){if(super(t),this.et=H,t.type!==bt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===H||null==t)return this.ft=void 0,this.et=t;if(t===F)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Lt.directiveName="unsafeHTML",Lt.resultType=1;const zt="__registered_effects";function Et(t){const e=t;if(e[zt])return e;const i=function(t){if(!t.dispatchEvent||!t.requestUpdate)throw new Error("Element missing required functions (dispatchEvent/requestUpdate)");return t}(t),o=i.updated;return e[zt]={index:0,count:0,effects:[]},i.updated=t=>(e[zt].index=0,o(t)),e}function It(t,e,i){const o=function(t,e){const i=Et(t),{index:o,count:r}=i[zt];return o===r?(i[zt].index++,i[zt].count++,i[zt].effects.push(e),e):(i[zt].index++,i[zt].effects[o])}(t,{on:e,observe:["__initial__dirty"]});o.observe.some(((t,e)=>i[e]!==t))&&o.on(),o.observe=i}
|
|
60
60
|
/**
|
|
61
61
|
* @license
|
|
62
62
|
* Copyright 2021 Google LLC
|
|
63
63
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64
64
|
*/
|
|
65
|
-
function
|
|
65
|
+
function Mt(t,e,i){return t?e():null==i?void 0:i()}const Tt=c`
|
|
66
66
|
:host {
|
|
67
67
|
--shipaid-primary: #0056d6;
|
|
68
68
|
--shipaid-secondary: #0076ff;
|
|
@@ -283,7 +283,7 @@ function Tt(t,e,i){return t?e():null==i?void 0:i()}const qt=h`
|
|
|
283
283
|
background: transparent;
|
|
284
284
|
z-index: -1;
|
|
285
285
|
}
|
|
286
|
-
`,
|
|
286
|
+
`,qt=D`
|
|
287
287
|
<svg
|
|
288
288
|
version="1.0"
|
|
289
289
|
width="50.000000pt"
|
|
@@ -304,7 +304,7 @@ function Tt(t,e,i){return t?e():null==i?void 0:i()}const qt=h`
|
|
|
304
304
|
/>
|
|
305
305
|
</g>
|
|
306
306
|
</svg>
|
|
307
|
-
`,
|
|
307
|
+
`,jt=D`
|
|
308
308
|
<svg
|
|
309
309
|
version="1.0"
|
|
310
310
|
width="50.000000pt"
|
|
@@ -325,7 +325,7 @@ function Tt(t,e,i){return t?e():null==i?void 0:i()}const qt=h`
|
|
|
325
325
|
/>
|
|
326
326
|
</g>
|
|
327
327
|
</svg>
|
|
328
|
-
`,
|
|
328
|
+
`,Nt=D`
|
|
329
329
|
<svg
|
|
330
330
|
version="1.0"
|
|
331
331
|
width="2rem"
|
|
@@ -346,7 +346,7 @@ function Tt(t,e,i){return t?e():null==i?void 0:i()}const qt=h`
|
|
|
346
346
|
/>
|
|
347
347
|
</g>
|
|
348
348
|
</svg>
|
|
349
|
-
`,
|
|
349
|
+
`,Ot=D`
|
|
350
350
|
<svg
|
|
351
351
|
width="50.000000pt"
|
|
352
352
|
height="50.000000pt"
|
|
@@ -430,7 +430,7 @@ function Tt(t,e,i){return t?e():null==i?void 0:i()}const qt=h`
|
|
|
430
430
|
/>
|
|
431
431
|
</g>
|
|
432
432
|
</svg>
|
|
433
|
-
`,
|
|
433
|
+
`,Vt=D`
|
|
434
434
|
<svg
|
|
435
435
|
viewBox="-25 -40 470 125"
|
|
436
436
|
version="1.1"
|
|
@@ -512,7 +512,7 @@ function Tt(t,e,i){return t?e():null==i?void 0:i()}const qt=h`
|
|
|
512
512
|
/>
|
|
513
513
|
</g>
|
|
514
514
|
</svg>
|
|
515
|
-
`,
|
|
515
|
+
`,Rt=D`
|
|
516
516
|
<svg
|
|
517
517
|
version="1.0"
|
|
518
518
|
viewBox="0 0 500.000000 500.000000"
|
|
@@ -537,7 +537,7 @@ function Tt(t,e,i){return t?e():null==i?void 0:i()}const qt=h`
|
|
|
537
537
|
/>
|
|
538
538
|
</g>
|
|
539
539
|
</svg>
|
|
540
|
-
`,
|
|
540
|
+
`,Bt=D`
|
|
541
541
|
<svg
|
|
542
542
|
version="1.0"
|
|
543
543
|
viewBox="0 0 500.000000 500.000000"
|
|
@@ -556,7 +556,7 @@ function Tt(t,e,i){return t?e():null==i?void 0:i()}const qt=h`
|
|
|
556
556
|
/>
|
|
557
557
|
</g>
|
|
558
558
|
</svg>
|
|
559
|
-
`,
|
|
559
|
+
`,Ut=D`
|
|
560
560
|
<svg
|
|
561
561
|
version="1.0"
|
|
562
562
|
viewBox="0 0 500.000000 500.000000"
|
|
@@ -581,7 +581,7 @@ function Tt(t,e,i){return t?e():null==i?void 0:i()}const qt=h`
|
|
|
581
581
|
/>
|
|
582
582
|
</g>
|
|
583
583
|
</svg>
|
|
584
|
-
`,
|
|
584
|
+
`,Dt=D`
|
|
585
585
|
<svg
|
|
586
586
|
xmlns="http://www.w3.org/2000/svg"
|
|
587
587
|
version="1.0"
|
|
@@ -607,37 +607,37 @@ function Tt(t,e,i){return t?e():null==i?void 0:i()}const qt=h`
|
|
|
607
607
|
/>
|
|
608
608
|
</g>
|
|
609
609
|
</svg>
|
|
610
|
-
`;var
|
|
610
|
+
`;var Ft=Object.defineProperty;const Ht=class extends lt{constructor(){super(...arguments),this.active=!1}handleClosePopup(){const t=new Event("close");this.dispatchEvent(t)}render(){return D`
|
|
611
611
|
<div class=${`shipaid-popup ${this.active&&"active"}`}>
|
|
612
612
|
<button
|
|
613
613
|
type="button"
|
|
614
614
|
class="popup-close"
|
|
615
615
|
@click=${this.handleClosePopup}
|
|
616
616
|
>
|
|
617
|
-
${
|
|
617
|
+
${Pt("learn-more-popup.close")}
|
|
618
618
|
</button>
|
|
619
|
-
<div class="popup-logo">${
|
|
620
|
-
<p class="popup-title">${
|
|
619
|
+
<div class="popup-logo">${Vt}</div>
|
|
620
|
+
<p class="popup-title">${Pt("learn-more-popup.title")}</p>
|
|
621
621
|
<div class="popup-disclaimer-subtitle subtitle-enable">
|
|
622
|
-
<div class="popup-icon">${
|
|
623
|
-
<p>${
|
|
622
|
+
<div class="popup-icon">${Rt}</div>
|
|
623
|
+
<p>${Pt("learn-more-popup.disclaimer.subtitle-enable")}</p>
|
|
624
624
|
</div>
|
|
625
625
|
<div class="popup-disclaimer-subtitle subtitle-monitor">
|
|
626
|
-
<div class="popup-icon">${
|
|
627
|
-
<p>${
|
|
626
|
+
<div class="popup-icon">${Bt}</div>
|
|
627
|
+
<p>${Pt("learn-more-popup.disclaimer.subtitle-monitor")}</p>
|
|
628
628
|
</div>
|
|
629
629
|
<div class="popup-disclaimer-subtitle subtitle-notify">
|
|
630
|
-
<div class="popup-icon-b">${
|
|
631
|
-
<p>${
|
|
630
|
+
<div class="popup-icon-b">${Dt}</div>
|
|
631
|
+
<p>${Pt("learn-more-popup.disclaimer.subtitle-notify")}</p>
|
|
632
632
|
</div>
|
|
633
633
|
<div class="popup-disclaimer-subtitle subtitle-resolution">
|
|
634
|
-
<div class="popup-icon-bell">${
|
|
634
|
+
<div class="popup-icon-bell">${Ut}</div>
|
|
635
635
|
<p>
|
|
636
|
-
${
|
|
636
|
+
${Pt("learn-more-popup.disclaimer.subtitle-resolution")}
|
|
637
637
|
</p>
|
|
638
638
|
</div>
|
|
639
639
|
<p class="popup-disclaimer">
|
|
640
|
-
${
|
|
640
|
+
${Pt("learn-more-popup.disclaimer.text")}
|
|
641
641
|
</p>
|
|
642
642
|
<hr class="popup-divider" />
|
|
643
643
|
<div class="popup-footer">
|
|
@@ -647,14 +647,14 @@ function Tt(t,e,i){return t?e():null==i?void 0:i()}const qt=h`
|
|
|
647
647
|
target="_blank"
|
|
648
648
|
rel="noreferrer"
|
|
649
649
|
>
|
|
650
|
-
${
|
|
650
|
+
${Pt("learn-more-popup.links.terms")}
|
|
651
651
|
</a>
|
|
652
652
|
<a
|
|
653
653
|
href="https://www.shipaid.com/privacy-policy"
|
|
654
654
|
target="_blank"
|
|
655
655
|
rel="noreferrer"
|
|
656
656
|
>
|
|
657
|
-
${
|
|
657
|
+
${Pt("learn-more-popup.links.privacy")}
|
|
658
658
|
</a>
|
|
659
659
|
</div>
|
|
660
660
|
<div class="footer-date">
|
|
@@ -667,7 +667,7 @@ function Tt(t,e,i){return t?e():null==i?void 0:i()}const qt=h`
|
|
|
667
667
|
</div>
|
|
668
668
|
</div>
|
|
669
669
|
<div class="blocker" @click=${this.handleClosePopup}></div>
|
|
670
|
-
`}};
|
|
670
|
+
`}};Ht.styles=Tt;let Wt=Ht;((t,e,i)=>{for(var o,r=void 0,n=t.length-1;n>=0;n--)(o=t[n])&&(r=o(e,i,r)||r);r&&Ft(e,i,r)})([o({type:Boolean,attribute:!0})],Wt.prototype,"active"),customElements.get("shipaid-popup-learn-more")||customElements.define("shipaid-popup-learn-more",Wt);const Zt=c`
|
|
671
671
|
:host {
|
|
672
672
|
--shipaid-primary: #0056d6;
|
|
673
673
|
--shipaid-secondary: #0076ff;
|
|
@@ -814,7 +814,7 @@ function Tt(t,e,i){return t?e():null==i?void 0:i()}const qt=h`
|
|
|
814
814
|
background: transparent;
|
|
815
815
|
z-index: -1;
|
|
816
816
|
}
|
|
817
|
-
`;var
|
|
817
|
+
`;var Gt=Object.defineProperty;const Kt=class extends lt{constructor(){super(...arguments),this.active=!1}handleClosePopup(){const t=new Event("close");this.dispatchEvent(t)}handleRemoveProtection(){const t=new Event("remove-protection");this.dispatchEvent(t)}render(){return D`
|
|
818
818
|
<div class=${`shipaid-confirmation-popup ${this.active&&"active"}`}>
|
|
819
819
|
<p class="popup-title">Are you sure?</p>
|
|
820
820
|
<div class="popup-subtitle">
|
|
@@ -838,7 +838,7 @@ function Tt(t,e,i){return t?e():null==i?void 0:i()}const qt=h`
|
|
|
838
838
|
</div>
|
|
839
839
|
</div>
|
|
840
840
|
<div class="blocker" @click=${this.handleClosePopup}></div>
|
|
841
|
-
`}};
|
|
841
|
+
`}};Kt.styles=Zt;let Jt=Kt;((t,e,i)=>{for(var o,r=void 0,n=t.length-1;n>=0;n--)(o=t[n])&&(r=o(e,i,r)||r);r&&Gt(e,i,r)})([o({type:Boolean,attribute:!0})],Jt.prototype,"active"),customElements.get("shipaid-popup-confirmation")||customElements.define("shipaid-popup-confirmation",Jt);var Qt=Object.defineProperty,Yt=(t,e,i,o)=>{for(var r,n=void 0,a=t.length-1;a>=0;a--)(r=t[a])&&(n=r(e,i,n)||n);return n&&Qt(e,i,n),n};const Xt=class extends lt{constructor(){super(...arguments),this.open=!1,this.product=null,this.imageUrl=null,this.priceOfVariant=null,this.quantity=1,this.dontShowAgain="yes"===sessionStorage.getItem("shipaid-confirmation-dontshow")}handleDismiss(){this.dispatchEvent(new Event("dismiss-shipaid-cart"))}handleDontShowAgain(t){t.target.checked?sessionStorage.setItem("shipaid-confirmation-dontshow","yes"):sessionStorage.removeItem("shipaid-confirmation-dontshow")}handleConfirm(){this.dispatchEvent(new Event("confirm-shipaid-cart"))}render(){return D`
|
|
842
842
|
<div class=${"shipaid-cart-popup "+(this.open?"open":"")}>
|
|
843
843
|
<div class="popup-heading">
|
|
844
844
|
<slot name="shipaid-cart-popup-heading">Protect Your Order Instantly</slot>
|
|
@@ -871,7 +871,7 @@ function Tt(t,e,i){return t?e():null==i?void 0:i()}const qt=h`
|
|
|
871
871
|
<p>Don't show this again</p>
|
|
872
872
|
</label>
|
|
873
873
|
</div>
|
|
874
|
-
`}};
|
|
874
|
+
`}};Xt.styles=c`
|
|
875
875
|
:host {
|
|
876
876
|
--shipaid-popup-width: 420px;
|
|
877
877
|
--shipaid-popup-background: #ffffff;
|
|
@@ -1001,7 +1001,7 @@ function Tt(t,e,i){return t?e():null==i?void 0:i()}const qt=h`
|
|
|
1001
1001
|
fill: var(--shipaid-svg-fill);
|
|
1002
1002
|
stroke: var(--shipaid-svg-stroke);
|
|
1003
1003
|
}
|
|
1004
|
-
`;let
|
|
1004
|
+
`;let te=Xt;Yt([o({type:Boolean,attribute:!0})],te.prototype,"open"),Yt([o({type:String,attribute:!0})],te.prototype,"product"),Yt([o({type:String,attribute:!0})],te.prototype,"imageUrl"),Yt([o({type:String,attribute:!0})],te.prototype,"priceOfVariant"),Yt([o({type:String,attribute:!0})],te.prototype,"quantity"),Yt([o({type:Boolean})],te.prototype,"dontShowAgain"),customElements.get("shipaid-cart-confirmation")||customElements.define("shipaid-cart-confirmation",te);var ee=Object.defineProperty,ie=(t,e,i,o)=>{for(var r,n=void 0,a=t.length-1;a>=0;a--)(r=t[a])&&(n=r(e,i,n)||n);return n&&ee(e,i,n),n};class oe extends lt{constructor(){super(...arguments),this.protectionPrice=0,this.checkoutTotal=0,this.shipaidVariant=null,this.logo="",this.originalClasses=""}createRenderRoot(){return this}handleAbout(){this.dispatchEvent(new Event("shipaid-about"))}handleCheckoutWithoutProtection(){this.dispatchEvent(new Event("shipaid-remove-protection"))}render(){return D`
|
|
1005
1005
|
<div class="shipaid-container">
|
|
1006
1006
|
<div class="protection-info">
|
|
1007
1007
|
<div class="protection-text">
|
|
@@ -1027,7 +1027,7 @@ function Tt(t,e,i){return t?e():null==i?void 0:i()}const qt=h`
|
|
|
1027
1027
|
Continue without delivery guarantee
|
|
1028
1028
|
</a>
|
|
1029
1029
|
</div>
|
|
1030
|
-
`}}
|
|
1030
|
+
`}}ie([o()],oe.prototype,"protectionPrice"),ie([o()],oe.prototype,"checkoutTotal"),ie([o()],oe.prototype,"shipaidVariant"),ie([o()],oe.prototype,"logo"),ie([o({type:String})],oe.prototype,"originalClasses"),customElements.get("checkout-package-protection")||customElements.define("checkout-package-protection",oe);const re="Loading ShipAid Widget...",ne="Delivery Guarantee",ae="in case of Loss, Damage or Theft",se={button:"Powered by"},de={add:"Add",remove:"Remove",loading:"Loading..."},pe={loading:re,title:ne,description:ae,footer:se,actions:de,"learn-more-popup":{close:"Close",title:"Delivery Guarantee",disclaimer:{"subtitle-enable":"We enable your favorite brands to provide a delivery guarantee because we know that every order is precious, and things happen!","subtitle-monitor":"We continuously monitor your package and offer a convenient portal for you to track your order's progress at any moment!","subtitle-notify":"You'll be notified throughout the entire shipping process, ensuring you stay up to date every step of the way.","subtitle-resolution":"In case of any issues during transit, we offer a quick and easy method to report the problem directly to the brand, for a swift resolution.",text:"By purchasing this delivery guarantee, you agree to our Terms Of Service and Privacy Policy. You are not obligated to purchase this guarantee. This guarantee is NOT insurance and does not provide indemnification against loss, damage, or liability arising from a contingent or unknown event, but rather, through ShipAid brands provide a delivery guarantee whereby if the product you ordered is not delivered in satisfactory condition, the brand from which you ordered the product may replace the product free of charge. ShipAid does not provide any products or services directly to consumers, but instead provides a service that allow brands to facilitate product replacement to their customers. Purchasing this guarantee does not mean that you will automatically be reimbursed for any product or shipping costs because the resolution process and decision for compensation is strictly decided by the brand you a purchasing from. The brand will require proof of damage or undelivered product."},links:{terms:"Terms of Service",privacy:"Privacy Policy"}},"checkout-plus":{title:"ShipAid Delivery Guarantee",checkout:"CHECKOUT","checkout-title":"Checkout",continue:"Continue without delivery guarantee"}},le=Object.freeze(Object.defineProperty({__proto__:null,actions:de,default:pe,description:ae,footer:se,loading:re,title:ne},Symbol.toStringTag,{value:"Module"})),ce=c`
|
|
1031
1031
|
:host {
|
|
1032
1032
|
--shipaid-primary: #002bd6;
|
|
1033
1033
|
--shipaid-secondary: #0076ff;
|
|
@@ -1183,25 +1183,25 @@ function Tt(t,e,i){return t?e():null==i?void 0:i()}const qt=h`
|
|
|
1183
1183
|
.shipaid-prompt .prompt-footer .prompt-footer-badge svg {
|
|
1184
1184
|
height:var(--shipaid-footer-badge-logo-height, 9px);
|
|
1185
1185
|
}
|
|
1186
|
-
`;var ue=(t=>(t.LOADED="shipaid-loaded",t.STATUS_UPDATE="shipaid-protection-status",t))(ue||{});var me=Object.defineProperty,ge=(t,e,i,o)=>{for(var r,n=void 0,a=t.length-1;a>=0;a--)(r=t[a])&&(n=r(e,i,n)||n);return n&&me(e,i,n),n};const fe=t=>({items:t.lines.edges.map((({node:t})=>({id:t.id,key:t.id,variant_id:t.merchandise.id,sku:t.merchandise.sku,final_line_price:parseFloat(t.cost.totalAmount.amount),quantity:t.quantity}))),total_price:parseFloat(t.cost.totalAmount.amount),item_count:t.lines.edges.length}),ve=async(t,e)=>{try{const i=await fetch(t,e);if(!i.ok)throw new Error(await i.text());return await i.json()}catch(i){throw console.error(i),new Error("Failed to complete fetch request.")}},be=t=>console.warn(`[ShipAid] ${t}`),ye=t=>console.error(`[ShipAid] ${t}`),_e="shipaid-protection",we="shipaid-protection-popup-show",Ce="shipaid-protection",xe="query StoreByDomain ($store: String!) {\n store: storeByDomain (input: {store: $store}) {\n currency\n planActive\n store\n widgetAutoOptIn\n widgetPollProtection\n widgetShowCart\n excludedProductSkus\n excludedCustomersIdsAutoOptIn\n protectionSettings\n widgetConfigurations\n useCustomApp\n }\n}",ke=Object.assign({"./lang/de.json":()=>Promise.resolve().then((()=>Te)).then((t=>t.default)),"./lang/en.json":()=>Promise.resolve().then((()=>ce)).then((t=>t.default)),"./lang/es.json":()=>Promise.resolve().then((()=>Be)).then((t=>t.default)),"./lang/fr.json":()=>Promise.resolve().then((()=>Ge)).then((t=>t.default)),"./lang/it.json":()=>Promise.resolve().then((()=>ei)).then((t=>t.default)),"./lang/nl.json":()=>Promise.resolve().then((()=>di)).then((t=>t.default)),"./lang/pt.json":()=>Promise.resolve().then((()=>gi)).then((t=>t.default))});var $e;$e={loader:async t=>{if("en"===t)return le;const e=Reflect.get(ke,`./lang/${t}.json`);return e?await e():le}},vt=Object.assign(Object.assign({},vt),$e);const Se=class extends ct{constructor(){var t,e,i;super(...arguments),this.env="prod",this.useCustomStoreFront=!1,this.storeDomain="",this.storeAccessToken="",this.cartId="",this.disablePolling=!1,this.disableActions=!1,this.pollingInterval=2500,this.disableRefresh=!1,this.refreshCart=!1,this.persistPopup=!1,this.defaultToggleButton=!1,this.lang="en",this.currency=void 0,this.customerId=void 0,this.supportSubscriptions=!1,this.dataSelector="",this.shadowRootSelector="",this.useShipAidCheckout=!1,this._apiEndpoint="/apps/shipaid",this._storeDomain=(null==(t=window.Shopify)?void 0:t.shop)??(null==(i=null==(e=window.Shopify)?void 0:e.Checkout)?void 0:i.apiHost),this._hasFinishedSetup=!1,this._shouldShowWidget=!1,this._hasProtectionInCart=!1,this.hasLoadedStrings=!1,this.fetchInterceptorCleanup=()=>{},this.intervalId=null,this._sellingPlanId=null,this._state={loading:!1,success:null,error:!1},this._popup=null,this._fetch={get:t=>ve(t),post:(t,e)=>ve(t,{method:"POST",headers:{"Content-Type":"application/json","X-ShipAid":"1"},body:JSON.stringify(e)})},this.getElementsBySelector=t=>t?document.querySelectorAll(`${t}:not(#shipaid-checkout-button)`):[],this.addStylesIfNeeded=()=>{var t,e,i,o,r;const n=null==(o=null==(i=null==(e=null==(t=this._store)?void 0:t.widgetConfigurations)?void 0:e.widget)?void 0:i.theme_checkout)?void 0:o.styles,a=n?`\n checkout-package-protection {\n ${n.checkoutWidget||""}\n width: var(--widget-width, 100%);\n }\n .shipaid-checkout-container {\n display: flex;\n ${n.checkoutContainer||""}\n justify-content: var(--container-x-position, center);\n }\n ${n.storeTheme||""}\n `.trim():"",s="[shipaid-hidden] { display: none !important; }"+(a?"\n"+a:""),d=document.getElementById("shipaid-styles");if(d)n&&!(null==(r=d.textContent)?void 0:r.includes(n.checkoutWidget||""))&&(d.textContent+="\n"+a);else{const t=document.createElement("style");t.id="shipaid-styles",t.textContent=s,document.head.appendChild(t)}}}shouldUpdate(t){return this.hasLoadedStrings&&super.shouldUpdate(t)}shouldPersistPopup(){return"true"===localStorage.getItem(`${we}`)?"learn-more":null}setPopupKey(){this.persistPopup&&localStorage.setItem(`${we}`,"true")}get nhost(){const t=`https://${"prod"===this.env?"gjiyysyzjwuculcymsvb":"staging"===this.env?"xfnjpunvafvudwuzwjlm":"local"}.graphql.us-east-1.nhost.run/v1`;return{request:async(e,i)=>{try{const o=await fetch(t,{method:"post",body:JSON.stringify({query:e,variables:i})});return await o.json()}catch(o){console.log(`Nhost Error: ${o}`)}}}}async runStoreFrontQuery(t,e){try{const i=new Headers;i.append("Content-Type","application/json"),i.append("X-Shopify-Storefront-Access-Token",this.storeAccessToken);const o={method:"POST",headers:i,body:JSON.stringify({query:t,variables:e})},r=await fetch(`https://${this.storeDomain}/api/2021-07/graphql.json`,o);if(!r.ok)throw new Error(`GraphQL request failed: ${r.statusText}`);const n=await r.json();if(n.errors)throw new Error(n.errors[0].message);return n.data}catch(i){throw console.error("GraphQL query error:",i),new Error("Failed to execute GraphQL query")}}get shouldRefreshOnUpdate(){return!this.disablePolling&&!this.disableRefresh}get planActive(){var t,e;const{searchParams:i}=new URL(window.location.href);return(null==(t=window.Shopify)?void 0:t.designMode)||i.has("shipaid-test")?(be("Currently in preview mode."),!0):!!(null==(e=this._store)?void 0:e.planActive)}_currencyFormat(t){var e,i,o,r,n,a;const s=this.currency||(null==(i=null==(e=window.Shopify)?void 0:e.currency)?void 0:i.active)||(null==(o=this._store)?void 0:o.currency)||"USD";if(null==(a=null==(n=null==(r=this._store)?void 0:r.widgetConfigurations)?void 0:n.widget)?void 0:a.currencyFormat){return this._store.widgetConfigurations.widget.currencyFormat.replace("_value_",Number(t)).replace("_currency_",s)}return new Intl.NumberFormat(void 0,{currency:s,style:"currency"}).format(Number(t))}_dispatchEvent(t,e={}){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e}))}_handleRefreshCart(){if(this.refreshCart)return window.location.reload()}async _handleRefresh(t){const e=Reflect.has(t,"items");if(this.shouldRefreshOnUpdate)return window.location.reload();e||await this.updateCart(),this._dispatchEvent(ue.STATUS_UPDATE,{protection:this._hasProtectionInCart,cart:e?t:this._cart,lineItem:e?this._protectionCartItem:t})}async calculateProtectionTotal(t){if(t||(t=await this._fetchCart()),!t)throw new Error("Could not fetch cart.");if(!this._store)throw new Error("Missing ShipAid store");if(!this._protectionProduct)throw new Error("Missing Shopify protection product");return e.calculateProtectionTotal(this._store,this._protectionProduct,t)}_findProtectionVariant(t){if(!this._store)throw new Error("Missing ShipAid store");if(!this._protectionProduct)throw new Error("Missing Shopify protection product");return e.findProtectionVariant(this._store,this._protectionProduct,t)}_setState(t,e){this._state={loading:"loading"===t,success:"success"===t,error:"error"===t&&(e||!0)}}_handleConfirmationPopup(){"confirmation"!==this._popup&&(this._popup="confirmation")}_updateProtection(){var t,e,i;const o=null==(i=null==(e=null==(t=this._store)?void 0:t.widgetConfigurations)?void 0:e.widget)?void 0:i.removeWithConfirmation;if(this._hasProtectionInCart)return o?this._handleConfirmationPopup():this.removeProtection();this.addProtection()}async _fetchShipAidData(){var t,e,i,o,r;let n;if(n=this.storeDomain?this.storeDomain:(null==(t=window.Shopify)?void 0:t.shop)??(null==(i=null==(e=window.Shopify)?void 0:e.Checkout)?void 0:i.apiHost),!n)throw new Error("No shop found in Shopify object.");try{let t,e;if(this.useCustomStoreFront)e=await this.nhost.request(xe,{store:n});else{t=new URL(window.location.href),t.pathname=this._apiEndpoint;const i={query:xe,variables:{store:n}};e=await this._fetch.post(t.toString(),i)}if(!e)throw new Error("Missing response for store query.");if(null==(o=e.errors)?void 0:o.length)throw new Error(e.errors[0].message);if(!(null==(r=e.data)?void 0:r.store))throw new Error("Missing store from store query response.");return e.data.store}catch(a){throw console.error(a),new Error(`Could not find a store for ${this._storeDomain}`)}}_findSellingPlanByName(t,e){for(const i of t){const t=i.node;for(const i of t.sellingPlans.edges){const t=i.node;if(e===t.name)return t}}return null}async _fetchSellingPlanFromVariant(t){var e,i,o,r,n,a,s,d,p,l,c,h,u;const m=(null==(e=window.Shopify)?void 0:e.shop)??(null==(o=null==(i=window.Shopify)?void 0:i.Checkout)?void 0:o.apiHost);if(!m)throw new Error("No shop found in Shopify object.");try{const e=new URL(window.location.href);e.pathname=this._apiEndpoint;const i={query:"query SellingPlanFromVariant($store: String!, $variantId: String!){\n sellingPlanFromVariant(input: {store: $store, variantId: $variantId })\n}",variables:{store:m,variantId:`gid://shopify/ProductVariant/${null==(r=this._protectionVariant)?void 0:r.id}`}},o=await this._fetch.post(e.toString(),i);if(!o)throw new Error("Missing response for selling plan query.");if(null==(n=o.errors)?void 0:n.length)throw new Error(o.errors[0].message);if(!(null==(a=o.data)?void 0:a.sellingPlanFromVariant))throw new Error("Missing variant from selling plan query response.");const g=(null==(d=null==(s=o.data.sellingPlanFromVariant)?void 0:s.sellingPlanGroups)?void 0:d.edges)||[],f=(null==(u=null==(h=null==(c=null==(l=null==(p=g[0])?void 0:p.node)?void 0:l.sellingPlans)?void 0:c.edges)?void 0:h[0])?void 0:u.node)||null;return this._findSellingPlanByName(g,t.name)||f}catch(g){console.error("Error during the query ====>",g)}}async _fetchCart(){try{if(this.useCustomStoreFront&&this.cartId){const t=await this.runStoreFrontQuery("query getCart($cartId: ID!){ cart( id: $cartId ) { id createdAt updatedAt lines(first: 10) { edges { node { id quantity merchandise { ... on ProductVariant { id sku } } cost{ totalAmount{ amount currencyCode } } } } } cost { totalAmount { amount currencyCode } subtotalAmount { amount currencyCode } } } }",{cartId:this.cartId});return fe(t.cart)}return await this._fetch.get("/cart.js")}catch(t){throw ye(t.message),new Error("Could not fetch cart for current domain.")}}async _fetchProduct(){var t,e,i,o,r,n,a,s;try{let d;if(this.useCustomStoreFront){const p=await this.runStoreFrontQuery("query product($handle: String!) { product(handle: $handle) { id title images(first: 1) {edges { node { id url altText } } } handle variants(first: 100) { edges { node { id title price { amount } } } } } }",{handle:Ce});if(null==p?void 0:p.product){const l=p.product;d={id:l.id,title:l.title,image:{id:null==(o=null==(i=null==(e=null==(t=null==l?void 0:l.images)?void 0:t.edges)?void 0:e[0])?void 0:i.node)?void 0:o.id,src:null==(s=null==(a=null==(n=null==(r=null==l?void 0:l.images)?void 0:r.edges)?void 0:n[0])?void 0:a.node)?void 0:s.url},variants:l.variants.edges.map((t=>({id:t.node.id,price:t.node.price.amount})))}}}else d=(await this._fetch.get(`/products/${Ce}.json`)).product;return d}catch(d){throw ye(d.message),new Error("Could not fetch protection product for current domain.")}}hasProtection(){return this._hasProtectionInCart}async updateCart(t){t||(t=await this._fetchCart()),this._cart=t}async addCartProtectionVariant(){var t,e;let i;if(this.useCustomStoreFront){const e=await this.runStoreFrontQuery("mutation AddItemToCart($cartId: ID!, $lines: [CartLineInput!]!) { cartLinesAdd(cartId: $cartId, lines: $lines) { cart { id lines(first: 10) { edges { node { id quantity merchandise { ... on ProductVariant { id sku } } cost{ totalAmount{ amount currencyCode } } } } } cost { totalAmount { amount currencyCode } subtotalAmount { amount currencyCode } } } } }",{cartId:this.cartId,lines:[{merchandiseId:String(null==(t=this._protectionVariant)?void 0:t.id),quantity:1,sellingPlanId:this._sellingPlanId}]});i=fe(e.cartLinesAdd.cart)}else{const t={quantity:1,id:String(null==(e=this._protectionVariant)?void 0:e.id),selling_plan:this._sellingPlanId};i=await this._fetch.post("/cart/add.js",t)}return i}async updateCartProtectionVariant(t,e=null){var i,o;let r;if(this.useCustomStoreFront){const o=await this.runStoreFrontQuery("mutation RemoveItemToCart($cartId: ID!, $lines: [CartLineUpdateInput!]!) { cartLinesUpdate(cartId: $cartId, lines: $lines) { cart { id lines(first: 10) { edges { node { id quantity merchandise { ... on ProductVariant { id sku } } cost{ totalAmount{ amount currencyCode } } } } } cost { totalAmount { amount currencyCode } subtotalAmount { amount currencyCode } } } } }",{cartId:this.cartId,lines:[{id:String(e?e.key:null==(i=this._protectionCartItem)?void 0:i.key),quantity:t,sellingPlanId:this._sellingPlanId}]});r=fe(o.cartLinesUpdate.cart)}else{const i={quantity:t,id:String(e?e.key:null==(o=this._protectionCartItem)?void 0:o.key),selling_plan:this._sellingPlanId};r=await this._fetch.post("/cart/change.js",i)}return r}async addProtection(){var t,e;try{if(!this._store)throw new Error("Store has not been loaded.");if(!(null==(t=this._cart)?void 0:t.items))throw new Error("Cart has not been loaded.");if(!(null==(e=this._protectionVariant)?void 0:e.id))throw new Error("No protection variant found.");this._setState("loading");const i=await this.addCartProtectionVariant();await this._handleRefresh(i),this._setState("success")}catch(i){ye(i.message)}finally{this._cart=await this._fetchCart(),this._setState("success")}}async removeProtection(){try{if(!this._store)throw new Error("Store has not been loaded.");if(!this._protectionCartItem)throw new Error("Protection product not found.");this._setState("loading");const t=await this.updateCartProtectionVariant(0,this._protectionCartItem);await this._handleRefresh(t),this._cart=t,this._setState("success")}catch(t){ye(t.message)}finally{this._cart=await this._fetchCart(),this._setState("success")}}async attemptAddProtection(){var t,e,i,o,r,n;if(!(null==(t=this._store)?void 0:t.widgetAutoOptIn))return;if(!(null==(e=this._cart)?void 0:e.items)||!(null==(i=this._cart)?void 0:i.item_count))return;const a=null==(o=this._cart.items)?void 0:o.findIndex((t=>{var e,i;return null==(i=null==(e=this._protectionProduct)?void 0:e.variants)?void 0:i.some((e=>e.id===t.variant_id))})),s=null==(r=this._cart)?void 0:r.items[a];if(this._hasProtectionInCart=!!s,1===this._cart.item_count&&s)return;!!sessionStorage.getItem(_e)||!this._hasProtectionInCart&&(null==(n=this._cart)?void 0:n.item_count)&&this._store.widgetShowCart&&(await this.addProtection(),sessionStorage.setItem(_e,JSON.stringify({loaded:!0})))}async handleMultipleProtectionVariants(){var t,e,i,o,r;if(!(null==(t=this._cart)?void 0:t.items)||!(null==(e=this._cart)?void 0:e.item_count))return;let n=0;if(null==(i=this._cart.items)||i.forEach((t=>{var e,i;(null==(i=null==(e=this._protectionProduct)?void 0:e.variants)?void 0:i.some((e=>e.id===t.variant_id)))&&n++})),n>1){const t=null==(o=this._cart.items)?void 0:o.findIndex((t=>{var e,i;return null==(i=null==(e=this._protectionProduct)?void 0:e.variants)?void 0:i.some((e=>e.id===t.variant_id))})),e=null==(r=this._cart)?void 0:r.items[t],i=await this.updateCartProtectionVariant(0,e);return await this._handleRefresh(i)}}learnMorePopupTemplate(){return F`
|
|
1186
|
+
`;var he=(t=>(t.LOADED="shipaid-loaded",t.STATUS_UPDATE="shipaid-protection-status",t))(he||{});var ue=Object.defineProperty,me=(t,e,i,o)=>{for(var r,n=void 0,a=t.length-1;a>=0;a--)(r=t[a])&&(n=r(e,i,n)||n);return n&&ue(e,i,n),n};const ge=t=>({items:t.lines.edges.map((({node:t})=>({id:t.id,key:t.id,variant_id:t.merchandise.id,sku:t.merchandise.sku,final_line_price:parseFloat(t.cost.totalAmount.amount),quantity:t.quantity}))),total_price:parseFloat(t.cost.totalAmount.amount),item_count:t.lines.edges.length}),fe=async(t,e)=>{try{const i=await fetch(t,e);if(!i.ok)throw new Error(await i.text());return await i.json()}catch(i){throw console.error(i),new Error("Failed to complete fetch request.")}},ve=t=>console.warn(`[ShipAid] ${t}`),be=t=>console.error(`[ShipAid] ${t}`),ye="shipaid-protection",_e="shipaid-protection-popup-show",we="shipaid-protection",Ce="query StoreByDomain ($store: String!) {\n store: storeByDomain (input: {store: $store}) {\n currency\n planActive\n store\n widgetAutoOptIn\n widgetPollProtection\n widgetShowCart\n excludedProductSkus\n excludedCustomersIdsAutoOptIn\n protectionSettings\n widgetConfigurations\n useCustomApp\n }\n}",xe=Object.assign({"./lang/de.json":()=>Promise.resolve().then((()=>Me)).then((t=>t.default)),"./lang/en.json":()=>Promise.resolve().then((()=>le)).then((t=>t.default)),"./lang/es.json":()=>Promise.resolve().then((()=>Re)).then((t=>t.default)),"./lang/fr.json":()=>Promise.resolve().then((()=>Ze)).then((t=>t.default)),"./lang/it.json":()=>Promise.resolve().then((()=>ti)).then((t=>t.default)),"./lang/nl.json":()=>Promise.resolve().then((()=>si)).then((t=>t.default)),"./lang/pt.json":()=>Promise.resolve().then((()=>mi)).then((t=>t.default))});var ke;ke={loader:async t=>{if("en"===t)return pe;const e=Reflect.get(xe,`./lang/${t}.json`);return e?await e():pe}},ft=Object.assign(Object.assign({},ft),ke);const $e=class extends lt{constructor(){var t,e,i;super(...arguments),this.env="prod",this.useCustomStoreFront=!1,this.storeDomain="",this.storeAccessToken="",this.cartId="",this.disablePolling=!1,this.disableActions=!1,this.pollingInterval=2500,this.disableRefresh=!1,this.refreshCart=!1,this.persistPopup=!1,this.defaultToggleButton=!1,this.lang="en",this.currency=void 0,this.customerId=void 0,this.supportSubscriptions=!1,this.dataSelector="",this.buttonTitle="",this.buttonClasses="",this.shadowRootSelector="",this.useShipAidCheckout=!1,this._apiEndpoint="/apps/shipaid",this._storeDomain=(null==(t=window.Shopify)?void 0:t.shop)??(null==(i=null==(e=window.Shopify)?void 0:e.Checkout)?void 0:i.apiHost),this._hasFinishedSetup=!1,this._shouldShowWidget=!1,this._hasProtectionInCart=!1,this.hasLoadedStrings=!1,this.fetchInterceptorCleanup=()=>{},this.intervalId=null,this._sellingPlanId=null,this._state={loading:!1,success:null,error:!1},this._popup=null,this._fetch={get:t=>fe(t),post:(t,e)=>fe(t,{method:"POST",headers:{"Content-Type":"application/json","X-ShipAid":"1"},body:JSON.stringify(e)})},this.getElementsBySelector=t=>t?document.querySelectorAll(`${t}:not(#shipaid-checkout-button)`):[],this.addStylesIfNeeded=()=>{var t,e,i,o,r;const n=null==(o=null==(i=null==(e=null==(t=this._store)?void 0:t.widgetConfigurations)?void 0:e.widget)?void 0:i.theme_checkout)?void 0:o.styles,a=n?`\n checkout-package-protection {\n ${n.checkoutWidget||""}\n width: var(--widget-width, 100%);\n }\n .shipaid-checkout-container {\n display: flex;\n ${n.checkoutContainer||""}\n justify-content: var(--container-x-position, center);\n }\n ${n.storeTheme||""}\n `.trim():"",s="[shipaid-hidden] { display: none !important; }"+(a?"\n"+a:""),d=document.getElementById("shipaid-styles");if(d)n&&!(null==(r=d.textContent)?void 0:r.includes(n.checkoutWidget||""))&&(d.textContent+="\n"+a);else{const t=document.createElement("style");t.id="shipaid-styles",t.textContent=s,document.head.appendChild(t)}}}shouldUpdate(t){return this.hasLoadedStrings&&super.shouldUpdate(t)}shouldPersistPopup(){return"true"===localStorage.getItem(`${_e}`)?"learn-more":null}setPopupKey(){this.persistPopup&&localStorage.setItem(`${_e}`,"true")}get nhost(){const t=`https://${"prod"===this.env?"gjiyysyzjwuculcymsvb":"staging"===this.env?"xfnjpunvafvudwuzwjlm":"local"}.graphql.us-east-1.nhost.run/v1`;return{request:async(e,i)=>{try{const o=await fetch(t,{method:"post",body:JSON.stringify({query:e,variables:i})});return await o.json()}catch(o){console.log(`Nhost Error: ${o}`)}}}}async runStoreFrontQuery(t,e){try{const i=new Headers;i.append("Content-Type","application/json"),i.append("X-Shopify-Storefront-Access-Token",this.storeAccessToken);const o={method:"POST",headers:i,body:JSON.stringify({query:t,variables:e})},r=await fetch(`https://${this.storeDomain}/api/2021-07/graphql.json`,o);if(!r.ok)throw new Error(`GraphQL request failed: ${r.statusText}`);const n=await r.json();if(n.errors)throw new Error(n.errors[0].message);return n.data}catch(i){throw console.error("GraphQL query error:",i),new Error("Failed to execute GraphQL query")}}get shouldRefreshOnUpdate(){return!this.disablePolling&&!this.disableRefresh}get planActive(){var t,e;const{searchParams:i}=new URL(window.location.href);return(null==(t=window.Shopify)?void 0:t.designMode)||i.has("shipaid-test")?(ve("Currently in preview mode."),!0):!!(null==(e=this._store)?void 0:e.planActive)}_currencyFormat(t){var e,i,o,r,n,a;const s=this.currency||(null==(i=null==(e=window.Shopify)?void 0:e.currency)?void 0:i.active)||(null==(o=this._store)?void 0:o.currency)||"USD";if(null==(a=null==(n=null==(r=this._store)?void 0:r.widgetConfigurations)?void 0:n.widget)?void 0:a.currencyFormat){return this._store.widgetConfigurations.widget.currencyFormat.replace("_value_",Number(t)).replace("_currency_",s)}return new Intl.NumberFormat(void 0,{currency:s,style:"currency"}).format(Number(t))}_dispatchEvent(t,e={}){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e}))}_handleRefreshCart(){if(this.refreshCart)return window.location.reload()}async _handleRefresh(t){const e=Reflect.has(t,"items");if(this.shouldRefreshOnUpdate)return window.location.reload();e||await this.updateCart(),this._dispatchEvent(he.STATUS_UPDATE,{protection:this._hasProtectionInCart,cart:e?t:this._cart,lineItem:e?this._protectionCartItem:t})}async calculateProtectionTotal(t){if(t||(t=await this._fetchCart()),!t)throw new Error("Could not fetch cart.");if(!this._store)throw new Error("Missing ShipAid store");if(!this._protectionProduct)throw new Error("Missing Shopify protection product");return e.calculateProtectionTotal(this._store,this._protectionProduct,t)}_findProtectionVariant(t){if(!this._store)throw new Error("Missing ShipAid store");if(!this._protectionProduct)throw new Error("Missing Shopify protection product");return e.findProtectionVariant(this._store,this._protectionProduct,t)}_setState(t,e){this._state={loading:"loading"===t,success:"success"===t,error:"error"===t&&(e||!0)}}_handleConfirmationPopup(){"confirmation"!==this._popup&&(this._popup="confirmation")}_updateProtection(){var t,e,i;const o=null==(i=null==(e=null==(t=this._store)?void 0:t.widgetConfigurations)?void 0:e.widget)?void 0:i.removeWithConfirmation;if(this._hasProtectionInCart)return o?this._handleConfirmationPopup():this.removeProtection();this.addProtection()}async _fetchShipAidData(){var t,e,i,o,r;let n;if(n=this.storeDomain?this.storeDomain:(null==(t=window.Shopify)?void 0:t.shop)??(null==(i=null==(e=window.Shopify)?void 0:e.Checkout)?void 0:i.apiHost),!n)throw new Error("No shop found in Shopify object.");try{let t,e;if(this.useCustomStoreFront)e=await this.nhost.request(Ce,{store:n});else{t=new URL(window.location.href),t.pathname=this._apiEndpoint;const i={query:Ce,variables:{store:n}};e=await this._fetch.post(t.toString(),i)}if(!e)throw new Error("Missing response for store query.");if(null==(o=e.errors)?void 0:o.length)throw new Error(e.errors[0].message);if(!(null==(r=e.data)?void 0:r.store))throw new Error("Missing store from store query response.");return e.data.store}catch(a){throw console.error(a),new Error(`Could not find a store for ${this._storeDomain}`)}}_findSellingPlanByName(t,e){for(const i of t){const t=i.node;for(const i of t.sellingPlans.edges){const t=i.node;if(e===t.name)return t}}return null}async _fetchSellingPlanFromVariant(t){var e,i,o,r,n,a,s,d,p,l,c,h,u;const m=(null==(e=window.Shopify)?void 0:e.shop)??(null==(o=null==(i=window.Shopify)?void 0:i.Checkout)?void 0:o.apiHost);if(!m)throw new Error("No shop found in Shopify object.");try{const e=new URL(window.location.href);e.pathname=this._apiEndpoint;const i={query:"query SellingPlanFromVariant($store: String!, $variantId: String!){\n sellingPlanFromVariant(input: {store: $store, variantId: $variantId })\n}",variables:{store:m,variantId:`gid://shopify/ProductVariant/${null==(r=this._protectionVariant)?void 0:r.id}`}},o=await this._fetch.post(e.toString(),i);if(!o)throw new Error("Missing response for selling plan query.");if(null==(n=o.errors)?void 0:n.length)throw new Error(o.errors[0].message);if(!(null==(a=o.data)?void 0:a.sellingPlanFromVariant))throw new Error("Missing variant from selling plan query response.");const g=(null==(d=null==(s=o.data.sellingPlanFromVariant)?void 0:s.sellingPlanGroups)?void 0:d.edges)||[],f=(null==(u=null==(h=null==(c=null==(l=null==(p=g[0])?void 0:p.node)?void 0:l.sellingPlans)?void 0:c.edges)?void 0:h[0])?void 0:u.node)||null;return this._findSellingPlanByName(g,t.name)||f}catch(g){console.error("Error during the query ====>",g)}}async _fetchCart(){try{if(this.useCustomStoreFront&&this.cartId){const t=await this.runStoreFrontQuery("query getCart($cartId: ID!){ cart( id: $cartId ) { id createdAt updatedAt lines(first: 10) { edges { node { id quantity merchandise { ... on ProductVariant { id sku } } cost{ totalAmount{ amount currencyCode } } } } } cost { totalAmount { amount currencyCode } subtotalAmount { amount currencyCode } } } }",{cartId:this.cartId});return ge(t.cart)}return await this._fetch.get("/cart.js")}catch(t){throw be(t.message),new Error("Could not fetch cart for current domain.")}}async _fetchProduct(){var t,e,i,o,r,n,a,s;try{let d;if(this.useCustomStoreFront){const p=await this.runStoreFrontQuery("query product($handle: String!) { product(handle: $handle) { id title images(first: 1) {edges { node { id url altText } } } handle variants(first: 100) { edges { node { id title price { amount } } } } } }",{handle:we});if(null==p?void 0:p.product){const l=p.product;d={id:l.id,title:l.title,image:{id:null==(o=null==(i=null==(e=null==(t=null==l?void 0:l.images)?void 0:t.edges)?void 0:e[0])?void 0:i.node)?void 0:o.id,src:null==(s=null==(a=null==(n=null==(r=null==l?void 0:l.images)?void 0:r.edges)?void 0:n[0])?void 0:a.node)?void 0:s.url},variants:l.variants.edges.map((t=>({id:t.node.id,price:t.node.price.amount})))}}}else d=(await this._fetch.get(`/products/${we}.json`)).product;return d}catch(d){throw be(d.message),new Error("Could not fetch protection product for current domain.")}}hasProtection(){return this._hasProtectionInCart}async updateCart(t){t||(t=await this._fetchCart()),this._cart=t}async addCartProtectionVariant(){var t,e;let i;if(this.useCustomStoreFront){const e=await this.runStoreFrontQuery("mutation AddItemToCart($cartId: ID!, $lines: [CartLineInput!]!) { cartLinesAdd(cartId: $cartId, lines: $lines) { cart { id lines(first: 10) { edges { node { id quantity merchandise { ... on ProductVariant { id sku } } cost{ totalAmount{ amount currencyCode } } } } } cost { totalAmount { amount currencyCode } subtotalAmount { amount currencyCode } } } } }",{cartId:this.cartId,lines:[{merchandiseId:String(null==(t=this._protectionVariant)?void 0:t.id),quantity:1,sellingPlanId:this._sellingPlanId}]});i=ge(e.cartLinesAdd.cart)}else{const t={quantity:1,id:String(null==(e=this._protectionVariant)?void 0:e.id),selling_plan:this._sellingPlanId};i=await this._fetch.post("/cart/add.js",t)}return i}async updateCartProtectionVariant(t,e=null){var i,o;let r;if(this.useCustomStoreFront){const o=await this.runStoreFrontQuery("mutation RemoveItemToCart($cartId: ID!, $lines: [CartLineUpdateInput!]!) { cartLinesUpdate(cartId: $cartId, lines: $lines) { cart { id lines(first: 10) { edges { node { id quantity merchandise { ... on ProductVariant { id sku } } cost{ totalAmount{ amount currencyCode } } } } } cost { totalAmount { amount currencyCode } subtotalAmount { amount currencyCode } } } } }",{cartId:this.cartId,lines:[{id:String(e?e.key:null==(i=this._protectionCartItem)?void 0:i.key),quantity:t,sellingPlanId:this._sellingPlanId}]});r=ge(o.cartLinesUpdate.cart)}else{const i={quantity:t,id:String(e?e.key:null==(o=this._protectionCartItem)?void 0:o.key),selling_plan:this._sellingPlanId};r=await this._fetch.post("/cart/change.js",i)}return r}async addProtection(){var t,e;try{if(!this._store)throw new Error("Store has not been loaded.");if(!(null==(t=this._cart)?void 0:t.items))throw new Error("Cart has not been loaded.");if(!(null==(e=this._protectionVariant)?void 0:e.id))throw new Error("No protection variant found.");this._setState("loading");const i=await this.addCartProtectionVariant();await this._handleRefresh(i),this._setState("success")}catch(i){be(i.message)}finally{this._cart=await this._fetchCart(),this._setState("success")}}async removeProtection(){try{if(!this._store)throw new Error("Store has not been loaded.");if(!this._protectionCartItem)throw new Error("Protection product not found.");this._setState("loading");const t=await this.updateCartProtectionVariant(0,this._protectionCartItem);await this._handleRefresh(t),this._cart=t,this._setState("success")}catch(t){be(t.message)}finally{this._cart=await this._fetchCart(),this._setState("success")}}async attemptAddProtection(){var t,e,i,o,r,n;if(!(null==(t=this._store)?void 0:t.widgetAutoOptIn))return;if(!(null==(e=this._cart)?void 0:e.items)||!(null==(i=this._cart)?void 0:i.item_count))return;const a=null==(o=this._cart.items)?void 0:o.findIndex((t=>{var e,i;return null==(i=null==(e=this._protectionProduct)?void 0:e.variants)?void 0:i.some((e=>e.id===t.variant_id))})),s=null==(r=this._cart)?void 0:r.items[a];if(this._hasProtectionInCart=!!s,1===this._cart.item_count&&s)return;!!sessionStorage.getItem(ye)||!this._hasProtectionInCart&&(null==(n=this._cart)?void 0:n.item_count)&&this._store.widgetShowCart&&(await this.addProtection(),sessionStorage.setItem(ye,JSON.stringify({loaded:!0})))}async handleMultipleProtectionVariants(){var t,e,i,o,r;if(!(null==(t=this._cart)?void 0:t.items)||!(null==(e=this._cart)?void 0:e.item_count))return;let n=0;if(null==(i=this._cart.items)||i.forEach((t=>{var e,i;(null==(i=null==(e=this._protectionProduct)?void 0:e.variants)?void 0:i.some((e=>e.id===t.variant_id)))&&n++})),n>1){const t=null==(o=this._cart.items)?void 0:o.findIndex((t=>{var e,i;return null==(i=null==(e=this._protectionProduct)?void 0:e.variants)?void 0:i.some((e=>e.id===t.variant_id))})),e=null==(r=this._cart)?void 0:r.items[t],i=await this.updateCartProtectionVariant(0,e);return await this._handleRefresh(i)}}learnMorePopupTemplate(){return D`
|
|
1187
1187
|
<shipaid-popup-learn-more
|
|
1188
1188
|
?active=${"learn-more"===this._popup}
|
|
1189
|
-
@close=${()=>{this.persistPopup&&localStorage.removeItem(`${
|
|
1189
|
+
@close=${()=>{this.persistPopup&&localStorage.removeItem(`${_e}`),this._popup=null}}
|
|
1190
1190
|
></shipaid-popup-learn-more>
|
|
1191
|
-
`}confirmationPopupTemplate(){return
|
|
1191
|
+
`}confirmationPopupTemplate(){return D`
|
|
1192
1192
|
<shipaid-popup-confirmation
|
|
1193
1193
|
?active=${"confirmation"===this._popup}
|
|
1194
|
-
@close=${()=>{this.persistPopup&&localStorage.removeItem(`${
|
|
1195
|
-
@remove-protection=${()=>{this.removeProtection(),this.persistPopup&&localStorage.removeItem(`${
|
|
1194
|
+
@close=${()=>{this.persistPopup&&localStorage.removeItem(`${_e}`),this._popup=null}}
|
|
1195
|
+
@remove-protection=${()=>{this.removeProtection(),this.persistPopup&&localStorage.removeItem(`${_e}`),this._popup=null}}
|
|
1196
1196
|
></shipaid-popup-confirmation>
|
|
1197
|
-
`}contactlessCheckoutButtonTemplate(){this.addStylesIfNeeded();const t=this.getElementsBySelector(sessionStorage.getItem("shipaidWidgetTheme"));if(t.length)return t.forEach(((t,e)=>{var i,o,r;const n=`shipaid-checkout-container-${e}`;t.setAttribute("shipaid-hidden","");const a=t.className;let s=document.getElementById(n);s||(s=document.createElement("div"),s.id=n,s.style.width="100%",s.className="shipaid-checkout-container",t.insertAdjacentElement("afterend",s));const d=Number(null==(i=this._protectionVariant)?void 0:i.price)||0,p=(Number(null==(o=this._cart)?void 0:o.total_price)||0)/100,l=this._hasProtectionInCart?p:d+p,c=
|
|
1197
|
+
`}contactlessCheckoutButtonTemplate(){this.addStylesIfNeeded();const t=this.getElementsBySelector(sessionStorage.getItem("shipaidWidgetTheme"));if(t.length)return t.forEach(((t,e)=>{var i,o,r;const n=`shipaid-checkout-container-${e}`;t.setAttribute("shipaid-hidden","");const a=t.className;let s=document.getElementById(n);s||(s=document.createElement("div"),s.id=n,s.style.width="100%",s.className="shipaid-checkout-container",t.insertAdjacentElement("afterend",s));const d=Number(null==(i=this._protectionVariant)?void 0:i.price)||0,p=(Number(null==(o=this._cart)?void 0:o.total_price)||0)/100,l=this._hasProtectionInCart?p:d+p,c=D`
|
|
1198
1198
|
<svg width="1.5rem" height="1.5rem" viewBox="0 0 50 50" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-width="4" class="shipaid-loader">
|
|
1199
1199
|
<circle cx="25" cy="25" r="20" stroke-opacity="0.5"/>
|
|
1200
1200
|
<path d="M45 25a20 20 0 0 1-40 0" stroke="currentColor">
|
|
1201
1201
|
<animateTransform attributeName="transform" type="rotate" from="0 25 25" to="360 25 25" dur="1s" repeatCount="indefinite"/>
|
|
1202
1202
|
</path>
|
|
1203
1203
|
</svg>
|
|
1204
|
-
`;
|
|
1204
|
+
`;st(D`
|
|
1205
1205
|
<style>
|
|
1206
1206
|
.shipaid-container {
|
|
1207
1207
|
width: var(--widget-container-width, 100%);
|
|
@@ -1277,19 +1277,19 @@ function Tt(t,e,i){return t?e():null==i?void 0:i()}const qt=h`
|
|
|
1277
1277
|
.shipaidVariant=${null==(r=this._protectionVariant)?void 0:r.id}
|
|
1278
1278
|
.protectionPrice=${d?this._currencyFormat(d):c}
|
|
1279
1279
|
.checkoutTotal=${l?this._currencyFormat(l):c}
|
|
1280
|
-
.logo=${
|
|
1280
|
+
.logo=${Nt}
|
|
1281
1281
|
.originalClasses=${a}
|
|
1282
1282
|
@shipaid-about=${()=>{this._popup="learn-more",this.persistPopup&&this.setPopupKey()}}
|
|
1283
1283
|
@shipaid-remove-protection=${async()=>{await this.removeProtection(),window.location.href="/checkout"}}
|
|
1284
1284
|
></checkout-package-protection>
|
|
1285
|
-
`,s)})),
|
|
1285
|
+
`,s)})),H}createRenderRoot(){return this.useShipAidCheckout?this:super.createRenderRoot()}async getSubscription(t){var e;if(!(null==t?void 0:t.items)||!(null==t?void 0:t.item_count))return;const i=JSON.parse(sessionStorage.getItem("shipaid-selling-plan")||"{}"),o=null==(e=null==t?void 0:t.items)?void 0:e.find((t=>{var e;return t.id!==(null==(e=this._protectionVariant)?void 0:e.id)&&!!(null==t?void 0:t.selling_plan_allocation)}));if(o){if((null==i?void 0:i.name)===o.selling_plan_allocation.selling_plan.name&&this._sellingPlanId)return this._sellingPlanId;sessionStorage.setItem("shipaid-selling-plan",JSON.stringify(o.selling_plan_allocation.selling_plan));const t=await this._fetchSellingPlanFromVariant(o.selling_plan_allocation.selling_plan);return t?function(t){var e;return(null==(e=null==t?void 0:t.match(/\d+/))?void 0:e[0])??null}(t.id):null}return sessionStorage.removeItem("shipaid-selling-plan"),null}checkoutButtonTemplate(){var t,e,i,o,r,n,a,s,d;if(!document.getElementById("shipaid-styles")){const t=document.createElement("style");t.id="shipaid-styles",t.textContent="\n [shipaid-hidden] {\n display: none !important;\n }\n\n shipaid-widget {\n width: 100%;\n }\n ",document.head.appendChild(t)}if(!this.dataSelector)return void console.error("[shipaid-widget] we couldn't find the 'data-selector' attribute.");let p=null;if(this.shadowRootSelector){const t=document.querySelector(this.shadowRootSelector);if(!t||!t.shadowRoot)return void console.warn(`ShadowRoot not found in the element '${this.shadowRootSelector}'.`);p=t.shadowRoot.querySelector(`${this.dataSelector}:not(#shipaid-checkout-button)`)}else p=null==(t=this.getElementsBySelector(this.dataSelector))?void 0:t[0];if(!p)return void console.warn(`Button not found with selector '${this.dataSelector}'.`);p.setAttribute("shipaid-hidden","");const l=p.className,c=Number(null==(e=this._protectionVariant)?void 0:e.price)||0,h=(Number(null==(i=this._cart)?void 0:i.total_price)||0)/100,u=this._hasProtectionInCart?h:c+h,m=D`
|
|
1286
1286
|
<svg width="1.5rem" height="1.5rem" viewBox="0 0 50 50" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-width="4" class="shipaid-loader">
|
|
1287
1287
|
<circle cx="25" cy="25" r="20" stroke-opacity="0.5"/>
|
|
1288
1288
|
<path d="M45 25a20 20 0 0 1-40 0" stroke="currentColor">
|
|
1289
1289
|
<animateTransform attributeName="transform" type="rotate" from="0 25 25" to="360 25 25" dur="1s" repeatCount="indefinite"/>
|
|
1290
1290
|
</path>
|
|
1291
1291
|
</svg>
|
|
1292
|
-
`;return
|
|
1292
|
+
`;return D`
|
|
1293
1293
|
<style>
|
|
1294
1294
|
:host {
|
|
1295
1295
|
display: inline-block;
|
|
@@ -1384,11 +1384,11 @@ function Tt(t,e,i){return t?e():null==i?void 0:i()}const qt=h`
|
|
|
1384
1384
|
<div class="shipaid-container">
|
|
1385
1385
|
<div class="protection-info">
|
|
1386
1386
|
<div class="protection-text">
|
|
1387
|
-
${
|
|
1388
|
-
<strong>${
|
|
1387
|
+
${Nt}
|
|
1388
|
+
<strong>${Pt("checkout-plus.checkout-title")}+</strong>
|
|
1389
1389
|
<div class="protection-value">
|
|
1390
|
-
<span>${
|
|
1391
|
-
- ${
|
|
1390
|
+
<span>${Pt("checkout-plus.title")}</span>
|
|
1391
|
+
- ${c?this._currencyFormat(c):m}
|
|
1392
1392
|
</div>
|
|
1393
1393
|
</div>
|
|
1394
1394
|
<div class="help-icon" @click=${()=>{this._popup="learn-more",this.persistPopup&&this.setPopupKey()}}>
|
|
@@ -1398,38 +1398,41 @@ function Tt(t,e,i){return t?e():null==i?void 0:i()}const qt=h`
|
|
|
1398
1398
|
</svg>
|
|
1399
1399
|
</div>
|
|
1400
1400
|
</div>
|
|
1401
|
-
${this._sellingPlanId?
|
|
1402
|
-
<button id="shipaid-checkout-button" class="${
|
|
1403
|
-
|
|
1401
|
+
${this._sellingPlanId?D`
|
|
1402
|
+
<button id="shipaid-checkout-button" variant="${null==(o=this._protectionVariant)?void 0:o.id}" class="${this.buttonClasses||l}" @click=${async()=>{var t,e;sessionStorage.setItem("shipaid_variant",JSON.stringify(null==(t=this._protectionVariant)?void 0:t.id)),await this.addCartProtectionVariant(),window.location.href=`/checkout?attributes[_shipaid-internal]=1&updates[${null==(e=this._protectionVariant)?void 0:e.id}]=1`}}>
|
|
1403
|
+
${this.buttonTitle||D`<slot name="checkout-button-text">CHECKOUT+</slot> ${u?this._currencyFormat(u):m}`}
|
|
1404
1404
|
</button>
|
|
1405
|
-
`:
|
|
1406
|
-
<a href="/checkout${(null==(
|
|
1407
|
-
|
|
1408
|
-
<span class="shipaid-checkout-
|
|
1405
|
+
`:D`
|
|
1406
|
+
<a variant="${null==(r=this._protectionVariant)?void 0:r.id}" href="/checkout${(null==(n=this._protectionVariant)?void 0:n.id)?`?attributes[_shipaid-internal]=1&updates[${null==(a=this._protectionVariant)?void 0:a.id}]=1`:""}" id="shipaid-checkout-button" class="${this.buttonClasses||l}" @click=${()=>{var t;sessionStorage.setItem("shipaid_variant",JSON.stringify(null==(t=this._protectionVariant)?void 0:t.id))}}>
|
|
1407
|
+
${this.buttonTitle||D`
|
|
1408
|
+
<span class="shipaid-checkout-text">${Pt("checkout-plus.checkout")}+</span>
|
|
1409
|
+
<span class="shipaid-checkout-amount">${u?this._currencyFormat(u):m}</span>
|
|
1410
|
+
`}
|
|
1411
|
+
|
|
1409
1412
|
</a>
|
|
1410
1413
|
`}
|
|
1411
|
-
<a href="/checkout${(null==(
|
|
1412
|
-
<slot name="link-continue">${
|
|
1414
|
+
<a href="/checkout${(null==(s=this._protectionVariant)?void 0:s.id)?`?attributes[_shipaid-internal]=1&updates[${null==(d=this._protectionVariant)?void 0:d.id}]=0`:""}" class="continue-link">
|
|
1415
|
+
<slot name="link-continue">${Pt("checkout-plus.continue")}</slot>
|
|
1413
1416
|
</a>
|
|
1414
1417
|
</div>
|
|
1415
|
-
`}renderPopups(){switch(this.persistPopup&&(this._popup=this.shouldPersistPopup()),this._popup){case"confirmation":return this.confirmationPopupTemplate();case"learn-more":return this.learnMorePopupTemplate();default:return null}}promptTemplate(){var t,e,i,o,r;if(this.useShipAidCheckout&&this.dataSelector)return this.checkoutButtonTemplate();const{useToggle:n,useCheckbox:a,leftCheckbox:s}=(null==(e=null==(t=this._store)?void 0:t.widgetConfigurations)?void 0:e.widget)||{useToggle:!1,useCheckbox:!1,leftCheckbox:!1};return
|
|
1418
|
+
`}renderPopups(){switch(this.persistPopup&&(this._popup=this.shouldPersistPopup()),this._popup){case"confirmation":return this.confirmationPopupTemplate();case"learn-more":return this.learnMorePopupTemplate();default:return null}}promptTemplate(){var t,e,i,o,r;if(this.useShipAidCheckout&&this.dataSelector)return this.checkoutButtonTemplate();const{useToggle:n,useCheckbox:a,leftCheckbox:s}=(null==(e=null==(t=this._store)?void 0:t.widgetConfigurations)?void 0:e.widget)||{useToggle:!1,useCheckbox:!1,leftCheckbox:!1};return D`
|
|
1416
1419
|
<div class="shipaid-prompt">
|
|
1417
1420
|
<div class="prompt-product">
|
|
1418
|
-
${
|
|
1421
|
+
${Mt(!this.disableActions&&s,(()=>D`
|
|
1419
1422
|
<label class="shipaid-checkbox">
|
|
1420
|
-
${this._hasProtectionInCart||!this._hasFinishedSetup?
|
|
1423
|
+
${this._hasProtectionInCart||!this._hasFinishedSetup?D`<input type="checkbox" checked @click=${this._updateProtection} ?disabled=${this._state.loading}>`:D`<input type="checkbox" @click=${this._updateProtection} ?disabled=${this._state.loading}>`}
|
|
1421
1424
|
<span class="shipaid-checkMark left"></span>
|
|
1422
1425
|
</label>
|
|
1423
1426
|
`))}
|
|
1424
1427
|
<div class="prompt-product-image">
|
|
1425
|
-
${
|
|
1428
|
+
${Mt(this._hasProtectionInCart,(()=>jt),(()=>qt))}
|
|
1426
1429
|
</div>
|
|
1427
1430
|
<div class="prompt-product-details">
|
|
1428
1431
|
<div class="heading-container">
|
|
1429
1432
|
<p class="prompt-product-details-title">
|
|
1430
|
-
<slot name="title">${
|
|
1433
|
+
<slot name="title">${Pt("title")}</slot>
|
|
1431
1434
|
</p>
|
|
1432
|
-
${
|
|
1435
|
+
${Mt(!(null==(i=this._store)?void 0:i.useCustomApp),(()=>D`<button
|
|
1433
1436
|
class="prompt-information-button"
|
|
1434
1437
|
@click=${()=>{this._popup="learn-more",this.persistPopup&&this.setPopupKey()}}
|
|
1435
1438
|
>
|
|
@@ -1437,38 +1440,38 @@ function Tt(t,e,i){return t?e():null==i?void 0:i()}const qt=h`
|
|
|
1437
1440
|
</button>`))}
|
|
1438
1441
|
</div>
|
|
1439
1442
|
<p class="prompt-product-details-description">
|
|
1440
|
-
<slot name="subtitle">${
|
|
1443
|
+
<slot name="subtitle">${Pt("description")}</slot>
|
|
1441
1444
|
</p>
|
|
1442
1445
|
</div>
|
|
1443
1446
|
<div class="prompt-product-actions">
|
|
1444
1447
|
<p class="prompt-product-actions-price">
|
|
1445
1448
|
${(null==(o=this._protectionVariant)?void 0:o.price)&&this._currencyFormat(this._protectionVariant.price)}
|
|
1446
1449
|
</p>
|
|
1447
|
-
${n||a||this.defaultToggleButton?
|
|
1450
|
+
${n||a||this.defaultToggleButton?Mt(!this.disableActions&&!s,(()=>D`
|
|
1448
1451
|
<label class="shipaid-${n?"toggle":a?"checkbox":""}">
|
|
1449
|
-
${this._hasProtectionInCart||!this._hasFinishedSetup?
|
|
1452
|
+
${this._hasProtectionInCart||!this._hasFinishedSetup?D`<input type="checkbox" checked @click=${this._updateProtection} ?disabled=${this._state.loading}>`:D`<input type="checkbox" @click=${this._updateProtection} ?disabled=${this._state.loading}>`}
|
|
1450
1453
|
<span class="shipaid-${n?"slider":a?"checkMark":""}"></span>
|
|
1451
1454
|
</label>
|
|
1452
|
-
`)):
|
|
1455
|
+
`)):Mt(!this.disableActions,(()=>D`
|
|
1453
1456
|
<button
|
|
1454
1457
|
class="prompt-product-actions-button"
|
|
1455
1458
|
@click=${this._updateProtection}
|
|
1456
1459
|
?disabled=${this._state.loading}
|
|
1457
1460
|
>
|
|
1458
|
-
${this._state.loading?
|
|
1461
|
+
${this._state.loading?Pt("actions.loading"):this._hasProtectionInCart?Pt("actions.remove"):D`+ ${Pt("actions.add")}`}
|
|
1459
1462
|
</button>
|
|
1460
1463
|
`))}
|
|
1461
1464
|
</div>
|
|
1462
1465
|
</div>
|
|
1463
|
-
${
|
|
1464
|
-
${
|
|
1466
|
+
${Mt(this._state.error,(()=>D`<p class="error">${this._state.error}</p>`))}
|
|
1467
|
+
${Mt(null==(r=this._store)?void 0:r.useCustomApp,(()=>D`
|
|
1465
1468
|
<div class="prompt-footer">
|
|
1466
1469
|
<a
|
|
1467
1470
|
class="prompt-footer-badge"
|
|
1468
1471
|
@click=${()=>{this._popup="learn-more",this.persistPopup&&this.setPopupKey()}}
|
|
1469
1472
|
>
|
|
1470
|
-
<span>${
|
|
1471
|
-
${
|
|
1473
|
+
<span>${Pt("footer.button")}</span>
|
|
1474
|
+
${Ot}
|
|
1472
1475
|
<button
|
|
1473
1476
|
class="prompt-footer-about"
|
|
1474
1477
|
@click=${()=>{this._popup="learn-more",this.persistPopup&&this.setPopupKey()}}
|
|
@@ -1479,7 +1482,7 @@ function Tt(t,e,i){return t?e():null==i?void 0:i()}const qt=h`
|
|
|
1479
1482
|
</div>
|
|
1480
1483
|
`))}
|
|
1481
1484
|
</div>
|
|
1482
|
-
`}async connectedCallback(){super.connectedCallback(),await async function(t,e=
|
|
1485
|
+
`}async connectedCallback(){super.connectedCallback(),await async function(t,e=ft){const i=await e.loader(t,e);e.translationCache={},vt(t,i,e)}(this.lang),this.hasLoadedStrings=!0,this.fetchInterceptorCleanup=function(t){const e=window.fetch;let i=!0;const o=async(o,r)=>{const n=e(o,r);if(i)try{await t([o,r],n)}catch(a){console.warn(a)}return await n};return window.fetch=o,()=>{window.fetch===o?window.fetch=e:i=!1}}((async(t,e)=>{var i,o,r,n;if(null==(o=null==(i=t[1])?void 0:i.headers)?void 0:o["X-ShipAid"])return;if(!t[0].startsWith("/cart/change")&&!t[0].startsWith("/cart/update"))return;const a=(null==(n=null==(r=this._store)?void 0:r.widgetConfigurations)?void 0:n.checkoutButtonSelector)||'button[type="submit"][name="checkout"][form="cart"]',s=document.querySelector(a);if(console.log("q",s),s){s.setAttribute("disabled","true"),console.debug("button","t");try{await e,await this.updateCart(),await this.updateProtection()}finally{s.removeAttribute("disabled"),console.debug("button","f")}}}))}disconnectedCallback(){var t;super.disconnectedCallback(),null==(t=this.fetchInterceptorCleanup)||t.call(this)}async updateProtection(){var t,e,i,o;if(this._cartLastUpdated=new Date,!(null==(t=this._cart)?void 0:t.items))return;const r=null==(e=this._cart.items)?void 0:e.findIndex((t=>{var e,i;return null==(i=null==(e=this._protectionProduct)?void 0:e.variants)?void 0:i.some((e=>e.id===t.variant_id))})),n=null==(i=this._cart)?void 0:i.items[r];if(this._hasProtectionInCart=!!n,!this._store)return;const a=await this.calculateProtectionTotal(this._cart);if(this._cart.item_count>0&&n&&(this._cart.total_price===(null==n?void 0:n.final_line_price)||!a)){const t=await this.updateCartProtectionVariant(0,n);return sessionStorage.removeItem(ye),await this._handleRefresh(t)}const s=this._findProtectionVariant(a);if(a?(this._protectionVariant=s,this._shouldShowWidget=!0):this._protectionVariant={id:0,price:"0"},!(null==s?void 0:s.id))return this._shouldShowWidget=!1,void be("No matching protection variant found.");if(!(null==(o=this._protectionVariant)?void 0:o.id))return void(this._shouldShowWidget=!1);if(this.useShipAidCheckout&&this.supportSubscriptions&&(this._sellingPlanId=await this.getSubscription(this._cart)),!n)return;if(this.supportSubscriptions&&!this.useShipAidCheckout){const t=this._cart.items.find((t=>{var e;return t.id!==(null==(e=this._protectionVariant)?void 0:e.id)&&!!(null==t?void 0:t.selling_plan_allocation)}));let e=!0;if(!t&&(null==n?void 0:n.selling_plan_allocation)?this._sellingPlanId=null:t&&!(null==n?void 0:n.selling_plan_allocation)?this._sellingPlanId=await this.getSubscription(this._cart):e=!1,e){const t=await this.updateCartProtectionVariant(1,n);await this._handleRefresh(t)}}if(s.id===n.variant_id){if(this._protectionCartItem={...n,index:r,position:r+1},1===n.quantity)return;const t=await this.updateCartProtectionVariant(1,n);return this._handleRefreshCart(),await this._handleRefresh(t)}const d={updates:{[n.variant_id]:0,[s.id]:1}},p=await this._fetch.post("/cart/update.js",d);await this._handleRefresh(p)}render(){return It(this,(async()=>{var t,e,i,o,r,n;const a=document.createElement("link");a.setAttribute("href","https://fonts.googleapis.com/css2?family=Lato&display=swap"),a.setAttribute("rel","stylesheet"),document.head.appendChild(a);try{const[t,e,i]=await Promise.all([this._fetchShipAidData(),this._fetchCart(),this._fetchProduct()]);this._store=t,this._cart=e,this._protectionProduct=i}catch(s){return be(s.message),this._hasFinishedSetup=!0,void(this._shouldShowWidget=!1)}return this.planActive?(null==(e=null==(t=this._store)?void 0:t.protectionSettings)?void 0:e.protectionType)?this._protectionProduct?(this._hasFinishedSetup=!0,this._dispatchEvent(he.LOADED,this._store),setTimeout((async()=>{var t,e,i,o;(null==(t=this._store)?void 0:t.widgetAutoOptIn)&&(null==(e=this._cart)?void 0:e.item_count)&&(this.customerId&&this._store.excludedCustomersIdsAutoOptIn&&(null==(i=this._store.excludedCustomersIdsAutoOptIn)?void 0:i.length)&&this._store.excludedCustomersIdsAutoOptIn.includes(`gid://shopify/Customer/${this.customerId}`)||sessionStorage.getItem(ye)||!this._hasProtectionInCart&&(null==(o=this._cart)?void 0:o.item_count)&&this._store.widgetShowCart&&(await this.addProtection(),sessionStorage.setItem(ye,JSON.stringify({loaded:!0}))))}),500),void(this.disablePolling||(setInterval((async()=>{const t=this._cartLastUpdated;t&&(new Date).getTime()-t.getTime()<this.pollingInterval||await this.updateCart()}),this.pollingInterval),(null==(i=this._store)?void 0:i.widgetPollProtection)&&!this.intervalId&&(this.intervalId=setInterval((async()=>{await this.attemptAddProtection()}),400),localStorage.setItem(`polling-shipaid-protection_${this.intervalId}`,`${this.intervalId}`)),(null==(n=null==(r=null==(o=this._store)?void 0:o.widgetConfigurations)?void 0:r.widget)?void 0:n.pollVariantsCheck)&&setInterval((async()=>{await this.handleMultipleProtectionVariants()}),400)))):(ve("No protection settings product for this store - skipping setup."),this._hasFinishedSetup=!0,void(this._shouldShowWidget=!1)):(ve("No protection settings for this store - skipping setup."),this._hasFinishedSetup=!0,void(this._shouldShowWidget=!1)):(ve("No plan is active for this store - skipping setup."),this._hasFinishedSetup=!0,void(this._shouldShowWidget=!1))}),[]),It(this,(async()=>{await this.updateProtection()}),[this._store,this._cart]),It(this,(async()=>{st(this.renderPopups(),document.body)}),[this._popup]),D`
|
|
1483
1486
|
<style>
|
|
1484
1487
|
:host {
|
|
1485
1488
|
--shipaid-primary: #002bd6;
|
|
@@ -1772,7 +1775,7 @@ function Tt(t,e,i){return t?e():null==i?void 0:i()}const qt=h`
|
|
|
1772
1775
|
}
|
|
1773
1776
|
</style>
|
|
1774
1777
|
<div class="shipaid">
|
|
1775
|
-
${
|
|
1778
|
+
${Mt(this._hasFinishedSetup,(()=>{var t,e,i,o,r;const n=null==(o=null==(i=null==(e=null==(t=this._store)?void 0:t.widgetConfigurations)?void 0:e.widget)?void 0:i.theme_checkout)?void 0:o.checkoutButtonSelector,a=sessionStorage.getItem("shipaidWidgetTheme");!a&&n&&sessionStorage.setItem("shipaidWidgetTheme",n),!this.useShipAidCheckout&&n||sessionStorage.removeItem("shipaidWidgetTheme");return this._shouldShowWidget&&this.planActive&&(null==(r=this._store)?void 0:r.widgetShowCart)?a?this.contactlessCheckoutButtonTemplate():this.promptTemplate():(this.useShipAidCheckout||document.querySelectorAll('[id*="shipaid-checkout-container"]').forEach((t=>t.remove())),this.getElementsBySelector(sessionStorage.getItem("shipaidWidgetTheme")||this.dataSelector).forEach((t=>t.removeAttribute("shipaid-hidden"))),H)}),(()=>sessionStorage.getItem("shipaidWidgetTheme")?this.contactlessCheckoutButtonTemplate():this.promptTemplate()))}
|
|
1776
1779
|
</div>
|
|
1777
1780
|
|
|
1778
|
-
`}};Se.styles=he;let Ae=Se;ge([r({type:String,attribute:!0})],Ae.prototype,"env"),ge([r({type:Boolean,attribute:!0})],Ae.prototype,"useCustomStoreFront"),ge([r({type:String,attribute:!0})],Ae.prototype,"storeDomain"),ge([r({type:String,attribute:!0})],Ae.prototype,"storeAccessToken"),ge([r({type:String,attribute:!0})],Ae.prototype,"cartId"),ge([r({type:Boolean,attribute:!0})],Ae.prototype,"disablePolling"),ge([r({type:Boolean,attribute:!0})],Ae.prototype,"disableActions"),ge([r({type:Number,attribute:!0})],Ae.prototype,"pollingInterval"),ge([r({type:Boolean,attribute:!0})],Ae.prototype,"disableRefresh"),ge([r({type:Boolean,attribute:!0})],Ae.prototype,"refreshCart"),ge([r({type:Boolean,attribute:!0})],Ae.prototype,"persistPopup"),ge([r({type:Boolean,attribute:!0})],Ae.prototype,"defaultToggleButton"),ge([r({type:String,attribute:!0})],Ae.prototype,"lang"),ge([r({type:String,attribute:!0})],Ae.prototype,"currency"),ge([r({type:String,attribute:!0})],Ae.prototype,"customerId"),ge([r({type:Boolean,attribute:!0})],Ae.prototype,"supportSubscriptions"),ge([r({type:String,attribute:"data-selector"})],Ae.prototype,"dataSelector"),ge([r({type:String,attribute:"shadow-root-selector"})],Ae.prototype,"shadowRootSelector"),ge([r({type:Boolean,attribute:"use-shipaid-checkout"})],Ae.prototype,"useShipAidCheckout"),ge([n()],Ae.prototype,"_storeDomain"),ge([n()],Ae.prototype,"_store"),ge([n()],Ae.prototype,"_cart"),ge([n()],Ae.prototype,"_protectionProduct"),ge([n()],Ae.prototype,"_cartLastUpdated"),ge([n()],Ae.prototype,"_hasFinishedSetup"),ge([n()],Ae.prototype,"_shouldShowWidget"),ge([n()],Ae.prototype,"_hasProtectionInCart"),ge([n()],Ae.prototype,"_protectionCartItem"),ge([n()],Ae.prototype,"_protectionVariant"),ge([n()],Ae.prototype,"hasLoadedStrings"),ge([n()],Ae.prototype,"fetchInterceptorCleanup"),ge([n()],Ae.prototype,"intervalId"),ge([n()],Ae.prototype,"_sellingPlanId"),ge([n()],Ae.prototype,"_state"),ge([n()],Ae.prototype,"_popup"),customElements.get("shipaid-widget")||customElements.define("shipaid-widget",Ae);const Pe="Laden des ShipAid-Widgets...",Le="Liefergarantie",ze="im Falle von Verlust, Beschädigung oder Diebstahl",Ee={button:"Bereitgestellt von"},Ie={add:"Hinzufügen",remove:"Entfernen",loading:"Lädt..."},Me={loading:Pe,title:Le,description:ze,footer:Ee,actions:Ie,"learn-more-popup":{close:"Schließen",title:"Liefergarantie",subtitle:"Wir ermöglichen es Ihren Lieblingsmarken, eine Liefergarantie anzubieten, weil jede Bestellung wertvoll ist!",disclaimer:{"subtitle-enable":"Wir ermöglichen es Ihren Lieblingsmarken, eine Liefergarantie zu bieten, denn wir wissen, dass jede Bestellung wertvoll ist und Dinge passieren können!","subtitle-monitor":"Wir überwachen Ihr Paket kontinuierlich und bieten ein praktisches Portal, damit Sie den Fortschritt Ihrer Bestellung jederzeit verfolgen können!","subtitle-notify":"Sie werden während des gesamten Versandprozesses benachrichtigt, um sicherzustellen, dass Sie auf dem Laufenden bleiben.","subtitle-resolution":"Sie werden während des gesamten Versandprozesses benachrichtigt, um sicherzustellen, dass Sie auf dem Laufenden bleiben.",text:"Durch den Erwerb dieser Liefergarantie stimmen Sie unseren Servicebedingungen und Datenschutzrichtlinien zu. Diese Garantie ist nicht verpflichtend, IST KEINE Versicherung und bietet keine Entschädigung für Verluste, Schäden oder Haftungen, die aus einem zufälligen oder unbekannten Ereignis resultieren. Sollte das Produkt nicht in zufriedenstellendem Zustand geliefert werden, kann die Marke, bei der Sie gekauft haben, dieses kostenlos ersetzen. ShipAid liefert keine Produkte oder Dienstleistungen direkt an Verbraucher, sondern bietet einen Dienst an, der Marken ermöglicht, den Produktersatz für ihre Kunden zu erleichtern. Der Erwerb dieser Garantie bedeutet nicht, dass Sie automatisch eine Rückerstattung für irgendwelche Produkte oder Versandkosten erhalten, da der Lösungsprozess und die Entscheidung über eine Kompensation strikt von der Marke, bei der Sie kaufen, entschieden werden. Die Marke wird einen Nachweis für Beschädigungen oder die Nichtlieferung des Produkts verlangen."},links:{terms:"Servicebedingungen",privacy:"Datenschutzrichtlinie"}},"checkout-plus":{title:"ShipAid Liefergarantie",checkout:"KASSE","checkout-title":"Kasse",continue:"Ohne Liefergarantie fortfahren"}},Te=Object.freeze(Object.defineProperty({__proto__:null,actions:Ie,default:Me,description:ze,footer:Ee,loading:Pe,title:Le},Symbol.toStringTag,{value:"Module"})),qe="Cargando el widget ShipAid...",je="Garantía de entrega",Ne="en caso de Pérdida, Daño o Robo",Oe={button:"Energizado por"},Ve={add:"Agregar",remove:"Eliminar",loading:"Cargando..."},Re={loading:qe,title:je,description:Ne,footer:Oe,actions:Ve,"learn-more-popup":{close:"Cerca",title:"Garantía de entrega",disclaimer:{"subtitle-enable":"Permitimos que sus marcas favoritas brinden una garantía de entrega porque sabemos que cada pedido es valioso y las cosas suceden!","subtitle-monitor":"Supervisamos continuamente su paquete y le ofrecemos un portal conveniente para que pueda realizar un seguimiento del progreso de su pedido en cualquier momento.","subtitle-notify":"Se le notificará durante todo el proceso de envío, asegurándose de que esté actualizado en cada paso del camino.","subtitle-resolution":"En caso de cualquier problema durante el tránsito, ofrecemos un método rápido y fácil para informar el problema directamente a la marca, para una resolución rápida.",text:"Al comprar esta garantía de entrega, acepta nuestros Términos de servicio y Política de privacidad. Usted no está obligado a comprar esta garantía. Esta garantía NO es un seguro y no brinda indemnización por pérdida, daño o responsabilidad que surja de un evento contingente o desconocido, sino que, a través de las marcas de ShipAid, brinda una garantía de entrega mediante la cual, si el producto que ordenó no se entrega en condiciones satisfactorias, la marca desde el que ordenó el producto puede reemplazar el producto sin cargo. ShipAid no proporciona ningún producto o servicio directamente a los consumidores, sino que proporciona un servicio que permite a las marcas facilitar el reemplazo de productos a sus clientes. La compra de esta garantía no significa que se le reembolsará automáticamente cualquier producto o costo de envío porque el proceso de resolución y la decisión de compensación lo decide estrictamente la marca a la que le compra. La marca requerirá prueba de daño o producto no entregado."},links:{terms:"Términos de servicio",privacy:"Política de Privacidad"}},"checkout-plus":{title:"Garantía de entrega de ShipAid",checkout:"PAGAR","checkout-title":"Pagar",continue:"Continuar sin garantía de entrega"}},Be=Object.freeze(Object.defineProperty({__proto__:null,actions:Ve,default:Re,description:Ne,footer:Oe,loading:qe,title:je},Symbol.toStringTag,{value:"Module"})),Ue="Chargement du widget ShipAid...",De="Garantie de livraison",Fe="en cas de Perte, Dommages ou Vol",He={button:"Propulsé par"},We={add:"Ajouter",remove:"Retirer",loading:"Chargement..."},Ze={loading:Ue,title:De,description:Fe,footer:He,actions:We,"learn-more-popup":{close:"Fermer",title:"Garantie de livraison",subtitle:"Nous permettons à vos marques préférées d'offrir une garantie de livraison car chaque commande est précieuse !",disclaimer:{"subtitle-enable":"Nous permettons à vos marques préférées de fournir une garantie de livraison car nous savons que chaque commande est précieuse et que des incidents peuvent survenir !","subtitle-monitor":"Nous surveillons continuellement votre colis et offrons un portail pratique pour vous permettre de suivre l'avancement de votre commande à tout moment !","subtitle-notify":"Vous serez notifié tout au long du processus d'expédition, vous assurant que vous restez informé à chaque étape du parcours.","subtitle-resolution":"Vous serez notifié tout au long du processus d'expédition, vous assurant que vous restez informé à chaque étape du parcours.",text:"En acquérant cette garantie de livraison, vous acceptez nos Conditions de Service et notre Politique de Confidentialité. Cette garantie n'est pas obligatoire, N'EST PAS une assurance et ne fournit pas d'indemnisation pour les pertes, dommages ou responsabilités résultant d'un événement contingent ou inconnu. Si le produit n'est pas livré dans des conditions satisfaisantes, la marque auprès de laquelle vous avez acheté peut le remplacer gratuitement. ShipAid ne fournit aucun produit ou service directement aux consommateurs, mais offre un service permettant aux marques de faciliter le remplacement du produit pour leurs clients. L'achat de cette garantie ne signifie pas que vous serez automatiquement remboursé pour tout produit ou frais de port, car le processus de résolution et la décision de compensation sont strictement décidés par la marque que vous achetez. La marque exigera une preuve de dommage ou de produit non livré."},links:{terms:"Conditions de service",privacy:"Politique de Confidentialité"}},"checkout-plus":{title:"Garantie de livraison ShipAid",checkout:"FINALISER LA COMMANDE","checkout-title":"Checkout",continue:"Continuer sans garantie de livraison"}},Ge=Object.freeze(Object.defineProperty({__proto__:null,actions:We,default:Ze,description:Fe,footer:He,loading:Ue,title:De},Symbol.toStringTag,{value:"Module"})),Ke="Caricamento del widget ShipAid...",Je="Garanzia di consegna",Qe="in caso di Perdita, Danno o Furto",Ye={button:"Offerto da"},Xe={add:"Aggiungere",remove:"Rimuovere",loading:"Caricamento ..."},ti={loading:Ke,title:Je,description:Qe,footer:Ye,actions:Xe,"learn-more-popup":{close:"Vicina",title:"Garanzia di consegna",subtitle:"Consentiamo ai tuoi marchi preferiti di offrire una garanzia di consegna perché ogni ordine è prezioso!",disclaimer:{"subtitle-enable":"Consentiamo ai tuoi marchi preferiti di fornire una garanzia di consegna perché sappiamo che ogni ordine è prezioso e le cose accadono!","subtitle-monitor":"Monitoriamo continuamente il tuo pacco e ti offriamo un comodo portale per monitorare lo stato di avanzamento del tuo ordine in qualsiasi momento!","subtitle-notify":"Riceverai una notifica durante l'intero processo di spedizione, assicurandoti di rimanere aggiornato in ogni fase del processo.","subtitle-resolution":"Você será notificado durante todo o processo de envio, garantindo que você fique atualizado a cada passo do caminho.",text:"Acquistando questa garanzia di consegna, accetti i nostri Termini di servizio e l'Informativa sulla privacy. Non sei obbligato ad acquistare questa garanzia. Questa garanzia NON è un'assicurazione e non fornisce un indennizzo contro perdite, danni o responsabilità derivanti da un evento contingente o sconosciuto, ma piuttosto, attraverso ShipAid i marchi forniscono una garanzia di consegna in base alla quale se il prodotto ordinato non viene consegnato in condizioni soddisfacenti, il marchio da cui hai ordinato il prodotto può sostituire il prodotto gratuitamente. ShipAid non fornisce alcun prodotto o servizio direttamente ai consumatori, ma fornisce invece un servizio che consente ai marchi di facilitare la sostituzione del prodotto ai propri clienti. L'acquisto di questa garanzia non significa che verrai automaticamente rimborsato per qualsiasi prodotto o costo di spedizione perché il processo di risoluzione e la decisione per il risarcimento sono rigorosamente decisi dal marchio da cui stai acquistando. Il marchio richiederà la prova del danno o del prodotto non consegnato."},links:{terms:"Termini di servizio",privacy:"Politica sulla riservatezza"}},"checkout-plus":{title:"Garanzia di consegna ShipAid",checkout:"CONCLUDI L'ORDINE","checkout-title":"Checkout",continue:"Continua senza garanzia di consegna"}},ei=Object.freeze(Object.defineProperty({__proto__:null,actions:Xe,default:ti,description:Qe,footer:Ye,loading:Ke,title:Je},Symbol.toStringTag,{value:"Module"})),ii="Laad ShipAid Widget...",oi="Bezorggarantie",ri="in geval van verlies, schade of diefstal",ni={button:"Aangedreven door"},ai={add:"Toevoegen",remove:"Verwijderen",loading:"Bezig met laden..."},si={loading:ii,title:oi,description:ri,footer:ni,actions:ai,"learn-more-popup":{close:"Sluiten",title:"Bezorggarantie",disclaimer:{"subtitle-enable":"We stellen je favoriete merken in staat om een bezorggarantie te bieden omdat we weten dat elke bestelling belangrijk is en dingen kunnen gebeuren!","subtitle-monitor":"We monitoren je pakket continu en bieden een handig portaal om de voortgang van je bestelling op elk moment te volgen!","subtitle-notify":"Je wordt gedurende het gehele verzendproces op de hoogte gehouden, zodat je altijd op de hoogte bent van elke stap.","subtitle-resolution":"In geval van problemen tijdens het transport bieden we een snelle en gemakkelijke manier om het probleem direct bij het merk te melden, voor een snelle oplossing.",text:"Door deze bezorggarantie aan te schaffen, ga je akkoord met onze Servicevoorwaarden en Privacybeleid. Je bent niet verplicht om deze garantie aan te schaffen. Deze garantie is GEEN verzekering en biedt geen schadevergoeding voor verlies, schade of aansprakelijkheid als gevolg van een onvoorziene of onbekende gebeurtenis, maar biedt via ShipAid een bezorggarantie waarbij, als het product dat je hebt besteld niet in bevredigende staat wordt geleverd, het merk van wie je het product hebt besteld, het product gratis kan vervangen. ShipAid levert geen producten of diensten direct aan consumenten, maar biedt een dienst die merken in staat stelt om productvervanging aan hun klanten te faciliteren. Het kopen van deze garantie betekent niet automatisch dat je wordt vergoed voor product- of verzendkosten, aangezien het oplossingproces en de beslissing voor compensatie strikt wordt bepaald door het merk van wie je koopt. Het merk zal bewijs van schade of niet-geleverde producten vereisen."},links:{terms:"Servicevoorwaarden",privacy:"Privacybeleid"}},"checkout-plus":{title:"ShipAid Bezorggarantie",checkout:"AFREKENEN","checkout-title":"Afrekenen",continue:"Doorgaan zonder bezorggarantie"}},di=Object.freeze(Object.defineProperty({__proto__:null,actions:ai,default:si,description:ri,footer:ni,loading:ii,title:oi},Symbol.toStringTag,{value:"Module"})),pi="Carregando o widget ShipAid...",li="Garantia de entrega",ci="em caso de Perda, Danos ou Roubo",hi={button:"Distribuído por"},ui={add:"Adicionar",remove:"Remover",loading:"Carregando..."},mi={loading:pi,title:li,description:ci,footer:hi,actions:ui,"learn-more-popup":{close:"Fechar",title:"Garantia de entrega",subtitle:"Capacitamos suas marcas favoritas para oferecer uma garantia de entrega porque cada pedido é precioso!",disclaimer:{"subtitle-enable":"Permitimos que suas marcas favoritas forneçam uma garantia de entrega porque sabemos que cada pedido é precioso e as coisas acontecem!","subtitle-monitor":"Monitoramos continuamente o seu pacote e oferecemos um portal conveniente para você acompanhar o andamento do seu pedido a qualquer momento!","subtitle-notify":"Você será notificado durante todo o processo de envio, garantindo que você fique atualizado a cada passo do caminho.","subtitle-resolution":"Você será notificado durante todo o processo de envio, garantindo que você fique atualizado a cada passo do caminho.",text:"Ao adquirir esta garantia de entrega, você concorda com nossos Termos de Serviço e Política de Privacidade. Esta garantia não é obrigatória, NÃO é um seguro e não fornece indenização contra perdas, danos ou responsabilidade decorrentes de um contingente ou desconhecido. Caso o produto não seja entregue em condições satisfatórias, a marca da qual você comprou pode substituí-lo gratuitamente. A ShipAid não fornece nenhum produto ou serviço diretamente aos consumidores, mas sim presta um serviço que permite às marcas facilitar a substituição do produto aos seus clientes. Adquirir esta garantia não significa que você será automaticamente reembolsado por qualquer produto ou custos de envio porque o processo de resolução e decisão de compensação é estritamente decidido pela marca que você está comprando. A marca exigirá prova de danos ou produto não entregue."},links:{terms:"Termos de serviço",privacy:"Política de Privacidade"}},"checkout-plus":{title:"Garantia de Entrega ShipAid",checkout:"FINALIZAR COMPRA","checkout-title":"Checkout",continue:"Continue without delivery guarantee"}},gi=Object.freeze(Object.defineProperty({__proto__:null,actions:ui,default:mi,description:ci,footer:hi,loading:pi,title:li},Symbol.toStringTag,{value:"Module"}));return t.ShipAidWidget=Ae,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t}({});
|
|
1781
|
+
`}};$e.styles=ce;let Se=$e;me([o({type:String,attribute:!0})],Se.prototype,"env"),me([o({type:Boolean,attribute:!0})],Se.prototype,"useCustomStoreFront"),me([o({type:String,attribute:!0})],Se.prototype,"storeDomain"),me([o({type:String,attribute:!0})],Se.prototype,"storeAccessToken"),me([o({type:String,attribute:!0})],Se.prototype,"cartId"),me([o({type:Boolean,attribute:!0})],Se.prototype,"disablePolling"),me([o({type:Boolean,attribute:!0})],Se.prototype,"disableActions"),me([o({type:Number,attribute:!0})],Se.prototype,"pollingInterval"),me([o({type:Boolean,attribute:!0})],Se.prototype,"disableRefresh"),me([o({type:Boolean,attribute:!0})],Se.prototype,"refreshCart"),me([o({type:Boolean,attribute:!0})],Se.prototype,"persistPopup"),me([o({type:Boolean,attribute:!0})],Se.prototype,"defaultToggleButton"),me([o({type:String,attribute:!0})],Se.prototype,"lang"),me([o({type:String,attribute:!0})],Se.prototype,"currency"),me([o({type:String,attribute:!0})],Se.prototype,"customerId"),me([o({type:Boolean,attribute:!0})],Se.prototype,"supportSubscriptions"),me([o({type:String,attribute:"data-selector"})],Se.prototype,"dataSelector"),me([o({type:String,attribute:"button-title"})],Se.prototype,"buttonTitle"),me([o({type:String,attribute:"button-classes"})],Se.prototype,"buttonClasses"),me([o({type:String,attribute:"shadow-root-selector"})],Se.prototype,"shadowRootSelector"),me([o({type:Boolean,attribute:"use-shipaid-checkout"})],Se.prototype,"useShipAidCheckout"),me([r()],Se.prototype,"_storeDomain"),me([r()],Se.prototype,"_store"),me([r()],Se.prototype,"_cart"),me([r()],Se.prototype,"_protectionProduct"),me([r()],Se.prototype,"_cartLastUpdated"),me([r()],Se.prototype,"_hasFinishedSetup"),me([r()],Se.prototype,"_shouldShowWidget"),me([r()],Se.prototype,"_hasProtectionInCart"),me([r()],Se.prototype,"_protectionCartItem"),me([r()],Se.prototype,"_protectionVariant"),me([r()],Se.prototype,"hasLoadedStrings"),me([r()],Se.prototype,"fetchInterceptorCleanup"),me([r()],Se.prototype,"intervalId"),me([r()],Se.prototype,"_sellingPlanId"),me([r()],Se.prototype,"_state"),me([r()],Se.prototype,"_popup"),customElements.get("shipaid-widget")||customElements.define("shipaid-widget",Se);const Ae="Laden des ShipAid-Widgets...",Pe="Liefergarantie",Le="im Falle von Verlust, Beschädigung oder Diebstahl",ze={button:"Bereitgestellt von"},Ee={add:"Hinzufügen",remove:"Entfernen",loading:"Lädt..."},Ie={loading:Ae,title:Pe,description:Le,footer:ze,actions:Ee,"learn-more-popup":{close:"Schließen",title:"Liefergarantie",subtitle:"Wir ermöglichen es Ihren Lieblingsmarken, eine Liefergarantie anzubieten, weil jede Bestellung wertvoll ist!",disclaimer:{"subtitle-enable":"Wir ermöglichen es Ihren Lieblingsmarken, eine Liefergarantie zu bieten, denn wir wissen, dass jede Bestellung wertvoll ist und Dinge passieren können!","subtitle-monitor":"Wir überwachen Ihr Paket kontinuierlich und bieten ein praktisches Portal, damit Sie den Fortschritt Ihrer Bestellung jederzeit verfolgen können!","subtitle-notify":"Sie werden während des gesamten Versandprozesses benachrichtigt, um sicherzustellen, dass Sie auf dem Laufenden bleiben.","subtitle-resolution":"Sie werden während des gesamten Versandprozesses benachrichtigt, um sicherzustellen, dass Sie auf dem Laufenden bleiben.",text:"Durch den Erwerb dieser Liefergarantie stimmen Sie unseren Servicebedingungen und Datenschutzrichtlinien zu. Diese Garantie ist nicht verpflichtend, IST KEINE Versicherung und bietet keine Entschädigung für Verluste, Schäden oder Haftungen, die aus einem zufälligen oder unbekannten Ereignis resultieren. Sollte das Produkt nicht in zufriedenstellendem Zustand geliefert werden, kann die Marke, bei der Sie gekauft haben, dieses kostenlos ersetzen. ShipAid liefert keine Produkte oder Dienstleistungen direkt an Verbraucher, sondern bietet einen Dienst an, der Marken ermöglicht, den Produktersatz für ihre Kunden zu erleichtern. Der Erwerb dieser Garantie bedeutet nicht, dass Sie automatisch eine Rückerstattung für irgendwelche Produkte oder Versandkosten erhalten, da der Lösungsprozess und die Entscheidung über eine Kompensation strikt von der Marke, bei der Sie kaufen, entschieden werden. Die Marke wird einen Nachweis für Beschädigungen oder die Nichtlieferung des Produkts verlangen."},links:{terms:"Servicebedingungen",privacy:"Datenschutzrichtlinie"}},"checkout-plus":{title:"ShipAid Liefergarantie",checkout:"KASSE","checkout-title":"Kasse",continue:"Ohne Liefergarantie fortfahren"}},Me=Object.freeze(Object.defineProperty({__proto__:null,actions:Ee,default:Ie,description:Le,footer:ze,loading:Ae,title:Pe},Symbol.toStringTag,{value:"Module"})),Te="Cargando el widget ShipAid...",qe="Garantía de entrega",je="en caso de Pérdida, Daño o Robo",Ne={button:"Energizado por"},Oe={add:"Agregar",remove:"Eliminar",loading:"Cargando..."},Ve={loading:Te,title:qe,description:je,footer:Ne,actions:Oe,"learn-more-popup":{close:"Cerca",title:"Garantía de entrega",disclaimer:{"subtitle-enable":"Permitimos que sus marcas favoritas brinden una garantía de entrega porque sabemos que cada pedido es valioso y las cosas suceden!","subtitle-monitor":"Supervisamos continuamente su paquete y le ofrecemos un portal conveniente para que pueda realizar un seguimiento del progreso de su pedido en cualquier momento.","subtitle-notify":"Se le notificará durante todo el proceso de envío, asegurándose de que esté actualizado en cada paso del camino.","subtitle-resolution":"En caso de cualquier problema durante el tránsito, ofrecemos un método rápido y fácil para informar el problema directamente a la marca, para una resolución rápida.",text:"Al comprar esta garantía de entrega, acepta nuestros Términos de servicio y Política de privacidad. Usted no está obligado a comprar esta garantía. Esta garantía NO es un seguro y no brinda indemnización por pérdida, daño o responsabilidad que surja de un evento contingente o desconocido, sino que, a través de las marcas de ShipAid, brinda una garantía de entrega mediante la cual, si el producto que ordenó no se entrega en condiciones satisfactorias, la marca desde el que ordenó el producto puede reemplazar el producto sin cargo. ShipAid no proporciona ningún producto o servicio directamente a los consumidores, sino que proporciona un servicio que permite a las marcas facilitar el reemplazo de productos a sus clientes. La compra de esta garantía no significa que se le reembolsará automáticamente cualquier producto o costo de envío porque el proceso de resolución y la decisión de compensación lo decide estrictamente la marca a la que le compra. La marca requerirá prueba de daño o producto no entregado."},links:{terms:"Términos de servicio",privacy:"Política de Privacidad"}},"checkout-plus":{title:"Garantía de entrega de ShipAid",checkout:"PAGAR","checkout-title":"Pagar",continue:"Continuar sin garantía de entrega"}},Re=Object.freeze(Object.defineProperty({__proto__:null,actions:Oe,default:Ve,description:je,footer:Ne,loading:Te,title:qe},Symbol.toStringTag,{value:"Module"})),Be="Chargement du widget ShipAid...",Ue="Garantie de livraison",De="en cas de Perte, Dommages ou Vol",Fe={button:"Propulsé par"},He={add:"Ajouter",remove:"Retirer",loading:"Chargement..."},We={loading:Be,title:Ue,description:De,footer:Fe,actions:He,"learn-more-popup":{close:"Fermer",title:"Garantie de livraison",subtitle:"Nous permettons à vos marques préférées d'offrir une garantie de livraison car chaque commande est précieuse !",disclaimer:{"subtitle-enable":"Nous permettons à vos marques préférées de fournir une garantie de livraison car nous savons que chaque commande est précieuse et que des incidents peuvent survenir !","subtitle-monitor":"Nous surveillons continuellement votre colis et offrons un portail pratique pour vous permettre de suivre l'avancement de votre commande à tout moment !","subtitle-notify":"Vous serez notifié tout au long du processus d'expédition, vous assurant que vous restez informé à chaque étape du parcours.","subtitle-resolution":"Vous serez notifié tout au long du processus d'expédition, vous assurant que vous restez informé à chaque étape du parcours.",text:"En acquérant cette garantie de livraison, vous acceptez nos Conditions de Service et notre Politique de Confidentialité. Cette garantie n'est pas obligatoire, N'EST PAS une assurance et ne fournit pas d'indemnisation pour les pertes, dommages ou responsabilités résultant d'un événement contingent ou inconnu. Si le produit n'est pas livré dans des conditions satisfaisantes, la marque auprès de laquelle vous avez acheté peut le remplacer gratuitement. ShipAid ne fournit aucun produit ou service directement aux consommateurs, mais offre un service permettant aux marques de faciliter le remplacement du produit pour leurs clients. L'achat de cette garantie ne signifie pas que vous serez automatiquement remboursé pour tout produit ou frais de port, car le processus de résolution et la décision de compensation sont strictement décidés par la marque que vous achetez. La marque exigera une preuve de dommage ou de produit non livré."},links:{terms:"Conditions de service",privacy:"Politique de Confidentialité"}},"checkout-plus":{title:"Garantie de livraison ShipAid",checkout:"FINALISER LA COMMANDE","checkout-title":"Checkout",continue:"Continuer sans garantie de livraison"}},Ze=Object.freeze(Object.defineProperty({__proto__:null,actions:He,default:We,description:De,footer:Fe,loading:Be,title:Ue},Symbol.toStringTag,{value:"Module"})),Ge="Caricamento del widget ShipAid...",Ke="Garanzia di consegna",Je="in caso di Perdita, Danno o Furto",Qe={button:"Offerto da"},Ye={add:"Aggiungere",remove:"Rimuovere",loading:"Caricamento ..."},Xe={loading:Ge,title:Ke,description:Je,footer:Qe,actions:Ye,"learn-more-popup":{close:"Vicina",title:"Garanzia di consegna",subtitle:"Consentiamo ai tuoi marchi preferiti di offrire una garanzia di consegna perché ogni ordine è prezioso!",disclaimer:{"subtitle-enable":"Consentiamo ai tuoi marchi preferiti di fornire una garanzia di consegna perché sappiamo che ogni ordine è prezioso e le cose accadono!","subtitle-monitor":"Monitoriamo continuamente il tuo pacco e ti offriamo un comodo portale per monitorare lo stato di avanzamento del tuo ordine in qualsiasi momento!","subtitle-notify":"Riceverai una notifica durante l'intero processo di spedizione, assicurandoti di rimanere aggiornato in ogni fase del processo.","subtitle-resolution":"Você será notificado durante todo o processo de envio, garantindo que você fique atualizado a cada passo do caminho.",text:"Acquistando questa garanzia di consegna, accetti i nostri Termini di servizio e l'Informativa sulla privacy. Non sei obbligato ad acquistare questa garanzia. Questa garanzia NON è un'assicurazione e non fornisce un indennizzo contro perdite, danni o responsabilità derivanti da un evento contingente o sconosciuto, ma piuttosto, attraverso ShipAid i marchi forniscono una garanzia di consegna in base alla quale se il prodotto ordinato non viene consegnato in condizioni soddisfacenti, il marchio da cui hai ordinato il prodotto può sostituire il prodotto gratuitamente. ShipAid non fornisce alcun prodotto o servizio direttamente ai consumatori, ma fornisce invece un servizio che consente ai marchi di facilitare la sostituzione del prodotto ai propri clienti. L'acquisto di questa garanzia non significa che verrai automaticamente rimborsato per qualsiasi prodotto o costo di spedizione perché il processo di risoluzione e la decisione per il risarcimento sono rigorosamente decisi dal marchio da cui stai acquistando. Il marchio richiederà la prova del danno o del prodotto non consegnato."},links:{terms:"Termini di servizio",privacy:"Politica sulla riservatezza"}},"checkout-plus":{title:"Garanzia di consegna ShipAid",checkout:"CONCLUDI L'ORDINE","checkout-title":"Checkout",continue:"Continua senza garanzia di consegna"}},ti=Object.freeze(Object.defineProperty({__proto__:null,actions:Ye,default:Xe,description:Je,footer:Qe,loading:Ge,title:Ke},Symbol.toStringTag,{value:"Module"})),ei="Laad ShipAid Widget...",ii="Bezorggarantie",oi="in geval van verlies, schade of diefstal",ri={button:"Aangedreven door"},ni={add:"Toevoegen",remove:"Verwijderen",loading:"Bezig met laden..."},ai={loading:ei,title:ii,description:oi,footer:ri,actions:ni,"learn-more-popup":{close:"Sluiten",title:"Bezorggarantie",disclaimer:{"subtitle-enable":"We stellen je favoriete merken in staat om een bezorggarantie te bieden omdat we weten dat elke bestelling belangrijk is en dingen kunnen gebeuren!","subtitle-monitor":"We monitoren je pakket continu en bieden een handig portaal om de voortgang van je bestelling op elk moment te volgen!","subtitle-notify":"Je wordt gedurende het gehele verzendproces op de hoogte gehouden, zodat je altijd op de hoogte bent van elke stap.","subtitle-resolution":"In geval van problemen tijdens het transport bieden we een snelle en gemakkelijke manier om het probleem direct bij het merk te melden, voor een snelle oplossing.",text:"Door deze bezorggarantie aan te schaffen, ga je akkoord met onze Servicevoorwaarden en Privacybeleid. Je bent niet verplicht om deze garantie aan te schaffen. Deze garantie is GEEN verzekering en biedt geen schadevergoeding voor verlies, schade of aansprakelijkheid als gevolg van een onvoorziene of onbekende gebeurtenis, maar biedt via ShipAid een bezorggarantie waarbij, als het product dat je hebt besteld niet in bevredigende staat wordt geleverd, het merk van wie je het product hebt besteld, het product gratis kan vervangen. ShipAid levert geen producten of diensten direct aan consumenten, maar biedt een dienst die merken in staat stelt om productvervanging aan hun klanten te faciliteren. Het kopen van deze garantie betekent niet automatisch dat je wordt vergoed voor product- of verzendkosten, aangezien het oplossingproces en de beslissing voor compensatie strikt wordt bepaald door het merk van wie je koopt. Het merk zal bewijs van schade of niet-geleverde producten vereisen."},links:{terms:"Servicevoorwaarden",privacy:"Privacybeleid"}},"checkout-plus":{title:"ShipAid Bezorggarantie",checkout:"AFREKENEN","checkout-title":"Afrekenen",continue:"Doorgaan zonder bezorggarantie"}},si=Object.freeze(Object.defineProperty({__proto__:null,actions:ni,default:ai,description:oi,footer:ri,loading:ei,title:ii},Symbol.toStringTag,{value:"Module"})),di="Carregando o widget ShipAid...",pi="Garantia de entrega",li="em caso de Perda, Danos ou Roubo",ci={button:"Distribuído por"},hi={add:"Adicionar",remove:"Remover",loading:"Carregando..."},ui={loading:di,title:pi,description:li,footer:ci,actions:hi,"learn-more-popup":{close:"Fechar",title:"Garantia de entrega",subtitle:"Capacitamos suas marcas favoritas para oferecer uma garantia de entrega porque cada pedido é precioso!",disclaimer:{"subtitle-enable":"Permitimos que suas marcas favoritas forneçam uma garantia de entrega porque sabemos que cada pedido é precioso e as coisas acontecem!","subtitle-monitor":"Monitoramos continuamente o seu pacote e oferecemos um portal conveniente para você acompanhar o andamento do seu pedido a qualquer momento!","subtitle-notify":"Você será notificado durante todo o processo de envio, garantindo que você fique atualizado a cada passo do caminho.","subtitle-resolution":"Você será notificado durante todo o processo de envio, garantindo que você fique atualizado a cada passo do caminho.",text:"Ao adquirir esta garantia de entrega, você concorda com nossos Termos de Serviço e Política de Privacidade. Esta garantia não é obrigatória, NÃO é um seguro e não fornece indenização contra perdas, danos ou responsabilidade decorrentes de um contingente ou desconhecido. Caso o produto não seja entregue em condições satisfatórias, a marca da qual você comprou pode substituí-lo gratuitamente. A ShipAid não fornece nenhum produto ou serviço diretamente aos consumidores, mas sim presta um serviço que permite às marcas facilitar a substituição do produto aos seus clientes. Adquirir esta garantia não significa que você será automaticamente reembolsado por qualquer produto ou custos de envio porque o processo de resolução e decisão de compensação é estritamente decidido pela marca que você está comprando. A marca exigirá prova de danos ou produto não entregue."},links:{terms:"Termos de serviço",privacy:"Política de Privacidade"}},"checkout-plus":{title:"Garantia de Entrega ShipAid",checkout:"FINALIZAR COMPRA","checkout-title":"Checkout",continue:"Continue without delivery guarantee"}},mi=Object.freeze(Object.defineProperty({__proto__:null,actions:hi,default:ui,description:li,footer:ci,loading:di,title:pi},Symbol.toStringTag,{value:"Module"}));return t.ShipAidWidget=Se,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t}({});
|