@zonos/elements 1.3.129 → 1.3.130

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 (216) hide show
  1. package/dist/cjs/{CheckoutConfig-62479cef.js → CheckoutConfig-1d38a21d.js} +2 -0
  2. package/dist/cjs/{cart-ba8cca00.js → cart-d5240ba9.js} +192 -5
  3. package/dist/cjs/{getBorderRadius-61ed5601.js → getBorderRadius-f72d8edf.js} +1 -1
  4. package/dist/cjs/index.cjs.js +8 -8
  5. package/dist/cjs/{isDarkColor-d206c6fa.js → isDarkColor-dd6d723b.js} +1 -1
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/{paypal-441c3f79.js → paypal-78db30b7.js} +3 -3
  8. package/dist/cjs/zonos-address_7.cjs.entry.js +4 -4
  9. package/dist/cjs/zonos-badge.cjs.entry.js +1 -1
  10. package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
  11. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  12. package/dist/cjs/zonos-card.cjs.entry.js +2 -2
  13. package/dist/cjs/zonos-cart-items_13.cjs.entry.js +5 -5
  14. package/dist/cjs/zonos-checkout.cjs.entry.js +82 -7
  15. package/dist/cjs/zonos-collapse.cjs.entry.js +1 -1
  16. package/dist/cjs/zonos-controller.cjs.entry.js +4 -4
  17. package/dist/cjs/zonos-country-flag.cjs.entry.js +4 -4
  18. package/dist/cjs/zonos-country-select_4.cjs.entry.js +4 -4
  19. package/dist/cjs/zonos-elements.cjs.js +1 -1
  20. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +4 -4
  21. package/dist/cjs/zonos-hello.cjs.entry.js +4 -4
  22. package/dist/cjs/zonos-input.cjs.entry.js +2 -2
  23. package/dist/cjs/zonos-language-select_2.cjs.entry.js +4 -4
  24. package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
  25. package/dist/cjs/zonos-notification_3.cjs.entry.js +5 -5
  26. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +2 -2
  27. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  28. package/dist/cjs/zonos-toggle.cjs.entry.js +1 -1
  29. package/dist/cjs/zonos-v-stack.cjs.entry.js +1 -1
  30. package/dist/cjs/{zonosStore-e12d459c.js → zonosStore-293bb3ba.js} +1 -0
  31. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +77 -1
  32. package/dist/collection/components/store/translationStore/strings.arabic.js +9 -0
  33. package/dist/collection/components/store/translationStore/strings.base.js +9 -0
  34. package/dist/collection/components/store/translationStore/strings.chinese.js +9 -0
  35. package/dist/collection/components/store/translationStore/strings.danish.js +9 -0
  36. package/dist/collection/components/store/translationStore/strings.dutch.js +9 -0
  37. package/dist/collection/components/store/translationStore/strings.french.js +9 -0
  38. package/dist/collection/components/store/translationStore/strings.german.js +9 -0
  39. package/dist/collection/components/store/translationStore/strings.hebrew.js +9 -0
  40. package/dist/collection/components/store/translationStore/strings.indonesian.js +9 -0
  41. package/dist/collection/components/store/translationStore/strings.italian.js +9 -0
  42. package/dist/collection/components/store/translationStore/strings.japanese.js +9 -0
  43. package/dist/collection/components/store/translationStore/strings.korean.js +9 -0
  44. package/dist/collection/components/store/translationStore/strings.norwegian.js +9 -0
  45. package/dist/collection/components/store/translationStore/strings.polish.js +9 -0
  46. package/dist/collection/components/store/translationStore/strings.portuguese.js +9 -0
  47. package/dist/collection/components/store/translationStore/strings.russian.js +9 -0
  48. package/dist/collection/components/store/translationStore/strings.spanish.js +9 -0
  49. package/dist/collection/components/store/translationStore/strings.swedish.js +9 -0
  50. package/dist/collection/components/store/translationStore/strings.turkish.js +9 -0
  51. package/dist/collection/components/store/translationStore/strings.vietnamese.js +9 -0
  52. package/dist/collection/components/store/zonosStore.js +1 -0
  53. package/dist/collection/components/utils/api/prepCalculateLandedCost.js +9 -2
  54. package/dist/collection/scripts/cart/_setupCartData.js +2 -0
  55. package/dist/esm/{CheckoutConfig-5da839fa.js → CheckoutConfig-56c63bdf.js} +2 -0
  56. package/dist/esm/{cart-01b5bf4a.js → cart-4f1ee6dd.js} +192 -5
  57. package/dist/esm/{getBorderRadius-008516a4.js → getBorderRadius-bdd709e7.js} +1 -1
  58. package/dist/esm/index.js +9 -9
  59. package/dist/esm/{isDarkColor-dc08fa26.js → isDarkColor-c6924924.js} +1 -1
  60. package/dist/esm/loader.js +1 -1
  61. package/dist/esm/{paypal-4c094b25.js → paypal-5b1964b6.js} +3 -3
  62. package/dist/esm/zonos-address_7.entry.js +4 -4
  63. package/dist/esm/zonos-badge.entry.js +1 -1
  64. package/dist/esm/zonos-banner.entry.js +1 -1
  65. package/dist/esm/zonos-button_3.entry.js +3 -3
  66. package/dist/esm/zonos-card.entry.js +2 -2
  67. package/dist/esm/zonos-cart-items_13.entry.js +5 -5
  68. package/dist/esm/zonos-checkout.entry.js +83 -8
  69. package/dist/esm/zonos-collapse.entry.js +1 -1
  70. package/dist/esm/zonos-controller.entry.js +4 -4
  71. package/dist/esm/zonos-country-flag.entry.js +4 -4
  72. package/dist/esm/zonos-country-select_4.entry.js +4 -4
  73. package/dist/esm/zonos-elements.js +1 -1
  74. package/dist/esm/zonos-hello-dialog.entry.js +4 -4
  75. package/dist/esm/zonos-hello.entry.js +4 -4
  76. package/dist/esm/zonos-input.entry.js +2 -2
  77. package/dist/esm/zonos-language-select_2.entry.js +4 -4
  78. package/dist/esm/zonos-logo.entry.js +1 -1
  79. package/dist/esm/zonos-notification_3.entry.js +5 -5
  80. package/dist/esm/zonos-shipping-rich-radio.entry.js +2 -2
  81. package/dist/esm/zonos-text.entry.js +1 -1
  82. package/dist/esm/zonos-toggle.entry.js +1 -1
  83. package/dist/esm/zonos-v-stack.entry.js +1 -1
  84. package/dist/esm/{zonosStore-6b5bd87c.js → zonosStore-c493c4fe.js} +1 -0
  85. package/dist/esm-es5/{CheckoutConfig-5da839fa.js → CheckoutConfig-56c63bdf.js} +1 -1
  86. package/dist/esm-es5/cart-4f1ee6dd.js +1 -0
  87. package/dist/esm-es5/{getBorderRadius-008516a4.js → getBorderRadius-bdd709e7.js} +1 -1
  88. package/dist/esm-es5/index.js +1 -1
  89. package/dist/esm-es5/{isDarkColor-dc08fa26.js → isDarkColor-c6924924.js} +1 -1
  90. package/dist/esm-es5/loader.js +1 -1
  91. package/dist/esm-es5/{paypal-4c094b25.js → paypal-5b1964b6.js} +1 -1
  92. package/dist/esm-es5/zonos-address_7.entry.js +1 -1
  93. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  94. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  95. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  96. package/dist/esm-es5/zonos-card.entry.js +1 -1
  97. package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
  98. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  99. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  100. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  101. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  102. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  103. package/dist/esm-es5/zonos-elements.js +1 -1
  104. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  105. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  106. package/dist/esm-es5/zonos-input.entry.js +1 -1
  107. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  108. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  109. package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
  110. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  111. package/dist/esm-es5/zonos-text.entry.js +1 -1
  112. package/dist/esm-es5/zonos-toggle.entry.js +1 -1
  113. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  114. package/dist/esm-es5/{zonosStore-6b5bd87c.js → zonosStore-c493c4fe.js} +1 -1
  115. package/dist/scripts/index.d.ts +7 -0
  116. package/dist/scripts/index.js +1 -1
  117. package/dist/scripts/loadZonos.js +1 -1
  118. package/dist/scripts/zonos.js +1 -1
  119. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +9 -0
  120. package/dist/types/components/store/translationStore/strings.arabic.d.ts +9 -0
  121. package/dist/types/components/store/translationStore/strings.base.d.ts +9 -0
  122. package/dist/types/components/store/translationStore/strings.chinese.d.ts +9 -0
  123. package/dist/types/components/store/translationStore/strings.danish.d.ts +9 -0
  124. package/dist/types/components/store/translationStore/strings.dutch.d.ts +9 -0
  125. package/dist/types/components/store/translationStore/strings.french.d.ts +9 -0
  126. package/dist/types/components/store/translationStore/strings.german.d.ts +9 -0
  127. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +9 -0
  128. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +9 -0
  129. package/dist/types/components/store/translationStore/strings.italian.d.ts +9 -0
  130. package/dist/types/components/store/translationStore/strings.japanese.d.ts +9 -0
  131. package/dist/types/components/store/translationStore/strings.korean.d.ts +9 -0
  132. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +9 -0
  133. package/dist/types/components/store/translationStore/strings.polish.d.ts +9 -0
  134. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +9 -0
  135. package/dist/types/components/store/translationStore/strings.russian.d.ts +9 -0
  136. package/dist/types/components/store/translationStore/strings.spanish.d.ts +9 -0
  137. package/dist/types/components/store/translationStore/strings.swedish.d.ts +9 -0
  138. package/dist/types/components/store/translationStore/strings.turkish.d.ts +9 -0
  139. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +9 -0
  140. package/dist/types/components/store/translationStore.d.ts +1 -1
  141. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  142. package/dist/types/types/checkout/CheckoutConfig.d.ts +5 -0
  143. package/dist/types/types/checkout/api/CalculateLandedCost.d.ts +1 -0
  144. package/dist/types/types/checkout/api/NormalizedTempCart.d.ts +1 -0
  145. package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
  146. package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
  147. package/dist/types/types/generated/graphql.internal.types.d.ts +1 -0
  148. package/dist/types/types/generated/graphql.internal.types.ts +1 -0
  149. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  150. package/dist/zonos-elements/index.esm.js +1 -1
  151. package/dist/zonos-elements/{p-2faa3104.system.entry.js → p-0531689a.system.entry.js} +1 -1
  152. package/dist/zonos-elements/{p-1e4d8228.entry.js → p-0cf44851.entry.js} +1 -1
  153. package/dist/zonos-elements/{p-57d93236.entry.js → p-0cfab69e.entry.js} +1 -1
  154. package/dist/zonos-elements/{p-5ac777a7.system.entry.js → p-0fc96872.system.entry.js} +1 -1
  155. package/dist/zonos-elements/{p-700c5732.entry.js → p-10cebad7.entry.js} +1 -1
  156. package/dist/zonos-elements/{p-e1ce04b1.js → p-10d6fe23.js} +1 -1
  157. package/dist/zonos-elements/{p-00dc1507.system.js → p-10efff62.system.js} +1 -1
  158. package/dist/zonos-elements/{p-55a3db7d.entry.js → p-124a4a50.entry.js} +1 -1
  159. package/dist/zonos-elements/{p-c93c9524.system.js → p-14022fab.system.js} +2 -2
  160. package/dist/zonos-elements/{p-7312d038.system.entry.js → p-19944a13.system.entry.js} +1 -1
  161. package/dist/zonos-elements/{p-9d057d1d.entry.js → p-1a6e9eec.entry.js} +1 -1
  162. package/dist/zonos-elements/{p-8ca3b73a.entry.js → p-1da0c1cb.entry.js} +1 -1
  163. package/dist/zonos-elements/{p-ff0a79e6.system.entry.js → p-22458c90.system.entry.js} +1 -1
  164. package/dist/zonos-elements/{p-60b0025b.system.js → p-2b29a3ac.system.js} +1 -1
  165. package/dist/zonos-elements/{p-ce391c90.entry.js → p-30d6e78c.entry.js} +1 -1
  166. package/dist/zonos-elements/{p-4fee6e7f.system.entry.js → p-320e7cb9.system.entry.js} +1 -1
  167. package/dist/zonos-elements/{p-0bc813a9.system.entry.js → p-3a89fb48.system.entry.js} +1 -1
  168. package/dist/zonos-elements/{p-4cd1e79c.system.entry.js → p-3cfa90d1.system.entry.js} +1 -1
  169. package/dist/zonos-elements/{p-2bb86f3d.system.entry.js → p-3e4b11ed.system.entry.js} +1 -1
  170. package/dist/zonos-elements/{p-6c047faf.system.entry.js → p-3efbcf88.system.entry.js} +1 -1
  171. package/dist/zonos-elements/p-3f40806c.entry.js +1 -0
  172. package/dist/zonos-elements/{p-5e22a288.system.js → p-40596087.system.js} +1 -1
  173. package/dist/zonos-elements/{p-c3e98be6.system.js → p-46a5ec52.system.js} +1 -1
  174. package/dist/zonos-elements/p-49fff22c.js +1 -0
  175. package/dist/zonos-elements/{p-970527fe.entry.js → p-5b90dd6d.entry.js} +1 -1
  176. package/dist/zonos-elements/{p-0f465aa6.entry.js → p-5cd970b9.entry.js} +1 -1
  177. package/dist/zonos-elements/{p-3b5f49f6.system.entry.js → p-68cfdd01.system.entry.js} +1 -1
  178. package/dist/zonos-elements/{p-2906956b.entry.js → p-6b00344a.entry.js} +1 -1
  179. package/dist/zonos-elements/p-6b6cd6c3.system.js +1 -0
  180. package/dist/zonos-elements/{p-17a5550a.system.entry.js → p-72c682ac.system.entry.js} +1 -1
  181. package/dist/zonos-elements/{p-10aef679.system.entry.js → p-7af3b735.system.entry.js} +1 -1
  182. package/dist/zonos-elements/{p-a9069f68.js → p-7d3a63c5.js} +2 -2
  183. package/dist/zonos-elements/{p-91e111c4.entry.js → p-7fa88e0a.entry.js} +1 -1
  184. package/dist/zonos-elements/{p-8390f23d.system.entry.js → p-876ded0e.system.entry.js} +1 -1
  185. package/dist/zonos-elements/{p-5ee9685e.system.entry.js → p-87945d75.system.entry.js} +1 -1
  186. package/dist/zonos-elements/{p-6de5611e.entry.js → p-92fbf9e6.entry.js} +1 -1
  187. package/dist/zonos-elements/p-942a0605.js +1 -0
  188. package/dist/zonos-elements/{p-08948e65.system.entry.js → p-9cb6599d.system.entry.js} +1 -1
  189. package/dist/zonos-elements/p-a1c26abb.system.entry.js +1 -0
  190. package/dist/zonos-elements/{p-8612f8d1.system.entry.js → p-a277cde0.system.entry.js} +1 -1
  191. package/dist/zonos-elements/{p-26172f0d.entry.js → p-a49ac35e.entry.js} +1 -1
  192. package/dist/zonos-elements/p-a50ebda1.entry.js +1 -0
  193. package/dist/zonos-elements/{p-c562de4a.entry.js → p-bc8b22ad.entry.js} +1 -1
  194. package/dist/zonos-elements/{p-8b3d9796.system.entry.js → p-c39dc3e9.system.entry.js} +1 -1
  195. package/dist/zonos-elements/p-c78dd680.system.js +1 -1
  196. package/dist/zonos-elements/{p-67a32cc5.js → p-d10ffd69.js} +1 -1
  197. package/dist/zonos-elements/{p-0c6a933c.entry.js → p-d963d9d4.entry.js} +1 -1
  198. package/dist/zonos-elements/{p-5610934b.entry.js → p-db5e0d2b.entry.js} +1 -1
  199. package/dist/zonos-elements/{p-7c7feadb.system.entry.js → p-dc09df19.system.entry.js} +1 -1
  200. package/dist/zonos-elements/{p-d6f8309b.entry.js → p-dc823080.entry.js} +1 -1
  201. package/dist/zonos-elements/{p-e6fad32a.system.entry.js → p-e205ef1c.system.entry.js} +1 -1
  202. package/dist/zonos-elements/{p-6b0a8709.system.entry.js → p-e5f27005.system.entry.js} +1 -1
  203. package/dist/zonos-elements/{p-91cfbf46.js → p-edc16f69.js} +1 -1
  204. package/dist/zonos-elements/{p-798d715c.entry.js → p-fb6cf324.entry.js} +1 -1
  205. package/dist/zonos-elements/{p-a372a9a0.entry.js → p-fce202ab.entry.js} +1 -1
  206. package/dist/zonos-elements/p-fd05d150.system.js +1 -0
  207. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  208. package/package.json +1 -1
  209. package/dist/esm-es5/cart-01b5bf4a.js +0 -1
  210. package/dist/zonos-elements/p-0e8613be.entry.js +0 -1
  211. package/dist/zonos-elements/p-4d4ea5dc.system.entry.js +0 -1
  212. package/dist/zonos-elements/p-582cdd52.system.js +0 -1
  213. package/dist/zonos-elements/p-94146bc9.js +0 -1
  214. package/dist/zonos-elements/p-9b0cbd91.entry.js +0 -1
  215. package/dist/zonos-elements/p-b7cfbfc1.js +0 -1
  216. package/dist/zonos-elements/p-c85b4e43.system.js +0 -1
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-86b8247e.js';
2
- import { d as zonosStoreFontFamily, z as zonosStore } from './zonosStore-6b5bd87c.js';
2
+ import { d as zonosStoreFontFamily, z as zonosStore } from './zonosStore-c493c4fe.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
- import { g as getBorderRadius } from './getBorderRadius-008516a4.js';
4
+ import { g as getBorderRadius } from './getBorderRadius-bdd709e7.js';
5
5
  import { i as isColorVariable } from './isColorVariable-0a94004f.js';
6
6
 
7
7
  const zonosShippingRichRadioCss = ":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-direction:column;flex-direction:column}:host input{margin:0;accent-color:var(--zonos--selected-border-color, var(--zonos-elements-blue-600))}:host .zonos--shipping-rich-radio-item{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;padding:16px;-ms-flex-align:center;align-items:center;gap:16px;cursor:pointer;border:1px solid var(--zonos-elements-gray-200)}:host .zonos--shipping-rich-radio-item:first-child{border-top-left-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));border-top-right-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10))}:host .zonos--shipping-rich-radio-item:last-child{border-bottom-right-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));border-bottom-left-radius:var(--zonos--border-radius, var(--zonos-elements-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(--zonos--selected-border-color, var(--zonos-elements-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}";
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-86b8247e.js';
2
- import { d as zonosStoreFontFamily, z as zonosStore } from './zonosStore-6b5bd87c.js';
2
+ import { d as zonosStoreFontFamily, z as zonosStore } from './zonosStore-c493c4fe.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
4
  import { i as isColorVariable } from './isColorVariable-0a94004f.js';
5
5
  import { s as styles } from './styles-6fc2fad9.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-86b8247e.js';
2
- import { d as zonosStoreFontFamily } from './zonosStore-6b5bd87c.js';
2
+ import { d as zonosStoreFontFamily } from './zonosStore-c493c4fe.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
4
 
5
5
  const zonosToggleCss = ":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}:host .wrapper{position:relative;border-radius:6px;background-color:var(--zonos-elements-gray-50);display:-ms-flexbox;display:flex}:host .zonos--toggle-selected-slider{z-index:1;position:absolute;background-color:var(--zonos-elements-raised-surface-color);height:100%;-webkit-box-shadow:var(--zonos-elements-shadow-button-standard);box-shadow:var(--zonos-elements-shadow-button-standard);border-radius:6px;-webkit-animation:translate 0.3s ease-in-out;animation:translate 0.3s ease-in-out}:host .zonos--option{background:transparent;border:0;z-index:2;cursor:pointer;padding:4px 12px;border-radius:6px;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);font-size:var(--zonos-elements-font-size-base);font-weight:500;color:var(--zonos-elements-text-color-secondary)}:host .zonos--option:focus{outline:none}:host .zonos--option:hover:not(.selected){color:var(--zonos-elements-text-color)}:host .zonos--option.selected{color:var(--zonos-elements-text-color);background-color:var(--zonos-elements-raised-surface-color);height:100%;-webkit-box-shadow:var(--zonos-elements-shadow-button-standard);box-shadow:var(--zonos-elements-shadow-button-standard);border-radius:6px;-webkit-animation:translate 0.3s ease-in-out;animation:translate 0.3s ease-in-out}";
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-86b8247e.js';
2
- import { d as zonosStoreFontFamily } from './zonosStore-6b5bd87c.js';
2
+ import { d as zonosStoreFontFamily } from './zonosStore-c493c4fe.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
4
 
5
5
  const zonosVStackCss = ":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 .vstack{display:grid;grid-auto-columns:minmax(0, 1fr);grid-row-gap:var(--spacing, 24px);grid-auto-flow:row}";
@@ -2769,6 +2769,7 @@ const { dispose: zonosStoreDispose, reset, state: zonosStore, } = createStore(()
2769
2769
  checkoutSettings: {
2770
2770
  allowedCharacterSets: 'ALL',
2771
2771
  analyticsProviders: [],
2772
+ cartExpiration: 60,
2772
2773
  externalPaymentMethods: [],
2773
2774
  externalServiceTokens: [],
2774
2775
  mode: 'TEST',
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function i(e){try{s(n.next(e))}catch(e){o(e)}}function c(e){try{s(n["throw"](e))}catch(e){o(e)}}function s(e){e.done?r(e.value):a(e.value).then(i,c)}s((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(e){return function(t){return s([e,t])}}function s(c){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,c[0]&&(r=0)),r)try{if(n=1,a&&(o=c[0]&2?a["return"]:c[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,c[1])).done)return o;if(a=0,o)c=[c[0]&2,o.value];switch(c[0]){case 0:case 1:o=c;break;case 4:r.label++;return{value:c[1],done:false};case 5:r.label++;a=c[1];c=[0];continue;case 7:c=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1];o=c;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(c);break}if(o[2])r.ops.pop();r.trys.pop();continue}c=t.call(e,r)}catch(e){c=[6,e];a=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};import{h as handleFetch,l as log,a as logError}from"./handleFetch-40fc3562.js";var getTempCartById=function(e){return __awaiter(void 0,[e],void 0,(function(e){var t,r,n,a,o,i;var c=e.cartId,s=e.retries;return __generator(this,(function(e){switch(e.label){case 0:t=new URLSearchParams(window.location.search);r=t.get("zonosTestMode")==="1";return[4,handleFetch("/api/zonos-elements/get-temp-cart",{body:{isTestMode:r,tempCartUUID:c},headers:{"Content-Type":"application/json"},method:"POST"})];case 1:n=e.sent(),a=n.errors,o=n.json;i=!o||a.length;if(!(i&&s))return[3,3];log("[ZONOS - loadZonos] temp cart not ready, retrying in 1 second","info",{retries:s});return[4,new Promise((function(e){return setTimeout(e,500)}))];case 2:e.sent();return[2,getTempCartById({cartId:c,retries:s-1})];case 3:if(i){return[2,null]}return[2,o]}}))}))};var baseRe=/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/;var uuidRe=new RegExp("^".concat(baseRe.source,"$"));var cartUuidRe=new RegExp("^cart_".concat(baseRe.source,"$"));var _getIsValidCartId=function(e){if(!e){return{isDgsCartId:false,isLegacyCartId:false}}if(cartUuidRe.test(e)){return{isDgsCartId:true,isLegacyCartId:false}}if(uuidRe.test(e)){return{isDgsCartId:false,isLegacyCartId:true}}return{isDgsCartId:false,isLegacyCartId:false}};var setupCartData=function(e){return __awaiter(void 0,void 0,void 0,(function(){var t,r,n,a;return __generator(this,(function(o){switch(o.label){case 0:t=_getIsValidCartId(e),r=t.isDgsCartId,n=t.isLegacyCartId;if(!n&&!r){logError("[ZONOS - loadZonos] invalid cart id");return[2,null]}return[4,getTempCartById({cartId:e,retries:5})];case 1:a=o.sent();log("[ZONOS - loadZonos] getting temp cart data","info",a);if(!a){logError("[ZONOS - loadZonos] Error getting temp cart data, stop checkout process.");return[2,null]}return[2,{cartData:a.cartData,storeFavicon:a.storeFaviconUrl,storeId:a.cartData.storeId,storeLogo:a.storeLogoUrl,zonosApiKey:a.cartData.credentialToken}]}}))}))};var checkoutHiddenBtnSelector="zonos--checkout-hidden-button";var domesticRedirectedBtnSelector="zonos--domestic-redirected-checkout-button";export{checkoutHiddenBtnSelector as c,domesticRedirectedBtnSelector as d,setupCartData as s};
1
+ var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function i(e){try{s(n.next(e))}catch(e){o(e)}}function c(e){try{s(n["throw"](e))}catch(e){o(e)}}function s(e){e.done?r(e.value):a(e.value).then(i,c)}s((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(e){return function(t){return s([e,t])}}function s(c){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,c[0]&&(r=0)),r)try{if(n=1,a&&(o=c[0]&2?a["return"]:c[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,c[1])).done)return o;if(a=0,o)c=[c[0]&2,o.value];switch(c[0]){case 0:case 1:o=c;break;case 4:r.label++;return{value:c[1],done:false};case 5:r.label++;a=c[1];c=[0];continue;case 7:c=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1];o=c;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(c);break}if(o[2])r.ops.pop();r.trys.pop();continue}c=t.call(e,r)}catch(e){c=[6,e];a=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};import{h as handleFetch,l as log,a as logError}from"./handleFetch-40fc3562.js";var getTempCartById=function(e){return __awaiter(void 0,[e],void 0,(function(e){var t,r,n,a,o,i;var c=e.cartId,s=e.retries;return __generator(this,(function(e){switch(e.label){case 0:t=new URLSearchParams(window.location.search);r=t.get("zonosTestMode")==="1";return[4,handleFetch("/api/zonos-elements/get-temp-cart",{body:{isTestMode:r,tempCartUUID:c},headers:{"Content-Type":"application/json"},method:"POST"})];case 1:n=e.sent(),a=n.errors,o=n.json;i=!o||a.length;if(!(i&&s))return[3,3];log("[ZONOS - loadZonos] temp cart not ready, retrying in 1 second","info",{retries:s});return[4,new Promise((function(e){return setTimeout(e,500)}))];case 2:e.sent();return[2,getTempCartById({cartId:c,retries:s-1})];case 3:if(i){return[2,null]}return[2,o]}}))}))};var baseRe=/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/;var uuidRe=new RegExp("^".concat(baseRe.source,"$"));var cartUuidRe=new RegExp("^cart_".concat(baseRe.source,"$"));var _getIsValidCartId=function(e){if(!e){return{isDgsCartId:false,isLegacyCartId:false}}if(cartUuidRe.test(e)){return{isDgsCartId:true,isLegacyCartId:false}}if(uuidRe.test(e)){return{isDgsCartId:false,isLegacyCartId:true}}return{isDgsCartId:false,isLegacyCartId:false}};var setupCartData=function(e){return __awaiter(void 0,void 0,void 0,(function(){var t,r,n,a;return __generator(this,(function(o){switch(o.label){case 0:t=_getIsValidCartId(e),r=t.isDgsCartId,n=t.isLegacyCartId;if(!n&&!r){logError("[ZONOS - loadZonos] invalid cart id");return[2,null]}return[4,getTempCartById({cartId:e,retries:5})];case 1:a=o.sent();log("[ZONOS - loadZonos] getting temp cart data","info",a);if(!a){logError("[ZONOS - loadZonos] Error getting temp cart data, stop checkout process.");return[2,null]}window.Zonos.storeId=a.cartData.storeId;window.Zonos.zonosApiKey=a.cartData.credentialToken;return[2,{cartData:a.cartData,storeFavicon:a.storeFaviconUrl,storeId:a.cartData.storeId,storeLogo:a.storeLogoUrl,zonosApiKey:a.cartData.credentialToken}]}}))}))};var checkoutHiddenBtnSelector="zonos--checkout-hidden-button";var domesticRedirectedBtnSelector="zonos--domestic-redirected-checkout-button";export{checkoutHiddenBtnSelector as c,domesticRedirectedBtnSelector as d,setupCartData as s};