@zonos/elements 1.3.38 → 1.3.40

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 (282) hide show
  1. package/dist/cjs/{cart-c7212410.js → cart-775440b7.js} +240 -7
  2. package/dist/cjs/{getBorderRadius-074b46ef.js → getBorderRadius-9ae7890c.js} +1 -1
  3. package/dist/cjs/{index-b071017b.js → index-ef8b2c76.js} +234 -167
  4. package/dist/cjs/index.cjs.js +10 -4
  5. package/dist/cjs/{isDarkColor-371a3b1a.js → isDarkColor-5f56770b.js} +1 -1
  6. package/dist/cjs/loader.cjs.js +2 -2
  7. package/dist/cjs/paypal-25c84e33.js +461 -0
  8. package/dist/cjs/{submitGtag-7a679d92.js → sendErrorLog-7818b288.js} +2 -19
  9. package/dist/cjs/zonos-address_8.cjs.entry.js +8 -8
  10. package/dist/cjs/zonos-badge_2.cjs.entry.js +2 -2
  11. package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
  12. package/dist/cjs/zonos-button_3.cjs.entry.js +4 -4
  13. package/dist/cjs/zonos-card.cjs.entry.js +3 -3
  14. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +73 -35
  15. package/dist/cjs/zonos-checkout.cjs.entry.js +50 -70
  16. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  17. package/dist/cjs/zonos-controller.cjs.entry.js +15 -15
  18. package/dist/cjs/zonos-country-flag.cjs.entry.js +5 -5
  19. package/dist/cjs/zonos-country-select_3.cjs.entry.js +5 -5
  20. package/dist/cjs/zonos-elements.cjs.js +3 -3
  21. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +5 -5
  22. package/dist/cjs/zonos-hello.cjs.entry.js +5 -5
  23. package/dist/cjs/zonos-input.cjs.entry.js +3 -3
  24. package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -5
  25. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  26. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  27. package/dist/cjs/{zonos-notification_2.cjs.entry.js → zonos-notification_3.cjs.entry.js} +59 -7
  28. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
  29. package/dist/cjs/zonos-text.cjs.entry.js +2 -2
  30. package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
  31. package/dist/cjs/{zonosStore-4c6c85da.js → zonosStore-b6c72408.js} +5 -1
  32. package/dist/collection/__tests__/build-utils/urlCheckOne.js +3 -1
  33. package/dist/collection/collection-manifest.json +2 -1
  34. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.css +1 -0
  35. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +39 -8
  36. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.css +1 -0
  37. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +7 -1
  38. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +37 -22
  39. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +3 -0
  40. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +37 -60
  41. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +1 -0
  42. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +1 -0
  43. package/dist/collection/components/main/zonos-controller.js +22 -8
  44. package/dist/collection/components/paypal/zonos-paypal-payment.css +37 -0
  45. package/dist/collection/components/paypal/zonos-paypal-payment.js +92 -0
  46. package/dist/collection/components/store/checkout/cart.js +26 -1
  47. package/dist/collection/components/store/checkout/paypal.js +219 -0
  48. package/dist/collection/components/store/checkout/stripe.js +16 -4
  49. package/dist/collection/components/store/translationStore/strings.arabic.js +9 -0
  50. package/dist/collection/components/store/translationStore/strings.base.js +9 -0
  51. package/dist/collection/components/store/translationStore/strings.chinese.js +9 -0
  52. package/dist/collection/components/store/translationStore/strings.danish.js +9 -0
  53. package/dist/collection/components/store/translationStore/strings.dutch.js +9 -0
  54. package/dist/collection/components/store/translationStore/strings.french.js +9 -0
  55. package/dist/collection/components/store/translationStore/strings.german.js +9 -0
  56. package/dist/collection/components/store/translationStore/strings.hebrew.js +9 -0
  57. package/dist/collection/components/store/translationStore/strings.indonesian.js +9 -0
  58. package/dist/collection/components/store/translationStore/strings.italian.js +9 -0
  59. package/dist/collection/components/store/translationStore/strings.japanese.js +9 -0
  60. package/dist/collection/components/store/translationStore/strings.korean.js +9 -0
  61. package/dist/collection/components/store/translationStore/strings.norwegian.js +9 -0
  62. package/dist/collection/components/store/translationStore/strings.polish.js +9 -0
  63. package/dist/collection/components/store/translationStore/strings.portuguese.js +9 -0
  64. package/dist/collection/components/store/translationStore/strings.russian.js +9 -0
  65. package/dist/collection/components/store/translationStore/strings.spanish.js +9 -0
  66. package/dist/collection/components/store/translationStore/strings.swedish.js +9 -0
  67. package/dist/collection/components/store/translationStore/strings.turkish.js +9 -0
  68. package/dist/collection/components/store/translationStore/strings.vietnamese.js +9 -0
  69. package/dist/collection/components/store/zonosStore.js +4 -0
  70. package/dist/collection/components/stripe/zonos-address/zonos-address.js +2 -2
  71. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
  72. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +2 -3
  73. package/dist/collection/components/utils/api/getZonosSettings.js +3 -3
  74. package/dist/collection/components/utils/api/paypalCaptureOrder.js +8 -0
  75. package/dist/collection/components/utils/api/paypalCreateOrder.js +8 -0
  76. package/dist/collection/components/utils/getContrastColor.js +6 -2
  77. package/dist/collection/components/utils/handleFetch.js +6 -1
  78. package/dist/collection/components/utils/isContrastColor.js +7 -0
  79. package/dist/collection/environment.js +4 -5
  80. package/dist/collection/scripts/_getZonosQaUrl.js +4 -0
  81. package/dist/collection/scripts/_zonosBase.js +2 -0
  82. package/dist/collection/styles/stripe/addressRuleStyle.js +6 -0
  83. package/dist/collection/types/generated/graphql.customer.types.js +35 -0
  84. package/dist/esm/{cart-eb75b113.js → cart-e9cd8286.js} +236 -8
  85. package/dist/esm/{getBorderRadius-947c24de.js → getBorderRadius-3c75c4c1.js} +1 -1
  86. package/dist/esm/{index-3b46f3c3.js → index-5a37ccde.js} +234 -167
  87. package/dist/esm/index.js +10 -4
  88. package/dist/esm/{isDarkColor-f8324c10.js → isDarkColor-3eb31a6d.js} +1 -1
  89. package/dist/esm/loader.js +3 -3
  90. package/dist/esm/paypal-da2b3db1.js +453 -0
  91. package/dist/esm/{submitGtag-0bc0baa0.js → sendErrorLog-2fcf78a2.js} +3 -19
  92. package/dist/esm/zonos-address_8.entry.js +8 -8
  93. package/dist/esm/zonos-badge_2.entry.js +2 -2
  94. package/dist/esm/zonos-banner.entry.js +2 -2
  95. package/dist/esm/zonos-button_3.entry.js +4 -4
  96. package/dist/esm/zonos-card.entry.js +3 -3
  97. package/dist/esm/zonos-cart-items_12.entry.js +60 -22
  98. package/dist/esm/zonos-checkout.entry.js +41 -61
  99. package/dist/esm/zonos-component.entry.js +1 -1
  100. package/dist/esm/zonos-controller.entry.js +15 -15
  101. package/dist/esm/zonos-country-flag.entry.js +5 -5
  102. package/dist/esm/zonos-country-select_3.entry.js +5 -5
  103. package/dist/esm/zonos-elements.js +4 -4
  104. package/dist/esm/zonos-hello-dialog.entry.js +5 -5
  105. package/dist/esm/zonos-hello.entry.js +5 -5
  106. package/dist/esm/zonos-input.entry.js +3 -3
  107. package/dist/esm/zonos-language-select_2.entry.js +5 -5
  108. package/dist/esm/zonos-link.entry.js +1 -1
  109. package/dist/esm/zonos-logo.entry.js +2 -2
  110. package/dist/esm/{zonos-notification_2.entry.js → zonos-notification_3.entry.js} +60 -9
  111. package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
  112. package/dist/esm/zonos-text.entry.js +2 -2
  113. package/dist/esm/zonos-v-stack.entry.js +2 -2
  114. package/dist/esm/{zonosStore-ba9e541e.js → zonosStore-425abc1b.js} +5 -1
  115. package/dist/esm-es5/cart-e9cd8286.js +1 -0
  116. package/dist/esm-es5/{getBorderRadius-947c24de.js → getBorderRadius-3c75c4c1.js} +1 -1
  117. package/dist/esm-es5/index-5a37ccde.js +2 -0
  118. package/dist/esm-es5/index.js +1 -1
  119. package/dist/esm-es5/{isDarkColor-f8324c10.js → isDarkColor-3eb31a6d.js} +1 -1
  120. package/dist/esm-es5/loader.js +1 -1
  121. package/dist/esm-es5/paypal-da2b3db1.js +17 -0
  122. package/dist/esm-es5/sendErrorLog-2fcf78a2.js +1 -0
  123. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  124. package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
  125. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  126. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  127. package/dist/esm-es5/zonos-card.entry.js +1 -1
  128. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  129. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  130. package/dist/esm-es5/zonos-component.entry.js +1 -1
  131. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  132. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  133. package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
  134. package/dist/esm-es5/zonos-elements.js +1 -1
  135. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  136. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  137. package/dist/esm-es5/zonos-input.entry.js +1 -1
  138. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  139. package/dist/esm-es5/zonos-link.entry.js +1 -1
  140. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  141. package/dist/esm-es5/zonos-notification_3.entry.js +1 -0
  142. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  143. package/dist/esm-es5/zonos-text.entry.js +1 -1
  144. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  145. package/dist/esm-es5/{zonosStore-ba9e541e.js → zonosStore-425abc1b.js} +1 -1
  146. package/dist/scripts/index.d.ts +91 -6
  147. package/dist/scripts/index.js +1 -1
  148. package/dist/scripts/loadZonos.js +1 -1
  149. package/dist/scripts/zonos.js +1 -1
  150. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +2 -1
  151. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.d.ts +8 -4
  152. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +1 -20
  153. package/dist/types/components/main/zonos-controller.d.ts +6 -0
  154. package/dist/types/components/paypal/zonos-paypal-payment.d.ts +17 -0
  155. package/dist/types/components/store/checkout/cart.d.ts +19 -1
  156. package/dist/types/components/store/checkout/paypal.d.ts +28 -0
  157. package/dist/types/components/store/checkout/stripe.d.ts +10 -1
  158. package/dist/types/components/store/translationStore/strings.arabic.d.ts +9 -0
  159. package/dist/types/components/store/translationStore/strings.base.d.ts +9 -0
  160. package/dist/types/components/store/translationStore/strings.chinese.d.ts +9 -0
  161. package/dist/types/components/store/translationStore/strings.danish.d.ts +9 -0
  162. package/dist/types/components/store/translationStore/strings.dutch.d.ts +9 -0
  163. package/dist/types/components/store/translationStore/strings.french.d.ts +9 -0
  164. package/dist/types/components/store/translationStore/strings.german.d.ts +9 -0
  165. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +9 -0
  166. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +9 -0
  167. package/dist/types/components/store/translationStore/strings.italian.d.ts +9 -0
  168. package/dist/types/components/store/translationStore/strings.japanese.d.ts +9 -0
  169. package/dist/types/components/store/translationStore/strings.korean.d.ts +9 -0
  170. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +9 -0
  171. package/dist/types/components/store/translationStore/strings.polish.d.ts +9 -0
  172. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +9 -0
  173. package/dist/types/components/store/translationStore/strings.russian.d.ts +9 -0
  174. package/dist/types/components/store/translationStore/strings.spanish.d.ts +9 -0
  175. package/dist/types/components/store/translationStore/strings.swedish.d.ts +9 -0
  176. package/dist/types/components/store/translationStore/strings.turkish.d.ts +9 -0
  177. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +9 -0
  178. package/dist/types/components/store/translationStore.d.ts +1 -1
  179. package/dist/types/components/store/zonosStore.d.ts +4 -0
  180. package/dist/types/components/utils/api/getZonosSettings.d.ts +2 -0
  181. package/dist/types/components/utils/api/paypalCaptureOrder.d.ts +10 -0
  182. package/dist/types/components/utils/api/paypalCreateOrder.d.ts +9 -0
  183. package/dist/types/components/utils/handleFetch.d.ts +4 -0
  184. package/dist/types/components/utils/isContrastColor.d.ts +4 -0
  185. package/dist/types/components.d.ts +50 -6
  186. package/dist/types/scripts/_zonosBase.d.ts +9 -1
  187. package/dist/types/stencil-public-runtime.d.ts +3 -10
  188. package/dist/types/types/checkout/CheckoutConfig.d.ts +14 -1
  189. package/dist/types/types/generated/graphql.customer.types.d.ts +71 -11
  190. package/dist/types/types/generated/graphql.customer.types.ts +103 -11
  191. package/dist/zonos-elements/index.esm.js +1 -1
  192. package/dist/zonos-elements/{p-ed333de6.system.entry.js → p-01bd2187.system.entry.js} +1 -1
  193. package/dist/zonos-elements/{p-f06bb776.system.entry.js → p-14b53e8f.system.entry.js} +1 -1
  194. package/dist/zonos-elements/p-15ecad81.entry.js +1 -0
  195. package/dist/zonos-elements/p-1b499bcc.system.js +1 -0
  196. package/dist/zonos-elements/{p-d2992457.system.entry.js → p-1daa3b1e.system.entry.js} +1 -1
  197. package/dist/zonos-elements/{p-085548f2.entry.js → p-1debb7b2.entry.js} +1 -1
  198. package/dist/zonos-elements/{p-9de374a7.system.entry.js → p-2bfb5e4b.system.entry.js} +1 -1
  199. package/dist/zonos-elements/{p-01304a58.system.entry.js → p-2c03ac78.system.entry.js} +1 -1
  200. package/dist/zonos-elements/p-3447ef24.system.js +17 -0
  201. package/dist/zonos-elements/{p-699a5376.entry.js → p-3496183d.entry.js} +1 -1
  202. package/dist/zonos-elements/{p-59f37de3.entry.js → p-36df9785.entry.js} +1 -1
  203. package/dist/zonos-elements/p-3996d025.system.js +1 -0
  204. package/dist/zonos-elements/p-3b6a7200.entry.js +1 -0
  205. package/dist/zonos-elements/p-3d98f422.system.entry.js +1 -0
  206. package/dist/zonos-elements/{p-31b3d26b.js → p-3da1bc42.js} +1 -1
  207. package/dist/zonos-elements/{p-a21ec316.system.entry.js → p-445fb353.system.entry.js} +1 -1
  208. package/dist/zonos-elements/{p-3541e6dd.entry.js → p-54101ed6.entry.js} +1 -1
  209. package/dist/zonos-elements/p-54971a77.system.js +1 -0
  210. package/dist/zonos-elements/{p-c0fcc0fa.system.entry.js → p-5a5d1a12.system.entry.js} +1 -1
  211. package/dist/zonos-elements/{p-c21802e9.entry.js → p-5e55dcbc.entry.js} +1 -1
  212. package/dist/zonos-elements/{p-71882ac9.system.entry.js → p-5f68f356.system.entry.js} +1 -1
  213. package/dist/zonos-elements/{p-73ba4398.system.entry.js → p-61842b4f.system.entry.js} +1 -1
  214. package/dist/zonos-elements/{p-3523c3b4.entry.js → p-657be9e9.entry.js} +1 -1
  215. package/dist/zonos-elements/p-6897be29.entry.js +1 -0
  216. package/dist/zonos-elements/{p-3f5e2e5c.system.entry.js → p-6f39051c.system.entry.js} +1 -1
  217. package/dist/zonos-elements/{p-966ab4e7.system.entry.js → p-70b024ad.system.entry.js} +1 -1
  218. package/dist/zonos-elements/{p-22882fd6.entry.js → p-71037fe5.entry.js} +1 -1
  219. package/dist/zonos-elements/p-7dd54a63.entry.js +1 -0
  220. package/dist/zonos-elements/{p-e3c014ae.entry.js → p-7f96d3b4.entry.js} +1 -1
  221. package/dist/zonos-elements/p-800db524.system.js +1 -0
  222. package/dist/zonos-elements/{p-9a1c0d02.js → p-890f5788.js} +1 -1
  223. package/dist/zonos-elements/{p-62ed4236.entry.js → p-8d149b99.entry.js} +1 -1
  224. package/dist/zonos-elements/p-916adba7.entry.js +1 -0
  225. package/dist/zonos-elements/{p-5821856c.js → p-92bebe7a.js} +1 -1
  226. package/dist/zonos-elements/p-94279862.system.js +1 -0
  227. package/dist/zonos-elements/{p-b903af96.system.entry.js → p-97dadd90.system.entry.js} +1 -1
  228. package/dist/zonos-elements/{p-e37440ad.system.js → p-b2007124.system.js} +1 -1
  229. package/dist/zonos-elements/p-b55b557a.system.js +2 -0
  230. package/dist/zonos-elements/{p-18b28104.entry.js → p-bfa5ec2b.entry.js} +1 -1
  231. package/dist/zonos-elements/p-c55a5fe4.system.entry.js +1 -0
  232. package/dist/zonos-elements/p-c5a5512a.system.entry.js +1 -0
  233. package/dist/zonos-elements/p-c87113fb.system.entry.js +1 -0
  234. package/dist/zonos-elements/p-ca58f16e.system.entry.js +1 -0
  235. package/dist/zonos-elements/{p-6c3390b7.entry.js → p-d46fa40a.entry.js} +1 -1
  236. package/dist/zonos-elements/p-d6135575.js +1 -0
  237. package/dist/zonos-elements/p-d95cb86a.system.js +1 -0
  238. package/dist/zonos-elements/{p-d8c1eb99.entry.js → p-d9d5ee2f.entry.js} +1 -1
  239. package/dist/zonos-elements/{p-2a45c837.system.entry.js → p-da15b587.system.entry.js} +1 -1
  240. package/dist/zonos-elements/{p-8acdf43b.system.entry.js → p-dc6a17fe.system.entry.js} +1 -1
  241. package/dist/zonos-elements/p-dd61b7a0.js +2 -0
  242. package/dist/zonos-elements/p-e252d86f.entry.js +1 -0
  243. package/dist/zonos-elements/{p-da2e5289.system.entry.js → p-e6efc2e1.system.entry.js} +1 -1
  244. package/dist/zonos-elements/{p-63a27875.entry.js → p-efdc7748.entry.js} +1 -1
  245. package/dist/zonos-elements/{p-2aa72606.entry.js → p-f643035f.entry.js} +1 -1
  246. package/dist/zonos-elements/p-f98f7066.js +17 -0
  247. package/dist/zonos-elements/{p-9d29f3f4.system.entry.js → p-fa02dd07.system.entry.js} +1 -1
  248. package/dist/zonos-elements/{p-c3619b3d.entry.js → p-fa95c3dc.entry.js} +1 -1
  249. package/dist/zonos-elements/p-fb63bd03.js +1 -0
  250. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  251. package/dist/zonos-elements/zonos-elements.js +1 -1
  252. package/loader/cdn.js +1 -2
  253. package/loader/index.cjs.js +1 -2
  254. package/loader/index.d.ts +3 -0
  255. package/loader/index.es2017.js +1 -2
  256. package/loader/index.js +1 -2
  257. package/package.json +12 -11
  258. package/dist/esm-es5/cart-eb75b113.js +0 -1
  259. package/dist/esm-es5/index-3b46f3c3.js +0 -2
  260. package/dist/esm-es5/submitGtag-0bc0baa0.js +0 -1
  261. package/dist/esm-es5/zonos-notification_2.entry.js +0 -1
  262. package/dist/zonos-elements/p-02405211.system.entry.js +0 -1
  263. package/dist/zonos-elements/p-0b538ed4.system.js +0 -1
  264. package/dist/zonos-elements/p-357322ea.system.entry.js +0 -1
  265. package/dist/zonos-elements/p-467f934c.system.entry.js +0 -1
  266. package/dist/zonos-elements/p-53acc999.js +0 -1
  267. package/dist/zonos-elements/p-548ac127.entry.js +0 -1
  268. package/dist/zonos-elements/p-5609876a.system.entry.js +0 -1
  269. package/dist/zonos-elements/p-57617755.entry.js +0 -1
  270. package/dist/zonos-elements/p-6f9448bb.entry.js +0 -1
  271. package/dist/zonos-elements/p-70262120.system.js +0 -1
  272. package/dist/zonos-elements/p-878293fe.js +0 -1
  273. package/dist/zonos-elements/p-a8b934c2.entry.js +0 -1
  274. package/dist/zonos-elements/p-a8cb25de.system.js +0 -1
  275. package/dist/zonos-elements/p-abe8ea12.system.js +0 -1
  276. package/dist/zonos-elements/p-ad37d20e.system.js +0 -1
  277. package/dist/zonos-elements/p-ae04d3ff.entry.js +0 -1
  278. package/dist/zonos-elements/p-b684f8aa.system.entry.js +0 -1
  279. package/dist/zonos-elements/p-ce347974.js +0 -2
  280. package/dist/zonos-elements/p-d99232c5.system.js +0 -2
  281. package/dist/zonos-elements/p-e0bf9666.system.js +0 -1
  282. package/dist/zonos-elements/p-e1db1bc9.entry.js +0 -1
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b071017b.js');
5
+ const index = require('./index-ef8b2c76.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy([["zonos-checkout.cjs",[[2,"zonos-checkout",{"appearanceSettingsOverride":[16],"preview":[4],"mobile":[4],"defaultAddress":[16],"forceDialogOpen":[4,"force-dialog-open"],"open":[32],"stripe":[32],"submitLoading":[32],"paymentError":[32],"collapseReviewMobile":[32],"isAttachError":[32],"isMobile":[32],"zonosReviewRef":[32],"storybookPaymentStatusOverride":[32],"domesticRedirectedBtnSelector":[32],"legacyCheckoutHiddenBtnSelector":[32],"isLegacyCheckout":[32],"confirmDialogOpen":[32],"showSessionTimoutScreen":[32],"checkoutTimeoutInterval":[32],"inventoryCheckErrorMessage":[32],"closeDialogHandler":[64],"init":[64],"setToFinishStep":[64]},[[16,"zonos--init-cart-info","initCartInfoHandler"],[4,"keydown","handleKeyPress"],[9,"resize","handleWindowResize"]],{"appearanceSettingsOverride":["appearanceSettingsOverrideChanged","handleAppearanceSettingsOverrideChange"],"mobile":["handleMobileChange"],"defaultAddress":["handleAddressChange"]}]]],["zonos-hello.cjs",[[1,"zonos-hello",{"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettingsOverride":[16],"showPeekMessage":[32],"zonosStoreHelloSettings":[32],"showDialog":[32],"peekMessage":[32],"initialUrl":[32],"allRestrictedItems":[32],"allFoundProducts":[32],"productsOnPage":[32],"isHelloWidgetRendered":[32],"getCountryList":[64],"displayCurrency":[64],"convertAndFormat":[64],"convert":[64],"format":[64],"openHelloDialog":[64]},[[9,"resize","handleResize"]],{"appearanceSettingsOverride":["handleAppearanceSettingsOverrideChange"]}]]],["zonos-controller.cjs",[[1,"zonos-controller",{"config":[16],"zonosApiKey":[1,"zonos-api-key"],"initCheckoutElement":[64],"setupGoogleFont":[64],"showNotification":[64],"reset":[64],"overrideConfig":[64],"overrideCountry":[64],"getAppearanceSetting":[64],"updateOrganizationName":[64]},[[8,"locationchange","handleLocationChange"]]]]],["zonos-component.cjs",[[1,"zonos-component",{"first":[1],"middle":[1],"last":[1]}]]],["zonos-link.cjs",[[1,"zonos-link",{"href":[1],"rel":[1],"target":[1],"linkTitle":[1,"link-title"]}]]],["zonos-logo.cjs",[[1,"zonos-logo",{"theme":[1],"width":[1]}]]],["zonos-input.cjs",[[1,"zonos-input",{"inputValue":[1,"input-value"],"inputLabel":[1,"input-label"],"inputSize":[1,"input-size"],"isDisabled":[4,"is-disabled"],"isError":[4,"is-error"],"inputPlaceholder":[1,"input-placeholder"],"value":[32]},null,{"inputValue":["onInputValueChange"]}]]],["zonos-badge_2.cjs",[[1,"zonos-tooltip",{"label":[1],"subtitle":[1],"showTooltip":[32]}],[1,"zonos-badge",{"bold":[4],"badgeColor":[1,"badge-color"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"rounded":[4]}]]],["zonos-country-flag.cjs",[[1,"zonos-country-flag",{"countryCode":[1,"country-code"],"size":[2]}]]],["zonos-v-stack.cjs",[[1,"zonos-v-stack",{"spacing":[2]}]]],["zonos-text.cjs",[[1,"zonos-text",{"textColor":[1,"text-color"],"size":[1],"type":[1],"weight":[2],"ready":[32]}]]],["zonos-country-select_3.cjs",[[1,"zonos-country-select",{"handleOnClose":[16],"inputValue":[32]}],[1,"zonos-hello-dialog-footer",{"appearanceSettings":[16],"setShowCountrySelect":[16],"setShowLanguageSelect":[16]}],[1,"zonos-custom-message",{"icon":[1],"message":[1]}]]],["zonos-hello-dialog.cjs",[[1,"zonos-hello-dialog",{"isOpen":[4,"is-open"],"setIsOpen":[16],"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettings":[16],"restrictedItems":[16],"welcomeMessage":[32],"showCountrySelect":[32],"showLanguageSelect":[32]},[[4,"click","globalClickHandler"]],{"isOpen":["isOpenHandler"]}]]],["zonos-shipping-rich-radio.cjs",[[1,"zonos-shipping-rich-radio",{"items":[16],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"theme":[1],"initialSelectedValue":[8,"initial-selected-value"],"selectedItem":[32]}]]],["zonos-notification_2.cjs",[[2,"zonos-payment",{"titleText":[1,"title-text"],"stripe":[32],"stripeElements":[32]},null,{"stripeElements":["watchInitStripe"],"stripe":["watchInitStripe"]}],[1,"zonos-notification",{"notificationArray":[32],"showNotification":[64]}]]],["zonos-card.cjs",[[1,"zonos-card",{"actions":[16],"backgroundColor":[1,"background-color"],"borderRadius":[2,"border-radius"],"footerActions":[16],"footerContent":[16],"footerHeight":[2,"footer-height"],"label":[16],"spacing":[1]}]]],["zonos-banner.cjs",[[1,"zonos-banner",{"bannerTitle":[1,"banner-title"],"intent":[1],"hasContent":[32]}]]],["zonos-button_3.cjs",[[17,"zonos-button",{"buttonColor":[1,"button-color"],"backgroundColor":[1,"background-color"],"borderStyle":[1,"border-style"],"isDisabled":[4,"is-disabled"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"variant":[1],"noBackground":[4,"no-background"],"withBoxShadow":[4,"with-box-shadow"],"noPaddingLeft":[4,"no-padding-left"],"noPaddingRight":[4,"no-padding-right"],"loading":[4],"justifyContent":[1,"justify-content"],"theme":[1],"hasIcon":[32],"hasContent":[32]},[[2,"click","clickHandler"]],{"icon":["iconChangeHandler"]}],[1,"zonos-spinner",{"size":[2],"spinnerColor":[1,"spinner-color"]}],[1,"zonos-icon",{"autoHeight":[4,"auto-height"],"iconColor":[1,"icon-color"],"content":[1],"size":[2]}]]],["zonos-language-select_2.cjs",[[1,"zonos-language-select",{"handleOnClose":[16]}],[1,"zonos-select-dialog-header",{"handleOnClose":[16],"label":[1]}]]],["zonos-address_8.cjs",[[1,"zonos-address-update-dialog",{"continueLoading":[4,"continue-loading"],"dialogLoading":[4,"dialog-loading"],"dialogOpen":[4,"dialog-open"],"submitBtnType":[1,"submit-btn-type"],"submitBtnColor":[1,"submit-btn-color"],"isMobile":[4,"is-mobile"],"shippingAddress":[16],"billingAddress":[16],"translatedShippingAddress":[16],"translatedBillingAddress":[16],"showErrorBanner":[32],"translatedShippingAddressState":[32],"translatedBillingAddressState":[32]},null,{"translatedShippingAddress":["watchTranslatedShippingAddress"],"translatedBillingAddress":["watchTranslatedBillingAddress"]}],[2,"zonos-address",{"type":[1],"titleText":[1,"title-text"],"defaultAddress":[16],"stripe":[32],"isDirtyAddress":[32]},null,{"stripe":["watchInitStripe"]}],[1,"zonos-checkbox",{"backgroundColor":[1,"background-color"],"label":[1],"isChecked":[4,"is-checked"],"isDisabled":[4,"is-disabled"],"size":[2],"fontSize":[1,"font-size"],"borderStyle":[1,"border-style"]},[[1,"click","onClick"]]],[2,"zonos-link-authentication",{"titleText":[1,"title-text"],"defaultEmail":[1,"default-email"],"stripe":[32]},null,{"stripe":["watchInitStripe"]}],[1,"zonos-dialog",{"open":[4],"headerText":[1,"header-text"],"width":[1],"height":[1],"minHeight":[1,"min-height"],"noHeader":[4,"no-header"],"noBodyPadding":[4,"no-body-padding"],"noBorder":[4,"no-border"],"borderStyle":[1,"border-style"],"noCloseButton":[4,"no-close-button"],"noClickOutside":[4,"no-click-outside"],"mobile":[4],"isLoading":[4,"is-loading"],"isMobile":[32]},[[9,"resize","handleWindowResize"],[4,"keydown","handleKeyDown"]]],[1,"zonos-address-display",{"currentAddress":[16],"addressType":[1,"address-type"]}],[1,"zonos-address-form",{"currentAddress":[16],"translatedAddress":[16],"addressType":[1,"address-type"],"localAddress":[32]},null,{"translatedAddress":["watchCurrentAddress"]}],[1,"zonos-collapse",{"collapsed":[4],"collapseSize":[2,"collapse-size"],"height":[32],"iframe":[32]}]]],["zonos-cart-items_12.cjs",[[2,"zonos-customer-info",{"continueLoading":[4,"continue-loading"],"submitBtnType":[1,"submit-btn-type"],"submitBtnColor":[1,"submit-btn-color"],"isMobile":[4,"is-mobile"],"defaultAddress":[16],"showErrorBanner":[32],"shippingCountry":[32],"isCheckingForRestrictedItems":[32],"isValidatingAddress":[32],"invalidShippingCharacterList":[32],"invalidBillingCharacterList":[32],"openAddressValidationDialog":[32]}],[2,"zonos-checkout-payment",{"paymentError":[4,"payment-error"],"submitBtnType":[1,"submit-btn-type"],"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"showErrorBanner":[32]}],[1,"zonos-checkout-footer",{"mobile":[4],"dataTheme":[1,"data-theme"],"showLanguageDialog":[32],"isMobile":[32]},[[4,"click","handleGlobalClick"]],{"mobile":["handleMobileChange"]}],[1,"zonos-checkout-finish",{"borderRadius":[1,"border-radius"],"storybookForceStatus":[1,"storybook-force-status"],"overrideNotification":[16],"isLoading":[32],"notificationType":[32],"notificationTitle":[32],"notificationMessages":[32],"notificationActionText":[32],"order":[32]}],[2,"zonos-shipping",{"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"submitBtnType":[1,"submit-btn-type"],"selectedShippingMethod":[32],"isSelecting":[32],"showErrorBanner":[32],"serviceLevels":[32]}],[1,"zonos-cart-restricted-items",{"hide":[4],"errorImages":[32],"internalCollapsed":[32],"firstRender":[32]}],[1,"zonos-cart-subtotal"],[1,"zonos-confirm-dialog",{"dialogTitle":[1,"dialog-title"],"dialogIntent":[1,"dialog-intent"],"dialogSubtitle":[1,"dialog-subtitle"],"submitBtnColor":[1,"submit-btn-color"],"dialogConfirmBtnText":[1,"dialog-confirm-btn-text"],"dialogCancelBtnText":[1,"dialog-cancel-btn-text"],"dialogType":[1,"dialog-type"],"isMobile":[4,"is-mobile"],"dialogOpen":[4,"dialog-open"],"noClickOutside":[4,"no-click-outside"]},[[4,"keydown","handleKeyDown"]]],[1,"zonos-checkout-progress-tabs",{"tabColor":[1,"tab-color"],"backgroundColor":[1,"background-color"],"setTabItems":[64],"setTabSelected":[64]}],[1,"zonos-review",{"mobile":[4],"collapsed":[4],"isMobile":[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-cart-items",{"errorImages":[32]}],[1,"zonos-rest-state",{"restStateSubtitle":[1,"rest-state-subtitle"],"restStateTitle":[1,"rest-state-title"],"restStateType":[1,"rest-state-type"],"isErrorImageLoad":[32]}]]]], options);
11
+ return index.bootstrapLazy([["zonos-checkout.cjs",[[2,"zonos-checkout",{"appearanceSettingsOverride":[16],"preview":[4],"mobile":[4],"defaultAddress":[16],"forceDialogOpen":[4,"force-dialog-open"],"open":[32],"stripe":[32],"submitLoading":[32],"collapseReviewMobile":[32],"isAttachError":[32],"isMobile":[32],"zonosReviewRef":[32],"storybookPaymentStatusOverride":[32],"domesticRedirectedBtnSelector":[32],"legacyCheckoutHiddenBtnSelector":[32],"isLegacyCheckout":[32],"confirmDialogOpen":[32],"inventoryCheckErrorMessage":[32],"closeDialogHandler":[64],"init":[64],"setToFinishStep":[64]},[[16,"zonos--init-cart-info","initCartInfoHandler"],[4,"keydown","handleKeyPress"],[9,"resize","handleWindowResize"]],{"appearanceSettingsOverride":["appearanceSettingsOverrideChanged","handleAppearanceSettingsOverrideChange"],"mobile":["handleMobileChange"],"defaultAddress":["handleAddressChange"]}]]],["zonos-hello.cjs",[[1,"zonos-hello",{"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettingsOverride":[16],"showPeekMessage":[32],"zonosStoreHelloSettings":[32],"showDialog":[32],"peekMessage":[32],"initialUrl":[32],"allRestrictedItems":[32],"allFoundProducts":[32],"productsOnPage":[32],"isHelloWidgetRendered":[32],"getCountryList":[64],"displayCurrency":[64],"convertAndFormat":[64],"convert":[64],"format":[64],"openHelloDialog":[64]},[[9,"resize","handleResize"]],{"appearanceSettingsOverride":["handleAppearanceSettingsOverrideChange"]}]]],["zonos-controller.cjs",[[1,"zonos-controller",{"config":[16],"zonosApiKey":[1,"zonos-api-key"],"initCheckoutElement":[64],"setupGoogleFont":[64],"showNotification":[64],"reset":[64],"overrideConfig":[64],"overrideCountry":[64],"getAppearanceSetting":[64],"updateOrganizationName":[64]},[[8,"locationchange","handleLocationChange"]]]]],["zonos-component.cjs",[[1,"zonos-component",{"first":[1],"middle":[1],"last":[1]}]]],["zonos-link.cjs",[[1,"zonos-link",{"href":[1],"rel":[1],"target":[1],"linkTitle":[1,"link-title"]}]]],["zonos-logo.cjs",[[1,"zonos-logo",{"theme":[1],"width":[1]}]]],["zonos-input.cjs",[[1,"zonos-input",{"inputValue":[1,"input-value"],"inputLabel":[1,"input-label"],"inputSize":[1,"input-size"],"isDisabled":[4,"is-disabled"],"isError":[4,"is-error"],"inputPlaceholder":[1,"input-placeholder"],"value":[32]},null,{"inputValue":["onInputValueChange"]}]]],["zonos-text.cjs",[[1,"zonos-text",{"textColor":[1,"text-color"],"size":[1],"type":[1],"weight":[2],"ready":[32]}]]],["zonos-badge_2.cjs",[[1,"zonos-tooltip",{"label":[1],"subtitle":[1],"showTooltip":[32]}],[1,"zonos-badge",{"bold":[4],"badgeColor":[1,"badge-color"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"rounded":[4]}]]],["zonos-card.cjs",[[1,"zonos-card",{"actions":[16],"backgroundColor":[1,"background-color"],"borderRadius":[2,"border-radius"],"footerActions":[16],"footerContent":[16],"footerHeight":[2,"footer-height"],"label":[16],"spacing":[1]}]]],["zonos-v-stack.cjs",[[1,"zonos-v-stack",{"spacing":[2]}]]],["zonos-country-select_3.cjs",[[1,"zonos-country-select",{"handleOnClose":[16],"inputValue":[32]}],[1,"zonos-hello-dialog-footer",{"appearanceSettings":[16],"setShowCountrySelect":[16],"setShowLanguageSelect":[16]}],[1,"zonos-custom-message",{"icon":[1],"message":[1]}]]],["zonos-hello-dialog.cjs",[[1,"zonos-hello-dialog",{"isOpen":[4,"is-open"],"setIsOpen":[16],"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettings":[16],"restrictedItems":[16],"welcomeMessage":[32],"showCountrySelect":[32],"showLanguageSelect":[32]},[[4,"click","globalClickHandler"]],{"isOpen":["isOpenHandler"]}]]],["zonos-shipping-rich-radio.cjs",[[1,"zonos-shipping-rich-radio",{"items":[16],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"theme":[1],"initialSelectedValue":[8,"initial-selected-value"],"selectedItem":[32]}]]],["zonos-notification_3.cjs",[[2,"zonos-payment",{"titleText":[1,"title-text"],"stripe":[32],"stripeElements":[32]},null,{"stripeElements":["watchInitStripe"],"stripe":["watchInitStripe"]}],[2,"zonos-paypal-payment"],[1,"zonos-notification",{"notificationArray":[32],"showNotification":[64]}]]],["zonos-banner.cjs",[[1,"zonos-banner",{"bannerTitle":[1,"banner-title"],"intent":[1],"hasContent":[32]}]]],["zonos-country-flag.cjs",[[1,"zonos-country-flag",{"countryCode":[1,"country-code"],"size":[2]}]]],["zonos-button_3.cjs",[[17,"zonos-button",{"buttonColor":[1,"button-color"],"backgroundColor":[1,"background-color"],"borderStyle":[1,"border-style"],"isDisabled":[4,"is-disabled"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"variant":[1],"noBackground":[4,"no-background"],"withBoxShadow":[4,"with-box-shadow"],"noPaddingLeft":[4,"no-padding-left"],"noPaddingRight":[4,"no-padding-right"],"loading":[4],"justifyContent":[1,"justify-content"],"theme":[1],"hasIcon":[32],"hasContent":[32]},[[2,"click","clickHandler"]],{"icon":["iconChangeHandler"]}],[1,"zonos-spinner",{"size":[2],"spinnerColor":[1,"spinner-color"]}],[1,"zonos-icon",{"autoHeight":[4,"auto-height"],"iconColor":[1,"icon-color"],"content":[1],"size":[2]}]]],["zonos-language-select_2.cjs",[[1,"zonos-language-select",{"handleOnClose":[16]}],[1,"zonos-select-dialog-header",{"handleOnClose":[16],"label":[1]}]]],["zonos-address_8.cjs",[[1,"zonos-address-update-dialog",{"continueLoading":[4,"continue-loading"],"dialogLoading":[4,"dialog-loading"],"dialogOpen":[4,"dialog-open"],"submitBtnType":[1,"submit-btn-type"],"submitBtnColor":[1,"submit-btn-color"],"isMobile":[4,"is-mobile"],"shippingAddress":[16],"billingAddress":[16],"translatedShippingAddress":[16],"translatedBillingAddress":[16],"showErrorBanner":[32],"translatedShippingAddressState":[32],"translatedBillingAddressState":[32]},null,{"translatedShippingAddress":["watchTranslatedShippingAddress"],"translatedBillingAddress":["watchTranslatedBillingAddress"]}],[2,"zonos-address",{"type":[1],"titleText":[1,"title-text"],"defaultAddress":[16],"stripe":[32],"isDirtyAddress":[32]},null,{"stripe":["watchInitStripe"]}],[1,"zonos-checkbox",{"backgroundColor":[1,"background-color"],"label":[1],"isChecked":[4,"is-checked"],"isDisabled":[4,"is-disabled"],"size":[2],"fontSize":[1,"font-size"],"borderStyle":[1,"border-style"]},[[1,"click","onClick"]]],[2,"zonos-link-authentication",{"titleText":[1,"title-text"],"defaultEmail":[1,"default-email"],"stripe":[32]},null,{"stripe":["watchInitStripe"]}],[1,"zonos-dialog",{"open":[4],"headerText":[1,"header-text"],"width":[1],"height":[1],"minHeight":[1,"min-height"],"noHeader":[4,"no-header"],"noBodyPadding":[4,"no-body-padding"],"noBorder":[4,"no-border"],"borderStyle":[1,"border-style"],"noCloseButton":[4,"no-close-button"],"noClickOutside":[4,"no-click-outside"],"mobile":[4],"isLoading":[4,"is-loading"],"isMobile":[32]},[[9,"resize","handleWindowResize"],[4,"keydown","handleKeyDown"]]],[1,"zonos-address-display",{"currentAddress":[16],"addressType":[1,"address-type"]}],[1,"zonos-address-form",{"currentAddress":[16],"translatedAddress":[16],"addressType":[1,"address-type"],"localAddress":[32]},null,{"translatedAddress":["watchCurrentAddress"]}],[1,"zonos-collapse",{"collapsed":[4],"collapseSize":[2,"collapse-size"],"height":[32],"iframe":[32]}]]],["zonos-cart-items_12.cjs",[[2,"zonos-customer-info",{"continueLoading":[4,"continue-loading"],"submitBtnType":[1,"submit-btn-type"],"submitBtnColor":[1,"submit-btn-color"],"isMobile":[4,"is-mobile"],"defaultAddress":[16],"showErrorBanner":[32],"shippingCountry":[32],"isCheckingForRestrictedItems":[32],"isValidatingAddress":[32],"invalidShippingCharacterList":[32],"invalidBillingCharacterList":[32],"openAddressValidationDialog":[32]}],[2,"zonos-checkout-payment",{"submitBtnType":[1,"submit-btn-type"],"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"showErrorBanner":[32]}],[1,"zonos-checkout-footer",{"mobile":[4],"dataTheme":[1,"data-theme"],"showLanguageDialog":[32],"isMobile":[32]},[[4,"click","handleGlobalClick"]],{"mobile":["handleMobileChange"]}],[1,"zonos-checkout-finish",{"borderRadius":[1,"border-radius"],"storybookForceStatus":[1,"storybook-force-status"],"overrideNotification":[16],"isLoading":[32],"notificationType":[32],"notificationTitle":[32],"notificationMessages":[32],"notificationActionText":[32],"order":[32]}],[2,"zonos-shipping",{"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"submitBtnType":[1,"submit-btn-type"],"selectedShippingMethod":[32],"isSelecting":[32],"showErrorBanner":[32],"serviceLevels":[32]}],[1,"zonos-cart-restricted-items",{"hide":[4],"errorImages":[32],"internalCollapsed":[32],"firstRender":[32]}],[1,"zonos-cart-subtotal"],[1,"zonos-confirm-dialog",{"dialogTitle":[1,"dialog-title"],"dialogIntent":[1,"dialog-intent"],"dialogSubtitle":[1,"dialog-subtitle"],"submitBtnColor":[1,"submit-btn-color"],"dialogConfirmBtnText":[1,"dialog-confirm-btn-text"],"dialogCancelBtnText":[1,"dialog-cancel-btn-text"],"dialogType":[1,"dialog-type"],"isMobile":[4,"is-mobile"],"dialogOpen":[4,"dialog-open"],"noClickOutside":[4,"no-click-outside"]},[[4,"keydown","handleKeyDown"]]],[1,"zonos-checkout-progress-tabs",{"tabColor":[1,"tab-color"],"backgroundColor":[1,"background-color"],"setTabItems":[64],"setTabSelected":[64]}],[1,"zonos-review",{"mobile":[4],"collapsed":[4],"isMobile":[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-cart-items",{"errorImages":[32]}],[1,"zonos-rest-state",{"restStateSubtitle":[1,"rest-state-subtitle"],"restStateTitle":[1,"rest-state-title"],"restStateType":[1,"rest-state-type"],"isErrorImageLoad":[32]}]]]], options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -0,0 +1,461 @@
1
+ 'use strict';
2
+
3
+ const zonosStore = require('./zonosStore-b6c72408.js');
4
+ const cart = require('./cart-775440b7.js');
5
+ const isDarkColor = require('./isDarkColor-5f56770b.js');
6
+ const logError = require('./logError-4e2f2020.js');
7
+
8
+ /*!
9
+ * paypal-js v8.1.0 (2024-06-07T16:55:00.122Z)
10
+ * Copyright 2020-present, PayPal, Inc. All rights reserved.
11
+ *
12
+ * Licensed under the Apache License, Version 2.0 (the "License");
13
+ * you may not use this file except in compliance with the License.
14
+ * You may obtain a copy of the License at
15
+ *
16
+ * http://www.apache.org/licenses/LICENSE-2.0
17
+ *
18
+ * Unless required by applicable law or agreed to in writing, software
19
+ * distributed under the License is distributed on an "AS IS" BASIS,
20
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
+ * See the License for the specific language governing permissions and
22
+ * limitations under the License.
23
+ */
24
+ function findScript(url, attributes) {
25
+ var currentScript = document.querySelector("script[src=\"".concat(url, "\"]"));
26
+ if (currentScript === null)
27
+ return null;
28
+ var nextScript = createScriptElement(url, attributes);
29
+ // ignore the data-uid-auto attribute that gets auto-assigned to every script tag
30
+ var currentScriptClone = currentScript.cloneNode();
31
+ delete currentScriptClone.dataset.uidAuto;
32
+ // check if the new script has the same number of data attributes
33
+ if (Object.keys(currentScriptClone.dataset).length !==
34
+ Object.keys(nextScript.dataset).length) {
35
+ return null;
36
+ }
37
+ var isExactMatch = true;
38
+ // check if the data attribute values are the same
39
+ Object.keys(currentScriptClone.dataset).forEach(function (key) {
40
+ if (currentScriptClone.dataset[key] !== nextScript.dataset[key]) {
41
+ isExactMatch = false;
42
+ }
43
+ });
44
+ return isExactMatch ? currentScript : null;
45
+ }
46
+ function insertScriptElement(_a) {
47
+ var url = _a.url, attributes = _a.attributes, onSuccess = _a.onSuccess, onError = _a.onError;
48
+ var newScript = createScriptElement(url, attributes);
49
+ newScript.onerror = onError;
50
+ newScript.onload = onSuccess;
51
+ document.head.insertBefore(newScript, document.head.firstElementChild);
52
+ }
53
+ function processOptions(options) {
54
+ var environment = options.environment;
55
+ // Keeping production as default to maintain backward compatibility.
56
+ // In the future this logic needs to be changed to use sandbox domain as default instead of production.
57
+ var sdkBaseUrl = environment === "sandbox"
58
+ ? "https://www.sandbox.paypal.com/sdk/js"
59
+ : "https://www.paypal.com/sdk/js";
60
+ // env is not an allowed key for sdk/js url.
61
+ delete options.environment;
62
+ if (options.sdkBaseUrl) {
63
+ sdkBaseUrl = options.sdkBaseUrl;
64
+ delete options.sdkBaseUrl;
65
+ }
66
+ var optionsWithStringIndex = options;
67
+ var _a = Object.keys(optionsWithStringIndex)
68
+ .filter(function (key) {
69
+ return (typeof optionsWithStringIndex[key] !== "undefined" &&
70
+ optionsWithStringIndex[key] !== null &&
71
+ optionsWithStringIndex[key] !== "");
72
+ })
73
+ .reduce(function (accumulator, key) {
74
+ var value = optionsWithStringIndex[key].toString();
75
+ key = camelCaseToKebabCase(key);
76
+ if (key.substring(0, 4) === "data" || key === "crossorigin") {
77
+ accumulator.attributes[key] = value;
78
+ }
79
+ else {
80
+ accumulator.queryParams[key] = value;
81
+ }
82
+ return accumulator;
83
+ }, {
84
+ queryParams: {},
85
+ attributes: {},
86
+ }), queryParams = _a.queryParams, attributes = _a.attributes;
87
+ if (queryParams["merchant-id"] &&
88
+ queryParams["merchant-id"].indexOf(",") !== -1) {
89
+ attributes["data-merchant-id"] = queryParams["merchant-id"];
90
+ queryParams["merchant-id"] = "*";
91
+ }
92
+ return {
93
+ url: "".concat(sdkBaseUrl, "?").concat(objectToQueryString(queryParams)),
94
+ attributes: attributes,
95
+ };
96
+ }
97
+ function camelCaseToKebabCase(str) {
98
+ var replacer = function (match, indexOfMatch) {
99
+ return (indexOfMatch ? "-" : "") + match.toLowerCase();
100
+ };
101
+ return str.replace(/[A-Z]+(?![a-z])|[A-Z]/g, replacer);
102
+ }
103
+ function objectToQueryString(params) {
104
+ var queryString = "";
105
+ Object.keys(params).forEach(function (key) {
106
+ if (queryString.length !== 0)
107
+ queryString += "&";
108
+ queryString += key + "=" + params[key];
109
+ });
110
+ return queryString;
111
+ }
112
+ function createScriptElement(url, attributes) {
113
+ if (attributes === void 0) { attributes = {}; }
114
+ var newScript = document.createElement("script");
115
+ newScript.src = url;
116
+ Object.keys(attributes).forEach(function (key) {
117
+ newScript.setAttribute(key, attributes[key]);
118
+ if (key === "data-csp-nonce") {
119
+ newScript.setAttribute("nonce", attributes["data-csp-nonce"]);
120
+ }
121
+ });
122
+ return newScript;
123
+ }
124
+
125
+ /**
126
+ * Load the Paypal JS SDK script asynchronously.
127
+ *
128
+ * @param {Object} options - used to configure query parameters and data attributes for the JS SDK.
129
+ * @param {PromiseConstructor} [PromisePonyfill=window.Promise] - optional Promise Constructor ponyfill.
130
+ * @return {Promise<Object>} paypalObject - reference to the global window PayPal object.
131
+ */
132
+ function loadScript(options, PromisePonyfill) {
133
+ if (PromisePonyfill === void 0) { PromisePonyfill = Promise; }
134
+ validateArguments(options, PromisePonyfill);
135
+ // resolve with null when running in Node or Deno
136
+ if (typeof document === "undefined")
137
+ return PromisePonyfill.resolve(null);
138
+ var _a = processOptions(options), url = _a.url, attributes = _a.attributes;
139
+ var namespace = attributes["data-namespace"] || "paypal";
140
+ var existingWindowNamespace = getPayPalWindowNamespace(namespace);
141
+ if (!attributes["data-js-sdk-library"]) {
142
+ attributes["data-js-sdk-library"] = "paypal-js";
143
+ }
144
+ // resolve with the existing global paypal namespace when a script with the same params already exists
145
+ if (findScript(url, attributes) && existingWindowNamespace) {
146
+ return PromisePonyfill.resolve(existingWindowNamespace);
147
+ }
148
+ return loadCustomScript({
149
+ url: url,
150
+ attributes: attributes,
151
+ }, PromisePonyfill).then(function () {
152
+ var newWindowNamespace = getPayPalWindowNamespace(namespace);
153
+ if (newWindowNamespace) {
154
+ return newWindowNamespace;
155
+ }
156
+ throw new Error("The window.".concat(namespace, " global variable is not available."));
157
+ });
158
+ }
159
+ /**
160
+ * Load a custom script asynchronously.
161
+ *
162
+ * @param {Object} options - used to set the script url and attributes.
163
+ * @param {PromiseConstructor} [PromisePonyfill=window.Promise] - optional Promise Constructor ponyfill.
164
+ * @return {Promise<void>} returns a promise to indicate if the script was successfully loaded.
165
+ */
166
+ function loadCustomScript(options, PromisePonyfill) {
167
+ if (PromisePonyfill === void 0) { PromisePonyfill = Promise; }
168
+ validateArguments(options, PromisePonyfill);
169
+ var url = options.url, attributes = options.attributes;
170
+ if (typeof url !== "string" || url.length === 0) {
171
+ throw new Error("Invalid url.");
172
+ }
173
+ if (typeof attributes !== "undefined" && typeof attributes !== "object") {
174
+ throw new Error("Expected attributes to be an object.");
175
+ }
176
+ return new PromisePonyfill(function (resolve, reject) {
177
+ // resolve with undefined when running in Node or Deno
178
+ if (typeof document === "undefined")
179
+ return resolve();
180
+ insertScriptElement({
181
+ url: url,
182
+ attributes: attributes,
183
+ onSuccess: function () { return resolve(); },
184
+ onError: function () {
185
+ var defaultError = new Error("The script \"".concat(url, "\" failed to load. Check the HTTP status code and response body in DevTools to learn more."));
186
+ return reject(defaultError);
187
+ },
188
+ });
189
+ });
190
+ }
191
+ function getPayPalWindowNamespace(namespace) {
192
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
193
+ return window[namespace];
194
+ }
195
+ function validateArguments(options, PromisePonyfill) {
196
+ if (typeof options !== "object" || options === null) {
197
+ throw new Error("Expected an options object.");
198
+ }
199
+ var environment = options.environment;
200
+ if (environment &&
201
+ environment !== "production" &&
202
+ environment !== "sandbox") {
203
+ throw new Error('The `environment` option must be either "production" or "sandbox".');
204
+ }
205
+ if (typeof PromisePonyfill !== "undefined" &&
206
+ typeof PromisePonyfill !== "function") {
207
+ throw new Error("Expected PromisePonyfill to be a function.");
208
+ }
209
+ }
210
+
211
+ const paypalCaptureOrder = async ({ checkoutSessionId, paypalMockResponse, }) => {
212
+ const { errors, json } = await cart.handleFetch(`${"https://v1.route.js.zonos.com"}/api/zonos-elements/capture-paypal-order`, {
213
+ body: { checkoutSessionId, paypalMockResponse },
214
+ method: 'POST',
215
+ });
216
+ return { errors, json };
217
+ };
218
+
219
+ const paypalCreateOrder = async ({ checkoutSessionId, }) => {
220
+ const { errors, json } = await cart.handleFetch(`${"https://v1.route.js.zonos.com"}/api/zonos-elements/create-paypal-order`, {
221
+ body: { checkoutSessionId },
222
+ method: 'POST',
223
+ });
224
+ return { errors, json };
225
+ };
226
+
227
+ const isContrastColor = ({ backgroundColor1, backgroundColor2, }) => {
228
+ // get readibility of the color
229
+ const colorReadibilityValue = isDarkColor.tinycolor.readability(backgroundColor1, backgroundColor2);
230
+ // If the readibility is less than 2.5, then we need to use different color
231
+ return colorReadibilityValue > 2.5;
232
+ };
233
+
234
+ /**
235
+ * Submit a gtag event if the gtag function is available.
236
+ */
237
+ const submitGtag = (event) => {
238
+ const googleAnalyticSetting = zonosStore.zonosStore.checkoutSettings.analyticsProviders.find(item => item.type === 'GOOGLE_ANALYTICS');
239
+ // only submit if googleAnalytic in checkout setting is on.
240
+ if (!googleAnalyticSetting || (googleAnalyticSetting === null || googleAnalyticSetting === void 0 ? void 0 : googleAnalyticSetting.status) === 'DISABLED') {
241
+ return;
242
+ }
243
+ if (typeof window.gtag === 'function') {
244
+ logError.log('Zonos submits gtag event', 'log', event);
245
+ window.gtag('event', event, {});
246
+ }
247
+ };
248
+
249
+ const { reset: paypalStoreReset, state: paypalStore } = zonosStore.createStore(() => ({
250
+ orderIdCreated: null,
251
+ paypalButtons: [],
252
+ paypalClientId: '',
253
+ paypalErrorMessage: null,
254
+ }));
255
+ const paypalStoreCreaterOrder = async ({ checkoutSessionId, }) => {
256
+ var _a, _b;
257
+ const { errors, json } = await paypalCreateOrder({
258
+ checkoutSessionId,
259
+ });
260
+ const paypalOrderId = (_a = json === null || json === void 0 ? void 0 : json.paypalOrderCreate) === null || _a === void 0 ? void 0 : _a.paypalOrderId;
261
+ if (errors.length || !paypalOrderId) {
262
+ throw new Error(((_b = errors.find(Boolean)) === null || _b === void 0 ? void 0 : _b.message) ||
263
+ 'An unexpected error occurred when creating paypal order.');
264
+ }
265
+ return paypalOrderId;
266
+ };
267
+ const paypalStoreCaptureOrder = async ({ checkoutSessionId, paypalMockResponse, }) => {
268
+ var _a, _b;
269
+ new URL(window.location.href);
270
+ const { errors, json } = await paypalCaptureOrder({
271
+ checkoutSessionId,
272
+ paypalMockResponse,
273
+ });
274
+ const zonosOrderId = (_a = json === null || json === void 0 ? void 0 : json.paypalOrderCapture.order) === null || _a === void 0 ? void 0 : _a.id;
275
+ if (errors.length || !zonosOrderId) {
276
+ throw new Error(((_b = errors.find(Boolean)) === null || _b === void 0 ? void 0 : _b.message) ||
277
+ cart.translate('An unexpected error occurred when processing PayPal order.'));
278
+ }
279
+ return zonosOrderId;
280
+ };
281
+ const paypalErrorHandler = ({ error }) => {
282
+ var _a;
283
+ const parsedResult = cart.jsonParse(error.message);
284
+ const paypalErrorMessage = (_a = parsedResult === null || parsedResult === void 0 ? void 0 : parsedResult.errors.find(Boolean)) === null || _a === void 0 ? void 0 : _a.message;
285
+ const parsedErrorMessage = (paypalErrorMessage === null || paypalErrorMessage === void 0 ? void 0 : paypalErrorMessage.match(/\[(.*?)\] (.*)/i)) || [];
286
+ if (!parsedErrorMessage) {
287
+ paypalStore.paypalErrorMessage = cart.translate('An unexpected error occurred when processing PayPal order.');
288
+ }
289
+ const errorMessage = parsedErrorMessage[2] ||
290
+ cart.translate('An unexpected error occurred when processing PayPal order.');
291
+ // show the error message
292
+ paypalStore.paypalErrorMessage = errorMessage;
293
+ };
294
+ /**
295
+ * This function generates the options for the PayPal button component.
296
+ * It first retrieves the primary color from the store and checks if it contrasts with PayPal's gold color.
297
+ * It then returns an object with the createOrder function and the style for the PayPal button.
298
+ * The createOrder function makes a call to the PayPal API to create an order and returns the order ID.
299
+ * The style object sets the border radius, color, and shape of the PayPal button.
300
+ */
301
+ const paypalButtonOptions = ({ checkoutSessionId, onPaypalFail, onPaypalSessionDone, overrideBorderRaidus, overridePrimaryColor, }) => {
302
+ const colorPrimary = overridePrimaryColor || zonosStore.zonosStore.appearance.colorPrimary;
303
+ // Paypal gold color
304
+ const paypalGoldColorHex = '#ffc33a';
305
+ // check if the paypal gold color is contrast to the background
306
+ const isContrast = isContrastColor({
307
+ backgroundColor1: paypalGoldColorHex,
308
+ backgroundColor2: colorPrimary || '',
309
+ });
310
+ return {
311
+ createOrder: async () => {
312
+ try {
313
+ // reset paypal error banner
314
+ paypalStore.paypalErrorMessage = null;
315
+ // reset inventory check error message
316
+ cart.cartStore.inventoryCheckErrorMessage = null;
317
+ try {
318
+ // check inventory before proceeding to payment
319
+ cart.cartStore.inventoryCheckErrorMessage =
320
+ await cart.stripeStoreHandleInventoryCheck();
321
+ }
322
+ catch (err) {
323
+ // If user provide callback and it throw an exception, default to this message and stop the payment.
324
+ cart.cartStore.inventoryCheckErrorMessage = cart.translate('Unable to check inventory. Please try again.');
325
+ }
326
+ // Don't proceed to payment if there's an error message
327
+ if (cart.cartStore.inventoryCheckErrorMessage) {
328
+ return '';
329
+ }
330
+ const paypalOrderId = await paypalStoreCreaterOrder({
331
+ checkoutSessionId,
332
+ });
333
+ return paypalOrderId;
334
+ }
335
+ catch (err) {
336
+ logError.logError('Failed to create paypal order', err);
337
+ paypalStore.paypalErrorMessage = cart.translate('Failed to create PayPal order. Please try again, or consider using an alternative method.');
338
+ // trigger fail event
339
+ onPaypalFail === null || onPaypalFail === void 0 ? void 0 : onPaypalFail();
340
+ return '';
341
+ }
342
+ },
343
+ onApprove: async (_, _actions) => {
344
+ try {
345
+ // reset paypal error banner
346
+ paypalStore.paypalErrorMessage = null;
347
+ // submit google tag when the form is complete
348
+ submitGtag('zonos-checkout-payment-info');
349
+ const orderId = await paypalStoreCaptureOrder({
350
+ checkoutSessionId,
351
+ paypalMockResponse: window.Zonos._paypalMockResponse,
352
+ });
353
+ paypalStore.orderIdCreated = orderId;
354
+ onPaypalSessionDone === null || onPaypalSessionDone === void 0 ? void 0 : onPaypalSessionDone({ orderId });
355
+ cart.cartStoreNextStep();
356
+ // clear the checkout session timeout timer when purchase is complete
357
+ cart.cartStoreClearCheckoutInterval();
358
+ }
359
+ catch (error) {
360
+ logError.logError('==== Failed to capture paypal order', error);
361
+ if (error instanceof Error) {
362
+ return paypalErrorHandler({ error });
363
+ }
364
+ onPaypalFail === null || onPaypalFail === void 0 ? void 0 : onPaypalFail();
365
+ }
366
+ },
367
+ style: {
368
+ // @ts-ignore
369
+ borderRadius: overrideBorderRaidus === 'SHARP' ? 0 : 10,
370
+ color: isContrast ? 'gold' : 'blue',
371
+ shape: 'rect',
372
+ },
373
+ };
374
+ };
375
+ const paypalStoreResetButtons = () => {
376
+ if (!paypalStore.paypalButtons.length) {
377
+ // Do nothing if the buttons array is already empty
378
+ return;
379
+ }
380
+ // Close all paypal buttons so we can re-init them
381
+ paypalStore.paypalButtons.forEach(async (button) => {
382
+ await button.close();
383
+ });
384
+ // clean up the buttons
385
+ paypalStore.paypalButtons = [];
386
+ };
387
+ const paypalInitScript = async ({ currency }) => {
388
+ var _a;
389
+ //
390
+ const isPaypalEnabled = !!((_a = zonosStore.zonosStore.checkoutSettings.externalPaymentMethods) === null || _a === void 0 ? void 0 : _a.find(item => item.type === 'PAYPAL' && item.status === 'ENABLED'));
391
+ if (!isPaypalEnabled) {
392
+ logError.log('=== Paypal is disabled for this store', 'warn');
393
+ return;
394
+ }
395
+ const paypalClientId = zonosStore.zonosStore.checkoutSettings.externalServiceTokens.find(item => item.type === 'PAYPAL_CLIENT_ID');
396
+ if (!paypalClientId) {
397
+ logError.log('Fail to load paypal -- missing paypal publishable key', 'warn');
398
+ return;
399
+ }
400
+ /**
401
+ * Paypal environment should be 'production' only when the API is in production environment and the checkout mode is not 'TEST' (sandbox mode)
402
+ */
403
+ const environment = zonosStore.zonosStore.zonosMode === 'production' &&
404
+ zonosStore.zonosStore.checkoutSettings.mode === 'LIVE'
405
+ ? 'production'
406
+ : 'sandbox';
407
+ // send paypal publishable key out to load paypal
408
+ window.Zonos.paypal = await loadScript({
409
+ clientId: paypalClientId.token,
410
+ currency,
411
+ environment,
412
+ });
413
+ logError.log('==== Paypal script loaded');
414
+ };
415
+ const paypalStoreInitButtons = (props) => {
416
+ var _a;
417
+ const paypal = window.Zonos.paypal;
418
+ if (!paypal) {
419
+ logError.log('Paypal is not available');
420
+ return null;
421
+ }
422
+ const checkoutSessionId = cart.cartStore.checkoutSessionId;
423
+ if (!checkoutSessionId) {
424
+ logError.log('Paypal is not available due to checkoutSessionId is not available');
425
+ return null;
426
+ }
427
+ logError.log('==== Loading Paypal buttons');
428
+ paypalStoreResetButtons();
429
+ const fundingSources = [(_a = paypal.FUNDING) === null || _a === void 0 ? void 0 : _a.PAYPAL].filter(Boolean);
430
+ paypalStore.paypalButtons = fundingSources
431
+ .map(fundingSource => {
432
+ var _a;
433
+ let button = null;
434
+ try {
435
+ button =
436
+ ((_a = paypal.Buttons) === null || _a === void 0 ? void 0 : _a.call(paypal, Object.assign(Object.assign({}, paypalButtonOptions(Object.assign({ checkoutSessionId,
437
+ fundingSource }, props))), { fundingSource }))) || null;
438
+ }
439
+ catch (err) {
440
+ logError.log(`===== Fail to load paypal's "${fundingSource}" button`, 'warn', err);
441
+ }
442
+ if (button === null || button === void 0 ? void 0 : button.isEligible()) {
443
+ logError.log(`==== Paypal button ${fundingSource} loaded`);
444
+ return button;
445
+ }
446
+ return null;
447
+ })
448
+ .filter(Boolean);
449
+ return paypalStore.paypalButtons;
450
+ };
451
+ const paypalStoreHasPaypalEnabled = () => {
452
+ return !!paypalStore.paypalButtons.length;
453
+ };
454
+
455
+ exports.isContrastColor = isContrastColor;
456
+ exports.paypalInitScript = paypalInitScript;
457
+ exports.paypalStore = paypalStore;
458
+ exports.paypalStoreHasPaypalEnabled = paypalStoreHasPaypalEnabled;
459
+ exports.paypalStoreInitButtons = paypalStoreInitButtons;
460
+ exports.paypalStoreReset = paypalStoreReset;
461
+ exports.submitGtag = submitGtag;
@@ -1,8 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const cart = require('./cart-c7212410.js');
4
- const zonosStore = require('./zonosStore-4c6c85da.js');
5
- const logError = require('./logError-4e2f2020.js');
3
+ const cart = require('./cart-775440b7.js');
4
+ const zonosStore = require('./zonosStore-b6c72408.js');
6
5
 
7
6
  const trackConversionEvent = async (eventName, metadata) => {
8
7
  var _a, _b;
@@ -67,23 +66,7 @@ const sendErrorLog = async ({ endpoint, errors, metadata }) => {
67
66
  });
68
67
  };
69
68
 
70
- /**
71
- * Submit a gtag event if the gtag function is available.
72
- */
73
- const submitGtag = (event) => {
74
- const googleAnalyticSetting = zonosStore.zonosStore.checkoutSettings.analyticsProviders.find(item => item.type === 'GOOGLE_ANALYTICS');
75
- // only submit if googleAnalytic in checkout setting is on.
76
- if (!googleAnalyticSetting || (googleAnalyticSetting === null || googleAnalyticSetting === void 0 ? void 0 : googleAnalyticSetting.status) === 'DISABLED') {
77
- return;
78
- }
79
- if (typeof window.gtag === 'function') {
80
- logError.log('Zonos submits gtag event', 'log', event);
81
- window.gtag('event', event, {});
82
- }
83
- };
84
-
85
69
  exports.createCustomEvent = createCustomEvent;
86
70
  exports.getIsTestMode = getIsTestMode;
87
71
  exports.sendErrorLog = sendErrorLog;
88
- exports.submitGtag = submitGtag;
89
72
  exports.trackConversionEvent = trackConversionEvent;
@@ -2,16 +2,16 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b071017b.js');
6
- const cart = require('./cart-c7212410.js');
5
+ const index = require('./index-ef8b2c76.js');
6
+ const cart = require('./cart-775440b7.js');
7
7
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
8
8
  const logError = require('./logError-4e2f2020.js');
9
9
  const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
10
- const zonosStore = require('./zonosStore-4c6c85da.js');
10
+ const zonosStore = require('./zonosStore-b6c72408.js');
11
11
  const classes = require('./classes-b7918f56.js');
12
12
  const RemoveIcon$1 = require('./RemoveIcon-081ac073.js');
13
- const getBorderRadius = require('./getBorderRadius-074b46ef.js');
14
- const isDarkColor = require('./isDarkColor-371a3b1a.js');
13
+ const getBorderRadius = require('./getBorderRadius-9ae7890c.js');
14
+ const isDarkColor = require('./isDarkColor-5f56770b.js');
15
15
 
16
16
  const zonosAddressCss = ".sc-zonos-address-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-address-h *.sc-zonos-address{font-family:var(--font-family, Inter), Inter}.sc-zonos-address-h img.sc-zonos-address{max-width:100%}.sc-zonos-address-h dl.sc-zonos-address,.sc-zonos-address-h dd.sc-zonos-address,.sc-zonos-address-h h1.sc-zonos-address,.sc-zonos-address-h h2.sc-zonos-address,.sc-zonos-address-h h3.sc-zonos-address,.sc-zonos-address-h h4.sc-zonos-address,.sc-zonos-address-h h5.sc-zonos-address,.sc-zonos-address-h h6.sc-zonos-address,.sc-zonos-address-h hr.sc-zonos-address,.sc-zonos-address-h figure.sc-zonos-address,.sc-zonos-address-h p.sc-zonos-address,.sc-zonos-address-h pre.sc-zonos-address{margin:0}.sc-zonos-address-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-address-h .zonos--title.sc-zonos-address{margin-bottom:16px}.sc-zonos-address-h zonos-banner.sc-zonos-address{margin-top:8px}";
17
17
  const ZonosAddressStyle0 = zonosAddressCss;
@@ -147,7 +147,7 @@ const ZonosAddress = class {
147
147
  }
148
148
  render() {
149
149
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
150
- return (index.h(index.Host, { key: 'f5729bb12351fedbb82e0fa80a7f094faad3a526', class: "zonos--address zonos--elements" }, index.h("zonos-text", { key: 'b2c50846e6da81a598ba670b14d01861703e5c78', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), index.h("div", { key: 'bb401f27626d88d883aaaab71bc0907a28bf35d3', class: "zonos--address-component" })));
150
+ return (index.h(index.Host, { key: 'f19f690b4086d3b9446508c3af12a469b2283d25', class: "zonos--address zonos--elements" }, index.h("zonos-text", { key: '3c908adcb0afd025fba6898e0fcb066e0884d696', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), index.h("div", { key: '42eb32ea6de83b0a24c139f8fc5849551d442174', class: "zonos--address-component" })));
151
151
  }
152
152
  get el() { return index.getElement(this); }
153
153
  static get watchers() { return {
@@ -230,7 +230,7 @@ const ZonosAddressForm = class {
230
230
  };
231
231
  ZonosAddressForm.style = ZonosAddressFormStyle0;
232
232
 
233
- const zonosAddressUpdateDialogCss = ":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--body{padding:0 24px;position:relative}:host .zonos--dialog-header{margin-bottom:32px;position:-webkit-sticky;position:sticky;padding-top:24px;top:0;z-index:11;background:var(--zonos-elements-gray-0)}:host .zonos--dialog-title{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;margin-bottom:12px}:host .zonos--group{overflow:auto;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:8px}:host .zonos--group::-webkit-scrollbar{width:10px}:host .zonos--group::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}:host .zonos--group::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}:host .zonos--group::-webkit-scrollbar-thumb:hover{background:#d6d6d6}:host .zonos--address-display-group{display:-ms-flexbox;display:flex;gap:8px;margin-bottom:20px}:host .zonos--address-display-group zonos-address-display{-ms-flex:1;flex:1}:host .zonos--what-you-entered{margin-bottom:8px}:host .zonos--address-form-section{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:24px}:host .zonos--group-btn{position:-webkit-sticky;position:sticky;padding:24px 0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:end;background:var(--zonos-elements-gray-0);z-index:11}:host .zonos--group-btn .zonos--button-wrapper{display:-ms-flexbox;display:flex;gap:8px}:host(.mobile) .zonos--button-wrapper{-ms-flex-direction:column;flex-direction:column;width:100%}:host(.mobile) .zonos--button-wrapper zonos-button{width:100%}:host(.mobile) .zonos--button-wrapper .zonos--cancel-btn{-ms-flex-order:2;order:2}:host(.mobile) .zonos--button-wrapper .zonos--update-btn{-ms-flex-order:1;order:1}";
233
+ const zonosAddressUpdateDialogCss = ":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--body{padding:0 24px;position:relative}:host .zonos--dialog-header{margin-bottom:32px;position:-webkit-sticky;position:sticky;padding-top:24px;top:0;z-index:11;background:var(--zonos-elements-gray-0)}:host .zonos--dialog-title{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;margin-bottom:12px}:host .zonos--group{overflow:auto;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:8px;-ms-scroll-chaining:none;overscroll-behavior:contain}:host .zonos--group::-webkit-scrollbar{width:10px}:host .zonos--group::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}:host .zonos--group::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}:host .zonos--group::-webkit-scrollbar-thumb:hover{background:#d6d6d6}:host .zonos--address-display-group{display:-ms-flexbox;display:flex;gap:8px;margin-bottom:20px}:host .zonos--address-display-group zonos-address-display{-ms-flex:1;flex:1}:host .zonos--what-you-entered{margin-bottom:8px}:host .zonos--address-form-section{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:24px}:host .zonos--group-btn{position:-webkit-sticky;position:sticky;padding:24px 0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:end;background:var(--zonos-elements-gray-0);z-index:11}:host .zonos--group-btn .zonos--button-wrapper{display:-ms-flexbox;display:flex;gap:8px}:host(.mobile) .zonos--button-wrapper{-ms-flex-direction:column;flex-direction:column;width:100%}:host(.mobile) .zonos--button-wrapper zonos-button{width:100%}:host(.mobile) .zonos--button-wrapper .zonos--cancel-btn{-ms-flex-order:2;order:2}:host(.mobile) .zonos--button-wrapper .zonos--update-btn{-ms-flex-order:1;order:1}";
234
234
  const ZonosAddressUpdateDialogStyle0 = zonosAddressUpdateDialogCss;
235
235
 
236
236
  const ZonosAddressUpdateDialog = class {
@@ -636,7 +636,7 @@ const ZonosLinkAuthentication = class {
636
636
  }
637
637
  render() {
638
638
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
639
- return (index.h(index.Host, { key: '5dfff9d2fcadfebdea65359e7b2bfdb525c3b242', class: "zonos--link-authentication zonos--elements" }, index.h("zonos-text", { key: 'fb080d667fdfc1a3f41e9cc128d2177af8dc7195', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), index.h("div", { key: 'b79693e8082c7c341895c81ad0787bb2bf152ca9', class: "zonos--link-authentication-component" })));
639
+ return (index.h(index.Host, { key: 'd3b232c0da0ef1f0d018398a36df06383bcdfe87', class: "zonos--link-authentication zonos--elements" }, index.h("zonos-text", { key: '7b6af818ae8628b204c3ea75fc58bee864b84069', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), index.h("div", { key: '068456f666b9d43595cb85c6ef51ab4f1113d268', class: "zonos--link-authentication-component" })));
640
640
  }
641
641
  get el() { return index.getElement(this); }
642
642
  static get watchers() { return {
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b071017b.js');
6
- const zonosStore = require('./zonosStore-4c6c85da.js');
5
+ const index = require('./index-ef8b2c76.js');
6
+ const zonosStore = require('./zonosStore-b6c72408.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
 
9
9
  const zonosBadgeCss = ":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 .zonos--badge-content{display:-ms-flexbox;display:flex;gap:8px;font-size:var(--zonos-elements-font-size-s);padding:4px 8px;text-align:center;border-radius:var(--zonos-elements-radius-6);background-color:var(--zonos-elements-gray-100);color:var(--zonos-elements-gray-800);-ms-flex-align:center;align-items:center}:host p{font-weight:600;line-height:16px}:host .icon-right svg{-ms-flex-order:2;order:2}:host .small{padding:2px 8px}:host .rounded{border-radius:20px}:host .bold{background-color:var(--zonos-elements-gray-600);color:var(--zonos-elements-gray-100)}:host .blue{background-color:var(--zonos-elements-blue-100);color:var(--zonos-elements-blue-800)}:host .blue.bold{background-color:var(--zonos-elements-blue-600);color:var(--zonos-elements-blue-100)}:host .green{background-color:var(--zonos-elements-green-100);color:var(--zonos-elements-green-800)}:host .green.bold{background-color:var(--zonos-elements-green-600);color:var(--zonos-elements-green-100)}:host .red{background-color:var(--zonos-elements-red-100);color:var(--zonos-elements-red-800)}:host .red.bold{background-color:var(--zonos-elements-red-600);color:var(--zonos-elements-red-100)}:host .orange{background-color:var(--zonos-elements-orange-100);color:var(--zonos-elements-orange-800);border:1px solid var(--zonos-elements-orange-200)}:host .orange.bold{background-color:var(--zonos-elements-orange-600);color:var(--zonos-elements-orange-100)}:host .purple{background-color:var(--zonos-elements-purple-100);color:var(--zonos-elements-purple-800)}:host .purple.bold{background-color:var(--zonos-elements-purple-600);color:var(--zonos-elements-purple-100)}:host .cyan{background-color:var(--zonos-elements-cyan-100);color:var(--zonos-elements-cyan-800)}:host .cyan.bold{background-color:var(--zonos-elements-cyan-600);color:var(--zonos-elements-cyan-100)}:host .transparent{background-color:transparent;border:1px solid var(--zonos-elements-gray-200);color:var(--zonos-elements-gray-800)}:host .transparent.bold{background-color:var(--zonos-elements-glass-600);color:var(--zonos-elements-gray-100)}";