@zonos/elements 1.3.239 → 1.3.241
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/dist/cjs/{cart-e435a549.js → cart-376f0f29.js} +4 -2
- package/dist/cjs/{hasInclusivePrice-06d35d3c.js → hasInclusivePrice-2e306ea5.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{invoice-fc7bef1e.js → invoice-856220a7.js} +2 -2
- package/dist/cjs/{isCollectMobileTablet-aeeb0401.js → isCollectMobileTablet-72ea7338.js} +2 -2
- package/dist/cjs/{localization-98db6c18.js → localization-08aa03da.js} +60 -0
- package/dist/cjs/{paypal-a7bb03b5.js → paypal-ef7e2610.js} +2 -2
- package/dist/cjs/{placeTestOrder-6d99608b.js → placeTestOrder-427786ae.js} +2 -2
- package/dist/cjs/{renderCheckoutCurrency-530fb636.js → renderCheckoutCurrency-9057dec8.js} +2 -2
- package/dist/cjs/zonos-address-display_9.cjs.entry.js +2 -2
- package/dist/cjs/zonos-address_4.cjs.entry.js +2 -2
- package/dist/cjs/zonos-card_5.cjs.entry.js +3 -3
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +6 -6
- package/dist/cjs/zonos-checkout.cjs.entry.js +3 -3
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +2 -2
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +6 -6
- package/dist/cjs/zonos-collect.cjs.entry.js +4 -4
- package/dist/cjs/zonos-controller.cjs.entry.js +2 -2
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +2 -2
- package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
- package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +4 -4
- package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +6 -6
- package/dist/cjs/zonos-invoice.cjs.entry.js +4 -4
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
- package/dist/collection/components/store/checkout/stripe.js +4 -1
- package/dist/collection/components/store/translationStore/strings.arabic.js +3 -0
- package/dist/collection/components/store/translationStore/strings.base.js +3 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +3 -0
- package/dist/collection/components/store/translationStore/strings.french.js +3 -0
- package/dist/collection/components/store/translationStore/strings.german.js +3 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +3 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +3 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +3 -0
- package/dist/collection/types/generated/graphql.frontend.types.js +4 -0
- package/dist/collection/types/generated/graphql.internal.types.js +387 -0
- package/dist/esm/{cart-d802d953.js → cart-60532eb4.js} +4 -2
- package/dist/esm/{hasInclusivePrice-0285118a.js → hasInclusivePrice-736c9eec.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{invoice-888ae8c9.js → invoice-cbb44b0b.js} +2 -2
- package/dist/esm/{isCollectMobileTablet-028f8611.js → isCollectMobileTablet-e5503ab8.js} +2 -2
- package/dist/esm/{localization-8f12d460.js → localization-285da14c.js} +60 -0
- package/dist/esm/{paypal-9b9e6231.js → paypal-ac12eedb.js} +2 -2
- package/dist/esm/{placeTestOrder-42778584.js → placeTestOrder-bba48f55.js} +2 -2
- package/dist/esm/{renderCheckoutCurrency-db3ce341.js → renderCheckoutCurrency-0176e66f.js} +2 -2
- package/dist/esm/zonos-address-display_9.entry.js +2 -2
- package/dist/esm/zonos-address_4.entry.js +2 -2
- package/dist/esm/zonos-card_5.entry.js +3 -3
- package/dist/esm/zonos-cart-items_12.entry.js +6 -6
- package/dist/esm/zonos-checkout.entry.js +3 -3
- package/dist/esm/zonos-collect-cart-items_3.entry.js +2 -2
- package/dist/esm/zonos-collect-finish_6.entry.js +6 -6
- package/dist/esm/zonos-collect.entry.js +4 -4
- package/dist/esm/zonos-controller.entry.js +2 -2
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_4.entry.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +2 -2
- package/dist/esm/zonos-hello.entry.js +1 -1
- package/dist/esm/zonos-invoice-cart-items_2.entry.js +4 -4
- package/dist/esm/zonos-invoice-finish_5.entry.js +6 -6
- package/dist/esm/zonos-invoice.entry.js +4 -4
- package/dist/esm/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/{cart-d802d953.js → cart-60532eb4.js} +1 -1
- package/dist/esm-es5/{hasInclusivePrice-0285118a.js → hasInclusivePrice-736c9eec.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{invoice-888ae8c9.js → invoice-cbb44b0b.js} +1 -1
- package/dist/esm-es5/{isCollectMobileTablet-028f8611.js → isCollectMobileTablet-e5503ab8.js} +1 -1
- package/dist/esm-es5/localization-285da14c.js +1 -0
- package/dist/esm-es5/{paypal-9b9e6231.js → paypal-ac12eedb.js} +1 -1
- package/dist/esm-es5/{placeTestOrder-42778584.js → placeTestOrder-bba48f55.js} +1 -1
- package/dist/esm-es5/{renderCheckoutCurrency-db3ce341.js → renderCheckoutCurrency-0176e66f.js} +1 -1
- package/dist/esm-es5/zonos-address-display_9.entry.js +1 -1
- package/dist/esm-es5/zonos-address_4.entry.js +1 -1
- package/dist/esm-es5/zonos-card_5.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
- package/dist/esm-es5/zonos-collect.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.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-invoice-cart-items_2.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/scripts/index.d.ts +766 -0
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +3 -0
- package/dist/types/types/checkout/CheckoutConfig.d.ts +10 -0
- package/dist/types/types/generated/graphql.frontend.types.d.ts +6 -0
- package/dist/types/types/generated/graphql.frontend.types.ts +6 -0
- package/dist/types/types/generated/graphql.internal.types.d.ts +417 -9
- package/dist/types/types/generated/graphql.internal.types.ts +471 -11
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-a006320c.entry.js → p-0307e4ac.entry.js} +1 -1
- package/dist/zonos-elements/{p-bf37c05f.entry.js → p-094f9c5a.entry.js} +1 -1
- package/dist/zonos-elements/{p-48637bf6.system.js → p-0c977c47.system.js} +1 -1
- package/dist/zonos-elements/{p-f0cbecc3.system.entry.js → p-13927760.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a12605f5.system.entry.js → p-149365e3.system.entry.js} +1 -1
- package/dist/zonos-elements/p-1a5a23ed.js +1 -0
- package/dist/zonos-elements/p-22e26d61.entry.js +1 -0
- package/dist/zonos-elements/{p-20dac9d4.system.entry.js → p-2ab3f86c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-fadd50de.system.js → p-2ed81f5d.system.js} +1 -1
- package/dist/zonos-elements/{p-37f46852.js → p-328990f0.js} +1 -1
- package/dist/zonos-elements/{p-387304a0.system.entry.js → p-32fddb6d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-09f2cbc9.system.js → p-3a19ae6e.system.js} +1 -1
- package/dist/zonos-elements/{p-a87b5eaa.system.js → p-3a8a6092.system.js} +1 -1
- package/dist/zonos-elements/{p-d24dde2c.system.js → p-3e30e203.system.js} +1 -1
- package/dist/zonos-elements/p-3ef06605.js +1 -0
- package/dist/zonos-elements/{p-0e80d189.system.entry.js → p-4954a927.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-cd8ffc39.entry.js → p-4dfd33d9.entry.js} +1 -1
- package/dist/zonos-elements/{p-3fce3aef.entry.js → p-5a5c06ad.entry.js} +1 -1
- package/dist/zonos-elements/{p-85fff8a2.system.entry.js → p-60397a04.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3913b1e4.system.entry.js → p-61aa9365.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e806f268.system.entry.js → p-62cfcd21.system.entry.js} +1 -1
- package/dist/zonos-elements/p-664da916.entry.js +1 -0
- package/dist/zonos-elements/{p-09e3ed0d.entry.js → p-706d1537.entry.js} +1 -1
- package/dist/zonos-elements/{p-26ce341c.system.entry.js → p-79b9aee4.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1f1bf0c6.entry.js → p-7eae7c62.entry.js} +1 -1
- package/dist/zonos-elements/p-83bf52d6.js +1 -0
- package/dist/zonos-elements/{p-b9b42171.system.js → p-85205ac8.system.js} +1 -1
- package/dist/zonos-elements/{p-a8b1c81e.system.js → p-87bed9ec.system.js} +1 -1
- package/dist/zonos-elements/{p-b29c5296.entry.js → p-8fd37163.entry.js} +1 -1
- package/dist/zonos-elements/{p-35a1979e.system.entry.js → p-90f58466.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b80d40e5.system.entry.js → p-9c7edad5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a5ac9c92.entry.js → p-9e29a4a3.entry.js} +1 -1
- package/dist/zonos-elements/p-ab195686.system.js +1 -0
- package/dist/zonos-elements/{p-8916f54e.system.entry.js → p-b152859d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5fc40d18.system.entry.js → p-b408debb.system.entry.js} +1 -1
- package/dist/zonos-elements/p-c2442878.system.js +1 -1
- package/dist/zonos-elements/{p-a5538e61.entry.js → p-c3533444.entry.js} +1 -1
- package/dist/zonos-elements/{p-63a1b931.entry.js → p-c5195813.entry.js} +1 -1
- package/dist/zonos-elements/{p-cca277fb.system.js → p-cd12c86c.system.js} +1 -1
- package/dist/zonos-elements/{p-aa34f69d.system.entry.js → p-d9007f2e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-475e5167.entry.js → p-de517648.entry.js} +1 -1
- package/dist/zonos-elements/{p-68991148.system.entry.js → p-de5a68c3.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-293d7a79.entry.js → p-df69f036.entry.js} +1 -1
- package/dist/zonos-elements/{p-f7290144.system.entry.js → p-dfb429d7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8e250c09.entry.js → p-e0227f2c.entry.js} +1 -1
- package/dist/zonos-elements/p-e5ee64c0.entry.js +1 -0
- package/dist/zonos-elements/{p-dadd3f97.js → p-e8f4da3a.js} +1 -1
- package/dist/zonos-elements/{p-e2e1145c.js → p-f04c208e.js} +1 -1
- package/dist/zonos-elements/{p-442f1023.js → p-f2614438.js} +1 -1
- package/dist/zonos-elements/p-f73d243a.js +1 -0
- package/dist/zonos-elements/{p-e8c344c9.system.entry.js → p-fc43442d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-632eb7c9.entry.js → p-fc64f69d.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/localization-8f12d460.js +0 -1
- package/dist/zonos-elements/p-0abc8161.entry.js +0 -1
- package/dist/zonos-elements/p-2e74e090.entry.js +0 -1
- package/dist/zonos-elements/p-3b598f1d.system.js +0 -1
- package/dist/zonos-elements/p-48f48767.js +0 -1
- package/dist/zonos-elements/p-59bc0ca9.js +0 -1
- package/dist/zonos-elements/p-802a28f5.js +0 -1
- package/dist/zonos-elements/p-bb73eb0f.js +0 -1
- package/dist/zonos-elements/p-c8ee9fd2.entry.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as r}from"./p-dadd3f97.js";import{s as o}from"./p-59bc0ca9.js";import{l as s,h as e}from"./p-41dd1cb8.js";const t=async()=>{var t,d;const i=null===(t=r.partiesData.find((r=>"DESTINATION"===r.type)))||void 0===t?void 0:t.id,a=null===(d=r.partiesData.find((r=>"PAYOR"===r.type)))||void 0===d?void 0:d.id,n=o.checkoutSessionId;if(!n||!a||!i)return s("Missing required data",{billToPartyId:a,checkoutSessionId:n,shipToPartyId:i}),{errors:["Missing required data"],json:null};const l={billToPartyId:a,checkoutSessionId:n,shipToPartyId:i},{errors:c,json:p}=await e("/api/zonos-elements/place-test-order",{body:l,method:"POST"});return c.length||!p?(s("Error occurs when placing test order",c),{errors:c.map((r=>r.message)),json:null}):{errors:[],json:p}};export{t as p}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as o}from"./p-dadd3f97.js";import{o as r,d as n}from"./p-59bc0ca9.js";const u=({amount:u,isForeign:i})=>{var t,a;const d=(null===(t=o.exchangeRate)||void 0===t?void 0:t.rate)||1,c=i?u:r(u),s=o.currency;if((null===(a=o.items[0])||void 0===a?void 0:a.currencyCode)===s)return n({amount:c,currency:s});const v=o.displayBaseCurrency,e=(()=>{var r,n;return o.displayBaseCurrency&&(null===(r=o.exchangeRate)||void 0===r?void 0:r.sourceCurrencyCode)?null===(n=o.exchangeRate)||void 0===n?void 0:n.sourceCurrencyCode:o.currency})();return n(i?{amount:v?c/d:c,currency:e}:{amount:v?c:c*d,currency:e})};export{u as r}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as o,H as s,a as e,c as a}from"./p-ab41bab5.js";import{f as n}from"./p-b2a0ab4a.js";import{c as i}from"./p-b4b7f705.js";import{g as r}from"./p-1f894984.js";import{c,t as h}from"./p-dadd3f97.js";import{s as l}from"./p-59bc0ca9.js";import{l as p}from"./p-41dd1cb8.js";import{d,e as m}from"./p-e2e1145c.js";import{l as y}from"./p-0a377722.js";import"./p-57fa64d7.js";const f=class{constructor(o){t(this,o),this.borderRadius=6,this.spacing="24px"}render(){const t=this.backgroundColor?`var(--zonos-elements-${this.backgroundColor})`:"transparent",e=r({customRoundRadius:`${this.borderRadius}px`,overrideBorderStyle:"ROUNDED"});return o(s,{key:"8832966776c626c783e771fb7f9a773d2539e07f",style:{"--zonos--font-family":n()}},o("div",{key:"89c9af9275ca5b01f658081fefb7756bfcbf6d58",class:i(["styled-card"]),style:{"--zonos--background-color":t,"--zonos--border-radius":e,padding:this.spacing}},this.label&&o("header",{key:"3da688655c5a9af66397525d02224dbc431d00d0",class:"card-header",style:{padding:this.spacing}},o("zonos-text",{key:"8e9524d26e5a0a7e3149b4008efd02b5a7b9ebc6",type:"subheader"},this.label),o("h-stack",{key:"f7298bbb158686b03b2a09f5d6c089c0f4d144c4",spacing:8},this.actions)),o("slot",{key:"24888347ff25ffd21b416da4f5aae493f8044638"}),(this.footerActions||this.footerContent)&&o("footer",{key:"b6792e7345b87e9407585ed4558c7327ea3eab36",class:"card-footer",style:{height:this.footerHeight?`${this.footerHeight}px`:"auto",padding:this.spacing}},o("div",{key:"70ccde8e9b1988db1ba477efea5b44e812a7514d"},this.footerContent),o("h-stack",{key:"4e48425e9db7031d779da7061f0b2d92b27869a0",spacing:8},this.footerActions))))}};f.style=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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 .styled-card{border:var(--zonos-elements-border);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-6));padding:var(--spacing, 24px);text-align:left;background-color:var(--zonos--background-color);overflow:hidden}:host .styled-card hr{margin-left:calc(var(--spacing, 24px) * -1);margin-right:calc(var(--spacing, 24px) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, 24px);border-bottom:var(--zonos-elements-border);height:65px;line-height:65px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .styled-card .card-header h5{margin-bottom:0;-ms-flex:1;flex:1}:host .styled-card .card-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);border-top:var(--zonos-elements-border);background:var(--zonos-elements-surface-color-secondary);margin-top:var(--spacing, 24px);border-bottom-left-radius:var(--zonos-elements-radius-8);border-bottom-right-radius:var(--zonos-elements-radius-8);height:var(--footerHeight)}";const z=class{constructor(o){t(this,o),this.theme="LIGHT"}render(){return this.el.shadowRoot?(this.el.shadowRoot.innerHTML="DARK"===this.theme?'<svg width="536" height="200" viewBox="0 0 536 200" fill="none" xmlns="http://www.w3.org/2000/svg">\n<mask id="mask0_3739_19124" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="536" height="200">\n<rect width="536" height="200" fill="url(#paint0_radial_3739_19124)"/>\n</mask>\n<g mask="url(#mask0_3739_19124)">\n<rect x="0.5" y="0.5" width="117" height="63" rx="9.5" stroke="white" stroke-opacity="0.08"/>\n<rect x="126.5" y="0.5" width="117" height="63" rx="9.5" stroke="white" stroke-opacity="0.08"/>\n<rect x="252.5" y="0.5" width="117" height="63" rx="9.5" stroke="white" stroke-opacity="0.08"/>\n<rect x="378.5" y="0.5" width="117" height="63" rx="9.5" stroke="white" stroke-opacity="0.08"/>\n<rect x="504.5" y="0.5" width="31" height="63" rx="9.5" stroke="white" stroke-opacity="0.08"/>\n<rect y="96" width="124" height="8" rx="4" fill="white" fill-opacity="0.08"/>\n<rect x="0.5" y="112.5" width="535" height="39" rx="7.5" stroke="white" stroke-opacity="0.08"/>\n<rect x="0.5" y="160.5" width="263" height="39" rx="7.5" stroke="white" stroke-opacity="0.08"/>\n<rect x="272.5" y="160.5" width="263" height="39" rx="7.5" stroke="white" stroke-opacity="0.08"/>\n</g>\n<defs>\n<radialGradient id="paint0_radial_3739_19124" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(268 100) rotate(90) scale(100 268)">\n<stop offset="0.25" stop-color="white" stop-opacity="0"/>\n<stop offset="0.75" stop-color="white"/>\n</radialGradient>\n</defs>\n</svg>\n':'<svg width="536" height="200" viewBox="0 0 536 200" fill="none" xmlns="http://www.w3.org/2000/svg">\n<mask id="mask0_3739_19125" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="536" height="200">\n<rect width="536" height="200" fill="url(#paint0_radial_3739_19125)"/>\n</mask>\n<g mask="url(#mask0_3739_19125)">\n<rect x="0.5" y="0.5" width="117" height="63" rx="9.5" stroke="black" stroke-opacity="0.08"/>\n<rect x="126.5" y="0.5" width="117" height="63" rx="9.5" stroke="black" stroke-opacity="0.08"/>\n<rect x="252.5" y="0.5" width="117" height="63" rx="9.5" stroke="black" stroke-opacity="0.08"/>\n<rect x="378.5" y="0.5" width="117" height="63" rx="9.5" stroke="black" stroke-opacity="0.08"/>\n<rect x="504.5" y="0.5" width="31" height="63" rx="9.5" stroke="black" stroke-opacity="0.08"/>\n<rect y="96" width="124" height="8" rx="4" fill="black" fill-opacity="0.08"/>\n<rect x="0.5" y="112.5" width="535" height="39" rx="7.5" stroke="black" stroke-opacity="0.08"/>\n<rect x="0.5" y="160.5" width="263" height="39" rx="7.5" stroke="black" stroke-opacity="0.08"/>\n<rect x="272.5" y="160.5" width="263" height="39" rx="7.5" stroke="black" stroke-opacity="0.08"/>\n</g>\n<defs>\n<radialGradient id="paint0_radial_3739_19125" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(268 100) rotate(90) scale(100 268)">\n<stop offset="0.25" stop-color="white" stop-opacity="0"/>\n<stop offset="0.75" stop-color="white"/>\n</radialGradient>\n</defs>\n</svg>\n',o(s,{class:"zonos--elements",style:{"--zonos--font-family":n(),"--zonos--height":"100%","--zonos--width":"100%"}},o("zonos-text",{type:"semiBoldLabel"},this.emptyStateText))):null}get el(){return e(this)}};z.style=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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;position:relative}:host zonos-text{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}:host svg{width:var(--zonos--width);height:var(--zonos--height)}";const g=class{constructor(o){t(this,o),this.notificationArray=[]}async showNotification(t){const o=`id-${Math.random().toString(36).substring(2,9)}`,s=Object.assign(Object.assign({},t),{id:o,timeout:t.timeout||5e3,transitionClass:"",type:t.type||"success"});this.notificationArray=[...this.notificationArray,s],setTimeout((()=>{this.updateTransitionClass({id:o,transitionClass:"show"})}),50),setTimeout((()=>{this.removeNotification(o)}),s.timeout)}updateTransitionClass({id:t,transitionClass:o}){this.notificationArray=this.notificationArray.map((s=>s.id===t?Object.assign(Object.assign({},s),{transitionClass:o}):s))}removeNotification(t){this.updateTransitionClass({id:t,transitionClass:""}),setTimeout((()=>{this.notificationArray=this.notificationArray.filter((o=>o.id!==t))}),300)}render(){return o(s,{key:"6a790a39afc037ae56f8a53dc89c3fa899b2d659",class:i(["zonos--elements zonos--notification"]),style:{"--zonos--border-radius":r(),"--zonos--font-family":n()}},o("div",{key:"32245a784f2322fb69a65b491648a30a84b0b3d3",class:"zonos--notification-items"},this.notificationArray.map((t=>o("div",{"aria-hidden":"true",class:i(["zonos--notification-item",t.type,t.transitionClass]),key:t.id,onClick:()=>{this.removeNotification(t.id)}},o("zonos-text",{textColor:"gray-0"},t.message))))))}};g.style=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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-pack:center;justify-content:center}:host .zonos--notification-items{position:fixed;z-index:9999999999;bottom:24px;gap:8px;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}:host .zonos--notification-item{cursor:pointer;-webkit-transition:all 0.3s ease;transition:all 0.3s ease;padding:8px;border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-6));opacity:0;-ms-flex-negative:0.0001;flex-shrink:0.0001;-webkit-transform:translateY(100%);transform:translateY(100%)}:host .zonos--notification-item+:host .zonos--notification-item{margin-top:8px}:host .zonos--notification-item.show{opacity:1;-webkit-transform:translateY(0);transform:translateY(0);-ms-flex-positive:1000;flex-grow:1000}:host .zonos--notification-item.success{background-color:var(--zonos-elements-green-700)}:host .zonos--notification-item.error{background-color:var(--zonos-elements-red-700)}:host .zonos--notification-item.warning{background-color:var(--zonos-elements-orange-700)}";const b=class{constructor(o){t(this,o),this.stripe=c.stripe,this.stripeElements=c.stripeElements,this.isPaymentInfoFilled=!1,this.trackingSent=!1}watchIsPaymentInfoFilled(){var t;this.isPaymentInfoFilled&&!this.trackingSent&&(h({checkoutSessionId:l.checkoutSessionId,eventName:"checkout_paymentInfoFilled",metadata:{paymentMethod:null===(t=c.stripePaymentEventData)||void 0===t?void 0:t.value.type}}),this.trackingSent=!0)}async watchInitStripe(){var t;if(!this.stripeElements)return;await this.stripeElements.fetchUpdates();const o=c.stripePaymentElement||this.stripeElements.create("payment",{defaultValues:{billingDetails:{address:{country:null===(t=c.stripeAddressEventData)||void 0===t?void 0:t.value.address.country}}},layout:"tabs"}),s=this.el.querySelector(".zonos--payment-component");s?(o.mount(s),o.on("change",(t=>{t.complete&&(this.isPaymentInfoFilled=!0),c.stripePaymentEventData=t})),c.stripePaymentElement=o):p("Cannot find container element for paymentElement")}componentDidLoad(){this.watchInitStripe()}render(){return o(s,{key:"ca6da9e9fadd891c2a748186c30fdfcf8f57ffc5",class:"zonos--payment zonos--elements"},this.titleText&&o("zonos-text",{key:"8083de8ff08f5cd7f3ddaf6190844ee11b72ed4a",class:"zonos--title",type:"semiBoldLabel"},this.titleText),o("div",{key:"cf88a4f5b989e1911b089ce9298945307085455a",class:"zonos--payment-component"}),o("div",{key:"ff768b9ca8dd0a60605196f50bcba3c542cc2206",class:"zonos--payment-paypal-container"}))}get el(){return e(this)}static get watchers(){return{isPaymentInfoFilled:["watchIsPaymentInfoFilled"],stripeElements:["watchInitStripe"],stripe:["watchInitStripe"]}}};b.style=".sc-zonos-payment-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-payment-h *.sc-zonos-payment{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-payment-h img.sc-zonos-payment{max-width:100%}.sc-zonos-payment-h dl.sc-zonos-payment,.sc-zonos-payment-h dd.sc-zonos-payment,.sc-zonos-payment-h h1.sc-zonos-payment,.sc-zonos-payment-h h2.sc-zonos-payment,.sc-zonos-payment-h h3.sc-zonos-payment,.sc-zonos-payment-h h4.sc-zonos-payment,.sc-zonos-payment-h h5.sc-zonos-payment,.sc-zonos-payment-h h6.sc-zonos-payment,.sc-zonos-payment-h hr.sc-zonos-payment,.sc-zonos-payment-h figure.sc-zonos-payment,.sc-zonos-payment-h p.sc-zonos-payment,.sc-zonos-payment-h pre.sc-zonos-payment{margin:0}.sc-zonos-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-payment-h .zonos--title.sc-zonos-payment{margin-bottom:16px}.sc-zonos-payment-h .zonos--payment-component.sc-zonos-payment{margin-bottom:4px}";const x=class{constructor(o){t(this,o),this.paypalSessionDone=a(this,"paypalSessionDone",7),this.paypalSessionFail=a(this,"paypalSessionFail",7),this.storeUnsubscribeList=[]}async loadPaypal(){if(!window.Zonos.paypal)return void y("Paypal is not available");const t=d({onPaypalFail:()=>{y("onPaypalFail"),this.paypalSessionFail.emit()},onPaypalSessionDone:({orderId:t})=>{y("onPaypalSessionDone","info",{orderId:t}),this.paypalSessionDone.emit({orderId:t})}});if(!(null==t?void 0:t.length))return void y("There are no paypal buttons available");const o=this.el.querySelector(".zonos--payment-paypal-container");o?t.forEach((async t=>{await t.render(o)})):y("Cannot find container element for paypal buttons")}componentWillLoad(){this.storeUnsubscribeList=[m("paypal",this.loadPaypal.bind(this))]}componentDidLoad(){this.loadPaypal()}disconnectedCallback(){this.storeUnsubscribeList.forEach((t=>t()))}render(){return o(s,{key:"503c2a2f4d6dd0d6c10468f4bbe915610cf7008e",class:"zonos--paypal-payment zonos--elements"},o("div",{key:"c1d2c15bf6f096c3666f9d4e8085c5fbe2c637a7",class:"zonos--payment-paypal-container"}))}get el(){return e(this)}};x.style=".sc-zonos-paypal-payment-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-paypal-payment-h *.sc-zonos-paypal-payment{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-paypal-payment-h img.sc-zonos-paypal-payment{max-width:100%}.sc-zonos-paypal-payment-h dl.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h dd.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h h1.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h h2.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h h3.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h h4.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h h5.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h h6.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h hr.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h figure.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h p.sc-zonos-paypal-payment,.sc-zonos-paypal-payment-h pre.sc-zonos-paypal-payment{margin:0}.sc-zonos-paypal-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-paypal-payment-h{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}";export{f as zonos_card,z as zonos_empty_state_payment,g as zonos_notification,b as zonos_payment,x as zonos_paypal_payment}
|