ui.shipaid.com 0.3.0 → 0.3.2
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 +8 -0
- package/dist/{it-0759ce74.js → it-108c90b9.js} +4 -2
- package/dist/pt-b1b6ec67.js +42 -0
- package/dist/widget.es.js +464 -270
- package/dist/widget.iife.js +362 -223
- package/dist/widget.umd.js +362 -223
- package/dist-types/common/shopify/index.d.ts +6 -0
- package/dist-types/common/shopify/protection.d.ts +6 -0
- package/dist-types/common/shopify/types/ShopifyCart.d.ts +28 -0
- package/dist-types/common/shopify/types/ShopifyProduct.d.ts +7 -0
- package/dist-types/{types/shipaid.d.ts → common/types/ShipAid.d.ts} +8 -16
- package/dist-types/widget/src/assets/icons.d.ts +7 -0
- package/dist-types/widget/types/shipaid.d.ts +10 -0
- package/dist-types/widget/types/shopify.d.ts +28 -0
- package/package.json +7 -7
- package/dist-types/src/assets/icons.d.ts +0 -3
- package/dist-types/src/components/learn-more-styles.d.ts +0 -2
- package/dist-types/types/shopify.d.ts +0 -151
- /package/dist-types/{src → widget/src}/assets/learn-more-styles.d.ts +0 -0
- /package/dist-types/{src → widget/src}/assets/styles.d.ts +0 -0
- /package/dist-types/{src → widget/src}/components/learn-more-popup.d.ts +0 -0
- /package/dist-types/{src → widget/src}/shipaid-widget.d.ts +0 -0
- /package/dist-types/{types → widget/types}/widget.d.ts +0 -0
package/dist/widget.umd.js
CHANGED
|
@@ -1,87 +1,88 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).ShipAidWidget={})}(this,(function(t){"use strict";
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).ShipAidWidget={})}(this,(function(t){"use strict";const e={calculateProtectionTotal:function(t,e,i){var o,r,s;if(!t)throw new Error("Missing store settings.");if(!e)throw new Error("Missing protectionProduct.");if(!i)throw new Error("Missing Shopify cart.");const n=null==t?void 0:t.protectionSettings;if(!n)throw new Error("Tried to find protection variant, but protection settings for this store are missing.");const a=Array.isArray(null==t?void 0:t.excludedProductSkus)?null==t?void 0:t.excludedProductSkus.map((t=>t.trim())):[],d=((null==(o=i.items)?void 0:o.reduce(((t,e)=>{if(!e.sku)return t;return a.some((t=>t===e.sku.trim()))?t-e.final_line_price:t}),i.total_price))??i.total_price)-((null==(r=i.items)?void 0:r.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);if("FIXED"===n.protectionType){if("number"!=typeof n.defaultFee)throw new Error("Missing default fee amount.");if(!(null==(s=n.rules)?void 0:s.length))return n.defaultFee;const t=d/100,e=n.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:n.defaultFee}if("PERCENTAGE"===n.protectionType){const t=d*n.percentage/100;return t>=n.minimumFee?t:n.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)),s=r.find((t=>t.formattedPrice>=i));return s||r[r.length-1]}},i=t=>e=>{return"function"==typeof e?(i=t,o=e,customElements.define(i,o),o):((t,e)=>{const{kind:i,elements:o}=e;return{kind:i,elements:o,finisher(e){customElements.define(t,e)}}})(t,e);
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
-
*/
|
|
6
|
+
*/var i,o},o=(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)}};
|
|
7
7
|
/**
|
|
8
8
|
* @license
|
|
9
9
|
* Copyright 2017 Google LLC
|
|
10
10
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
-
*/
|
|
11
|
+
*/function r(t){return(e,i)=>{return void 0!==i?(r=t,s=i,void e.constructor.createProperty(s,r)):o(t,e);var r,s}}
|
|
12
12
|
/**
|
|
13
13
|
* @license
|
|
14
14
|
* Copyright 2017 Google LLC
|
|
15
15
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
16
|
-
*/function
|
|
16
|
+
*/function s(t){return r({...t,state:!0})}
|
|
17
17
|
/**
|
|
18
18
|
* @license
|
|
19
19
|
* Copyright 2021 Google LLC
|
|
20
20
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
|
-
*/var
|
|
21
|
+
*/var n;null===(n=window.HTMLSlotElement)||void 0===n||n.prototype.assignedElements;
|
|
22
22
|
/**
|
|
23
23
|
* @license
|
|
24
24
|
* Copyright 2019 Google LLC
|
|
25
25
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
26
26
|
*/
|
|
27
|
-
const
|
|
27
|
+
const a=window,d=a.ShadowRoot&&(void 0===a.ShadyCSS||a.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,l=Symbol(),p=new WeakMap;let c=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==l)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(d&&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 h=(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 c(i,t,l)},u=d?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new c("string"==typeof t?t:t+"",void 0,l))(e)})(t):t
|
|
28
28
|
/**
|
|
29
29
|
* @license
|
|
30
30
|
* Copyright 2017 Google LLC
|
|
31
31
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
|
-
*/;var
|
|
32
|
+
*/;var f;const m=window,v=m.trustedTypes,g=v?v.emptyScript:"",_=m.reactiveElementPolyfillSupport,y={toAttribute(t,e){switch(e){case Boolean:t=t?g: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}},b=(t,e)=>e!==t&&(e==e||t==t),$={attribute:!0,type:String,converter:y,reflect:!1,hasChanged:b};let w=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}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("finalized"))return!1;this.finalized=!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(u(t))}else void 0!==t&&e.push(u(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}u(){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)=>{d?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 s=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:y).toAttribute(e,i.type);this._$El=t,null==s?this.removeAttribute(r):this.setAttribute(r,s),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),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:y;this._$El=r,this[r]=s.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||b)(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){}};
|
|
33
33
|
/**
|
|
34
34
|
* @license
|
|
35
35
|
* Copyright 2017 Google LLC
|
|
36
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
37
|
*/
|
|
38
|
-
var
|
|
38
|
+
var C;w.finalized=!0,w.elementProperties=new Map,w.elementStyles=[],w.shadowRootOptions={mode:"open"},null==_||_({ReactiveElement:w}),(null!==(f=m.reactiveElementVersions)&&void 0!==f?f:m.reactiveElementVersions=[]).push("1.6.1");const A=window,S=A.trustedTypes,x=S?S.createPolicy("lit-html",{createHTML:t=>t}):void 0,E=`lit$${(Math.random()+"").slice(9)}$`,L="?"+E,P=`<${L}>`,z=document,M=(t="")=>z.createComment(t),k=t=>null===t||"object"!=typeof t&&"function"!=typeof t,T=Array.isArray,O=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,U=/-->/g,N=/>/g,R=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),j=/'/g,q=/"/g,I=/^(?:script|style|textarea|title)$/i,W=(F=1,(t,...e)=>({_$litType$:F,strings:t,values:e})),H=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),V=new WeakMap,B=z.createTreeWalker(z,129,null,!1);var F;class Z{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,s=0;const n=t.length-1,a=this.parts,[d,l]=((t,e)=>{const i=t.length-1,o=[];let r,s=2===e?"<svg>":"",n=O;for(let d=0;d<i;d++){const e=t[d];let i,a,l=-1,p=0;for(;p<e.length&&(n.lastIndex=p,a=n.exec(e),null!==a);)p=n.lastIndex,n===O?"!--"===a[1]?n=U:void 0!==a[1]?n=N:void 0!==a[2]?(I.test(a[2])&&(r=RegExp("</"+a[2],"g")),n=R):void 0!==a[3]&&(n=R):n===R?">"===a[0]?(n=null!=r?r:O,l=-1):void 0===a[1]?l=-2:(l=n.lastIndex-a[2].length,i=a[1],n=void 0===a[3]?R:'"'===a[3]?q:j):n===q||n===j?n=R:n===U||n===N?n=O:(n=R,r=void 0);const c=n===R&&t[d+1].startsWith("/>")?" ":"";s+=n===O?e+P:l>=0?(o.push(i),e.slice(0,l)+"$lit$"+e.slice(l)+E+c):e+E+(-2===l?(o.push(void 0),d):c)}const a=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==x?x.createHTML(a):a,o]})(t,e);if(this.el=Z.createElement(d,i),B.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=B.nextNode())&&a.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(E)){const i=l[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(E),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?Q:"?"===e[1]?tt:"@"===e[1]?et:K})}else a.push({type:6,index:r})}for(const e of t)o.removeAttribute(e)}if(I.test(o.tagName)){const t=o.textContent.split(E),e=t.length-1;if(e>0){o.textContent=S?S.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],M()),B.nextNode(),a.push({type:2,index:++r});o.append(t[e],M())}}}else if(8===o.nodeType)if(o.data===L)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(E,t+1));)a.push({type:7,index:r}),t+=E.length-1}r++}}static createElement(t,e){const i=z.createElement("template");return i.innerHTML=t,i}}function Y(t,e,i=t,o){var r,s,n,a;if(e===H)return e;let d=void 0!==o?null===(r=i._$Co)||void 0===r?void 0:r[o]:i._$Cl;const l=k(e)?void 0:e._$litDirective$;return(null==d?void 0:d.constructor)!==l&&(null===(s=null==d?void 0:d._$AO)||void 0===s||s.call(d,!1),void 0===l?d=void 0:(d=new l(t),d._$AT(t,i,o)),void 0!==o?(null!==(n=(a=i)._$Co)&&void 0!==n?n:a._$Co=[])[o]=d:i._$Cl=d),void 0!==d&&(e=Y(t,d._$AS(t,e.values),d,o)),e}class G{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:z).importNode(i,!0);B.currentNode=r;let s=B.nextNode(),n=0,a=0,d=o[0];for(;void 0!==d;){if(n===d.index){let e;2===d.type?e=new J(s,s.nextSibling,this,t):1===d.type?e=new d.ctor(s,d.name,d.strings,this,t):6===d.type&&(e=new it(s,this,t)),this.u.push(e),d=o[++a]}n!==(null==d?void 0:d.index)&&(s=B.nextNode(),n++)}return r}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class J{constructor(t,e,i,o){var r;this.type=2,this._$AH=D,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=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._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Y(this,t,e),k(t)?t===D||null==t||""===t?(this._$AH!==D&&this._$AR(),this._$AH=D):t!==this._$AH&&t!==H&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>T(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==D&&k(this._$AH)?this._$AA.nextSibling.data=t:this.T(z.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Z.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.p(i);else{const t=new G(r,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=V.get(t.strings);return void 0===e&&V.set(t.strings,e=new Z(t)),e}k(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 J(this.O(M()),this.O(M()),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._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class K{constructor(t,e,i,o,r){this.type=1,this._$AH=D,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=D}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const r=this.strings;let s=!1;if(void 0===r)t=Y(this,t,e,0),s=!k(t)||t!==this._$AH&&t!==H,s&&(this._$AH=t);else{const o=t;let n,a;for(t=r[0],n=0;n<r.length-1;n++)a=Y(this,o[i+n],e,n),a===H&&(a=this._$AH[n]),s||(s=!k(a)||a!==this._$AH[n]),a===D?t=D:t!==D&&(t+=(null!=a?a:"")+r[n+1]),this._$AH[n]=a}s&&!o&&this.j(t)}j(t){t===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Q extends K{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===D?void 0:t}}const X=S?S.emptyScript:"";class tt extends K{constructor(){super(...arguments),this.type=4}j(t){t&&t!==D?this.element.setAttribute(this.name,X):this.element.removeAttribute(this.name)}}class et extends K{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=Y(this,t,e,0))&&void 0!==i?i:D)===H)return;const o=this._$AH,r=t===D&&o!==D||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==D&&(o===D||r);r&&this.element.removeEventListener(this.name,this,o),s&&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 it{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){Y(this,t)}}const ot=A.litHtmlPolyfillSupport;null==ot||ot(Z,J),(null!==(C=A.litHtmlVersions)&&void 0!==C?C:A.litHtmlVersions=[]).push("2.6.1");const rt=(t,e,i)=>{var o,r;const s=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let n=s._$litPart$;if(void 0===n){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;s._$litPart$=n=new J(e.insertBefore(M(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n};
|
|
39
39
|
/**
|
|
40
40
|
* @license
|
|
41
41
|
* Copyright 2017 Google LLC
|
|
42
42
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
43
|
-
*/var
|
|
43
|
+
*/var st,nt;let at=class extends w{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=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._$Dt=rt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return H}};at.finalized=!0,at._$litElement$=!0,null===(st=globalThis.litElementHydrateSupport)||void 0===st||st.call(globalThis,{LitElement:at});const dt=globalThis.litElementPolyfillSupport;null==dt||dt({LitElement:at}),(null!==(nt=globalThis.litElementVersions)&&void 0!==nt?nt:globalThis.litElementVersions=[]).push("3.2.0");const lt="langChanged";function pt(t,e,i){return Object.entries(ht(e||{})).reduce(((t,[e,i])=>t.replace(new RegExp(`{{[ ]*${e}[ ]*}}`,"gm"),String(ht(i)))),t)}function ct(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 ht(t){return"function"==typeof t?t():t}let ut={loader:()=>Promise.resolve({}),empty:t=>`[${t}]`,lookup:ct,interpolate:pt,translationCache:{}};function ft(t,e,i=ut){var o;o={previousStrings:i.strings,previousLang:i.lang,lang:i.lang=t,strings:i.strings=e},window.dispatchEvent(new CustomEvent(lt,{detail:o}))}
|
|
44
44
|
/**
|
|
45
45
|
* @license
|
|
46
46
|
* Copyright 2017 Google LLC
|
|
47
47
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
48
48
|
*/
|
|
49
|
-
const
|
|
49
|
+
const mt=2;class vt{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)}}
|
|
50
50
|
/**
|
|
51
51
|
* @license
|
|
52
52
|
* Copyright 2020 Google LLC
|
|
53
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
54
|
-
*/const
|
|
54
|
+
*/const gt=(t,e)=>{var i,o;const r=t._$AN;if(void 0===r)return!1;for(const s of r)null===(o=(i=s)._$AO)||void 0===o||o.call(i,e,!1),gt(s,e);return!0},_t=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))},yt=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),wt(e)}};
|
|
55
55
|
/**
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2017 Google LLC
|
|
58
58
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
59
|
-
*/function
|
|
59
|
+
*/function bt(t){void 0!==this._$AN?(_t(this),this._$AM=t,yt(this)):this._$AM=t}function $t(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 s=i;s<o.length;s++)gt(o[s],!1),_t(o[s]);else null!=o&&(gt(o,!1),_t(o));else gt(this,t)}const wt=t=>{var e,i,o,r;t.type==mt&&(null!==(e=(o=t)._$AP)&&void 0!==e||(o._$AP=$t),null!==(i=(r=t)._$AQ)&&void 0!==i||(r._$AQ=bt))};class Ct extends vt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),yt(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&&(gt(this,t),_t(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 Ct{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(lt,i,e),()=>window.removeEventListener(lt,i)}(this.langChanged.bind(this)))}unsubscribe(){null!=this.langChangedSubscription&&this.langChangedSubscription()}disconnected(){this.unsubscribe()}reconnected(){this.subscribe()}}const St=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends At{render(t,e,i){return this.renderValue((()=>function(t,e,i=ut){let o=i.translationCache[t]||(i.translationCache[t]=i.lookup(t,i)||i.empty(t,i));return null!=(e=null!=e?ht(e):null)?i.interpolate(o,e,i):o}(t,e,i)))}});
|
|
60
60
|
/**
|
|
61
61
|
* @license
|
|
62
62
|
* Copyright 2017 Google LLC
|
|
63
63
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64
|
-
*/class
|
|
64
|
+
*/class xt extends vt{constructor(t){if(super(t),this.it=D,t.type!==mt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===D||null==t)return this._t=void 0,this.it=t;if(t===H)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}xt.directiveName="unsafeHTML",xt.resultType=1;const Et="__registered_effects";function Lt(t){const e=t;if(e[Et])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[Et]={index:0,count:0,effects:[]},i.updated=t=>(e[Et].index=0,o(t)),e}function Pt(t,e,i){const o=function(t,e){const i=Lt(t),{index:o,count:r}=i[Et];return o===r?(i[Et].index++,i[Et].count++,i[Et].effects.push(e),e):(i[Et].index++,i[Et].effects[o])}(t,{on:e,observe:["__initial__dirty"]});o.observe.some(((t,e)=>i[e]!==t))&&o.on(),o.observe=i}
|
|
65
65
|
/**
|
|
66
66
|
* @license
|
|
67
67
|
* Copyright 2021 Google LLC
|
|
68
68
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
69
69
|
*/
|
|
70
|
-
function
|
|
70
|
+
function zt(t,e,i){return t?e():null==i?void 0:i()}const Mt=h`
|
|
71
71
|
:host {
|
|
72
|
-
--shipaid-primary: #
|
|
72
|
+
--shipaid-primary: #0056d6;
|
|
73
73
|
--shipaid-secondary: #0076ff;
|
|
74
74
|
--shipaid-danger: #f44336;
|
|
75
75
|
--shipaid-text: #000000;
|
|
76
76
|
--shipaid-text-muted: #cccccc;
|
|
77
77
|
--shipaid-text-grey: #aaaaaa;
|
|
78
78
|
--shipaid-light-grey: #ebecf0;
|
|
79
|
+
--shipaid-light-blue: #bacef4;
|
|
79
80
|
--shipaid-font: "Lato", sans-serif;
|
|
80
81
|
--shipaid-font-xs: 12px;
|
|
81
82
|
--shipaid-font-sm: 14px;
|
|
82
83
|
--shipaid-font-base: 16px;
|
|
83
84
|
--shipaid-font-lg: 18px;
|
|
84
|
-
--shipaid-font-display:
|
|
85
|
+
--shipaid-font-display: 36px;
|
|
85
86
|
--shipaid-font-regular: 400;
|
|
86
87
|
--shipaid-font-heavy: 700;
|
|
87
88
|
}
|
|
@@ -104,8 +105,9 @@ function Pt(t,e,i){return t?e():null==i?void 0:i()}const zt=h`
|
|
|
104
105
|
max-width: 500px;
|
|
105
106
|
max-height: 80vh;
|
|
106
107
|
height: fit-content;
|
|
107
|
-
border: var(--shipaid-popup-border, var(--shipaid-
|
|
108
|
+
border: var(--shipaid-popup-border, var(--shipaid-primary)) 6px solid;
|
|
108
109
|
background-color: var(--shipaid-popup-background, #fff);
|
|
110
|
+
border-radius: 45px;
|
|
109
111
|
z-index: 1000000000;
|
|
110
112
|
overflow: auto;
|
|
111
113
|
visibility: hidden;
|
|
@@ -133,6 +135,11 @@ function Pt(t,e,i){return t?e():null==i?void 0:i()}const zt=h`
|
|
|
133
135
|
}
|
|
134
136
|
}
|
|
135
137
|
|
|
138
|
+
.popup-logo {
|
|
139
|
+
width: 70%;
|
|
140
|
+
margin: auto;
|
|
141
|
+
}
|
|
142
|
+
|
|
136
143
|
.shipaid-popup .popup-close {
|
|
137
144
|
width: fit-content;
|
|
138
145
|
margin-left: auto;
|
|
@@ -148,6 +155,7 @@ function Pt(t,e,i){return t?e():null==i?void 0:i()}const zt=h`
|
|
|
148
155
|
font-size: var(--shipaid-font-display);
|
|
149
156
|
font-weight: var(--shipaid-font-regular);
|
|
150
157
|
letter-spacing: 1px;
|
|
158
|
+
text-align: center;
|
|
151
159
|
}
|
|
152
160
|
|
|
153
161
|
.shipaid-popup .popup-top-image {
|
|
@@ -157,6 +165,35 @@ function Pt(t,e,i){return t?e():null==i?void 0:i()}const zt=h`
|
|
|
157
165
|
object-fit: contain;
|
|
158
166
|
}
|
|
159
167
|
|
|
168
|
+
.shipaid-popup .popup-icon {
|
|
169
|
+
margin-left: 1rem;
|
|
170
|
+
width: 60%;
|
|
171
|
+
height: auto;
|
|
172
|
+
object-fit: cover;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.shipaid-popup .popup-icon-b {
|
|
176
|
+
margin-left: 1rem;
|
|
177
|
+
width: 53%;
|
|
178
|
+
height: auto;
|
|
179
|
+
object-fit: contain;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.shipaid-popup .popup-icon-bell {
|
|
183
|
+
margin-left: 1rem;
|
|
184
|
+
width: 66%;
|
|
185
|
+
height: auto;
|
|
186
|
+
object-fit: contain;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.shipaid-popup .popup-disclaimer-subtitle {
|
|
190
|
+
display: inline-flex;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.shipaid-popup .popup-disclaimer-subtitle p {
|
|
194
|
+
margin: auto;
|
|
195
|
+
}
|
|
196
|
+
|
|
160
197
|
.shipaid-popup p {
|
|
161
198
|
font-size: var(--shipaid-font-base);
|
|
162
199
|
margin: 0;
|
|
@@ -164,15 +201,19 @@ function Pt(t,e,i){return t?e():null==i?void 0:i()}const zt=h`
|
|
|
164
201
|
|
|
165
202
|
.shipaid-popup .popup-disclaimer {
|
|
166
203
|
font-size: 10px;
|
|
167
|
-
color: var(--shipaid-
|
|
204
|
+
color: var(--shipaid-light-blue);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.popup-divider {
|
|
208
|
+
border-top: 1px solid var(--shipaid-text);
|
|
209
|
+
width: 90%;
|
|
168
210
|
}
|
|
169
211
|
|
|
170
212
|
.shipaid-popup .popup-footer {
|
|
171
213
|
display: flex;
|
|
172
214
|
flex-direction: row;
|
|
173
|
-
justify-content:
|
|
215
|
+
justify-content: center;
|
|
174
216
|
align-items: flex-start;
|
|
175
|
-
margin-top: 2rem;
|
|
176
217
|
}
|
|
177
218
|
|
|
178
219
|
@media (max-width: 600px) {
|
|
@@ -190,63 +231,281 @@ function Pt(t,e,i){return t?e():null==i?void 0:i()}const zt=h`
|
|
|
190
231
|
.shipaid-popup .popup-footer .footer-links a {
|
|
191
232
|
font-family: var(--shipaid-font);
|
|
192
233
|
font-size: var(--shipaid-font-sm);
|
|
193
|
-
color: var(--shipaid-text
|
|
234
|
+
color: var(--shipaid-text);
|
|
194
235
|
}
|
|
195
236
|
|
|
196
237
|
.shipaid-popup .popup-footer .footer-date p {
|
|
197
238
|
font-family: var(--shipaid-font);
|
|
198
|
-
font-weight: var(--shipaid-font-heavy);
|
|
199
239
|
font-size: var(--shipaid-font-sm);
|
|
200
240
|
color: var(--shipaid-text);
|
|
241
|
+
margin-left: 2rem;
|
|
201
242
|
}
|
|
202
|
-
|
|
243
|
+
`,kt=W`
|
|
244
|
+
<svg
|
|
245
|
+
version="1.0"
|
|
246
|
+
viewBox="0 0 500.000000 500.000000"
|
|
247
|
+
preserveAspectRatio="xMidYMid meet"
|
|
248
|
+
>
|
|
249
|
+
<g
|
|
250
|
+
transform="translate(0.000000,500.000000) scale(0.100000,-0.100000)"
|
|
251
|
+
fill="#0056d6"
|
|
252
|
+
stroke="none"
|
|
253
|
+
>
|
|
254
|
+
<path
|
|
255
|
+
d="M1332 4545 c-540 -173 -996 -323 -1012 -335 -15 -11 -38 -41 -50 -65 -25 -51 -25 -28 6 -490 48 -726 177 -2199 199 -2270 7 -25 25 -61 39 -80 17 -22 322 -225 903 -602 866 -560 879 -568 928 -568 49 1 69 13 929 570 683 442 885 577 907 608 15 21 32 62 38 90 10 49 64 646 131 1439 42 501 80 1040 83 1170 2 102 0 117 -21 149 -12 21 -34 44 -48 54 -33 22 -1990 645 -2023 644 -14 0 -468 -141 -1009 -314z m1073 -21 c22 -8 402 -129 845 -270 443 -141 815 -262 828 -270 13 -8 32 -29 43 -47 19 -30 20 -43 15 -217 -6 -224 -99 -1390 -156 -1960 -6 -58 -13 -129 -16 -159 -6 -65 -23 -100 -67 -141 -17 -17 -367 -246 -777 -510 -535 -345 -753 -480 -773 -480 -16 0 -38 5 -50 12 -57 30 -1485 954 -1510 976 -61 57 -63 69 -111 612 -89 999 -141 1705 -134 1798 5 53 34 98 80 123 10 5 365 120 790 255 425 134 805 256 843 269 81 28 96 29 150 9z"
|
|
256
|
+
/>
|
|
257
|
+
<path
|
|
258
|
+
d="M2295 3870 c-17 -5 -228 -124 -470 -264 -360 -208 -442 -259 -453 -284 -15 -32 -12 -66 10 -94 13 -16 851 -502 897 -520 43 -16 106 -11 152 12 24 13 176 99 337 192 162 93 300 172 308 175 12 4 14 -55 12 -427 l-3 -432 -120 -70 c-66 -39 -221 -129 -345 -200 l-225 -130 -60 4 c-57 4 -76 13 -375 187 -173 100 -326 193 -340 207 l-25 24 -3 277 c-2 175 -7 282 -14 290 -6 7 -66 45 -135 84 -110 63 -127 70 -149 60 l-24 -11 0 -445 0 -446 23 -22 c12 -12 240 -148 507 -302 l485 -280 60 0 60 0 455 263 c250 145 474 274 496 287 23 14 46 37 53 52 8 21 11 188 9 620 -3 557 -4 592 -21 611 -27 29 -287 176 -309 175 -10 -1 -157 -81 -325 -179 -169 -97 -327 -186 -352 -197 -71 -31 -111 -20 -282 79 -143 83 -166 103 -153 137 3 9 74 55 157 103 188 109 210 113 316 59 l73 -36 137 78 c117 67 136 82 139 105 4 31 9 27 -233 166 -165 94 -211 110 -270 92z"
|
|
259
|
+
/>
|
|
260
|
+
</g>
|
|
261
|
+
</svg>
|
|
262
|
+
`,Tt=W`
|
|
263
|
+
<svg
|
|
264
|
+
version="1.0"
|
|
265
|
+
width="500.000000pt"
|
|
266
|
+
height="500.000000pt"
|
|
267
|
+
viewBox="0 0 500.000000 500.000000"
|
|
268
|
+
preserveAspectRatio="xMidYMid meet"
|
|
269
|
+
>
|
|
270
|
+
<g
|
|
271
|
+
transform="translate(0.000000,500.000000) scale(0.100000,-0.100000)"
|
|
272
|
+
fill="#000000"
|
|
273
|
+
stroke="none"
|
|
274
|
+
>
|
|
275
|
+
<path
|
|
276
|
+
d="M2465 4855 c-5 -2 -446 -142 -979 -312 -534 -169 -984 -317 -1000 -328 -17 -11 -41 -36 -54 -55 -24 -35 -24 -37 -18 -210 9 -274 84 -1236 170 -2176 37 -401 43 -430 103 -489 25 -24 1389 -912 1702 -1107 93 -59 125 -61 202 -15 30 18 429 275 888 572 647 418 840 547 862 578 15 21 32 62 38 90 16 83 148 1610 191 2202 11 160 21 342 23 405 2 104 0 118 -21 151 -12 21 -34 45 -49 54 -34 23 -1989 645 -2022 644 -14 0 -30 -2 -36 -4z m135 -345 c30 -11 393 -125 805 -255 413 -130 768 -242 791 -250 22 -9 54 -29 70 -46 l29 -30 -1 -182 c-1 -218 -36 -669 -135 -1747 -42 -461 -47 -488 -95 -532 -11 -9 -359 -235 -774 -503 -714 -460 -757 -486 -795 -483 -33 3 -167 85 -775 477 -404 260 -750 484 -768 498 -47 35 -70 89 -81 190 -25 219 -118 1328 -151 1781 -26 368 -26 467 0 509 10 18 29 39 42 47 13 8 374 126 803 261 429 135 812 257 850 270 75 27 95 26 185 -5z"
|
|
277
|
+
/>
|
|
278
|
+
<path
|
|
279
|
+
d="M2340 3816 c-252 -140 -776 -446 -797 -465 -17 -14 -23 -31 -23 -61 0 -30 6 -47 23 -62 26 -23 775 -457 862 -499 33 -16 76 -29 95 -29 48 0 90 22 440 224 l305 176 3 -427 c1 -235 -1 -430 -5 -434 -5 -4 -161 -96 -348 -204 l-340 -196 -60 3 c-58 4 -75 12 -388 192 -251 144 -331 195 -342 217 -12 22 -15 79 -15 291 0 145 -4 268 -8 275 -13 20 -253 153 -278 153 -13 0 -28 -9 -34 -19 -17 -32 -14 -843 4 -884 12 -28 75 -68 507 -317 l494 -285 65 0 65 0 495 286 c481 278 495 287 508 324 10 30 12 167 10 616 -3 548 -4 578 -22 598 -30 33 -297 183 -317 178 -9 -3 -138 -74 -286 -160 -393 -227 -401 -230 -466 -225 -45 4 -78 18 -200 89 -144 82 -164 101 -153 137 3 9 75 56 159 105 141 81 156 87 207 87 43 0 66 -7 105 -30 28 -16 60 -30 71 -30 23 0 236 119 268 150 34 33 13 54 -157 153 -291 169 -278 167 -447 73z"
|
|
280
|
+
/>
|
|
281
|
+
</g>
|
|
282
|
+
</svg>
|
|
283
|
+
`,Ot=W`
|
|
284
|
+
<svg
|
|
285
|
+
viewBox="0 0 423 62"
|
|
286
|
+
version="1.1"
|
|
287
|
+
xml:space="preserve"
|
|
288
|
+
style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"
|
|
289
|
+
>
|
|
290
|
+
<g transform="matrix(1,0,0,1,-45.4439,-231.396)">
|
|
291
|
+
<g transform="matrix(1,0,0,1,41.8553,292.5)">
|
|
292
|
+
<g>
|
|
293
|
+
<path
|
|
294
|
+
d="M25.484,0.536C36.161,0.536 47.828,-4.755 47.646,-17.047C47.646,-37.958 14.089,-31.047 14.177,-43.427C14.089,-47.646 18.036,-51.328 25.125,-51.328C31.318,-51.328 34.724,-50.068 39.302,-47.646C40.021,-47.286 40.828,-47.021 41.547,-47.021C43.88,-47.021 46.12,-48.995 46.12,-51.505C46.214,-53.391 45.047,-54.734 43.88,-55.453C39.75,-58.234 31.854,-61.104 25.125,-61.104C13.729,-61.104 3.589,-55.094 3.589,-42.979C3.589,-20.995 37.146,-27.906 37.146,-16.333C37.146,-11.932 32.214,-8.885 25.036,-9.062C19.474,-9.151 15.432,-11.036 11.667,-12.922C10.859,-13.37 9.87,-13.547 9.422,-13.547C6.911,-13.547 4.484,-11.484 4.396,-8.526C4.307,-6.729 5.385,-5.292 6.818,-4.307C10.766,-1.703 18.125,0.63 25.484,0.536Z"
|
|
295
|
+
style="fill:rgb(0,86,214);fill-rule:nonzero;"
|
|
296
|
+
/>
|
|
297
|
+
</g>
|
|
298
|
+
</g>
|
|
299
|
+
<g transform="matrix(1,0,0,1,111.569,292.5)">
|
|
300
|
+
<g>
|
|
301
|
+
<path
|
|
302
|
+
d="M48.901,-60.656C45.943,-60.656 43.609,-58.234 43.609,-55.365L43.609,-34.547L16.87,-34.547L16.87,-55.365C16.87,-58.234 14.536,-60.656 11.573,-60.656C8.703,-60.656 6.281,-58.234 6.281,-55.365L6.281,-5.292C6.281,-2.333 8.703,0 11.573,0C14.536,0 16.87,-2.333 16.87,-5.292L16.87,-24.943L43.609,-24.943L43.609,-5.292C43.609,-2.333 45.943,0 48.901,0C51.776,0 54.198,-2.333 54.198,-5.292L54.198,-55.365C54.198,-58.234 51.776,-60.656 48.901,-60.656Z"
|
|
303
|
+
style="fill:rgb(0,86,214);fill-rule:nonzero;"
|
|
304
|
+
/>
|
|
305
|
+
</g>
|
|
306
|
+
</g>
|
|
307
|
+
<g transform="matrix(1,0,0,1,190.435,292.5)">
|
|
308
|
+
<g>
|
|
309
|
+
<path
|
|
310
|
+
d="M11.573,0C14.536,0 16.87,-2.333 16.87,-5.292L16.87,-55.365C16.87,-58.234 14.536,-60.656 11.573,-60.656C8.703,-60.656 6.281,-58.234 6.281,-55.365L6.281,-5.292C6.281,-2.333 8.703,0 11.573,0Z"
|
|
311
|
+
style="fill:rgb(0,86,214);fill-rule:nonzero;"
|
|
312
|
+
/>
|
|
313
|
+
</g>
|
|
314
|
+
</g>
|
|
315
|
+
<g transform="matrix(1,0,0,1,232.067,292.5)">
|
|
316
|
+
<g>
|
|
317
|
+
<path
|
|
318
|
+
d="M25.125,-60.656L11.573,-60.656C8.703,-60.656 6.281,-58.234 6.281,-55.365L6.281,-5.292C6.281,-2.333 8.703,0 11.573,0C14.536,0 16.87,-2.333 16.87,-5.292L16.87,-23.151L25.125,-23.151C35.714,-23.151 44.328,-30.865 44.328,-41.906C44.328,-52.849 35.714,-60.656 25.125,-60.656ZM24.766,-32.844L16.87,-32.844L16.87,-50.969L24.766,-50.969C29.703,-50.969 33.74,-47.198 33.74,-41.906C33.74,-36.521 29.703,-32.844 24.766,-32.844Z"
|
|
319
|
+
style="fill:rgb(0,86,214);fill-rule:nonzero;"
|
|
320
|
+
/>
|
|
321
|
+
</g>
|
|
322
|
+
</g>
|
|
323
|
+
<g transform="matrix(1,0,0,1,298.418,292.5)">
|
|
324
|
+
<g>
|
|
325
|
+
<path
|
|
326
|
+
d="M54.198,-4.844L32.214,-58.417C31.583,-59.849 30.151,-60.839 28.536,-60.745C26.917,-60.839 25.396,-59.849 24.854,-58.417L2.87,-4.844C2.063,-2.87 3.052,-0.63 4.938,0.089C6.729,0.896 9.063,0.177 9.87,-1.974L15.255,-15.344L41.724,-15.344L47.109,-1.974C47.917,-0.089 50.161,0.99 52.135,0.089C54.016,-0.63 54.917,-2.964 54.198,-4.844ZM18.125,-22.432L28.536,-48.276L38.854,-22.432L18.125,-22.432Z"
|
|
327
|
+
style="fill:rgb(47,52,61);fill-rule:nonzero;"
|
|
328
|
+
/>
|
|
329
|
+
</g>
|
|
330
|
+
</g>
|
|
331
|
+
<g transform="matrix(1,0,0,1,373.874,292.5)">
|
|
332
|
+
<g>
|
|
333
|
+
<path
|
|
334
|
+
d="M10.318,0C12.474,0 14.177,-1.703 14.177,-3.859L14.177,-56.797C14.177,-58.865 12.474,-60.656 10.318,-60.656C8.167,-60.656 6.458,-58.865 6.458,-56.797L6.458,-3.859C6.458,-1.703 8.167,0 10.318,0Z"
|
|
335
|
+
style="fill:rgb(47,52,61);fill-rule:nonzero;"
|
|
336
|
+
/>
|
|
337
|
+
</g>
|
|
338
|
+
</g>
|
|
339
|
+
<g transform="matrix(1,0,0,1,412.904,292.5)">
|
|
340
|
+
<g>
|
|
341
|
+
<path
|
|
342
|
+
d="M24.854,-60.656L10.318,-60.656C8.167,-60.656 6.458,-58.865 6.458,-56.797L6.458,-3.859C6.458,-1.703 8.167,0 10.318,0L24.854,0C41.724,0 55.005,-12.38 55.005,-30.328C55.005,-48.187 41.724,-60.656 24.854,-60.656ZM24.854,-7.089L14.177,-7.089L14.177,-53.568L24.854,-53.568C37.417,-53.568 47.286,-44.057 47.286,-30.328C47.286,-16.51 37.417,-7.089 24.854,-7.089Z"
|
|
343
|
+
style="fill:rgb(47,52,61);fill-rule:nonzero;"
|
|
344
|
+
/>
|
|
345
|
+
</g>
|
|
346
|
+
</g>
|
|
347
|
+
<path
|
|
348
|
+
d="M255.854,234.453C247.292,234.453 240.354,241.391 240.354,249.953C240.354,258.51 247.292,265.453 255.854,265.453C264.417,265.453 271.354,258.51 271.354,249.953C271.354,241.391 264.417,234.453 255.854,234.453ZM253.01,257.911L246.188,251.089L248.458,248.813L253.01,253.365L263.25,243.125L265.521,245.401L253.01,257.911Z"
|
|
349
|
+
style="fill:rgb(0,86,214);fill-rule:nonzero;"
|
|
350
|
+
/>
|
|
351
|
+
<path
|
|
352
|
+
d="M270.385,238.443L256.297,233.974C256.005,233.88 255.698,233.88 255.406,233.974L241.318,238.443C240.745,238.599 240.354,239.12 240.354,239.714C240.552,244.578 241.917,259.135 241.917,259.135C241.958,259.693 242.26,260.193 242.729,260.5L255.365,268.646C255.661,268.833 256.042,268.833 256.339,268.646L268.974,260.5C269.443,260.193 269.745,259.693 269.786,259.135C269.786,259.135 271.151,244.578 271.349,239.714C271.349,239.12 270.958,238.599 270.385,238.443"
|
|
353
|
+
style="fill:rgb(0,86,214);fill-rule:nonzero;"
|
|
354
|
+
/>
|
|
355
|
+
<path
|
|
356
|
+
d="M266.224,245.536C266.167,245.427 266.094,245.323 265.938,245.24L263.719,243.922C263.688,243.901 263.656,243.885 263.62,243.88C263.609,243.875 263.599,243.875 263.589,243.875C263.563,243.87 263.542,243.865 263.516,243.865C263.448,243.87 263.385,243.885 263.328,243.922L258.339,246.896L258.333,246.885L257.932,247.125C257.448,247.417 256.849,247.417 256.365,247.125L254.182,245.823C254.063,245.755 253.984,245.62 253.984,245.474C253.984,245.328 254.063,245.198 254.182,245.125L256.365,243.823C256.849,243.536 257.448,243.536 257.932,243.823L258.458,244.135C258.578,244.208 258.724,244.208 258.849,244.135L260.88,242.927C261,242.854 261.073,242.724 261.073,242.578C261.073,242.432 261,242.297 260.88,242.224L257.932,240.469C257.448,240.182 256.849,240.182 256.365,240.469L249.141,244.776C248.62,245.083 248.62,245.865 249.141,246.177L256.365,250.479C256.849,250.771 257.448,250.771 257.932,250.479L263.516,247.151L263.516,254.734L261.719,255.807L257.932,258.073C257.813,258.141 257.682,258.198 257.547,258.234C257.151,258.344 256.724,258.286 256.365,258.073L251.172,254.979C250.927,254.833 250.781,254.563 250.781,254.276L250.781,249.854C250.781,249.714 250.703,249.578 250.583,249.505L248.552,248.297C248.432,248.224 248.281,248.224 248.161,248.297C248.042,248.37 247.964,248.5 247.964,248.646L247.964,255.953C247.964,256.245 248.115,256.51 248.359,256.656L256.365,261.427C256.599,261.568 256.865,261.641 257.135,261.641L257.141,261.641C257.177,261.641 257.219,261.641 257.255,261.635C257.286,261.635 257.318,261.635 257.344,261.63C257.385,261.625 257.427,261.615 257.464,261.604C257.495,261.599 257.521,261.599 257.547,261.589C257.589,261.578 257.63,261.563 257.672,261.547C257.698,261.536 257.719,261.531 257.74,261.521C257.807,261.495 257.87,261.464 257.932,261.427L264.839,257.307L265.932,256.667C266.177,256.526 266.328,256.255 266.328,255.964L266.328,245.943C266.328,245.797 266.292,245.656 266.224,245.536"
|
|
357
|
+
style="fill:white;fill-rule:nonzero;"
|
|
358
|
+
/>
|
|
359
|
+
<path
|
|
360
|
+
d="M257.911,238.047C257.677,237.911 257.417,237.833 257.146,237.833C256.88,237.833 256.615,237.911 256.38,238.047L246.734,243.797C246.25,244.089 245.953,244.62 245.953,245.198L245.953,256.698C245.953,257.276 246.25,257.807 246.734,258.094L256.38,263.844C256.62,263.99 256.885,264.063 257.156,264.063C257.432,264.063 257.698,263.99 257.932,263.849L267.536,258.12C268.021,257.833 268.323,257.302 268.323,256.724L268.323,253.401C268.318,253.255 268.396,253.125 268.516,253.052L270.563,251.833C270.682,251.76 270.828,251.76 270.953,251.833C271.073,251.906 271.146,252.036 271.146,252.182L271.146,258.37C271.146,258.635 271.083,258.896 270.964,259.13C270.932,259.281 270.771,259.458 270.542,259.646C270.536,259.651 270.531,259.651 270.526,259.656C269.948,260.12 268.995,260.599 268.823,260.703L257.932,267.193C257.693,267.339 257.411,267.411 257.13,267.411L257.12,267.411L257.12,267.406C256.859,267.401 256.604,267.328 256.38,267.193L243.927,259.771C243.443,259.479 243.146,258.948 243.146,258.37L243.146,243.526C243.146,243.266 243.177,243 243.286,242.776C243.302,242.719 243.453,242.432 243.766,242.198C243.885,242.12 244.089,242.01 244.286,241.891L256.349,234.703C256.589,234.557 256.865,234.484 257.146,234.49C257.427,234.484 257.703,234.557 257.948,234.703L269.078,241.339C269.104,241.354 269.12,241.37 269.146,241.391L269.286,241.474C269.661,241.682 270.255,241.995 270.578,242.25L270.604,242.271C270.609,242.271 270.615,242.276 270.62,242.276C270.63,242.286 270.635,242.297 270.646,242.307C270.766,242.411 270.865,242.531 270.943,242.661C270.948,242.667 270.948,242.667 270.948,242.672C271.078,242.896 271.146,243.151 271.146,243.411L271.146,248.849C271.146,248.995 271.073,249.125 270.953,249.198L268.906,250.417C268.786,250.49 268.635,250.49 268.516,250.417C268.396,250.344 268.318,250.214 268.318,250.068L268.318,245.167C268.318,244.589 268.021,244.052 267.536,243.766L257.911,238.047Z"
|
|
361
|
+
style="fill:rgb(0,86,214);fill-rule:nonzero;"
|
|
362
|
+
/>
|
|
363
|
+
</g>
|
|
364
|
+
</svg>
|
|
365
|
+
`,Ut=W`
|
|
366
|
+
<svg
|
|
367
|
+
version="1.0"
|
|
368
|
+
viewBox="0 0 500.000000 500.000000"
|
|
369
|
+
preserveAspectRatio="xMidYMid meet"
|
|
370
|
+
>
|
|
371
|
+
<g
|
|
372
|
+
transform="translate(0.000000,500.000000) scale(0.100000,-0.100000)"
|
|
373
|
+
fill="#0056d6"
|
|
374
|
+
stroke="none"
|
|
375
|
+
>
|
|
376
|
+
<path
|
|
377
|
+
d="M2157 4460 c-66 -17 -120 -51 -194 -121 -84 -82 -151 -115 -255 -129 -94 -12 -155 -38 -213 -91 -56 -52 -90 -107 -106 -174 -6 -27 -25 -76 -42 -108 -30 -57 -51 -78 -167 -170 -39 -31 -64 -61 -88 -108 -42 -81 -49 -147 -29 -264 18 -109 10 -179 -28 -255 -45 -89 -56 -131 -56 -212 -1 -93 18 -141 96 -242 69 -91 85 -135 94 -271 9 -127 28 -180 87 -245 46 -50 87 -78 167 -109 78 -32 146 -96 190 -178 46 -87 106 -149 176 -182 51 -24 68 -26 199 -28 138 -1 145 -3 205 -32 34 -17 82 -44 107 -61 25 -16 74 -37 110 -46 94 -24 171 -8 281 57 112 66 141 73 276 65 92 -5 121 -3 171 12 85 27 147 74 192 146 94 149 120 173 237 222 175 72 236 160 253 361 10 119 33 174 105 256 116 132 132 265 53 428 -40 83 -49 194 -23 299 33 133 -6 256 -110 345 -144 124 -170 161 -200 276 -44 169 -146 261 -320 289 -102 16 -148 41 -239 128 -95 92 -115 105 -186 126 -75 22 -137 20 -226 -9 -105 -34 -200 -34 -291 1 -76 28 -169 38 -226 24z m458 -430 c50 -6 126 -19 170 -31 100 -25 279 -112 366 -178 82 -62 202 -188 252 -264 248 -375 247 -855 -3 -1228 -54 -80 -206 -232 -285 -284 -136 -90 -286 -150 -439 -176 -105 -18 -351 -6 -451 21 -478 129 -815 565 -815 1055 0 484 328 918 795 1050 144 41 265 51 410 35z"
|
|
378
|
+
/>
|
|
379
|
+
<path
|
|
380
|
+
d="M3045 3470 c-16 -4 -39 -11 -50 -18 -11 -6 -155 -159 -320 -341 -165 -181 -305 -330 -310 -330 -6 -1 -73 51 -150 115 -77 64 -156 123 -175 131 -67 29 -145 5 -194 -61 -25 -33 -29 -119 -7 -160 14 -26 398 -346 463 -386 46 -28 115 -27 159 3 37 25 719 763 750 812 23 36 25 114 5 153 -32 62 -104 96 -171 82z"
|
|
381
|
+
/>
|
|
382
|
+
<path
|
|
383
|
+
d="M1445 1778 c-26 -78 -306 -1021 -303 -1023 2 -2 109 27 238 66 129 38 240 68 246 67 7 -2 83 -87 169 -190 87 -104 160 -188 164 -188 3 0 64 194 135 431 l129 431 -29 23 c-51 42 -110 56 -205 49 -210 -16 -386 80 -482 263 -40 76 -54 93 -62 71z"
|
|
384
|
+
/>
|
|
385
|
+
<path
|
|
386
|
+
d="M3460 1677 c-95 -174 -295 -278 -481 -249 -41 6 -83 7 -114 1 -52 -10 -145 -63 -145 -84 0 -14 236 -802 247 -826 6 -13 45 28 168 177 88 106 166 193 173 193 7 1 117 -30 244 -68 128 -39 234 -68 237 -65 4 4 -275 945 -288 971 -4 8 -21 -13 -41 -50z"
|
|
387
|
+
/>
|
|
388
|
+
</g>
|
|
389
|
+
</svg>
|
|
390
|
+
`,Nt=W`
|
|
391
|
+
<svg
|
|
392
|
+
version="1.0"
|
|
393
|
+
viewBox="0 0 500.000000 500.000000"
|
|
394
|
+
preserveAspectRatio="xMidYMid meet"
|
|
395
|
+
>
|
|
396
|
+
<g
|
|
397
|
+
transform="translate(0.000000,500.000000) scale(0.100000,-0.100000)"
|
|
398
|
+
fill="#0056d6"
|
|
399
|
+
stroke="none"
|
|
400
|
+
>
|
|
401
|
+
<path
|
|
402
|
+
d="M2287 4490 c-650 -102 -1142 -559 -1295 -1205 -24 -100 -26 -128 -26 -315 0 -173 4 -220 22 -303 69 -311 206 -580 478 -940 185 -243 541 -680 814 -996 63 -74 133 -156 155 -182 29 -36 47 -49 65 -48 20 0 77 62 297 322 921 1092 1113 1383 1215 1844 32 143 32 421 0 580 -55 275 -184 539 -359 733 -231 256 -496 411 -843 491 -76 17 -133 22 -280 25 -102 1 -211 -1 -243 -6z m360 -241 c206 -23 416 -101 591 -221 102 -70 264 -233 330 -333 104 -157 177 -334 208 -508 25 -138 23 -355 -4 -484 -111 -516 -496 -902 -1012 -1015 -140 -31 -396 -30 -535 1 -382 86 -708 339 -883 686 -52 104 -95 228 -118 340 -25 126 -26 378 -1 495 56 263 175 481 361 666 291 289 659 418 1063 373z"
|
|
403
|
+
/>
|
|
404
|
+
<path
|
|
405
|
+
d="M2400 4098 c-502 -34 -925 -417 -1027 -927 -22 -111 -19 -316 7 -441 93 -457 446 -806 907 -897 115 -22 319 -22 428 1 292 63 533 216 710 451 67 88 151 265 182 380 24 90 27 117 27 280 1 206 -11 275 -75 442 -79 203 -244 406 -429 525 -114 74 -167 100 -281 136 -154 50 -272 63 -449 50z m248 -277 c50 -29 92 -56 92 -59 0 -7 -684 -394 -705 -400 -16 -4 -268 118 -260 126 4 4 167 100 363 213 l357 207 30 -18 c17 -9 72 -41 123 -69z m428 -243 c79 -45 144 -85 144 -88 0 -3 -162 -86 -360 -182 l-360 -177 -140 66 c-78 37 -137 70 -133 74 13 13 687 389 697 389 5 0 73 -37 152 -82z m-1266 -303 l130 -65 0 -220 0 -219 79 -61 c44 -33 82 -60 85 -60 3 0 7 107 8 239 l3 238 148 -70 147 -70 0 -464 c0 -254 -2 -463 -4 -463 -3 0 -168 94 -368 209 l-363 209 -3 431 c-1 237 0 431 3 431 3 0 64 -29 135 -65z m1520 -363 l0 -429 -369 -211 c-203 -117 -372 -212 -375 -212 -3 0 -5 208 -4 462 l3 462 364 178 c201 98 368 178 373 178 4 0 8 -193 8 -428z"
|
|
406
|
+
/>
|
|
407
|
+
</g>
|
|
408
|
+
</svg>
|
|
409
|
+
`,Rt=W`
|
|
410
|
+
<svg
|
|
411
|
+
version="1.0"
|
|
412
|
+
viewBox="0 0 500.000000 500.000000"
|
|
413
|
+
preserveAspectRatio="xMidYMid meet"
|
|
414
|
+
>
|
|
415
|
+
<g
|
|
416
|
+
transform="translate(0.000000,500.000000) scale(0.100000,-0.100000)"
|
|
417
|
+
fill="#0056d6"
|
|
418
|
+
stroke="none"
|
|
419
|
+
>
|
|
420
|
+
<path
|
|
421
|
+
d="M1314 3708 c-92 -106 -174 -201 -182 -210 -14 -17 17 -18 636 -18 l652 0 0 210 0 210 -469 0 -469 0 -168 -192z"
|
|
422
|
+
/>
|
|
423
|
+
<path
|
|
424
|
+
d="M2570 3690 l0 -210 645 0 c355 0 645 2 645 5 0 7 -257 303 -319 368 l-45 47 -463 0 -463 0 0 -210z"
|
|
425
|
+
/>
|
|
426
|
+
<path
|
|
427
|
+
d="M1100 3170 l0 -160 83 0 82 0 115 -96 c63 -52 121 -103 128 -112 28 -36 15 -74 -58 -164 -68 -84 -70 -89 -70 -142 l0 -55 160 -3 161 -3 89 -91 c75 -76 90 -96 90 -123 0 -40 -31 -71 -71 -71 -25 0 -45 14 -103 70 l-73 70 -154 0 -155 0 -109 -44 -110 -44 -3 -185 -2 -185 121 -4 c113 -3 122 -5 140 -27 26 -32 24 -73 -4 -99 -21 -20 -34 -22 -140 -22 l-117 0 0 -285 0 -285 1395 0 1395 0 0 288 0 288 -70 69 -70 69 0 109 0 108 -75 79 c-45 47 -75 87 -75 100 0 13 30 53 75 100 l75 79 0 108 0 109 70 69 c69 69 70 70 70 122 l0 53 -110 0 c-78 0 -119 4 -139 15 -48 24 -55 72 -16 110 23 24 30 25 145 25 l120 0 0 160 0 160 -465 0 -465 0 0 -439 c0 -428 0 -439 -21 -465 -13 -17 -30 -26 -49 -26 -17 0 -102 40 -214 101 l-185 101 -184 -101 c-195 -107 -229 -117 -263 -80 -18 20 -19 45 -22 465 l-3 444 -459 0 -460 0 0 -160z m2429 -1355 c48 -24 55 -72 16 -110 -24 -25 -25 -25 -227 -25 -221 0 -239 4 -252 56 -8 31 14 71 47 84 12 5 104 9 205 9 142 1 189 -2 211 -14z m105 -356 c51 -23 55 -103 7 -128 -13 -7 -130 -11 -328 -11 -297 0 -310 1 -331 20 -32 30 -30 82 4 109 26 20 38 21 325 21 200 0 306 -4 323 -11z"
|
|
428
|
+
/>
|
|
429
|
+
<path
|
|
430
|
+
d="M2170 2965 c0 -201 2 -365 5 -365 2 0 66 34 142 76 76 41 150 78 165 81 20 4 55 -10 145 -60 65 -35 133 -72 151 -81 l32 -17 0 366 0 365 -320 0 -320 0 0 -365z"
|
|
431
|
+
/>
|
|
432
|
+
</g>
|
|
433
|
+
</svg>
|
|
434
|
+
`,jt=W`
|
|
435
|
+
<svg version="1.0" viewBox="0 0 500 500" preserveAspectRatio="xMidYMid meet">
|
|
436
|
+
<g
|
|
437
|
+
transform="translate(50.000000,450.000000) scale(0.080000,-0.080000)"
|
|
438
|
+
fill="#0056d6"
|
|
439
|
+
stroke="none"
|
|
440
|
+
>
|
|
441
|
+
<path
|
|
442
|
+
d="M2434 4491 c-141 -36 -234 -150 -234 -287 l0 -53 -42 -11 c-232 -59 -452 -180 -626 -345 -212 -200 -345 -433 -414 -725 -18 -75 -21 -135 -28 -515 -7 -383 -10 -441 -29 -527 -41 -187 -98 -323 -233 -551 -85 -145 -99 -196 -74 -280 12 -43 29 -70 61 -102 80 -81 -44 -75 1685 -75 1729 0 1605 -6 1685 75 32 32 49 59 61 102 25 85 11 135 -77 285 -137 231 -188 354 -230 547 -18 84 -22 148 -29 511 -7 360 -11 427 -28 508 l-21 93 93 92 c75 75 100 108 134 178 95 193 96 406 3 594 -86 172 -214 281 -406 346 -101 34 -279 34 -380 0 -130 -44 -229 -108 -315 -204 -34 -38 -37 -39 -70 -29 -19 6 -54 16 -77 22 l-43 11 0 57 c0 105 -68 211 -165 257 -58 27 -150 39 -201 26z m1166 -781 l0 -360 -90 0 -90 0 0 240 c0 227 -1 241 -20 260 -14 14 -33 20 -65 20 l-45 0 0 40 c0 30 5 42 18 47 64 22 134 59 158 84 24 25 35 29 81 29 l53 0 0 -360z"
|
|
443
|
+
/>
|
|
444
|
+
<path
|
|
445
|
+
d="M2080 840 c-16 -30 -4 -70 39 -137 70 -109 179 -180 312 -204 136 -24 285 25 388 128 71 72 119 163 105 201 l-9 27 -412 3 c-408 2 -412 2 -423 -18z"
|
|
446
|
+
/>
|
|
447
|
+
</g>
|
|
448
|
+
</svg>
|
|
449
|
+
`;var qt=Object.defineProperty,It=Object.getOwnPropertyDescriptor,Wt=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?It(e,i):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&qt(e,i,s),s};let Ht=class extends at{constructor(){super(...arguments),this.active=!1}handleClosePopup(){const t=new Event("close");this.dispatchEvent(t)}render(){return W`
|
|
203
450
|
<div class=${`shipaid-popup ${this.active&&"active"}`}>
|
|
204
451
|
<button
|
|
205
452
|
type="button"
|
|
206
453
|
class="popup-close"
|
|
207
454
|
@click=${this.handleClosePopup}
|
|
208
455
|
>
|
|
209
|
-
${
|
|
456
|
+
${St("learn-more-popup.close")}
|
|
210
457
|
</button>
|
|
211
|
-
<
|
|
212
|
-
<p>
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
class="popup-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
<
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
458
|
+
<div class="popup-logo">${Ot}</div>
|
|
459
|
+
<p class="popup-title">${St("learn-more-popup.title")}</p>
|
|
460
|
+
<div class="popup-disclaimer-subtitle">
|
|
461
|
+
<div class="popup-icon">${Ut}</div>
|
|
462
|
+
<p>${St("learn-more-popup.disclaimer.subtitle-enable")}</p>
|
|
463
|
+
</div>
|
|
464
|
+
<div class="popup-disclaimer-subtitle">
|
|
465
|
+
<div class="popup-icon">${Nt}</div>
|
|
466
|
+
<p>${St("learn-more-popup.disclaimer.subtitle-monitor")}</p>
|
|
467
|
+
</div>
|
|
468
|
+
<div class="popup-disclaimer-subtitle">
|
|
469
|
+
<div class="popup-icon-b">${Rt}</div>
|
|
470
|
+
<p>${St("learn-more-popup.disclaimer.subtitle-notify")}</p>
|
|
471
|
+
</div>
|
|
472
|
+
<div class="popup-disclaimer-subtitle">
|
|
473
|
+
<div class="popup-icon-bell">${jt}</div>
|
|
474
|
+
<p>
|
|
475
|
+
${St("learn-more-popup.disclaimer.subtitle-resolution")}
|
|
476
|
+
</p>
|
|
477
|
+
</div>
|
|
478
|
+
<p class="popup-disclaimer">
|
|
479
|
+
${St("learn-more-popup.disclaimer.text")}
|
|
480
|
+
</p>
|
|
481
|
+
<hr class="popup-divider" />
|
|
482
|
+
<div class="popup-footer">
|
|
483
|
+
<div class="footer-links">
|
|
484
|
+
<a
|
|
485
|
+
href="https://www.shipaid.com/terms-of-service"
|
|
486
|
+
target="_blank"
|
|
487
|
+
rel="noreferrer"
|
|
488
|
+
>
|
|
489
|
+
${St("learn-more-popup.links.terms")}
|
|
490
|
+
</a>
|
|
491
|
+
<a
|
|
492
|
+
href="https://www.shipaid.com/privacy-policy"
|
|
493
|
+
target="_blank"
|
|
494
|
+
rel="noreferrer"
|
|
495
|
+
>
|
|
496
|
+
${St("learn-more-popup.links.privacy")}
|
|
497
|
+
</a>
|
|
498
|
+
</div>
|
|
499
|
+
<div class="footer-date">
|
|
500
|
+
<p>ShipAid © ${(new Date).getFullYear()}</p>
|
|
501
|
+
</div>
|
|
502
|
+
</div>
|
|
503
|
+
</div>
|
|
504
|
+
</div>
|
|
246
505
|
</div>
|
|
247
506
|
</div>
|
|
248
507
|
</div>
|
|
249
|
-
`}};
|
|
508
|
+
`}};Ht.styles=Mt,Wt([r({type:Boolean,attribute:!0})],Ht.prototype,"active",2),Ht=Wt([i("shipaid-popup-learn-more")],Ht);const Dt="Loading ShipAid Widget...",Vt="Delivery Guarantee",Bt="in case of Loss, Damage or Theft",Ft={button:"Powered by"},Zt={add:"Add",remove:"Remove",loading:"Loading..."},Yt={loading:Dt,title:Vt,description:Bt,footer:Ft,actions:Zt,"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"}}},Gt=Object.freeze(Object.defineProperty({__proto__:null,actions:Zt,default:Yt,description:Bt,footer:Ft,loading:Dt,title:Vt},Symbol.toStringTag,{value:"Module"})),Jt=h`
|
|
250
509
|
:host {
|
|
251
510
|
--shipaid-primary: #002bd6;
|
|
252
511
|
--shipaid-secondary: #0076ff;
|
|
@@ -256,19 +515,22 @@ function Pt(t,e,i){return t?e():null==i?void 0:i()}const zt=h`
|
|
|
256
515
|
--shipaid-text-grey: #aaaaaa;
|
|
257
516
|
--shipaid-light-grey: #ebecf0;
|
|
258
517
|
--shipaid-font: "Lato", sans-serif;
|
|
518
|
+
--shipaid-font-xxs: 11px;
|
|
259
519
|
--shipaid-font-xs: 12px;
|
|
260
520
|
--shipaid-font-sm: 14px;
|
|
261
521
|
--shipaid-font-base: 16px;
|
|
262
522
|
--shipaid-font-lg: 18px;
|
|
263
523
|
--shipaid-font-regular: 400;
|
|
264
524
|
--shipaid-font-heavy: 700;
|
|
525
|
+
--shipaid-prompt-badge: #f2f7ff;
|
|
265
526
|
}
|
|
266
527
|
|
|
267
528
|
* {
|
|
268
529
|
font-family: var(--shipaid-font);
|
|
269
530
|
}
|
|
270
531
|
|
|
271
|
-
p,
|
|
532
|
+
p,
|
|
533
|
+
a {
|
|
272
534
|
font-weight: var(--shipaid-font-regular);
|
|
273
535
|
font-size: var(--shipaid-font-base);
|
|
274
536
|
color: var(--shipaid-text);
|
|
@@ -281,7 +543,7 @@ function Pt(t,e,i){return t?e():null==i?void 0:i()}const zt=h`
|
|
|
281
543
|
|
|
282
544
|
/* Widget */
|
|
283
545
|
.shipaid-prompt {
|
|
284
|
-
width: var(--shipaid-prompt-width,
|
|
546
|
+
width: var(--shipaid-prompt-width, 300px);
|
|
285
547
|
max-width: 100%;
|
|
286
548
|
display: flex;
|
|
287
549
|
flex-direction: column;
|
|
@@ -308,7 +570,7 @@ function Pt(t,e,i){return t?e():null==i?void 0:i()}const zt=h`
|
|
|
308
570
|
.shipaid-prompt .prompt-product {
|
|
309
571
|
display: flex;
|
|
310
572
|
flex-direction: row;
|
|
311
|
-
gap:
|
|
573
|
+
gap: 1rem;
|
|
312
574
|
margin-top: 1rem;
|
|
313
575
|
}
|
|
314
576
|
.shipaid-prompt .prompt-product .prompt-product-image {
|
|
@@ -319,18 +581,18 @@ function Pt(t,e,i){return t?e():null==i?void 0:i()}const zt=h`
|
|
|
319
581
|
width: auto;
|
|
320
582
|
}
|
|
321
583
|
.shipaid-prompt
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
584
|
+
.prompt-product
|
|
585
|
+
.prompt-product-details
|
|
586
|
+
.prompt-product-details-title {
|
|
325
587
|
text-align: left;
|
|
326
|
-
font-size: var(--shipaid-font-
|
|
588
|
+
font-size: var(--shipaid-font-lg);
|
|
327
589
|
font-weight: var(--shipaid-font-heavy);
|
|
328
590
|
}
|
|
329
591
|
.shipaid-prompt
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
font-size: var(--shipaid-font-
|
|
592
|
+
.prompt-product
|
|
593
|
+
.prompt-product-details
|
|
594
|
+
.prompt-product-details-description {
|
|
595
|
+
font-size: var(--shipaid-font-xxs);
|
|
334
596
|
margin-top: var(--shipaid-prompt-product-description-margin, 0.65rem);
|
|
335
597
|
}
|
|
336
598
|
.shipaid-prompt .prompt-product .prompt-product-actions {
|
|
@@ -364,7 +626,7 @@ function Pt(t,e,i){return t?e():null==i?void 0:i()}const zt=h`
|
|
|
364
626
|
.shipaid-prompt .prompt-footer {
|
|
365
627
|
display: flex;
|
|
366
628
|
flex-direction: row;
|
|
367
|
-
justify-content: flex-
|
|
629
|
+
justify-content: flex-start;
|
|
368
630
|
align-items: center;
|
|
369
631
|
}
|
|
370
632
|
.shipaid-prompt .prompt-footer .prompt-footer-about {
|
|
@@ -378,7 +640,10 @@ function Pt(t,e,i){return t?e():null==i?void 0:i()}const zt=h`
|
|
|
378
640
|
margin-left: 0.5rem;
|
|
379
641
|
}
|
|
380
642
|
.shipaid-prompt .prompt-footer .prompt-footer-badge {
|
|
381
|
-
background-color: var(
|
|
643
|
+
background-color: var(
|
|
644
|
+
--shipaid-prompt-badge-background-color,
|
|
645
|
+
var(--shipaid-prompt-badge)
|
|
646
|
+
);
|
|
382
647
|
color: var(--shipaid-prompt-badge-text-color, var(--shipaid-text));
|
|
383
648
|
padding: 0.5rem 1.5rem;
|
|
384
649
|
border-radius: 30px;
|
|
@@ -392,187 +657,61 @@ function Pt(t,e,i){return t?e():null==i?void 0:i()}const zt=h`
|
|
|
392
657
|
.shipaid-prompt .prompt-footer .prompt-footer-badge svg {
|
|
393
658
|
height: 9px;
|
|
394
659
|
}
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
</g>
|
|
401
|
-
</svg>
|
|
402
|
-
`,Bt=W`
|
|
403
|
-
<svg
|
|
404
|
-
viewBox="0 0 384 383.999986"
|
|
405
|
-
preserveAspectRatio="xMidYMid meet"
|
|
406
|
-
>
|
|
407
|
-
<defs>
|
|
408
|
-
<clipPath id="id1">
|
|
409
|
-
<path
|
|
410
|
-
d="M 22.078125 0.753906 L 361.777344 0.753906 L 361.777344 383.4375 L 22.078125 383.4375 Z M 22.078125 0.753906 "
|
|
411
|
-
clip-rule="nonzero"
|
|
412
|
-
/>
|
|
413
|
-
</clipPath>
|
|
414
|
-
<clipPath id="id2">
|
|
415
|
-
<path
|
|
416
|
-
d="M 37.261719 0 L 347.011719 0 L 347.011719 353 L 37.261719 353 Z M 37.261719 0 "
|
|
417
|
-
clip-rule="nonzero"
|
|
418
|
-
/>
|
|
419
|
-
</clipPath>
|
|
420
|
-
</defs>
|
|
421
|
-
<g clip-path="url(#id1)">
|
|
422
|
-
<path
|
|
423
|
-
fill="#0056d6"
|
|
424
|
-
d="M 351.222656 50.539062 L 196.8125 1.5 C 193.632812 0.484375 190.222656 0.484375 187.042969 1.5 L 32.632812 50.539062 C 26.390625 52.28125 22.078125 57.988281 22.078125 64.484375 C 24.226562 117.867188 39.199219 277.527344 39.199219 277.527344 C 39.679688 283.640625 42.972656 289.175781 48.125 292.507812 L 186.605469 381.867188 C 189.839844 383.957031 194.015625 383.957031 197.253906 381.867188 L 335.730469 292.507812 C 340.882812 289.175781 344.175781 283.640625 344.65625 277.527344 C 344.65625 277.527344 359.632812 117.867188 361.777344 64.484375 C 361.777344 57.988281 357.46875 52.28125 351.222656 50.539062 "
|
|
425
|
-
fill-opacity="1"
|
|
426
|
-
fill-rule="nonzero"
|
|
427
|
-
/>
|
|
428
|
-
</g>
|
|
429
|
-
<path
|
|
430
|
-
fill="#ffffff"
|
|
431
|
-
d="M 292.539062 118.640625 C 291.910156 117.488281 291.085938 116.351562 289.371094 115.484375 L 264.84375 101.324219 C 264.503906 101.132812 264.140625 100.984375 263.753906 100.886719 C 263.632812 100.855469 263.511719 100.855469 263.378906 100.835938 C 263.125 100.792969 262.871094 100.746094 262.617188 100.75 L 262.570312 100.746094 L 262.570312 100.757812 C 261.84375 100.773438 261.128906 100.96875 260.5 101.328125 L 205.3125 133.175781 L 205.265625 133.078125 L 200.8125 135.65625 C 195.441406 138.75 188.832031 138.75 183.460938 135.65625 L 159.335938 121.738281 C 158 120.960938 157.171875 119.53125 157.171875 117.980469 C 157.171875 116.429688 158 115 159.335938 114.222656 L 183.460938 100.3125 C 188.832031 97.214844 195.441406 97.214844 200.8125 100.3125 L 206.621094 103.664062 C 207.964844 104.4375 209.609375 104.4375 210.953125 103.664062 L 233.421875 90.703125 C 234.765625 89.929688 235.585938 88.5 235.585938 86.949219 C 235.585938 85.402344 234.765625 83.96875 233.421875 83.195312 L 200.8125 64.375 C 195.441406 61.28125 188.832031 61.28125 183.460938 64.375 L 103.578125 110.472656 C 97.796875 113.8125 97.796875 122.148438 103.578125 125.484375 L 183.460938 171.582031 C 188.832031 174.679688 195.441406 174.679688 200.8125 171.582031 L 262.570312 135.945312 L 262.570312 217.125 L 242.726562 228.609375 L 200.8125 252.867188 C 199.480469 253.628906 198.066406 254.210938 196.589844 254.609375 C 192.160156 255.785156 187.441406 255.15625 183.460938 252.867188 L 126.035156 219.734375 C 123.351562 218.1875 121.699219 215.320312 121.699219 212.226562 L 121.699219 164.90625 C 121.699219 163.359375 120.871094 161.921875 119.53125 161.160156 L 97.070312 148.183594 C 95.726562 147.410156 94.074219 147.410156 92.730469 148.183594 C 91.390625 148.957031 90.5625 150.394531 90.5625 151.945312 L 90.5625 230.195312 C 90.5625 233.292969 92.21875 236.144531 94.902344 237.703125 L 183.460938 288.808594 C 186.0625 290.308594 189.015625 291.09375 192.015625 291.117188 L 192.078125 291.117188 C 192.5 291.117188 192.921875 291.070312 193.347656 291.046875 C 193.671875 291.019531 194 291.019531 194.328125 290.984375 C 194.773438 290.925781 195.222656 290.816406 195.65625 290.730469 C 195.960938 290.660156 196.261719 290.621094 196.554688 290.550781 C 197.039062 290.429688 197.496094 290.246094 197.957031 290.078125 C 198.222656 289.980469 198.476562 289.921875 198.71875 289.824219 C 199.433594 289.535156 200.132812 289.195312 200.800781 288.808594 L 277.210938 244.71875 L 289.320312 237.851562 C 292.03125 236.3125 293.714844 233.4375 293.714844 230.316406 L 293.714844 122.980469 C 293.714844 121.433594 293.289062 119.941406 292.539062 118.640625 "
|
|
432
|
-
fill-opacity="1"
|
|
433
|
-
fill-rule="nonzero"
|
|
434
|
-
/>
|
|
435
|
-
<g clip-path="url(#id2)">
|
|
436
|
-
<path
|
|
437
|
-
fill="#0056d6"
|
|
438
|
-
d="M 200.59375 38.453125 C 198.015625 36.96875 195.113281 36.175781 192.136719 36.148438 C 189.171875 36.175781 186.257812 36.972656 183.679688 38.453125 L 76.964844 100.03125 C 71.613281 103.121094 68.316406 108.828125 68.3125 115.003906 L 68.3125 238.167969 C 68.3125 244.347656 71.609375 250.054688 76.964844 253.140625 L 183.679688 314.714844 C 186.292969 316.226562 189.246094 317.023438 192.257812 317.035156 C 195.269531 317.023438 198.234375 316.226562 200.847656 314.726562 L 307.09375 253.417969 C 312.441406 250.332031 315.746094 244.625 315.746094 238.445312 L 315.746094 202.859375 C 315.734375 201.308594 316.570312 199.882812 317.898438 199.109375 L 340.527344 186.0625 C 341.855469 185.285156 343.515625 185.285156 344.847656 186.0625 C 346.1875 186.835938 347.011719 188.261719 347.011719 189.808594 L 347.011719 256.089844 C 347 258.917969 346.296875 261.699219 344.96875 264.191406 C 344.628906 265.824219 342.847656 267.746094 340.332031 269.71875 C 340.285156 269.765625 340.210938 269.8125 340.152344 269.863281 C 333.761719 274.832031 323.1875 279.960938 321.3125 281.046875 L 200.847656 350.558594 C 198.148438 352.105469 195.078125 352.902344 191.96875 352.867188 L 191.835938 352.867188 L 191.835938 352.855469 C 188.964844 352.78125 186.160156 351.984375 183.679688 350.558594 L 45.914062 271.058594 C 40.558594 267.976562 37.261719 262.269531 37.261719 256.089844 L 37.261719 97.09375 C 37.261719 94.320312 37.613281 91.492188 38.832031 89.097656 C 39 88.476562 40.667969 85.421875 44.109375 82.910156 C 45.40625 82.039062 47.699219 80.863281 49.847656 79.621094 L 183.292969 2.625 C 185.980469 1.078125 189.039062 0.28125 192.136719 0.320312 C 195.246094 0.28125 198.296875 1.078125 200.984375 2.625 L 324.121094 73.667969 C 324.398438 73.839844 324.617188 74.042969 324.859375 74.238281 L 326.417969 75.132812 C 330.605469 77.351562 337.164062 80.730469 340.722656 83.429688 L 341.011719 83.648438 C 341.058594 83.6875 341.109375 83.722656 341.15625 83.753906 C 341.277344 83.859375 341.363281 83.960938 341.484375 84.070312 C 342.789062 85.164062 343.902344 86.445312 344.761719 87.878906 C 344.785156 87.898438 344.800781 87.921875 344.824219 87.945312 L 344.8125 87.949219 C 346.25 90.351562 347.011719 93.097656 347.011719 95.894531 L 347.011719 154.113281 C 347.011719 155.660156 346.191406 157.085938 344.847656 157.859375 L 322.222656 170.921875 C 320.890625 171.683594 319.230469 171.683594 317.902344 170.921875 C 316.558594 170.144531 315.734375 168.71875 315.734375 167.171875 L 315.734375 114.671875 C 315.734375 108.484375 312.433594 102.773438 307.070312 99.6875 L 200.597656 38.453125 L 200.597656 38.457031 Z M 200.59375 38.453125 "
|
|
439
|
-
fill-opacity="1"
|
|
440
|
-
fill-rule="nonzero"
|
|
441
|
-
/>
|
|
442
|
-
</g>
|
|
443
|
-
</svg>
|
|
444
|
-
`,Vt=W`
|
|
445
|
-
<svg
|
|
446
|
-
viewBox="0 0 423 62"
|
|
447
|
-
version="1.1"
|
|
448
|
-
xml:space="preserve"
|
|
449
|
-
style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"
|
|
450
|
-
>
|
|
451
|
-
<g transform="matrix(1,0,0,1,-45.4439,-231.396)">
|
|
452
|
-
<g transform="matrix(1,0,0,1,41.8553,292.5)">
|
|
453
|
-
<g>
|
|
454
|
-
<path
|
|
455
|
-
d="M25.484,0.536C36.161,0.536 47.828,-4.755 47.646,-17.047C47.646,-37.958 14.089,-31.047 14.177,-43.427C14.089,-47.646 18.036,-51.328 25.125,-51.328C31.318,-51.328 34.724,-50.068 39.302,-47.646C40.021,-47.286 40.828,-47.021 41.547,-47.021C43.88,-47.021 46.12,-48.995 46.12,-51.505C46.214,-53.391 45.047,-54.734 43.88,-55.453C39.75,-58.234 31.854,-61.104 25.125,-61.104C13.729,-61.104 3.589,-55.094 3.589,-42.979C3.589,-20.995 37.146,-27.906 37.146,-16.333C37.146,-11.932 32.214,-8.885 25.036,-9.062C19.474,-9.151 15.432,-11.036 11.667,-12.922C10.859,-13.37 9.87,-13.547 9.422,-13.547C6.911,-13.547 4.484,-11.484 4.396,-8.526C4.307,-6.729 5.385,-5.292 6.818,-4.307C10.766,-1.703 18.125,0.63 25.484,0.536Z"
|
|
456
|
-
style="fill:rgb(0,86,214);fill-rule:nonzero;"
|
|
457
|
-
/>
|
|
458
|
-
</g>
|
|
459
|
-
</g>
|
|
460
|
-
<g transform="matrix(1,0,0,1,111.569,292.5)">
|
|
461
|
-
<g>
|
|
462
|
-
<path
|
|
463
|
-
d="M48.901,-60.656C45.943,-60.656 43.609,-58.234 43.609,-55.365L43.609,-34.547L16.87,-34.547L16.87,-55.365C16.87,-58.234 14.536,-60.656 11.573,-60.656C8.703,-60.656 6.281,-58.234 6.281,-55.365L6.281,-5.292C6.281,-2.333 8.703,0 11.573,0C14.536,0 16.87,-2.333 16.87,-5.292L16.87,-24.943L43.609,-24.943L43.609,-5.292C43.609,-2.333 45.943,0 48.901,0C51.776,0 54.198,-2.333 54.198,-5.292L54.198,-55.365C54.198,-58.234 51.776,-60.656 48.901,-60.656Z"
|
|
464
|
-
style="fill:rgb(0,86,214);fill-rule:nonzero;"
|
|
465
|
-
/>
|
|
466
|
-
</g>
|
|
467
|
-
</g>
|
|
468
|
-
<g transform="matrix(1,0,0,1,190.435,292.5)">
|
|
469
|
-
<g>
|
|
470
|
-
<path
|
|
471
|
-
d="M11.573,0C14.536,0 16.87,-2.333 16.87,-5.292L16.87,-55.365C16.87,-58.234 14.536,-60.656 11.573,-60.656C8.703,-60.656 6.281,-58.234 6.281,-55.365L6.281,-5.292C6.281,-2.333 8.703,0 11.573,0Z"
|
|
472
|
-
style="fill:rgb(0,86,214);fill-rule:nonzero;"
|
|
473
|
-
/>
|
|
474
|
-
</g>
|
|
475
|
-
</g>
|
|
476
|
-
<g transform="matrix(1,0,0,1,232.067,292.5)">
|
|
477
|
-
<g>
|
|
478
|
-
<path
|
|
479
|
-
d="M25.125,-60.656L11.573,-60.656C8.703,-60.656 6.281,-58.234 6.281,-55.365L6.281,-5.292C6.281,-2.333 8.703,0 11.573,0C14.536,0 16.87,-2.333 16.87,-5.292L16.87,-23.151L25.125,-23.151C35.714,-23.151 44.328,-30.865 44.328,-41.906C44.328,-52.849 35.714,-60.656 25.125,-60.656ZM24.766,-32.844L16.87,-32.844L16.87,-50.969L24.766,-50.969C29.703,-50.969 33.74,-47.198 33.74,-41.906C33.74,-36.521 29.703,-32.844 24.766,-32.844Z"
|
|
480
|
-
style="fill:rgb(0,86,214);fill-rule:nonzero;"
|
|
481
|
-
/>
|
|
482
|
-
</g>
|
|
483
|
-
</g>
|
|
484
|
-
<g transform="matrix(1,0,0,1,298.418,292.5)">
|
|
485
|
-
<g>
|
|
486
|
-
<path
|
|
487
|
-
d="M54.198,-4.844L32.214,-58.417C31.583,-59.849 30.151,-60.839 28.536,-60.745C26.917,-60.839 25.396,-59.849 24.854,-58.417L2.87,-4.844C2.063,-2.87 3.052,-0.63 4.938,0.089C6.729,0.896 9.063,0.177 9.87,-1.974L15.255,-15.344L41.724,-15.344L47.109,-1.974C47.917,-0.089 50.161,0.99 52.135,0.089C54.016,-0.63 54.917,-2.964 54.198,-4.844ZM18.125,-22.432L28.536,-48.276L38.854,-22.432L18.125,-22.432Z"
|
|
488
|
-
style="fill:rgb(47,52,61);fill-rule:nonzero;"
|
|
489
|
-
/>
|
|
490
|
-
</g>
|
|
491
|
-
</g>
|
|
492
|
-
<g transform="matrix(1,0,0,1,373.874,292.5)">
|
|
493
|
-
<g>
|
|
494
|
-
<path
|
|
495
|
-
d="M10.318,0C12.474,0 14.177,-1.703 14.177,-3.859L14.177,-56.797C14.177,-58.865 12.474,-60.656 10.318,-60.656C8.167,-60.656 6.458,-58.865 6.458,-56.797L6.458,-3.859C6.458,-1.703 8.167,0 10.318,0Z"
|
|
496
|
-
style="fill:rgb(47,52,61);fill-rule:nonzero;"
|
|
497
|
-
/>
|
|
498
|
-
</g>
|
|
499
|
-
</g>
|
|
500
|
-
<g transform="matrix(1,0,0,1,412.904,292.5)">
|
|
501
|
-
<g>
|
|
502
|
-
<path
|
|
503
|
-
d="M24.854,-60.656L10.318,-60.656C8.167,-60.656 6.458,-58.865 6.458,-56.797L6.458,-3.859C6.458,-1.703 8.167,0 10.318,0L24.854,0C41.724,0 55.005,-12.38 55.005,-30.328C55.005,-48.187 41.724,-60.656 24.854,-60.656ZM24.854,-7.089L14.177,-7.089L14.177,-53.568L24.854,-53.568C37.417,-53.568 47.286,-44.057 47.286,-30.328C47.286,-16.51 37.417,-7.089 24.854,-7.089Z"
|
|
504
|
-
style="fill:rgb(47,52,61);fill-rule:nonzero;"
|
|
505
|
-
/>
|
|
506
|
-
</g>
|
|
507
|
-
</g>
|
|
508
|
-
<path
|
|
509
|
-
d="M255.854,234.453C247.292,234.453 240.354,241.391 240.354,249.953C240.354,258.51 247.292,265.453 255.854,265.453C264.417,265.453 271.354,258.51 271.354,249.953C271.354,241.391 264.417,234.453 255.854,234.453ZM253.01,257.911L246.188,251.089L248.458,248.813L253.01,253.365L263.25,243.125L265.521,245.401L253.01,257.911Z"
|
|
510
|
-
style="fill:rgb(0,86,214);fill-rule:nonzero;"
|
|
511
|
-
/>
|
|
512
|
-
<path
|
|
513
|
-
d="M270.385,238.443L256.297,233.974C256.005,233.88 255.698,233.88 255.406,233.974L241.318,238.443C240.745,238.599 240.354,239.12 240.354,239.714C240.552,244.578 241.917,259.135 241.917,259.135C241.958,259.693 242.26,260.193 242.729,260.5L255.365,268.646C255.661,268.833 256.042,268.833 256.339,268.646L268.974,260.5C269.443,260.193 269.745,259.693 269.786,259.135C269.786,259.135 271.151,244.578 271.349,239.714C271.349,239.12 270.958,238.599 270.385,238.443"
|
|
514
|
-
style="fill:rgb(0,86,214);fill-rule:nonzero;"
|
|
515
|
-
/>
|
|
516
|
-
<path
|
|
517
|
-
d="M266.224,245.536C266.167,245.427 266.094,245.323 265.938,245.24L263.719,243.922C263.688,243.901 263.656,243.885 263.62,243.88C263.609,243.875 263.599,243.875 263.589,243.875C263.563,243.87 263.542,243.865 263.516,243.865C263.448,243.87 263.385,243.885 263.328,243.922L258.339,246.896L258.333,246.885L257.932,247.125C257.448,247.417 256.849,247.417 256.365,247.125L254.182,245.823C254.063,245.755 253.984,245.62 253.984,245.474C253.984,245.328 254.063,245.198 254.182,245.125L256.365,243.823C256.849,243.536 257.448,243.536 257.932,243.823L258.458,244.135C258.578,244.208 258.724,244.208 258.849,244.135L260.88,242.927C261,242.854 261.073,242.724 261.073,242.578C261.073,242.432 261,242.297 260.88,242.224L257.932,240.469C257.448,240.182 256.849,240.182 256.365,240.469L249.141,244.776C248.62,245.083 248.62,245.865 249.141,246.177L256.365,250.479C256.849,250.771 257.448,250.771 257.932,250.479L263.516,247.151L263.516,254.734L261.719,255.807L257.932,258.073C257.813,258.141 257.682,258.198 257.547,258.234C257.151,258.344 256.724,258.286 256.365,258.073L251.172,254.979C250.927,254.833 250.781,254.563 250.781,254.276L250.781,249.854C250.781,249.714 250.703,249.578 250.583,249.505L248.552,248.297C248.432,248.224 248.281,248.224 248.161,248.297C248.042,248.37 247.964,248.5 247.964,248.646L247.964,255.953C247.964,256.245 248.115,256.51 248.359,256.656L256.365,261.427C256.599,261.568 256.865,261.641 257.135,261.641L257.141,261.641C257.177,261.641 257.219,261.641 257.255,261.635C257.286,261.635 257.318,261.635 257.344,261.63C257.385,261.625 257.427,261.615 257.464,261.604C257.495,261.599 257.521,261.599 257.547,261.589C257.589,261.578 257.63,261.563 257.672,261.547C257.698,261.536 257.719,261.531 257.74,261.521C257.807,261.495 257.87,261.464 257.932,261.427L264.839,257.307L265.932,256.667C266.177,256.526 266.328,256.255 266.328,255.964L266.328,245.943C266.328,245.797 266.292,245.656 266.224,245.536"
|
|
518
|
-
style="fill:white;fill-rule:nonzero;"
|
|
519
|
-
/>
|
|
520
|
-
<path
|
|
521
|
-
d="M257.911,238.047C257.677,237.911 257.417,237.833 257.146,237.833C256.88,237.833 256.615,237.911 256.38,238.047L246.734,243.797C246.25,244.089 245.953,244.62 245.953,245.198L245.953,256.698C245.953,257.276 246.25,257.807 246.734,258.094L256.38,263.844C256.62,263.99 256.885,264.063 257.156,264.063C257.432,264.063 257.698,263.99 257.932,263.849L267.536,258.12C268.021,257.833 268.323,257.302 268.323,256.724L268.323,253.401C268.318,253.255 268.396,253.125 268.516,253.052L270.563,251.833C270.682,251.76 270.828,251.76 270.953,251.833C271.073,251.906 271.146,252.036 271.146,252.182L271.146,258.37C271.146,258.635 271.083,258.896 270.964,259.13C270.932,259.281 270.771,259.458 270.542,259.646C270.536,259.651 270.531,259.651 270.526,259.656C269.948,260.12 268.995,260.599 268.823,260.703L257.932,267.193C257.693,267.339 257.411,267.411 257.13,267.411L257.12,267.411L257.12,267.406C256.859,267.401 256.604,267.328 256.38,267.193L243.927,259.771C243.443,259.479 243.146,258.948 243.146,258.37L243.146,243.526C243.146,243.266 243.177,243 243.286,242.776C243.302,242.719 243.453,242.432 243.766,242.198C243.885,242.12 244.089,242.01 244.286,241.891L256.349,234.703C256.589,234.557 256.865,234.484 257.146,234.49C257.427,234.484 257.703,234.557 257.948,234.703L269.078,241.339C269.104,241.354 269.12,241.37 269.146,241.391L269.286,241.474C269.661,241.682 270.255,241.995 270.578,242.25L270.604,242.271C270.609,242.271 270.615,242.276 270.62,242.276C270.63,242.286 270.635,242.297 270.646,242.307C270.766,242.411 270.865,242.531 270.943,242.661C270.948,242.667 270.948,242.667 270.948,242.672C271.078,242.896 271.146,243.151 271.146,243.411L271.146,248.849C271.146,248.995 271.073,249.125 270.953,249.198L268.906,250.417C268.786,250.49 268.635,250.49 268.516,250.417C268.396,250.344 268.318,250.214 268.318,250.068L268.318,245.167C268.318,244.589 268.021,244.052 267.536,243.766L257.911,238.047Z"
|
|
522
|
-
style="fill:rgb(0,86,214);fill-rule:nonzero;"
|
|
523
|
-
/>
|
|
524
|
-
</g>
|
|
525
|
-
</svg>
|
|
526
|
-
`;var Ft=(t=>(t.LOADED="shipaid-loaded",t.STATUS_UPDATE="shipaid-protection-status",t))(Ft||{}),Zt=Object.defineProperty,Gt=Object.getOwnPropertyDescriptor,Jt=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Gt(e,i):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Zt(e,i,s),s};const Kt=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.")}},Qt=t=>console.warn(`[ShipAid] ${t}`),Yt=t=>console.error(`[ShipAid] ${t}`),Xt="shipaid-protection",te=Object.assign({"./lang/en.json":()=>Promise.resolve().then((()=>Ht)).then((t=>t.default)),"./lang/it.json":()=>Promise.resolve().then((()=>le)).then((t=>t.default))});var ee;ee={loader:async t=>{if("en"===t)return Wt;const e=Reflect.get(te,`./lang/${t}.json`);return e?await e():Wt}},ct=Object.assign(Object.assign({},ct),ee),t.ShipAidWidget=class extends nt{constructor(){var t,e,i;super(...arguments),this.disablePolling=!1,this.disableActions=!1,this.pollingInterval=2500,this.disableRefresh=!1,this.lang="en",this.currency=void 0,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=!0,this._hasProtectionInCart=!1,this.hasLoadedStrings=!1,this._state={loading:!1,success:null,error:!1},this._popup=null,this._fetch={get:t=>Kt(t),post:(t,e)=>Kt(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}}shouldUpdate(t){return this.hasLoadedStrings&&super.shouldUpdate(t)}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")?(Qt("Currently in preview mode."),!0):!!(null==(e=this._store)?void 0:e.planActive)}_currencyFormat(t){var e,i,o;return new Intl.NumberFormat(void 0,{currency:this.currency||(null==(e=this._store)?void 0:e.currency)||(null==(o=null==(i=window.Shopify)?void 0:i.currency)?void 0:o.active)||"USD",style:"currency"}).format(Number(t))}_dispatchEvent(t,e={}){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e}))}async _handleRefresh(t){const e=Reflect.has(t,"items");if(this.shouldRefreshOnUpdate)return window.location.reload();e||await this.updateCart(),this._dispatchEvent(Ft.STATUS_UPDATE,{protection:this._hasProtectionInCart,cart:e?t:this._cart,lineItem:e?this._protectionCartItem:t})}async calculateProtectionTotal(t){var e,i,o,r,s,n;if(t||(t=await this._fetchCart()),!t)throw new Error("Could not fetch cart.");if(!this._store)throw new Error("Missing store settings.");const a=null==(e=this._store)?void 0:e.protectionSettings;if(!a||!this._protectionProduct)throw new Error("Tried to find protection variant, but protection settings for this store are missing.");const l=Array.isArray(null==(i=this._store)?void 0:i.excludedProductSkus)?null==(o=this._store)?void 0:o.excludedProductSkus.map((t=>t.trim())):[],d=((null==(r=t.items)?void 0:r.reduce(((t,e)=>{if(!e.sku)return t;return l.some((t=>t===e.sku.trim()))?t-e.final_line_price:t}),t.total_price))??t.total_price)-((null==(s=t.items)?void 0:s.filter((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))})))??[]).reduce(((t,e)=>t+e.final_line_price),0);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=d/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){const t=d*a.percentage/100;return t>=a.minimumFee?t:a.minimumFee}throw new Error("No protection type handler found for this store.")}_findProtectionVariant(t){var e,i,o,r;if(!(null==(e=this._store)?void 0:e.protectionSettings)||!(null==(o=null==(i=this._protectionProduct)?void 0:i.variants)?void 0:o.length))throw new Error("Missing product and variants from protection settings.");const s=null==(r=this._protectionProduct)?void 0:r.variants.flatMap((t=>{if(!t||!t.price)return[];const e=Number(t.price);return[{...t,formattedPrice:e}]})).sort(((t,e)=>t.formattedPrice-e.formattedPrice)),n=s.find((e=>e.formattedPrice>=t));return n||s[s.length-1]}_setState(t,e){this._state={loading:"loading"===t,success:"success"===t,error:"error"===t&&(e||!0)}}async _updateProtection(){return this._hasProtectionInCart?this.removeProtection():this.addProtection()}async _fetchShipAidData(){var t,e,i,o,r;const s=(null==(t=window.Shopify)?void 0:t.shop)??(null==(i=null==(e=window.Shopify)?void 0:e.Checkout)?void 0:i.apiHost);if(!s)throw new Error("No shop found in Shopify object.");try{const t=new URL(window.location.href);t.pathname=this._apiEndpoint;const e={query:"query StoreByDomain ($store: String!) {\n store: storeByDomain (input: {store: $store}) {\n currency\n planActive\n store\n widgetAutoOptIn\n widgetShowCart\n excludedProductSkus\n protectionSettings\n }\n}",variables:{store:s}},i=await this._fetch.post(t.toString(),e);if(!i)throw new Error("Missing response for store query.");if(null==(o=i.errors)?void 0:o.length)throw new Error(i.errors[0].message);if(!(null==(r=i.data)?void 0:r.store))throw new Error("Missing store from store query response.");return i.data.store}catch(n){throw console.error(n),new Error(`Could not find a store for ${this._storeDomain}`)}}async _fetchCart(){try{return await this._fetch.get("/cart.js")}catch(t){throw Yt(t.message),new Error("Could not fetch cart for current domain.")}}async _fetchProduct(){try{const{product:t}=await this._fetch.get("/products/shipaid-protection.json");return t}catch(t){throw Yt(t.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 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={quantity:1,id:this._protectionVariant.id},o=await this._fetch.post("/cart/add.js",i);await this._handleRefresh(o),this._setState("success")}catch(i){Yt(i.message),this._setState("error","Failed to add protection to cart - please try again, or contact us for help.")}}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={quantity:0,id:this._protectionCartItem.key},e=await this._fetch.post("/cart/change.js",t);await this._handleRefresh(e),this._cart=e,this._setState("success")}catch(t){Yt(t.message),this._setState("error","Failed to add protection to cart - please try again, or contact us for help.")}}learnMorePopupTemplate(){return W`
|
|
527
|
-
<shipaid-popup-learn-more ?active=${"learn-more"===this._popup} @close=${()=>{this._popup=null}}></shipaid-popup-learn-more>
|
|
660
|
+
`;var Kt=(t=>(t.LOADED="shipaid-loaded",t.STATUS_UPDATE="shipaid-protection-status",t))(Kt||{}),Qt=Object.defineProperty,Xt=Object.getOwnPropertyDescriptor,te=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Xt(e,i):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Qt(e,i,s),s};const ee=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.")}},ie=t=>console.warn(`[ShipAid] ${t}`),oe=t=>console.error(`[ShipAid] ${t}`),re="shipaid-protection",se=Object.assign({"./lang/en.json":()=>Promise.resolve().then((()=>Gt)).then((t=>t.default)),"./lang/it.json":()=>Promise.resolve().then((()=>ue)).then((t=>t.default)),"./lang/pt.json":()=>Promise.resolve().then((()=>be)).then((t=>t.default))});var ne;ne={loader:async t=>{if("en"===t)return Yt;const e=Reflect.get(se,`./lang/${t}.json`);return e?await e():Yt}},ut=Object.assign(Object.assign({},ut),ne),t.ShipAidWidget=class extends at{constructor(){var t,e,i;super(...arguments),this.disablePolling=!1,this.disableActions=!1,this.pollingInterval=2500,this.disableRefresh=!1,this.lang="en",this.currency=void 0,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=!0,this._hasProtectionInCart=!1,this.hasLoadedStrings=!1,this._state={loading:!1,success:null,error:!1},this._popup=null,this._fetch={get:t=>ee(t),post:(t,e)=>ee(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}}shouldUpdate(t){return this.hasLoadedStrings&&super.shouldUpdate(t)}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")?(ie("Currently in preview mode."),!0):!!(null==(e=this._store)?void 0:e.planActive)}_currencyFormat(t){var e,i,o;return new Intl.NumberFormat(void 0,{currency:this.currency||(null==(e=this._store)?void 0:e.currency)||(null==(o=null==(i=window.Shopify)?void 0:i.currency)?void 0:o.active)||"USD",style:"currency"}).format(Number(t))}_dispatchEvent(t,e={}){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e}))}async _handleRefresh(t){const e=Reflect.has(t,"items");if(this.shouldRefreshOnUpdate)return window.location.reload();e||await this.updateCart(),this._dispatchEvent(Kt.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)}}async _updateProtection(){return this._hasProtectionInCart?this.removeProtection():this.addProtection()}async _fetchShipAidData(){var t,e,i,o,r;const s=(null==(t=window.Shopify)?void 0:t.shop)??(null==(i=null==(e=window.Shopify)?void 0:e.Checkout)?void 0:i.apiHost);if(!s)throw new Error("No shop found in Shopify object.");try{const t=new URL(window.location.href);t.pathname=this._apiEndpoint;const e={query:"query StoreByDomain ($store: String!) {\n store: storeByDomain (input: {store: $store}) {\n currency\n planActive\n store\n widgetAutoOptIn\n widgetShowCart\n excludedProductSkus\n protectionSettings\n }\n}",variables:{store:s}},i=await this._fetch.post(t.toString(),e);if(!i)throw new Error("Missing response for store query.");if(null==(o=i.errors)?void 0:o.length)throw new Error(i.errors[0].message);if(!(null==(r=i.data)?void 0:r.store))throw new Error("Missing store from store query response.");return i.data.store}catch(n){throw console.error(n),new Error(`Could not find a store for ${this._storeDomain}`)}}async _fetchCart(){try{return await this._fetch.get("/cart.js")}catch(t){throw oe(t.message),new Error("Could not fetch cart for current domain.")}}async _fetchProduct(){try{const{product:t}=await this._fetch.get("/products/shipaid-protection.json");return t}catch(t){throw oe(t.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 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={quantity:1,id:this._protectionVariant.id},o=await this._fetch.post("/cart/add.js",i);await this._handleRefresh(o),this._setState("success")}catch(i){oe(i.message),this._setState("error","Failed to add protection to cart - please try again, or contact us for help.")}}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={quantity:0,id:this._protectionCartItem.key},e=await this._fetch.post("/cart/change.js",t);await this._handleRefresh(e),this._cart=e,this._setState("success")}catch(t){oe(t.message),this._setState("error","Failed to add protection to cart - please try again, or contact us for help.")}}learnMorePopupTemplate(){return W`
|
|
661
|
+
<shipaid-popup-learn-more
|
|
662
|
+
?active=${"learn-more"===this._popup}
|
|
663
|
+
@close=${()=>{this._popup=null}}
|
|
664
|
+
></shipaid-popup-learn-more>
|
|
528
665
|
`}promptTemplate(){var t;return W`
|
|
529
666
|
<div class="shipaid-prompt">
|
|
530
667
|
<div class="prompt-product">
|
|
531
668
|
<div class="prompt-product-image">
|
|
532
|
-
${
|
|
669
|
+
${zt(this._hasProtectionInCart,(()=>Tt),(()=>kt))}
|
|
533
670
|
</div>
|
|
534
671
|
<div class="prompt-product-details">
|
|
535
672
|
<p class="prompt-product-details-title">
|
|
536
|
-
<slot name="title">${
|
|
673
|
+
<slot name="title">${St("title")}</slot>
|
|
537
674
|
</p>
|
|
538
675
|
<p class="prompt-product-details-description">
|
|
539
|
-
<slot name="subtitle">${
|
|
676
|
+
<slot name="subtitle">${St("description")}</slot>
|
|
540
677
|
</p>
|
|
541
678
|
</div>
|
|
542
679
|
<div class="prompt-product-actions">
|
|
543
680
|
<p class="prompt-product-actions-price">
|
|
544
681
|
${(null==(t=this._protectionVariant)?void 0:t.price)&&this._currencyFormat(this._protectionVariant.price)}
|
|
545
682
|
</p>
|
|
546
|
-
${
|
|
683
|
+
${zt(!this.disableActions,(()=>W`
|
|
547
684
|
<button
|
|
548
685
|
class="prompt-product-actions-button"
|
|
549
686
|
@click=${this._updateProtection}
|
|
550
687
|
?disabled=${this._state.loading}
|
|
551
688
|
>
|
|
552
|
-
${this._state.loading?
|
|
689
|
+
${this._state.loading?St("actions.loading"):this._hasProtectionInCart?St("actions.remove"):W`+ ${St("actions.add")}`}
|
|
553
690
|
</button>
|
|
554
691
|
`))}
|
|
555
692
|
</div>
|
|
556
693
|
</div>
|
|
557
|
-
${
|
|
694
|
+
${zt(this._state.error,(()=>W`<p class="error">${this._state.error}</p>`))}
|
|
558
695
|
<div class="prompt-footer">
|
|
559
696
|
<a
|
|
560
697
|
class="prompt-footer-badge"
|
|
561
698
|
@click=${()=>{this._popup="learn-more"}}
|
|
562
699
|
>
|
|
563
|
-
<span>${
|
|
564
|
-
${
|
|
700
|
+
<span>${St("footer.button")}</span>
|
|
701
|
+
${Ot}
|
|
702
|
+
<button
|
|
703
|
+
class="prompt-footer-about"
|
|
704
|
+
@click=${()=>{this._popup="learn-more"}}
|
|
705
|
+
>
|
|
706
|
+
i
|
|
707
|
+
</button>
|
|
565
708
|
</a>
|
|
566
|
-
<button
|
|
567
|
-
class="prompt-footer-about"
|
|
568
|
-
@click=${()=>{this._popup="learn-more"}}
|
|
569
|
-
>
|
|
570
|
-
i
|
|
571
|
-
</button>
|
|
572
709
|
</div>
|
|
573
710
|
</div>
|
|
574
|
-
`}async connectedCallback(){super.connectedCallback(),await async function(t,e=
|
|
711
|
+
`}async connectedCallback(){super.connectedCallback(),await async function(t,e=ut){const i=await e.loader(t,e);e.translationCache={},ft(t,i,e)}(this.lang),this.hasLoadedStrings=!0}render(){return Pt(this,(async()=>{var t,e;const i=document.createElement("link");i.setAttribute("href","https://fonts.googleapis.com/css2?family=Lato&display=swap"),i.setAttribute("rel","stylesheet"),document.head.appendChild(i);try{const[t,e,i]=await Promise.all([this._fetchShipAidData(),this._fetchCart(),this._fetchProduct()]);this._store=t,this._cart=e,this._protectionProduct=i}catch(o){return oe(o.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._shouldShowWidget=!0,this._dispatchEvent(Kt.LOADED,this._store),setTimeout((async()=>{var t,e,i;(null==(t=this._store)?void 0:t.widgetAutoOptIn)&&(null==(e=this._cart)?void 0:e.item_count)&&(sessionStorage.getItem(re)||(sessionStorage.setItem(re,JSON.stringify({loaded:!0})),!this._hasProtectionInCart&&(null==(i=this._cart)?void 0:i.item_count)&&this._store.widgetShowCart&&await this.addProtection()))}),500),void(this.disablePolling||setInterval((async()=>{const t=this._cartLastUpdated;t&&(new Date).getTime()-t.getTime()<this.pollingInterval||await this.updateCart()}),this.pollingInterval))):(ie("No protection settings product for this store - skipping setup."),this._hasFinishedSetup=!0,void(this._shouldShowWidget=!1)):(ie("No protection settings for this store - skipping setup."),this._hasFinishedSetup=!0,void(this._shouldShowWidget=!1)):(ie("No plan is active for this store - skipping setup."),this._hasFinishedSetup=!0,void(this._shouldShowWidget=!1))}),[]),Pt(this,(async()=>{var t,e,i;if(this._cartLastUpdated=new Date,!(null==(t=this._cart)?void 0:t.items))return;const o=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))})),r=null==(i=this._cart)?void 0:i.items[o];if(this._hasProtectionInCart=!!r,1===this._cart.item_count&&r){const t={id:r.key,quantity:0},e=await this._fetch.post("/cart/change.js",t);return await this._handleRefresh(e)}const s=await this.calculateProtectionTotal(this._cart),n=this._findProtectionVariant(s);if(this._protectionVariant=n,!(null==n?void 0:n.id))return this._shouldShowWidget=!1,void oe("No matching protection variant found.");if(!r)return;if(n.id===r.variant_id){if(this._protectionCartItem={...r,index:o,position:o+1},1===r.quantity)return;const t={id:r.key,quantity:1},e=await this._fetch.post("/cart/change.js",t);return await this._handleRefresh(e)}const a={updates:{[r.variant_id]:0,[n.id]:1}},d=await this._fetch.post("/cart/update.js",a);await this._handleRefresh(d)}),[this._store,this._cart]),rt(this.learnMorePopupTemplate(),document.body),W`
|
|
575
712
|
<div class="shipaid">
|
|
576
|
-
${
|
|
713
|
+
${zt(this._hasFinishedSetup,(()=>{var t;return zt(this._shouldShowWidget&&this.planActive&&(null==(t=this._store)?void 0:t.widgetShowCart),(()=>this.promptTemplate()),(()=>D))}),(()=>W`<p>
|
|
714
|
+
<slot name="loading" default>${St("loading")}</slot>
|
|
715
|
+
</p>`))}
|
|
577
716
|
</div>
|
|
578
|
-
`}},t.ShipAidWidget.styles=
|
|
717
|
+
`}},t.ShipAidWidget.styles=Jt,te([r({type:Boolean,attribute:!0})],t.ShipAidWidget.prototype,"disablePolling",2),te([r({type:Boolean,attribute:!0})],t.ShipAidWidget.prototype,"disableActions",2),te([r({type:Number,attribute:!0})],t.ShipAidWidget.prototype,"pollingInterval",2),te([r({type:Boolean,attribute:!0})],t.ShipAidWidget.prototype,"disableRefresh",2),te([r({type:String,attribute:!0})],t.ShipAidWidget.prototype,"lang",2),te([r({type:String,attribute:!0})],t.ShipAidWidget.prototype,"currency",2),te([s()],t.ShipAidWidget.prototype,"_storeDomain",2),te([s()],t.ShipAidWidget.prototype,"_store",2),te([s()],t.ShipAidWidget.prototype,"_cart",2),te([s()],t.ShipAidWidget.prototype,"_protectionProduct",2),te([s()],t.ShipAidWidget.prototype,"_cartLastUpdated",2),te([s()],t.ShipAidWidget.prototype,"_hasFinishedSetup",2),te([s()],t.ShipAidWidget.prototype,"_shouldShowWidget",2),te([s()],t.ShipAidWidget.prototype,"_hasProtectionInCart",2),te([s()],t.ShipAidWidget.prototype,"_protectionCartItem",2),te([s()],t.ShipAidWidget.prototype,"_protectionVariant",2),te([s()],t.ShipAidWidget.prototype,"hasLoadedStrings",2),te([s()],t.ShipAidWidget.prototype,"_state",2),te([s()],t.ShipAidWidget.prototype,"_popup",2),t.ShipAidWidget=te([i("shipaid-widget")],t.ShipAidWidget);const ae="Caricamento del widget ShipAid...",de="Garanzia di consegna",le="in caso di Perdita, Danno o Furto",pe={button:"Offerto da"},ce={add:"Aggiungere",remove:"Rimuovere",loading:"Caricamento ..."},he={loading:ae,title:de,description:le,footer:pe,actions:ce,"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"}}},ue=Object.freeze(Object.defineProperty({__proto__:null,actions:ce,default:he,description:le,footer:pe,loading:ae,title:de},Symbol.toStringTag,{value:"Module"})),fe="Carregando o widget ShipAid...",me="Garantia de entrega",ve="em caso de Perda, Danos ou Roubo",ge={button:"Distribuído por"},_e={add:"Adicionar",remove:"Remover",loading:"Carregando..."},ye={loading:fe,title:me,description:ve,footer:ge,actions:_e,"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"}}},be=Object.freeze(Object.defineProperty({__proto__:null,actions:_e,default:ye,description:ve,footer:ge,loading:fe,title:me},Symbol.toStringTag,{value:"Module"}));Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}));
|