@zonos/elements 1.3.77 → 1.3.79

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.
Files changed (130) hide show
  1. package/dist/cjs/{cart-307b8dc7.js → cart-977c9d4c.js} +60 -0
  2. package/dist/cjs/{createCustomEvent-8b7e430f.js → createCustomEvent-2b19361e.js} +1 -1
  3. package/dist/cjs/index.cjs.js +7 -7
  4. package/dist/cjs/{paypal-f0e6424f.js → paypal-3008c89e.js} +1 -1
  5. package/dist/cjs/zonos-address_8.cjs.entry.js +1 -1
  6. package/dist/cjs/zonos-badge_13.cjs.entry.js +6 -6
  7. package/dist/cjs/zonos-checkout.cjs.entry.js +3 -3
  8. package/dist/cjs/zonos-controller.cjs.entry.js +1 -1
  9. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  10. package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
  11. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +1 -1
  12. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  13. package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
  14. package/dist/cjs/zonos-notification_3.cjs.entry.js +2 -2
  15. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.css +8 -0
  16. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +3 -2
  17. package/dist/collection/components/common/zonos-text/zonos-text.js +1 -1
  18. package/dist/collection/components/store/translationStore/strings.arabic.js +3 -0
  19. package/dist/collection/components/store/translationStore/strings.base.js +3 -0
  20. package/dist/collection/components/store/translationStore/strings.chinese.js +3 -0
  21. package/dist/collection/components/store/translationStore/strings.danish.js +3 -0
  22. package/dist/collection/components/store/translationStore/strings.dutch.js +3 -0
  23. package/dist/collection/components/store/translationStore/strings.french.js +3 -0
  24. package/dist/collection/components/store/translationStore/strings.german.js +3 -0
  25. package/dist/collection/components/store/translationStore/strings.hebrew.js +3 -0
  26. package/dist/collection/components/store/translationStore/strings.indonesian.js +3 -0
  27. package/dist/collection/components/store/translationStore/strings.italian.js +3 -0
  28. package/dist/collection/components/store/translationStore/strings.japanese.js +3 -0
  29. package/dist/collection/components/store/translationStore/strings.korean.js +3 -0
  30. package/dist/collection/components/store/translationStore/strings.norwegian.js +3 -0
  31. package/dist/collection/components/store/translationStore/strings.polish.js +3 -0
  32. package/dist/collection/components/store/translationStore/strings.portuguese.js +3 -0
  33. package/dist/collection/components/store/translationStore/strings.russian.js +3 -0
  34. package/dist/collection/components/store/translationStore/strings.spanish.js +3 -0
  35. package/dist/collection/components/store/translationStore/strings.swedish.js +3 -0
  36. package/dist/collection/components/store/translationStore/strings.turkish.js +3 -0
  37. package/dist/collection/components/store/translationStore/strings.vietnamese.js +3 -0
  38. package/dist/collection/types/generated/graphql.internal.types.js +2 -0
  39. package/dist/esm/{cart-0345943b.js → cart-414322dc.js} +60 -0
  40. package/dist/esm/{createCustomEvent-11fa43d2.js → createCustomEvent-fcd6d294.js} +1 -1
  41. package/dist/esm/index.js +7 -7
  42. package/dist/esm/{paypal-7592a690.js → paypal-3fecd52f.js} +1 -1
  43. package/dist/esm/zonos-address_8.entry.js +1 -1
  44. package/dist/esm/zonos-badge_13.entry.js +6 -6
  45. package/dist/esm/zonos-checkout.entry.js +3 -3
  46. package/dist/esm/zonos-controller.entry.js +1 -1
  47. package/dist/esm/zonos-country-flag.entry.js +1 -1
  48. package/dist/esm/zonos-country-select_4.entry.js +1 -1
  49. package/dist/esm/zonos-hello-dialog.entry.js +1 -1
  50. package/dist/esm/zonos-hello.entry.js +1 -1
  51. package/dist/esm/zonos-language-select_2.entry.js +1 -1
  52. package/dist/esm/zonos-notification_3.entry.js +2 -2
  53. package/dist/esm-es5/cart-414322dc.js +1 -0
  54. package/dist/esm-es5/{createCustomEvent-11fa43d2.js → createCustomEvent-fcd6d294.js} +1 -1
  55. package/dist/esm-es5/index.js +1 -1
  56. package/dist/esm-es5/{paypal-7592a690.js → paypal-3fecd52f.js} +1 -1
  57. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  58. package/dist/esm-es5/zonos-badge_13.entry.js +1 -1
  59. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  60. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  61. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  62. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  63. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  64. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  65. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  66. package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
  67. package/dist/scripts/index.d.ts +2 -4
  68. package/dist/scripts/index.js +1 -1
  69. package/dist/scripts/loadZonos.js +1 -1
  70. package/dist/scripts/zonos.js +1 -1
  71. package/dist/types/components/store/translationStore/strings.arabic.d.ts +3 -0
  72. package/dist/types/components/store/translationStore/strings.base.d.ts +3 -0
  73. package/dist/types/components/store/translationStore/strings.chinese.d.ts +3 -0
  74. package/dist/types/components/store/translationStore/strings.danish.d.ts +3 -0
  75. package/dist/types/components/store/translationStore/strings.dutch.d.ts +3 -0
  76. package/dist/types/components/store/translationStore/strings.french.d.ts +3 -0
  77. package/dist/types/components/store/translationStore/strings.german.d.ts +3 -0
  78. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +3 -0
  79. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +3 -0
  80. package/dist/types/components/store/translationStore/strings.italian.d.ts +3 -0
  81. package/dist/types/components/store/translationStore/strings.japanese.d.ts +3 -0
  82. package/dist/types/components/store/translationStore/strings.korean.d.ts +3 -0
  83. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +3 -0
  84. package/dist/types/components/store/translationStore/strings.polish.d.ts +3 -0
  85. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +3 -0
  86. package/dist/types/components/store/translationStore/strings.russian.d.ts +3 -0
  87. package/dist/types/components/store/translationStore/strings.spanish.d.ts +3 -0
  88. package/dist/types/components/store/translationStore/strings.swedish.d.ts +3 -0
  89. package/dist/types/components/store/translationStore/strings.turkish.d.ts +3 -0
  90. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +3 -0
  91. package/dist/types/components/store/translationStore.d.ts +1 -1
  92. package/dist/types/types/generated/graphql.internal.types.d.ts +2 -3
  93. package/dist/types/types/generated/graphql.internal.types.ts +2 -1
  94. package/dist/types/types/styles/Text.d.ts +1 -1
  95. package/dist/zonos-elements/index.esm.js +1 -1
  96. package/dist/zonos-elements/{p-cab296cc.entry.js → p-0290df9c.entry.js} +1 -1
  97. package/dist/zonos-elements/{p-f7965bc8.system.entry.js → p-0a1db77d.system.entry.js} +1 -1
  98. package/dist/zonos-elements/p-0f640802.system.js +1 -0
  99. package/dist/zonos-elements/{p-cf61027a.entry.js → p-1047233d.entry.js} +1 -1
  100. package/dist/zonos-elements/{p-f8cbd1b8.entry.js → p-166b3181.entry.js} +1 -1
  101. package/dist/zonos-elements/{p-3b78b5db.system.js → p-2d466263.system.js} +1 -1
  102. package/dist/zonos-elements/{p-a57f0556.entry.js → p-3d01ac9a.entry.js} +1 -1
  103. package/dist/zonos-elements/{p-c6e90e75.entry.js → p-4032de50.entry.js} +1 -1
  104. package/dist/zonos-elements/{p-794b932c.system.entry.js → p-502d5e52.system.entry.js} +1 -1
  105. package/dist/zonos-elements/{p-2f9e087c.system.js → p-5880738e.system.js} +1 -1
  106. package/dist/zonos-elements/{p-dc430b34.entry.js → p-72f0641d.entry.js} +1 -1
  107. package/dist/zonos-elements/p-75fd8895.js +1 -0
  108. package/dist/zonos-elements/{p-eacd1669.system.entry.js → p-86bfda32.system.entry.js} +1 -1
  109. package/dist/zonos-elements/{p-70acd15f.entry.js → p-982aa677.entry.js} +1 -1
  110. package/dist/zonos-elements/{p-320e3627.system.js → p-9c02a170.system.js} +1 -1
  111. package/dist/zonos-elements/p-a725574a.entry.js +1 -0
  112. package/dist/zonos-elements/p-acbec292.system.entry.js +1 -0
  113. package/dist/zonos-elements/{p-514b94ec.system.entry.js → p-bbabc829.system.entry.js} +1 -1
  114. package/dist/zonos-elements/{p-be6c49ec.entry.js → p-c1400636.entry.js} +1 -1
  115. package/dist/zonos-elements/{p-4e21f719.js → p-c2920074.js} +1 -1
  116. package/dist/zonos-elements/p-c78dd680.system.js +1 -1
  117. package/dist/zonos-elements/{p-e3068a5f.system.entry.js → p-cce51fa5.system.entry.js} +1 -1
  118. package/dist/zonos-elements/{p-55020546.system.entry.js → p-ced3aa4f.system.entry.js} +1 -1
  119. package/dist/zonos-elements/{p-8478f4ee.js → p-d5818f0a.js} +1 -1
  120. package/dist/zonos-elements/{p-8915c7ff.system.entry.js → p-e68941ce.system.entry.js} +1 -1
  121. package/dist/zonos-elements/{p-05001ce2.entry.js → p-e6ec9f12.entry.js} +1 -1
  122. package/dist/zonos-elements/{p-78abda17.system.entry.js → p-f0d6f027.system.entry.js} +1 -1
  123. package/dist/zonos-elements/{p-9a88fb19.system.entry.js → p-f8dace42.system.entry.js} +1 -1
  124. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  125. package/package.json +2 -1
  126. package/dist/esm-es5/cart-0345943b.js +0 -1
  127. package/dist/zonos-elements/p-54d31641.system.entry.js +0 -1
  128. package/dist/zonos-elements/p-71382e47.system.js +0 -1
  129. package/dist/zonos-elements/p-76b9668f.js +0 -1
  130. package/dist/zonos-elements/p-94d92a0b.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as o,h as s,H as n,d as t,c as a}from"./p-5b7da777.js";import{d as e}from"./p-1086aac3.js";import{c as i}from"./p-b4b7f705.js";import{j as p}from"./p-76b9668f.js";import{a as c,l as m}from"./p-2ec2e9d3.js";import{d as l}from"./p-4e21f719.js";import"./p-a1b755bf.js";import"./p-1ca5696d.js";const r=class{constructor(s){o(this,s),this.notificationArray=[]}async showNotification(o){const s=`id-${Math.random().toString(36).substring(2,9)}`,n=Object.assign(Object.assign({},o),{id:s,timeout:o.timeout||5e3,transitionClass:"",type:o.type||"success"});this.notificationArray=[...this.notificationArray,n],setTimeout((()=>{this.updateTransitionClass({id:s,transitionClass:"show"})}),50),setTimeout((()=>{this.removeNotification(s)}),n.timeout)}updateTransitionClass({id:o,transitionClass:s}){this.notificationArray=this.notificationArray.map((n=>n.id===o?Object.assign(Object.assign({},n),{transitionClass:s}):n))}removeNotification(o){this.updateTransitionClass({id:o,transitionClass:""}),setTimeout((()=>{this.notificationArray=this.notificationArray.filter((s=>s.id!==o))}),300)}render(){return s(n,{key:"17c08c90c6c1dfade4e43451c196127a0f53429e",class:i(["zonos--elements zonos--notification"]),style:{"--font-family":e()}},s("div",{key:"6624419d86a5c7518539069dbc5c9d7c08262c75",class:"zonos--notification-items"},this.notificationArray.map((o=>s("div",{"aria-hidden":"true",class:i(["zonos--notification-item",o.type,o.transitionClass]),key:o.id,onClick:()=>{this.removeNotification(o.id)}},s("zonos-text",{textColor:"gray-0"},o.message))))))}};r.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-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(--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 y=class{constructor(s){o(this,s),this.titleText=void 0,this.stripe=p.stripe,this.stripeElements=p.stripeElements}watchInitStripe(){if(!this.stripeElements)return;const o=p.stripePaymentElement||this.stripeElements.create("payment",{layout:"accordion"}),s=this.el.querySelector(".zonos--payment-component");s?(o.mount(s),o.on("change",(o=>{p.stripePaymentEventData=o})),p.stripePaymentElement=o):c("Cannot find container element for paymentElement")}componentDidLoad(){this.watchInitStripe()}render(){return s(n,{key:"ab601d9a0cc6fe2fee19f45d6321dcc81b418cff",class:"zonos--payment zonos--elements"},this.titleText&&s("zonos-text",{key:"27857c99c59e4913fa403ef5b23b5b7d7f32bd45",class:"zonos--title",type:"semiBoldLabel"},this.titleText),s("div",{key:"329b5a5617f0c5942b209df1ccf3bfcb4ddabb0c",class:"zonos--payment-component"}),s("div",{key:"7abb08922e9f607314713fc9fa762a3bb8a35b13",class:"zonos--payment-paypal-container"}))}get el(){return t(this)}static get watchers(){return{stripeElements:["watchInitStripe"],stripe:["watchInitStripe"]}}};y.style=".sc-zonos-payment-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-payment-h *.sc-zonos-payment{font-family:var(--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}";const h=class{constructor(s){o(this,s),this.paypalSessionDone=a(this,"paypalSessionDone",7),this.paypalSessionFail=a(this,"paypalSessionFail",7)}async loadPaypal(){if(!window.Zonos.paypal)return void m("Paypal is not available");const o=l({onPaypalFail:()=>{m("onPaypalFail"),this.paypalSessionFail.emit()},onPaypalSessionDone:({orderId:o})=>{m("onPaypalSessionDone","info",{orderId:o}),this.paypalSessionDone.emit({orderId:o})}});if(!(null==o?void 0:o.length))return void m("There are no paypal buttons available");const s=this.el.querySelector(".zonos--payment-paypal-container");s?o.forEach((async o=>{await o.render(s)})):m("Cannot find container element for paypal buttons")}componentDidLoad(){this.loadPaypal()}render(){return s(n,{key:"a09fe5b66b1ac971c10529ecb6213479f2870f08",class:"zonos--paypal-payment zonos--elements"},s("div",{key:"6ba337785b8a90965e0cba05fd62681bc92633fe",class:"zonos--payment-paypal-container"}))}get el(){return t(this)}};h.style=".sc-zonos-paypal-payment-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-paypal-payment-h *.sc-zonos-paypal-payment{font-family:var(--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{r as zonos_notification,y as zonos_payment,h as zonos_paypal_payment}
1
+ import{r as o,h as s,H as n,d as t,c as a}from"./p-5b7da777.js";import{d as e}from"./p-1086aac3.js";import{c as i}from"./p-b4b7f705.js";import{j as p}from"./p-75fd8895.js";import{a as c,l as m}from"./p-2ec2e9d3.js";import{d as l}from"./p-c2920074.js";import"./p-a1b755bf.js";import"./p-1ca5696d.js";const r=class{constructor(s){o(this,s),this.notificationArray=[]}async showNotification(o){const s=`id-${Math.random().toString(36).substring(2,9)}`,n=Object.assign(Object.assign({},o),{id:s,timeout:o.timeout||5e3,transitionClass:"",type:o.type||"success"});this.notificationArray=[...this.notificationArray,n],setTimeout((()=>{this.updateTransitionClass({id:s,transitionClass:"show"})}),50),setTimeout((()=>{this.removeNotification(s)}),n.timeout)}updateTransitionClass({id:o,transitionClass:s}){this.notificationArray=this.notificationArray.map((n=>n.id===o?Object.assign(Object.assign({},n),{transitionClass:s}):n))}removeNotification(o){this.updateTransitionClass({id:o,transitionClass:""}),setTimeout((()=>{this.notificationArray=this.notificationArray.filter((s=>s.id!==o))}),300)}render(){return s(n,{key:"17c08c90c6c1dfade4e43451c196127a0f53429e",class:i(["zonos--elements zonos--notification"]),style:{"--font-family":e()}},s("div",{key:"6624419d86a5c7518539069dbc5c9d7c08262c75",class:"zonos--notification-items"},this.notificationArray.map((o=>s("div",{"aria-hidden":"true",class:i(["zonos--notification-item",o.type,o.transitionClass]),key:o.id,onClick:()=>{this.removeNotification(o.id)}},s("zonos-text",{textColor:"gray-0"},o.message))))))}};r.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-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(--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 y=class{constructor(s){o(this,s),this.titleText=void 0,this.stripe=p.stripe,this.stripeElements=p.stripeElements}watchInitStripe(){if(!this.stripeElements)return;const o=p.stripePaymentElement||this.stripeElements.create("payment",{layout:"accordion"}),s=this.el.querySelector(".zonos--payment-component");s?(o.mount(s),o.on("change",(o=>{p.stripePaymentEventData=o})),p.stripePaymentElement=o):c("Cannot find container element for paymentElement")}componentDidLoad(){this.watchInitStripe()}render(){return s(n,{key:"ab601d9a0cc6fe2fee19f45d6321dcc81b418cff",class:"zonos--payment zonos--elements"},this.titleText&&s("zonos-text",{key:"27857c99c59e4913fa403ef5b23b5b7d7f32bd45",class:"zonos--title",type:"semiBoldLabel"},this.titleText),s("div",{key:"329b5a5617f0c5942b209df1ccf3bfcb4ddabb0c",class:"zonos--payment-component"}),s("div",{key:"7abb08922e9f607314713fc9fa762a3bb8a35b13",class:"zonos--payment-paypal-container"}))}get el(){return t(this)}static get watchers(){return{stripeElements:["watchInitStripe"],stripe:["watchInitStripe"]}}};y.style=".sc-zonos-payment-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-payment-h *.sc-zonos-payment{font-family:var(--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}";const h=class{constructor(s){o(this,s),this.paypalSessionDone=a(this,"paypalSessionDone",7),this.paypalSessionFail=a(this,"paypalSessionFail",7)}async loadPaypal(){if(!window.Zonos.paypal)return void m("Paypal is not available");const o=l({onPaypalFail:()=>{m("onPaypalFail"),this.paypalSessionFail.emit()},onPaypalSessionDone:({orderId:o})=>{m("onPaypalSessionDone","info",{orderId:o}),this.paypalSessionDone.emit({orderId:o})}});if(!(null==o?void 0:o.length))return void m("There are no paypal buttons available");const s=this.el.querySelector(".zonos--payment-paypal-container");s?o.forEach((async o=>{await o.render(s)})):m("Cannot find container element for paypal buttons")}componentDidLoad(){this.loadPaypal()}render(){return s(n,{key:"a09fe5b66b1ac971c10529ecb6213479f2870f08",class:"zonos--paypal-payment zonos--elements"},s("div",{key:"6ba337785b8a90965e0cba05fd62681bc92633fe",class:"zonos--payment-paypal-container"}))}get el(){return t(this)}};h.style=".sc-zonos-paypal-payment-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-paypal-payment-h *.sc-zonos-paypal-payment{font-family:var(--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{r as zonos_notification,y as zonos_payment,h as zonos_paypal_payment}