@zonos/elements 1.2.4-alpha.7 → 1.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 +80 -1
- package/dist/cjs/{cart-90f7c8c0.js → cart-cfa5d5fd.js} +4 -4
- package/dist/cjs/{getBorderRadius-bf4a4276.js → getBorderRadius-c3c63ee6.js} +1 -1
- package/dist/cjs/index.cjs.js +5 -5
- package/dist/cjs/{isDarkColor-ff6ff183.js → isDarkColor-fc8c294a.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{localization-9caf3397.js → localization-4746acf7.js} +2 -2
- package/dist/cjs/{submitGtag-b141b45d.js → submitGtag-ca175427.js} +2 -2
- package/dist/cjs/zonos-address_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-badge.cjs.entry.js +1 -1
- package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
- package/dist/cjs/zonos-button_2.cjs.entry.js +3 -3
- package/dist/cjs/zonos-card_2.cjs.entry.js +1 -1
- package/dist/cjs/zonos-cart-items_10.cjs.entry.js +9 -15
- package/dist/cjs/zonos-checkout.cjs.entry.js +6 -6
- package/dist/cjs/zonos-controller.cjs.entry.js +15 -9
- package/dist/cjs/zonos-country-flag_4.cjs.entry.js +3 -3
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +2 -2
- package/dist/cjs/zonos-hello.cjs.entry.js +8 -5
- package/dist/cjs/zonos-icon.cjs.entry.js +1 -1
- package/dist/cjs/zonos-notification.cjs.entry.js +1 -1
- package/dist/cjs/zonos-payment.cjs.entry.js +5 -5
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +2 -2
- package/dist/cjs/zonos-text.cjs.entry.js +1 -1
- package/dist/cjs/{zonosStore-b43ef5db.js → zonosStore-10d1d6ff.js} +0 -8
- package/dist/collection/__tests__/build-utils/urlCheckOne.js +4 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +4 -10
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +6 -3
- package/dist/collection/components/main/zonos-controller.js +35 -8
- package/dist/collection/components/store/zonosStore.js +0 -8
- package/dist/collection/components/utils/api/{getZonosSetting.js → getZonosSettings.js} +3 -3
- package/dist/collection/components/utils/handleFetch.js +1 -1
- package/dist/collection/environment.js +14 -3
- package/dist/collection/scripts/{zonos.js → zonosBase.js} +7 -19
- package/dist/collection/types/generated/graphql.customer.types.js +52 -4
- package/dist/collection/types/generated/graphql.frontend.types.js +22 -16
- package/dist/components/localization.js +1 -1
- package/dist/components/zonos-checkout-finish2.js +5 -10
- package/dist/components/zonos-controller.js +12 -5
- package/dist/components/zonos-hello.js +6 -3
- package/dist/components/zonosStore.js +0 -8
- package/dist/esm/{cart-b439be00.js → cart-d81b92ea.js} +4 -4
- package/dist/esm/{getBorderRadius-178a0a05.js → getBorderRadius-77e97943.js} +1 -1
- package/dist/esm/index.js +5 -5
- package/dist/esm/{isDarkColor-416d6047.js → isDarkColor-69090b29.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{localization-a51ccbc2.js → localization-0c5b29fd.js} +2 -2
- package/dist/esm/{submitGtag-521826a2.js → submitGtag-8a0fbd41.js} +2 -2
- package/dist/esm/zonos-address_2.entry.js +5 -5
- package/dist/esm/zonos-badge.entry.js +1 -1
- package/dist/esm/zonos-banner.entry.js +1 -1
- package/dist/esm/zonos-button_2.entry.js +3 -3
- package/dist/esm/zonos-card_2.entry.js +1 -1
- package/dist/esm/zonos-cart-items_10.entry.js +9 -15
- package/dist/esm/zonos-checkout.entry.js +6 -6
- package/dist/esm/zonos-controller.entry.js +15 -9
- package/dist/esm/zonos-country-flag_4.entry.js +3 -3
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +2 -2
- package/dist/esm/zonos-hello.entry.js +8 -5
- package/dist/esm/zonos-icon.entry.js +1 -1
- package/dist/esm/zonos-notification.entry.js +1 -1
- package/dist/esm/zonos-payment.entry.js +5 -5
- package/dist/esm/zonos-shipping-rich-radio.entry.js +2 -2
- package/dist/esm/zonos-text.entry.js +1 -1
- package/dist/esm/{zonosStore-61e74f58.js → zonosStore-34f07ee8.js} +0 -8
- package/dist/esm-es5/{cart-b439be00.js → cart-d81b92ea.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-178a0a05.js → getBorderRadius-77e97943.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-416d6047.js → isDarkColor-69090b29.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{localization-a51ccbc2.js → localization-0c5b29fd.js} +1 -1
- package/dist/esm-es5/{submitGtag-521826a2.js → submitGtag-8a0fbd41.js} +1 -1
- package/dist/esm-es5/zonos-address_2.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_2.entry.js +1 -1
- package/dist/esm-es5/zonos-card_2.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_10.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-icon.entry.js +1 -1
- package/dist/esm-es5/zonos-notification.entry.js +1 -1
- package/dist/esm-es5/zonos-payment.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-61e74f58.js → zonosStore-34f07ee8.js} +1 -1
- package/dist/scripts/extractZonosQaUrl.js +1 -30
- package/dist/scripts/loadStripe.js +1 -118
- package/dist/scripts/loadZonos.js +1 -565
- package/dist/scripts/stripe.js +1 -126
- package/dist/scripts/zonos.js +1 -565
- package/dist/scripts/zonosBase.js +1 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +2 -3
- package/dist/types/components/main/zonos-controller.d.ts +5 -1
- package/dist/types/components/store/zonosStore.d.ts +1 -3
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/api/{getZonosSetting.d.ts → getZonosSettings.d.ts} +1 -1
- package/dist/types/components.d.ts +6 -2
- package/dist/types/scripts/{zonos.d.ts → zonosBase.d.ts} +6 -3
- package/dist/types/types/checkout/CheckoutConfig.d.ts +3 -2
- package/dist/types/types/generated/graphql.customer.types.d.ts +64 -5
- package/dist/types/types/generated/graphql.customer.types.ts +81 -8
- package/dist/types/types/generated/graphql.frontend.types.d.ts +107 -86
- package/dist/types/types/generated/graphql.frontend.types.ts +159 -110
- package/dist/types/types/global.d.ts +10 -2
- package/dist/types/types/hello/HelloConfig.d.ts +0 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-1685c8df.js → p-06a332cd.js} +1 -1
- package/dist/zonos-elements/{p-4ed71bd7.entry.js → p-124857ae.entry.js} +1 -1
- package/dist/zonos-elements/{p-e98be2d0.system.entry.js → p-1f494581.system.entry.js} +1 -1
- package/dist/zonos-elements/p-24fbe845.system.js +1 -1
- package/dist/zonos-elements/{p-4846796a.js → p-2b41549a.js} +1 -1
- package/dist/zonos-elements/p-2e1e9074.js +1 -0
- package/dist/zonos-elements/{p-2801d868.entry.js → p-3509ffaa.entry.js} +1 -1
- package/dist/zonos-elements/{p-1d4a970b.entry.js → p-3c8763a7.entry.js} +1 -1
- package/dist/zonos-elements/{p-49f09b91.entry.js → p-3e7444c6.entry.js} +1 -1
- package/dist/zonos-elements/p-436faf98.system.entry.js +1 -0
- package/dist/zonos-elements/{p-55f49f1e.js → p-4b3baf99.js} +1 -1
- package/dist/zonos-elements/{p-a504f64f.system.js → p-5066955b.system.js} +1 -1
- package/dist/zonos-elements/{p-e5ae22a9.system.entry.js → p-53ea93c2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f367f2fe.system.entry.js → p-5bada106.system.entry.js} +1 -1
- package/dist/zonos-elements/p-5e87609f.entry.js +1 -0
- package/dist/zonos-elements/{p-b85be1ab.system.js → p-7730250d.system.js} +1 -1
- package/dist/zonos-elements/{p-089ba905.js → p-86f22026.js} +1 -1
- package/dist/zonos-elements/{p-a0e36ed3.entry.js → p-88600956.entry.js} +1 -1
- package/dist/zonos-elements/{p-89c210d6.entry.js → p-8b1cb8a4.entry.js} +1 -1
- package/dist/zonos-elements/p-8bd04aaa.entry.js +1 -0
- package/dist/zonos-elements/{p-47390db7.system.entry.js → p-935fa685.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-639396bb.entry.js → p-9c1f19b6.entry.js} +1 -1
- package/dist/zonos-elements/{p-4d93275c.entry.js → p-a063c4b7.entry.js} +1 -1
- package/dist/zonos-elements/p-a174d834.system.js +1 -0
- package/dist/zonos-elements/{p-3c6988d7.js → p-a244579e.js} +1 -1
- package/dist/zonos-elements/{p-24eed2a8.system.js → p-a54d8db3.system.js} +1 -1
- package/dist/zonos-elements/{p-e1f6ab97.entry.js → p-ab00288a.entry.js} +1 -1
- package/dist/zonos-elements/{p-b51de536.system.js → p-ab179c88.system.js} +1 -1
- package/dist/zonos-elements/{p-afe26069.entry.js → p-ad2b4bda.entry.js} +1 -1
- package/dist/zonos-elements/{p-4bee0bff.system.entry.js → p-b3a71ae4.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d856a200.system.entry.js → p-b3e034bb.system.entry.js} +1 -1
- package/dist/zonos-elements/p-b7e061e7.entry.js +1 -0
- package/dist/zonos-elements/{p-3cea383b.system.entry.js → p-bb7de2c4.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-da060b1c.system.js → p-c1665c4f.system.js} +1 -1
- package/dist/zonos-elements/{p-2f43da39.system.entry.js → p-c1e298d5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8c5595d9.system.entry.js → p-c520d819.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c9348bb0.system.entry.js → p-ca875e60.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b4601210.system.entry.js → p-ccd1794a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f141519c.system.entry.js → p-daa10b8c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b6148206.entry.js → p-e3bca405.entry.js} +1 -1
- package/dist/zonos-elements/{p-a376a37f.entry.js → p-e58cc024.entry.js} +1 -1
- package/dist/zonos-elements/{p-938803f4.entry.js → p-e6556b0d.entry.js} +1 -1
- package/dist/zonos-elements/{p-d2217f09.system.js → p-ed074fbf.system.js} +1 -1
- package/dist/zonos-elements/{p-560aa686.system.entry.js → p-f1e9b431.system.entry.js} +1 -1
- package/dist/zonos-elements/p-f7b07128.system.entry.js +1 -0
- package/dist/zonos-elements/{p-4a15c5c7.system.entry.js → p-fbc09dae.system.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +9 -6
- package/dist/collection/types/online-store/OnlineStoreConfig.js +0 -1
- package/dist/types/types/online-store/OnlineStoreConfig.d.ts +0 -3
- package/dist/zonos-elements/p-06fb9d1f.system.entry.js +0 -1
- package/dist/zonos-elements/p-33137e7d.system.entry.js +0 -1
- package/dist/zonos-elements/p-494c77a7.entry.js +0 -1
- package/dist/zonos-elements/p-8c48b75e.system.js +0 -1
- package/dist/zonos-elements/p-e9b832c5.entry.js +0 -1
- package/dist/zonos-elements/p-eb392924.entry.js +0 -1
- package/dist/zonos-elements/p-ff95f098.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t,b as e}from"./p-089ba905.js";var r=t((function(t){t.exports=function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}var e=/^\s+/,r=/\s+$/;function n(a,i){if(i=i||{},(a=a||"")instanceof n)return a;if(!(this instanceof n))return new n(a,i);var f=function(n){var a={r:0,g:0,b:0},i=1,f=null,h=null,s=null,o=!1,u=!1;return"string"==typeof n&&(n=function(t){t=t.replace(e,"").replace(r,"").toLowerCase();var n,a=!1;if(y[t])t=y[t],a=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(n=$.rgb.exec(t))?{r:n[1],g:n[2],b:n[3]}:(n=$.rgba.exec(t))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=$.hsl.exec(t))?{h:n[1],s:n[2],l:n[3]}:(n=$.hsla.exec(t))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=$.hsv.exec(t))?{h:n[1],s:n[2],v:n[3]}:(n=$.hsva.exec(t))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=$.hex8.exec(t))?{r:F(n[1]),g:F(n[2]),b:F(n[3]),a:E(n[4]),format:a?"name":"hex8"}:(n=$.hex6.exec(t))?{r:F(n[1]),g:F(n[2]),b:F(n[3]),format:a?"name":"hex"}:(n=$.hex4.exec(t))?{r:F(n[1]+""+n[1]),g:F(n[2]+""+n[2]),b:F(n[3]+""+n[3]),a:E(n[4]+""+n[4]),format:a?"name":"hex8"}:!!(n=$.hex3.exec(t))&&{r:F(n[1]+""+n[1]),g:F(n[2]+""+n[2]),b:F(n[3]+""+n[3]),format:a?"name":"hex"}}(n)),"object"==t(n)&&(j(n.r)&&j(n.g)&&j(n.b)?(l=n.r,c=n.g,d=n.b,a={r:255*w(l,255),g:255*w(c,255),b:255*w(d,255)},o=!0,u="%"===String(n.r).substr(-1)?"prgb":"rgb"):j(n.h)&&j(n.s)&&j(n.v)?(f=R(n.s),h=R(n.v),a=function(t,e,r){t=6*w(t,360),e=w(e,100),r=w(r,100);var n=Math.floor(t),a=t-n,i=r*(1-e),f=r*(1-a*e),h=r*(1-(1-a)*e),s=n%6;return{r:255*[r,f,i,i,h,r][s],g:255*[h,r,r,f,i,i][s],b:255*[i,i,h,r,r,f][s]}}(n.h,f,h),o=!0,u="hsv"):j(n.h)&&j(n.s)&&j(n.l)&&(f=R(n.s),s=R(n.l),a=function(t,e,r){var n,a,i;function f(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=w(t,360),e=w(e,100),r=w(r,100),0===e)n=a=i=r;else{var h=r<.5?r*(1+e):r+e-r*e,s=2*r-h;n=f(s,h,t+1/3),a=f(s,h,t),i=f(s,h,t-1/3)}return{r:255*n,g:255*a,b:255*i}}(n.h,f,s),o=!0,u="hsl"),n.hasOwnProperty("a")&&(i=n.a)),i=A(i),{ok:o,format:n.format||u,r:Math.min(255,Math.max(a.r,0)),g:Math.min(255,Math.max(a.g,0)),b:Math.min(255,Math.max(a.b,0)),a:i};var l,c,d}(a);this._originalInput=a,this._r=f.r,this._g=f.g,this._b=f.b,this._a=f.a,this._roundA=Math.round(100*this._a)/100,this._format=i.format||f.format,this._gradientType=i.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=f.ok}function a(t,e,r){t=w(t,255),e=w(e,255),r=w(r,255);var n,a,i=Math.max(t,e,r),f=Math.min(t,e,r),h=(i+f)/2;if(i==f)n=a=0;else{var s=i-f;switch(a=h>.5?s/(2-i-f):s/(i+f),i){case t:n=(e-r)/s+(e<r?6:0);break;case e:n=(r-t)/s+2;break;case r:n=(t-e)/s+4}n/=6}return{h:n,s:a,l:h}}function i(t,e,r){t=w(t,255),e=w(e,255),r=w(r,255);var n,a,i=Math.max(t,e,r),f=Math.min(t,e,r),h=i,s=i-f;if(a=0===i?0:s/i,i==f)n=0;else{switch(i){case t:n=(e-r)/s+(e<r?6:0);break;case e:n=(r-t)/s+2;break;case r:n=(t-e)/s+4}n/=6}return{h:n,s:a,v:h}}function f(t,e,r,n){var a=[S(Math.round(t).toString(16)),S(Math.round(e).toString(16)),S(Math.round(r).toString(16))];return n&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function h(t,e,r,n){return[S(q(n)),S(Math.round(t).toString(16)),S(Math.round(e).toString(16)),S(Math.round(r).toString(16))].join("")}function s(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.s-=e/100,r.s=x(r.s),n(r)}function o(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.s+=e/100,r.s=x(r.s),n(r)}function u(t){return n(t).desaturate(100)}function l(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.l+=e/100,r.l=x(r.l),n(r)}function c(t,e){e=0===e?0:e||10;var r=n(t).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-e/100*255))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-e/100*255))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-e/100*255))),n(r)}function d(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.l-=e/100,r.l=x(r.l),n(r)}function g(t,e){var r=n(t).toHsl(),a=(r.h+e)%360;return r.h=a<0?360+a:a,n(r)}function b(t){var e=n(t).toHsl();return e.h=(e.h+180)%360,n(e)}function m(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var r=n(t).toHsl(),a=[n(t)],i=360/e,f=1;f<e;f++)a.push(n({h:(r.h+f*i)%360,s:r.s,l:r.l}));return a}function v(t){var e=n(t).toHsl(),r=e.h;return[n(t),n({h:(r+72)%360,s:e.s,l:e.l}),n({h:(r+216)%360,s:e.s,l:e.l})]}function M(t,e,r){e=e||6,r=r||30;var a=n(t).toHsl(),i=360/r,f=[n(t)];for(a.h=(a.h-(i*e>>1)+720)%360;--e;)a.h=(a.h+i)%360,f.push(n(a));return f}function p(t,e){e=e||6;for(var r=n(t).toHsv(),a=r.h,i=r.s,f=r.v,h=[],s=1/e;e--;)h.push(n({h:a,s:i,v:f})),f=(f+s)%1;return h}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,r,n=this.toRgb();return e=n.g/255,r=n.b/255,.2126*((t=n.r/255)<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(t){return this._a=A(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=i(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=i(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+n+"%)":"hsva("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=a(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=a(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+n+"%)":"hsla("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return f(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,a){var i=[S(Math.round(t).toString(16)),S(Math.round(e).toString(16)),S(Math.round(r).toString(16)),S(q(n))];return a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*w(this._r,255))+"%",g:Math.round(100*w(this._g,255))+"%",b:Math.round(100*w(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*w(this._r,255))+"%, "+Math.round(100*w(this._g,255))+"%, "+Math.round(100*w(this._b,255))+"%)":"rgba("+Math.round(100*w(this._r,255))+"%, "+Math.round(100*w(this._g,255))+"%, "+Math.round(100*w(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(k[f(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+h(this._r,this._g,this._b,this._a),r=e,a=this._gradientType?"GradientType = 1, ":"";if(t){var i=n(t);r="#"+h(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var r=!1;return e||!(this._a<1&&this._a>=0)||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(r=this.toRgbString()),"prgb"===t&&(r=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(r=this.toHexString()),"hex3"===t&&(r=this.toHexString(!0)),"hex4"===t&&(r=this.toHex8String(!0)),"hex8"===t&&(r=this.toHex8String()),"name"===t&&(r=this.toName()),"hsl"===t&&(r=this.toHslString()),"hsv"===t&&(r=this.toHsvString()),r||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return n(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(l,arguments)},brighten:function(){return this._applyModification(c,arguments)},darken:function(){return this._applyModification(d,arguments)},desaturate:function(){return this._applyModification(s,arguments)},saturate:function(){return this._applyModification(o,arguments)},greyscale:function(){return this._applyModification(u,arguments)},spin:function(){return this._applyModification(g,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(M,arguments)},complement:function(){return this._applyCombination(b,arguments)},monochromatic:function(){return this._applyCombination(p,arguments)},splitcomplement:function(){return this._applyCombination(v,arguments)},triad:function(){return this._applyCombination(m,[3])},tetrad:function(){return this._applyCombination(m,[4])}},n.fromRatio=function(e,r){if("object"==t(e)){var a={};for(var i in e)e.hasOwnProperty(i)&&(a[i]="a"===i?e[i]:R(e[i]));e=a}return n(e,r)},n.equals=function(t,e){return!(!t||!e)&&n(t).toRgbString()==n(e).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},n.mix=function(t,e,r){r=0===r?0:r||50;var a=n(t).toRgb(),i=n(e).toRgb(),f=r/100;return n({r:(i.r-a.r)*f+a.r,g:(i.g-a.g)*f+a.g,b:(i.b-a.b)*f+a.b,a:(i.a-a.a)*f+a.a})},n.readability=function(t,e){var r=n(t),a=n(e);return(Math.max(r.getLuminance(),a.getLuminance())+.05)/(Math.min(r.getLuminance(),a.getLuminance())+.05)},n.isReadable=function(t,e,r){var a,i,f,h,s,o=n.readability(t,e);switch(i=!1,(f=r,"AA"!==(h=((f=f||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==h&&(h="AA"),"small"!==(s=(f.size||"small").toLowerCase())&&"large"!==s&&(s="small"),a={level:h,size:s}).level+a.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},n.mostReadable=function(t,e,r){var a,i,f,h,s=null,o=0;i=(r=r||{}).includeFallbackColors,f=r.level,h=r.size;for(var u=0;u<e.length;u++)(a=n.readability(t,e[u]))>o&&(o=a,s=n(e[u]));return n.isReadable(t,s,{level:f,size:h})||!i?s:(r.includeFallbackColors=!1,n.mostReadable(t,["#fff","#000"],r))};var y=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},k=n.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(y);function A(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function w(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var r=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function x(t){return Math.min(1,Math.max(0,t))}function F(t){return parseInt(t,16)}function S(t){return 1==t.length?"0"+t:""+t}function R(t){return t<=1&&(t=100*t+"%"),t}function q(t){return Math.round(255*parseFloat(t)).toString(16)}function E(t){return F(t)/255}var H,N,I,$=(N="[\\s|\\(]+("+(H="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",I="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",{CSS_UNIT:new RegExp(H),rgb:new RegExp("rgb"+N),rgba:new RegExp("rgba"+I),hsl:new RegExp("hsl"+N),hsla:new RegExp("hsla"+I),hsv:new RegExp("hsv"+N),hsva:new RegExp("hsva"+I),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function j(t){return!!$.CSS_UNIT.exec(t)}return n}()}));const n=t=>r(t).isDark();export{n as i}
|
|
1
|
+
import{a as t,b as e}from"./p-86f22026.js";var r=t((function(t){t.exports=function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}var e=/^\s+/,r=/\s+$/;function n(a,i){if(i=i||{},(a=a||"")instanceof n)return a;if(!(this instanceof n))return new n(a,i);var f=function(n){var a={r:0,g:0,b:0},i=1,f=null,h=null,s=null,o=!1,u=!1;return"string"==typeof n&&(n=function(t){t=t.replace(e,"").replace(r,"").toLowerCase();var n,a=!1;if(y[t])t=y[t],a=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(n=$.rgb.exec(t))?{r:n[1],g:n[2],b:n[3]}:(n=$.rgba.exec(t))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=$.hsl.exec(t))?{h:n[1],s:n[2],l:n[3]}:(n=$.hsla.exec(t))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=$.hsv.exec(t))?{h:n[1],s:n[2],v:n[3]}:(n=$.hsva.exec(t))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=$.hex8.exec(t))?{r:F(n[1]),g:F(n[2]),b:F(n[3]),a:E(n[4]),format:a?"name":"hex8"}:(n=$.hex6.exec(t))?{r:F(n[1]),g:F(n[2]),b:F(n[3]),format:a?"name":"hex"}:(n=$.hex4.exec(t))?{r:F(n[1]+""+n[1]),g:F(n[2]+""+n[2]),b:F(n[3]+""+n[3]),a:E(n[4]+""+n[4]),format:a?"name":"hex8"}:!!(n=$.hex3.exec(t))&&{r:F(n[1]+""+n[1]),g:F(n[2]+""+n[2]),b:F(n[3]+""+n[3]),format:a?"name":"hex"}}(n)),"object"==t(n)&&(j(n.r)&&j(n.g)&&j(n.b)?(l=n.r,c=n.g,d=n.b,a={r:255*w(l,255),g:255*w(c,255),b:255*w(d,255)},o=!0,u="%"===String(n.r).substr(-1)?"prgb":"rgb"):j(n.h)&&j(n.s)&&j(n.v)?(f=R(n.s),h=R(n.v),a=function(t,e,r){t=6*w(t,360),e=w(e,100),r=w(r,100);var n=Math.floor(t),a=t-n,i=r*(1-e),f=r*(1-a*e),h=r*(1-(1-a)*e),s=n%6;return{r:255*[r,f,i,i,h,r][s],g:255*[h,r,r,f,i,i][s],b:255*[i,i,h,r,r,f][s]}}(n.h,f,h),o=!0,u="hsv"):j(n.h)&&j(n.s)&&j(n.l)&&(f=R(n.s),s=R(n.l),a=function(t,e,r){var n,a,i;function f(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=w(t,360),e=w(e,100),r=w(r,100),0===e)n=a=i=r;else{var h=r<.5?r*(1+e):r+e-r*e,s=2*r-h;n=f(s,h,t+1/3),a=f(s,h,t),i=f(s,h,t-1/3)}return{r:255*n,g:255*a,b:255*i}}(n.h,f,s),o=!0,u="hsl"),n.hasOwnProperty("a")&&(i=n.a)),i=A(i),{ok:o,format:n.format||u,r:Math.min(255,Math.max(a.r,0)),g:Math.min(255,Math.max(a.g,0)),b:Math.min(255,Math.max(a.b,0)),a:i};var l,c,d}(a);this._originalInput=a,this._r=f.r,this._g=f.g,this._b=f.b,this._a=f.a,this._roundA=Math.round(100*this._a)/100,this._format=i.format||f.format,this._gradientType=i.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=f.ok}function a(t,e,r){t=w(t,255),e=w(e,255),r=w(r,255);var n,a,i=Math.max(t,e,r),f=Math.min(t,e,r),h=(i+f)/2;if(i==f)n=a=0;else{var s=i-f;switch(a=h>.5?s/(2-i-f):s/(i+f),i){case t:n=(e-r)/s+(e<r?6:0);break;case e:n=(r-t)/s+2;break;case r:n=(t-e)/s+4}n/=6}return{h:n,s:a,l:h}}function i(t,e,r){t=w(t,255),e=w(e,255),r=w(r,255);var n,a,i=Math.max(t,e,r),f=Math.min(t,e,r),h=i,s=i-f;if(a=0===i?0:s/i,i==f)n=0;else{switch(i){case t:n=(e-r)/s+(e<r?6:0);break;case e:n=(r-t)/s+2;break;case r:n=(t-e)/s+4}n/=6}return{h:n,s:a,v:h}}function f(t,e,r,n){var a=[S(Math.round(t).toString(16)),S(Math.round(e).toString(16)),S(Math.round(r).toString(16))];return n&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function h(t,e,r,n){return[S(q(n)),S(Math.round(t).toString(16)),S(Math.round(e).toString(16)),S(Math.round(r).toString(16))].join("")}function s(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.s-=e/100,r.s=x(r.s),n(r)}function o(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.s+=e/100,r.s=x(r.s),n(r)}function u(t){return n(t).desaturate(100)}function l(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.l+=e/100,r.l=x(r.l),n(r)}function c(t,e){e=0===e?0:e||10;var r=n(t).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-e/100*255))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-e/100*255))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-e/100*255))),n(r)}function d(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.l-=e/100,r.l=x(r.l),n(r)}function g(t,e){var r=n(t).toHsl(),a=(r.h+e)%360;return r.h=a<0?360+a:a,n(r)}function b(t){var e=n(t).toHsl();return e.h=(e.h+180)%360,n(e)}function m(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var r=n(t).toHsl(),a=[n(t)],i=360/e,f=1;f<e;f++)a.push(n({h:(r.h+f*i)%360,s:r.s,l:r.l}));return a}function v(t){var e=n(t).toHsl(),r=e.h;return[n(t),n({h:(r+72)%360,s:e.s,l:e.l}),n({h:(r+216)%360,s:e.s,l:e.l})]}function M(t,e,r){e=e||6,r=r||30;var a=n(t).toHsl(),i=360/r,f=[n(t)];for(a.h=(a.h-(i*e>>1)+720)%360;--e;)a.h=(a.h+i)%360,f.push(n(a));return f}function p(t,e){e=e||6;for(var r=n(t).toHsv(),a=r.h,i=r.s,f=r.v,h=[],s=1/e;e--;)h.push(n({h:a,s:i,v:f})),f=(f+s)%1;return h}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,r,n=this.toRgb();return e=n.g/255,r=n.b/255,.2126*((t=n.r/255)<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(t){return this._a=A(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=i(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=i(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+n+"%)":"hsva("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=a(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=a(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+n+"%)":"hsla("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return f(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,a){var i=[S(Math.round(t).toString(16)),S(Math.round(e).toString(16)),S(Math.round(r).toString(16)),S(q(n))];return a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*w(this._r,255))+"%",g:Math.round(100*w(this._g,255))+"%",b:Math.round(100*w(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*w(this._r,255))+"%, "+Math.round(100*w(this._g,255))+"%, "+Math.round(100*w(this._b,255))+"%)":"rgba("+Math.round(100*w(this._r,255))+"%, "+Math.round(100*w(this._g,255))+"%, "+Math.round(100*w(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(k[f(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+h(this._r,this._g,this._b,this._a),r=e,a=this._gradientType?"GradientType = 1, ":"";if(t){var i=n(t);r="#"+h(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var r=!1;return e||!(this._a<1&&this._a>=0)||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(r=this.toRgbString()),"prgb"===t&&(r=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(r=this.toHexString()),"hex3"===t&&(r=this.toHexString(!0)),"hex4"===t&&(r=this.toHex8String(!0)),"hex8"===t&&(r=this.toHex8String()),"name"===t&&(r=this.toName()),"hsl"===t&&(r=this.toHslString()),"hsv"===t&&(r=this.toHsvString()),r||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return n(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(l,arguments)},brighten:function(){return this._applyModification(c,arguments)},darken:function(){return this._applyModification(d,arguments)},desaturate:function(){return this._applyModification(s,arguments)},saturate:function(){return this._applyModification(o,arguments)},greyscale:function(){return this._applyModification(u,arguments)},spin:function(){return this._applyModification(g,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(M,arguments)},complement:function(){return this._applyCombination(b,arguments)},monochromatic:function(){return this._applyCombination(p,arguments)},splitcomplement:function(){return this._applyCombination(v,arguments)},triad:function(){return this._applyCombination(m,[3])},tetrad:function(){return this._applyCombination(m,[4])}},n.fromRatio=function(e,r){if("object"==t(e)){var a={};for(var i in e)e.hasOwnProperty(i)&&(a[i]="a"===i?e[i]:R(e[i]));e=a}return n(e,r)},n.equals=function(t,e){return!(!t||!e)&&n(t).toRgbString()==n(e).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},n.mix=function(t,e,r){r=0===r?0:r||50;var a=n(t).toRgb(),i=n(e).toRgb(),f=r/100;return n({r:(i.r-a.r)*f+a.r,g:(i.g-a.g)*f+a.g,b:(i.b-a.b)*f+a.b,a:(i.a-a.a)*f+a.a})},n.readability=function(t,e){var r=n(t),a=n(e);return(Math.max(r.getLuminance(),a.getLuminance())+.05)/(Math.min(r.getLuminance(),a.getLuminance())+.05)},n.isReadable=function(t,e,r){var a,i,f,h,s,o=n.readability(t,e);switch(i=!1,(f=r,"AA"!==(h=((f=f||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==h&&(h="AA"),"small"!==(s=(f.size||"small").toLowerCase())&&"large"!==s&&(s="small"),a={level:h,size:s}).level+a.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},n.mostReadable=function(t,e,r){var a,i,f,h,s=null,o=0;i=(r=r||{}).includeFallbackColors,f=r.level,h=r.size;for(var u=0;u<e.length;u++)(a=n.readability(t,e[u]))>o&&(o=a,s=n(e[u]));return n.isReadable(t,s,{level:f,size:h})||!i?s:(r.includeFallbackColors=!1,n.mostReadable(t,["#fff","#000"],r))};var y=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},k=n.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(y);function A(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function w(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var r=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function x(t){return Math.min(1,Math.max(0,t))}function F(t){return parseInt(t,16)}function S(t){return 1==t.length?"0"+t:""+t}function R(t){return t<=1&&(t=100*t+"%"),t}function q(t){return Math.round(255*parseFloat(t)).toString(16)}function E(t){return F(t)/255}var H,N,I,$=(N="[\\s|\\(]+("+(H="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",I="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",{CSS_UNIT:new RegExp(H),rgb:new RegExp("rgb"+N),rgba:new RegExp("rgba"+I),hsl:new RegExp("hsl"+N),hsla:new RegExp("hsla"+I),hsv:new RegExp("hsv"+N),hsva:new RegExp("hsva"+I),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function j(t){return!!$.CSS_UNIT.exec(t)}return n}()}));const n=t=>r(t).isDark();export{n as i}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-7730250d.system.js","./p-ab179c88.system.js"],(function(n){"use strict";var t,e;return{setters:[function(n){t=n.z},function(n){e=n.l}],execute:function(){var i=890;var o=n("i",(function(n){return n||window.innerWidth<i}));var u=n("s",(function(n){var i=t.checkoutSettings.analyticsProviders.find((function(n){return n.type==="GOOGLE_ANALYTICS"}));if(!i||(i===null||i===void 0?void 0:i.status)==="DISABLED"){return}if(typeof window.gtag==="function"){e("Zonos submits gtag event","log",n);window.gtag("event",n,{})}}))}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-18904b7c.system.js","./p-
|
|
1
|
+
System.register(["./p-18904b7c.system.js","./p-7730250d.system.js"],(function(t){"use strict";var s,o,i,h,n;return{setters:[function(t){s=t.r;o=t.h;i=t.d;h=t.H},function(t){n=t.e}],execute:function(){var e=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host svg{width:var(--width);height:var(--height);fill:var(--color);color:var(--color)}";var r=t("zonos_icon",function(){function t(t){s(this,t);this.autoHeight=false;this.color="gray-1200";this.content=undefined;this.size=24}t.prototype.render=function(){if(!this.content||!this.el.shadowRoot){return null}this.el.shadowRoot.innerHTML=this.content;return o(h,{class:"zonos--elements",style:{"--color":"var(--amino-".concat(this.color,")"),"--font-family":n(),"--height":"".concat(this.autoHeight?"auto":"".concat(this.size,"px")),"--width":"".concat(this.size,"px")}})};Object.defineProperty(t.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());r.style=e}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-18904b7c.system.js","./p-
|
|
1
|
+
System.register(["./p-18904b7c.system.js","./p-7730250d.system.js","./p-23e7c655.system.js"],(function(e){"use strict";var t,s,o,i,a;return{setters:[function(e){t=e.r;s=e.h;o=e.H},function(e){i=e.e},function(e){a=e.c}],execute:function(){var n={pageHeader:{label:"Page Header (3XL) · 34px (2.125rem)",size:"3xl",tag:"h2",weight:900},secondaryPageHeader:{label:'Secondary Page Header (3XL) • 34px, 500 "Medium"',size:"3xl",tag:"h2",weight:500},header:{label:"Header (2XL) · 28px (1.75rem)",size:"2xl",tag:"h3",weight:700},descriptionHeader:{label:"Description Header (2XL) · 28px (1.75rem)",size:"2xl",tag:"h3",weight:700},title:{label:"Title (XL) • 22px (1.375rem)",size:"xl",tag:"h4",weight:600},boldSubheader:{label:"Bold Subheader (L) • 18px (1.125rem)",size:"l",tag:"h5",weight:700},semiBoldSubheader:{label:"Semi Bold Subheader (L / H4) • 18px (1.125rem)",size:"l",tag:"h5",weight:600},subheader:{label:"Subheader (L) • 18px (1.125rem)",size:"l",tag:"h5",weight:500},boldLabel:{label:"Bold Label (Base) • 14px (.875rem)",size:"base",tag:"span",weight:700},semiBoldLabel:{label:"Semi Bold Label (Base) • 14px (.875rem)",size:"base",tag:"span",weight:600},label:{label:"Label (Base) • 14px (.875rem)",size:"base",tag:"span",weight:500},body:{label:"Body (Base) • 14px (.875rem)",size:"base",tag:"span",weight:400},smallHeader:{label:"Small header (S) • 12px (.75rem)",size:"s",tag:"span",weight:600},caption:{label:"Caption (S) • 12px (.75rem)",size:"s",tag:"span",weight:400},hintText:{label:"Hint text (XS) • 10px (.625rem)",size:"xs",tag:"span",weight:400}};var h=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{color:var(--color)}:host(.zonos--text-size-3xl)>*,:host(.zonos--text-size-3xl){font-size:var(--amino-font-size-3xl)}:host(.zonos--text-size-2xl)>*,:host(.zonos--text-size-2xl){font-size:var(--amino-font-size-2xl)}:host(.zonos--text-size-xl)>*,:host(.zonos--text-size-xl){font-size:var(--amino-font-size-xl)}:host(.zonos--text-size-l)>*,:host(.zonos--text-size-l){font-size:var(--amino-font-size-l)}:host(.zonos--text-size-base)>*,:host(.zonos--text-size-base){font-size:var(--amino-font-size-base)}:host(.zonos--text-size-s)>*,:host(.zonos--text-size-s){font-size:var(--amino-font-size-s)}:host(.zonos--text-size-xs)>*,:host(.zonos--text-size-xs){font-size:var(--amino-font-size-xs)}:host(.zonos--text-weight-900)>*,:host(.zonos--text-weight-900){font-weight:900}:host(.zonos--text-weight-700)>*,:host(.zonos--text-weight-700){font-weight:700}:host(.zonos--text-weight-600)>*,:host(.zonos--text-weight-600){font-weight:600}:host(.zonos--text-weight-500)>*,:host(.zonos--text-weight-500){font-weight:500}:host(.zonos--text-weight-400)>*,:host(.zonos--text-weight-400){font-weight:400}";var l=e("zonos_text",function(){function e(e){t(this,e);this.class="";this.color="gray-1200";this.size=undefined;this.type="body";this.weight=undefined;this.content=undefined;this.ready=false}e.prototype.componentDidRender=function(){var e=this;setTimeout((function(){e.ready=true}),100)};e.prototype.render=function(){var e=n.body,t=e.size,h=e.tag,l=e.weight;var r=n[this.type],z=r.size,x=r.tag,g=r.weight;var f=this.size||z||t;var m=this.weight||g||l;var d=x||h;var u=function(){switch(d){case"h2":return s("h2",null,s("slot",null));case"h3":return s("h3",null,s("slot",null));case"h4":return s("h4",null,s("slot",null));case"h5":return s("h5",null,s("slot",null));case"span":default:return s("span",null,s("slot",null))}};return s(o,{class:a(["zonos--text-size-".concat(f),"zonos--text-weight-".concat(m),this.class]),style:{"--color":this.color?"var(--amino-".concat(this.color,")"):"","--font-family":i()}},u())};return e}());l.style=h}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o,a as s,h as t,H as n,F as i,c as e,d as a}from"./p-956efa27.js";import{c as r,s as c,p as h,o as l,i as d,b as p}from"./p-2b41549a.js";import{t as m,h as u}from"./p-a244579e.js";import{z,e as g}from"./p-86f22026.js";import{g as f}from"./p-2e1e9074.js";import{s as y,i as b}from"./p-06a332cd.js";import{c as v}from"./p-b4b7f705.js";import"./p-4b3baf99.js";const x=({amount:o,currency:s,showCurrencyText:t})=>t?`${new Intl.NumberFormat("en-US",{currency:s,style:"currency"}).format(o)} ${s}`:new Intl.NumberFormat("en-US",{currency:s,style:"currency"}).format(o),w=class{constructor(s){o(this,s),this.errorImages=[]}render(){var o;const i=s("./assets/empty-item.jpeg"),e=(null===(o=r.exchangeRate)||void 0===o?void 0:o.rate)||1;return t(n,{class:"zonos--cart-items zonos--elements"},t("table",{class:"zonos--cart-table"},t("tbody",null,r.items.map((o=>{const s=o.imageUrl;return t("tr",{class:"zonos--cart-item"},t("td",{class:"zonos--column zonos--cart-item-image"},s&&!this.errorImages.includes(s)?t("img",{alt:o.name,onError:()=>{this.errorImages=[...this.errorImages,s]},src:o.imageUrl,style:{"min-width":"40px"},width:40}):t("img",{alt:o.name,src:i,width:40})),t("td",{class:"zonos--column zonos--cart-item-name"},t("zonos-text",{type:"label"},o.name)),t("td",{class:"zonos--column zonos--cart-item-price"},t("zonos-text",{type:"semiBoldLabel"},x({amount:o.amount*o.quantity*e,currency:r.currency}))))})))))}static get assetsDirs(){return["assets"]}};w.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--amino-font-size-base)}:host .zonos--cart-table .zonos--column{padding:var(--amino-space-8);font-size:var(--amino-font-size-base)}:host .zonos--cart-table .zonos--column:last-child{text-align:right}:host .zonos--cart-table .zonos--column:first-child{width:60px}:host img{min-width:40px}";const k=class{constructor(s){o(this,s)}render(){const o=r.total-r.dutiesTaxFees,s="payment"===r.step||"shipping"===r.step;return t(n,{class:"zonos--cart-subtotal zonos--elements"},t("table",{class:"zonos--cart-table"},t("tr",{class:"zonos--row zonos--cart-subtotal"},t("td",{class:"zonos--column"}),t("td",{class:"zonos--column zonos--cart-subtotal-title"},t("zonos-text",{type:"semiBoldLabel"},m("Cart subtotal"))),t("td",{class:"zonos--column zonos--cart-subtotal-price"},t("zonos-text",{type:"semiBoldLabel"},x({amount:r.subtotal,currency:r.currency})))),t("tr",{class:"zonos--row zonos--cart-shipping"},t("td",{class:"zonos--column"}),t("td",{class:"zonos--column zonos--cart-subtotal-title"},r.selectedShippingOption?t(i,null,t("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},r.selectedShippingOption.displayName),r.selectedShippingOptionTransitTime&&t("zonos-text",{class:"zonos--caption",type:"caption"},r.selectedShippingOptionTransitTime," ",m("business days"))):t(i,null,t("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},m("Shipping")),t("zonos-text",{class:"zonos--caption",type:"caption"},m("No shipping method selected")))),t("td",{class:"zonos--column zonos--cart-subtotal-price"},r.shipping?x({amount:r.shipping,currency:r.currency}):"-")),s&&t("tr",{class:"zonos--row zonos--cart-duties"},t("td",{class:"zonos--column"}),t("td",{class:"zonos--column zonos--cart-subtotal-title"},t("div",{class:"zonos--title-with-icon"},t("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},m("Duties, taxes, and fees")),t("zonos-icon",{content:'<svg viewBox="0 0 17 16" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M1.96704 8.00065C1.96704 4.31875 4.93024 1.33398 8.58554 1.33398C12.2408 1.33398 15.204 4.31875 15.204 8.00065C15.204 11.6826 12.2408 14.6673 8.58554 14.6673C4.93024 14.6673 1.96704 11.6825 1.96704 8.00065Z" fill="#C5C6CA"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M8.58543 4.66016C8.95096 4.66016 9.24728 4.95863 9.24728 5.32682V5.33349C9.24728 5.70168 8.95096 6.00016 8.58543 6.00016C8.2199 6.00016 7.92358 5.70168 7.92358 5.33349V5.32682C7.92358 4.95863 8.2199 4.66016 8.58543 4.66016ZM8.58543 7.33349C8.95096 7.33349 9.24728 7.63197 9.24728 8.00016V10.6668C9.24728 11.035 8.95096 11.3335 8.58543 11.3335C8.2199 11.3335 7.92358 11.035 7.92358 10.6668V8.00016C7.92358 7.63197 8.2199 7.33349 8.58543 7.33349Z" fill="#4D505A"/>\n</svg>\n',size:16})),!!r.isSelectedShippingAboveDeminimis&&t("zonos-text",{color:"gray-800",type:"body"},m("Order is over the de minimis threshold for both duty and tax"))),t("td",{class:"zonos--column zonos--cart-subtotal-price"},t("div",{class:"zonos--cart-duty-tax-price"},r.dutiesTaxFees?x({amount:r.dutiesTaxFees,currency:r.currency}):"-",r.isSelectedShippingGuarantee&&t("zonos-badge",null,m("Guaranteed"))))),t("tr",{class:"zonos--row zonos--cart-pay-total"},t("td",{class:"zonos--column"}),t("td",{class:"zonos--column"},t("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},m("Order total"))),t("td",{class:"zonos--column"},t("zonos-text",{type:"semiBoldLabel"},x({amount:"shipping"===r.step?o:r.total,currency:r.currency}))))))}static get assetsDirs(){return["assets"]}};k.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--amino-font-size-base)}:host .zonos--cart-table .zonos--column{padding:var(--amino-space-20) var(--amino-space-8);vertical-align:top}:host .zonos--cart-table .zonos--column:last-child{text-align:right}:host .zonos--cart-table .zonos--column:first-child{width:60px}:host .zonos--title-with-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--amino-space-8)}:host .zonos--cart-subtotal-title,:host .zonos--cart-subtotal-price{border-bottom:1px solid var(--amino-gray-200)}:host .zonos--cart-duty-tax-price{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:end;align-items:flex-end;gap:5px}:host .zonos--cart-subtotal-price{text-align:right}";const C=class{constructor(s){o(this,s),this.closeClick=e(this,"closeClick",7),this.pullOrder=async()=>{var o,s;const t=r.checkoutSessionId,{errors:n,json:i}=await u(`https://v1.route.js.zonos.com/api/zonos-elements/get-order?checkoutSessionId=${t}`);return n.length||!(null==i?void 0:i.id)?null:(await(null===(s=(o=z.checkoutSettings).onOrderSuccess)||void 0===s?void 0:s.call(o,i)),i)},this.getPullOrder=async(o=0)=>{const s=await this.pullOrder();s?this.order=s:!s&&o<5&&(await new Promise((o=>setTimeout(o,1e3))),await this.getPullOrder(o+1))},this.checkPaymentStatus=async()=>{this.isLoading=!0;const o=new URLSearchParams(window.location.search).get("payment_intent_client_secret")||c.clientSecret;if(o||this.storybookForceStatus){const{error:s,messages:t}=await h({clientSecret:o,storybookForceStatus:this.storybookForceStatus});if(this.notificationType=s?"error":"success",this.notificationMessages=t||[],this.notificationTitle=m(s?"Payment failed":"You're all set!"),s)y("zonos-checkout-payment-fail");else{y("zonos-checkout-success");const o=new CustomEvent("zonos-checkout-success",{detail:{message:"Zonos Checkout successfully processed order"}});document.dispatchEvent(o)}"success"===this.notificationType&&this.getPullOrder()}l(),this.isLoading=!1},this.closeClickHandler=()=>{this.closeClick.emit()},this.borderRadius="ROUNDED",this.storybookForceStatus=void 0,this.overrideNotification=void 0,this.isLoading=!0,this.notificationType="success",this.notificationTitle="",this.notificationMessages=[],this.order=null}componentDidLoad(){if(this.overrideNotification)return this.notificationType=this.overrideNotification.type,this.notificationTitle=this.overrideNotification.title,this.notificationMessages=this.overrideNotification.messages,void(this.isLoading=!1);this.checkPaymentStatus()}render(){return t(n,{class:"zonos--checkout-finish zonos--elements",style:{"--border-radius":f(this.borderRadius)}},this.isLoading&&t("div",{class:"loading-wrapper"},t("zonos-spinner",null)),!this.isLoading&&t(i,null,t("div",{class:"zonos--group"},t("zonos-icon","success"===this.notificationType?{color:"blue-800",content:'<svg color="var(--amino-blue-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Z" data-is-secondary-color="true" fill="var(--amino-blue-100)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M15.707 9.293a1 1 0 0 1 0 1.414l-3.646 3.647a1.5 1.5 0 0 1-2.122 0l-1.646-1.647a1 1 0 1 1 1.414-1.414L11 12.586l3.293-3.293a1 1 0 0 1 1.414 0Z" fill="currentColor" fill-rule="evenodd"></path></svg>',size:50}:{color:"red-800",content:'<svg color="var(--amino-red-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" data-is-secondary-color="true" fill="var(--amino-red-200)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>',size:50}),t("zonos-text",{class:"zonos--title",type:"semiBoldSubheader"},this.notificationTitle),t("zonos-text",null,this.notificationMessages.map((o=>t(i,null,o,t("br",null))))),t("zonos-button",{onClick:()=>this.closeClickHandler(),size:"md",variant:"primary"},m("Keep shopping")))))}static get assetsDirs(){return["assets"]}};C.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host .zonos--group{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;margin-bottom:var(--amino-space-24);border-radius:var(--border-radius, 10px);gap:var(--amino-space-24);max-width:360px;width:auto;margin:auto;margin-top:var(--amino-space-24);background-color:var(--amino-gray-50);padding:var(--amino-space-20)}:host zonos-button{width:100%}:host .loading-wrapper{min-height:300px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}";const I=class{constructor(s){o(this,s),this.continueClicked=e(this,"continueClicked",7),this.continueClickHandler=()=>{this.continueClicked.emit()},this.paymentError=!1,this.submitBtnType=void 0,this.continueLoading=!1,this.submitBtnColor=void 0,this.disabled=!0}watchFormComplete(){this.disabled||y("zonos-checkout-payment-info")}render(){var o;return c.stripeElements?(this.disabled=!(null===(o=c.stripePaymentEventData)||void 0===o?void 0:o.complete),t(n,{class:"zonos--checkout-payment zonos--elements"},t("div",{class:"zonos--group"},t("zonos-text",{class:"zonos--title",type:"semiBoldSubheader"},m("Payment method")),this.paymentError&&t("zonos-banner",{class:"zonos--payment-error-banner",intent:"error"},m("We couldn't complete your payment. Please verify the payment details and try again.")),t("zonos-payment",null)),t("div",{class:"zonos--group-btn"},t("zonos-button",{backgroundColor:this.submitBtnColor,"is-disabled":this.disabled,loading:this.continueLoading,onClick:()=>this.continueClickHandler(),size:"lg",variant:this.submitBtnType},"Pay"," ",x({amount:r.total,currency:r.currency}))))):null}static get watchers(){return{disabled:["watchFormComplete"]}}};I.style=".sc-zonos-checkout-payment-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-checkout-payment-h *.sc-zonos-checkout-payment{font-family:var(--font-family, Inter), Inter}.sc-zonos-checkout-payment-h img.sc-zonos-checkout-payment{max-width:100%}.sc-zonos-checkout-payment-h dl.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h dd.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h1.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h2.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h3.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h4.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h5.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h6.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h hr.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h figure.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h p.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h pre.sc-zonos-checkout-payment{margin:0}.sc-zonos-checkout-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-checkout-payment-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-checkout-payment-h .zonos--title.sc-zonos-checkout-payment{margin-bottom:var(--amino-space-24)}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment{margin-bottom:var(--amino-space-20);overflow:auto;padding:5px}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar{width:10px}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-track{background:var(--amino-gray-50)}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-checkout-payment-h .zonos--payment-error-banner.sc-zonos-checkout-payment{margin-bottom:var(--amino-space-8)}.sc-zonos-checkout-payment-h .zonos--group-btn.sc-zonos-checkout-payment{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.sc-zonos-checkout-payment-h .zonos--group-btn.sc-zonos-checkout-payment zonos-button.sc-zonos-checkout-payment{width:calc(100% - 10px)}";const L=class{constructor(s){o(this,s),this.collapsed=!1,this.collapseSize=0,this.height=this.el.scrollHeight}getElementHeight(){return this.collapsed?`${this.collapseSize}px`:`${this.height}px`}componentDidLoad(){this.height=this.el.scrollHeight}componentDidRender(){var o,s,t;null===(t=null===(s=null===(o=this.el.shadowRoot)||void 0===o?void 0:o.querySelector("iframe"))||void 0===s?void 0:s.contentWindow)||void 0===t||t.addEventListener("resize",(()=>{this.height=this.el.scrollHeight}))}render(){return this.height=this.el.scrollHeight,t(n,{class:"zonos--elements zonos--collapse",style:{"--font-family":g(),height:this.getElementHeight()}},t("div",null,t("iframe",{class:"height-change-listener",tabindex:"-1",title:"collapse-height-change-listener"}),t("slot",null)))}get el(){return a(this)}};L.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;overflow:hidden}:host div{position:relative}:host iframe{width:0;height:100%;position:absolute;top:0;border:0}";const j=class{constructor(s){o(this,s),this.continueClicked=e(this,"continueClicked",7),this.continueClickHandler=()=>{this.continueClicked.emit()},this.continueLoading=!1,this.submitBtnType=void 0,this.submitBtnColor=void 0,this.defaultAddress=null,this.disabled=!0}watchFormComplete(){this.disabled||y("zonos-checkout-customer-info")}render(){var o,s;return c.stripeElements?(this.disabled=!(null===(o=c.stripeAddressEventData)||void 0===o?void 0:o.complete)||!(null===(s=c.stripeLinkEventData)||void 0===s?void 0:s.complete),t(n,{class:"zonos--customer-info zonos--elements"},t("div",{class:"zonos--group"},t("zonos-text",{class:"zonos--title",type:"semiBoldSubheader"},m("Customer information")),t("zonos-link-authentication",{titleText:m("Contact")}),t("zonos-address",{defaultAddress:this.defaultAddress,titleText:m("Address"),type:"shipping"})),t("div",{class:"zonos--group-btn"},t("zonos-button",{backgroundColor:this.submitBtnColor,isDisabled:this.disabled,loading:this.continueLoading,onClick:()=>this.continueClickHandler(),size:"lg",variant:this.submitBtnType},m("Continue to shipping"))))):null}static get watchers(){return{disabled:["watchFormComplete"]}}};j.style=".sc-zonos-customer-info-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-customer-info-h *.sc-zonos-customer-info{font-family:var(--font-family, Inter), Inter}.sc-zonos-customer-info-h img.sc-zonos-customer-info{max-width:100%}.sc-zonos-customer-info-h dl.sc-zonos-customer-info,.sc-zonos-customer-info-h dd.sc-zonos-customer-info,.sc-zonos-customer-info-h h1.sc-zonos-customer-info,.sc-zonos-customer-info-h h2.sc-zonos-customer-info,.sc-zonos-customer-info-h h3.sc-zonos-customer-info,.sc-zonos-customer-info-h h4.sc-zonos-customer-info,.sc-zonos-customer-info-h h5.sc-zonos-customer-info,.sc-zonos-customer-info-h h6.sc-zonos-customer-info,.sc-zonos-customer-info-h hr.sc-zonos-customer-info,.sc-zonos-customer-info-h figure.sc-zonos-customer-info,.sc-zonos-customer-info-h p.sc-zonos-customer-info,.sc-zonos-customer-info-h pre.sc-zonos-customer-info{margin:0}.sc-zonos-customer-info-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-customer-info-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-customer-info-h .zonos--title.sc-zonos-customer-info{margin-bottom:var(--amino-space-20)}.sc-zonos-customer-info-h .zonos--link-authentication.sc-zonos-customer-info{margin-bottom:var(--amino-space-32)}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info{margin-bottom:var(--amino-space-20);overflow:auto;padding:5px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar{width:10px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-track{background:var(--amino-gray-50)}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info zonos-button.sc-zonos-customer-info{width:calc(100% - 10px)}";const B=class{constructor(s){o(this,s),this.closeDialog=e(this,"closeDialog",7),this.isMobileMode=()=>this.mobile||window.innerWidth<=768,this.closeButtonHandler=()=>{this.closeDialog.emit()},this.clickOutsideDialogHandler=o=>{o.target!==o.currentTarget||this.noClickOutside||this.closeDialog.emit()},this.open=!1,this.headerText="",this.width="460px",this.height=void 0,this.noHeader=!1,this.noBodyPadding=!1,this.noBorder=!1,this.footerRightAction=null,this.borderStyle=void 0,this.noCloseButton=!1,this.noClickOutside=!1,this.mobile=!1,this.isLoading=!0,this.isMobile=!1}handleWindowResize(){this.isMobile=this.isMobileMode()}componentDidLoad(){this.isMobile=this.isMobileMode()}render(){document.body.style.overflow=this.open?"hidden":"auto";const o=f(this.borderStyle);return t(n,{class:v(["zonos--elements",this.open&&"open",this.isLoading&&"is-loading",this.noBorder&&"no-border",this.isMobile&&"mobile"]),style:{"--border-radius":o,"--font-family":g(),"--height":this.height||"initial","--width":this.width}},t("div",{class:"zonos--backdrop"}),t("div",{"aria-hidden":"true",class:"zonos--dialog-layout",onClick:this.clickOutsideDialogHandler},t("div",{class:"zonos--dialog"},this.isLoading&&t("div",{class:"zonos--loading"},t("zonos-spinner",{size:30})),(this.headerText||!this.noCloseButton)&&t("div",{class:"zonos--header"},this.headerText&&t("h3",{class:"zonos--header-text"},this.headerText),!this.noCloseButton&&t("zonos-button",{class:"zonos--close-button",icon:t("zonos-icon",{content:'<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>'}),noBackground:!0,onClick:this.closeButtonHandler})),t("div",{class:v(["zonos--body",this.noBodyPadding&&"zonos--no-body-padding"])},t("slot",null)),this.footerRightAction&&t("div",{class:"zonos--footer"},t("div",{class:"zonos--footer-right-action"},this.footerRightAction)))))}static get assetsDirs(){return["assets"]}};B.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--backdrop,:host .zonos--dialog-layout{opacity:0;z-index:-999;visibility:hidden;-webkit-transition:0.3s all ease;transition:0.3s all ease}:host .zonos--backdrop{width:100vw;height:100vh;left:0px;top:0px;background:var(--amino-backdrop-color);z-index:-999;opacity:0;visibility:hidden;position:fixed}:host .zonos--loading{position:absolute;left:0;right:0;bottom:0;top:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;z-index:1002;background:white}:host .zonos--dialog-layout{width:100vw;height:100vh;left:0;top:0;position:fixed;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:var(--amino-text-color);visibility:hidden}:host .zonos--dialog{position:relative;z-index:1001;background:var(--amino-gray-0);max-width:90vw;max-height:90vh;min-height:500px;height:var(--height, auto);width:var(--width, auto);border-radius:var(--border-radius, var(--amino-radius-10));outline:none;-webkit-box-shadow:var(--amino-v3-shadow-xxl);box-shadow:var(--amino-v3-shadow-xxl);border:var(--amino-border);overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host .zonos--header{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;padding:var(--amino-space-16) var(--amino-space-24)}:host .zonos--header .-zonos-stencil-library--header-text{-ms-flex-positive:1;flex-grow:1}:host .zonos--header .zonos--close-button{width:var(--amino-size-md);height:var(--amino-size-md);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;border-radius:var(--amino-radius-10)}:host .zonos--header .zonos--close-button:hover{background:var(--amino-hover-color)}:host .zonos--body{padding:var(--amino-space-8) var(--amino-space-24);max-height:100%;height:100%;overflow:auto}:host .zonos--body.zonos--no-body-padding{padding:0}:host .zonos--footer{padding:var(--amino-space-16) var(--amino-space-24)}:host(.open) .zonos--dialog-layout,:host(.open) .zonos--backdrop{visibility:visible}:host(.open) .zonos--backdrop{z-index:1001;opacity:0.65}:host(.open) .zonos--dialog-layout{opacity:1;z-index:1002;-webkit-transform:scale(1);transform:scale(1)}:host(.no-border) .zonos--dialog{border:none}:host(.mobile) .zonos--dialog{max-width:100vw;max-height:100vh;height:100%;width:100%;border-radius:0;-webkit-box-shadow:none;box-shadow:none;border:none}";const D=class{constructor(s){o(this,s),this.theme="LIGHT",this.width="auto",this.class=""}render(){const o="DARK"===this.theme?"invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%)":"whiteinvert(0%) sepia(100%) saturate(32%) hue-rotate(92deg) brightness(107%) contrast(107%)";return t(n,{class:v(["zonos--elements zonos--logo",this.class]),style:{"--filter-color":o,"--font-family":g(),"--width":this.width}},t("img",{alt:"Zonos Logo",src:s("./assets/ZonosLogo.png")}))}static get assetsDirs(){return["assets"]}};D.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host img{-webkit-filter:var(--filter-color);filter:var(--filter-color);width:var(--width)}";const S=class{constructor(s){o(this,s),this.mobile=!1,this.collapsed=!1,this.isMobile=!1}handleWindowResize(){this.isMobile=b(this.mobile)}componentWillLoad(){this.isMobile=b(this.mobile)}render(){const o=this.isMobile?"boldSubheader":"semiBoldLabel",s=this.isMobile?"boldSubheader":"secondaryPageHeader",i=this.isMobile?"gray-1200":"gray-800",e=r.total-r.dutiesTaxFees;return t(n,{class:v(["zonos--review zonos--elements",this.isMobile&&"mobile"])},t("div",{class:"zonos--title"},t("zonos-text",{color:i,type:o},m("Pay")," ",z.organizationName),(()=>this.isMobile?t("zonos-icon",this.collapsed?{color:"gray-1200",content:'<svg color="var(--amino-gray-400)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M17.707 14.707a1 1 0 0 1-1.414 0L12 10.414l-4.293 4.293a1 1 0 0 1-1.414-1.414l4.93-4.93a1.1 1.1 0 0 1 1.555 0l4.93 4.93a1 1 0 0 1 0 1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>'}:{color:"gray-1200",content:'<svg color="var(--amino-gray-400)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M6.293 9.293a1 1 0 0 1 1.414 0L12 13.586l4.293-4.293a1 1 0 0 1 1.414 1.414l-4.93 4.93a1.1 1.1 0 0 1-1.555 0l-4.93-4.93a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>'}):null)()),t("div",{class:"zonos--total-pay"},t("zonos-text",{type:s},x({amount:"shipping"===r.step?e:r.total,currency:r.currency}))))}static get assetsDirs(){return["assets"]}};S.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--total-pay{margin:var(--amino-space-16) 0 var(--amino-space-32)}:host(.mobile){display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:var(--amino-space-24);-ms-flex-pack:justify;justify-content:space-between;padding:var(--amino-space-4) 0;margin-bottom:var(--amino-space-8)}:host(.mobile) .zonos--title{display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;gap:var(--amino-space-8)}:host(.mobile) .zonos--total-pay{margin:0}";const _=class{constructor(s){o(this,s),this.continueClicked=e(this,"continueClicked",7),this.handleRadioSelected=async o=>{var s;if(this.selectedShippingMethod=o.detail,!this.selectedShippingMethod)return;const t=(null===(s=r.shippingData)||void 0===s?void 0:s.find((o=>{var s;return o.id===(null===(s=this.selectedShippingMethod)||void 0===s?void 0:s.value)})))||null;t&&await d(t)&&(this.disabled=!1)},this.continueClickHandler=()=>{this.continueClicked.emit()},this.continueLoading=!1,this.submitBtnColor=void 0,this.submitBtnType=void 0,this.selectedShippingMethod=null,this.disabled=!0}watchFormComplete(){this.disabled||y("zonos-checkout-shipping-info")}render(){var o;const s=null===(o=r.shippingData)||void 0===o?void 0:o.flatMap((o=>{var s,t;const{expectedDate:n,maxTransit:i,minTransit:e}=p(o),a=n?`${m("Expected delivery")} ${n}`:"",c=e&&i?`(${e}-${i} ${m("business days")})`:"",h=(null===(t=null===(s=r.landedCostData)||void 0===s?void 0:s.find((s=>{var t;return(null===(t=s.landedCost)||void 0===t?void 0:t.shipmentRating.id)===o.id})))||void 0===t?void 0:t.subtotals.shipping)||0;return{caption:c,label:o.displayName,price:x({amount:h,currency:r.currency}),sublabel:a,value:o.id}}));return t(n,{class:"zonos--shipping zonos--elements"},t("div",{class:"zonos--group"},t("zonos-text",{class:"zonos--title",type:"semiBoldSubheader"},m("Shipping information")),t("zonos-text",{class:"zonos--shipping-method-title",type:"semiBoldLabel"},m("Shipping method")),(null==s?void 0:s.length)?t("zonos-shipping-rich-radio",{items:s||[],onRadioSelected:o=>this.handleRadioSelected(o)}):t("zonos-banner",{bannerTitle:"No shipping methods found - try editing your address or contacting support if the error persists",intent:"error"})),t("zonos-button",{backgroundColor:this.submitBtnColor,"is-disabled":this.disabled,loading:this.continueLoading,onClick:()=>this.continueClickHandler(),size:"lg",variant:this.submitBtnType},m("Go to payment")))}static get watchers(){return{disabled:["watchFormComplete"]}}};_.style=".sc-zonos-shipping-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-shipping-h *.sc-zonos-shipping{font-family:var(--font-family, Inter), Inter}.sc-zonos-shipping-h img.sc-zonos-shipping{max-width:100%}.sc-zonos-shipping-h dl.sc-zonos-shipping,.sc-zonos-shipping-h dd.sc-zonos-shipping,.sc-zonos-shipping-h h1.sc-zonos-shipping,.sc-zonos-shipping-h h2.sc-zonos-shipping,.sc-zonos-shipping-h h3.sc-zonos-shipping,.sc-zonos-shipping-h h4.sc-zonos-shipping,.sc-zonos-shipping-h h5.sc-zonos-shipping,.sc-zonos-shipping-h h6.sc-zonos-shipping,.sc-zonos-shipping-h hr.sc-zonos-shipping,.sc-zonos-shipping-h figure.sc-zonos-shipping,.sc-zonos-shipping-h p.sc-zonos-shipping,.sc-zonos-shipping-h pre.sc-zonos-shipping{margin:0}.sc-zonos-shipping-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-shipping-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-shipping-h .zonos--title.sc-zonos-shipping{margin-bottom:var(--amino-space-24)}.sc-zonos-shipping-h .zonos--shipping-method-title.sc-zonos-shipping{margin-bottom:var(--amino-space-16)}.sc-zonos-shipping-h .zonos-shipping-rich-radio.sc-zonos-shipping{margin-bottom:var(--amino-space-24)}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping{margin-bottom:var(--amino-space-20);overflow:auto;padding:5px}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar{width:10px}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-track{background:var(--amino-gray-50)}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-shipping-h .zonos--group-btn.sc-zonos-shipping{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.sc-zonos-shipping-h .zonos--group-btn.sc-zonos-shipping zonos-button.sc-zonos-shipping{width:calc(100% - 10px)}.sc-zonos-shipping-h zonos-banner.sc-zonos-shipping{margin-top:var(--amino-space-24)}";export{w as zonos_cart_items,k as zonos_cart_subtotal,C as zonos_checkout_finish,I as zonos_checkout_payment,L as zonos_collapse,j as zonos_customer_info,B as zonos_dialog,D as zonos_logo,S as zonos_review,_ as zonos_shipping}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __spreadArray=this&&this.__spreadArray||function(r,n,t){if(t||arguments.length===2)for(var e=0,i=n.length,a;e<i;e++){if(a||!(e in n)){if(!a)a=Array.prototype.slice.call(n,0,e);a[e]=n[e]}}return r.concat(a||Array.prototype.slice.call(n))};System.register(["./p-18904b7c.system.js"],(function(r){"use strict";var n,t;return{setters:[function(r){n=r.g;t=r.f}],execute:function(){r("a",R);var e=function(r,n,t){var e=r.get(n);if(!e){r.set(n,[t])}else if(!e.includes(t)){e.push(t)}};var i=function(r,n){var t;return function(){var e=[];for(var i=0;i<arguments.length;i++){e[i]=arguments[i]}if(t){clearTimeout(t)}t=setTimeout((function(){t=0;r.apply(void 0,e)}),n)}};var a=function(r){return!("isConnected"in r)||r.isConnected};var u=i((function(r){for(var n=0,t=r.keys();n<t.length;n++){var e=t[n];r.set(e,r.get(e).filter(a))}}),2e3);var o=function(){if(typeof n!=="function"){return{}}var r=new Map;return{dispose:function(){return r.clear()},get:function(t){var i=n();if(i){e(r,t,i)}},set:function(n){var e=r.get(n);if(e){r.set(n,e.filter(t))}u(r)},reset:function(){r.forEach((function(r){return r.forEach(t)}));u(r)}}};var v=function(r){return typeof r==="function"?r():r};var f=function(r,n){if(n===void 0){n=function(r,n){return r!==n}}var t=v(r);var e=new Map(Object.entries(t!==null&&t!==void 0?t:{}));var i={dispose:[],get:[],set:[],reset:[]};var a=function(){var n;e=new Map(Object.entries((n=v(r))!==null&&n!==void 0?n:{}));i.reset.forEach((function(r){return r()}))};var u=function(){i.dispose.forEach((function(r){return r()}));a()};var o=function(r){i.get.forEach((function(n){return n(r)}));return e.get(r)};var f=function(r,t){var a=e.get(r);if(n(t,a,r)){e.set(r,t);i.set.forEach((function(n){return n(r,t,a)}))}};var l=typeof Proxy==="undefined"?{}:new Proxy(t,{get:function(r,n){return o(n)},ownKeys:function(r){return Array.from(e.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(r,n){return e.has(n)},set:function(r,n,t){f(n,t);return true}});var s=function(r,n){i[r].push(n);return function(){c(i[r],n)}};var d=function(n,t){var e=s("set",(function(r,e){if(r===n){t(e)}}));var i=s("reset",(function(){return t(v(r)[n])}));return function(){e();i()}};var b=function(){var r=[];for(var n=0;n<arguments.length;n++){r[n]=arguments[n]}var t=r.reduce((function(r,n){if(n.set){r.push(s("set",n.set))}if(n.get){r.push(s("get",n.get))}if(n.reset){r.push(s("reset",n.reset))}if(n.dispose){r.push(s("dispose",n.dispose))}return r}),[]);return function(){return t.forEach((function(r){return r()}))}};var h=function(r){var n=e.get(r);i.set.forEach((function(t){return t(r,n,n)}))};return{state:l,get:o,set:f,on:s,onChange:d,use:b,dispose:u,reset:a,forceUpdate:h}};var c=function(r,n){var t=r.indexOf(n);if(t>=0){r[t]=r[r.length-1];r.length--}};var l=r("c",(function(r,n){var t=f(r,n);t.use(o());return t}));function s(){this.__data__=[];this.size=0}var d=s;function b(r,n){return r===n||r!==r&&n!==n}var h=b;function y(r,n){var t=r.length;while(t--){if(h(r[t][0],n)){return t}}return-1}var p=y;var j=Array.prototype;var w=j.splice;function g(r){var n=this.__data__,t=p(n,r);if(t<0){return false}var e=n.length-1;if(t==e){n.pop()}else{w.call(n,t,1)}--this.size;return true}var m=g;function A(r){var n=this.__data__,t=p(n,r);return t<0?undefined:n[t][1]}var O=A;function _(r){return p(this.__data__,r)>-1}var E=_;function D(r,n){var t=this.__data__,e=p(t,r);if(e<0){++this.size;t.push([r,n])}else{t[e][1]=n}return this}var S=D;function B(r){var n=-1,t=r==null?0:r.length;this.clear();while(++n<t){var e=r[n];this.set(e[0],e[1])}}B.prototype.clear=d;B.prototype["delete"]=m;B.prototype.get=O;B.prototype.has=E;B.prototype.set=S;var C=B;function I(){this.__data__=new C;this.size=0}var T=I;function P(r){var n=this.__data__,t=n["delete"](r);this.size=n.size;return t}var U=P;function L(r){return this.__data__.get(r)}var F=L;function M(r){return this.__data__.has(r)}var N=M;var x=r("b",typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{});function R(r,n,t){return t={path:n,exports:{},require:function(r,n){return $()}},r(t,t.exports),t.exports}function $(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var z=typeof x=="object"&&x&&x.Object===Object&&x;var k=z;var G=typeof self=="object"&&self&&self.Object===Object&&self;var H=k||G||Function("return this")();var K=r("_",H);var V=K.Symbol;var q=V;var W=Object.prototype;var J=W.hasOwnProperty;var Q=W.toString;var X=q?q.toStringTag:undefined;function Y(r){var n=J.call(r,X),t=r[X];try{r[X]=undefined;var e=true}catch(r){}var i=Q.call(r);if(e){if(n){r[X]=t}else{delete r[X]}}return i}var Z=Y;var rr=Object.prototype;var nr=rr.toString;function tr(r){return nr.call(r)}var er=tr;var ir="[object Null]",ar="[object Undefined]";var ur=q?q.toStringTag:undefined;function or(r){if(r==null){return r===undefined?ar:ir}return ur&&ur in Object(r)?Z(r):er(r)}var vr=r("f",or);function fr(r){var n=typeof r;return r!=null&&(n=="object"||n=="function")}var cr=r("g",fr);var lr="[object AsyncFunction]",sr="[object Function]",dr="[object GeneratorFunction]",br="[object Proxy]";function hr(r){if(!cr(r)){return false}var n=vr(r);return n==sr||n==dr||n==lr||n==br}var yr=hr;var pr=K["__core-js_shared__"];var jr=pr;var wr=function(){var r=/[^.]+$/.exec(jr&&jr.keys&&jr.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function gr(r){return!!wr&&wr in r}var mr=gr;var Ar=Function.prototype;var Or=Ar.toString;function _r(r){if(r!=null){try{return Or.call(r)}catch(r){}try{return r+""}catch(r){}}return""}var Er=_r;var Dr=/[\\^$.*+?()[\]{}|]/g;var Sr=/^\[object .+?Constructor\]$/;var Br=Function.prototype,Cr=Object.prototype;var Ir=Br.toString;var Tr=Cr.hasOwnProperty;var Pr=RegExp("^"+Ir.call(Tr).replace(Dr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ur(r){if(!cr(r)||mr(r)){return false}var n=yr(r)?Pr:Sr;return n.test(Er(r))}var Lr=Ur;function Fr(r,n){return r==null?undefined:r[n]}var Mr=Fr;function Nr(r,n){var t=Mr(r,n);return Lr(t)?t:undefined}var xr=Nr;var Rr=xr(K,"Map");var $r=Rr;var zr=xr(Object,"create");var kr=zr;function Gr(){this.__data__=kr?kr(null):{};this.size=0}var Hr=Gr;function Kr(r){var n=this.has(r)&&delete this.__data__[r];this.size-=n?1:0;return n}var Vr=Kr;var qr="__lodash_hash_undefined__";var Wr=Object.prototype;var Jr=Wr.hasOwnProperty;function Qr(r){var n=this.__data__;if(kr){var t=n[r];return t===qr?undefined:t}return Jr.call(n,r)?n[r]:undefined}var Xr=Qr;var Yr=Object.prototype;var Zr=Yr.hasOwnProperty;function rn(r){var n=this.__data__;return kr?n[r]!==undefined:Zr.call(n,r)}var nn=rn;var tn="__lodash_hash_undefined__";function en(r,n){var t=this.__data__;this.size+=this.has(r)?0:1;t[r]=kr&&n===undefined?tn:n;return this}var an=en;function un(r){var n=-1,t=r==null?0:r.length;this.clear();while(++n<t){var e=r[n];this.set(e[0],e[1])}}un.prototype.clear=Hr;un.prototype["delete"]=Vr;un.prototype.get=Xr;un.prototype.has=nn;un.prototype.set=an;var on=un;function vn(){this.size=0;this.__data__={hash:new on,map:new($r||C),string:new on}}var fn=vn;function cn(r){var n=typeof r;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?r!=="__proto__":r===null}var ln=cn;function sn(r,n){var t=r.__data__;return ln(n)?t[typeof n=="string"?"string":"hash"]:t.map}var dn=sn;function bn(r){var n=dn(this,r)["delete"](r);this.size-=n?1:0;return n}var hn=bn;function yn(r){return dn(this,r).get(r)}var pn=yn;function jn(r){return dn(this,r).has(r)}var wn=jn;function gn(r,n){var t=dn(this,r),e=t.size;t.set(r,n);this.size+=t.size==e?0:1;return this}var mn=gn;function An(r){var n=-1,t=r==null?0:r.length;this.clear();while(++n<t){var e=r[n];this.set(e[0],e[1])}}An.prototype.clear=fn;An.prototype["delete"]=hn;An.prototype.get=pn;An.prototype.has=wn;An.prototype.set=mn;var On=An;var _n=200;function En(r,n){var t=this.__data__;if(t instanceof C){var e=t.__data__;if(!$r||e.length<_n-1){e.push([r,n]);this.size=++t.size;return this}t=this.__data__=new On(e)}t.set(r,n);this.size=t.size;return this}var Dn=En;function Sn(r){var n=this.__data__=new C(r);this.size=n.size}Sn.prototype.clear=T;Sn.prototype["delete"]=U;Sn.prototype.get=F;Sn.prototype.has=N;Sn.prototype.set=Dn;var Bn=Sn;var Cn=function(){try{var r=xr(Object,"defineProperty");r({},"",{});return r}catch(r){}}();var In=Cn;function Tn(r,n,t){if(n=="__proto__"&&In){In(r,n,{configurable:true,enumerable:true,value:t,writable:true})}else{r[n]=t}}var Pn=Tn;function Un(r,n,t){if(t!==undefined&&!h(r[n],t)||t===undefined&&!(n in r)){Pn(r,n,t)}}var Ln=Un;function Fn(r){return function(n,t,e){var i=-1,a=Object(n),u=e(n),o=u.length;while(o--){var v=u[r?o:++i];if(t(a[v],v,a)===false){break}}return n}}var Mn=Fn;var Nn=Mn();var xn=Nn;var Rn=R((function(r,n){var t=n&&!n.nodeType&&n;var e=t&&"object"=="object"&&r&&!r.nodeType&&r;var i=e&&e.exports===t;var a=i?K.Buffer:undefined,u=a?a.allocUnsafe:undefined;function o(r,n){if(n){return r.slice()}var t=r.length,e=u?u(t):new r.constructor(t);r.copy(e);return e}r.exports=o}));var $n=K.Uint8Array;var zn=$n;function kn(r){var n=new r.constructor(r.byteLength);new zn(n).set(new zn(r));return n}var Gn=kn;function Hn(r,n){var t=n?Gn(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}var Kn=Hn;function Vn(r,n){var t=-1,e=r.length;n||(n=Array(e));while(++t<e){n[t]=r[t]}return n}var qn=Vn;var Wn=Object.create;var Jn=function(){function r(){}return function(n){if(!cr(n)){return{}}if(Wn){return Wn(n)}r.prototype=n;var t=new r;r.prototype=undefined;return t}}();var Qn=Jn;function Xn(r,n){return function(t){return r(n(t))}}var Yn=Xn;var Zn=Yn(Object.getPrototypeOf,Object);var rt=Zn;var nt=Object.prototype;function tt(r){var n=r&&r.constructor,t=typeof n=="function"&&n.prototype||nt;return r===t}var et=tt;function it(r){return typeof r.constructor=="function"&&!et(r)?Qn(rt(r)):{}}var at=it;function ut(r){return r!=null&&typeof r=="object"}var ot=r("i",ut);var vt="[object Arguments]";function ft(r){return ot(r)&&vr(r)==vt}var ct=ft;var lt=Object.prototype;var st=lt.hasOwnProperty;var dt=lt.propertyIsEnumerable;var bt=ct(function(){return arguments}())?ct:function(r){return ot(r)&&st.call(r,"callee")&&!dt.call(r,"callee")};var ht=bt;var yt=Array.isArray;var pt=yt;var jt=9007199254740991;function wt(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=jt}var gt=wt;function mt(r){return r!=null&>(r.length)&&!yr(r)}var At=mt;function Ot(r){return ot(r)&&At(r)}var _t=Ot;function Et(){return false}var Dt=Et;var St=R((function(r,n){var t=n&&!n.nodeType&&n;var e=t&&"object"=="object"&&r&&!r.nodeType&&r;var i=e&&e.exports===t;var a=i?K.Buffer:undefined;var u=a?a.isBuffer:undefined;var o=u||Dt;r.exports=o}));var Bt="[object Object]";var Ct=Function.prototype,It=Object.prototype;var Tt=Ct.toString;var Pt=It.hasOwnProperty;var Ut=Tt.call(Object);function Lt(r){if(!ot(r)||vr(r)!=Bt){return false}var n=rt(r);if(n===null){return true}var t=Pt.call(n,"constructor")&&n.constructor;return typeof t=="function"&&t instanceof t&&Tt.call(t)==Ut}var Ft=Lt;var Mt="[object Arguments]",Nt="[object Array]",xt="[object Boolean]",Rt="[object Date]",$t="[object Error]",zt="[object Function]",kt="[object Map]",Gt="[object Number]",Ht="[object Object]",Kt="[object RegExp]",Vt="[object Set]",qt="[object String]",Wt="[object WeakMap]";var Jt="[object ArrayBuffer]",Qt="[object DataView]",Xt="[object Float32Array]",Yt="[object Float64Array]",Zt="[object Int8Array]",re="[object Int16Array]",ne="[object Int32Array]",te="[object Uint8Array]",ee="[object Uint8ClampedArray]",ie="[object Uint16Array]",ae="[object Uint32Array]";var ue={};ue[Xt]=ue[Yt]=ue[Zt]=ue[re]=ue[ne]=ue[te]=ue[ee]=ue[ie]=ue[ae]=true;ue[Mt]=ue[Nt]=ue[Jt]=ue[xt]=ue[Qt]=ue[Rt]=ue[$t]=ue[zt]=ue[kt]=ue[Gt]=ue[Ht]=ue[Kt]=ue[Vt]=ue[qt]=ue[Wt]=false;function oe(r){return ot(r)&>(r.length)&&!!ue[vr(r)]}var ve=oe;function fe(r){return function(n){return r(n)}}var ce=fe;var le=R((function(r,n){var t=n&&!n.nodeType&&n;var e=t&&"object"=="object"&&r&&!r.nodeType&&r;var i=e&&e.exports===t;var a=i&&k.process;var u=function(){try{var r=e&&e.require&&e.require("util").types;if(r){return r}return a&&a.binding&&a.binding("util")}catch(r){}}();r.exports=u}));var se=le&&le.isTypedArray;var de=se?ce(se):ve;var be=de;function he(r,n){if(n==="constructor"&&typeof r[n]==="function"){return}if(n=="__proto__"){return}return r[n]}var ye=he;var pe=Object.prototype;var je=pe.hasOwnProperty;function we(r,n,t){var e=r[n];if(!(je.call(r,n)&&h(e,t))||t===undefined&&!(n in r)){Pn(r,n,t)}}var ge=we;function me(r,n,t,e){var i=!t;t||(t={});var a=-1,u=n.length;while(++a<u){var o=n[a];var v=e?e(t[o],r[o],o,t,r):undefined;if(v===undefined){v=r[o]}if(i){Pn(t,o,v)}else{ge(t,o,v)}}return t}var Ae=me;function Oe(r,n){var t=-1,e=Array(r);while(++t<r){e[t]=n(t)}return e}var _e=Oe;var Ee=9007199254740991;var De=/^(?:0|[1-9]\d*)$/;function Se(r,n){var t=typeof r;n=n==null?Ee:n;return!!n&&(t=="number"||t!="symbol"&&De.test(r))&&(r>-1&&r%1==0&&r<n)}var Be=Se;var Ce=Object.prototype;var Ie=Ce.hasOwnProperty;function Te(r,n){var t=pt(r),e=!t&&ht(r),i=!t&&!e&&St(r),a=!t&&!e&&!i&&be(r),u=t||e||i||a,o=u?_e(r.length,String):[],v=o.length;for(var f in r){if((n||Ie.call(r,f))&&!(u&&(f=="length"||i&&(f=="offset"||f=="parent")||a&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Be(f,v)))){o.push(f)}}return o}var Pe=Te;function Ue(r){var n=[];if(r!=null){for(var t in Object(r)){n.push(t)}}return n}var Le=Ue;var Fe=Object.prototype;var Me=Fe.hasOwnProperty;function Ne(r){if(!cr(r)){return Le(r)}var n=et(r),t=[];for(var e in r){if(!(e=="constructor"&&(n||!Me.call(r,e)))){t.push(e)}}return t}var xe=Ne;function Re(r){return At(r)?Pe(r,true):xe(r)}var $e=Re;function ze(r){return Ae(r,$e(r))}var ke=ze;function Ge(r,n,t,e,i,a,u){var o=ye(r,t),v=ye(n,t),f=u.get(v);if(f){Ln(r,t,f);return}var c=a?a(o,v,t+"",r,n,u):undefined;var l=c===undefined;if(l){var s=pt(v),d=!s&&St(v),b=!s&&!d&&be(v);c=v;if(s||d||b){if(pt(o)){c=o}else if(_t(o)){c=qn(o)}else if(d){l=false;c=Rn(v,true)}else if(b){l=false;c=Kn(v,true)}else{c=[]}}else if(Ft(v)||ht(v)){c=o;if(ht(o)){c=ke(o)}else if(!cr(o)||yr(o)){c=at(v)}}else{l=false}}if(l){u.set(v,c);i(c,v,e,a,u);u["delete"](v)}Ln(r,t,c)}var He=Ge;function Ke(r,n,t,e,i){if(r===n){return}xn(n,(function(a,u){i||(i=new Bn);if(cr(a)){He(r,n,u,t,Ke,e,i)}else{var o=e?e(ye(r,u),a,u+"",r,n,i):undefined;if(o===undefined){o=a}Ln(r,u,o)}}),$e)}var Ve=Ke;function qe(r){return r}var We=qe;function Je(r,n,t){switch(t.length){case 0:return r.call(n);case 1:return r.call(n,t[0]);case 2:return r.call(n,t[0],t[1]);case 3:return r.call(n,t[0],t[1],t[2])}return r.apply(n,t)}var Qe=Je;var Xe=Math.max;function Ye(r,n,t){n=Xe(n===undefined?r.length-1:n,0);return function(){var e=arguments,i=-1,a=Xe(e.length-n,0),u=Array(a);while(++i<a){u[i]=e[n+i]}i=-1;var o=Array(n+1);while(++i<n){o[i]=e[i]}o[n]=t(u);return Qe(r,this,o)}}var Ze=Ye;function ri(r){return function(){return r}}var ni=ri;var ti=!In?We:function(r,n){return In(r,"toString",{configurable:true,enumerable:false,value:ni(n),writable:true})};var ei=ti;var ii=800,ai=16;var ui=Date.now;function oi(r){var n=0,t=0;return function(){var e=ui(),i=ai-(e-t);t=e;if(i>0){if(++n>=ii){return arguments[0]}}else{n=0}return r.apply(undefined,arguments)}}var vi=oi;var fi=vi(ei);var ci=fi;function li(r,n){return ci(Ze(r,n,We),r+"")}var si=li;function di(r,n,t){if(!cr(t)){return false}var e=typeof n;if(e=="number"?At(t)&&Be(n,t.length):e=="string"&&n in t){return h(t[n],r)}return false}var bi=di;function hi(r){return si((function(n,t){var e=-1,i=t.length,a=i>1?t[i-1]:undefined,u=i>2?t[2]:undefined;a=r.length>3&&typeof a=="function"?(i--,a):undefined;if(u&&bi(t[0],t[1],u)){a=i<3?undefined:a;i=1}n=Object(n);while(++e<i){var o=t[e];if(o){r(n,o,e,a)}}return n}))}var yi=hi;var pi=yi((function(r,n,t){Ve(r,n,t)}));var ji=pi;var wi=r("m",(function(r,n){var t=[];for(var e=2;e<arguments.length;e++){t[e-2]=arguments[e]}var i=__spreadArray([r,n],t,true).filter(Boolean);return ji.apply(null,i)}));var gi=l((function(){return{appearance:{colorPrimary:"purple",fontFamily:"Inter",logoUrl:"",style:"ROUNDED",theme:"LIGHT",zonosAttribution:"DISABLED"},checkoutSettings:{allowedDomains:[],analyticsProviders:[],orderNotifications:{abandonedCart:{delay:0,discountPercent:0,status:{active:"DISABLED",sendCopiesTo:[]}},orderCancelled:{active:"DISABLED",sendCopiesTo:[]},orderConfirmation:{active:"DISABLED",sendCopiesTo:[]},orderShipped:{active:"DISABLED",sendCopiesTo:[]}},organization:"",placeOrderButtonSelector:null,subscriptionStatus:"INACTIVE",successBehavior:"REDIRECT_TO_SUCCESS_PAGE",successRedirectUrl:"",visibilityStatus:"ENABLED"},currentHelloPage:"",helloSettings:{allowedDomains:[],anchorElementSelector:"",cartUrlPattern:"",currencyBehavior:"ENABLED",currencyElementSelector:".money",dutyTaxEstimationBehavior:"ENABLED",excludedUrlPatterns:[],homepageUrlPattern:"",mobileLocation:"BOTTOM_RIGHT",mode:"LIVE",organization:"",peekMessageBehavior:"ENABLED",peekMessageDelay:0,productAddToCartElementSelector:"",productDescriptionElementSelector:"",productDetailUrlPattern:"",productListUrlPattern:"",productPriceElementSelector:"",productTitleElementSelector:"",restrictionBehavior:"DISABLED"},loadedConfig:false,onlineStoreSettings:{allowedDomains:[]},organizationName:"",sourceCurrency:"USD",storeId:null,stripeApiKey:"",zonosApiKey:""}})),mi=gi.reset,Ai=gi.state;r("z",Ai);var Oi=null;var _i=r("d",(function(r){var n=r.overrideSettings,t=r.zonosSettings;var e,i,a;mi();if(t){Oi=t}Ai.appearance=wi(Ai.appearance,(Oi===null||Oi===void 0?void 0:Oi.appearanceSettings)||(t===null||t===void 0?void 0:t.appearanceSettings)||null,n.appearance);Ai.checkoutSettings=wi(Ai.checkoutSettings,(Oi===null||Oi===void 0?void 0:Oi.checkoutSettings)||(t===null||t===void 0?void 0:t.checkoutSettings)||null,n.checkoutSettings);Ai.helloSettings=wi(Ai.helloSettings,(Oi===null||Oi===void 0?void 0:Oi.helloSettings)||(t===null||t===void 0?void 0:t.helloSettings)||null,n.helloSettings);Ai.onlineStoreSettings=wi(Ai.onlineStoreSettings,(Oi===null||Oi===void 0?void 0:Oi.onlineStoreSettings)||(t===null||t===void 0?void 0:t.onlineStoreSettings)||null,n.onlineStoreSettings);Ai.loadedConfig=true;Ai.organizationName=((e=t===null||t===void 0?void 0:t.organization)===null||e===void 0?void 0:e.name)||"";Ai.storeId=((a=(i=t===null||t===void 0?void 0:t.organization)===null||i===void 0?void 0:i.references)===null||a===void 0?void 0:a.storeId)||null;Ai.currencyConverter=n.currencyConverter}));var Ei=r("e",(function(){var r=Ai.appearance.fontFamily||"Inter";return r}))}}}));
|
|
1
|
+
var __spreadArray=this&&this.__spreadArray||function(r,n,t){if(t||arguments.length===2)for(var e=0,i=n.length,a;e<i;e++){if(a||!(e in n)){if(!a)a=Array.prototype.slice.call(n,0,e);a[e]=n[e]}}return r.concat(a||Array.prototype.slice.call(n))};System.register(["./p-18904b7c.system.js"],(function(r){"use strict";var n,t;return{setters:[function(r){n=r.g;t=r.f}],execute:function(){r("a",R);var e=function(r,n,t){var e=r.get(n);if(!e){r.set(n,[t])}else if(!e.includes(t)){e.push(t)}};var i=function(r,n){var t;return function(){var e=[];for(var i=0;i<arguments.length;i++){e[i]=arguments[i]}if(t){clearTimeout(t)}t=setTimeout((function(){t=0;r.apply(void 0,e)}),n)}};var a=function(r){return!("isConnected"in r)||r.isConnected};var u=i((function(r){for(var n=0,t=r.keys();n<t.length;n++){var e=t[n];r.set(e,r.get(e).filter(a))}}),2e3);var o=function(){if(typeof n!=="function"){return{}}var r=new Map;return{dispose:function(){return r.clear()},get:function(t){var i=n();if(i){e(r,t,i)}},set:function(n){var e=r.get(n);if(e){r.set(n,e.filter(t))}u(r)},reset:function(){r.forEach((function(r){return r.forEach(t)}));u(r)}}};var v=function(r){return typeof r==="function"?r():r};var f=function(r,n){if(n===void 0){n=function(r,n){return r!==n}}var t=v(r);var e=new Map(Object.entries(t!==null&&t!==void 0?t:{}));var i={dispose:[],get:[],set:[],reset:[]};var a=function(){var n;e=new Map(Object.entries((n=v(r))!==null&&n!==void 0?n:{}));i.reset.forEach((function(r){return r()}))};var u=function(){i.dispose.forEach((function(r){return r()}));a()};var o=function(r){i.get.forEach((function(n){return n(r)}));return e.get(r)};var f=function(r,t){var a=e.get(r);if(n(t,a,r)){e.set(r,t);i.set.forEach((function(n){return n(r,t,a)}))}};var l=typeof Proxy==="undefined"?{}:new Proxy(t,{get:function(r,n){return o(n)},ownKeys:function(r){return Array.from(e.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(r,n){return e.has(n)},set:function(r,n,t){f(n,t);return true}});var s=function(r,n){i[r].push(n);return function(){c(i[r],n)}};var d=function(n,t){var e=s("set",(function(r,e){if(r===n){t(e)}}));var i=s("reset",(function(){return t(v(r)[n])}));return function(){e();i()}};var b=function(){var r=[];for(var n=0;n<arguments.length;n++){r[n]=arguments[n]}var t=r.reduce((function(r,n){if(n.set){r.push(s("set",n.set))}if(n.get){r.push(s("get",n.get))}if(n.reset){r.push(s("reset",n.reset))}if(n.dispose){r.push(s("dispose",n.dispose))}return r}),[]);return function(){return t.forEach((function(r){return r()}))}};var h=function(r){var n=e.get(r);i.set.forEach((function(t){return t(r,n,n)}))};return{state:l,get:o,set:f,on:s,onChange:d,use:b,dispose:u,reset:a,forceUpdate:h}};var c=function(r,n){var t=r.indexOf(n);if(t>=0){r[t]=r[r.length-1];r.length--}};var l=r("c",(function(r,n){var t=f(r,n);t.use(o());return t}));function s(){this.__data__=[];this.size=0}var d=s;function b(r,n){return r===n||r!==r&&n!==n}var h=b;function y(r,n){var t=r.length;while(t--){if(h(r[t][0],n)){return t}}return-1}var p=y;var j=Array.prototype;var g=j.splice;function w(r){var n=this.__data__,t=p(n,r);if(t<0){return false}var e=n.length-1;if(t==e){n.pop()}else{g.call(n,t,1)}--this.size;return true}var A=w;function m(r){var n=this.__data__,t=p(n,r);return t<0?undefined:n[t][1]}var O=m;function _(r){return p(this.__data__,r)>-1}var E=_;function D(r,n){var t=this.__data__,e=p(t,r);if(e<0){++this.size;t.push([r,n])}else{t[e][1]=n}return this}var S=D;function B(r){var n=-1,t=r==null?0:r.length;this.clear();while(++n<t){var e=r[n];this.set(e[0],e[1])}}B.prototype.clear=d;B.prototype["delete"]=A;B.prototype.get=O;B.prototype.has=E;B.prototype.set=S;var C=B;function I(){this.__data__=new C;this.size=0}var T=I;function P(r){var n=this.__data__,t=n["delete"](r);this.size=n.size;return t}var U=P;function L(r){return this.__data__.get(r)}var F=L;function M(r){return this.__data__.has(r)}var N=M;var x=r("b",typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{});function R(r,n,t){return t={path:n,exports:{},require:function(r,n){return $()}},r(t,t.exports),t.exports}function $(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var z=typeof x=="object"&&x&&x.Object===Object&&x;var k=z;var G=typeof self=="object"&&self&&self.Object===Object&&self;var H=k||G||Function("return this")();var K=r("_",H);var V=K.Symbol;var q=V;var W=Object.prototype;var J=W.hasOwnProperty;var Q=W.toString;var X=q?q.toStringTag:undefined;function Y(r){var n=J.call(r,X),t=r[X];try{r[X]=undefined;var e=true}catch(r){}var i=Q.call(r);if(e){if(n){r[X]=t}else{delete r[X]}}return i}var Z=Y;var rr=Object.prototype;var nr=rr.toString;function tr(r){return nr.call(r)}var er=tr;var ir="[object Null]",ar="[object Undefined]";var ur=q?q.toStringTag:undefined;function or(r){if(r==null){return r===undefined?ar:ir}return ur&&ur in Object(r)?Z(r):er(r)}var vr=r("f",or);function fr(r){var n=typeof r;return r!=null&&(n=="object"||n=="function")}var cr=r("g",fr);var lr="[object AsyncFunction]",sr="[object Function]",dr="[object GeneratorFunction]",br="[object Proxy]";function hr(r){if(!cr(r)){return false}var n=vr(r);return n==sr||n==dr||n==lr||n==br}var yr=hr;var pr=K["__core-js_shared__"];var jr=pr;var gr=function(){var r=/[^.]+$/.exec(jr&&jr.keys&&jr.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function wr(r){return!!gr&&gr in r}var Ar=wr;var mr=Function.prototype;var Or=mr.toString;function _r(r){if(r!=null){try{return Or.call(r)}catch(r){}try{return r+""}catch(r){}}return""}var Er=_r;var Dr=/[\\^$.*+?()[\]{}|]/g;var Sr=/^\[object .+?Constructor\]$/;var Br=Function.prototype,Cr=Object.prototype;var Ir=Br.toString;var Tr=Cr.hasOwnProperty;var Pr=RegExp("^"+Ir.call(Tr).replace(Dr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ur(r){if(!cr(r)||Ar(r)){return false}var n=yr(r)?Pr:Sr;return n.test(Er(r))}var Lr=Ur;function Fr(r,n){return r==null?undefined:r[n]}var Mr=Fr;function Nr(r,n){var t=Mr(r,n);return Lr(t)?t:undefined}var xr=Nr;var Rr=xr(K,"Map");var $r=Rr;var zr=xr(Object,"create");var kr=zr;function Gr(){this.__data__=kr?kr(null):{};this.size=0}var Hr=Gr;function Kr(r){var n=this.has(r)&&delete this.__data__[r];this.size-=n?1:0;return n}var Vr=Kr;var qr="__lodash_hash_undefined__";var Wr=Object.prototype;var Jr=Wr.hasOwnProperty;function Qr(r){var n=this.__data__;if(kr){var t=n[r];return t===qr?undefined:t}return Jr.call(n,r)?n[r]:undefined}var Xr=Qr;var Yr=Object.prototype;var Zr=Yr.hasOwnProperty;function rn(r){var n=this.__data__;return kr?n[r]!==undefined:Zr.call(n,r)}var nn=rn;var tn="__lodash_hash_undefined__";function en(r,n){var t=this.__data__;this.size+=this.has(r)?0:1;t[r]=kr&&n===undefined?tn:n;return this}var an=en;function un(r){var n=-1,t=r==null?0:r.length;this.clear();while(++n<t){var e=r[n];this.set(e[0],e[1])}}un.prototype.clear=Hr;un.prototype["delete"]=Vr;un.prototype.get=Xr;un.prototype.has=nn;un.prototype.set=an;var on=un;function vn(){this.size=0;this.__data__={hash:new on,map:new($r||C),string:new on}}var fn=vn;function cn(r){var n=typeof r;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?r!=="__proto__":r===null}var ln=cn;function sn(r,n){var t=r.__data__;return ln(n)?t[typeof n=="string"?"string":"hash"]:t.map}var dn=sn;function bn(r){var n=dn(this,r)["delete"](r);this.size-=n?1:0;return n}var hn=bn;function yn(r){return dn(this,r).get(r)}var pn=yn;function jn(r){return dn(this,r).has(r)}var gn=jn;function wn(r,n){var t=dn(this,r),e=t.size;t.set(r,n);this.size+=t.size==e?0:1;return this}var An=wn;function mn(r){var n=-1,t=r==null?0:r.length;this.clear();while(++n<t){var e=r[n];this.set(e[0],e[1])}}mn.prototype.clear=fn;mn.prototype["delete"]=hn;mn.prototype.get=pn;mn.prototype.has=gn;mn.prototype.set=An;var On=mn;var _n=200;function En(r,n){var t=this.__data__;if(t instanceof C){var e=t.__data__;if(!$r||e.length<_n-1){e.push([r,n]);this.size=++t.size;return this}t=this.__data__=new On(e)}t.set(r,n);this.size=t.size;return this}var Dn=En;function Sn(r){var n=this.__data__=new C(r);this.size=n.size}Sn.prototype.clear=T;Sn.prototype["delete"]=U;Sn.prototype.get=F;Sn.prototype.has=N;Sn.prototype.set=Dn;var Bn=Sn;var Cn=function(){try{var r=xr(Object,"defineProperty");r({},"",{});return r}catch(r){}}();var In=Cn;function Tn(r,n,t){if(n=="__proto__"&&In){In(r,n,{configurable:true,enumerable:true,value:t,writable:true})}else{r[n]=t}}var Pn=Tn;function Un(r,n,t){if(t!==undefined&&!h(r[n],t)||t===undefined&&!(n in r)){Pn(r,n,t)}}var Ln=Un;function Fn(r){return function(n,t,e){var i=-1,a=Object(n),u=e(n),o=u.length;while(o--){var v=u[r?o:++i];if(t(a[v],v,a)===false){break}}return n}}var Mn=Fn;var Nn=Mn();var xn=Nn;var Rn=R((function(r,n){var t=n&&!n.nodeType&&n;var e=t&&"object"=="object"&&r&&!r.nodeType&&r;var i=e&&e.exports===t;var a=i?K.Buffer:undefined,u=a?a.allocUnsafe:undefined;function o(r,n){if(n){return r.slice()}var t=r.length,e=u?u(t):new r.constructor(t);r.copy(e);return e}r.exports=o}));var $n=K.Uint8Array;var zn=$n;function kn(r){var n=new r.constructor(r.byteLength);new zn(n).set(new zn(r));return n}var Gn=kn;function Hn(r,n){var t=n?Gn(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}var Kn=Hn;function Vn(r,n){var t=-1,e=r.length;n||(n=Array(e));while(++t<e){n[t]=r[t]}return n}var qn=Vn;var Wn=Object.create;var Jn=function(){function r(){}return function(n){if(!cr(n)){return{}}if(Wn){return Wn(n)}r.prototype=n;var t=new r;r.prototype=undefined;return t}}();var Qn=Jn;function Xn(r,n){return function(t){return r(n(t))}}var Yn=Xn;var Zn=Yn(Object.getPrototypeOf,Object);var rt=Zn;var nt=Object.prototype;function tt(r){var n=r&&r.constructor,t=typeof n=="function"&&n.prototype||nt;return r===t}var et=tt;function it(r){return typeof r.constructor=="function"&&!et(r)?Qn(rt(r)):{}}var at=it;function ut(r){return r!=null&&typeof r=="object"}var ot=r("i",ut);var vt="[object Arguments]";function ft(r){return ot(r)&&vr(r)==vt}var ct=ft;var lt=Object.prototype;var st=lt.hasOwnProperty;var dt=lt.propertyIsEnumerable;var bt=ct(function(){return arguments}())?ct:function(r){return ot(r)&&st.call(r,"callee")&&!dt.call(r,"callee")};var ht=bt;var yt=Array.isArray;var pt=yt;var jt=9007199254740991;function gt(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=jt}var wt=gt;function At(r){return r!=null&&wt(r.length)&&!yr(r)}var mt=At;function Ot(r){return ot(r)&&mt(r)}var _t=Ot;function Et(){return false}var Dt=Et;var St=R((function(r,n){var t=n&&!n.nodeType&&n;var e=t&&"object"=="object"&&r&&!r.nodeType&&r;var i=e&&e.exports===t;var a=i?K.Buffer:undefined;var u=a?a.isBuffer:undefined;var o=u||Dt;r.exports=o}));var Bt="[object Object]";var Ct=Function.prototype,It=Object.prototype;var Tt=Ct.toString;var Pt=It.hasOwnProperty;var Ut=Tt.call(Object);function Lt(r){if(!ot(r)||vr(r)!=Bt){return false}var n=rt(r);if(n===null){return true}var t=Pt.call(n,"constructor")&&n.constructor;return typeof t=="function"&&t instanceof t&&Tt.call(t)==Ut}var Ft=Lt;var Mt="[object Arguments]",Nt="[object Array]",xt="[object Boolean]",Rt="[object Date]",$t="[object Error]",zt="[object Function]",kt="[object Map]",Gt="[object Number]",Ht="[object Object]",Kt="[object RegExp]",Vt="[object Set]",qt="[object String]",Wt="[object WeakMap]";var Jt="[object ArrayBuffer]",Qt="[object DataView]",Xt="[object Float32Array]",Yt="[object Float64Array]",Zt="[object Int8Array]",re="[object Int16Array]",ne="[object Int32Array]",te="[object Uint8Array]",ee="[object Uint8ClampedArray]",ie="[object Uint16Array]",ae="[object Uint32Array]";var ue={};ue[Xt]=ue[Yt]=ue[Zt]=ue[re]=ue[ne]=ue[te]=ue[ee]=ue[ie]=ue[ae]=true;ue[Mt]=ue[Nt]=ue[Jt]=ue[xt]=ue[Qt]=ue[Rt]=ue[$t]=ue[zt]=ue[kt]=ue[Gt]=ue[Ht]=ue[Kt]=ue[Vt]=ue[qt]=ue[Wt]=false;function oe(r){return ot(r)&&wt(r.length)&&!!ue[vr(r)]}var ve=oe;function fe(r){return function(n){return r(n)}}var ce=fe;var le=R((function(r,n){var t=n&&!n.nodeType&&n;var e=t&&"object"=="object"&&r&&!r.nodeType&&r;var i=e&&e.exports===t;var a=i&&k.process;var u=function(){try{var r=e&&e.require&&e.require("util").types;if(r){return r}return a&&a.binding&&a.binding("util")}catch(r){}}();r.exports=u}));var se=le&&le.isTypedArray;var de=se?ce(se):ve;var be=de;function he(r,n){if(n==="constructor"&&typeof r[n]==="function"){return}if(n=="__proto__"){return}return r[n]}var ye=he;var pe=Object.prototype;var je=pe.hasOwnProperty;function ge(r,n,t){var e=r[n];if(!(je.call(r,n)&&h(e,t))||t===undefined&&!(n in r)){Pn(r,n,t)}}var we=ge;function Ae(r,n,t,e){var i=!t;t||(t={});var a=-1,u=n.length;while(++a<u){var o=n[a];var v=e?e(t[o],r[o],o,t,r):undefined;if(v===undefined){v=r[o]}if(i){Pn(t,o,v)}else{we(t,o,v)}}return t}var me=Ae;function Oe(r,n){var t=-1,e=Array(r);while(++t<r){e[t]=n(t)}return e}var _e=Oe;var Ee=9007199254740991;var De=/^(?:0|[1-9]\d*)$/;function Se(r,n){var t=typeof r;n=n==null?Ee:n;return!!n&&(t=="number"||t!="symbol"&&De.test(r))&&(r>-1&&r%1==0&&r<n)}var Be=Se;var Ce=Object.prototype;var Ie=Ce.hasOwnProperty;function Te(r,n){var t=pt(r),e=!t&&ht(r),i=!t&&!e&&St(r),a=!t&&!e&&!i&&be(r),u=t||e||i||a,o=u?_e(r.length,String):[],v=o.length;for(var f in r){if((n||Ie.call(r,f))&&!(u&&(f=="length"||i&&(f=="offset"||f=="parent")||a&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Be(f,v)))){o.push(f)}}return o}var Pe=Te;function Ue(r){var n=[];if(r!=null){for(var t in Object(r)){n.push(t)}}return n}var Le=Ue;var Fe=Object.prototype;var Me=Fe.hasOwnProperty;function Ne(r){if(!cr(r)){return Le(r)}var n=et(r),t=[];for(var e in r){if(!(e=="constructor"&&(n||!Me.call(r,e)))){t.push(e)}}return t}var xe=Ne;function Re(r){return mt(r)?Pe(r,true):xe(r)}var $e=Re;function ze(r){return me(r,$e(r))}var ke=ze;function Ge(r,n,t,e,i,a,u){var o=ye(r,t),v=ye(n,t),f=u.get(v);if(f){Ln(r,t,f);return}var c=a?a(o,v,t+"",r,n,u):undefined;var l=c===undefined;if(l){var s=pt(v),d=!s&&St(v),b=!s&&!d&&be(v);c=v;if(s||d||b){if(pt(o)){c=o}else if(_t(o)){c=qn(o)}else if(d){l=false;c=Rn(v,true)}else if(b){l=false;c=Kn(v,true)}else{c=[]}}else if(Ft(v)||ht(v)){c=o;if(ht(o)){c=ke(o)}else if(!cr(o)||yr(o)){c=at(v)}}else{l=false}}if(l){u.set(v,c);i(c,v,e,a,u);u["delete"](v)}Ln(r,t,c)}var He=Ge;function Ke(r,n,t,e,i){if(r===n){return}xn(n,(function(a,u){i||(i=new Bn);if(cr(a)){He(r,n,u,t,Ke,e,i)}else{var o=e?e(ye(r,u),a,u+"",r,n,i):undefined;if(o===undefined){o=a}Ln(r,u,o)}}),$e)}var Ve=Ke;function qe(r){return r}var We=qe;function Je(r,n,t){switch(t.length){case 0:return r.call(n);case 1:return r.call(n,t[0]);case 2:return r.call(n,t[0],t[1]);case 3:return r.call(n,t[0],t[1],t[2])}return r.apply(n,t)}var Qe=Je;var Xe=Math.max;function Ye(r,n,t){n=Xe(n===undefined?r.length-1:n,0);return function(){var e=arguments,i=-1,a=Xe(e.length-n,0),u=Array(a);while(++i<a){u[i]=e[n+i]}i=-1;var o=Array(n+1);while(++i<n){o[i]=e[i]}o[n]=t(u);return Qe(r,this,o)}}var Ze=Ye;function ri(r){return function(){return r}}var ni=ri;var ti=!In?We:function(r,n){return In(r,"toString",{configurable:true,enumerable:false,value:ni(n),writable:true})};var ei=ti;var ii=800,ai=16;var ui=Date.now;function oi(r){var n=0,t=0;return function(){var e=ui(),i=ai-(e-t);t=e;if(i>0){if(++n>=ii){return arguments[0]}}else{n=0}return r.apply(undefined,arguments)}}var vi=oi;var fi=vi(ei);var ci=fi;function li(r,n){return ci(Ze(r,n,We),r+"")}var si=li;function di(r,n,t){if(!cr(t)){return false}var e=typeof n;if(e=="number"?mt(t)&&Be(n,t.length):e=="string"&&n in t){return h(t[n],r)}return false}var bi=di;function hi(r){return si((function(n,t){var e=-1,i=t.length,a=i>1?t[i-1]:undefined,u=i>2?t[2]:undefined;a=r.length>3&&typeof a=="function"?(i--,a):undefined;if(u&&bi(t[0],t[1],u)){a=i<3?undefined:a;i=1}n=Object(n);while(++e<i){var o=t[e];if(o){r(n,o,e,a)}}return n}))}var yi=hi;var pi=yi((function(r,n,t){Ve(r,n,t)}));var ji=pi;var gi=r("m",(function(r,n){var t=[];for(var e=2;e<arguments.length;e++){t[e-2]=arguments[e]}var i=__spreadArray([r,n],t,true).filter(Boolean);return ji.apply(null,i)}));var wi=l((function(){return{appearance:{colorPrimary:"purple",fontFamily:"Inter",logoUrl:"",style:"ROUNDED",theme:"LIGHT",zonosAttribution:"DISABLED"},checkoutSettings:{analyticsProviders:[],orderNotifications:{abandonedCart:{delay:0,discountPercent:0,status:{active:"DISABLED",sendCopiesTo:[]}},orderCancelled:{active:"DISABLED",sendCopiesTo:[]},orderConfirmation:{active:"DISABLED",sendCopiesTo:[]},orderShipped:{active:"DISABLED",sendCopiesTo:[]}},organization:"",placeOrderButtonSelector:null,subscriptionStatus:"INACTIVE",successBehavior:"REDIRECT_TO_SUCCESS_PAGE",successRedirectUrl:"",visibilityStatus:"ENABLED"},currentHelloPage:"",helloSettings:{anchorElementSelector:"",cartUrlPattern:"",currencyBehavior:"ENABLED",currencyElementSelector:".money",dutyTaxEstimationBehavior:"ENABLED",excludedUrlPatterns:[],homepageUrlPattern:"",mobileLocation:"BOTTOM_RIGHT",mode:"LIVE",organization:"",peekMessageBehavior:"ENABLED",peekMessageDelay:0,productAddToCartElementSelector:"",productDescriptionElementSelector:"",productDetailUrlPattern:"",productListUrlPattern:"",productPriceElementSelector:"",productTitleElementSelector:"",restrictionBehavior:"DISABLED"},loadedConfig:false,organizationName:"",sourceCurrency:"USD",storeId:null,stripeApiKey:"",zonosApiKey:""}})),Ai=wi.reset,mi=wi.state;r("z",mi);var Oi=null;var _i=r("d",(function(r){var n=r.overrideSettings,t=r.zonosSettings;var e,i,a;Ai();if(t){Oi=t}mi.appearance=gi(mi.appearance,(Oi===null||Oi===void 0?void 0:Oi.appearanceSettings)||(t===null||t===void 0?void 0:t.appearanceSettings)||null,n.appearance);mi.checkoutSettings=gi(mi.checkoutSettings,(Oi===null||Oi===void 0?void 0:Oi.checkoutSettings)||(t===null||t===void 0?void 0:t.checkoutSettings)||null,n.checkoutSettings);mi.helloSettings=gi(mi.helloSettings,(Oi===null||Oi===void 0?void 0:Oi.helloSettings)||(t===null||t===void 0?void 0:t.helloSettings)||null,n.helloSettings);mi.loadedConfig=true;mi.organizationName=((e=t===null||t===void 0?void 0:t.organization)===null||e===void 0?void 0:e.name)||"";mi.storeId=((a=(i=t===null||t===void 0?void 0:t.organization)===null||i===void 0?void 0:i.references)===null||a===void 0?void 0:a.storeId)||null;mi.currencyConverter=n.currencyConverter}));var Ei=r("e",(function(){var r=mi.appearance.fontFamily||"Inter";return r}))}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as n,f as t}from"./p-956efa27.js";const r=n=>!("isConnected"in n)||n.isConnected,e=(()=>{let n;return(...t)=>{n&&clearTimeout(n),n=setTimeout((()=>{n=0,(n=>{for(let t of n.keys())n.set(t,n.get(t).filter(r))})(...t)}),2e3)}})(),o=n=>"function"==typeof n?n():n,i=(r,i)=>{const u=((n,t=((n,t)=>n!==t))=>{const r=o(n);let e=new Map(Object.entries(null!=r?r:{}));const i={dispose:[],get:[],set:[],reset:[]},u=()=>{var t;e=new Map(Object.entries(null!==(t=o(n))&&void 0!==t?t:{})),i.reset.forEach((n=>n()))},c=n=>(i.get.forEach((t=>t(n))),e.get(n)),a=(n,r)=>{const o=e.get(n);t(r,o,n)&&(e.set(n,r),i.set.forEach((t=>t(n,r,o))))},s="undefined"==typeof Proxy?{}:new Proxy(r,{get:(n,t)=>c(t),ownKeys:()=>Array.from(e.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(n,t)=>e.has(t),set:(n,t,r)=>(a(t,r),!0)}),f=(n,t)=>(i[n].push(t),()=>{((n,t)=>{const r=n.indexOf(t);r>=0&&(n[r]=n[n.length-1],n.length--)})(i[n],t)});return{state:s,get:c,set:a,on:f,onChange:(t,r)=>{const e=f("set",((n,e)=>{n===t&&r(e)})),i=f("reset",(()=>r(o(n)[t])));return()=>{e(),i()}},use:(...n)=>{const t=n.reduce(((n,t)=>(t.set&&n.push(f("set",t.set)),t.get&&n.push(f("get",t.get)),t.reset&&n.push(f("reset",t.reset)),t.dispose&&n.push(f("dispose",t.dispose)),n)),[]);return()=>t.forEach((n=>n()))},dispose:()=>{i.dispose.forEach((n=>n())),u()},reset:u,forceUpdate:n=>{const t=e.get(n);i.set.forEach((r=>r(n,t,t)))}}})(r,i);return u.use((()=>{if("function"!=typeof n)return{};const r=new Map;return{dispose:()=>r.clear(),get:t=>{const e=n();e&&((n,t,r)=>{const e=n.get(t);e?e.includes(r)||e.push(r):n.set(t,[r])})(r,t,e)},set:n=>{const o=r.get(n);o&&r.set(n,o.filter(t)),e(r)},reset:()=>{r.forEach((n=>n.forEach(t))),e(r)}}})()),u};var u=function(n,t){return n===t||n!=n&&t!=t},c=function(n,t){for(var r=n.length;r--;)if(u(n[r][0],t))return r;return-1},a=Array.prototype.splice;function s(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}s.prototype.clear=function(){this.__data__=[],this.size=0},s.prototype.delete=function(n){var t=this.__data__,r=c(t,n);return!(r<0||(r==t.length-1?t.pop():a.call(t,r,1),--this.size,0))},s.prototype.get=function(n){var t=this.__data__,r=c(t,n);return r<0?void 0:t[r][1]},s.prototype.has=function(n){return c(this.__data__,n)>-1},s.prototype.set=function(n,t){var r=this.__data__,e=c(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this};var f=s,l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function v(n,t,r){return n(r={path:t,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}var d,h="object"==typeof l&&l&&l.Object===Object&&l,p="object"==typeof self&&self&&self.Object===Object&&self,b=h||p||Function("return this")(),y=b.Symbol,g=Object.prototype,j=g.hasOwnProperty,m=g.toString,O=y?y.toStringTag:void 0,w=Object.prototype.toString,E=y?y.toStringTag:void 0,_=function(n){return null==n?void 0===n?"[object Undefined]":"[object Null]":E&&E in Object(n)?function(n){var t=j.call(n,O),r=n[O];try{n[O]=void 0;var e=!0}catch(n){}var o=m.call(n);return e&&(t?n[O]=r:delete n[O]),o}(n):function(n){return w.call(n)}(n)},D=function(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)},S=function(n){if(!D(n))return!1;var t=_(n);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},A=b["__core-js_shared__"],B=(d=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",T=Function.prototype.toString,C=/^\[object .+?Constructor\]$/,P=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),I=function(n){return!(!D(n)||(t=n,B&&B in t))&&(S(n)?P:C).test(function(n){if(null!=n){try{return T.call(n)}catch(n){}try{return n+""}catch(n){}}return""}(n));var t},L=function(n,t){var r=function(n,t){return null==n?void 0:n[t]}(n,t);return I(r)?r:void 0},U=L(b,"Map"),N=L(Object,"create"),x=Object.prototype.hasOwnProperty,F=Object.prototype.hasOwnProperty;function M(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}M.prototype.clear=function(){this.__data__=N?N(null):{},this.size=0},M.prototype.delete=function(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t},M.prototype.get=function(n){var t=this.__data__;if(N){var r=t[n];return"__lodash_hash_undefined__"===r?void 0:r}return x.call(t,n)?t[n]:void 0},M.prototype.has=function(n){var t=this.__data__;return N?void 0!==t[n]:F.call(t,n)},M.prototype.set=function(n,t){var r=this.__data__;return this.size+=this.has(n)?0:1,r[n]=N&&void 0===t?"__lodash_hash_undefined__":t,this};var z=M,$=function(n,t){var r,e,o=n.__data__;return("string"==(e=typeof(r=t))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map};function R(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}R.prototype.clear=function(){this.size=0,this.__data__={hash:new z,map:new(U||f),string:new z}},R.prototype.delete=function(n){var t=$(this,n).delete(n);return this.size-=t?1:0,t},R.prototype.get=function(n){return $(this,n).get(n)},R.prototype.has=function(n){return $(this,n).has(n)},R.prototype.set=function(n,t){var r=$(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this};var k=R;function G(n){var t=this.__data__=new f(n);this.size=t.size}G.prototype.clear=function(){this.__data__=new f,this.size=0},G.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},G.prototype.get=function(n){return this.__data__.get(n)},G.prototype.has=function(n){return this.__data__.has(n)},G.prototype.set=function(n,t){var r=this.__data__;if(r instanceof f){var e=r.__data__;if(!U||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new k(e)}return r.set(n,t),this.size=r.size,this};var H,K,q=G,V=function(){try{var n=L(Object,"defineProperty");return n({},"",{}),n}catch(n){}}(),J=function(n,t,r){"__proto__"==t&&V?V(n,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[t]=r},Q=function(n,t,r){(void 0!==r&&!u(n[t],r)||void 0===r&&!(t in n))&&J(n,t,r)},W=function(n,t,r){for(var e=-1,o=Object(n),i=r(n),u=i.length;u--;){var c=i[++e];if(!1===t(o[c],c,o))break}return n},X=v((function(n,t){var r=t&&!t.nodeType&&t,e=r&&n&&!n.nodeType&&n,o=e&&e.exports===r?b.Buffer:void 0,i=o?o.allocUnsafe:void 0;n.exports=function(n,t){if(t)return n.slice();var r=n.length,e=i?i(r):new n.constructor(r);return n.copy(e),e}})),Y=b.Uint8Array,Z=function(n,t){var r,e,o=t?(e=new(r=n.buffer).constructor(r.byteLength),new Y(e).set(new Y(r)),e):n.buffer;return new n.constructor(o,n.byteOffset,n.length)},nn=Object.create,tn=function(){function n(){}return function(t){if(!D(t))return{};if(nn)return nn(t);n.prototype=t;var r=new n;return n.prototype=void 0,r}}(),rn=(H=Object.getPrototypeOf,K=Object,function(n){return H(K(n))}),en=Object.prototype,on=function(n){var t=n&&n.constructor;return n===("function"==typeof t&&t.prototype||en)},un=function(n){return null!=n&&"object"==typeof n},cn=function(n){return un(n)&&"[object Arguments]"==_(n)},an=Object.prototype,sn=an.hasOwnProperty,fn=an.propertyIsEnumerable,ln=cn(function(){return arguments}())?cn:function(n){return un(n)&&sn.call(n,"callee")&&!fn.call(n,"callee")},vn=Array.isArray,dn=function(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=9007199254740991},hn=function(n){return null!=n&&dn(n.length)&&!S(n)},pn=function(){return!1},bn=v((function(n,t){var r=t&&!t.nodeType&&t,e=r&&n&&!n.nodeType&&n,o=e&&e.exports===r?b.Buffer:void 0;n.exports=(o?o.isBuffer:void 0)||pn})),yn=Function.prototype.toString,gn=Object.prototype.hasOwnProperty,jn=yn.call(Object),mn={};mn["[object Float32Array]"]=mn["[object Float64Array]"]=mn["[object Int8Array]"]=mn["[object Int16Array]"]=mn["[object Int32Array]"]=mn["[object Uint8Array]"]=mn["[object Uint8ClampedArray]"]=mn["[object Uint16Array]"]=mn["[object Uint32Array]"]=!0,mn["[object Arguments]"]=mn["[object Array]"]=mn["[object ArrayBuffer]"]=mn["[object Boolean]"]=mn["[object DataView]"]=mn["[object Date]"]=mn["[object Error]"]=mn["[object Function]"]=mn["[object Map]"]=mn["[object Number]"]=mn["[object Object]"]=mn["[object RegExp]"]=mn["[object Set]"]=mn["[object String]"]=mn["[object WeakMap]"]=!1;var On,wn=v((function(n,t){var r=t&&!t.nodeType&&t,e=r&&n&&!n.nodeType&&n,o=e&&e.exports===r&&h.process,i=function(){try{return e&&e.require&&e.require("util").types||o&&o.binding&&o.binding("util")}catch(n){}}();n.exports=i})),En=wn&&wn.isTypedArray,_n=En?function(n){return function(t){return n(t)}}(En):function(n){return un(n)&&dn(n.length)&&!!mn[_(n)]},Dn=function(n,t){if(("constructor"!==t||"function"!=typeof n[t])&&"__proto__"!=t)return n[t]},Sn=Object.prototype.hasOwnProperty,An=function(n,t,r){var e=n[t];Sn.call(n,t)&&u(e,r)&&(void 0!==r||t in n)||J(n,t,r)},Bn=/^(?:0|[1-9]\d*)$/,Tn=function(n,t){var r=typeof n;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Bn.test(n))&&n>-1&&n%1==0&&n<t},Cn=Object.prototype.hasOwnProperty,Pn=function(n,t){var r=vn(n),e=!r&&ln(n),o=!r&&!e&&bn(n),i=!r&&!e&&!o&&_n(n),u=r||e||o||i,c=u?function(n,t){for(var r=-1,e=Array(n);++r<n;)e[r]=t(r);return e}(n.length,String):[],a=c.length;for(var s in n)!t&&!Cn.call(n,s)||u&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Tn(s,a))||c.push(s);return c},In=Object.prototype.hasOwnProperty,Ln=function(n){if(!D(n))return function(n){var t=[];if(null!=n)for(var r in Object(n))t.push(r);return t}(n);var t=on(n),r=[];for(var e in n)("constructor"!=e||!t&&In.call(n,e))&&r.push(e);return r},Un=function(n){return hn(n)?Pn(n,!0):Ln(n)},Nn=function(n){return function(n,t,r,e){var o=!r;r||(r={});for(var i=-1,u=t.length;++i<u;){var c=t[i],a=e?e(r[c],n[c],c,r,n):void 0;void 0===a&&(a=n[c]),o?J(r,c,a):An(r,c,a)}return r}(n,Un(n))},xn=function(n,t,r,e,o,i,u){var c,a=Dn(n,r),s=Dn(t,r),f=u.get(s);if(f)Q(n,r,f);else{var l=i?i(a,s,r+"",n,t,u):void 0,v=void 0===l;if(v){var d=vn(s),h=!d&&bn(s),p=!d&&!h&&_n(s);l=s,d||h||p?vn(a)?l=a:un(c=a)&&hn(c)?l=function(n,t){var r=-1,e=n.length;for(t||(t=Array(e));++r<e;)t[r]=n[r];return t}(a):h?(v=!1,l=X(s,!0)):p?(v=!1,l=Z(s,!0)):l=[]:function(n){if(!un(n)||"[object Object]"!=_(n))return!1;var t=rn(n);if(null===t)return!0;var r=gn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&yn.call(r)==jn}(s)||ln(s)?(l=a,ln(a)?l=Nn(a):D(a)&&!S(a)||(l=function(n){return"function"!=typeof n.constructor||on(n)?{}:tn(rn(n))}(s))):v=!1}v&&(u.set(s,l),o(l,s,e,i,u),u.delete(s)),Q(n,r,l)}},Fn=function n(t,r,e,o,i){t!==r&&W(r,(function(u,c){if(i||(i=new q),D(u))xn(t,r,c,e,n,o,i);else{var a=o?o(Dn(t,c),u,c+"",t,r,i):void 0;void 0===a&&(a=u),Q(t,c,a)}}),Un)},Mn=function(n){return n},zn=Math.max,$n=Date.now,Rn=function(n){var t=0,r=0;return function(){var e=$n(),o=16-(e-r);if(r=e,o>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(void 0,arguments)}}(V?function(n,t){return V(n,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:Mn),kn=function(n,t){return Rn(function(n,t,r){return t=zn(void 0===t?n.length-1:t,0),function(){for(var e=arguments,o=-1,i=zn(e.length-t,0),u=Array(i);++o<i;)u[o]=e[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=e[o];return c[t]=r(u),function(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}(n,this,c)}}(n,t,Mn),n+"")},Gn=(On=function(n,t,r){Fn(n,t,r)},kn((function(n,t){var r=-1,e=t.length,o=e>1?t[e-1]:void 0,i=e>2?t[2]:void 0;for(o=On.length>3&&"function"==typeof o?(e--,o):void 0,i&&function(n,t,r){if(!D(r))return!1;var e=typeof t;return!!("number"==e?hn(r)&&Tn(t,r.length):"string"==e&&t in r)&&u(r[t],n)}(t[0],t[1],i)&&(o=e<3?void 0:o,e=1),n=Object(n);++r<e;){var c=t[r];c&&On(n,c,r)}return n})));const Hn=(n,t,...r)=>{const e=[n,t,...r].filter(Boolean);return Gn.apply(null,e)},{reset:Kn,state:qn}=i((()=>({appearance:{colorPrimary:"purple",fontFamily:"Inter",logoUrl:"",style:"ROUNDED",theme:"LIGHT",zonosAttribution:"DISABLED"},checkoutSettings:{allowedDomains:[],analyticsProviders:[],orderNotifications:{abandonedCart:{delay:0,discountPercent:0,status:{active:"DISABLED",sendCopiesTo:[]}},orderCancelled:{active:"DISABLED",sendCopiesTo:[]},orderConfirmation:{active:"DISABLED",sendCopiesTo:[]},orderShipped:{active:"DISABLED",sendCopiesTo:[]}},organization:"",placeOrderButtonSelector:null,subscriptionStatus:"INACTIVE",successBehavior:"REDIRECT_TO_SUCCESS_PAGE",successRedirectUrl:"",visibilityStatus:"ENABLED"},currentHelloPage:"",helloSettings:{allowedDomains:[],anchorElementSelector:"",cartUrlPattern:"",currencyBehavior:"ENABLED",currencyElementSelector:".money",dutyTaxEstimationBehavior:"ENABLED",excludedUrlPatterns:[],homepageUrlPattern:"",mobileLocation:"BOTTOM_RIGHT",mode:"LIVE",organization:"",peekMessageBehavior:"ENABLED",peekMessageDelay:0,productAddToCartElementSelector:"",productDescriptionElementSelector:"",productDetailUrlPattern:"",productListUrlPattern:"",productPriceElementSelector:"",productTitleElementSelector:"",restrictionBehavior:"DISABLED"},loadedConfig:!1,onlineStoreSettings:{allowedDomains:[]},organizationName:"",sourceCurrency:"USD",storeId:null,stripeApiKey:"",zonosApiKey:""})));let Vn=null;const Jn=({overrideSettings:n,zonosSettings:t})=>{var r,e,o;Kn(),t&&(Vn=t),qn.appearance=Hn(qn.appearance,(null==Vn?void 0:Vn.appearanceSettings)||(null==t?void 0:t.appearanceSettings)||null,n.appearance),qn.checkoutSettings=Hn(qn.checkoutSettings,(null==Vn?void 0:Vn.checkoutSettings)||(null==t?void 0:t.checkoutSettings)||null,n.checkoutSettings),qn.helloSettings=Hn(qn.helloSettings,(null==Vn?void 0:Vn.helloSettings)||(null==t?void 0:t.helloSettings)||null,n.helloSettings),qn.onlineStoreSettings=Hn(qn.onlineStoreSettings,(null==Vn?void 0:Vn.onlineStoreSettings)||(null==t?void 0:t.onlineStoreSettings)||null,n.onlineStoreSettings),qn.loadedConfig=!0,qn.organizationName=(null===(r=null==t?void 0:t.organization)||void 0===r?void 0:r.name)||"",qn.storeId=(null===(o=null===(e=null==t?void 0:t.organization)||void 0===e?void 0:e.references)||void 0===o?void 0:o.storeId)||null,qn.currencyConverter=n.currencyConverter},Qn=()=>qn.appearance.fontFamily||"Inter";export{b as _,v as a,l as b,i as c,Jn as d,Qn as e,_ as f,D as g,un as i,Hn as m,qn as z}
|
|
1
|
+
import{g as n,f as t}from"./p-956efa27.js";const r=n=>!("isConnected"in n)||n.isConnected,e=(()=>{let n;return(...t)=>{n&&clearTimeout(n),n=setTimeout((()=>{n=0,(n=>{for(let t of n.keys())n.set(t,n.get(t).filter(r))})(...t)}),2e3)}})(),o=n=>"function"==typeof n?n():n,i=(r,i)=>{const u=((n,t=((n,t)=>n!==t))=>{const r=o(n);let e=new Map(Object.entries(null!=r?r:{}));const i={dispose:[],get:[],set:[],reset:[]},u=()=>{var t;e=new Map(Object.entries(null!==(t=o(n))&&void 0!==t?t:{})),i.reset.forEach((n=>n()))},c=n=>(i.get.forEach((t=>t(n))),e.get(n)),a=(n,r)=>{const o=e.get(n);t(r,o,n)&&(e.set(n,r),i.set.forEach((t=>t(n,r,o))))},s="undefined"==typeof Proxy?{}:new Proxy(r,{get:(n,t)=>c(t),ownKeys:()=>Array.from(e.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(n,t)=>e.has(t),set:(n,t,r)=>(a(t,r),!0)}),f=(n,t)=>(i[n].push(t),()=>{((n,t)=>{const r=n.indexOf(t);r>=0&&(n[r]=n[n.length-1],n.length--)})(i[n],t)});return{state:s,get:c,set:a,on:f,onChange:(t,r)=>{const e=f("set",((n,e)=>{n===t&&r(e)})),i=f("reset",(()=>r(o(n)[t])));return()=>{e(),i()}},use:(...n)=>{const t=n.reduce(((n,t)=>(t.set&&n.push(f("set",t.set)),t.get&&n.push(f("get",t.get)),t.reset&&n.push(f("reset",t.reset)),t.dispose&&n.push(f("dispose",t.dispose)),n)),[]);return()=>t.forEach((n=>n()))},dispose:()=>{i.dispose.forEach((n=>n())),u()},reset:u,forceUpdate:n=>{const t=e.get(n);i.set.forEach((r=>r(n,t,t)))}}})(r,i);return u.use((()=>{if("function"!=typeof n)return{};const r=new Map;return{dispose:()=>r.clear(),get:t=>{const e=n();e&&((n,t,r)=>{const e=n.get(t);e?e.includes(r)||e.push(r):n.set(t,[r])})(r,t,e)},set:n=>{const o=r.get(n);o&&r.set(n,o.filter(t)),e(r)},reset:()=>{r.forEach((n=>n.forEach(t))),e(r)}}})()),u};var u=function(n,t){return n===t||n!=n&&t!=t},c=function(n,t){for(var r=n.length;r--;)if(u(n[r][0],t))return r;return-1},a=Array.prototype.splice;function s(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}s.prototype.clear=function(){this.__data__=[],this.size=0},s.prototype.delete=function(n){var t=this.__data__,r=c(t,n);return!(r<0||(r==t.length-1?t.pop():a.call(t,r,1),--this.size,0))},s.prototype.get=function(n){var t=this.__data__,r=c(t,n);return r<0?void 0:t[r][1]},s.prototype.has=function(n){return c(this.__data__,n)>-1},s.prototype.set=function(n,t){var r=this.__data__,e=c(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this};var f=s,l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function v(n,t,r){return n(r={path:t,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}var d,h="object"==typeof l&&l&&l.Object===Object&&l,p="object"==typeof self&&self&&self.Object===Object&&self,b=h||p||Function("return this")(),y=b.Symbol,g=Object.prototype,j=g.hasOwnProperty,m=g.toString,O=y?y.toStringTag:void 0,E=Object.prototype.toString,_=y?y.toStringTag:void 0,w=function(n){return null==n?void 0===n?"[object Undefined]":"[object Null]":_&&_ in Object(n)?function(n){var t=j.call(n,O),r=n[O];try{n[O]=void 0;var e=!0}catch(n){}var o=m.call(n);return e&&(t?n[O]=r:delete n[O]),o}(n):function(n){return E.call(n)}(n)},S=function(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)},D=function(n){if(!S(n))return!1;var t=w(n);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},A=b["__core-js_shared__"],B=(d=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",T=Function.prototype.toString,C=/^\[object .+?Constructor\]$/,P=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),I=function(n){return!(!S(n)||(t=n,B&&B in t))&&(D(n)?P:C).test(function(n){if(null!=n){try{return T.call(n)}catch(n){}try{return n+""}catch(n){}}return""}(n));var t},L=function(n,t){var r=function(n,t){return null==n?void 0:n[t]}(n,t);return I(r)?r:void 0},U=L(b,"Map"),N=L(Object,"create"),x=Object.prototype.hasOwnProperty,F=Object.prototype.hasOwnProperty;function M(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}M.prototype.clear=function(){this.__data__=N?N(null):{},this.size=0},M.prototype.delete=function(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t},M.prototype.get=function(n){var t=this.__data__;if(N){var r=t[n];return"__lodash_hash_undefined__"===r?void 0:r}return x.call(t,n)?t[n]:void 0},M.prototype.has=function(n){var t=this.__data__;return N?void 0!==t[n]:F.call(t,n)},M.prototype.set=function(n,t){var r=this.__data__;return this.size+=this.has(n)?0:1,r[n]=N&&void 0===t?"__lodash_hash_undefined__":t,this};var z=M,$=function(n,t){var r,e,o=n.__data__;return("string"==(e=typeof(r=t))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map};function R(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}R.prototype.clear=function(){this.size=0,this.__data__={hash:new z,map:new(U||f),string:new z}},R.prototype.delete=function(n){var t=$(this,n).delete(n);return this.size-=t?1:0,t},R.prototype.get=function(n){return $(this,n).get(n)},R.prototype.has=function(n){return $(this,n).has(n)},R.prototype.set=function(n,t){var r=$(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this};var k=R;function G(n){var t=this.__data__=new f(n);this.size=t.size}G.prototype.clear=function(){this.__data__=new f,this.size=0},G.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},G.prototype.get=function(n){return this.__data__.get(n)},G.prototype.has=function(n){return this.__data__.has(n)},G.prototype.set=function(n,t){var r=this.__data__;if(r instanceof f){var e=r.__data__;if(!U||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new k(e)}return r.set(n,t),this.size=r.size,this};var H,K,q=G,V=function(){try{var n=L(Object,"defineProperty");return n({},"",{}),n}catch(n){}}(),J=function(n,t,r){"__proto__"==t&&V?V(n,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[t]=r},Q=function(n,t,r){(void 0!==r&&!u(n[t],r)||void 0===r&&!(t in n))&&J(n,t,r)},W=function(n,t,r){for(var e=-1,o=Object(n),i=r(n),u=i.length;u--;){var c=i[++e];if(!1===t(o[c],c,o))break}return n},X=v((function(n,t){var r=t&&!t.nodeType&&t,e=r&&n&&!n.nodeType&&n,o=e&&e.exports===r?b.Buffer:void 0,i=o?o.allocUnsafe:void 0;n.exports=function(n,t){if(t)return n.slice();var r=n.length,e=i?i(r):new n.constructor(r);return n.copy(e),e}})),Y=b.Uint8Array,Z=function(n,t){var r,e,o=t?(e=new(r=n.buffer).constructor(r.byteLength),new Y(e).set(new Y(r)),e):n.buffer;return new n.constructor(o,n.byteOffset,n.length)},nn=Object.create,tn=function(){function n(){}return function(t){if(!S(t))return{};if(nn)return nn(t);n.prototype=t;var r=new n;return n.prototype=void 0,r}}(),rn=(H=Object.getPrototypeOf,K=Object,function(n){return H(K(n))}),en=Object.prototype,on=function(n){var t=n&&n.constructor;return n===("function"==typeof t&&t.prototype||en)},un=function(n){return null!=n&&"object"==typeof n},cn=function(n){return un(n)&&"[object Arguments]"==w(n)},an=Object.prototype,sn=an.hasOwnProperty,fn=an.propertyIsEnumerable,ln=cn(function(){return arguments}())?cn:function(n){return un(n)&&sn.call(n,"callee")&&!fn.call(n,"callee")},vn=Array.isArray,dn=function(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=9007199254740991},hn=function(n){return null!=n&&dn(n.length)&&!D(n)},pn=function(){return!1},bn=v((function(n,t){var r=t&&!t.nodeType&&t,e=r&&n&&!n.nodeType&&n,o=e&&e.exports===r?b.Buffer:void 0;n.exports=(o?o.isBuffer:void 0)||pn})),yn=Function.prototype.toString,gn=Object.prototype.hasOwnProperty,jn=yn.call(Object),mn={};mn["[object Float32Array]"]=mn["[object Float64Array]"]=mn["[object Int8Array]"]=mn["[object Int16Array]"]=mn["[object Int32Array]"]=mn["[object Uint8Array]"]=mn["[object Uint8ClampedArray]"]=mn["[object Uint16Array]"]=mn["[object Uint32Array]"]=!0,mn["[object Arguments]"]=mn["[object Array]"]=mn["[object ArrayBuffer]"]=mn["[object Boolean]"]=mn["[object DataView]"]=mn["[object Date]"]=mn["[object Error]"]=mn["[object Function]"]=mn["[object Map]"]=mn["[object Number]"]=mn["[object Object]"]=mn["[object RegExp]"]=mn["[object Set]"]=mn["[object String]"]=mn["[object WeakMap]"]=!1;var On,En=v((function(n,t){var r=t&&!t.nodeType&&t,e=r&&n&&!n.nodeType&&n,o=e&&e.exports===r&&h.process,i=function(){try{return e&&e.require&&e.require("util").types||o&&o.binding&&o.binding("util")}catch(n){}}();n.exports=i})),_n=En&&En.isTypedArray,wn=_n?function(n){return function(t){return n(t)}}(_n):function(n){return un(n)&&dn(n.length)&&!!mn[w(n)]},Sn=function(n,t){if(("constructor"!==t||"function"!=typeof n[t])&&"__proto__"!=t)return n[t]},Dn=Object.prototype.hasOwnProperty,An=function(n,t,r){var e=n[t];Dn.call(n,t)&&u(e,r)&&(void 0!==r||t in n)||J(n,t,r)},Bn=/^(?:0|[1-9]\d*)$/,Tn=function(n,t){var r=typeof n;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Bn.test(n))&&n>-1&&n%1==0&&n<t},Cn=Object.prototype.hasOwnProperty,Pn=function(n,t){var r=vn(n),e=!r&&ln(n),o=!r&&!e&&bn(n),i=!r&&!e&&!o&&wn(n),u=r||e||o||i,c=u?function(n,t){for(var r=-1,e=Array(n);++r<n;)e[r]=t(r);return e}(n.length,String):[],a=c.length;for(var s in n)!t&&!Cn.call(n,s)||u&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Tn(s,a))||c.push(s);return c},In=Object.prototype.hasOwnProperty,Ln=function(n){if(!S(n))return function(n){var t=[];if(null!=n)for(var r in Object(n))t.push(r);return t}(n);var t=on(n),r=[];for(var e in n)("constructor"!=e||!t&&In.call(n,e))&&r.push(e);return r},Un=function(n){return hn(n)?Pn(n,!0):Ln(n)},Nn=function(n){return function(n,t,r,e){var o=!r;r||(r={});for(var i=-1,u=t.length;++i<u;){var c=t[i],a=e?e(r[c],n[c],c,r,n):void 0;void 0===a&&(a=n[c]),o?J(r,c,a):An(r,c,a)}return r}(n,Un(n))},xn=function(n,t,r,e,o,i,u){var c,a=Sn(n,r),s=Sn(t,r),f=u.get(s);if(f)Q(n,r,f);else{var l=i?i(a,s,r+"",n,t,u):void 0,v=void 0===l;if(v){var d=vn(s),h=!d&&bn(s),p=!d&&!h&&wn(s);l=s,d||h||p?vn(a)?l=a:un(c=a)&&hn(c)?l=function(n,t){var r=-1,e=n.length;for(t||(t=Array(e));++r<e;)t[r]=n[r];return t}(a):h?(v=!1,l=X(s,!0)):p?(v=!1,l=Z(s,!0)):l=[]:function(n){if(!un(n)||"[object Object]"!=w(n))return!1;var t=rn(n);if(null===t)return!0;var r=gn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&yn.call(r)==jn}(s)||ln(s)?(l=a,ln(a)?l=Nn(a):S(a)&&!D(a)||(l=function(n){return"function"!=typeof n.constructor||on(n)?{}:tn(rn(n))}(s))):v=!1}v&&(u.set(s,l),o(l,s,e,i,u),u.delete(s)),Q(n,r,l)}},Fn=function n(t,r,e,o,i){t!==r&&W(r,(function(u,c){if(i||(i=new q),S(u))xn(t,r,c,e,n,o,i);else{var a=o?o(Sn(t,c),u,c+"",t,r,i):void 0;void 0===a&&(a=u),Q(t,c,a)}}),Un)},Mn=function(n){return n},zn=Math.max,$n=Date.now,Rn=function(n){var t=0,r=0;return function(){var e=$n(),o=16-(e-r);if(r=e,o>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(void 0,arguments)}}(V?function(n,t){return V(n,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:Mn),kn=function(n,t){return Rn(function(n,t,r){return t=zn(void 0===t?n.length-1:t,0),function(){for(var e=arguments,o=-1,i=zn(e.length-t,0),u=Array(i);++o<i;)u[o]=e[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=e[o];return c[t]=r(u),function(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}(n,this,c)}}(n,t,Mn),n+"")},Gn=(On=function(n,t,r){Fn(n,t,r)},kn((function(n,t){var r=-1,e=t.length,o=e>1?t[e-1]:void 0,i=e>2?t[2]:void 0;for(o=On.length>3&&"function"==typeof o?(e--,o):void 0,i&&function(n,t,r){if(!S(r))return!1;var e=typeof t;return!!("number"==e?hn(r)&&Tn(t,r.length):"string"==e&&t in r)&&u(r[t],n)}(t[0],t[1],i)&&(o=e<3?void 0:o,e=1),n=Object(n);++r<e;){var c=t[r];c&&On(n,c,r)}return n})));const Hn=(n,t,...r)=>{const e=[n,t,...r].filter(Boolean);return Gn.apply(null,e)},{reset:Kn,state:qn}=i((()=>({appearance:{colorPrimary:"purple",fontFamily:"Inter",logoUrl:"",style:"ROUNDED",theme:"LIGHT",zonosAttribution:"DISABLED"},checkoutSettings:{analyticsProviders:[],orderNotifications:{abandonedCart:{delay:0,discountPercent:0,status:{active:"DISABLED",sendCopiesTo:[]}},orderCancelled:{active:"DISABLED",sendCopiesTo:[]},orderConfirmation:{active:"DISABLED",sendCopiesTo:[]},orderShipped:{active:"DISABLED",sendCopiesTo:[]}},organization:"",placeOrderButtonSelector:null,subscriptionStatus:"INACTIVE",successBehavior:"REDIRECT_TO_SUCCESS_PAGE",successRedirectUrl:"",visibilityStatus:"ENABLED"},currentHelloPage:"",helloSettings:{anchorElementSelector:"",cartUrlPattern:"",currencyBehavior:"ENABLED",currencyElementSelector:".money",dutyTaxEstimationBehavior:"ENABLED",excludedUrlPatterns:[],homepageUrlPattern:"",mobileLocation:"BOTTOM_RIGHT",mode:"LIVE",organization:"",peekMessageBehavior:"ENABLED",peekMessageDelay:0,productAddToCartElementSelector:"",productDescriptionElementSelector:"",productDetailUrlPattern:"",productListUrlPattern:"",productPriceElementSelector:"",productTitleElementSelector:"",restrictionBehavior:"DISABLED"},loadedConfig:!1,organizationName:"",sourceCurrency:"USD",storeId:null,stripeApiKey:"",zonosApiKey:""})));let Vn=null;const Jn=({overrideSettings:n,zonosSettings:t})=>{var r,e,o;Kn(),t&&(Vn=t),qn.appearance=Hn(qn.appearance,(null==Vn?void 0:Vn.appearanceSettings)||(null==t?void 0:t.appearanceSettings)||null,n.appearance),qn.checkoutSettings=Hn(qn.checkoutSettings,(null==Vn?void 0:Vn.checkoutSettings)||(null==t?void 0:t.checkoutSettings)||null,n.checkoutSettings),qn.helloSettings=Hn(qn.helloSettings,(null==Vn?void 0:Vn.helloSettings)||(null==t?void 0:t.helloSettings)||null,n.helloSettings),qn.loadedConfig=!0,qn.organizationName=(null===(r=null==t?void 0:t.organization)||void 0===r?void 0:r.name)||"",qn.storeId=(null===(o=null===(e=null==t?void 0:t.organization)||void 0===e?void 0:e.references)||void 0===o?void 0:o.storeId)||null,qn.currencyConverter=n.currencyConverter},Qn=()=>qn.appearance.fontFamily||"Inter";export{b as _,v as a,l as b,i as c,Jn as d,Qn as e,w as f,S as g,un as i,Hn as m,qn as z}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,c as t,h as e,H as s}from"./p-956efa27.js";import{k as i,a as n,t as l}from"./p-3c6988d7.js";import{z as a}from"./p-089ba905.js";import{c as r}from"./p-b4b7f705.js";import{g as h}from"./p-5883217a.js";const d=class{constructor(e){o(this,e),this.closeDialog=t(this,"closeDialog",7),this.clickOutsideDialogHandler=o=>{!o.composedPath().includes(this.dialogRef)&&this.isOpen&&this.setIsOpen(!1)},this.getCurrentPageEnum=()=>{switch(a.currentHelloPage){case"home":return"hello_homepage";case"cart":return"hello_cart";case"productList":return"hello_item_list";case"productDetail":return"hello_item_details";default:return null}},this.setShowCountrySelect=async o=>{this.showCountrySelect=o},this.isOpen=!1,this.setIsOpen=()=>{},this.mobileLocationOverride=void 0,this.animateFromLeftOverride=void 0,this.appearanceSettings=void 0,this.restrictedItems=[],this.welcomeMessage="Welcome to our Demo App!",this.showCountrySelect=!1}globalClickHandler(o){this.clickOutsideDialogHandler(o)}isOpenHandler(o){o||this.setShowCountrySelect(!1)}render(){var o;const{countryLandedCost:t,selectedCountryCode:d}=n,c=(null==t?void 0:t.dutyDeminimus)?i(t.dutyDeminimus):null,m="CA"===n.selectedCountryCode?i(40):c,g=m?`${l("Spend")} ${m} ${l("duty free")}`:l("Duties will apply to all orders"),f=(null==t?void 0:t.vatTaxDeminimus)?i(t.vatTaxDeminimus):null,u="CA"===n.selectedCountryCode?i(150):f,p=u?`${l("Spend")} ${u} ${l("tax free")}`:l("Taxes will apply to all orders"),b=this.animateFromLeftOverride||this.dialogRef&&h(this.dialogRef),w=this.dialogRef&&(()=>{const o=this.dialogRef.getBoundingClientRect();return o.top>=window.innerHeight-o.bottom})(),{customMessages:z}=n,v=`${l("Welcome to")} ${a.organizationName}!`,C=(null===(o=z.find((o=>"hello_default"===o.pageName)))||void 0===o?void 0:o.message)||l("Know about duties and taxes before you buy. Shop with confidence!"),x=this.getCurrentPageEnum(),k=z.filter((o=>o.pageName===x));return e(s,{class:"zonos--elements"},e("div",{"aria-hidden":"true",class:r(["zonos--hello-dialog",b&&"zonos--hello-dialog-animate-from-left",w&&"zonos--hello-dialog-animate-from-bottom",!!this.mobileLocationOverride&&"zonos--hello-dialog-mobile-override",this.isOpen&&"zonos--hello-dialog-open"]),ref:o=>o&&(this.dialogRef=o)},e("div",{class:"zonos--hello-dialog-content"},e("zonos-button",{class:"zonos--close-button",icon:e("zonos-icon",{content:'<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>'}),noBackground:!0,onClick:()=>this.setIsOpen(!1)}),e("div",null,this.showCountrySelect?e("zonos-country-select",{closeCountrySelect:()=>this.setShowCountrySelect(!1)}):e("zonos-v-stack",{spacing:24},e("zonos-country-flag",{class:"zonos--hello-country-flag",countryCode:d}),e("zonos-v-stack",{class:"zonos--hello-dialog-header",spacing:4},e("zonos-text",{type:"boldSubheader"},v),e("zonos-text",{color:"gray-800"},C)),e("zonos-v-stack",{spacing:8},this.restrictedItems.map((o=>{var t;return o&&e("zonos-banner",{bannerTitle:o.name,intent:"error"},null===(t=o.itemRestrictions)||void 0===t?void 0:t.map((o=>e("zonos-text",{color:"red-800"},null==o?void 0:o.note))))})),e("zonos-card",{spacing:"12px"},e("zonos-v-stack",{spacing:12},e("div",{class:"zonos--flex-message"},e("zonos-icon",{content:'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M9.66666 4.16667C9.20642 4.16667 8.83333 4.53976 8.83333 5V5.83333H12.1667V5C12.1667 4.53976 11.7936 4.16667 11.3333 4.16667H9.66666ZM13.8333 5.83333V5C13.8333 3.61929 12.714 2.5 11.3333 2.5H9.66666C8.28595 2.5 7.16666 3.61929 7.16666 5V5.83333H6.77759C5.44832 5.83333 4.35149 6.87354 4.2811 8.20094L3.92756 14.8676C3.85169 16.2983 4.99133 17.5 6.42405 17.5H14.5759C16.0087 17.5 17.1483 16.2983 17.0724 14.8676L16.7189 8.20094C16.6485 6.87354 15.5517 5.83333 14.2224 5.83333H13.8333ZM12.1667 7.5V8.33333C12.1667 8.79357 12.5398 9.16667 13 9.16667C13.4602 9.16667 13.8333 8.79357 13.8333 8.33333V7.5H14.2224C14.6655 7.5 15.0311 7.84674 15.0546 8.2892L15.4081 14.9559C15.4334 15.4328 15.0535 15.8333 14.5759 15.8333H6.42405C5.94648 15.8333 5.5666 15.4328 5.59189 14.9559L5.94542 8.2892C5.96889 7.84674 6.3345 7.5 6.77759 7.5H7.16666V8.33333C7.16666 8.79357 7.53976 9.16667 7.99999 9.16667C8.46023 9.16667 8.83333 8.79357 8.83333 8.33333V7.5H12.1667Z" fill="#4D505A"/>\n</svg>\n'}),e("zonos-text",null,g)),e("div",{class:"zonos--flex-message"},e("zonos-icon",{content:'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.16666 5.83301C2.16666 4.4523 3.28594 3.33301 4.66666 3.33301H16.3333C17.714 3.33301 18.8333 4.4523 18.8333 5.83301V14.1663C18.8333 15.5471 17.714 16.6663 16.3333 16.6663H4.66666C3.28594 16.6663 2.16666 15.5471 2.16666 14.1663V5.83301ZM4.66666 4.99967C4.20642 4.99967 3.83332 5.37277 3.83332 5.83301V14.1663C3.83332 14.6266 4.20642 14.9997 4.66666 14.9997H16.3333C16.7936 14.9997 17.1667 14.6266 17.1667 14.1663V5.83301C17.1667 5.37277 16.7936 4.99967 16.3333 4.99967H4.66666ZM6.33332 8.33301C6.79356 8.33301 7.16666 8.7061 7.16666 9.16634V10.833C7.16666 11.2932 6.79356 11.6663 6.33332 11.6663C5.87309 11.6663 5.49999 11.2932 5.49999 10.833V9.16634C5.49999 8.7061 5.87309 8.33301 6.33332 8.33301ZM8.83332 9.99967C8.83332 9.0792 9.57952 8.33301 10.5 8.33301C11.4205 8.33301 12.1667 9.0792 12.1667 9.99967C12.1667 10.9201 11.4205 11.6663 10.5 11.6663C9.57952 11.6663 8.83332 10.9201 8.83332 9.99967ZM14.6667 8.33301C15.1269 8.33301 15.5 8.7061 15.5 9.16634V10.833C15.5 11.2932 15.1269 11.6663 14.6667 11.6663C14.2064 11.6663 13.8333 11.2932 13.8333 10.833V9.16634C13.8333 8.7061 14.2064 8.33301 14.6667 8.33301Z" fill="#4D505A"/>\n</svg>\n'}),e("zonos-text",null,p)))),k.map((o=>e("zonos-custom-message",{icon:'<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 4.5C2.25 3.25736 3.25736 2.25 4.5 2.25H13.5C14.7426 2.25 15.75 3.25736 15.75 4.5V10.5C15.75 11.7426 14.7426 12.75 13.5 12.75H8.25C8.01393 12.75 7.79164 12.8611 7.65 13.05L6.3 14.85C5.87508 15.4166 5.2082 15.75 4.5 15.75C3.25736 15.75 2.25 14.7426 2.25 13.5V4.5ZM4.5 3.75C4.08579 3.75 3.75 4.08579 3.75 4.5V13.5C3.75 13.9142 4.08579 14.25 4.5 14.25C4.73607 14.25 4.95836 14.1389 5.1 13.95L6.45 12.15C6.87492 11.5834 7.5418 11.25 8.25 11.25H13.5C13.9142 11.25 14.25 10.9142 14.25 10.5V4.5C14.25 4.08579 13.9142 3.75 13.5 3.75H4.5ZM5.25 6C5.25 5.58579 5.58579 5.25 6 5.25H12C12.4142 5.25 12.75 5.58579 12.75 6C12.75 6.41421 12.4142 6.75 12 6.75H6C5.58579 6.75 5.25 6.41421 5.25 6ZM5.25 9C5.25 8.58579 5.58579 8.25 6 8.25H8.25C8.66421 8.25 9 8.58579 9 9C9 9.41421 8.66421 9.75 8.25 9.75H6C5.58579 9.75 5.25 9.41421 5.25 9Z" fill="#4D505A"/>\n</svg>\n',message:o.message}))))))),!this.showCountrySelect&&e("zonos-hello-dialog-footer",{appearanceSettings:this.appearanceSettings,setShowCountrySelect:o=>this.setShowCountrySelect(o)})))}static get assetsDirs(){return["assets"]}static get watchers(){return{isOpen:["isOpenHandler"]}}};d.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--hello-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--amino-v3-shadow-medium);box-shadow:var(--amino-v3-shadow-medium);z-index:10;justify-self:center}:host .zonos--hello-dialog{position:absolute;background:var(--amino-surface-color);width:100vw;max-width:430px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;max-height:600px;border-radius:var(--amino-radius-12);outline:none;-webkit-box-shadow:var(--amino-v3-shadow-xxl);box-shadow:var(--amino-v3-shadow-xxl);overflow-y:auto;top:-2px;right:-2px;opacity:0;-webkit-transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:top right;transform-origin:top right;z-index:1001}:host .zonos--hello-dialog .zonos--hello-dialog-header{text-align:center}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:top left;transform-origin:top left;right:unset;left:-2px}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom{-webkit-transform-origin:bottom right;transform-origin:bottom right;bottom:calc(100% - 32px);top:unset}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom left;transform-origin:bottom left}:host .zonos--hello-dialog::-webkit-scrollbar{width:12px;height:12px}:host .zonos--hello-dialog::-webkit-scrollbar-track{background:#f5f5f5;border-top-right-radius:var(--amino-radius-12);border-bottom-right-radius:var(--amino-radius-12)}:host .zonos--hello-dialog::-webkit-scrollbar-thumb{border-radius:10px;background:#ccc;border:4px solid transparent;background-clip:content-box}:host .zonos--hello-dialog::-webkit-scrollbar-thumb:hover{background:#999}:host .zonos--hello-dialog .zonos--animate-content{opacity:0;height:0;-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out}:host .zonos--hello-dialog .zonos--show-animate-content{opacity:1;height:100%}:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scale(1);transform:scale(1)}:host .zonos--hello-dialog .zonos--close-button{position:absolute;right:var(--amino-space-8);top:var(--amino-space-8);width:var(--amino-size-md);height:var(--amino-size-md);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;z-index:10}:host .zonos--hello-dialog .zonos--close-button:hover{background:var(--amino-hover-color);border-radius:var(--amino-radius-6)}:host .zonos--hello-dialog .zonos--hello-dialog-content{padding:var(--amino-space-16)}:host .zonos--hello-dialog .zonos--hello-dialog-content .zonos--hello-country-flag{border-radius:var(--amino-radius-4);width:32px;height:24px}:host .zonos--hello-dialog .zonos--flex-message{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--amino-space-12)}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:unset;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}@media (max-width: 768px){:host .zonos--hello-dialog{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:unset;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}}";export{d as zonos_hello_dialog}
|
|
1
|
+
import{r as o,c as t,h as e,H as s}from"./p-956efa27.js";import{k as i,a as n,t as l}from"./p-a244579e.js";import{z as a}from"./p-86f22026.js";import{c as r}from"./p-b4b7f705.js";import{g as h}from"./p-5883217a.js";const d=class{constructor(e){o(this,e),this.closeDialog=t(this,"closeDialog",7),this.clickOutsideDialogHandler=o=>{!o.composedPath().includes(this.dialogRef)&&this.isOpen&&this.setIsOpen(!1)},this.getCurrentPageEnum=()=>{switch(a.currentHelloPage){case"home":return"hello_homepage";case"cart":return"hello_cart";case"productList":return"hello_item_list";case"productDetail":return"hello_item_details";default:return null}},this.setShowCountrySelect=async o=>{this.showCountrySelect=o},this.isOpen=!1,this.setIsOpen=()=>{},this.mobileLocationOverride=void 0,this.animateFromLeftOverride=void 0,this.appearanceSettings=void 0,this.restrictedItems=[],this.welcomeMessage="Welcome to our Demo App!",this.showCountrySelect=!1}globalClickHandler(o){this.clickOutsideDialogHandler(o)}isOpenHandler(o){o||this.setShowCountrySelect(!1)}render(){var o;const{countryLandedCost:t,selectedCountryCode:d}=n,c=(null==t?void 0:t.dutyDeminimus)?i(t.dutyDeminimus):null,m="CA"===n.selectedCountryCode?i(40):c,g=m?`${l("Spend")} ${m} ${l("duty free")}`:l("Duties will apply to all orders"),f=(null==t?void 0:t.vatTaxDeminimus)?i(t.vatTaxDeminimus):null,u="CA"===n.selectedCountryCode?i(150):f,p=u?`${l("Spend")} ${u} ${l("tax free")}`:l("Taxes will apply to all orders"),b=this.animateFromLeftOverride||this.dialogRef&&h(this.dialogRef),w=this.dialogRef&&(()=>{const o=this.dialogRef.getBoundingClientRect();return o.top>=window.innerHeight-o.bottom})(),{customMessages:z}=n,v=`${l("Welcome to")} ${a.organizationName}!`,C=(null===(o=z.find((o=>"hello_default"===o.pageName)))||void 0===o?void 0:o.message)||l("Know about duties and taxes before you buy. Shop with confidence!"),x=this.getCurrentPageEnum(),k=z.filter((o=>o.pageName===x));return e(s,{class:"zonos--elements"},e("div",{"aria-hidden":"true",class:r(["zonos--hello-dialog",b&&"zonos--hello-dialog-animate-from-left",w&&"zonos--hello-dialog-animate-from-bottom",!!this.mobileLocationOverride&&"zonos--hello-dialog-mobile-override",this.isOpen&&"zonos--hello-dialog-open"]),ref:o=>o&&(this.dialogRef=o)},e("div",{class:"zonos--hello-dialog-content"},e("zonos-button",{class:"zonos--close-button",icon:e("zonos-icon",{content:'<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>'}),noBackground:!0,onClick:()=>this.setIsOpen(!1)}),e("div",null,this.showCountrySelect?e("zonos-country-select",{closeCountrySelect:()=>this.setShowCountrySelect(!1)}):e("zonos-v-stack",{spacing:24},e("zonos-country-flag",{class:"zonos--hello-country-flag",countryCode:d}),e("zonos-v-stack",{class:"zonos--hello-dialog-header",spacing:4},e("zonos-text",{type:"boldSubheader"},v),e("zonos-text",{color:"gray-800"},C)),e("zonos-v-stack",{spacing:8},this.restrictedItems.map((o=>{var t;return o&&e("zonos-banner",{bannerTitle:o.name,intent:"error"},null===(t=o.itemRestrictions)||void 0===t?void 0:t.map((o=>e("zonos-text",{color:"red-800"},null==o?void 0:o.note))))})),e("zonos-card",{spacing:"12px"},e("zonos-v-stack",{spacing:12},e("div",{class:"zonos--flex-message"},e("zonos-icon",{content:'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M9.66666 4.16667C9.20642 4.16667 8.83333 4.53976 8.83333 5V5.83333H12.1667V5C12.1667 4.53976 11.7936 4.16667 11.3333 4.16667H9.66666ZM13.8333 5.83333V5C13.8333 3.61929 12.714 2.5 11.3333 2.5H9.66666C8.28595 2.5 7.16666 3.61929 7.16666 5V5.83333H6.77759C5.44832 5.83333 4.35149 6.87354 4.2811 8.20094L3.92756 14.8676C3.85169 16.2983 4.99133 17.5 6.42405 17.5H14.5759C16.0087 17.5 17.1483 16.2983 17.0724 14.8676L16.7189 8.20094C16.6485 6.87354 15.5517 5.83333 14.2224 5.83333H13.8333ZM12.1667 7.5V8.33333C12.1667 8.79357 12.5398 9.16667 13 9.16667C13.4602 9.16667 13.8333 8.79357 13.8333 8.33333V7.5H14.2224C14.6655 7.5 15.0311 7.84674 15.0546 8.2892L15.4081 14.9559C15.4334 15.4328 15.0535 15.8333 14.5759 15.8333H6.42405C5.94648 15.8333 5.5666 15.4328 5.59189 14.9559L5.94542 8.2892C5.96889 7.84674 6.3345 7.5 6.77759 7.5H7.16666V8.33333C7.16666 8.79357 7.53976 9.16667 7.99999 9.16667C8.46023 9.16667 8.83333 8.79357 8.83333 8.33333V7.5H12.1667Z" fill="#4D505A"/>\n</svg>\n'}),e("zonos-text",null,g)),e("div",{class:"zonos--flex-message"},e("zonos-icon",{content:'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.16666 5.83301C2.16666 4.4523 3.28594 3.33301 4.66666 3.33301H16.3333C17.714 3.33301 18.8333 4.4523 18.8333 5.83301V14.1663C18.8333 15.5471 17.714 16.6663 16.3333 16.6663H4.66666C3.28594 16.6663 2.16666 15.5471 2.16666 14.1663V5.83301ZM4.66666 4.99967C4.20642 4.99967 3.83332 5.37277 3.83332 5.83301V14.1663C3.83332 14.6266 4.20642 14.9997 4.66666 14.9997H16.3333C16.7936 14.9997 17.1667 14.6266 17.1667 14.1663V5.83301C17.1667 5.37277 16.7936 4.99967 16.3333 4.99967H4.66666ZM6.33332 8.33301C6.79356 8.33301 7.16666 8.7061 7.16666 9.16634V10.833C7.16666 11.2932 6.79356 11.6663 6.33332 11.6663C5.87309 11.6663 5.49999 11.2932 5.49999 10.833V9.16634C5.49999 8.7061 5.87309 8.33301 6.33332 8.33301ZM8.83332 9.99967C8.83332 9.0792 9.57952 8.33301 10.5 8.33301C11.4205 8.33301 12.1667 9.0792 12.1667 9.99967C12.1667 10.9201 11.4205 11.6663 10.5 11.6663C9.57952 11.6663 8.83332 10.9201 8.83332 9.99967ZM14.6667 8.33301C15.1269 8.33301 15.5 8.7061 15.5 9.16634V10.833C15.5 11.2932 15.1269 11.6663 14.6667 11.6663C14.2064 11.6663 13.8333 11.2932 13.8333 10.833V9.16634C13.8333 8.7061 14.2064 8.33301 14.6667 8.33301Z" fill="#4D505A"/>\n</svg>\n'}),e("zonos-text",null,p)))),k.map((o=>e("zonos-custom-message",{icon:'<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 4.5C2.25 3.25736 3.25736 2.25 4.5 2.25H13.5C14.7426 2.25 15.75 3.25736 15.75 4.5V10.5C15.75 11.7426 14.7426 12.75 13.5 12.75H8.25C8.01393 12.75 7.79164 12.8611 7.65 13.05L6.3 14.85C5.87508 15.4166 5.2082 15.75 4.5 15.75C3.25736 15.75 2.25 14.7426 2.25 13.5V4.5ZM4.5 3.75C4.08579 3.75 3.75 4.08579 3.75 4.5V13.5C3.75 13.9142 4.08579 14.25 4.5 14.25C4.73607 14.25 4.95836 14.1389 5.1 13.95L6.45 12.15C6.87492 11.5834 7.5418 11.25 8.25 11.25H13.5C13.9142 11.25 14.25 10.9142 14.25 10.5V4.5C14.25 4.08579 13.9142 3.75 13.5 3.75H4.5ZM5.25 6C5.25 5.58579 5.58579 5.25 6 5.25H12C12.4142 5.25 12.75 5.58579 12.75 6C12.75 6.41421 12.4142 6.75 12 6.75H6C5.58579 6.75 5.25 6.41421 5.25 6ZM5.25 9C5.25 8.58579 5.58579 8.25 6 8.25H8.25C8.66421 8.25 9 8.58579 9 9C9 9.41421 8.66421 9.75 8.25 9.75H6C5.58579 9.75 5.25 9.41421 5.25 9Z" fill="#4D505A"/>\n</svg>\n',message:o.message}))))))),!this.showCountrySelect&&e("zonos-hello-dialog-footer",{appearanceSettings:this.appearanceSettings,setShowCountrySelect:o=>this.setShowCountrySelect(o)})))}static get assetsDirs(){return["assets"]}static get watchers(){return{isOpen:["isOpenHandler"]}}};d.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--hello-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--amino-v3-shadow-medium);box-shadow:var(--amino-v3-shadow-medium);z-index:10;justify-self:center}:host .zonos--hello-dialog{position:absolute;background:var(--amino-surface-color);width:100vw;max-width:430px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;max-height:600px;border-radius:var(--amino-radius-12);outline:none;-webkit-box-shadow:var(--amino-v3-shadow-xxl);box-shadow:var(--amino-v3-shadow-xxl);overflow-y:auto;top:-2px;right:-2px;opacity:0;-webkit-transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:top right;transform-origin:top right;z-index:1001}:host .zonos--hello-dialog .zonos--hello-dialog-header{text-align:center}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:top left;transform-origin:top left;right:unset;left:-2px}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom{-webkit-transform-origin:bottom right;transform-origin:bottom right;bottom:calc(100% - 32px);top:unset}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom left;transform-origin:bottom left}:host .zonos--hello-dialog::-webkit-scrollbar{width:12px;height:12px}:host .zonos--hello-dialog::-webkit-scrollbar-track{background:#f5f5f5;border-top-right-radius:var(--amino-radius-12);border-bottom-right-radius:var(--amino-radius-12)}:host .zonos--hello-dialog::-webkit-scrollbar-thumb{border-radius:10px;background:#ccc;border:4px solid transparent;background-clip:content-box}:host .zonos--hello-dialog::-webkit-scrollbar-thumb:hover{background:#999}:host .zonos--hello-dialog .zonos--animate-content{opacity:0;height:0;-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out}:host .zonos--hello-dialog .zonos--show-animate-content{opacity:1;height:100%}:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scale(1);transform:scale(1)}:host .zonos--hello-dialog .zonos--close-button{position:absolute;right:var(--amino-space-8);top:var(--amino-space-8);width:var(--amino-size-md);height:var(--amino-size-md);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;z-index:10}:host .zonos--hello-dialog .zonos--close-button:hover{background:var(--amino-hover-color);border-radius:var(--amino-radius-6)}:host .zonos--hello-dialog .zonos--hello-dialog-content{padding:var(--amino-space-16)}:host .zonos--hello-dialog .zonos--hello-dialog-content .zonos--hello-country-flag{border-radius:var(--amino-radius-4);width:32px;height:24px}:host .zonos--hello-dialog .zonos--flex-message{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--amino-space-12)}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:unset;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}@media (max-width: 768px){:host .zonos--hello-dialog{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:unset;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}}";export{d as zonos_hello_dialog}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,c as i,h as s,H as r}from"./p-956efa27.js";import{e as t,z as e}from"./p-
|
|
1
|
+
import{r as o,c as i,h as s,H as r}from"./p-956efa27.js";import{e as t,z as e}from"./p-86f22026.js";import{c as a}from"./p-b4b7f705.js";import{g as n}from"./p-2e1e9074.js";import{i as l}from"./p-4c414a92.js";const d=class{constructor(s){o(this,s),this.radioSelected=i(this,"radioSelected",7),this.handleRichRadioSelect=o=>{var i;this.selectedItem=o,null===(i=this.radioSelected)||void 0===i||i.emit(o)},this.getRadioItemStyleVariables=()=>{const o=this.borderColor||e.appearance.colorSecondary,i=l(o)?`var(--amino-${o})`:o;return{"--border-radius":n(this.borderStyle),"--selected-border-color":i||"unset"}},this.items=void 0,this.borderColor=void 0,this.borderStyle=void 0,this.theme=void 0,this.selectedItem=null}render(){var o;return s(r,{class:"zonos--shipping-rich-radio zonos--elements","data-theme":this.theme,style:Object.assign(Object.assign({},this.getRadioItemStyleVariables()),{"--font-family":t()})},null===(o=this.items)||void 0===o?void 0:o.map((o=>{var i;const r=(null===(i=this.selectedItem)||void 0===i?void 0:i.value)===o.value;return s("div",{"aria-hidden":"true",class:a(["zonos--shipping-rich-radio-item",r&&"selected"]),onClick:()=>this.handleRichRadioSelect(o)},s("input",{checked:r,class:"zonos--shipping-rich-radio-input",name:"zonos--shipping-rich-radio",type:"radio",value:o.value}),s("div",{class:"zonos--shipping-info"},s("div",{class:"zonos--shipping-detail"},s("zonos-text",{class:"zonos--shipping-label",type:"label"},o.label),(o.sublabel||o.caption)&&s("div",{class:"zonos--sub-detail"},o.sublabel&&s("zonos-text",{color:"gray-800"},o.sublabel),o.caption&&s("zonos-text",{color:"gray-400"},o.caption))),s("zonos-text",{type:"semiBoldLabel"},o.price)))})))}};d.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host input{margin:0;accent-color:var(--selected-border-color, var(--amino-blue-600))}:host .zonos--shipping-rich-radio-item{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;padding:var(--amino-space-16);-ms-flex-align:center;align-items:center;gap:var(--amino-space-16);cursor:pointer;border:1px solid var(--amino-gray-200)}:host .zonos--shipping-rich-radio-item:first-child{border-top-left-radius:var(--border-radius, var(--amino-radius-10));border-top-right-radius:var(--border-radius, var(--amino-radius-10))}:host .zonos--shipping-rich-radio-item:last-child{border-bottom-right-radius:var(--border-radius, var(--amino-radius-10));border-bottom-left-radius:var(--border-radius, var(--amino-radius-10))}:host .zonos--shipping-rich-radio-item:not(:last-child){border-bottom:none}:host .zonos--shipping-rich-radio-item.selected{outline:1px solid var(--selected-border-color, var(--amino-blue-600));outline-offset:-1px}:host .zonos--shipping-info{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex:1;flex:1}:host .zonos--shipping-detail{-ms-flex:1;flex:1}:host .zonos--sub-detail{display:-ms-inline-flexbox;display:inline-flex;gap:8px;-ms-flex-wrap:wrap;flex-wrap:wrap}";export{d as zonos_shipping_rich_radio}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o,h as e,H as t}from"./p-956efa27.js";import{_ as s,i,f as n,g as r,z as a,m as l}from"./p-86f22026.js";import{h,b as d,a as m,i as c,t as p,g as f,s as g,l as u,e as w,f as z,j as b,k as v}from"./p-a244579e.js";import{c as x}from"./p-b4b7f705.js";import{g as y}from"./p-5883217a.js";var k=function(){return s.Date.now()},T=/\s/,E=/^\s+/,L=function(o){return o?o.slice(0,function(o){for(var e=o.length;e--&&T.test(o.charAt(e)););return e}(o)+1).replace(E,""):o},C=/^[-+]0x[0-9a-f]+$/i,j=/^0b[01]+$/i,D=/^0o[0-7]+$/i,I=parseInt,R=function(o){if("number"==typeof o)return o;if(function(o){return"symbol"==typeof o||i(o)&&"[object Symbol]"==n(o)}(o))return NaN;if(r(o)){var e="function"==typeof o.valueOf?o.valueOf():o;o=r(e)?e+"":e}if("string"!=typeof o)return 0===o?o:+o;o=L(o);var t=j.test(o);return t||D.test(o)?I(o.slice(2),t?2:8):C.test(o)?NaN:+o},X=Math.max,S=Math.min,O=function(o,e,t){var s,i,n,a,l,h,d=0,m=!1,c=!1,p=!0;if("function"!=typeof o)throw new TypeError("Expected a function");function f(e){var t=s,n=i;return s=i=void 0,d=e,a=o.apply(n,t)}function g(o){var t=o-h;return void 0===h||t>=e||t<0||c&&o-d>=n}function u(){var o=k();if(g(o))return w(o);l=setTimeout(u,function(o){var t=e-(o-h);return c?S(t,n-(o-d)):t}(o))}function w(o){return l=void 0,p&&s?f(o):(s=i=void 0,a)}function z(){var o=k(),t=g(o);if(s=arguments,i=this,h=o,t){if(void 0===l)return function(o){return d=o,l=setTimeout(u,e),m?f(o):a}(h);if(c)return clearTimeout(l),l=setTimeout(u,e),f(h)}return void 0===l&&(l=setTimeout(u,e)),a}return e=R(e)||0,r(t)&&(m=!!t.leading,n=(c="maxWait"in t)?X(R(t.maxWait)||0,e):n,p="trailing"in t?!!t.trailing:p),z.cancel=function(){void 0!==l&&clearTimeout(l),d=0,s=h=i=l=void 0},z.flush=function(){return void 0===l?a:w(k())},z};const B=()=>{var o,e;const{productAddToCartElementSelector:t,productDescriptionElementSelector:s,productTitleElementSelector:i,restrictionBehavior:n}=a.helloSettings;i&&s||d("Hello Could not check item restrictions - must provide title and description selectors.");const r=i&&c(i)&&document.querySelectorAll(i)||[],l=s&&c(s)&&document.querySelectorAll(s)||[];if(r.length!==l.length)return d("Hello Could not check item restrictions - Title and description selectors do not match"),[];const h="RESTRICT_AND_BLOCK"===n,m=h&&t&&c(t)&&document.querySelectorAll(t)||[];h&&m.length!==l.length&&d('Hello could not disable "Add to cart" buttons - Title and add to cart selectors do not match');const p=[];for(let t=0;t<r.length;t++){const s=r[t],i=l[t];if(s&&i){const n={cartButtonNode:m[t]||null,description:(null===(o=i.textContent)||void 0===o?void 0:o.trim())||"",title:(null===(e=s.textContent)||void 0===e?void 0:e.trim())||""};p.push(n)}}return p},N=class{constructor(e){o(this,e),this.getHelloPeekMessage=o=>{if(("productDetail"===a.currentHelloPage||"productList"===a.currentHelloPage)&&this.allRestrictedItems.length){const o=p("click to learn more");return`${p("productDetail"===a.currentHelloPage?"Restricted item":"Restricted items found")} - ${o}`}switch(a.currentHelloPage){case"cart":return p("Prepay duties and taxes at checkout");case"productList":case"productDetail":return p("See duty and tax thresholds");default:return`${p("Welcome to")} ${o}`}},this.enableShowPeekMessage=()=>{this.peekMessage&&(this.showPeekMessage=!0)},this.getNewItemRestrictions=async o=>"productDetail"!==a.currentHelloPage&&"productList"!==a.currentHelloPage||"DISABLED"===a.helloSettings.restrictionBehavior?[]:await(async o=>{if(!o.length)return[];const{selectedCountryCode:e}=m;if(!e)return d("Hello Could not check item restrictions - No country code selected"),[];const t=o.map((o=>({description:o.description,name:o.title})));return(await(async({items:o,shipFrom:e,shipTo:t})=>{var s;const i={items:o,shipFrom:e,shipTo:t},{errors:n,json:r}=await h("https://v1.route.js.zonos.com/api/zonos-elements/check-item-restrictions",{body:i,method:"POST"});return n.length||!r?(d(`Error fetching item restrictions: ${null===(s=n.find(Boolean))||void 0===s?void 0:s.message}`),[]):r.filter(Boolean)})({items:t,shipFrom:"AD",shipTo:e})).map((o=>{var e;const s=(null===(e=t.filter((e=>e.description===o.itemDescription)).find(Boolean))||void 0===e?void 0:e.name)||"";return Object.assign(Object.assign({},o),{name:s})}))})(o),this.triggerShowPeekMessage=()=>{this.peekMessage=this.getHelloPeekMessage(a.organizationName);const{peekMessageBehavior:o,peekMessageDelay:e}=a.helloSettings;"ENABLED"===o&&setTimeout((()=>{this.enableShowPeekMessage(),this.allRestrictedItems.some((o=>this.productsOnPage.some((e=>e.description===o.itemDescription))))||setTimeout((()=>{this.showPeekMessage=!1}),3e3)}),1e3*e)},this.disableAddToCartButtons=()=>{this.productsOnPage.length&&this.productsOnPage.forEach((o=>{var e,t;this.allRestrictedItems.some((e=>e.itemDescription===o.description))?null===(e=o.cartButtonNode)||void 0===e||e.setAttribute("disabled","disabled"):null===(t=o.cartButtonNode)||void 0===t||t.removeAttribute("disabled")}))},this.handleItemRestrictions=async()=>{this.productsOnPage=B();const o=this.productsOnPage.filter((o=>!this.allFoundProducts.some((e=>e.title===o.title)))),e=await this.getNewItemRestrictions(o);this.allRestrictedItems.push(...e),this.allFoundProducts.push(...o),this.disableAddToCartButtons()},this.reloadHelloData=async()=>{await this.handleItemRestrictions(),this.triggerShowPeekMessage(),this.displayCurrency()},this.handleProductCountChange=O((()=>{const{productTitleElementSelector:o}=a.helloSettings;if(o){const o=B();if(this.allFoundProducts.length!==o.length&&window.location.href===this.initialUrl){if(!this.allFoundProducts.length)return;this.reloadHelloData()}}}),1e3),this.watchProductCountChange=()=>{new MutationObserver(this.handleProductCountChange).observe(document.body,{childList:!0,subtree:!0})},this.updateHelloOnPageChange=()=>{this.watchProductCountChange(),setInterval((()=>{if(window.location.href!==this.initialUrl){const o=this.initialUrl&&new URL(this.initialUrl);(o&&f(o.searchParams))!==m.selectedCountryCode&&(this.allFoundProducts=[],this.allRestrictedItems=[],this.productsOnPage=[]),this.initialUrl=window.location.href,a.currentHelloPage=(()=>{const{href:o}=window.location,{cartUrlPattern:e,homepageUrlPattern:t,productDetailUrlPattern:s,productListUrlPattern:i}=a.helloSettings;return e&&new RegExp(e).test(o)?"cart":s&&new RegExp(s).test(o)?"productDetail":i&&new RegExp(i).test(o)?"productList":t&&new RegExp(t).test(o)?"home":""})();const e=new URL(window.location.href);if(!f(e.searchParams))return void g(m.selectedCountryCode);this.reloadHelloData()}}),1e3)},this.changeShowDialog=o=>{this.showDialog=o},this.shouldAnimateLeftDesktop=()=>{const o=this.helloRef&&getComputedStyle(this.helloRef).position;if(this.helloRef&&"relative"===o)return y(this.helloRef)},this.isShippableCountry=(o=!0)=>!(!m.localizationLoaded||!m.isShippableCountry&&(o&&u("Hello: not shippable country"),1)),this.mobileLocationOverride=void 0,this.animateFromLeftOverride=void 0,this.appearanceSettingsOverride=void 0,this.showPeekMessage=!1,this.zonosStoreHelloSettings=a.helloSettings,this.showDialog=!1,this.peekMessage="",this.initialUrl="",this.allRestrictedItems=[],this.allFoundProducts=[],this.productsOnPage=[]}componentWillLoad(){const o=setInterval((async()=>{this.helloRef&&a.loadedConfig&&(this.helloRef.setAttribute("data-zonos-hello-loaded",""),this.updateHelloOnPageChange(),clearInterval(o))}),100)}async displayCurrency(){m.exchangeRate?w():console.error("Could not display currency. Exchange rate and format data is not available.")}async convertAndFormat(o){z(o)}async convert(o){b(o)}async format(o){v(o)}handleResize(){O(this.render.bind(this),500)}render(){var o,s;if(null===(o=a.helloSettings.excludedUrlPatterns)||void 0===o?void 0:o.some((o=>new RegExp(o).test(window.location.href))))return u("Hello is excluded on this url","warn"),null;const{selectedCountryCode:i}=m,n=this.mobileLocationOverride||a.helloSettings.mobileLocation,r=window.innerWidth<768,h=this.animateFromLeftOverride||r&&n.includes("LEFT")||this.shouldAnimateLeftDesktop()||!1,d=n.includes("TOP"),c=l(a.appearance,this.appearanceSettingsOverride),{theme:p}=c,f=null===(s=this.allRestrictedItems)||void 0===s?void 0:s.filter((o=>this.productsOnPage.some((e=>e.description===o.itemDescription))));this.peekMessage=this.getHelloPeekMessage(a.organizationName);const g=this.isShippableCountry()&&!!i;return e(t,{class:"zonos--hello zonos--elements","data-theme":p},g&&e("div",{class:"zonos--hello-wrapper"},e("button",{class:x(["zonos--hello-widget",this.showPeekMessage&&"zonos--hello-show-peek-message",this.mobileLocationOverride&&"zonos--hello-mobile-override",h&&"zonos--hello-widget-left zonos--hello-widget-animate-from-left",d&&"zonos--hello-widget-top",!!this.allRestrictedItems.length&&"zonos--hello-has-restrictions"]),onClick:()=>{this.changeShowDialog(!this.showDialog)},onMouseEnter:()=>this.enableShowPeekMessage(),onMouseLeave:()=>this.showPeekMessage=!1,ref:o=>o&&(this.helloRef=o)},e("zonos-text",{class:"zonos--hello-message"},this.peekMessage),i&&e("div",{class:"zonos--hello-country-flag-wrapper"},e("zonos-country-flag",{class:"zonos--hello-country-flag",countryCode:i}))),e("div",{class:x(["zonos--hello-dialog-wrapper",this.mobileLocationOverride&&"zonos--hello-dialog-wrapper-mobile-override"]),style:{height:this.showDialog?"fit-content":"0px"}},e("zonos-hello-dialog",{animateFromLeftOverride:this.animateFromLeftOverride,appearanceSettings:c,isOpen:this.showDialog,mobileLocationOverride:this.mobileLocationOverride,restrictedItems:f,setIsOpen:this.changeShowDialog}))))}};N.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:inline-block}:host .zonos--hello-wrapper{position:relative}:host .zonos--hello-wrapper .zonos--hello-dialog-wrapper-mobile-override{position:fixed;bottom:0;left:0;width:100vw;z-index:1001;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}@media (max-width: 768px){:host .zonos--hello-wrapper{position:fixed;bottom:0;left:0;width:100vw;z-index:1001;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}}:host .zonos--hello-widget{-webkit-transition:all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);transition:all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);padding:6px;border-radius:30px;background:var(--amino-page-background);font-size:var(--amino-font-size-s);border:var(--amino-border);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;cursor:pointer;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;z-index:1000}:host .zonos--hello-widget>.zonos--hello-message{-ms-flex-order:0;order:0;max-width:0;height:100%;white-space:nowrap;-webkit-transition:border 0.3s ease-in, all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);transition:border 0.3s ease-in, all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);overflow:hidden;color:var(--amino-text-color);position:absolute;background:var(--amino-page-background);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-top-left-radius:30px;border-bottom-left-radius:30px;left:0;-webkit-transform:translateX(calc(-100% + var(--amino-space-16)));transform:translateX(calc(-100% + var(--amino-space-16)));width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border-top:var(--amino-border);border-bottom:var(--amino-border)}:host .zonos--hello-widget.zonos--hello-has-restrictions{background:var(--amino-red-100);border:1px solid var(--amino-red-200)}:host .zonos--hello-widget.zonos--hello-has-restrictions>.zonos--hello-message{background:var(--amino-red-100);color:var(--amino-red-800);font-weight:500}:host .zonos--hello-widget.zonos--hello-has-restrictions.zonos--hello-show-peek-message>.zonos--hello-message{border:1px solid var(--amino-red-200)}:host .zonos--hello-widget.zonos--hello-show-peek-message{max-width:100vw;width:100%}:host .zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{max-width:100vw;padding:0 6px;padding-right:var(--amino-space-16);border:var(--amino-border)}:host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left){border-top-left-radius:0;border-bottom-left-radius:0}:host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left)>.zonos--hello-message{border-right:none}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left{border-top-right-radius:0;border-bottom-right-radius:0}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{border-left:0}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:var(--amino-space-16);padding-right:6px;border-left:none}:host .zonos--hello-widget.zonos--hello-widget-animate-from-left>.zonos--hello-message{-ms-flex-order:1;order:1;-webkit-transform:translateX(calc(100% - var(--amino-space-16)));transform:translateX(calc(100% - var(--amino-space-16)));right:0;left:auto;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:30px;border-bottom-right-radius:30px}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper .zonos--hello-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--amino-v3-shadow-medium);box-shadow:var(--amino-v3-shadow-medium);z-index:10;justify-self:center}@media (max-width: 768px){:host .zonos--hello-widget .zonos--hello-country-flag-wrapper .zonos--hello-country-flag{border-radius:var(--amino-radius-4);width:24px}}@media (max-width: 768px){:host .zonos--hello-widget{position:fixed;bottom:var(--amino-space-32);right:var(--amino-space-32);border-radius:var(--amino-radius-4);padding:var(--amino-space-4);border:1px solid transparent}:host .zonos--hello-widget.zonos--hello-widget-left{left:var(--amino-space-32);right:auto}:host .zonos--hello-widget.zonos--hello-widget-top{bottom:auto;top:var(--amino-space-32)}:host .zonos--hello-widget.zonos--hello-has-restrictions.zonos--hello-show-peek-message>.zonos--hello-message{border:none}:host .zonos--hello-widget>.zonos--hello-message{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-radius:30px;top:0;bottom:0;left:0;-webkit-transform:translateX(0);transform:translateX(0);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border:none}:host .zonos--hello-widget.zonos--hello-widget-animate-from-left>.zonos--hello-message{-webkit-transform:translateX(0);transform:translateX(0)}:host .zonos--hello-widget.zonos--hello-show-peek-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}:host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left){border-top-left-radius:var(--amino-radius-4);border-bottom-left-radius:var(--amino-radius-4)}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left{border-top-right-radius:var(--amino-radius-4);border-bottom-right-radius:var(--amino-radius-4)}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:var(--amino-space-8);padding-right:var(--amino-space-4)}:host .zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{padding:0 var(--amino-radius-4);padding-right:6px;border:none}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper{border-radius:var(--amino-radius-4)}}:host .zonos--hello-mobile-override.zonos--hello-widget{position:fixed;bottom:var(--amino-space-32);right:var(--amino-space-32);border-radius:var(--amino-radius-4);padding:var(--amino-space-4);border:1px solid transparent}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-left{left:var(--amino-space-32);right:auto}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-top{bottom:auto;top:var(--amino-space-32)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-has-restrictions.zonos--hello-show-peek-message>.zonos--hello-message{border:none}:host .zonos--hello-mobile-override.zonos--hello-widget>.zonos--hello-message{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-radius:30px;top:0;bottom:0;left:0;-webkit-transform:translateX(0);transform:translateX(0);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border:none}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-animate-from-left>.zonos--hello-message{-webkit-transform:translateX(0);transform:translateX(0)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left){border-top-left-radius:var(--amino-radius-4);border-bottom-left-radius:var(--amino-radius-4)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left{border-top-right-radius:var(--amino-radius-4);border-bottom-right-radius:var(--amino-radius-4)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:var(--amino-space-8);padding-right:var(--amino-space-4)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{padding:0 var(--amino-radius-4);padding-right:6px;border:none}:host .zonos--hello-mobile-override.zonos--hello-widget .zonos--hello-country-flag-wrapper{border-radius:var(--amino-radius-4)}:host .zonos--hello-mobile-override.zonos--hello-widget .zonos--hello-country-flag{border-radius:var(--amino-radius-4);width:24px}";export{N as zonos_hello}
|