@zonos/elements 1.3.262 → 1.3.263

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 (275) hide show
  1. package/dist/cjs/{cart-d08c87e2.js → cart-02a93797.js} +4 -4
  2. package/dist/cjs/{debounce-3e17b4e9.js → debounce-606d1801.js} +1 -1
  3. package/dist/cjs/{getBorderRadius-db55a464.js → getBorderRadius-a91911e7.js} +1 -1
  4. package/dist/cjs/{getContrastColor-8ed1cb48.js → getContrastColor-68058615.js} +2 -2
  5. package/dist/cjs/{hasInclusivePrice-c781c336.js → hasInclusivePrice-751ef38b.js} +1 -1
  6. package/dist/cjs/index.cjs.js +7 -7
  7. package/dist/cjs/{invoice-e64f97c6.js → invoice-215b8d2b.js} +3 -3
  8. package/dist/cjs/{isCollectMobileTablet-9675485f.js → isCollectMobileTablet-0d909501.js} +3 -3
  9. package/dist/cjs/{isContrastColor-6a17f408.js → isContrastColor-a02c4889.js} +1 -1
  10. package/dist/cjs/{isDarkColor-bfe6d1eb.js → isDarkColor-e317bb06.js} +1 -1
  11. package/dist/cjs/loader.cjs.js +1 -1
  12. package/dist/cjs/{localization-a7fac4b4.js → localization-68ebf7c6.js} +1 -1
  13. package/dist/cjs/{paypal-e278f405.js → paypal-f8a0cca3.js} +5 -5
  14. package/dist/cjs/{placeTestOrder-aefd31e8.js → placeTestOrder-ce734b60.js} +2 -2
  15. package/dist/cjs/{renderCheckoutCurrency-a374741a.js → renderCheckoutCurrency-d163c1c4.js} +2 -2
  16. package/dist/cjs/{submitGtag-4241212b.js → submitGtag-07a3b09e.js} +1 -1
  17. package/dist/cjs/{throttle-dac93461.js → throttle-8aebac7d.js} +2 -2
  18. package/dist/cjs/{updateCheckoutSessionAttributes-a3776bb0.js → updateCheckoutSessionAttributes-a9a97194.js} +1 -1
  19. package/dist/cjs/zonos-address-display_8.cjs.entry.js +7 -7
  20. package/dist/cjs/zonos-address_4.cjs.entry.js +7 -7
  21. package/dist/cjs/zonos-badge.cjs.entry.js +1 -1
  22. package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
  23. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  24. package/dist/cjs/zonos-card_5.cjs.entry.js +8 -8
  25. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +14 -14
  26. package/dist/cjs/zonos-checkbox_2.cjs.entry.js +3 -3
  27. package/dist/cjs/zonos-checkout.cjs.entry.js +10 -10
  28. package/dist/cjs/zonos-collapse.cjs.entry.js +1 -1
  29. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +5 -5
  30. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +11 -11
  31. package/dist/cjs/zonos-collect.cjs.entry.js +9 -9
  32. package/dist/cjs/zonos-controller.cjs.entry.js +6 -6
  33. package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -2
  34. package/dist/cjs/zonos-country-select_4.cjs.entry.js +3 -3
  35. package/dist/cjs/zonos-elements.cjs.js +1 -1
  36. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +13 -11
  37. package/dist/cjs/zonos-hello.cjs.entry.js +46 -14
  38. package/dist/cjs/zonos-input.cjs.entry.js +2 -2
  39. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +7 -7
  40. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +11 -11
  41. package/dist/cjs/zonos-invoice.cjs.entry.js +9 -9
  42. package/dist/cjs/zonos-language-select_2.cjs.entry.js +2 -2
  43. package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
  44. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +5 -5
  45. package/dist/cjs/zonos-store-credit.cjs.entry.js +6 -6
  46. package/dist/cjs/zonos-stripe-input.cjs.entry.js +3 -3
  47. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  48. package/dist/cjs/zonos-v-stack.cjs.entry.js +1 -1
  49. package/dist/cjs/{zonosStore-1c517e55.js → zonosStore-0662b95f.js} +1 -0
  50. package/dist/collection/components/hello/zonos-hello/zonos-hello.css +23 -15
  51. package/dist/collection/components/hello/zonos-hello/zonos-hello.js +45 -10
  52. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +10 -8
  53. package/dist/collection/components/store/zonosStore.js +1 -0
  54. package/dist/collection/components/utils/hello/getHelloWidgetSize.js +22 -0
  55. package/dist/collection/types/generated/graphql.internal.types.js +67 -1
  56. package/dist/esm/{cart-c490d252.js → cart-34b11708.js} +4 -4
  57. package/dist/esm/{debounce-8faafc9f.js → debounce-ab526ca0.js} +1 -1
  58. package/dist/esm/{getBorderRadius-66de1b16.js → getBorderRadius-98c64be8.js} +1 -1
  59. package/dist/esm/{getContrastColor-e14f95a7.js → getContrastColor-2340485f.js} +2 -2
  60. package/dist/esm/{hasInclusivePrice-7a0ce66a.js → hasInclusivePrice-dfb21fc9.js} +1 -1
  61. package/dist/esm/index.js +7 -7
  62. package/dist/esm/{invoice-3ea5715b.js → invoice-6d8bdf21.js} +3 -3
  63. package/dist/esm/{isCollectMobileTablet-0dcbd45a.js → isCollectMobileTablet-85403c93.js} +3 -3
  64. package/dist/esm/{isContrastColor-f9e65e70.js → isContrastColor-6bad285e.js} +1 -1
  65. package/dist/esm/{isDarkColor-8092a9fb.js → isDarkColor-0a8453e7.js} +1 -1
  66. package/dist/esm/loader.js +1 -1
  67. package/dist/esm/{localization-542dbe20.js → localization-2e523b35.js} +1 -1
  68. package/dist/esm/{paypal-d8804da5.js → paypal-d3b3d967.js} +5 -5
  69. package/dist/esm/{placeTestOrder-d7001709.js → placeTestOrder-e1d6dfcd.js} +2 -2
  70. package/dist/esm/{renderCheckoutCurrency-75f1bba3.js → renderCheckoutCurrency-cc72a6c2.js} +2 -2
  71. package/dist/esm/{submitGtag-7f5c5bb5.js → submitGtag-ae9d5d91.js} +1 -1
  72. package/dist/esm/{throttle-5a66b4fd.js → throttle-882b1f47.js} +2 -2
  73. package/dist/esm/{updateCheckoutSessionAttributes-8f3f932e.js → updateCheckoutSessionAttributes-da7fdd37.js} +1 -1
  74. package/dist/esm/zonos-address-display_8.entry.js +7 -7
  75. package/dist/esm/zonos-address_4.entry.js +7 -7
  76. package/dist/esm/zonos-badge.entry.js +1 -1
  77. package/dist/esm/zonos-banner.entry.js +1 -1
  78. package/dist/esm/zonos-button_3.entry.js +3 -3
  79. package/dist/esm/zonos-card_5.entry.js +8 -8
  80. package/dist/esm/zonos-cart-items_12.entry.js +14 -14
  81. package/dist/esm/zonos-checkbox_2.entry.js +3 -3
  82. package/dist/esm/zonos-checkout.entry.js +10 -10
  83. package/dist/esm/zonos-collapse.entry.js +1 -1
  84. package/dist/esm/zonos-collect-cart-items_3.entry.js +5 -5
  85. package/dist/esm/zonos-collect-finish_6.entry.js +11 -11
  86. package/dist/esm/zonos-collect.entry.js +9 -9
  87. package/dist/esm/zonos-controller.entry.js +6 -6
  88. package/dist/esm/zonos-country-flag.entry.js +2 -2
  89. package/dist/esm/zonos-country-select_4.entry.js +3 -3
  90. package/dist/esm/zonos-elements.js +1 -1
  91. package/dist/esm/zonos-hello-dialog.entry.js +13 -11
  92. package/dist/esm/zonos-hello.entry.js +46 -14
  93. package/dist/esm/zonos-input.entry.js +2 -2
  94. package/dist/esm/zonos-invoice-cart-items_2.entry.js +7 -7
  95. package/dist/esm/zonos-invoice-finish_5.entry.js +11 -11
  96. package/dist/esm/zonos-invoice.entry.js +9 -9
  97. package/dist/esm/zonos-language-select_2.entry.js +2 -2
  98. package/dist/esm/zonos-logo.entry.js +1 -1
  99. package/dist/esm/zonos-shipping-rich-radio.entry.js +5 -5
  100. package/dist/esm/zonos-store-credit.entry.js +6 -6
  101. package/dist/esm/zonos-stripe-input.entry.js +3 -3
  102. package/dist/esm/zonos-text.entry.js +1 -1
  103. package/dist/esm/zonos-v-stack.entry.js +1 -1
  104. package/dist/esm/{zonosStore-f1d45eac.js → zonosStore-9662b071.js} +1 -0
  105. package/dist/esm-es5/{cart-c490d252.js → cart-34b11708.js} +1 -1
  106. package/dist/esm-es5/{debounce-8faafc9f.js → debounce-ab526ca0.js} +1 -1
  107. package/dist/esm-es5/{getBorderRadius-66de1b16.js → getBorderRadius-98c64be8.js} +1 -1
  108. package/dist/esm-es5/{getContrastColor-e14f95a7.js → getContrastColor-2340485f.js} +1 -1
  109. package/dist/esm-es5/{hasInclusivePrice-7a0ce66a.js → hasInclusivePrice-dfb21fc9.js} +1 -1
  110. package/dist/esm-es5/index.js +1 -1
  111. package/dist/esm-es5/{invoice-3ea5715b.js → invoice-6d8bdf21.js} +1 -1
  112. package/dist/esm-es5/{isCollectMobileTablet-0dcbd45a.js → isCollectMobileTablet-85403c93.js} +1 -1
  113. package/dist/esm-es5/{isContrastColor-f9e65e70.js → isContrastColor-6bad285e.js} +1 -1
  114. package/dist/esm-es5/{isDarkColor-8092a9fb.js → isDarkColor-0a8453e7.js} +1 -1
  115. package/dist/esm-es5/loader.js +1 -1
  116. package/dist/esm-es5/{localization-542dbe20.js → localization-2e523b35.js} +1 -1
  117. package/dist/esm-es5/{paypal-d8804da5.js → paypal-d3b3d967.js} +2 -2
  118. package/dist/esm-es5/{placeTestOrder-d7001709.js → placeTestOrder-e1d6dfcd.js} +1 -1
  119. package/dist/esm-es5/{renderCheckoutCurrency-75f1bba3.js → renderCheckoutCurrency-cc72a6c2.js} +1 -1
  120. package/dist/esm-es5/{submitGtag-7f5c5bb5.js → submitGtag-ae9d5d91.js} +1 -1
  121. package/dist/esm-es5/{throttle-5a66b4fd.js → throttle-882b1f47.js} +1 -1
  122. package/dist/esm-es5/{updateCheckoutSessionAttributes-8f3f932e.js → updateCheckoutSessionAttributes-da7fdd37.js} +1 -1
  123. package/dist/esm-es5/zonos-address-display_8.entry.js +1 -1
  124. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  125. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  126. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  127. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  128. package/dist/esm-es5/zonos-card_5.entry.js +1 -1
  129. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  130. package/dist/esm-es5/zonos-checkbox_2.entry.js +1 -1
  131. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  132. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  133. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  134. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  135. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  136. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  137. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  138. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  139. package/dist/esm-es5/zonos-elements.js +1 -1
  140. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  141. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  142. package/dist/esm-es5/zonos-input.entry.js +1 -1
  143. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
  144. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
  145. package/dist/esm-es5/zonos-invoice.entry.js +1 -1
  146. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  147. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  148. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  149. package/dist/esm-es5/zonos-store-credit.entry.js +1 -1
  150. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  151. package/dist/esm-es5/zonos-text.entry.js +1 -1
  152. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  153. package/dist/esm-es5/{zonosStore-f1d45eac.js → zonosStore-9662b071.js} +1 -1
  154. package/dist/scripts/index.d.ts +31 -15
  155. package/dist/scripts/index.js +1 -1
  156. package/dist/scripts/loadZonos.js +1 -1
  157. package/dist/scripts/zonos.js +1 -1
  158. package/dist/types/components/hello/zonos-hello/zonos-hello.d.ts +8 -1
  159. package/dist/types/components/utils/hello/getHelloWidgetSize.d.ts +15 -0
  160. package/dist/types/components.d.ts +10 -2
  161. package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +8 -7
  162. package/dist/types/types/generated/graphql.internal.types.d.ts +100 -20
  163. package/dist/types/types/generated/graphql.internal.types.ts +118 -20
  164. package/dist/types/types/hello/HelloConfig.d.ts +5 -0
  165. package/dist/zonos-elements/index.esm.js +1 -1
  166. package/dist/zonos-elements/{p-53fe581b.system.js → p-0207c91e.system.js} +1 -1
  167. package/dist/zonos-elements/{p-06ef4d79.entry.js → p-024a4af5.entry.js} +1 -1
  168. package/dist/zonos-elements/{p-72a181b5.entry.js → p-06d8f294.entry.js} +1 -1
  169. package/dist/zonos-elements/{p-a1142a95.entry.js → p-07c228a7.entry.js} +1 -1
  170. package/dist/zonos-elements/p-0f3b9ed7.entry.js +1 -0
  171. package/dist/zonos-elements/{p-ed827ca3.entry.js → p-15161658.entry.js} +1 -1
  172. package/dist/zonos-elements/{p-9262a57c.system.entry.js → p-17b6f9ff.system.entry.js} +1 -1
  173. package/dist/zonos-elements/{p-bf4d2299.system.entry.js → p-191661c6.system.entry.js} +1 -1
  174. package/dist/zonos-elements/{p-e36e724b.system.entry.js → p-1b5d90ee.system.entry.js} +1 -1
  175. package/dist/zonos-elements/{p-43a6e469.system.js → p-1bf9a1b9.system.js} +1 -1
  176. package/dist/zonos-elements/{p-a8bb461c.js → p-1c1149ff.js} +1 -1
  177. package/dist/zonos-elements/{p-e749fb81.entry.js → p-1cc651e8.entry.js} +1 -1
  178. package/dist/zonos-elements/{p-3deb91cb.entry.js → p-1f107c84.entry.js} +1 -1
  179. package/dist/zonos-elements/{p-34fc45e5.entry.js → p-1fb6b787.entry.js} +1 -1
  180. package/dist/zonos-elements/{p-4cee62fb.entry.js → p-20e1a5a0.entry.js} +1 -1
  181. package/dist/zonos-elements/{p-d7a9be55.system.js → p-227a1ecc.system.js} +1 -1
  182. package/dist/zonos-elements/{p-dee6adff.system.js → p-22a8b44b.system.js} +1 -1
  183. package/dist/zonos-elements/{p-55742c52.entry.js → p-235ee1d3.entry.js} +1 -1
  184. package/dist/zonos-elements/{p-ef12af4b.entry.js → p-2381985c.entry.js} +1 -1
  185. package/dist/zonos-elements/{p-aa74b61a.system.entry.js → p-25b5ac23.system.entry.js} +1 -1
  186. package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
  187. package/dist/zonos-elements/{p-27f01d76.entry.js → p-2b40fab2.entry.js} +1 -1
  188. package/dist/zonos-elements/{p-f00a56be.system.entry.js → p-30b19a4e.system.entry.js} +1 -1
  189. package/dist/zonos-elements/{p-a75b8ad7.js → p-356b2068.js} +1 -1
  190. package/dist/zonos-elements/p-367a72bc.js +1 -0
  191. package/dist/zonos-elements/{p-15ef7644.system.js → p-3689821f.system.js} +1 -1
  192. package/dist/zonos-elements/{p-c263f95f.entry.js → p-3ae1a543.entry.js} +1 -1
  193. package/dist/zonos-elements/{p-022ddd4a.system.entry.js → p-3baf98a0.system.entry.js} +1 -1
  194. package/dist/zonos-elements/{p-a2b3c1ef.system.entry.js → p-4039b72d.system.entry.js} +1 -1
  195. package/dist/zonos-elements/{p-9de27162.system.entry.js → p-45ceb26f.system.entry.js} +1 -1
  196. package/dist/zonos-elements/{p-66934a78.system.entry.js → p-47a58a38.system.entry.js} +1 -1
  197. package/dist/zonos-elements/p-4980facb.js +1 -0
  198. package/dist/zonos-elements/{p-5dd78b4b.js → p-4c89d04a.js} +1 -1
  199. package/dist/zonos-elements/{p-a98b8b68.system.js → p-4d0b8897.system.js} +2 -2
  200. package/dist/zonos-elements/{p-14f156c6.system.entry.js → p-501d16ad.system.entry.js} +1 -1
  201. package/dist/zonos-elements/{p-a661dd45.system.entry.js → p-51c60875.system.entry.js} +1 -1
  202. package/dist/zonos-elements/{p-a3020bc9.entry.js → p-5290d104.entry.js} +1 -1
  203. package/dist/zonos-elements/{p-248bdea2.system.js → p-5496e9ae.system.js} +1 -1
  204. package/dist/zonos-elements/{p-947f5092.js → p-562fbdab.js} +1 -1
  205. package/dist/zonos-elements/{p-838e335c.entry.js → p-5834833a.entry.js} +1 -1
  206. package/dist/zonos-elements/{p-75a27c68.entry.js → p-5aa86f9c.entry.js} +1 -1
  207. package/dist/zonos-elements/{p-b2cd18b4.system.entry.js → p-5d32f10f.system.entry.js} +1 -1
  208. package/dist/zonos-elements/{p-e25e0b4b.system.js → p-5e6f85f0.system.js} +1 -1
  209. package/dist/zonos-elements/{p-20263609.system.js → p-60a391b8.system.js} +1 -1
  210. package/dist/zonos-elements/p-65ea8ae4.js +1 -0
  211. package/dist/zonos-elements/{p-cdbb50cf.entry.js → p-665bfd4f.entry.js} +1 -1
  212. package/dist/zonos-elements/{p-b47fcd8c.system.entry.js → p-6a11cccc.system.entry.js} +1 -1
  213. package/dist/zonos-elements/{p-cab6bd98.system.js → p-6a195559.system.js} +1 -1
  214. package/dist/zonos-elements/p-6d81901a.js +1 -0
  215. package/dist/zonos-elements/{p-3ff736f7.system.entry.js → p-7003d093.system.entry.js} +1 -1
  216. package/dist/zonos-elements/p-70c485df.js +1 -0
  217. package/dist/zonos-elements/{p-8d0bca3a.system.entry.js → p-7297f6bd.system.entry.js} +1 -1
  218. package/dist/zonos-elements/{p-d50fef06.system.entry.js → p-73765370.system.entry.js} +1 -1
  219. package/dist/zonos-elements/{p-dc4e867e.system.entry.js → p-79a7998f.system.entry.js} +1 -1
  220. package/dist/zonos-elements/{p-0699931c.system.js → p-7b6e65d6.system.js} +1 -1
  221. package/dist/zonos-elements/{p-9e761130.entry.js → p-7e313e45.entry.js} +1 -1
  222. package/dist/zonos-elements/{p-e76dc266.system.entry.js → p-8331aa21.system.entry.js} +1 -1
  223. package/dist/zonos-elements/{p-e55bc187.entry.js → p-8571f3ce.entry.js} +1 -1
  224. package/dist/zonos-elements/{p-7237f43b.system.entry.js → p-8603fb37.system.entry.js} +1 -1
  225. package/dist/zonos-elements/{p-072c5e07.system.entry.js → p-926c33b1.system.entry.js} +1 -1
  226. package/dist/zonos-elements/{p-f7d24382.system.entry.js → p-92f40018.system.entry.js} +1 -1
  227. package/dist/zonos-elements/{p-f2909fb8.entry.js → p-96f8cea8.entry.js} +1 -1
  228. package/dist/zonos-elements/p-97f0eda6.system.js +1 -0
  229. package/dist/zonos-elements/{p-4a227683.system.entry.js → p-9c5cce08.system.entry.js} +1 -1
  230. package/dist/zonos-elements/p-9f7e7148.system.js +1 -0
  231. package/dist/zonos-elements/{p-196423ad.system.js → p-a076cf7f.system.js} +1 -1
  232. package/dist/zonos-elements/{p-7df3e44b.system.entry.js → p-a3936c44.system.entry.js} +1 -1
  233. package/dist/zonos-elements/{p-b5223840.js → p-a50d095f.js} +1 -1
  234. package/dist/zonos-elements/{p-2f924331.js → p-ab0b23f2.js} +1 -1
  235. package/dist/zonos-elements/{p-80e7cab5.entry.js → p-adeaa7cf.entry.js} +1 -1
  236. package/dist/zonos-elements/{p-0ec4e307.system.js → p-b2d462f9.system.js} +1 -1
  237. package/dist/zonos-elements/p-b8710131.entry.js +1 -0
  238. package/dist/zonos-elements/{p-c7ecef98.system.entry.js → p-ba9e2612.system.entry.js} +1 -1
  239. package/dist/zonos-elements/{p-5a79e1f4.entry.js → p-bccae0df.entry.js} +1 -1
  240. package/dist/zonos-elements/{p-f0046c48.entry.js → p-bee55d71.entry.js} +1 -1
  241. package/dist/zonos-elements/{p-72adb40d.js → p-c2b86522.js} +1 -1
  242. package/dist/zonos-elements/{p-17476a30.system.entry.js → p-c361d520.system.entry.js} +1 -1
  243. package/dist/zonos-elements/p-c4d057b0.js +1 -0
  244. package/dist/zonos-elements/p-c9a1f774.js +1 -0
  245. package/dist/zonos-elements/{p-ca411d97.entry.js → p-cda0b441.entry.js} +1 -1
  246. package/dist/zonos-elements/{p-f6922df5.js → p-d28be518.js} +1 -1
  247. package/dist/zonos-elements/{p-5beab541.js → p-db3b101a.js} +1 -1
  248. package/dist/zonos-elements/{p-5db00bfa.system.entry.js → p-dc71be6f.system.entry.js} +1 -1
  249. package/dist/zonos-elements/p-de44cccd.system.entry.js +1 -0
  250. package/dist/zonos-elements/{p-00bd7e5d.entry.js → p-e06936f4.entry.js} +1 -1
  251. package/dist/zonos-elements/{p-d983d472.entry.js → p-e0ea6e24.entry.js} +1 -1
  252. package/dist/zonos-elements/p-e3292be8.system.js +1 -0
  253. package/dist/zonos-elements/{p-56c11359.system.entry.js → p-e4792f63.system.entry.js} +1 -1
  254. package/dist/zonos-elements/p-e5dfccd8.system.js +1 -0
  255. package/dist/zonos-elements/{p-313b87f3.system.entry.js → p-e98e4c0b.system.entry.js} +1 -1
  256. package/dist/zonos-elements/{p-61be7d98.system.js → p-eb99a625.system.js} +1 -1
  257. package/dist/zonos-elements/{p-ed9385f4.js → p-f3cfd8fa.js} +1 -1
  258. package/dist/zonos-elements/{p-ade15fd2.entry.js → p-f440cd53.entry.js} +1 -1
  259. package/dist/zonos-elements/{p-e673a4d9.entry.js → p-fe5303d1.entry.js} +1 -1
  260. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  261. package/package.json +1 -1
  262. package/dist/zonos-elements/p-09307a03.js +0 -1
  263. package/dist/zonos-elements/p-1916c2b0.entry.js +0 -1
  264. package/dist/zonos-elements/p-6b7beb44.system.js +0 -1
  265. package/dist/zonos-elements/p-7158a18b.js +0 -1
  266. package/dist/zonos-elements/p-721fadd5.js +0 -1
  267. package/dist/zonos-elements/p-7c5c5318.js +0 -1
  268. package/dist/zonos-elements/p-7d9bbdc8.js +0 -1
  269. package/dist/zonos-elements/p-8bce79f4.system.js +0 -1
  270. package/dist/zonos-elements/p-944bf0e7.js +0 -1
  271. package/dist/zonos-elements/p-b21cf539.system.entry.js +0 -1
  272. package/dist/zonos-elements/p-cd563d65.system.js +0 -1
  273. package/dist/zonos-elements/p-cdf99051.entry.js +0 -1
  274. package/dist/zonos-elements/p-e6726a50.system.js +0 -1
  275. package/dist/zonos-elements/p-f68ce554.js +0 -1
@@ -1,4 +1,4 @@
1
- var __awaiter=this&&this.__awaiter||function(n,r,e,t){function o(n){return n instanceof e?n:new e((function(r){r(n)}))}return new(e||(e=Promise))((function(e,i){function a(n){try{c(t.next(n))}catch(n){i(n)}}function u(n){try{c(t["throw"](n))}catch(n){i(n)}}function c(n){n.done?e(n.value):o(n.value).then(a,u)}c((t=t.apply(n,r||[])).next())}))};var __generator=this&&this.__generator||function(n,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},t,o,i,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(n){return function(r){return c([n,r])}}function c(u){if(t)throw new TypeError("Generator is already executing.");while(a&&(a=0,u[0]&&(e=0)),e)try{if(t=1,o&&(i=u[0]&2?o["return"]:u[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;if(o=0,i)u=[u[0]&2,i.value];switch(u[0]){case 0:case 1:i=u;break;case 4:e.label++;return{value:u[1],done:false};case 5:e.label++;o=u[1];u=[0];continue;case 7:u=e.ops.pop();e.trys.pop();continue;default:if(!(i=e.trys,i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){e.label=u[1];break}if(u[0]===6&&e.label<i[1]){e.label=i[1];i=u;break}if(i&&e.label<i[2]){e.label=i[2];e.ops.push(u);break}if(i[2])e.ops.pop();e.trys.pop();continue}u=r.call(n,e)}catch(n){u=[6,n];o=0}finally{t=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-15ef7644.system.js","./p-196423ad.system.js","./p-248bdea2.system.js","./p-01174496.system.js","./p-43a6e469.system.js","./p-d938f42f.system.js","./p-cab6bd98.system.js"],(function(n){"use strict";var r,e,t,o,i,a,u,c,s,d,f,l,v,p,y,h,b,w,m,_,j,P,k,g;return{setters:[function(n){r=n.z;e=n.c},function(n){t=n.t;o=n.y;i=n.b;a=n.d;u=n.v;c=n.w;s=n.x;d=n.z;f=n.r;l=n.h;v=n.F},function(n){p=n.t;y=n.s},function(n){h=n.h;b=n.g;w=n.l;m=n.j},function(n){_=n.i},function(n){j=n.l},function(n){P=n.i;k=n.e;g=n.s}],execute:function(){
1
+ var __awaiter=this&&this.__awaiter||function(n,r,e,t){function o(n){return n instanceof e?n:new e((function(r){r(n)}))}return new(e||(e=Promise))((function(e,i){function a(n){try{c(t.next(n))}catch(n){i(n)}}function u(n){try{c(t["throw"](n))}catch(n){i(n)}}function c(n){n.done?e(n.value):o(n.value).then(a,u)}c((t=t.apply(n,r||[])).next())}))};var __generator=this&&this.__generator||function(n,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},t,o,i,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(n){return function(r){return c([n,r])}}function c(u){if(t)throw new TypeError("Generator is already executing.");while(a&&(a=0,u[0]&&(e=0)),e)try{if(t=1,o&&(i=u[0]&2?o["return"]:u[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;if(o=0,i)u=[u[0]&2,i.value];switch(u[0]){case 0:case 1:i=u;break;case 4:e.label++;return{value:u[1],done:false};case 5:e.label++;o=u[1];u=[0];continue;case 7:u=e.ops.pop();e.trys.pop();continue;default:if(!(i=e.trys,i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){e.label=u[1];break}if(u[0]===6&&e.label<i[1]){e.label=i[1];i=u;break}if(i&&e.label<i[2]){e.label=i[2];e.ops.push(u);break}if(i[2])e.ops.pop();e.trys.pop();continue}u=r.call(n,e)}catch(n){u=[6,n];o=0}finally{t=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-3689821f.system.js","./p-a076cf7f.system.js","./p-5496e9ae.system.js","./p-01174496.system.js","./p-1bf9a1b9.system.js","./p-d938f42f.system.js","./p-6a195559.system.js"],(function(n){"use strict";var r,e,t,o,i,a,u,c,s,f,d,l,v,p,y,h,b,w,m,_,j,P,k,g;return{setters:[function(n){r=n.z;e=n.c},function(n){t=n.t;o=n.y;i=n.b;a=n.d;u=n.v;c=n.w;s=n.x;f=n.z;d=n.r;l=n.h;v=n.F},function(n){p=n.t;y=n.s},function(n){h=n.h;b=n.g;w=n.l;m=n.j},function(n){_=n.i},function(n){j=n.l},function(n){P=n.i;k=n.e;g=n.s}],execute:function(){
2
2
  /*!
3
3
  * paypal-js v8.4.2 (2025-09-04T17:21:30.135Z)
4
4
  * Copyright 2020-present, PayPal, Inc. All rights reserved.
@@ -15,4 +15,4 @@ var __awaiter=this&&this.__awaiter||function(n,r,e,t){function o(n){return n ins
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
17
  */
18
- var E=this;function O(n,r){var e={};for(var t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&r.indexOf(t)<0)e[t]=n[t];if(n!=null&&typeof Object.getOwnPropertySymbols==="function")for(var o=0,t=Object.getOwnPropertySymbols(n);o<t.length;o++){if(r.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(n,t[o]))e[t[o]]=n[t[o]]}return e}typeof SuppressedError==="function"?SuppressedError:function(n,r,e){var t=new Error(e);return t.name="SuppressedError",t.error=n,t.suppressed=r,t};function I(n,r){var e=document.querySelector('script[src="'.concat(n,'"]'));if(e===null)return null;var t=C(n,r);var o=e.cloneNode();delete o.dataset.uidAuto;if(Object.keys(o.dataset).length!==Object.keys(t.dataset).length){return null}var i=true;Object.keys(o.dataset).forEach((function(n){if(o.dataset[n]!==t.dataset[n]){i=false}}));return i?e:null}function S(n){var r=n.url,e=n.attributes,t=n.onSuccess,o=n.onError;var i=C(r,e);i.onerror=o;i.onload=t;document.head.insertBefore(i,document.head.firstElementChild)}function A(n){var r=n.sdkBaseUrl,e=n.environment,t=O(n,["sdkBaseUrl","environment"]);var o=r||T(e);var i=t;var a=Object.keys(i).filter((function(n){return typeof i[n]!=="undefined"&&i[n]!==null&&i[n]!==""})).reduce((function(n,r){var e=i[r].toString();r=x(r);if(r.substring(0,4)==="data"||r==="crossorigin"){n.attributes[r]=e}else{n.queryParams[r]=e}return n}),{queryParams:{},attributes:{}}),u=a.queryParams,c=a.attributes;if(u["merchant-id"]&&u["merchant-id"].indexOf(",")!==-1){c["data-merchant-id"]=u["merchant-id"];u["merchant-id"]="*"}return{url:"".concat(o,"?").concat(B(u)),attributes:c}}function x(n){var r=function(n,r){return(r?"-":"")+n.toLowerCase()};return n.replace(/[A-Z]+(?![a-z])|[A-Z]/g,r)}function B(n){var r="";Object.keys(n).forEach((function(e){if(r.length!==0)r+="&";r+=e+"="+n[e]}));return r}function T(n){return n==="sandbox"?"https://www.sandbox.paypal.com/sdk/js":"https://www.paypal.com/sdk/js"}function C(n,r){if(r===void 0){r={}}var e=document.createElement("script");e.src=n;Object.keys(r).forEach((function(n){e.setAttribute(n,r[n]);if(n==="data-csp-nonce"){e.setAttribute("nonce",r["data-csp-nonce"])}}));return e}function L(n,r){if(r===void 0){r=Promise}F(n,r);if(typeof document==="undefined")return r.resolve(null);var e=A(n),t=e.url,o=e.attributes;var i=o["data-namespace"]||"paypal";var a=M(i);if(!o["data-js-sdk-library"]){o["data-js-sdk-library"]="paypal-js"}if(I(t,o)&&a){return r.resolve(a)}return z({url:t,attributes:o},r).then((function(){var n=M(i);if(n){return n}throw new Error("The window.".concat(i," global variable is not available."))}))}function z(n,r){if(r===void 0){r=Promise}F(n,r);var e=n.url,t=n.attributes;if(typeof e!=="string"||e.length===0){throw new Error("Invalid url.")}if(typeof t!=="undefined"&&typeof t!=="object"){throw new Error("Expected attributes to be an object.")}return new r((function(n,r){if(typeof document==="undefined")return n();S({url:e,attributes:t,onSuccess:function(){return n()},onError:function(){var n=new Error('The script "'.concat(e,'" failed to load. Check the HTTP status code and response body in DevTools to learn more.'));return r(n)}})}))}function M(n){return window[n]}function F(n,r){if(typeof n!=="object"||n===null){throw new Error("Expected an options object.")}var e=n.environment;if(e&&e!=="production"&&e!=="sandbox"){throw new Error('The `environment` option must be either "production" or "sandbox".')}if(typeof r!=="undefined"&&typeof r!=="function"){throw new Error("Expected PromisePonyfill to be a function.")}}var q=function(n){return __awaiter(E,[n],void 0,(function(n){var r,e,t;var o=n.checkoutSessionId,i=n.paypalMockResponse;return __generator(this,(function(n){switch(n.label){case 0:return[4,h("/api/zonos-elements/capture-paypal-order",{body:{checkoutSessionId:o,paypalMockResponse:i},method:"POST"})];case 1:r=n.sent(),e=r.errors,t=r.json;return[2,{errors:e,json:t}]}}))}))};var D=function(n){return __awaiter(E,[n],void 0,(function(n){var r,e,t;var o=n.checkoutSessionId,i=n.intent;return __generator(this,(function(n){switch(n.label){case 0:return[4,h("/api/zonos-elements/create-paypal-order",{body:{checkoutSessionId:o,intent:i},method:"POST"})];case 1:r=n.sent(),e=r.errors,t=r.json;return[2,{errors:e,json:t}]}}))}))};var N=undefined&&undefined.__rest||function(n,r){var e={};for(var t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&r.indexOf(t)<0)e[t]=n[t];if(n!=null&&typeof Object.getOwnPropertySymbols==="function")for(var o=0,t=Object.getOwnPropertySymbols(n);o<t.length;o++){if(r.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(n,t[o]))e[t[o]]=n[t[o]]}return e};var R={purchase:"Purchase","zonos-checkout-payment-info":"AddPaymentInfo","zonos-checkout-start":"InitiateCheckout"};var U=function(n){var r;return(r=R[n])!==null&&r!==void 0?r:null};var Y=function(n){if(!n)return false;return Array.isArray(n.items)};var Z=function(n){if(!n)return{};if(!Y(n)){return Object.assign({},n)}var r=n.currency,e=n.items,t=n.transaction_id,o=n.value,i=N(n,["currency","items","transaction_id","value"]);var a=e.map((function(n){return{id:n.item_id,item_price:n.price,quantity:n.quantity}}));var u=e.map((function(n){return n.item_id}));var c=e.reduce((function(n,r){return n+r.quantity}),0);var s=Object.assign(Object.assign({},i),{content_ids:u,content_type:"product",contents:a,num_items:c});if(t){s.order_id=t}if(r!==undefined){s.currency=r}if(o!==undefined){s.value=o}return s};var H=function(){var n=r.checkoutSettings.analyticsProviders.find((function(n){return n.type==="FACEBOOK_PIXEL"}));return!!n&&n.status==="ENABLED"};var G=function(n,r,e){if(P()){k({event:r,fbqMode:n,payload:e,provider:"fbq"});return}if(typeof window.fbq==="function"){j("Zonos submits fbq event","log","".concat(n,":").concat(r));window.fbq(n,r,e)}};var K=function(n){var r=n.event,e=n.metadata;if(!H()){return}var t=b();var o=Z(e);var i=Object.assign(Object.assign({},o),t&&{isTestMode:true});var a=Object.fromEntries(Object.entries(i).filter((function(n){var r=n[0],e=n[1];return e!==null})));G("trackCustom",r,a);var u=U(r);if(u&&u!==r){G("track",u,a)}};var V=n("s",(function(n){g(n);K(n)}));var X=e((function(){return{intent:"capture",orderIdCreated:null,paypal:null,paypalButtons:[],paypalClientId:"",paypalErrorMessage:null}})),J=X.onChange,Q=X.reset,W=X.state;n({e:J,c:Q,a:W});var $=function(n){return __awaiter(E,[n],void 0,(function(n){var r,e,t,o,i,a,u;var c=n.checkoutSessionId;return __generator(this,(function(n){switch(n.label){case 0:t=W.intent.toUpperCase();return[4,D({checkoutSessionId:c,intent:t})];case 1:o=n.sent(),i=o.errors,a=o.json;u=(r=a===null||a===void 0?void 0:a.paypalOrderCreate)===null||r===void 0?void 0:r.paypalOrderId;if(i.length||!u){throw new Error(((e=i.find(Boolean))===null||e===void 0?void 0:e.message)||"An unexpected error occurred when creating paypal order.")}return[2,u]}}))}))};var nn=function(n){return __awaiter(E,[n],void 0,(function(n){var r,e,t,o,i,a;var u=n.checkoutSessionId,c=n.paypalMockResponse;return __generator(this,(function(n){switch(n.label){case 0:return[4,q({checkoutSessionId:u,paypalMockResponse:c})];case 1:t=n.sent(),o=t.errors,i=t.json;a=(r=i===null||i===void 0?void 0:i.paypalOrderCapture.order)===null||r===void 0?void 0:r.id;if(o.length||!a){throw new Error(((e=o.find(Boolean))===null||e===void 0?void 0:e.message)||p("An unexpected error occurred when processing PayPal order."))}return[2,a]}}))}))};var rn=function(n){var r=n.error;var e;var t=m(r.message);var o=(e=t===null||t===void 0?void 0:t.errors.find(Boolean))===null||e===void 0?void 0:e.message;var i=(o===null||o===void 0?void 0:o.match(/\[(.*?)\] (.*)/i))||[];if(!i){W.paypalErrorMessage=p("An unexpected error occurred when processing PayPal order.")}var a=i[2]||p("An unexpected error occurred when processing PayPal order.");W.paypalErrorMessage=a};var en=function(n){var e=n.checkoutSessionId,y=n.onPaypalFail,h=n.onPaypalSessionDone,b=n.overrideBorderRaidus,m=n.overridePrimaryColor;var j=m||r.appearance.colorPrimary;var P="#ffc33a";var k=_({backgroundColor1:P,backgroundColor2:j||""});return{createOrder:function(){return __awaiter(E,void 0,void 0,(function(){var n,r,b,m,_,j,P,k;return __generator(this,(function(g){switch(g.label){case 0:void t({checkoutSessionId:e,eventName:"checkout_paymentInfoCompleted",metadata:{paymentMethod:"paypal"}});return[4,o()];case 1:n=g.sent();if(!n.valid){W.paypalErrorMessage=n.errorMessage;i.hasPaymentError=false;i.customErrorMessage=null;V({event:"zonos-checkout-payment-fail",metadata:{checkoutSessionId:e}});y===null||y===void 0?void 0:y();return[2,""]}g.label=2;case 2:g.trys.push([2,12,,13]);W.paypalErrorMessage=null;a.inventoryCheckErrorMessage=null;g.label=3;case 3:g.trys.push([3,5,,6]);r=a;return[4,u()];case 4:r.inventoryCheckErrorMessage=g.sent();return[3,6];case 5:b=g.sent();a.inventoryCheckErrorMessage=p("Unable to check inventory. Please try again.");return[3,6];case 6:if(a.inventoryCheckErrorMessage){return[2,""]}m=v();if(!(m>0))return[3,8];return[4,c()];case 7:_=g.sent();if(!_.success){W.paypalErrorMessage=_.error||p("Unable to apply store credit. Please try again.");y===null||y===void 0?void 0:y();return[2,""]}g.label=8;case 8:if(!s())return[3,10];return[4,d()];case 9:j=g.sent();if(!j.success){W.paypalErrorMessage=j.error||p("Unable to place order with store credit. Please try again.");y===null||y===void 0?void 0:y();return[2,""]}h===null||h===void 0?void 0:h({orderId:j.orderId||""});f();l();return[2,""];case 10:return[4,$({checkoutSessionId:e})];case 11:P=g.sent();return[2,P];case 12:k=g.sent();w("Failed to create paypal order",k);W.paypalErrorMessage=p("Failed to create PayPal order. Please try again, or consider using an alternative method.");i.hasPaymentError=false;i.customErrorMessage=null;V({event:"zonos-checkout-payment-fail",metadata:{checkoutSessionId:e}});y===null||y===void 0?void 0:y();return[2,""];case 13:return[2]}}))}))},onApprove:function(n,r){return __awaiter(E,void 0,void 0,(function(){var n,r;return __generator(this,(function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);W.paypalErrorMessage=null;V({event:"zonos-checkout-payment-info",metadata:{checkoutSessionId:e,paymentMethod:"paypal"}});return[4,nn({checkoutSessionId:e,paypalMockResponse:window.Zonos._paypalMockResponse})];case 1:n=t.sent();W.orderIdCreated=n;h===null||h===void 0?void 0:h({orderId:n});f();l();return[3,3];case 2:r=t.sent();w("==== Failed to capture paypal order",r);if(r instanceof Error){return[2,rn({error:r})]}y===null||y===void 0?void 0:y();return[3,3];case 3:return[2]}}))}))},style:{borderRadius:b==="SHARP"?0:10,color:k?"gold":"blue",shape:"rect"}}};var tn=function(){if(!W.paypalButtons.length){return}W.paypalButtons.forEach((function(n){return __awaiter(E,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:return[4,n.close()];case 1:r.sent();return[2]}}))}))}));W.paypalButtons=[]};var on=n("b",(function(n){return __awaiter(E,[n],void 0,(function(n){var e,t,o,i,a,u;var c=n.currency;return __generator(this,(function(n){switch(n.label){case 0:t=!!((e=r.checkoutSettings.externalPaymentMethods)===null||e===void 0?void 0:e.find((function(n){return n.type==="PAYPAL"&&n.status==="ENABLED"})));if(!t){j("=== Paypal is disabled for this store","warn");return[2]}o=r.checkoutSettings.externalServiceTokens.find((function(n){return n.type==="PAYPAL_CLIENT_ID"}));if(!o){j("Failed to load paypal -- missing paypal publishable key","warn");return[2]}i=(!r.zonosMode||r.zonosMode==="production")&&r.checkoutSettings.mode==="LIVE"?"production":"sandbox";a=r.checkoutSettings.captureDelay&&r.checkoutSettings.captureDelay>0;W.intent=a?"authorize":"capture";j("==== Paypal order intent","info",W.intent);u=window.Zonos;return[4,L({clientId:o.token,currency:c,environment:i,intent:W.intent})];case 1:u.paypal=n.sent();W.paypal=window.Zonos.paypal;j("==== Paypal script loaded");return[2]}}))}))}));var an=n("d",(function(n){var r;var e=window.Zonos.paypal;if(!e){j("Paypal is not available");return null}var t=y.checkoutSessionId;if(!t){j("Paypal is not available due to checkoutSessionId is not available");return null}j("==== Loading Paypal buttons");tn();var o=[(r=e.FUNDING)===null||r===void 0?void 0:r.PAYPAL].filter(Boolean);W.paypalButtons=o.map((function(r){var o;var i=null;try{i=((o=e.Buttons)===null||o===void 0?void 0:o.call(e,Object.assign(Object.assign({},en(Object.assign({checkoutSessionId:t,fundingSource:r},n))),{fundingSource:r})))||null}catch(n){j("===== Failed to load paypal's \"".concat(r,'" button'),"warn",n)}if(i===null||i===void 0?void 0:i.isEligible()){j("==== Paypal button ".concat(r," loaded"));return i}return null})).filter(Boolean);return W.paypalButtons}));var un=n("p",(function(){var n,e;var t=((e=(n=r.checkoutSettings.externalPaymentMethods)===null||n===void 0?void 0:n.find((function(n){return n.type==="PAYPAL"})))===null||e===void 0?void 0:e.status)==="ENABLED";return t||!!W.paypalButtons.length}))}}}));
18
+ var E=this;function O(n,r){var e={};for(var t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&r.indexOf(t)<0)e[t]=n[t];if(n!=null&&typeof Object.getOwnPropertySymbols==="function")for(var o=0,t=Object.getOwnPropertySymbols(n);o<t.length;o++){if(r.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(n,t[o]))e[t[o]]=n[t[o]]}return e}typeof SuppressedError==="function"?SuppressedError:function(n,r,e){var t=new Error(e);return t.name="SuppressedError",t.error=n,t.suppressed=r,t};function I(n,r){var e=document.querySelector('script[src="'.concat(n,'"]'));if(e===null)return null;var t=C(n,r);var o=e.cloneNode();delete o.dataset.uidAuto;if(Object.keys(o.dataset).length!==Object.keys(t.dataset).length){return null}var i=true;Object.keys(o.dataset).forEach((function(n){if(o.dataset[n]!==t.dataset[n]){i=false}}));return i?e:null}function S(n){var r=n.url,e=n.attributes,t=n.onSuccess,o=n.onError;var i=C(r,e);i.onerror=o;i.onload=t;document.head.insertBefore(i,document.head.firstElementChild)}function A(n){var r=n.sdkBaseUrl,e=n.environment,t=O(n,["sdkBaseUrl","environment"]);var o=r||T(e);var i=t;var a=Object.keys(i).filter((function(n){return typeof i[n]!=="undefined"&&i[n]!==null&&i[n]!==""})).reduce((function(n,r){var e=i[r].toString();r=x(r);if(r.substring(0,4)==="data"||r==="crossorigin"){n.attributes[r]=e}else{n.queryParams[r]=e}return n}),{queryParams:{},attributes:{}}),u=a.queryParams,c=a.attributes;if(u["merchant-id"]&&u["merchant-id"].indexOf(",")!==-1){c["data-merchant-id"]=u["merchant-id"];u["merchant-id"]="*"}return{url:"".concat(o,"?").concat(B(u)),attributes:c}}function x(n){var r=function(n,r){return(r?"-":"")+n.toLowerCase()};return n.replace(/[A-Z]+(?![a-z])|[A-Z]/g,r)}function B(n){var r="";Object.keys(n).forEach((function(e){if(r.length!==0)r+="&";r+=e+"="+n[e]}));return r}function T(n){return n==="sandbox"?"https://www.sandbox.paypal.com/sdk/js":"https://www.paypal.com/sdk/js"}function C(n,r){if(r===void 0){r={}}var e=document.createElement("script");e.src=n;Object.keys(r).forEach((function(n){e.setAttribute(n,r[n]);if(n==="data-csp-nonce"){e.setAttribute("nonce",r["data-csp-nonce"])}}));return e}function L(n,r){if(r===void 0){r=Promise}F(n,r);if(typeof document==="undefined")return r.resolve(null);var e=A(n),t=e.url,o=e.attributes;var i=o["data-namespace"]||"paypal";var a=M(i);if(!o["data-js-sdk-library"]){o["data-js-sdk-library"]="paypal-js"}if(I(t,o)&&a){return r.resolve(a)}return z({url:t,attributes:o},r).then((function(){var n=M(i);if(n){return n}throw new Error("The window.".concat(i," global variable is not available."))}))}function z(n,r){if(r===void 0){r=Promise}F(n,r);var e=n.url,t=n.attributes;if(typeof e!=="string"||e.length===0){throw new Error("Invalid url.")}if(typeof t!=="undefined"&&typeof t!=="object"){throw new Error("Expected attributes to be an object.")}return new r((function(n,r){if(typeof document==="undefined")return n();S({url:e,attributes:t,onSuccess:function(){return n()},onError:function(){var n=new Error('The script "'.concat(e,'" failed to load. Check the HTTP status code and response body in DevTools to learn more.'));return r(n)}})}))}function M(n){return window[n]}function F(n,r){if(typeof n!=="object"||n===null){throw new Error("Expected an options object.")}var e=n.environment;if(e&&e!=="production"&&e!=="sandbox"){throw new Error('The `environment` option must be either "production" or "sandbox".')}if(typeof r!=="undefined"&&typeof r!=="function"){throw new Error("Expected PromisePonyfill to be a function.")}}var q=function(n){return __awaiter(E,[n],void 0,(function(n){var r,e,t;var o=n.checkoutSessionId,i=n.paypalMockResponse;return __generator(this,(function(n){switch(n.label){case 0:return[4,h("/api/zonos-elements/capture-paypal-order",{body:{checkoutSessionId:o,paypalMockResponse:i},method:"POST"})];case 1:r=n.sent(),e=r.errors,t=r.json;return[2,{errors:e,json:t}]}}))}))};var D=function(n){return __awaiter(E,[n],void 0,(function(n){var r,e,t;var o=n.checkoutSessionId,i=n.intent;return __generator(this,(function(n){switch(n.label){case 0:return[4,h("/api/zonos-elements/create-paypal-order",{body:{checkoutSessionId:o,intent:i},method:"POST"})];case 1:r=n.sent(),e=r.errors,t=r.json;return[2,{errors:e,json:t}]}}))}))};var N=undefined&&undefined.__rest||function(n,r){var e={};for(var t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&r.indexOf(t)<0)e[t]=n[t];if(n!=null&&typeof Object.getOwnPropertySymbols==="function")for(var o=0,t=Object.getOwnPropertySymbols(n);o<t.length;o++){if(r.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(n,t[o]))e[t[o]]=n[t[o]]}return e};var R={purchase:"Purchase","zonos-checkout-payment-info":"AddPaymentInfo","zonos-checkout-start":"InitiateCheckout"};var U=function(n){var r;return(r=R[n])!==null&&r!==void 0?r:null};var Y=function(n){if(!n)return false;return Array.isArray(n.items)};var Z=function(n){if(!n)return{};if(!Y(n)){return Object.assign({},n)}var r=n.currency,e=n.items,t=n.transaction_id,o=n.value,i=N(n,["currency","items","transaction_id","value"]);var a=e.map((function(n){return{id:n.item_id,item_price:n.price,quantity:n.quantity}}));var u=e.map((function(n){return n.item_id}));var c=e.reduce((function(n,r){return n+r.quantity}),0);var s=Object.assign(Object.assign({},i),{content_ids:u,content_type:"product",contents:a,num_items:c});if(t){s.order_id=t}if(r!==undefined){s.currency=r}if(o!==undefined){s.value=o}return s};var H=function(){var n=r.checkoutSettings.analyticsProviders.find((function(n){return n.type==="FACEBOOK_PIXEL"}));return!!n&&n.status==="ENABLED"};var G=function(n,r,e){if(P()){k({event:r,fbqMode:n,payload:e,provider:"fbq"});return}if(typeof window.fbq==="function"){j("Zonos submits fbq event","log","".concat(n,":").concat(r));window.fbq(n,r,e)}};var K=function(n){var r=n.event,e=n.metadata;if(!H()){return}var t=b();var o=Z(e);var i=Object.assign(Object.assign({},o),t&&{isTestMode:true});var a=Object.fromEntries(Object.entries(i).filter((function(n){var r=n[0],e=n[1];return e!==null})));G("trackCustom",r,a);var u=U(r);if(u&&u!==r){G("track",u,a)}};var V=n("s",(function(n){g(n);K(n)}));var X=e((function(){return{intent:"capture",orderIdCreated:null,paypal:null,paypalButtons:[],paypalClientId:"",paypalErrorMessage:null}})),J=X.onChange,Q=X.reset,W=X.state;n({e:J,c:Q,a:W});var $=function(n){return __awaiter(E,[n],void 0,(function(n){var r,e,t,o,i,a,u;var c=n.checkoutSessionId;return __generator(this,(function(n){switch(n.label){case 0:t=W.intent.toUpperCase();return[4,D({checkoutSessionId:c,intent:t})];case 1:o=n.sent(),i=o.errors,a=o.json;u=(r=a===null||a===void 0?void 0:a.paypalOrderCreate)===null||r===void 0?void 0:r.paypalOrderId;if(i.length||!u){throw new Error(((e=i.find(Boolean))===null||e===void 0?void 0:e.message)||"An unexpected error occurred when creating paypal order.")}return[2,u]}}))}))};var nn=function(n){return __awaiter(E,[n],void 0,(function(n){var r,e,t,o,i,a;var u=n.checkoutSessionId,c=n.paypalMockResponse;return __generator(this,(function(n){switch(n.label){case 0:return[4,q({checkoutSessionId:u,paypalMockResponse:c})];case 1:t=n.sent(),o=t.errors,i=t.json;a=(r=i===null||i===void 0?void 0:i.paypalOrderCapture.order)===null||r===void 0?void 0:r.id;if(o.length||!a){throw new Error(((e=o.find(Boolean))===null||e===void 0?void 0:e.message)||p("An unexpected error occurred when processing PayPal order."))}return[2,a]}}))}))};var rn=function(n){var r=n.error;var e;var t=m(r.message);var o=(e=t===null||t===void 0?void 0:t.errors.find(Boolean))===null||e===void 0?void 0:e.message;var i=(o===null||o===void 0?void 0:o.match(/\[(.*?)\] (.*)/i))||[];if(!i){W.paypalErrorMessage=p("An unexpected error occurred when processing PayPal order.")}var a=i[2]||p("An unexpected error occurred when processing PayPal order.");W.paypalErrorMessage=a};var en=function(n){var e=n.checkoutSessionId,y=n.onPaypalFail,h=n.onPaypalSessionDone,b=n.overrideBorderRaidus,m=n.overridePrimaryColor;var j=m||r.appearance.colorPrimary;var P="#ffc33a";var k=_({backgroundColor1:P,backgroundColor2:j||""});return{createOrder:function(){return __awaiter(E,void 0,void 0,(function(){var n,r,b,m,_,j,P,k;return __generator(this,(function(g){switch(g.label){case 0:void t({checkoutSessionId:e,eventName:"checkout_paymentInfoCompleted",metadata:{paymentMethod:"paypal"}});return[4,o()];case 1:n=g.sent();if(!n.valid){W.paypalErrorMessage=n.errorMessage;i.hasPaymentError=false;i.customErrorMessage=null;V({event:"zonos-checkout-payment-fail",metadata:{checkoutSessionId:e}});y===null||y===void 0?void 0:y();return[2,""]}g.label=2;case 2:g.trys.push([2,12,,13]);W.paypalErrorMessage=null;a.inventoryCheckErrorMessage=null;g.label=3;case 3:g.trys.push([3,5,,6]);r=a;return[4,u()];case 4:r.inventoryCheckErrorMessage=g.sent();return[3,6];case 5:b=g.sent();a.inventoryCheckErrorMessage=p("Unable to check inventory. Please try again.");return[3,6];case 6:if(a.inventoryCheckErrorMessage){return[2,""]}m=v();if(!(m>0))return[3,8];return[4,c()];case 7:_=g.sent();if(!_.success){W.paypalErrorMessage=_.error||p("Unable to apply store credit. Please try again.");y===null||y===void 0?void 0:y();return[2,""]}g.label=8;case 8:if(!s())return[3,10];return[4,f()];case 9:j=g.sent();if(!j.success){W.paypalErrorMessage=j.error||p("Unable to place order with store credit. Please try again.");y===null||y===void 0?void 0:y();return[2,""]}h===null||h===void 0?void 0:h({orderId:j.orderId||""});d();l();return[2,""];case 10:return[4,$({checkoutSessionId:e})];case 11:P=g.sent();return[2,P];case 12:k=g.sent();w("Failed to create paypal order",k);W.paypalErrorMessage=p("Failed to create PayPal order. Please try again, or consider using an alternative method.");i.hasPaymentError=false;i.customErrorMessage=null;V({event:"zonos-checkout-payment-fail",metadata:{checkoutSessionId:e}});y===null||y===void 0?void 0:y();return[2,""];case 13:return[2]}}))}))},onApprove:function(n,r){return __awaiter(E,void 0,void 0,(function(){var n,r;return __generator(this,(function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);W.paypalErrorMessage=null;V({event:"zonos-checkout-payment-info",metadata:{checkoutSessionId:e,paymentMethod:"paypal"}});return[4,nn({checkoutSessionId:e,paypalMockResponse:window.Zonos._paypalMockResponse})];case 1:n=t.sent();W.orderIdCreated=n;h===null||h===void 0?void 0:h({orderId:n});d();l();return[3,3];case 2:r=t.sent();w("==== Failed to capture paypal order",r);if(r instanceof Error){return[2,rn({error:r})]}y===null||y===void 0?void 0:y();return[3,3];case 3:return[2]}}))}))},style:{borderRadius:b==="SHARP"?0:10,color:k?"gold":"blue",shape:"rect"}}};var tn=function(){if(!W.paypalButtons.length){return}W.paypalButtons.forEach((function(n){return __awaiter(E,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:return[4,n.close()];case 1:r.sent();return[2]}}))}))}));W.paypalButtons=[]};var on=n("b",(function(n){return __awaiter(E,[n],void 0,(function(n){var e,t,o,i,a,u;var c=n.currency;return __generator(this,(function(n){switch(n.label){case 0:t=!!((e=r.checkoutSettings.externalPaymentMethods)===null||e===void 0?void 0:e.find((function(n){return n.type==="PAYPAL"&&n.status==="ENABLED"})));if(!t){j("=== Paypal is disabled for this store","warn");return[2]}o=r.checkoutSettings.externalServiceTokens.find((function(n){return n.type==="PAYPAL_CLIENT_ID"}));if(!o){j("Failed to load paypal -- missing paypal publishable key","warn");return[2]}i=(!r.zonosMode||r.zonosMode==="production")&&r.checkoutSettings.mode==="LIVE"?"production":"sandbox";a=r.checkoutSettings.captureDelay&&r.checkoutSettings.captureDelay>0;W.intent=a?"authorize":"capture";j("==== Paypal order intent","info",W.intent);u=window.Zonos;return[4,L({clientId:o.token,currency:c,environment:i,intent:W.intent})];case 1:u.paypal=n.sent();W.paypal=window.Zonos.paypal;j("==== Paypal script loaded");return[2]}}))}))}));var an=n("d",(function(n){var r;var e=window.Zonos.paypal;if(!e){j("Paypal is not available");return null}var t=y.checkoutSessionId;if(!t){j("Paypal is not available due to checkoutSessionId is not available");return null}j("==== Loading Paypal buttons");tn();var o=[(r=e.FUNDING)===null||r===void 0?void 0:r.PAYPAL].filter(Boolean);W.paypalButtons=o.map((function(r){var o;var i=null;try{i=((o=e.Buttons)===null||o===void 0?void 0:o.call(e,Object.assign(Object.assign({},en(Object.assign({checkoutSessionId:t,fundingSource:r},n))),{fundingSource:r})))||null}catch(n){j("===== Failed to load paypal's \"".concat(r,'" button'),"warn",n)}if(i===null||i===void 0?void 0:i.isEligible()){j("==== Paypal button ".concat(r," loaded"));return i}return null})).filter(Boolean);return W.paypalButtons}));var un=n("p",(function(){var n,e;var t=((e=(n=r.checkoutSettings.externalPaymentMethods)===null||n===void 0?void 0:n.find((function(n){return n.type==="PAYPAL"})))===null||e===void 0?void 0:e.status)==="ENABLED";return t||!!W.paypalButtons.length}))}}}));
@@ -1 +1 @@
1
- System.register(["./p-7261e245.system.js","./p-15ef7644.system.js","./p-23e7c655.system.js","./p-8bce79f4.system.js","./p-d938f42f.system.js"],(function(o){"use strict";var t,e,s,n,a,l,i,r;return{setters:[function(o){t=o.r;e=o.d;s=o.h;n=o.a;a=o.g},function(o){l=o.f},function(o){i=o.c},function(o){r=o.g},function(){}],execute:function(){var d=':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{margin:1px}:host .zonos--label-wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:100%;width:100%;background:var(--zonos-elements-input-background);border-radius:var(--zonos--border-radius);border:var(--zonos-elements-border)}:host .zonos--label-wrapper:hover{border:1px solid var(--zonos-elements-gray-300)}:host .zonos--floated-input{-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;padding:0 16px;outline:none;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);width:100%;border-radius:var(--zonos--border-radius);background:var(--zonos-elements-input-background);border:0;-ms-flex-order:2;order:2;font-weight:500}:host .zonos--floated-input :-internal-autofill-selected{border-radius:var(--zonos-elements-radius-6) 0 0 var(--zonos-elements-radius-6)}:host .zonos--floated-input :-internal-autofill-selected+label+div{background-color:#e8f0fe}:host .zonos--floated-input.has-label{padding:16px 4px 8px 16px}:host .zonos--floated-input.has-label.has-input-prefix{padding-left:0}:host .zonos--floated-input.has-label.has-input-prefix+.zonos--floated-label::before{margin-left:0}:host .zonos--floated-input:not(.has-label)::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label):-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input::-webkit-input-placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::-moz-placeholder{-moz-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input:-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input:focus{outline:none}:host .zonos--floated-input:focus+.zonos--floated-label::after{-webkit-box-shadow:var(--zonos-elements-glow-blue);box-shadow:var(--zonos-elements-glow-blue)}:host .zonos--floated-input.has-error+.zonos--floated-label::after{-webkit-box-shadow:var(--zonos-elements-glow-error);box-shadow:var(--zonos-elements-glow-error)}:host .zonos--floated-input.has-content::-webkit-input-placeholder,:host .zonos--floated-input:focus::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::-moz-placeholder,:host .zonos--floated-input:focus::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content:-ms-input-placeholder,:host .zonos--floated-input:focus:-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::-ms-input-placeholder,:host .zonos--floated-input:focus::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::placeholder,:host .zonos--floated-input:focus::placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content+.zonos--floated-label::before,:host .zonos--floated-input:focus+.zonos--floated-label::before{top:11px;-webkit-transform:scale(0.8);transform:scale(0.8)}:host .zonos--floated-input:-webkit-autofill,:host .zonos--floated-input:-moz-autofill{background-color:var(--zonos-elements-input-background);color:var(--zonos-elements-text-color)}:host .zonos--floated-label{display:block;max-height:0;pointer-events:none;-ms-flex-order:1;order:1}:host .zonos--floated-label::before{content:attr(data-label);color:var(--zonos-elements-gray-800);position:absolute;font-size:var(--zonos-elements-font-size-base);line-height:var(--zonos-elements-font-size-base);display:inline-block;-webkit-filter:blur(0);filter:blur(0);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);margin-left:16px;top:calc(50% - var(--zonos-elements-font-size-base) / 2);z-index:1}:host .zonos--floated-label::after{content:"";position:absolute;left:0;right:0;top:0;bottom:0;border-radius:var(--zonos--border-radius)}:host{}:host .disabled .zonos--floated-label{pointer-events:inherit}:host .disabled .zonos--floated-label::after{cursor:not-allowed;z-index:1}:host(.sm){height:calc(var(--zonos-elements-size-sm) - 2px)}:host(.sm) .zonos--floated-input.has-label{padding-top:13px;padding-bottom:0}:host(.sm) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.sm) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:2px}:host(.md){height:calc(var(--zonos-elements-size-md) - 2px)}:host(.md) .zonos--floated-input.has-label{padding-top:20px}:host(.md) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.md) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:6px}:host(.lg){height:calc(var(--zonos-elements-size-lg) - 2px)}:host(.lg) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.lg) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:10px}:host(.xl){height:calc(var(--zonos-elements-size-xl) - 2px)}:host(.xl) .zonos--floated-input.has-label{padding-bottom:2px}';var h=d;var p=o("zonos_input",function(){function o(o){t(this,o);this.inputChange=e(this,"inputChange",7);this.inputValue="";this.inputSize="md";this.isDisabled=false;this.isError=false;this.inputPlaceholder="";this.value=this.inputValue}o.prototype.onInputValueChange=function(o){this.value=o;this.inputChange.emit(o)};o.prototype.render=function(){var o=this;return s(n,{key:"97f28cac82f273f95b6401f6b29ec35939cd3652",class:i(["zonos--input zonos--elements",this.inputSize,this.isError&&"has-error"]),style:{"--zonos--border-radius":r(),"--zonos--font-family":l()}},s("div",{key:"374a3b102e1dc4c422f6f69eb235f940c0271aab",class:i(["zonos--label-wrapper",this.isDisabled&&"disabled"])},s("input",{key:"fd0810fbbf21f53dfe890c76bd7b66b2afafeac1",class:i(["zonos--floated-input",!!this.inputLabel&&"has-label",this.inputValue&&"has-content",this.isError&&"has-error"]),disabled:this.isDisabled,onInput:function(t){var e=t.target;o.inputChange.emit(e.value)},placeholder:this.inputPlaceholder,type:"text",value:this.value}),s("label",{key:"7a1e72620a76eb4507b9b4c79f8faf73657cb789",class:"zonos--floated-label","data-label":this.inputLabel})))};Object.defineProperty(o.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{inputValue:["onInputValueChange"]}},enumerable:false,configurable:true});return o}());p.style=h}}}));
1
+ System.register(["./p-7261e245.system.js","./p-3689821f.system.js","./p-23e7c655.system.js","./p-e5dfccd8.system.js","./p-d938f42f.system.js"],(function(o){"use strict";var t,e,s,n,a,l,i,r;return{setters:[function(o){t=o.r;e=o.d;s=o.h;n=o.a;a=o.g},function(o){l=o.f},function(o){i=o.c},function(o){r=o.g},function(){}],execute:function(){var d=':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{margin:1px}:host .zonos--label-wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:100%;width:100%;background:var(--zonos-elements-input-background);border-radius:var(--zonos--border-radius);border:var(--zonos-elements-border)}:host .zonos--label-wrapper:hover{border:1px solid var(--zonos-elements-gray-300)}:host .zonos--floated-input{-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;padding:0 16px;outline:none;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);width:100%;border-radius:var(--zonos--border-radius);background:var(--zonos-elements-input-background);border:0;-ms-flex-order:2;order:2;font-weight:500}:host .zonos--floated-input :-internal-autofill-selected{border-radius:var(--zonos-elements-radius-6) 0 0 var(--zonos-elements-radius-6)}:host .zonos--floated-input :-internal-autofill-selected+label+div{background-color:#e8f0fe}:host .zonos--floated-input.has-label{padding:16px 4px 8px 16px}:host .zonos--floated-input.has-label.has-input-prefix{padding-left:0}:host .zonos--floated-input.has-label.has-input-prefix+.zonos--floated-label::before{margin-left:0}:host .zonos--floated-input:not(.has-label)::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label):-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input::-webkit-input-placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::-moz-placeholder{-moz-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input:-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input:focus{outline:none}:host .zonos--floated-input:focus+.zonos--floated-label::after{-webkit-box-shadow:var(--zonos-elements-glow-blue);box-shadow:var(--zonos-elements-glow-blue)}:host .zonos--floated-input.has-error+.zonos--floated-label::after{-webkit-box-shadow:var(--zonos-elements-glow-error);box-shadow:var(--zonos-elements-glow-error)}:host .zonos--floated-input.has-content::-webkit-input-placeholder,:host .zonos--floated-input:focus::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::-moz-placeholder,:host .zonos--floated-input:focus::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content:-ms-input-placeholder,:host .zonos--floated-input:focus:-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::-ms-input-placeholder,:host .zonos--floated-input:focus::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::placeholder,:host .zonos--floated-input:focus::placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content+.zonos--floated-label::before,:host .zonos--floated-input:focus+.zonos--floated-label::before{top:11px;-webkit-transform:scale(0.8);transform:scale(0.8)}:host .zonos--floated-input:-webkit-autofill,:host .zonos--floated-input:-moz-autofill{background-color:var(--zonos-elements-input-background);color:var(--zonos-elements-text-color)}:host .zonos--floated-label{display:block;max-height:0;pointer-events:none;-ms-flex-order:1;order:1}:host .zonos--floated-label::before{content:attr(data-label);color:var(--zonos-elements-gray-800);position:absolute;font-size:var(--zonos-elements-font-size-base);line-height:var(--zonos-elements-font-size-base);display:inline-block;-webkit-filter:blur(0);filter:blur(0);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);margin-left:16px;top:calc(50% - var(--zonos-elements-font-size-base) / 2);z-index:1}:host .zonos--floated-label::after{content:"";position:absolute;left:0;right:0;top:0;bottom:0;border-radius:var(--zonos--border-radius)}:host{}:host .disabled .zonos--floated-label{pointer-events:inherit}:host .disabled .zonos--floated-label::after{cursor:not-allowed;z-index:1}:host(.sm){height:calc(var(--zonos-elements-size-sm) - 2px)}:host(.sm) .zonos--floated-input.has-label{padding-top:13px;padding-bottom:0}:host(.sm) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.sm) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:2px}:host(.md){height:calc(var(--zonos-elements-size-md) - 2px)}:host(.md) .zonos--floated-input.has-label{padding-top:20px}:host(.md) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.md) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:6px}:host(.lg){height:calc(var(--zonos-elements-size-lg) - 2px)}:host(.lg) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.lg) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:10px}:host(.xl){height:calc(var(--zonos-elements-size-xl) - 2px)}:host(.xl) .zonos--floated-input.has-label{padding-bottom:2px}';var h=d;var p=o("zonos_input",function(){function o(o){t(this,o);this.inputChange=e(this,"inputChange",7);this.inputValue="";this.inputSize="md";this.isDisabled=false;this.isError=false;this.inputPlaceholder="";this.value=this.inputValue}o.prototype.onInputValueChange=function(o){this.value=o;this.inputChange.emit(o)};o.prototype.render=function(){var o=this;return s(n,{key:"97f28cac82f273f95b6401f6b29ec35939cd3652",class:i(["zonos--input zonos--elements",this.inputSize,this.isError&&"has-error"]),style:{"--zonos--border-radius":r(),"--zonos--font-family":l()}},s("div",{key:"374a3b102e1dc4c422f6f69eb235f940c0271aab",class:i(["zonos--label-wrapper",this.isDisabled&&"disabled"])},s("input",{key:"fd0810fbbf21f53dfe890c76bd7b66b2afafeac1",class:i(["zonos--floated-input",!!this.inputLabel&&"has-label",this.inputValue&&"has-content",this.isError&&"has-error"]),disabled:this.isDisabled,onInput:function(t){var e=t.target;o.inputChange.emit(e.value)},placeholder:this.inputPlaceholder,type:"text",value:this.value}),s("label",{key:"7a1e72620a76eb4507b9b4c79f8faf73657cb789",class:"zonos--floated-label","data-label":this.inputLabel})))};Object.defineProperty(o.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{inputValue:["onInputValueChange"]}},enumerable:false,configurable:true});return o}());p.style=h}}}));
@@ -1 +1 @@
1
- System.register(["./p-7261e245.system.js","./p-248bdea2.system.js","./p-15ef7644.system.js","./p-c9e433c0.system.js","./p-01174496.system.js","./p-d938f42f.system.js"],(function(e){"use strict";var o,t,n,s,a,l,i,c;return{setters:[function(e){o=e.r;t=e.h;n=e.a},function(e){s=e.u;a=e.t;l=e.l},function(e){i=e.f},function(e){c=e.l},function(){},function(){}],execute:function(){var r='<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M7.99996 2.6665C5.05444 2.6665 2.66663 5.05432 2.66663 7.99984C2.66663 10.9454 5.05444 13.3332 7.99996 13.3332C10.9455 13.3332 13.3333 10.9454 13.3333 7.99984C13.3333 5.05432 10.9455 2.6665 7.99996 2.6665Z" fill="#AFF8C3"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M10.1403 6.10535C10.3582 6.27488 10.3975 6.58902 10.228 6.80699L8.01055 9.65797C7.76436 9.97449 7.29646 10.0036 7.01291 9.72008L5.81307 8.52024C5.61781 8.32498 5.61781 8.0084 5.81307 7.81314C6.00833 7.61787 6.32492 7.61787 6.52018 7.81314L7.45301 8.74597L9.43862 6.19305C9.60815 5.97508 9.92229 5.93581 10.1403 6.10535Z" fill="#246627"/>\n</svg>\n';var d=":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 .zonos--language-select{width:100%}:host .zonos--language-select .zonos--language-select-content{display:grid;grid-template-columns:repeat(3, minmax(-webkit-max-content, 1fr));grid-template-columns:repeat(3, minmax(max-content, 1fr));padding:16px;padding-top:0px}:host .zonos--language-select .zonos--language-select-content .zonos--language-select-button{display:-ms-flexbox;display:flex;padding:8px;gap:4px;-ms-flex-align:center;align-items:center;border-radius:var(--zonos-elements-radius-4);cursor:pointer;width:100%;border:none;background:none}:host .zonos--language-select .zonos--language-select-content .zonos--language-select-button:hover{background:var(--zonos-elements-gray-100)}@media (max-width: 400px){:host .zonos--language-select .zonos--language-select-content{grid-template-columns:1fr 1fr}}";var f=d;var h=e("zonos_language_select",function(){function e(e){var t=this;o(this,e);this.handleOnClose=function(){};this.languageSelected=function(e){void s(e);t.handleOnClose()}}e.prototype.render=function(){var e=this;var o=l.selectedLocale;return t(n,{key:"ebe7e47d37019b9aa6e2a5ed77d9c82c71b3fa6c",class:"zonos--elements",style:{"--zonos--font-family":i()}},t("div",{key:"532b2664add5948ae9687049afc1fdaed8cc0890",class:"zonos--language-select"},t("zonos-select-dialog-header",{key:"650adad0103c42f27e98bb3c2c6c8e2a122339df",handleOnClose:function(){return e.handleOnClose()},label:a("Select a language")}),t("div",{key:"84af0288f9911d4739c93388723230b165466908",class:"zonos--language-select-content"},c.map((function(n){return t("button",{class:"zonos--language-select-button",onClick:function(){return e.languageSelected(n.code)}},t("zonos-text",{textColor:"gray-800"},n.translatedLabel),n.code===o&&t("zonos-icon",{content:r,size:16}))})))))};return e}());h.style=f;var g='<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>';var u=":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 .zonos--select-dialog-header-wrapper{position:-webkit-sticky;position:sticky;top:0;background:var(--zonos-elements-surface-color);padding:16px}:host .zonos--select-dialog-header-wrapper .zonos--select-dialog-header{position:relative;-ms-flex-pack:justify;justify-content:space-between;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}";var p=u;var m=e("zonos_select_dialog_header",function(){function e(e){o(this,e);this.handleOnClose=function(){};this.label=""}e.prototype.render=function(){var e=this;return t(n,{key:"6a667ac343eccf7298cbca49b58ccbca0ca6509d",class:"zonos--elements",style:{"--zonos--font-family":i()}},t("zonos-v-stack",{key:"4f3958ab4700f1f6d1bfff92cf3c5593c97c536e",class:"zonos--select-dialog-header-wrapper",spacing:8},t("div",{key:"44d690590c6727b7d17ea96967a6929ea5d60a51",class:"zonos--select-dialog-header"},t("zonos-text",{key:"cd45b4d292f3487a442510918afe7c828cbdb939",type:"boldLabel"},this.label),t("zonos-button",{key:"43e7887d8f11185ec7d6ff0895f922e8a5719865",class:"zonos--close-button",icon:t("zonos-icon",{"aria-label":"Close select dialog",content:g,size:20}),noBackground:true,onClick:function(){return e.handleOnClose()}})),t("slot",{key:"2c6e66b98bfbc8d4c3fd1d8459d703a8006324d3"})))};return e}());m.style=p}}}));
1
+ System.register(["./p-7261e245.system.js","./p-5496e9ae.system.js","./p-3689821f.system.js","./p-c9e433c0.system.js","./p-01174496.system.js","./p-d938f42f.system.js"],(function(e){"use strict";var o,t,n,s,a,l,i,c;return{setters:[function(e){o=e.r;t=e.h;n=e.a},function(e){s=e.u;a=e.t;l=e.l},function(e){i=e.f},function(e){c=e.l},function(){},function(){}],execute:function(){var r='<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M7.99996 2.6665C5.05444 2.6665 2.66663 5.05432 2.66663 7.99984C2.66663 10.9454 5.05444 13.3332 7.99996 13.3332C10.9455 13.3332 13.3333 10.9454 13.3333 7.99984C13.3333 5.05432 10.9455 2.6665 7.99996 2.6665Z" fill="#AFF8C3"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M10.1403 6.10535C10.3582 6.27488 10.3975 6.58902 10.228 6.80699L8.01055 9.65797C7.76436 9.97449 7.29646 10.0036 7.01291 9.72008L5.81307 8.52024C5.61781 8.32498 5.61781 8.0084 5.81307 7.81314C6.00833 7.61787 6.32492 7.61787 6.52018 7.81314L7.45301 8.74597L9.43862 6.19305C9.60815 5.97508 9.92229 5.93581 10.1403 6.10535Z" fill="#246627"/>\n</svg>\n';var d=":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 .zonos--language-select{width:100%}:host .zonos--language-select .zonos--language-select-content{display:grid;grid-template-columns:repeat(3, minmax(-webkit-max-content, 1fr));grid-template-columns:repeat(3, minmax(max-content, 1fr));padding:16px;padding-top:0px}:host .zonos--language-select .zonos--language-select-content .zonos--language-select-button{display:-ms-flexbox;display:flex;padding:8px;gap:4px;-ms-flex-align:center;align-items:center;border-radius:var(--zonos-elements-radius-4);cursor:pointer;width:100%;border:none;background:none}:host .zonos--language-select .zonos--language-select-content .zonos--language-select-button:hover{background:var(--zonos-elements-gray-100)}@media (max-width: 400px){:host .zonos--language-select .zonos--language-select-content{grid-template-columns:1fr 1fr}}";var f=d;var h=e("zonos_language_select",function(){function e(e){var t=this;o(this,e);this.handleOnClose=function(){};this.languageSelected=function(e){void s(e);t.handleOnClose()}}e.prototype.render=function(){var e=this;var o=l.selectedLocale;return t(n,{key:"ebe7e47d37019b9aa6e2a5ed77d9c82c71b3fa6c",class:"zonos--elements",style:{"--zonos--font-family":i()}},t("div",{key:"532b2664add5948ae9687049afc1fdaed8cc0890",class:"zonos--language-select"},t("zonos-select-dialog-header",{key:"650adad0103c42f27e98bb3c2c6c8e2a122339df",handleOnClose:function(){return e.handleOnClose()},label:a("Select a language")}),t("div",{key:"84af0288f9911d4739c93388723230b165466908",class:"zonos--language-select-content"},c.map((function(n){return t("button",{class:"zonos--language-select-button",onClick:function(){return e.languageSelected(n.code)}},t("zonos-text",{textColor:"gray-800"},n.translatedLabel),n.code===o&&t("zonos-icon",{content:r,size:16}))})))))};return e}());h.style=f;var g='<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>';var u=":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 .zonos--select-dialog-header-wrapper{position:-webkit-sticky;position:sticky;top:0;background:var(--zonos-elements-surface-color);padding:16px}:host .zonos--select-dialog-header-wrapper .zonos--select-dialog-header{position:relative;-ms-flex-pack:justify;justify-content:space-between;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}";var p=u;var m=e("zonos_select_dialog_header",function(){function e(e){o(this,e);this.handleOnClose=function(){};this.label=""}e.prototype.render=function(){var e=this;return t(n,{key:"6a667ac343eccf7298cbca49b58ccbca0ca6509d",class:"zonos--elements",style:{"--zonos--font-family":i()}},t("zonos-v-stack",{key:"4f3958ab4700f1f6d1bfff92cf3c5593c97c536e",class:"zonos--select-dialog-header-wrapper",spacing:8},t("div",{key:"44d690590c6727b7d17ea96967a6929ea5d60a51",class:"zonos--select-dialog-header"},t("zonos-text",{key:"cd45b4d292f3487a442510918afe7c828cbdb939",type:"boldLabel"},this.label),t("zonos-button",{key:"43e7887d8f11185ec7d6ff0895f922e8a5719865",class:"zonos--close-button",icon:t("zonos-icon",{"aria-label":"Close select dialog",content:g,size:20}),noBackground:true,onClick:function(){return e.handleOnClose()}})),t("slot",{key:"2c6e66b98bfbc8d4c3fd1d8459d703a8006324d3"})))};return e}());m.style=p}}}));
@@ -1 +1 @@
1
- import{r as o,h as s,a as t,g as i}from"./p-ce75b047.js";import{l as a}from"./p-a75b8ad7.js";import{f as e}from"./p-ed9385f4.js";import{c as n}from"./p-b4b7f705.js";import"./p-41dd1cb8.js";import"./p-0a377722.js";const h=class{constructor(s){o(this,s),this.countryCode=a.selectedCountryCode}render(){if(!this.el.shadowRoot||!this.countryCode)return null;const o=`https://zonos-store-assets.s3.amazonaws.com/images/elements-flags/${this.countryCode}.svg`,i=e();return s(t,{class:"zonos--elements",style:this.size?{"--zonos--font-family":i,height:`${this.size}px`,width:`${this.size}px`}:{"--zonos--font-family":i}},s("div",{class:n(["flag-container"])},s("div",{class:"flag-icon",style:{backgroundImage:`url(${o})`}})))}get el(){return i(this)}};h.style=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host .flag-container{position:relative;overflow:hidden;width:100%;height:100%}:host .flag-icon{position:absolute;top:0;left:0;width:100%;height:100%;background-position:center;background-repeat:no-repeat;background-size:cover}";export{h as zonos_country_flag}
1
+ import{r as o,h as s,a as t,g as i}from"./p-ce75b047.js";import{l as a}from"./p-356b2068.js";import{f as n}from"./p-f3cfd8fa.js";import{c as e}from"./p-b4b7f705.js";import"./p-41dd1cb8.js";import"./p-0a377722.js";const h=class{constructor(s){o(this,s),this.countryCode=a.selectedCountryCode}render(){if(!this.el.shadowRoot||!this.countryCode)return null;const o=`https://zonos-store-assets.s3.amazonaws.com/images/elements-flags/${this.countryCode}.svg`,i=n();return s(t,{class:"zonos--elements",style:this.size?{"--zonos--font-family":i,height:`${this.size}px`,width:`${this.size}px`}:{"--zonos--font-family":i}},s("div",{class:e(["flag-container"])},s("div",{class:"flag-icon",style:{backgroundImage:`url(${o})`}})))}get el(){return i(this)}};h.style=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host .flag-container{position:relative;overflow:hidden;width:100%;height:100%}:host .flag-icon{position:absolute;top:0;left:0;width:100%;height:100%;background-position:center;background-repeat:no-repeat;background-size:cover}";export{h as zonos_country_flag}