@zonos/elements 1.3.7-alpha.0 → 1.3.7

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 (286) hide show
  1. package/dist/cjs/{cart-ecc80eb0.js → cart-eee85bda.js} +145 -100
  2. package/dist/cjs/formatStringWithLinks-52341fc7.js +17 -0
  3. package/dist/cjs/{getBorderRadius-834c321d.js → getBorderRadius-d8f18958.js} +1 -1
  4. package/dist/cjs/{isDarkColor-924e6a7a.js → isDarkColor-57860b44.js} +1 -1
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/submitGtag-a2e1f652.js +55 -0
  7. package/dist/cjs/zonos-address_4.cjs.entry.js +21 -16
  8. package/dist/cjs/zonos-badge_2.cjs.entry.js +6 -6
  9. package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
  10. package/dist/cjs/zonos-button_3.cjs.entry.js +8 -8
  11. package/dist/cjs/zonos-card_2.cjs.entry.js +8 -8
  12. package/dist/cjs/zonos-cart-items_9.cjs.entry.js +35 -33
  13. package/dist/cjs/zonos-checkout.cjs.entry.js +159 -23
  14. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  15. package/dist/cjs/zonos-controller.cjs.entry.js +28 -9
  16. package/dist/cjs/zonos-country-flag.cjs.entry.js +4 -4
  17. package/dist/cjs/zonos-country-select_3.cjs.entry.js +18 -10
  18. package/dist/cjs/zonos-elements.cjs.js +1 -1
  19. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +9 -7
  20. package/dist/cjs/zonos-hello.cjs.entry.js +25 -11
  21. package/dist/cjs/zonos-link.cjs.entry.js +24 -0
  22. package/dist/cjs/zonos-logo.cjs.entry.js +3 -3
  23. package/dist/cjs/zonos-notification.cjs.entry.js +1 -1
  24. package/dist/cjs/zonos-payment.cjs.entry.js +6 -7
  25. package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +5 -5
  26. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
  27. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  28. package/dist/cjs/{zonosStore-49d4c92a.js → zonosStore-138c5555.js} +5 -3
  29. package/dist/collection/collection-manifest.json +1 -0
  30. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +1 -6
  31. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +19 -10
  32. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +3 -0
  33. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +41 -20
  34. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +3 -0
  35. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +2 -0
  36. package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +1 -6
  37. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +3 -0
  38. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +5 -0
  39. package/dist/collection/components/common/component-template/zonos-link/zonos-link.css +54 -0
  40. package/dist/collection/components/common/component-template/zonos-link/zonos-link.js +97 -0
  41. package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
  42. package/dist/collection/components/common/zonos-button/zonos-button.css +2 -0
  43. package/dist/collection/components/common/zonos-button/zonos-button.js +4 -4
  44. package/dist/collection/components/common/zonos-card/zonos-card.js +2 -2
  45. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  46. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +13 -6
  47. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +8 -2
  48. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +4 -2
  49. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  50. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  51. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  52. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  53. package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +1 -1
  54. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  55. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  56. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  57. package/dist/collection/components/hello/zonos-hello/zonos-hello.js +52 -13
  58. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  59. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +5 -3
  60. package/dist/collection/components/main/zonos-controller.js +1 -2
  61. package/dist/collection/components/store/checkout/cart.js +2 -2
  62. package/dist/collection/components/store/checkout/stripe.js +26 -4
  63. package/dist/collection/components/store/hello/localization.js +7 -6
  64. package/dist/collection/components/store/zonosStore.js +5 -3
  65. package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
  66. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +3 -3
  67. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +3 -3
  68. package/dist/collection/components/utils/api/getLocaleMessages.js +2 -2
  69. package/dist/collection/components/utils/api/trackConversionEvent.js +22 -0
  70. package/dist/collection/components/utils/checkout/isShippableCountry.js +15 -0
  71. package/dist/collection/components/utils/checkout/watchBigcommerceDomesticCheckout.js +111 -0
  72. package/dist/collection/components/utils/formatStringWithLinks.js +13 -0
  73. package/dist/collection/components/utils/handleFetch.js +1 -1
  74. package/dist/collection/components/utils/hello/currencyConversion/defaultCurrencyConverter.js +25 -28
  75. package/dist/collection/components/utils/hello/currencyConversion/getCurrencyElements.js +2 -3
  76. package/dist/collection/components/utils/hello/currencyConversion/getInitialElementAmount.js +8 -6
  77. package/dist/collection/components/utils/hello/initHello.js +23 -3
  78. package/dist/collection/components/utils/logging/log.js +19 -14
  79. package/dist/collection/components/utils/logging/logError.js +2 -2
  80. package/dist/collection/components/utils/logging/sendErrorLog.js +12 -0
  81. package/dist/collection/scripts/checkIfLoadVersionDomain.js +35 -0
  82. package/dist/collection/scripts/zonosBase.js +21 -34
  83. package/dist/collection/styles/stripe/addressRuleStyle.js +4 -0
  84. package/dist/collection/types/generated/graphql.customer.types.js +1 -4
  85. package/dist/collection/types/generated/graphql.frontend.types.js +3 -0
  86. package/dist/components/stripe.js +140 -98
  87. package/dist/components/trackConversionEvent.js +24 -0
  88. package/dist/components/zonos-address2.js +1 -1
  89. package/dist/components/zonos-badge2.js +3 -3
  90. package/dist/components/zonos-button2.js +5 -5
  91. package/dist/components/zonos-card2.js +2 -2
  92. package/dist/components/zonos-cart-subtotal2.js +1 -6
  93. package/dist/components/zonos-checkbox2.js +3 -3
  94. package/dist/components/zonos-checkout-finish2.js +32 -12
  95. package/dist/components/zonos-checkout-payment2.js +1 -1
  96. package/dist/components/zonos-checkout.js +158 -20
  97. package/dist/components/zonos-collapse2.js +13 -6
  98. package/dist/components/zonos-component.js +1 -1
  99. package/dist/components/zonos-controller.js +25 -6
  100. package/dist/components/zonos-country-select2.js +9 -3
  101. package/dist/components/zonos-custom-message2.js +18 -3
  102. package/dist/components/zonos-customer-info2.js +3 -1
  103. package/dist/components/zonos-dialog2.js +3 -3
  104. package/dist/components/zonos-hello-dialog-footer2.js +2 -2
  105. package/dist/components/zonos-hello-dialog2.js +6 -5
  106. package/dist/components/zonos-hello.js +24 -9
  107. package/dist/components/zonos-language-select2.js +3 -3
  108. package/dist/components/zonos-link-authentication2.js +3 -4
  109. package/dist/components/zonos-link.d.ts +11 -0
  110. package/dist/components/zonos-link.js +43 -0
  111. package/dist/components/zonos-logo.js +2 -2
  112. package/dist/components/zonos-payment2.js +3 -4
  113. package/dist/components/zonos-review2.js +1 -6
  114. package/dist/components/zonos-select-dialog-header2.js +2 -2
  115. package/dist/components/zonos-shipping-rich-radio2.js +1 -1
  116. package/dist/components/zonos-shipping2.js +7 -2
  117. package/dist/components/zonos-tooltip2.js +2 -2
  118. package/dist/components/zonos-v-stack2.js +2 -2
  119. package/dist/components/zonosStore.js +5 -3
  120. package/dist/esm/{cart-2a0a6871.js → cart-e261efc1.js} +143 -101
  121. package/dist/esm/formatStringWithLinks-9e819405.js +15 -0
  122. package/dist/esm/{getBorderRadius-0c7dfcf0.js → getBorderRadius-19787feb.js} +1 -1
  123. package/dist/esm/{isDarkColor-d0a57fd2.js → isDarkColor-2344e7a5.js} +1 -1
  124. package/dist/esm/loader.js +1 -1
  125. package/dist/esm/submitGtag-dfc6f1dc.js +51 -0
  126. package/dist/esm/zonos-address_4.entry.js +21 -16
  127. package/dist/esm/zonos-badge_2.entry.js +6 -6
  128. package/dist/esm/zonos-banner.entry.js +1 -1
  129. package/dist/esm/zonos-button_3.entry.js +8 -8
  130. package/dist/esm/zonos-card_2.entry.js +8 -8
  131. package/dist/esm/zonos-cart-items_9.entry.js +35 -33
  132. package/dist/esm/zonos-checkout.entry.js +159 -23
  133. package/dist/esm/zonos-component.entry.js +1 -1
  134. package/dist/esm/zonos-controller.entry.js +28 -9
  135. package/dist/esm/zonos-country-flag.entry.js +4 -4
  136. package/dist/esm/zonos-country-select_3.entry.js +19 -11
  137. package/dist/esm/zonos-elements.js +1 -1
  138. package/dist/esm/zonos-hello-dialog.entry.js +9 -7
  139. package/dist/esm/zonos-hello.entry.js +25 -11
  140. package/dist/esm/zonos-link.entry.js +20 -0
  141. package/dist/esm/zonos-logo.entry.js +3 -3
  142. package/dist/esm/zonos-notification.entry.js +1 -1
  143. package/dist/esm/zonos-payment.entry.js +6 -7
  144. package/dist/esm/zonos-select-dialog-header_2.entry.js +5 -5
  145. package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
  146. package/dist/esm/zonos-text.entry.js +1 -1
  147. package/dist/esm/{zonosStore-dec6bd7e.js → zonosStore-00bce01b.js} +5 -3
  148. package/dist/esm-es5/{cart-2a0a6871.js → cart-e261efc1.js} +1 -1
  149. package/dist/esm-es5/formatStringWithLinks-9e819405.js +1 -0
  150. package/dist/esm-es5/{getBorderRadius-0c7dfcf0.js → getBorderRadius-19787feb.js} +1 -1
  151. package/dist/esm-es5/{isDarkColor-d0a57fd2.js → isDarkColor-2344e7a5.js} +1 -1
  152. package/dist/esm-es5/loader.js +1 -1
  153. package/dist/esm-es5/submitGtag-dfc6f1dc.js +1 -0
  154. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  155. package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
  156. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  157. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  158. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  159. package/dist/esm-es5/zonos-cart-items_9.entry.js +1 -1
  160. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  161. package/dist/esm-es5/zonos-component.entry.js +1 -1
  162. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  163. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  164. package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
  165. package/dist/esm-es5/zonos-elements.js +1 -1
  166. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  167. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  168. package/dist/esm-es5/zonos-link.entry.js +1 -0
  169. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  170. package/dist/esm-es5/zonos-notification.entry.js +1 -1
  171. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  172. package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -1
  173. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  174. package/dist/esm-es5/zonos-text.entry.js +1 -1
  175. package/dist/esm-es5/{zonosStore-dec6bd7e.js → zonosStore-00bce01b.js} +1 -1
  176. package/dist/scripts/checkIfLoadVersionDomain.js +1 -0
  177. package/dist/scripts/loadStripe.js +1 -1
  178. package/dist/scripts/loadZonos.js +1 -1
  179. package/dist/scripts/stripe.js +1 -1
  180. package/dist/scripts/zonos.js +1 -1
  181. package/dist/scripts/zonosBase.js +1 -1
  182. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +1 -1
  183. package/dist/types/components/common/component-template/zonos-link/zonos-link.d.ts +19 -0
  184. package/dist/types/components/common/zonos-collapse/zonos-collapse.d.ts +1 -0
  185. package/dist/types/components/common/zonos-country-select/zonos-country-select.d.ts +2 -0
  186. package/dist/types/components/hello/zonos-hello/zonos-hello.d.ts +9 -3
  187. package/dist/types/components/store/checkout/cart.d.ts +6 -3
  188. package/dist/types/components/store/checkout/stripe.d.ts +22 -1
  189. package/dist/types/components/store/hello/localization.d.ts +2 -3
  190. package/dist/types/components/store/zonosStore.d.ts +1 -0
  191. package/dist/types/components/utils/api/trackConversionEvent.d.ts +3 -0
  192. package/dist/types/components/utils/checkout/isShippableCountry.d.ts +1 -0
  193. package/dist/types/components/utils/checkout/watchBigcommerceDomesticCheckout.d.ts +20 -0
  194. package/dist/types/components/utils/formatStringWithLinks.d.ts +1 -0
  195. package/dist/types/components/utils/hello/currencyConversion/getCurrencyElements.d.ts +1 -1
  196. package/dist/types/components/utils/logging/log.d.ts +1 -1
  197. package/dist/types/components/utils/logging/sendErrorLog.d.ts +7 -0
  198. package/dist/types/components.d.ts +53 -3
  199. package/dist/types/scripts/checkIfLoadVersionDomain.d.ts +13 -0
  200. package/dist/types/scripts/zonosBase.d.ts +2 -0
  201. package/dist/types/types/checkout/CheckoutConfig.d.ts +1 -1
  202. package/dist/types/types/generated/graphql.customer.types.d.ts +8 -53
  203. package/dist/types/types/generated/graphql.customer.types.ts +18 -62
  204. package/dist/types/types/generated/graphql.frontend.types.d.ts +8 -0
  205. package/dist/types/types/generated/graphql.frontend.types.ts +18 -0
  206. package/dist/zonos-elements/p-066c5893.system.js +1 -1
  207. package/dist/zonos-elements/p-07966463.entry.js +1 -0
  208. package/dist/zonos-elements/p-0c0aa552.js +1 -0
  209. package/dist/zonos-elements/{p-dfd3edcf.entry.js → p-0c91720b.entry.js} +1 -1
  210. package/dist/zonos-elements/p-1119dddf.system.entry.js +1 -0
  211. package/dist/zonos-elements/p-127b480c.entry.js +1 -0
  212. package/dist/zonos-elements/{p-e855966f.system.entry.js → p-143dc0d9.system.entry.js} +1 -1
  213. package/dist/zonos-elements/p-14c3ef38.entry.js +1 -0
  214. package/dist/zonos-elements/{p-55970b10.system.entry.js → p-14d27ce1.system.entry.js} +1 -1
  215. package/dist/zonos-elements/{p-7d1d862f.system.entry.js → p-165d469e.system.entry.js} +1 -1
  216. package/dist/zonos-elements/p-17e87be1.entry.js +1 -0
  217. package/dist/zonos-elements/{p-a95c034c.entry.js → p-1e0dd491.entry.js} +1 -1
  218. package/dist/zonos-elements/{p-34efed1d.entry.js → p-279d1c5f.entry.js} +1 -1
  219. package/dist/zonos-elements/p-2d6557ee.system.js +1 -0
  220. package/dist/zonos-elements/p-314be538.system.entry.js +1 -0
  221. package/dist/zonos-elements/{p-79b910bf.system.entry.js → p-328b7f6f.system.entry.js} +1 -1
  222. package/dist/zonos-elements/p-354603b3.system.entry.js +1 -0
  223. package/dist/zonos-elements/{p-1f85a98c.system.entry.js → p-389599d3.system.entry.js} +1 -1
  224. package/dist/zonos-elements/p-3a1e685f.entry.js +1 -0
  225. package/dist/zonos-elements/{p-a219689f.entry.js → p-3b23e462.entry.js} +1 -1
  226. package/dist/zonos-elements/{p-591eb6dd.system.js → p-49f6a985.system.js} +1 -1
  227. package/dist/zonos-elements/p-4fb77a38.system.entry.js +1 -0
  228. package/dist/zonos-elements/{p-5b44abc8.system.js → p-5496951a.system.js} +1 -1
  229. package/dist/zonos-elements/{p-06652d87.system.entry.js → p-58e2f6a1.system.entry.js} +1 -1
  230. package/dist/zonos-elements/{p-cc63a29f.system.entry.js → p-5c176b23.system.entry.js} +1 -1
  231. package/dist/zonos-elements/p-5d9a000a.system.entry.js +1 -0
  232. package/dist/zonos-elements/p-5f4ba44c.entry.js +1 -0
  233. package/dist/zonos-elements/{p-88a55076.system.entry.js → p-61e5cf29.system.entry.js} +1 -1
  234. package/dist/zonos-elements/p-69e2c59e.entry.js +1 -0
  235. package/dist/zonos-elements/p-745cd869.system.entry.js +1 -0
  236. package/dist/zonos-elements/p-78ba2928.system.js +1 -0
  237. package/dist/zonos-elements/{p-67737613.system.entry.js → p-799d8a17.system.entry.js} +1 -1
  238. package/dist/zonos-elements/{p-375c472a.system.entry.js → p-79b24786.system.entry.js} +1 -1
  239. package/dist/zonos-elements/p-7b87b82f.js +1 -0
  240. package/dist/zonos-elements/{p-e2770968.system.entry.js → p-7c45ce37.system.entry.js} +1 -1
  241. package/dist/zonos-elements/p-7f4f45b3.entry.js +1 -0
  242. package/dist/zonos-elements/{p-2d2e1831.entry.js → p-857cfe35.entry.js} +1 -1
  243. package/dist/zonos-elements/{p-ec4d08b3.system.js → p-91797d4e.system.js} +1 -1
  244. package/dist/zonos-elements/{p-34c03be2.js → p-95e0fc06.js} +1 -1
  245. package/dist/zonos-elements/p-9e6b489d.system.entry.js +1 -0
  246. package/dist/zonos-elements/p-9f4e02a1.entry.js +1 -0
  247. package/dist/zonos-elements/{p-afe40057.entry.js → p-a3cc0f84.entry.js} +1 -1
  248. package/dist/zonos-elements/p-a87561b8.js +1 -0
  249. package/dist/zonos-elements/{p-e161a08c.entry.js → p-ac0a7b8f.entry.js} +1 -1
  250. package/dist/zonos-elements/{p-549c181b.system.js → p-b4725505.system.js} +1 -1
  251. package/dist/zonos-elements/p-c060d475.js +1 -0
  252. package/dist/zonos-elements/p-c2e58ee1.system.entry.js +1 -0
  253. package/dist/zonos-elements/{p-9878a770.js → p-da767f8b.js} +1 -1
  254. package/dist/zonos-elements/p-dd9e8589.entry.js +1 -0
  255. package/dist/zonos-elements/p-f11a3d9e.entry.js +1 -0
  256. package/dist/zonos-elements/{p-8aeb4679.system.entry.js → p-f6eaef7b.system.entry.js} +1 -1
  257. package/dist/zonos-elements/{p-c7098c3b.entry.js → p-f7c36fcc.entry.js} +1 -1
  258. package/dist/zonos-elements/{p-a4de3fb2.entry.js → p-ff64ddc5.entry.js} +1 -1
  259. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  260. package/package.json +1 -1
  261. package/dist/cjs/submitGtag-907e71d3.js +0 -21
  262. package/dist/collection/scripts/extractZonosQaUrl.js +0 -26
  263. package/dist/esm/submitGtag-a38aed23.js +0 -19
  264. package/dist/esm-es5/submitGtag-a38aed23.js +0 -1
  265. package/dist/types/scripts/extractZonosQaUrl.d.ts +0 -11
  266. package/dist/zonos-elements/p-0057e374.entry.js +0 -1
  267. package/dist/zonos-elements/p-0c72fb79.system.entry.js +0 -1
  268. package/dist/zonos-elements/p-290c3670.entry.js +0 -1
  269. package/dist/zonos-elements/p-2f1e1cbb.system.entry.js +0 -1
  270. package/dist/zonos-elements/p-33080cde.system.entry.js +0 -1
  271. package/dist/zonos-elements/p-561e44d6.entry.js +0 -1
  272. package/dist/zonos-elements/p-5c4dc123.js +0 -1
  273. package/dist/zonos-elements/p-656c836b.entry.js +0 -1
  274. package/dist/zonos-elements/p-8d645a00.entry.js +0 -1
  275. package/dist/zonos-elements/p-a3d72a33.entry.js +0 -1
  276. package/dist/zonos-elements/p-a93c594f.entry.js +0 -1
  277. package/dist/zonos-elements/p-b10ff468.entry.js +0 -1
  278. package/dist/zonos-elements/p-b6992dc2.system.entry.js +0 -1
  279. package/dist/zonos-elements/p-bce46c41.js +0 -1
  280. package/dist/zonos-elements/p-c56d4a44.entry.js +0 -1
  281. package/dist/zonos-elements/p-cbb1e700.system.js +0 -1
  282. package/dist/zonos-elements/p-cd8bd5e9.system.entry.js +0 -1
  283. package/dist/zonos-elements/p-d36faf87.system.entry.js +0 -1
  284. package/dist/zonos-elements/p-e2c6ad57.entry.js +0 -1
  285. package/dist/zonos-elements/p-ea93943a.system.entry.js +0 -1
  286. package/dist/zonos-elements/p-f455e08c.js +0 -1
@@ -39,6 +39,20 @@ type StripeStore = {
39
39
  stripeShippingSameAsBilling: boolean;
40
40
  };
41
41
  declare const stripeStore: StripeStore;
42
+ export type DomesticShippingSession = {
43
+ address1: string;
44
+ address2: string;
45
+ city: string;
46
+ countryCode: string;
47
+ firstName: string;
48
+ lastName: string;
49
+ phone: string;
50
+ postalCode: string;
51
+ state: string;
52
+ };
53
+ declare const stripeStoreCleanupDomesticShippingSession: () => void;
54
+ declare const stripeStoreSaveDomesticShippingSession: (props: DomesticShippingSession) => void;
55
+ declare const stripeStoreGetDomesticShippingSession: () => DomesticShippingSession | null;
42
56
  declare const initStripeElements: (props?: {
43
57
  overrideBorderRaidus?: ElementsUiStyle;
44
58
  overridePrimaryColor?: string;
@@ -54,10 +68,17 @@ declare const stripeStoreRetrievePayment: ({ clientSecret: _clientSecret, storyb
54
68
  error: boolean;
55
69
  messages: string[];
56
70
  message?: undefined;
71
+ paymentMethod?: undefined;
57
72
  } | {
58
73
  error: boolean;
59
74
  message: string[];
60
75
  messages?: undefined;
76
+ paymentMethod?: undefined;
77
+ } | {
78
+ error: boolean;
79
+ messages: string[];
80
+ paymentMethod: string | import("@stripe/stripe-js").PaymentMethod | null | undefined;
81
+ message?: undefined;
61
82
  }>;
62
83
  declare const stripeStoreConfirmPayment: () => Promise<void>;
63
84
  /**
@@ -83,4 +104,4 @@ declare const stripeStoreUpdateCheckoutSession: ({ currency, id, itemsAmount, la
83
104
  errors: import("../../..").JsonError[];
84
105
  json: CheckoutSessionUpdateMutation | null;
85
106
  }>;
86
- export { initStripeElements, stripeStore, stripeStoreConfirmPayment, stripeStoreInitCheckoutSession, stripeStorePrefetchLandedCost, stripeStoreReset, stripeStoreRetrievePayment, stripeStoreUpdateCheckoutSession, };
107
+ export { initStripeElements, stripeStore, stripeStoreCleanupDomesticShippingSession, stripeStoreConfirmPayment, stripeStoreGetDomesticShippingSession, stripeStoreInitCheckoutSession, stripeStorePrefetchLandedCost, stripeStoreReset, stripeStoreRetrievePayment, stripeStoreSaveDomesticShippingSession, stripeStoreUpdateCheckoutSession, };
@@ -1,8 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import { type CountryLandedCost } from "../../utils/api/getCountryLandedCost";
3
3
  import { type TargetFormat } from "../../utils/api/getExchangeRate";
4
- import type { CountryCode } from "../../../types/index";
5
- import type { CurrencyCode } from "../../../types/generated/graphql.customer.types";
4
+ import type { CountryCode, CurrencyCode } from "../../../types/generated/graphql.customer.types";
6
5
  import type { Locale_ElementsSupportedLocationCode_Enum, Locale_PageName_Enum } from "../../../types/generated/graphql.frontend.types";
7
6
  import type { ICountryJson } from "../../../types/ICountryJson";
8
7
  export type ExchangeRateForUse = {
@@ -27,7 +26,7 @@ type ILocaleMessageForUse = {
27
26
  pageName: Locale_PageName_Enum;
28
27
  };
29
28
  declare const localizationStore: LocalizationStore;
30
- declare const localizationStoreUpdateSelectedCountryCode: (newSelectedCountryCode: CountryCode | null) => Promise<void>;
29
+ declare const localizationStoreUpdateSelectedCountryCode: (newSelectedCountryCode: CountryCode | null) => void;
31
30
  declare const initLocalizationStore: () => Promise<void>;
32
31
  declare const localizationStoreUpdateSelectedLocale: (newSelectedLocale: Locale_ElementsSupportedLocationCode_Enum) => void;
33
32
  export { initLocalizationStore, localizationStore, localizationStoreUpdateSelectedCountryCode, localizationStoreUpdateSelectedLocale, };
@@ -17,6 +17,7 @@ export type ZonosConfig = {
17
17
  currencyConverter?: CurrencyConverter;
18
18
  currentHelloPage: Page | '';
19
19
  helloSettings: HelloConfig;
20
+ organizationId: string;
20
21
  organizationName: string;
21
22
  sourceCurrency: string;
22
23
  storeId: number | null;
@@ -0,0 +1,3 @@
1
+ type ConversionEvent = 'checkout_open' | 'checkout_customerInfoCompleted' | 'checkout_shippingInfoCompleted' | 'checkout_paymentInfoCompleted' | 'checkout_orderCompleted';
2
+ export declare const trackConversionEvent: (eventName: ConversionEvent, metadata?: Record<string, unknown>) => Promise<void>;
3
+ export {};
@@ -0,0 +1 @@
1
+ export declare const isShippableCountry: (showLog?: boolean) => boolean;
@@ -0,0 +1,20 @@
1
+ type Params = {
2
+ domesticRedirectedBtnSelector: string;
3
+ onShippingAddressSessionFound?: (shippingAddress: {
4
+ address1: string;
5
+ address2: string;
6
+ city: string;
7
+ countryCode: string;
8
+ firstName: string;
9
+ lastName: string;
10
+ phone: string;
11
+ postalCode: string;
12
+ state: string;
13
+ }) => void;
14
+ };
15
+ /**
16
+ * Watch for changes in domestic checkout step, this is to redirect user to home page and open checkout if user enters the ship to country that's in the shipping zone
17
+ * @note Only works on default bigcommerce checkout page
18
+ */
19
+ export declare const watchBigcommerceDomesticCheckout: ({ domesticRedirectedBtnSelector, onShippingAddressSessionFound, }: Params) => void;
20
+ export {};
@@ -0,0 +1 @@
1
+ export declare const formatStringWithLinks: (str: string) => string;
@@ -1 +1 @@
1
- export declare const getCurrencyElements: (selector: string) => NodeListOf<Element> | null;
1
+ export declare const getCurrencyElements: (selector: string) => Element[] | null;
@@ -1,3 +1,3 @@
1
- type LogType = 'warn' | 'info' | 'log';
1
+ type LogType = 'warn' | 'info' | 'log' | 'error';
2
2
  export declare const log: (message: unknown, type?: LogType, ...additionalInfo: unknown[]) => void;
3
3
  export {};
@@ -0,0 +1,7 @@
1
+ type Params = {
2
+ endpoint: string;
3
+ errors: string[];
4
+ metadata: Record<string, unknown>;
5
+ };
6
+ export declare const sendErrorLog: ({ endpoint, errors, metadata }: Params) => Promise<void>;
7
+ export {};
@@ -478,12 +478,12 @@ export namespace Components {
478
478
  * This method will convert the currency and return the converted value
479
479
  * @returns number
480
480
  */
481
- "convert": (value: number) => Promise<void>;
481
+ "convert": (value: number) => Promise<number>;
482
482
  /**
483
483
  * This method will call convert and format, and return the converted and formatted string
484
484
  * @returns string
485
485
  */
486
- "convertAndFormat": (value: number) => Promise<void>;
486
+ "convertAndFormat": (value: number) => Promise<string>;
487
487
  /**
488
488
  * This method will trigger the currency conversion and display the converted value
489
489
  * @returns void
@@ -493,12 +493,17 @@ export namespace Components {
493
493
  * This method will format the currency and return the formatted string
494
494
  * @returns number
495
495
  */
496
- "format": (value: number) => Promise<void>;
496
+ "format": (value: number) => Promise<string>;
497
497
  /**
498
498
  * Force mobile styling instead of media query and use the passed location value
499
499
  * @default false
500
500
  */
501
501
  "mobileLocationOverride"?: HelloMobileLocation;
502
+ /**
503
+ * This method show the hello dialog
504
+ * @returns void
505
+ */
506
+ "openHelloDialog": (value: boolean) => Promise<void>;
502
507
  }
503
508
  interface ZonosHelloDialog {
504
509
  /**
@@ -575,6 +580,24 @@ export namespace Components {
575
580
  */
576
581
  "handleOnClose": () => void;
577
582
  }
583
+ interface ZonosLink {
584
+ /**
585
+ * The href for the link
586
+ */
587
+ "href": string;
588
+ /**
589
+ * The title attribute for the link
590
+ */
591
+ "linkTitle"?: string;
592
+ /**
593
+ * The rel attribute for the link
594
+ */
595
+ "rel"?: string;
596
+ /**
597
+ * The target attribute for the link
598
+ */
599
+ "target"?: string;
600
+ }
578
601
  interface ZonosLinkAuthentication {
579
602
  /**
580
603
  * The title text for the authentication element
@@ -971,6 +994,12 @@ declare global {
971
994
  prototype: HTMLZonosLanguageSelectElement;
972
995
  new (): HTMLZonosLanguageSelectElement;
973
996
  };
997
+ interface HTMLZonosLinkElement extends Components.ZonosLink, HTMLStencilElement {
998
+ }
999
+ var HTMLZonosLinkElement: {
1000
+ prototype: HTMLZonosLinkElement;
1001
+ new (): HTMLZonosLinkElement;
1002
+ };
974
1003
  interface HTMLZonosLinkAuthenticationElement extends Components.ZonosLinkAuthentication, HTMLStencilElement {
975
1004
  }
976
1005
  var HTMLZonosLinkAuthenticationElement: {
@@ -1091,6 +1120,7 @@ declare global {
1091
1120
  "zonos-hello-dialog-footer": HTMLZonosHelloDialogFooterElement;
1092
1121
  "zonos-icon": HTMLZonosIconElement;
1093
1122
  "zonos-language-select": HTMLZonosLanguageSelectElement;
1123
+ "zonos-link": HTMLZonosLinkElement;
1094
1124
  "zonos-link-authentication": HTMLZonosLinkAuthenticationElement;
1095
1125
  "zonos-logo": HTMLZonosLogoElement;
1096
1126
  "zonos-notification": HTMLZonosNotificationElement;
@@ -1612,6 +1642,24 @@ declare namespace LocalJSX {
1612
1642
  */
1613
1643
  "handleOnClose"?: () => void;
1614
1644
  }
1645
+ interface ZonosLink {
1646
+ /**
1647
+ * The href for the link
1648
+ */
1649
+ "href"?: string;
1650
+ /**
1651
+ * The title attribute for the link
1652
+ */
1653
+ "linkTitle"?: string;
1654
+ /**
1655
+ * The rel attribute for the link
1656
+ */
1657
+ "rel"?: string;
1658
+ /**
1659
+ * The target attribute for the link
1660
+ */
1661
+ "target"?: string;
1662
+ }
1615
1663
  interface ZonosLinkAuthentication {
1616
1664
  /**
1617
1665
  * The title text for the authentication element
@@ -1773,6 +1821,7 @@ declare namespace LocalJSX {
1773
1821
  "zonos-hello-dialog-footer": ZonosHelloDialogFooter;
1774
1822
  "zonos-icon": ZonosIcon;
1775
1823
  "zonos-language-select": ZonosLanguageSelect;
1824
+ "zonos-link": ZonosLink;
1776
1825
  "zonos-link-authentication": ZonosLinkAuthentication;
1777
1826
  "zonos-logo": ZonosLogo;
1778
1827
  "zonos-notification": ZonosNotification;
@@ -1816,6 +1865,7 @@ declare module "@stencil/core" {
1816
1865
  "zonos-hello-dialog-footer": LocalJSX.ZonosHelloDialogFooter & JSXBase.HTMLAttributes<HTMLZonosHelloDialogFooterElement>;
1817
1866
  "zonos-icon": LocalJSX.ZonosIcon & JSXBase.HTMLAttributes<HTMLZonosIconElement>;
1818
1867
  "zonos-language-select": LocalJSX.ZonosLanguageSelect & JSXBase.HTMLAttributes<HTMLZonosLanguageSelectElement>;
1868
+ "zonos-link": LocalJSX.ZonosLink & JSXBase.HTMLAttributes<HTMLZonosLinkElement>;
1819
1869
  "zonos-link-authentication": LocalJSX.ZonosLinkAuthentication & JSXBase.HTMLAttributes<HTMLZonosLinkAuthenticationElement>;
1820
1870
  "zonos-logo": LocalJSX.ZonosLogo & JSXBase.HTMLAttributes<HTMLZonosLogoElement>;
1821
1871
  "zonos-notification": LocalJSX.ZonosNotification & JSXBase.HTMLAttributes<HTMLZonosNotificationElement>;
@@ -0,0 +1,13 @@
1
+ type Params = {
2
+ loadScriptSrc?: string;
3
+ };
4
+ /**
5
+ * Get the load version and url based on the loadScriptSrc and version
6
+ * @returns
7
+ */
8
+ export declare const checkIfLoadVersionDomain: ({ loadScriptSrc }: Params) => {
9
+ currentLoadScriptUrl: string;
10
+ isForceLoadVersionDomain: boolean;
11
+ isWhiteListed: boolean;
12
+ };
13
+ export {};
@@ -33,6 +33,7 @@ export interface Zonos {
33
33
  getCurrentTimestamp: () => number;
34
34
  init: (params: LoadZonosParams) => Promise<void>;
35
35
  injectSupportGoogleFont: (fontUrl: string) => void;
36
+ openHelloDialog: (state?: boolean) => void;
36
37
  setupGoogleFont: (fontFamily: string) => void;
37
38
  showNotification: (props: NotificationInit) => void;
38
39
  updateOrganizationName: (organizationName: string) => void;
@@ -52,6 +53,7 @@ export declare abstract class Zonos {
52
53
  private static zonosController;
53
54
  static init: ({ appearance, checkoutSettings, currencyConverter, helloSettings, storeId, zonosApiKey, }: LoadZonosParams) => Promise<void>;
54
55
  static displayCurrency: () => void;
56
+ static openHelloDialog: (value?: boolean) => void;
55
57
  static showNotification: (notification: NotificationInit) => void;
56
58
  static updateOrganizationName: (organizationName: string) => void;
57
59
  private static disablePlaceOrderButtons;
@@ -56,5 +56,5 @@ export type CheckoutConfig = {
56
56
  */
57
57
  buildCartDetail?: () => Promise<CartItem[]>;
58
58
  buildLandedCost?: (params: BuildLandedCostParams) => BuildLandedCostResponse;
59
- onOrderSuccess?: (zonosOrder: ZonosOrder) => void;
59
+ onOrderSuccess?: (zonosOrder: ZonosOrder) => Promise<void>;
60
60
  };
@@ -1155,6 +1155,7 @@ export declare const emailTemplateStatus: {
1155
1155
  export type EmailTemplateStatus = (typeof emailTemplateStatus)[keyof typeof emailTemplateStatus];
1156
1156
  export declare const emailTemplateType: {
1157
1157
  readonly AbandonedCart: "ABANDONED_CART";
1158
+ readonly CatalogExport: "CATALOG_EXPORT";
1158
1159
  readonly OrderCanceled: "ORDER_CANCELED";
1159
1160
  readonly OrderConfirmation: "ORDER_CONFIRMATION";
1160
1161
  readonly OrderReceipt: "ORDER_RECEIPT";
@@ -1378,11 +1379,6 @@ export declare const invoiceLanguageCode: {
1378
1379
  readonly ZhTw: "ZH_TW";
1379
1380
  };
1380
1381
  export type InvoiceLanguageCode = (typeof invoiceLanguageCode)[keyof typeof invoiceLanguageCode];
1381
- export declare const invoiceLineRecordBehaviorCode: {
1382
- readonly Finalize: "FINALIZE";
1383
- readonly Pending: "PENDING";
1384
- };
1385
- export type InvoiceLineRecordBehaviorCode = (typeof invoiceLineRecordBehaviorCode)[keyof typeof invoiceLineRecordBehaviorCode];
1386
1382
  export declare const invoiceLineRecordStatusCode: {
1387
1383
  readonly Failed: "FAILED";
1388
1384
  readonly Pending: "PENDING";
@@ -2117,31 +2113,7 @@ export type CalculateLandedCostMutation = {
2117
2113
  } | null> | null;
2118
2114
  checkoutSessionWorkflow: Array<{
2119
2115
  landedCost: {
2120
- amountSubtotals: {
2121
- duties: number;
2122
- fees: number;
2123
- items: number;
2124
- landedCostTotal: number;
2125
- shipping: number;
2126
- taxes: number;
2127
- } | null;
2128
- currencyCode: CurrencyCode;
2129
- deMinimis: Array<{
2130
- formula: string;
2131
- method: IncotermCode;
2132
- note: string;
2133
- threshold: DeMinimisThreshold;
2134
- type: DeMinimisType;
2135
- }>;
2136
2116
  id: string;
2137
- landedCostGuaranteeCode: LandedCostGuaranteeCode;
2138
- method: IncotermCode;
2139
- shipmentRating: {
2140
- amount: number;
2141
- currencyCode: CurrencyCode;
2142
- displayName: string;
2143
- id: string;
2144
- };
2145
2117
  } | null;
2146
2118
  subtotals: {
2147
2119
  duties: number;
@@ -2174,6 +2146,9 @@ export type CalculateLandedCostMutation = {
2174
2146
  type: LandedCostAdjustmentType | null;
2175
2147
  } | null> | null;
2176
2148
  deMinimis: Array<{
2149
+ formula: string;
2150
+ method: IncotermCode;
2151
+ note: string;
2177
2152
  threshold: DeMinimisThreshold;
2178
2153
  type: DeMinimisType;
2179
2154
  }>;
@@ -2217,31 +2192,7 @@ export type CalculateLandedCostMutation = {
2217
2192
  };
2218
2193
  export type CheckoutPresentmentFragment = {
2219
2194
  landedCost: {
2220
- amountSubtotals: {
2221
- duties: number;
2222
- fees: number;
2223
- items: number;
2224
- landedCostTotal: number;
2225
- shipping: number;
2226
- taxes: number;
2227
- } | null;
2228
- currencyCode: CurrencyCode;
2229
- deMinimis: Array<{
2230
- formula: string;
2231
- method: IncotermCode;
2232
- note: string;
2233
- threshold: DeMinimisThreshold;
2234
- type: DeMinimisType;
2235
- }>;
2236
2195
  id: string;
2237
- landedCostGuaranteeCode: LandedCostGuaranteeCode;
2238
- method: IncotermCode;
2239
- shipmentRating: {
2240
- amount: number;
2241
- currencyCode: CurrencyCode;
2242
- displayName: string;
2243
- id: string;
2244
- };
2245
2196
  } | null;
2246
2197
  subtotals: {
2247
2198
  duties: number;
@@ -2270,6 +2221,9 @@ export type LandedCostFragment = {
2270
2221
  type: LandedCostAdjustmentType | null;
2271
2222
  } | null> | null;
2272
2223
  deMinimis: Array<{
2224
+ formula: string;
2225
+ method: IncotermCode;
2226
+ note: string;
2273
2227
  threshold: DeMinimisThreshold;
2274
2228
  type: DeMinimisType;
2275
2229
  }>;
@@ -2656,6 +2610,7 @@ export type ZonosSettingsQuery = {
2656
2610
  allowedDomains: Array<string>;
2657
2611
  };
2658
2612
  organization: {
2613
+ id: string;
2659
2614
  name: string;
2660
2615
  references: {
2661
2616
  storeId: number | null;
@@ -1297,6 +1297,7 @@ export type EmailTemplateStatus =
1297
1297
  (typeof emailTemplateStatus)[keyof typeof emailTemplateStatus];
1298
1298
  export const emailTemplateType = {
1299
1299
  AbandonedCart: 'ABANDONED_CART',
1300
+ CatalogExport: 'CATALOG_EXPORT',
1300
1301
  OrderCanceled: 'ORDER_CANCELED',
1301
1302
  OrderConfirmation: 'ORDER_CONFIRMATION',
1302
1303
  OrderReceipt: 'ORDER_RECEIPT',
@@ -1582,13 +1583,7 @@ export const invoiceLanguageCode = {
1582
1583
 
1583
1584
  export type InvoiceLanguageCode =
1584
1585
  (typeof invoiceLanguageCode)[keyof typeof invoiceLanguageCode];
1585
- export const invoiceLineRecordBehaviorCode = {
1586
- Finalize: 'FINALIZE',
1587
- Pending: 'PENDING',
1588
- } as const;
1589
1586
 
1590
- export type InvoiceLineRecordBehaviorCode =
1591
- (typeof invoiceLineRecordBehaviorCode)[keyof typeof invoiceLineRecordBehaviorCode];
1592
1587
  export const invoiceLineRecordStatusCode = {
1593
1588
  Failed: 'FAILED',
1594
1589
  Pending: 'PENDING',
@@ -2506,33 +2501,7 @@ export type CalculateLandedCostMutation = {
2506
2501
  type: PackagingType;
2507
2502
  } | null> | null;
2508
2503
  checkoutSessionWorkflow: Array<{
2509
- landedCost: {
2510
- amountSubtotals: {
2511
- duties: number;
2512
- fees: number;
2513
- items: number;
2514
- landedCostTotal: number;
2515
- shipping: number;
2516
- taxes: number;
2517
- } | null;
2518
- currencyCode: CurrencyCode;
2519
- deMinimis: Array<{
2520
- formula: string;
2521
- method: IncotermCode;
2522
- note: string;
2523
- threshold: DeMinimisThreshold;
2524
- type: DeMinimisType;
2525
- }>;
2526
- id: string;
2527
- landedCostGuaranteeCode: LandedCostGuaranteeCode;
2528
- method: IncotermCode;
2529
- shipmentRating: {
2530
- amount: number;
2531
- currencyCode: CurrencyCode;
2532
- displayName: string;
2533
- id: string;
2534
- };
2535
- } | null;
2504
+ landedCost: { id: string } | null;
2536
2505
  subtotals: {
2537
2506
  duties: number;
2538
2507
  exchangeRate: {
@@ -2558,7 +2527,13 @@ export type CalculateLandedCostMutation = {
2558
2527
  item: { amount: number } | null;
2559
2528
  type: LandedCostAdjustmentType | null;
2560
2529
  } | null> | null;
2561
- deMinimis: Array<{ threshold: DeMinimisThreshold; type: DeMinimisType }>;
2530
+ deMinimis: Array<{
2531
+ formula: string;
2532
+ method: IncotermCode;
2533
+ note: string;
2534
+ threshold: DeMinimisThreshold;
2535
+ type: DeMinimisType;
2536
+ }>;
2562
2537
  duties: Array<{ amount: number; currencyCode: CurrencyCode }>;
2563
2538
  fees: Array<{ amount: number; currencyCode: CurrencyCode }>;
2564
2539
  id: string;
@@ -2590,33 +2565,7 @@ export type CalculateLandedCostMutation = {
2590
2565
  };
2591
2566
 
2592
2567
  export type CheckoutPresentmentFragment = {
2593
- landedCost: {
2594
- amountSubtotals: {
2595
- duties: number;
2596
- fees: number;
2597
- items: number;
2598
- landedCostTotal: number;
2599
- shipping: number;
2600
- taxes: number;
2601
- } | null;
2602
- currencyCode: CurrencyCode;
2603
- deMinimis: Array<{
2604
- formula: string;
2605
- method: IncotermCode;
2606
- note: string;
2607
- threshold: DeMinimisThreshold;
2608
- type: DeMinimisType;
2609
- }>;
2610
- id: string;
2611
- landedCostGuaranteeCode: LandedCostGuaranteeCode;
2612
- method: IncotermCode;
2613
- shipmentRating: {
2614
- amount: number;
2615
- currencyCode: CurrencyCode;
2616
- displayName: string;
2617
- id: string;
2618
- };
2619
- } | null;
2568
+ landedCost: { id: string } | null;
2620
2569
  subtotals: {
2621
2570
  duties: number;
2622
2571
  exchangeRate: {
@@ -2642,7 +2591,13 @@ export type LandedCostFragment = {
2642
2591
  item: { amount: number } | null;
2643
2592
  type: LandedCostAdjustmentType | null;
2644
2593
  } | null> | null;
2645
- deMinimis: Array<{ threshold: DeMinimisThreshold; type: DeMinimisType }>;
2594
+ deMinimis: Array<{
2595
+ formula: string;
2596
+ method: IncotermCode;
2597
+ note: string;
2598
+ threshold: DeMinimisThreshold;
2599
+ type: DeMinimisType;
2600
+ }>;
2646
2601
  duties: Array<{ amount: number; currencyCode: CurrencyCode }>;
2647
2602
  fees: Array<{ amount: number; currencyCode: CurrencyCode }>;
2648
2603
  id: string;
@@ -2999,6 +2954,7 @@ export type ZonosSettingsQuery = {
2999
2954
  } | null;
3000
2955
  onlineStoreSettings: { allowedDomains: Array<string> };
3001
2956
  organization: {
2957
+ id: string;
3002
2958
  name: string;
3003
2959
  references: { storeId: number | null } | null;
3004
2960
  } | null;
@@ -547,6 +547,11 @@ export type LocaleCountryMessagesQuery = {
547
547
  pageName: Locale_PageName_Enum;
548
548
  }>;
549
549
  };
550
+ export type InsertConversionEventMutation = {
551
+ insert_usage_conversionEvent_one: {
552
+ id: number;
553
+ } | null;
554
+ };
550
555
  export type CreateErrorEventMutation = {
551
556
  insert_error_event: {
552
557
  returning: Array<{
@@ -741,6 +746,9 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
741
746
  cleanupTestZonosElementSetting(variables?: {
742
747
  [x: string]: never;
743
748
  } | undefined, requestHeaders?: GraphQLClientRequestHeaders): Promise<CleanupTestZonosElementSettingMutation>;
749
+ insertConversionEvent(variables?: {
750
+ [x: string]: never;
751
+ } | undefined, requestHeaders?: GraphQLClientRequestHeaders): Promise<InsertConversionEventMutation>;
744
752
  zonosElementsSetting(variables?: {
745
753
  [x: string]: never;
746
754
  } | undefined, requestHeaders?: GraphQLClientRequestHeaders): Promise<ZonosElementsSettingQuery>;
@@ -548,6 +548,10 @@ export type LocaleCountryMessagesQuery = {
548
548
  }>;
549
549
  };
550
550
 
551
+ export type InsertConversionEventMutation = {
552
+ insert_usage_conversionEvent_one: { id: number } | null;
553
+ };
554
+
551
555
  export type CreateErrorEventMutation = {
552
556
  insert_error_event: {
553
557
  returning: Array<{
@@ -959,6 +963,20 @@ export function getSdk(
959
963
  'mutation',
960
964
  );
961
965
  },
966
+ insertConversionEvent(
967
+ variables?: { [x: string]: never },
968
+ requestHeaders?: GraphQLClientRequestHeaders,
969
+ ): Promise<InsertConversionEventMutation> {
970
+ return withWrapper(
971
+ wrappedRequestHeaders =>
972
+ client.request<InsertConversionEventMutation>('', variables, {
973
+ ...requestHeaders,
974
+ ...wrappedRequestHeaders,
975
+ }),
976
+ 'insertConversionEvent',
977
+ 'mutation',
978
+ );
979
+ },
962
980
  zonosElementsSetting(
963
981
  variables?: { [x: string]: never },
964
982
  requestHeaders?: GraphQLClientRequestHeaders,
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,o,t,n){function i(e){return e instanceof t?e:new t((function(o){o(e)}))}return new(t||(t=Promise))((function(t,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n["throw"](e))}catch(e){s(e)}}function l(e){e.done?t(e.value):i(e.value).then(r,a)}l((n=n.apply(e,o||[])).next())}))};var __generator=this&&this.__generator||function(e,o){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,r;return r={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(o){return l([e,o])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(r&&(r=0,a[0]&&(t=0)),t)try{if(n=1,i&&(s=a[0]&2?i["return"]:a[0]?i["throw"]||((s=i["return"])&&s.call(i),0):i.next)&&!(s=s.call(i,a[1])).done)return s;if(i=0,s)a=[a[0]&2,s.value];switch(a[0]){case 0:case 1:s=a;break;case 4:t.label++;return{value:a[1],done:false};case 5:t.label++;i=a[1];a=[0];continue;case 7:a=t.ops.pop();t.trys.pop();continue;default:if(!(s=t.trys,s=s.length>0&&s[s.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){t.label=a[1];break}if(a[0]===6&&t.label<s[1]){t.label=s[1];s=a;break}if(s&&t.label<s[2]){t.label=s[2];t.ops.push(a);break}if(s[2])t.ops.pop();t.trys.pop();continue}a=o.call(e,t)}catch(e){a=[6,e];i=0}finally{n=s=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-d1ab0823.system.js","./p-56ba5cbf.system.js"],(function(e,o){"use strict";var t,n,i;return{setters:[function(o){t=o.p;n=o.b;e("setNonce",o.s)},function(e){i=e.g}],execute:function(){var e=this;var s=function(){var e=o.meta.url;var n={};if(e!==""){n.resourcesUrl=new URL(".",e).href}return t(n)};s().then((function(o){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,i()];case 1:e.sent();return[2,n([["p-2f1e1cbb.system",[[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],closeDialogHandler:[64],init:[64],setToFinishStep:[64]},[[16,"zonos--init-cart-info","initCartInfoHandler"],[9,"resize","handleWindowResize"]],{appearanceSettingsOverride:["appearanceSettingsOverrideChanged"],mobile:["handleMobileChange"]}]]],["p-1f85a98c.system",[[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],displayCurrency:[64],convertAndFormat:[64],convert:[64],format:[64]},[[9,"resize","handleResize"]]]]],["p-b6992dc2.system",[[1,"zonos-controller",{config:[16],zonosApiKey:[1,"zonos-api-key"],initCheckoutElement:[64],setupGoogleFont:[64],showNotification:[64],overrideConfig:[64],overrideCountry:[64],getAppearanceSetting:[64],updateOrganizationName:[64]}]]],["p-06652d87.system",[[1,"zonos-component",{first:[1],middle:[1],last:[1]}]]],["p-79b910bf.system",[[1,"zonos-logo",{theme:[1],width:[1]}]]],["p-0c72fb79.system",[[2,"zonos-payment",{titleText:[1,"title-text"],stripe:[32],stripeElements:[32]},null,{stripeElements:["watchInitStripe"],stripe:["watchInitStripe"]}]]],["p-55970b10.system",[[1,"zonos-shipping-rich-radio",{items:[16],borderColor:[1,"border-color"],borderStyle:[1,"border-style"],theme:[1],selectedItem:[32]}]]],["p-7d1d862f.system",[[1,"zonos-country-flag",{countryCode:[1,"country-code"],size:[2]}]]],["p-88a55076.system",[[1,"zonos-text",{textColor:[1,"text-color"],size:[1],type:[1],weight:[2],content:[1],ready:[32]}]]],["p-33080cde.system",[[1,"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"],noPaddingLeft:[4,"no-padding-left"],noPaddingRight:[4,"no-padding-right"],loading:[4],theme:[1],hasIcon:[32],hasContent:[32]},[[2,"click","clickHandler"]],{icon:["iconChangeHandler"]}],[1,"zonos-icon",{autoHeight:[4,"auto-height"],iconColor:[1,"icon-color"],content:[1],size:[2]}],[1,"zonos-spinner",{size:[2],spinnerColor:[1,"spinner-color"]}]]],["p-8aeb4679.system",[[1,"zonos-select-dialog-header",{handleOnClose:[16],label:[1]}],[1,"zonos-v-stack",{spacing:[2]}]]],["p-ea93943a.system",[[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]}]]],["p-cd8bd5e9.system",[[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"]}]]],["p-e855966f.system",[[1,"zonos-notification",{notificationArray:[32],showNotification:[64]}]]],["p-e2770968.system",[[1,"zonos-badge",{bold:[4],badgeColor:[1,"badge-color"],icon:[16],iconRight:[4,"icon-right"],size:[1],rounded:[4]}],[1,"zonos-tooltip",{label:[1],subtitle:[1],showTooltip:[32]}]]],["p-67737613.system",[[1,"zonos-banner",{bannerTitle:[1,"banner-title"],intent:[1],hasContent:[32]}]]],["p-cc63a29f.system",[[1,"zonos-language-select",{handleOnClose:[16]}],[1,"zonos-card",{actions:[16],footerActions:[16],footerContent:[16],footerHeight:[2,"footer-height"],label:[16],spacing:[1]}]]],["p-375c472a.system",[[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"]}],[2,"zonos-link-authentication",{titleText:[1,"title-text"],stripe:[32]},null,{stripe:["watchInitStripe"]}],[1,"zonos-collapse",{collapsed:[4],collapseSize:[2,"collapse-size"],height:[32]}]]],["p-d36faf87.system",[[1,"zonos-checkout-footer",{showDialog:[32]},[[4,"click","handleGlobalClick"]]],[2,"zonos-customer-info",{continueLoading:[4,"continue-loading"],submitBtnType:[1,"submit-btn-type"],submitBtnColor:[1,"submit-btn-color"],defaultAddress:[16],disabled:[32]},null,{disabled:["watchFormComplete"]}],[2,"zonos-checkout-payment",{paymentError:[4,"payment-error"],submitBtnType:[1,"submit-btn-type"],continueLoading:[4,"continue-loading"],submitBtnColor:[1,"submit-btn-color"],disabled:[32]},null,{disabled:["watchFormComplete"]}],[2,"zonos-shipping",{continueLoading:[4,"continue-loading"],submitBtnColor:[1,"submit-btn-color"],submitBtnType:[1,"submit-btn-type"],selectedShippingMethod:[32],disabled:[32]},null,{disabled:["watchFormComplete"]}],[1,"zonos-cart-subtotal"],[1,"zonos-checkout-finish",{borderRadius:[1,"border-radius"],storybookForceStatus:[1,"storybook-force-status"],overrideNotification:[16],isLoading:[32],notificationType:[32],notificationTitle:[32],notificationMessages:[32],order:[32]}],[1,"zonos-dialog",{open:[4],headerText:[1,"header-text"],width:[1],height:[1],noHeader:[4,"no-header"],noBodyPadding:[4,"no-body-padding"],noBorder:[4,"no-border"],footerRightAction:[16],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"]]],[1,"zonos-review",{mobile:[4],collapsed:[4],isMobile:[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-cart-items",{errorImages:[32]}]]]],o)]}}))}))}))}}}));
1
+ var __awaiter=this&&this.__awaiter||function(e,o,t,n){function i(e){return e instanceof t?e:new t((function(o){o(e)}))}return new(t||(t=Promise))((function(t,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n["throw"](e))}catch(e){s(e)}}function l(e){e.done?t(e.value):i(e.value).then(r,a)}l((n=n.apply(e,o||[])).next())}))};var __generator=this&&this.__generator||function(e,o){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,r;return r={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(o){return l([e,o])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(r&&(r=0,a[0]&&(t=0)),t)try{if(n=1,i&&(s=a[0]&2?i["return"]:a[0]?i["throw"]||((s=i["return"])&&s.call(i),0):i.next)&&!(s=s.call(i,a[1])).done)return s;if(i=0,s)a=[a[0]&2,s.value];switch(a[0]){case 0:case 1:s=a;break;case 4:t.label++;return{value:a[1],done:false};case 5:t.label++;i=a[1];a=[0];continue;case 7:a=t.ops.pop();t.trys.pop();continue;default:if(!(s=t.trys,s=s.length>0&&s[s.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){t.label=a[1];break}if(a[0]===6&&t.label<s[1]){t.label=s[1];s=a;break}if(s&&t.label<s[2]){t.label=s[2];t.ops.push(a);break}if(s[2])t.ops.pop();t.trys.pop();continue}a=o.call(e,t)}catch(e){a=[6,e];i=0}finally{n=s=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-d1ab0823.system.js","./p-56ba5cbf.system.js"],(function(e,o){"use strict";var t,n,i;return{setters:[function(o){t=o.p;n=o.b;e("setNonce",o.s)},function(e){i=e.g}],execute:function(){var e=this;var s=function(){var e=o.meta.url;var n={};if(e!==""){n.resourcesUrl=new URL(".",e).href}return t(n)};s().then((function(o){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,i()];case 1:e.sent();return[2,n([["p-4fb77a38.system",[[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],closeDialogHandler:[64],init:[64],setToFinishStep:[64]},[[16,"zonos--init-cart-info","initCartInfoHandler"],[9,"resize","handleWindowResize"]],{appearanceSettingsOverride:["appearanceSettingsOverrideChanged"],mobile:["handleMobileChange"]}]]],["p-389599d3.system",[[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],displayCurrency:[64],convertAndFormat:[64],convert:[64],format:[64],openHelloDialog:[64]},[[9,"resize","handleResize"]]]]],["p-1119dddf.system",[[1,"zonos-controller",{config:[16],zonosApiKey:[1,"zonos-api-key"],initCheckoutElement:[64],setupGoogleFont:[64],showNotification:[64],overrideConfig:[64],overrideCountry:[64],getAppearanceSetting:[64],updateOrganizationName:[64]}]]],["p-58e2f6a1.system",[[1,"zonos-component",{first:[1],middle:[1],last:[1]}]]],["p-314be538.system",[[1,"zonos-link",{href:[1],rel:[1],target:[1],linkTitle:[1,"link-title"]}]]],["p-328b7f6f.system",[[1,"zonos-logo",{theme:[1],width:[1]}]]],["p-61e5cf29.system",[[1,"zonos-text",{textColor:[1,"text-color"],size:[1],type:[1],weight:[2],content:[1],ready:[32]}]]],["p-9e6b489d.system",[[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"]}]]],["p-143dc0d9.system",[[1,"zonos-notification",{notificationArray:[32],showNotification:[64]}]]],["p-745cd869.system",[[2,"zonos-payment",{titleText:[1,"title-text"],stripe:[32],stripeElements:[32]},null,{stripeElements:["watchInitStripe"],stripe:["watchInitStripe"]}]]],["p-14d27ce1.system",[[1,"zonos-shipping-rich-radio",{items:[16],borderColor:[1,"border-color"],borderStyle:[1,"border-style"],theme:[1],selectedItem:[32]}]]],["p-7c45ce37.system",[[1,"zonos-badge",{bold:[4],badgeColor:[1,"badge-color"],icon:[16],iconRight:[4,"icon-right"],size:[1],rounded:[4]}],[1,"zonos-tooltip",{label:[1],subtitle:[1],showTooltip:[32]}]]],["p-165d469e.system",[[1,"zonos-country-flag",{countryCode:[1,"country-code"],size:[2]}]]],["p-799d8a17.system",[[1,"zonos-banner",{bannerTitle:[1,"banner-title"],intent:[1],hasContent:[32]}]]],["p-354603b3.system",[[1,"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"],noPaddingLeft:[4,"no-padding-left"],noPaddingRight:[4,"no-padding-right"],loading:[4],theme:[1],hasIcon:[32],hasContent:[32]},[[2,"click","clickHandler"]],{icon:["iconChangeHandler"]}],[1,"zonos-icon",{autoHeight:[4,"auto-height"],iconColor:[1,"icon-color"],content:[1],size:[2]}],[1,"zonos-spinner",{size:[2],spinnerColor:[1,"spinner-color"]}]]],["p-f6eaef7b.system",[[1,"zonos-select-dialog-header",{handleOnClose:[16],label:[1]}],[1,"zonos-v-stack",{spacing:[2]}]]],["p-5c176b23.system",[[1,"zonos-language-select",{handleOnClose:[16]}],[1,"zonos-card",{actions:[16],footerActions:[16],footerContent:[16],footerHeight:[2,"footer-height"],label:[16],spacing:[1]}]]],["p-c2e58ee1.system",[[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]}]]],["p-79b24786.system",[[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"]}],[2,"zonos-link-authentication",{titleText:[1,"title-text"],stripe:[32]},null,{stripe:["watchInitStripe"]}],[1,"zonos-collapse",{collapsed:[4],collapseSize:[2,"collapse-size"],height:[32],iframe:[32]}]]],["p-5d9a000a.system",[[1,"zonos-checkout-footer",{showDialog:[32]},[[4,"click","handleGlobalClick"]]],[2,"zonos-customer-info",{continueLoading:[4,"continue-loading"],submitBtnType:[1,"submit-btn-type"],submitBtnColor:[1,"submit-btn-color"],defaultAddress:[16],disabled:[32]},null,{disabled:["watchFormComplete"]}],[2,"zonos-checkout-payment",{paymentError:[4,"payment-error"],submitBtnType:[1,"submit-btn-type"],continueLoading:[4,"continue-loading"],submitBtnColor:[1,"submit-btn-color"],disabled:[32]},null,{disabled:["watchFormComplete"]}],[2,"zonos-shipping",{continueLoading:[4,"continue-loading"],submitBtnColor:[1,"submit-btn-color"],submitBtnType:[1,"submit-btn-type"],selectedShippingMethod:[32],disabled:[32]},null,{disabled:["watchFormComplete"]}],[1,"zonos-cart-subtotal"],[1,"zonos-checkout-finish",{borderRadius:[1,"border-radius"],storybookForceStatus:[1,"storybook-force-status"],overrideNotification:[16],isLoading:[32],notificationType:[32],notificationTitle:[32],notificationMessages:[32],order:[32]}],[1,"zonos-dialog",{open:[4],headerText:[1,"header-text"],width:[1],height:[1],noHeader:[4,"no-header"],noBodyPadding:[4,"no-body-padding"],noBorder:[4,"no-border"],footerRightAction:[16],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"]]],[1,"zonos-review",{mobile:[4],collapsed:[4],isMobile:[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-cart-items",{errorImages:[32]}]]]],o)]}}))}))}))}}}));
@@ -0,0 +1 @@
1
+ import{r as o,h as a,H as t}from"./p-58127116.js";import{d as r}from"./p-7b87b82f.js";import{c as s}from"./p-b4b7f705.js";const e=class{constructor(a){o(this,a),this.bold=!1,this.badgeColor="gray",this.icon=void 0,this.iconRight=!1,this.size="default",this.rounded=!1}render(){return a(t,{key:"1cece57ce37e04873f625d05ad5a0bea6368b46b",class:s(["zonos--elements zonos--badge"]),style:{"--font-family":r()}},a("div",{key:"8caf3f2ffb7deda215c44ad0c6c0892936d526c2",class:s(["zonos--badge-content",this.badgeColor,this.rounded&&"rounded",this.iconRight&&"icon-right",this.size,this.bold&&"bold"])},this.icon,a("zonos-text",{key:"fb8ac7f09675f9cfd829ecea54c61f5c699caa00"},a("slot",{key:"978bc876e427d932662a0100043e04b105e9df8d"}))))}};e.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host .zonos--badge-content{display:-ms-flexbox;display:flex;gap:var(--amino-space-8);font-size:var(--amino-font-size-s);padding:4px 8px;text-align:center;border-radius:var(--amino-radius-6);background-color:var(--amino-gray-100);color:var(--amino-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(--amino-gray-600);color:var(--amino-gray-100)}:host .blue{background-color:var(--amino-blue-100);color:var(--amino-blue-800)}:host .blue.bold{background-color:var(--amino-blue-600);color:var(--amino-blue-100)}:host .green{background-color:var(--amino-green-100);color:var(--amino-green-800)}:host .green.bold{background-color:var(--amino-green-600);color:var(--amino-green-100)}:host .red{background-color:var(--amino-red-100);color:var(--amino-red-800)}:host .red.bold{background-color:var(--amino-red-600);color:var(--amino-red-100)}:host .orange{background-color:var(--amino-orange-100);color:var(--amino-orange-800)}:host .orange.bold{background-color:var(--amino-orange-600);color:var(--amino-orange-100)}:host .purple{background-color:var(--amino-purple-100);color:var(--amino-purple-800)}:host .purple.bold{background-color:var(--amino-purple-600);color:var(--amino-purple-100)}:host .cyan{background-color:var(--amino-cyan-100);color:var(--amino-cyan-800)}:host .cyan.bold{background-color:var(--amino-cyan-600);color:var(--amino-cyan-100)}";const n=class{constructor(a){o(this,a),this.label="",this.subtitle="",this.showTooltip=!1}render(){return a(t,{key:"4864150b0af4119fc7d87aec5af3c258fb27802d",class:"zonos--elements"},a("div",{key:"c11d3da431f9c4507bc58ec38d0b1ef21c99b584",class:"zonos--tooltip",onMouseEnter:()=>this.showTooltip=!0,onMouseLeave:()=>this.showTooltip=!1},a("slot",{key:"0a92efb2e6c17f67c2feacbd17bbddd4fb63f7da"}),a("div",{key:"0ea54bfaf54a2f170044d77c2b555e5da37af8ae",class:s([this.showTooltip&&"zonos--show-tooltip","zonos--tooltip-content"])},a("zonos-text",{key:"73c55a7318eb36760d2779691f9ea79d2c5bf8c7",size:"s",textColor:"gray-0",type:"boldLabel"},this.label),a("zonos-text",{key:"1f4106f67fc468121d7fb7fbc0ee69363bb26186",size:"xs",textColor:"gray-0"},this.subtitle))))}};n.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--tooltip{position:relative}:host .zonos--tooltip .zonos--tooltip-content{position:absolute;bottom:100%;left:0;width:-webkit-max-content;width:-moz-max-content;width:max-content;padding:var(--amino-space-12);background-color:var(--amino-gray-1200);opacity:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out;-webkit-transform-origin:bottom left;transform-origin:bottom left;border-radius:var(--amino-radius-4);z-index:100;-webkit-box-shadow:var(--amino-v3-shadow-large);box-shadow:var(--amino-v3-shadow-large)}:host .zonos--tooltip .zonos--tooltip-content.zonos--show-tooltip{opacity:1;-webkit-transform:scale(1);transform:scale(1)}";export{e as zonos_badge,n as zonos_tooltip}
@@ -0,0 +1 @@
1
+ import{z as p}from"./p-7b87b82f.js";const o=(o,s="10px")=>o?"SHARP"===o?"0px":s:"SHARP"===p.appearance.style?"0px":s;export{o as g}
@@ -1 +1 @@
1
- import{r as t,h as s,H as o,d as i}from"./p-58127116.js";import{l as e}from"./p-9878a770.js";import{d as a}from"./p-f455e08c.js";import{c as n}from"./p-b4b7f705.js";import"./p-34c03be2.js";import"./p-5c4dc123.js";const h=class{constructor(s){t(this,s),this.countryCode=e.selectedCountryCode,this.size=void 0}render(){if(!this.el.shadowRoot||!this.countryCode)return null;const t=`https://zonos-store-assets.s3.amazonaws.com/images/elements-flags/${this.countryCode}.svg`,i=a();return s(o,{class:"zonos--elements",style:this.size?{"--font-family":i,height:`${this.size}px`,width:`${this.size}px`}:{"--font-family":i}},s("div",{class:n(["flag-container"])},s("div",{class:"flag-icon",style:{backgroundImage:`url(${t})`}})))}get el(){return i(this)}};h.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-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 t,h as s,H as o,d as i}from"./p-58127116.js";import{l as a}from"./p-da767f8b.js";import{d as e}from"./p-7b87b82f.js";import{c as n}from"./p-b4b7f705.js";import"./p-95e0fc06.js";import"./p-0c0aa552.js";const h=class{constructor(s){t(this,s),this.countryCode=a.selectedCountryCode,this.size=void 0}render(){if(!this.el.shadowRoot||!this.countryCode)return null;const t=`https://zonos-store-assets.s3.amazonaws.com/images/elements-flags/${this.countryCode}.svg`,i=e();return s(o,{class:"zonos--elements",style:this.size?{"--font-family":i,height:`${this.size}px`,width:`${this.size}px`}:{"--font-family":i}},s("div",{class:n(["flag-container"])},s("div",{class:"flag-icon",style:{backgroundImage:`url(${t})`}})))}get el(){return i(this)}};h.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-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}