@zonos/elements 1.1.1 → 1.2.0

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 (832) hide show
  1. package/dist/cjs/{cart-108bc407.js → cart-ac9a3c40.js} +11 -9
  2. package/dist/cjs/classes-b7918f56.js +0 -2
  3. package/dist/cjs/{getBorderRadius-2904800c.js → getBorderRadius-1f9c0fa3.js} +1 -3
  4. package/dist/cjs/getHasMoreSpaceOnRight-2855491b.js +0 -2
  5. package/dist/cjs/index-9542d2e7.js +0 -2
  6. package/dist/cjs/index.cjs.js +20 -1
  7. package/dist/cjs/isColorVariable-c1ed7303.js +0 -2
  8. package/dist/cjs/{isDarkColor-a86b8a05.js → isDarkColor-0651a165.js} +1 -3
  9. package/dist/cjs/loader.cjs.js +1 -3
  10. package/dist/cjs/{localization-f6a1b679.js → localization-3a4b4a43.js} +208 -16
  11. package/dist/cjs/{submitGtag-b1b96579.js → submitGtag-9e873a0a.js} +2 -4
  12. package/dist/cjs/zonos-address_2.cjs.entry.js +5 -7
  13. package/dist/cjs/zonos-badge.cjs.entry.js +0 -2
  14. package/dist/cjs/zonos-banner.cjs.entry.js +66 -0
  15. package/dist/cjs/zonos-button_2.cjs.entry.js +3 -5
  16. package/dist/cjs/zonos-card_2.cjs.entry.js +0 -2
  17. package/dist/cjs/zonos-cart-items_10.cjs.entry.js +20 -15
  18. package/dist/cjs/zonos-checkout.cjs.entry.js +90 -50
  19. package/dist/cjs/zonos-component.cjs.entry.js +0 -2
  20. package/dist/cjs/zonos-controller.cjs.entry.js +8 -12
  21. package/dist/cjs/zonos-country-flag_4.cjs.entry.js +6 -8
  22. package/dist/cjs/zonos-elements.cjs.js +1 -3
  23. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +21 -10
  24. package/dist/cjs/zonos-hello.cjs.entry.js +241 -24
  25. package/dist/cjs/zonos-icon.cjs.entry.js +0 -2
  26. package/dist/cjs/zonos-notification.cjs.entry.js +0 -2
  27. package/dist/cjs/zonos-payment.cjs.entry.js +58 -0
  28. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -5
  29. package/dist/cjs/zonos-text.cjs.entry.js +0 -2
  30. package/dist/cjs/{zonosStore-960e5542.js → zonosStore-270f79cc.js} +6 -23
  31. package/dist/collection/components/checkout/zonos-checkout/assets/LeftArrow.svg +1 -1
  32. package/dist/collection/components/checkout/zonos-checkout/assets/MessageIcon.svg +1 -1
  33. package/dist/collection/components/checkout/zonos-checkout/assets/RemoveIcon.svg +1 -1
  34. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +0 -1
  35. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/assets/InfoIcon.svg +1 -1
  36. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +0 -1
  37. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/assets/RemoveIcon.svg +1 -1
  38. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/assets/SuccessIcon.svg +1 -1
  39. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +7 -1
  40. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +0 -1
  41. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +85 -61
  42. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +1 -1
  43. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +0 -1
  44. package/dist/collection/components/checkout/zonos-checkout/zonos-review/assets/ChevronDownIcon.svg +1 -1
  45. package/dist/collection/components/checkout/zonos-checkout/zonos-review/assets/ChevronUpIcon.svg +1 -1
  46. package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +0 -1
  47. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +0 -1
  48. package/dist/collection/components/common/countries.js +0 -1
  49. package/dist/collection/components/common/zonos-badge/zonos-badge.js +0 -1
  50. package/dist/collection/components/common/zonos-banner/zonos-banner.css +6 -1
  51. package/dist/collection/components/common/zonos-banner/zonos-banner.js +1 -2
  52. package/dist/collection/components/common/zonos-button/zonos-button.js +0 -1
  53. package/dist/collection/components/common/zonos-card/zonos-card.js +0 -1
  54. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +0 -1
  55. package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.js +0 -1
  56. package/dist/collection/components/common/zonos-country-select/assets/arrowLeftBlue.svg +1 -1
  57. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +0 -1
  58. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +0 -1
  59. package/dist/collection/components/common/zonos-dialog/assets/removeIcon.svg +1 -1
  60. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +0 -1
  61. package/dist/collection/components/common/zonos-icon/zonos-icon.js +0 -1
  62. package/dist/collection/components/common/zonos-logo/zonos-logo.js +0 -1
  63. package/dist/collection/components/common/zonos-notification/zonos-notification.js +0 -1
  64. package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +1 -2
  65. package/dist/collection/components/common/zonos-spinner/zonos-spinner.js +0 -1
  66. package/dist/collection/components/common/zonos-text/zonos-text.js +0 -1
  67. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +0 -1
  68. package/dist/collection/components/component-template/zonos-component/zonos-component.js +0 -1
  69. package/dist/collection/components/hello/zonos-hello/zonos-hello.css +20 -2
  70. package/dist/collection/components/hello/zonos-hello/zonos-hello.js +139 -21
  71. package/dist/collection/components/hello/zonos-hello-dialog/assets/bagIcon.svg +1 -1
  72. package/dist/collection/components/hello/zonos-hello-dialog/assets/messageIcon.svg +1 -1
  73. package/dist/collection/components/hello/zonos-hello-dialog/assets/moneyIcon.svg +1 -1
  74. package/dist/collection/components/hello/zonos-hello-dialog/assets/removeIcon.svg +1 -1
  75. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/assets/chevronDownIcon.svg +1 -1
  76. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/assets/zonosIcon.svg +1 -1
  77. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +0 -1
  78. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.css +20 -4
  79. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +33 -2
  80. package/dist/collection/components/main/zonos-controller.js +0 -1
  81. package/dist/collection/components/store/checkout/cart.js +0 -1
  82. package/dist/collection/components/store/checkout/stripe.js +0 -1
  83. package/dist/collection/components/store/hello/localization.js +6 -5
  84. package/dist/collection/components/store/translationStore/strings.arabic.js +9 -1
  85. package/dist/collection/components/store/translationStore/strings.base.js +9 -1
  86. package/dist/collection/components/store/translationStore/strings.chinese.js +9 -1
  87. package/dist/collection/components/store/translationStore/strings.danish.js +9 -1
  88. package/dist/collection/components/store/translationStore/strings.dutch.js +9 -1
  89. package/dist/collection/components/store/translationStore/strings.french.js +9 -1
  90. package/dist/collection/components/store/translationStore/strings.german.js +9 -1
  91. package/dist/collection/components/store/translationStore/strings.hebrew.js +9 -1
  92. package/dist/collection/components/store/translationStore/strings.indonesian.js +9 -1
  93. package/dist/collection/components/store/translationStore/strings.italian.js +9 -1
  94. package/dist/collection/components/store/translationStore/strings.japanese.js +9 -1
  95. package/dist/collection/components/store/translationStore/strings.korean.js +9 -1
  96. package/dist/collection/components/store/translationStore/strings.norwegian.js +9 -1
  97. package/dist/collection/components/store/translationStore/strings.polish.js +9 -1
  98. package/dist/collection/components/store/translationStore/strings.portuguese.js +9 -1
  99. package/dist/collection/components/store/translationStore/strings.russian.js +9 -1
  100. package/dist/collection/components/store/translationStore/strings.spanish.js +9 -1
  101. package/dist/collection/components/store/translationStore/strings.swedish.js +9 -1
  102. package/dist/collection/components/store/translationStore/strings.turkish.js +9 -1
  103. package/dist/collection/components/store/translationStore/strings.vietnamese.js +9 -1
  104. package/dist/collection/components/store/translationStore.js +0 -1
  105. package/dist/collection/components/store/zonosStore.js +6 -4
  106. package/dist/collection/components/stripe/zonos-address/zonos-address.js +0 -1
  107. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +0 -1
  108. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +0 -1
  109. package/dist/collection/components/utils/addDays.js +0 -1
  110. package/dist/collection/components/utils/api/calculateLandedCost.js +0 -1
  111. package/dist/collection/components/utils/api/checkItemRestrictions.js +17 -0
  112. package/dist/collection/components/utils/api/getCountries.js +0 -1
  113. package/dist/collection/components/utils/api/getCountryLandedCost.js +0 -1
  114. package/dist/collection/components/utils/api/getExchangeRate.js +2 -3
  115. package/dist/collection/components/utils/api/getLocaleMessages.js +0 -1
  116. package/dist/collection/components/utils/api/getLocalization.js +3 -2
  117. package/dist/collection/components/utils/api/getShippingZones.js +0 -1
  118. package/dist/collection/components/utils/api/getZonosSetting.js +0 -1
  119. package/dist/collection/components/utils/api/prepCalculateLandedCost.js +2 -1
  120. package/dist/collection/components/utils/changeDeepProperty.js +0 -1
  121. package/dist/collection/components/utils/changeDeepPropertyAtIndex.js +0 -1
  122. package/dist/collection/components/utils/checkout/initCheckout.js +2 -5
  123. package/dist/collection/components/utils/checkout/isCheckoutMobile.js +0 -1
  124. package/dist/collection/components/utils/classes.js +0 -1
  125. package/dist/collection/components/utils/darkenColor.js +0 -1
  126. package/dist/collection/components/utils/formatCurrency.js +0 -1
  127. package/dist/collection/components/utils/formatDate.js +0 -1
  128. package/dist/collection/components/utils/getBorderRadius.js +0 -1
  129. package/dist/collection/components/utils/getButtonTheme.js +0 -1
  130. package/dist/collection/components/utils/getDaysDifference.js +0 -1
  131. package/dist/collection/components/utils/handleFetch.js +1 -2
  132. package/dist/collection/components/utils/hello/currencyConversion/currencyConvert.js +0 -1
  133. package/dist/collection/components/utils/hello/currencyConversion/currencyConvertAndFormat.js +0 -1
  134. package/dist/collection/components/utils/hello/currencyConversion/currencyDisplay.js +0 -1
  135. package/dist/collection/components/utils/hello/currencyConversion/currencyFormat.js +0 -1
  136. package/dist/collection/components/utils/hello/currencyConversion/defaultCurrencyConverter.js +0 -1
  137. package/dist/collection/components/utils/hello/currencyConversion/getCurrencyCode.js +0 -1
  138. package/dist/collection/components/utils/hello/currencyConversion/getCurrencyElements.js +0 -1
  139. package/dist/collection/components/utils/hello/currencyConversion/getInitialElementAmount.js +0 -1
  140. package/dist/collection/components/utils/hello/currencyConversion/getLanguageCode.js +0 -1
  141. package/dist/collection/components/utils/hello/detectItemRestrictions.js +28 -0
  142. package/dist/collection/components/utils/hello/getCurrentHelloLocalePage.js +8 -8
  143. package/dist/collection/components/utils/hello/getHasMoreSpaceAbove.js +9 -0
  144. package/dist/collection/components/utils/hello/getHasMoreSpaceOnRight.js +0 -1
  145. package/dist/collection/components/utils/hello/getProductsOnPage.js +48 -0
  146. package/dist/collection/components/utils/hello/initHello.js +0 -1
  147. package/dist/collection/components/utils/hello/setZonosCountryUrlParam.js +9 -0
  148. package/dist/collection/components/utils/isColorVariable.js +0 -1
  149. package/dist/collection/components/utils/isDarkColor.js +0 -1
  150. package/dist/collection/components/utils/isValidSelector.js +0 -1
  151. package/dist/collection/components/utils/jsonParse.js +0 -1
  152. package/dist/collection/components/utils/lightenColor.js +0 -1
  153. package/dist/collection/components/utils/logging/log.js +0 -1
  154. package/dist/collection/components/utils/logging/logError.js +0 -1
  155. package/dist/collection/components/utils/mergeConfig.js +0 -1
  156. package/dist/collection/components/utils/submitGtag.js +0 -1
  157. package/dist/collection/environment.js +84 -10
  158. package/dist/collection/index.js +0 -1
  159. package/dist/collection/scripts/loadStripe.js +3 -4
  160. package/dist/collection/scripts/stripe.js +3 -4
  161. package/dist/collection/scripts/zonos.js +86 -31
  162. package/dist/collection/styles/stripe/addressRuleStyle.js +0 -1
  163. package/dist/collection/styles/stripe/defaultVariable.js +0 -1
  164. package/dist/collection/types/ICountryJson.js +0 -1
  165. package/dist/collection/types/JsonError.js +0 -1
  166. package/dist/collection/types/NoInfer.js +0 -1
  167. package/dist/collection/types/Translation.js +0 -1
  168. package/dist/collection/types/checkout/CheckoutConfig.js +0 -1
  169. package/dist/collection/types/checkout/api/CalculateLandedCostRequest.js +0 -1
  170. package/dist/collection/types/generated/graphql.customer.types.js +92 -1
  171. package/dist/collection/types/generated/graphql.frontend.types.js +0 -1
  172. package/dist/collection/types/hello/HelloConfig.js +0 -1
  173. package/dist/collection/types/hello/Product.js +1 -0
  174. package/dist/collection/types/hello/RestrictedItem.js +1 -0
  175. package/dist/collection/types/index.js +1 -1
  176. package/dist/collection/types/online-store/OnlineStoreConfig.js +0 -1
  177. package/dist/collection/types/stripe/Apperance.js +0 -1
  178. package/dist/collection/types/styles/Color.js +0 -1
  179. package/dist/collection/types/styles/GridSpacing.js +0 -1
  180. package/dist/collection/types/styles/Text.js +0 -1
  181. package/dist/collection/types/utils/deep/IDeepKeyof.js +0 -1
  182. package/dist/collection/types/utils/deep/IDeepKeyofAtIndex.js +0 -1
  183. package/dist/collection/utils/format.js +0 -1
  184. package/dist/collection/utils/generateVercelDeployUrl.js +0 -1
  185. package/dist/{esm/cart-2f83e048.js → components/cart.js} +10 -10
  186. package/dist/components/classes.js +0 -2
  187. package/dist/components/formatCurrency.js +0 -2
  188. package/dist/components/getBorderRadius.js +0 -2
  189. package/dist/components/index.js +1 -2
  190. package/dist/components/isColorVariable.js +0 -2
  191. package/dist/components/isDarkColor.js +0 -2
  192. package/dist/components/localization.js +207 -16
  193. package/dist/components/submitGtag.js +1 -3
  194. package/dist/components/zonos-address.js +0 -2
  195. package/dist/components/zonos-address2.js +2 -4
  196. package/dist/components/zonos-badge.js +0 -2
  197. package/dist/components/zonos-badge2.js +0 -2
  198. package/dist/components/zonos-banner.js +0 -2
  199. package/dist/components/zonos-banner2.js +2 -4
  200. package/dist/components/zonos-button.js +0 -2
  201. package/dist/components/zonos-button2.js +0 -2
  202. package/dist/components/zonos-card.js +0 -2
  203. package/dist/components/zonos-card2.js +0 -2
  204. package/dist/components/zonos-cart-items.js +0 -2
  205. package/dist/components/zonos-cart-items2.js +1 -3
  206. package/dist/components/zonos-cart-subtotal.js +0 -2
  207. package/dist/components/zonos-cart-subtotal2.js +2 -4
  208. package/dist/components/zonos-checkout-finish.js +0 -2
  209. package/dist/components/zonos-checkout-finish2.js +10 -5
  210. package/dist/components/zonos-checkout-payment.js +0 -2
  211. package/dist/components/zonos-checkout-payment2.js +1 -3
  212. package/dist/components/zonos-checkout.js +86 -47
  213. package/dist/components/zonos-collapse.js +0 -2
  214. package/dist/components/zonos-collapse2.js +0 -2
  215. package/dist/components/zonos-component.js +0 -2
  216. package/dist/components/zonos-controller.js +5 -9
  217. package/dist/components/zonos-country-flag.js +0 -2
  218. package/dist/components/zonos-country-flag2.js +1 -3
  219. package/dist/components/zonos-country-select.js +0 -2
  220. package/dist/components/zonos-country-select2.js +2 -4
  221. package/dist/components/zonos-custom-message.js +0 -2
  222. package/dist/components/zonos-custom-message2.js +0 -2
  223. package/dist/components/zonos-customer-info.js +0 -2
  224. package/dist/components/zonos-customer-info2.js +2 -4
  225. package/dist/components/zonos-dialog.js +0 -2
  226. package/dist/components/zonos-dialog2.js +1 -3
  227. package/dist/components/zonos-hello-dialog-footer.js +0 -2
  228. package/dist/components/zonos-hello-dialog-footer2.js +3 -5
  229. package/dist/components/zonos-hello-dialog.js +0 -2
  230. package/dist/components/zonos-hello-dialog2.js +28 -10
  231. package/dist/components/zonos-hello.js +251 -24
  232. package/dist/components/zonos-icon.js +0 -2
  233. package/dist/components/zonos-icon2.js +0 -2
  234. package/dist/components/zonos-link-authentication.js +0 -2
  235. package/dist/components/zonos-link-authentication2.js +1 -3
  236. package/dist/components/zonos-logo.js +0 -2
  237. package/dist/components/zonos-logo2.js +0 -2
  238. package/dist/components/zonos-notification.js +0 -2
  239. package/dist/components/zonos-notification2.js +0 -2
  240. package/dist/components/zonos-payment.js +0 -2
  241. package/dist/components/zonos-payment2.js +1 -3
  242. package/dist/components/zonos-review.js +0 -2
  243. package/dist/components/zonos-review2.js +3 -5
  244. package/dist/components/zonos-shipping-rich-radio.js +0 -2
  245. package/dist/components/zonos-shipping-rich-radio2.js +1 -3
  246. package/dist/components/zonos-shipping.js +0 -2
  247. package/dist/components/zonos-shipping2.js +1 -3
  248. package/dist/components/zonos-spinner.js +0 -2
  249. package/dist/components/zonos-spinner2.js +0 -2
  250. package/dist/components/zonos-text.js +0 -2
  251. package/dist/components/zonos-text2.js +0 -2
  252. package/dist/components/zonos-v-stack.js +0 -2
  253. package/dist/components/zonos-v-stack2.js +0 -2
  254. package/dist/components/zonosStore.js +6 -23
  255. package/dist/{zonos-elements/cart-2f83e048.js → esm/cart-cf46a264.js} +10 -10
  256. package/dist/esm/classes-0d95c529.js +0 -2
  257. package/dist/esm/{getBorderRadius-82fbaf25.js → getBorderRadius-278281bf.js} +1 -3
  258. package/dist/esm/getHasMoreSpaceOnRight-feba1ae2.js +0 -2
  259. package/dist/esm/index-d1aa9293.js +0 -2
  260. package/dist/esm/index.js +6 -3
  261. package/dist/esm/isColorVariable-4cda28c9.js +0 -2
  262. package/dist/esm/{isDarkColor-b21326ae.js → isDarkColor-8fd3a24e.js} +1 -3
  263. package/dist/esm/loader.js +1 -3
  264. package/dist/{zonos-elements/localization-4a424f49.js → esm/localization-add1d9e9.js} +208 -17
  265. package/dist/{zonos-elements/submitGtag-fbdb454b.js → esm/submitGtag-aa5fe441.js} +2 -4
  266. package/dist/esm/zonos-address_2.entry.js +5 -7
  267. package/dist/esm/zonos-badge.entry.js +0 -2
  268. package/dist/esm/zonos-banner.entry.js +62 -0
  269. package/dist/esm/zonos-button_2.entry.js +3 -5
  270. package/dist/esm/zonos-card_2.entry.js +0 -2
  271. package/dist/esm/zonos-cart-items_10.entry.js +20 -15
  272. package/dist/esm/zonos-checkout.entry.js +90 -50
  273. package/dist/esm/zonos-component.entry.js +0 -2
  274. package/dist/esm/zonos-controller.entry.js +8 -12
  275. package/dist/esm/zonos-country-flag_4.entry.js +6 -8
  276. package/dist/esm/zonos-elements.js +1 -3
  277. package/dist/esm/zonos-hello-dialog.entry.js +21 -10
  278. package/dist/esm/zonos-hello.entry.js +241 -24
  279. package/dist/esm/zonos-icon.entry.js +0 -2
  280. package/dist/esm/zonos-notification.entry.js +0 -2
  281. package/dist/esm/zonos-payment.entry.js +54 -0
  282. package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -5
  283. package/dist/esm/zonos-text.entry.js +0 -2
  284. package/dist/{zonos-elements/zonosStore-13a7b534.js → esm/zonosStore-e5291656.js} +6 -23
  285. package/dist/esm-es5/cart-cf46a264.js +1 -0
  286. package/dist/esm-es5/classes-0d95c529.js +1 -2
  287. package/dist/esm-es5/getBorderRadius-278281bf.js +1 -0
  288. package/dist/esm-es5/getHasMoreSpaceOnRight-feba1ae2.js +1 -2
  289. package/dist/esm-es5/index-d1aa9293.js +1 -2
  290. package/dist/esm-es5/index.js +1 -2
  291. package/dist/esm-es5/isColorVariable-4cda28c9.js +1 -2
  292. package/dist/esm-es5/{isDarkColor-b21326ae.js → isDarkColor-8fd3a24e.js} +1 -2
  293. package/dist/esm-es5/loader.js +1 -2
  294. package/dist/esm-es5/localization-add1d9e9.js +1 -0
  295. package/dist/esm-es5/{submitGtag-fbdb454b.js → submitGtag-aa5fe441.js} +1 -2
  296. package/dist/esm-es5/zonos-address_2.entry.js +1 -2
  297. package/dist/esm-es5/zonos-badge.entry.js +1 -2
  298. package/dist/esm-es5/zonos-banner.entry.js +1 -0
  299. package/dist/esm-es5/zonos-button_2.entry.js +1 -2
  300. package/dist/esm-es5/zonos-card_2.entry.js +1 -2
  301. package/dist/esm-es5/zonos-cart-items_10.entry.js +1 -2
  302. package/dist/esm-es5/zonos-checkout.entry.js +1 -2
  303. package/dist/esm-es5/zonos-component.entry.js +1 -2
  304. package/dist/esm-es5/zonos-controller.entry.js +1 -2
  305. package/dist/esm-es5/zonos-country-flag_4.entry.js +1 -2
  306. package/dist/esm-es5/zonos-elements.js +1 -2
  307. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -2
  308. package/dist/esm-es5/zonos-hello.entry.js +1 -2
  309. package/dist/esm-es5/zonos-icon.entry.js +1 -2
  310. package/dist/esm-es5/zonos-notification.entry.js +1 -2
  311. package/dist/esm-es5/zonos-payment.entry.js +1 -0
  312. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -2
  313. package/dist/esm-es5/zonos-text.entry.js +1 -2
  314. package/dist/esm-es5/zonosStore-e5291656.js +1 -0
  315. package/dist/scripts/loadStripe.js +6 -6
  316. package/dist/scripts/loadZonos.js +95 -35
  317. package/dist/scripts/stripe.js +5 -5
  318. package/dist/scripts/zonos.js +95 -35
  319. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +1 -4
  320. package/dist/types/components/hello/zonos-hello/zonos-hello.d.ts +24 -1
  321. package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog.d.ts +6 -0
  322. package/dist/types/components/store/checkout/cart.d.ts +13 -1
  323. package/dist/types/components/store/translationStore/strings.arabic.d.ts +9 -0
  324. package/dist/types/components/store/translationStore/strings.base.d.ts +9 -0
  325. package/dist/types/components/store/translationStore/strings.chinese.d.ts +9 -0
  326. package/dist/types/components/store/translationStore/strings.danish.d.ts +9 -0
  327. package/dist/types/components/store/translationStore/strings.dutch.d.ts +9 -0
  328. package/dist/types/components/store/translationStore/strings.french.d.ts +9 -0
  329. package/dist/types/components/store/translationStore/strings.german.d.ts +9 -0
  330. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +9 -0
  331. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +9 -0
  332. package/dist/types/components/store/translationStore/strings.italian.d.ts +9 -0
  333. package/dist/types/components/store/translationStore/strings.japanese.d.ts +9 -0
  334. package/dist/types/components/store/translationStore/strings.korean.d.ts +9 -0
  335. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +9 -0
  336. package/dist/types/components/store/translationStore/strings.polish.d.ts +9 -0
  337. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +9 -0
  338. package/dist/types/components/store/translationStore/strings.russian.d.ts +9 -0
  339. package/dist/types/components/store/translationStore/strings.spanish.d.ts +9 -0
  340. package/dist/types/components/store/translationStore/strings.swedish.d.ts +9 -0
  341. package/dist/types/components/store/translationStore/strings.turkish.d.ts +9 -0
  342. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +9 -0
  343. package/dist/types/components/store/zonosStore.d.ts +1 -1
  344. package/dist/types/components/utils/api/checkItemRestrictions.d.ts +22 -0
  345. package/dist/types/components/utils/api/getExchangeRate.d.ts +2 -1
  346. package/dist/types/components/utils/hello/detectItemRestrictions.d.ts +14 -0
  347. package/dist/types/components/utils/hello/getCurrentHelloLocalePage.d.ts +2 -1
  348. package/dist/types/components/utils/hello/getHasMoreSpaceAbove.d.ts +1 -0
  349. package/dist/types/components/utils/hello/getProductsOnPage.d.ts +2 -0
  350. package/dist/types/components/utils/hello/setZonosCountryUrlParam.d.ts +2 -0
  351. package/dist/types/components.d.ts +12 -8
  352. package/dist/types/environment.d.ts +17 -0
  353. package/dist/types/scripts/loadStripe.d.ts +1 -1
  354. package/dist/types/scripts/stripe.d.ts +2 -2
  355. package/dist/types/scripts/zonos.d.ts +8 -0
  356. package/dist/types/types/checkout/CheckoutConfig.d.ts +2 -1
  357. package/dist/types/types/generated/graphql.customer.types.d.ts +144 -1
  358. package/dist/types/types/generated/graphql.customer.types.ts +204 -1
  359. package/dist/types/types/generated/graphql.frontend.types.d.ts +0 -4
  360. package/dist/types/types/generated/graphql.frontend.types.ts +0 -1
  361. package/dist/types/types/hello/HelloConfig.d.ts +4 -0
  362. package/dist/types/types/hello/Product.d.ts +5 -0
  363. package/dist/types/types/hello/RestrictedItem.d.ts +6 -0
  364. package/dist/types/types/index.d.ts +1 -0
  365. package/dist/zonos-elements/assets/ChevronDownIcon.svg +1 -1
  366. package/dist/zonos-elements/assets/ChevronUpIcon.svg +1 -1
  367. package/dist/zonos-elements/assets/InfoIcon.svg +1 -1
  368. package/dist/zonos-elements/assets/LeftArrow.svg +1 -1
  369. package/dist/zonos-elements/assets/MessageIcon.svg +1 -1
  370. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  371. package/dist/zonos-elements/assets/SuccessIcon.svg +1 -1
  372. package/dist/zonos-elements/assets/bagIcon.svg +1 -1
  373. package/dist/zonos-elements/assets/messageIcon.svg +1 -1
  374. package/dist/zonos-elements/assets/moneyIcon.svg +1 -1
  375. package/dist/zonos-elements/assets/removeIcon.svg +1 -1
  376. package/dist/zonos-elements/index.esm.js +1 -3
  377. package/dist/zonos-elements/p-0190f7c4.entry.js +1 -0
  378. package/dist/zonos-elements/p-01990dcd.js +1 -0
  379. package/dist/zonos-elements/p-0636859b.js +1 -0
  380. package/dist/zonos-elements/p-083b951d.system.entry.js +1 -0
  381. package/dist/zonos-elements/p-0a33b542.system.js +1 -0
  382. package/dist/zonos-elements/p-0cd4b073.system.js +1 -0
  383. package/dist/zonos-elements/p-0f64d234.entry.js +1 -0
  384. package/dist/zonos-elements/p-1293796f.js +1 -0
  385. package/dist/zonos-elements/p-15b71f0b.system.entry.js +1 -0
  386. package/dist/zonos-elements/p-1781245e.system.js +1 -0
  387. package/dist/zonos-elements/p-1835470b.system.entry.js +1 -0
  388. package/dist/zonos-elements/p-18d37ad9.system.js +1 -0
  389. package/dist/zonos-elements/p-1b6d064d.system.js +1 -0
  390. package/dist/zonos-elements/p-23204b78.system.entry.js +1 -0
  391. package/dist/zonos-elements/{classes-ce25a814.system.js → p-23e7c655.system.js} +1 -2
  392. package/dist/zonos-elements/p-2b6325ab.entry.js +1 -0
  393. package/dist/zonos-elements/p-36425562.system.entry.js +1 -0
  394. package/dist/zonos-elements/p-43a25dab.entry.js +1 -0
  395. package/dist/zonos-elements/p-466bae3a.entry.js +1 -0
  396. package/dist/zonos-elements/{getHasMoreSpaceOnRight-5a9efd60.system.js → p-4a5096d2.system.js} +1 -2
  397. package/dist/zonos-elements/{isColorVariable-be454101.system.js → p-64fdb7b6.system.js} +1 -2
  398. package/dist/zonos-elements/{index-87193773.system.js → p-68d06767.system.js} +1 -2
  399. package/dist/zonos-elements/p-6bb67f2e.system.entry.js +1 -0
  400. package/dist/zonos-elements/p-6cd7a90e.system.js +1 -0
  401. package/dist/zonos-elements/p-6d82986c.system.entry.js +1 -0
  402. package/dist/zonos-elements/p-7bacecf7.entry.js +1 -0
  403. package/dist/zonos-elements/p-824395fd.system.entry.js +1 -0
  404. package/dist/zonos-elements/p-82ab16e2.js +1 -0
  405. package/dist/zonos-elements/p-847a1b9a.system.entry.js +1 -0
  406. package/dist/zonos-elements/p-86825d4a.js +1 -0
  407. package/dist/zonos-elements/p-8fa1244b.entry.js +1 -0
  408. package/dist/zonos-elements/p-9688bb12.entry.js +1 -0
  409. package/dist/zonos-elements/p-96fbce98.system.entry.js +1 -0
  410. package/dist/zonos-elements/p-98a6e093.system.entry.js +1 -0
  411. package/dist/zonos-elements/p-9d06e3a3.system.js +1 -0
  412. package/dist/zonos-elements/p-a014d540.entry.js +1 -0
  413. package/dist/zonos-elements/p-a3f394b7.system.entry.js +1 -0
  414. package/dist/zonos-elements/p-aed841bf.entry.js +1 -0
  415. package/dist/zonos-elements/p-b0a39955.js +1 -0
  416. package/dist/zonos-elements/p-b4b7f705.js +1 -0
  417. package/dist/zonos-elements/p-b618cf03.entry.js +1 -0
  418. package/dist/zonos-elements/p-b6c499d4.js +1 -0
  419. package/dist/zonos-elements/p-b75ffe64.system.entry.js +1 -0
  420. package/dist/zonos-elements/p-bb35713f.entry.js +1 -0
  421. package/dist/zonos-elements/p-c4eb37b5.entry.js +1 -0
  422. package/dist/zonos-elements/p-d0ecfe92.system.entry.js +1 -0
  423. package/dist/zonos-elements/p-dc8d7000.js +2 -0
  424. package/dist/zonos-elements/p-ddc11127.system.entry.js +1 -0
  425. package/dist/zonos-elements/p-de86c2e4.system.entry.js +1 -0
  426. package/dist/zonos-elements/p-e80aae7d.entry.js +1 -0
  427. package/dist/zonos-elements/p-eb6cc449.system.entry.js +1 -0
  428. package/dist/zonos-elements/p-ebb4de4e.entry.js +1 -0
  429. package/dist/zonos-elements/p-ee671d13.js +1 -0
  430. package/dist/zonos-elements/p-f5392f7e.entry.js +1 -0
  431. package/dist/zonos-elements/p-f8491335.system.js +1 -0
  432. package/dist/zonos-elements/p-f868ed42.entry.js +1 -0
  433. package/dist/zonos-elements/zonos-elements.esm.js +1 -20
  434. package/dist/zonos-elements/zonos-elements.js +1 -1
  435. package/package.json +1 -1
  436. package/dist/cjs/cart-108bc407.js.map +0 -1
  437. package/dist/cjs/classes-b7918f56.js.map +0 -1
  438. package/dist/cjs/getBorderRadius-2904800c.js.map +0 -1
  439. package/dist/cjs/getHasMoreSpaceOnRight-2855491b.js.map +0 -1
  440. package/dist/cjs/index-9542d2e7.js.map +0 -1
  441. package/dist/cjs/index.cjs.js.map +0 -1
  442. package/dist/cjs/isColorVariable-c1ed7303.js.map +0 -1
  443. package/dist/cjs/isDarkColor-a86b8a05.js.map +0 -1
  444. package/dist/cjs/loader.cjs.js.map +0 -1
  445. package/dist/cjs/localization-f6a1b679.js.map +0 -1
  446. package/dist/cjs/submitGtag-b1b96579.js.map +0 -1
  447. package/dist/cjs/zonos-address_2.cjs.entry.js.map +0 -1
  448. package/dist/cjs/zonos-badge.cjs.entry.js.map +0 -1
  449. package/dist/cjs/zonos-banner_2.cjs.entry.js +0 -120
  450. package/dist/cjs/zonos-banner_2.cjs.entry.js.map +0 -1
  451. package/dist/cjs/zonos-button_2.cjs.entry.js.map +0 -1
  452. package/dist/cjs/zonos-card_2.cjs.entry.js.map +0 -1
  453. package/dist/cjs/zonos-cart-items_10.cjs.entry.js.map +0 -1
  454. package/dist/cjs/zonos-checkout.cjs.entry.js.map +0 -1
  455. package/dist/cjs/zonos-component.cjs.entry.js.map +0 -1
  456. package/dist/cjs/zonos-controller.cjs.entry.js.map +0 -1
  457. package/dist/cjs/zonos-country-flag_4.cjs.entry.js.map +0 -1
  458. package/dist/cjs/zonos-elements.cjs.js.map +0 -1
  459. package/dist/cjs/zonos-hello-dialog.cjs.entry.js.map +0 -1
  460. package/dist/cjs/zonos-hello.cjs.entry.js.map +0 -1
  461. package/dist/cjs/zonos-icon.cjs.entry.js.map +0 -1
  462. package/dist/cjs/zonos-notification.cjs.entry.js.map +0 -1
  463. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js.map +0 -1
  464. package/dist/cjs/zonos-text.cjs.entry.js.map +0 -1
  465. package/dist/cjs/zonosStore-960e5542.js.map +0 -1
  466. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js.map +0 -1
  467. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js.map +0 -1
  468. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js.map +0 -1
  469. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js.map +0 -1
  470. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js.map +0 -1
  471. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js.map +0 -1
  472. package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js.map +0 -1
  473. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js.map +0 -1
  474. package/dist/collection/components/common/countries.js.map +0 -1
  475. package/dist/collection/components/common/zonos-badge/zonos-badge.js.map +0 -1
  476. package/dist/collection/components/common/zonos-banner/zonos-banner.js.map +0 -1
  477. package/dist/collection/components/common/zonos-button/zonos-button.js.map +0 -1
  478. package/dist/collection/components/common/zonos-card/zonos-card.js.map +0 -1
  479. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js.map +0 -1
  480. package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.js.map +0 -1
  481. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js.map +0 -1
  482. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js.map +0 -1
  483. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js.map +0 -1
  484. package/dist/collection/components/common/zonos-icon/zonos-icon.js.map +0 -1
  485. package/dist/collection/components/common/zonos-logo/zonos-logo.js.map +0 -1
  486. package/dist/collection/components/common/zonos-notification/zonos-notification.js.map +0 -1
  487. package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js.map +0 -1
  488. package/dist/collection/components/common/zonos-spinner/zonos-spinner.js.map +0 -1
  489. package/dist/collection/components/common/zonos-text/zonos-text.js.map +0 -1
  490. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js.map +0 -1
  491. package/dist/collection/components/component-template/zonos-component/zonos-component.js.map +0 -1
  492. package/dist/collection/components/hello/zonos-hello/zonos-hello.js.map +0 -1
  493. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js.map +0 -1
  494. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js.map +0 -1
  495. package/dist/collection/components/main/zonos-controller.js.map +0 -1
  496. package/dist/collection/components/store/checkout/cart.js.map +0 -1
  497. package/dist/collection/components/store/checkout/stripe.js.map +0 -1
  498. package/dist/collection/components/store/hello/localization.js.map +0 -1
  499. package/dist/collection/components/store/translationStore/strings.arabic.js.map +0 -1
  500. package/dist/collection/components/store/translationStore/strings.base.js.map +0 -1
  501. package/dist/collection/components/store/translationStore/strings.chinese.js.map +0 -1
  502. package/dist/collection/components/store/translationStore/strings.danish.js.map +0 -1
  503. package/dist/collection/components/store/translationStore/strings.dutch.js.map +0 -1
  504. package/dist/collection/components/store/translationStore/strings.french.js.map +0 -1
  505. package/dist/collection/components/store/translationStore/strings.german.js.map +0 -1
  506. package/dist/collection/components/store/translationStore/strings.hebrew.js.map +0 -1
  507. package/dist/collection/components/store/translationStore/strings.indonesian.js.map +0 -1
  508. package/dist/collection/components/store/translationStore/strings.italian.js.map +0 -1
  509. package/dist/collection/components/store/translationStore/strings.japanese.js.map +0 -1
  510. package/dist/collection/components/store/translationStore/strings.korean.js.map +0 -1
  511. package/dist/collection/components/store/translationStore/strings.norwegian.js.map +0 -1
  512. package/dist/collection/components/store/translationStore/strings.polish.js.map +0 -1
  513. package/dist/collection/components/store/translationStore/strings.portuguese.js.map +0 -1
  514. package/dist/collection/components/store/translationStore/strings.russian.js.map +0 -1
  515. package/dist/collection/components/store/translationStore/strings.spanish.js.map +0 -1
  516. package/dist/collection/components/store/translationStore/strings.swedish.js.map +0 -1
  517. package/dist/collection/components/store/translationStore/strings.turkish.js.map +0 -1
  518. package/dist/collection/components/store/translationStore/strings.vietnamese.js.map +0 -1
  519. package/dist/collection/components/store/translationStore.js.map +0 -1
  520. package/dist/collection/components/store/zonosStore.js.map +0 -1
  521. package/dist/collection/components/stripe/zonos-address/zonos-address.js.map +0 -1
  522. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js.map +0 -1
  523. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js.map +0 -1
  524. package/dist/collection/components/utils/addDays.js.map +0 -1
  525. package/dist/collection/components/utils/api/calculateLandedCost.js.map +0 -1
  526. package/dist/collection/components/utils/api/getCountries.js.map +0 -1
  527. package/dist/collection/components/utils/api/getCountryLandedCost.js.map +0 -1
  528. package/dist/collection/components/utils/api/getExchangeRate.js.map +0 -1
  529. package/dist/collection/components/utils/api/getLocaleMessages.js.map +0 -1
  530. package/dist/collection/components/utils/api/getLocalization.js.map +0 -1
  531. package/dist/collection/components/utils/api/getShippingZones.js.map +0 -1
  532. package/dist/collection/components/utils/api/getZonosSetting.js.map +0 -1
  533. package/dist/collection/components/utils/api/prepCalculateLandedCost.js.map +0 -1
  534. package/dist/collection/components/utils/changeDeepProperty.js.map +0 -1
  535. package/dist/collection/components/utils/changeDeepPropertyAtIndex.js.map +0 -1
  536. package/dist/collection/components/utils/checkout/initCheckout.js.map +0 -1
  537. package/dist/collection/components/utils/checkout/isCheckoutMobile.js.map +0 -1
  538. package/dist/collection/components/utils/classes.js.map +0 -1
  539. package/dist/collection/components/utils/darkenColor.js.map +0 -1
  540. package/dist/collection/components/utils/formatCurrency.js.map +0 -1
  541. package/dist/collection/components/utils/formatDate.js.map +0 -1
  542. package/dist/collection/components/utils/getBorderRadius.js.map +0 -1
  543. package/dist/collection/components/utils/getButtonTheme.js.map +0 -1
  544. package/dist/collection/components/utils/getDaysDifference.js.map +0 -1
  545. package/dist/collection/components/utils/handleFetch.js.map +0 -1
  546. package/dist/collection/components/utils/hello/currencyConversion/currencyConvert.js.map +0 -1
  547. package/dist/collection/components/utils/hello/currencyConversion/currencyConvertAndFormat.js.map +0 -1
  548. package/dist/collection/components/utils/hello/currencyConversion/currencyDisplay.js.map +0 -1
  549. package/dist/collection/components/utils/hello/currencyConversion/currencyFormat.js.map +0 -1
  550. package/dist/collection/components/utils/hello/currencyConversion/defaultCurrencyConverter.js.map +0 -1
  551. package/dist/collection/components/utils/hello/currencyConversion/getCurrencyCode.js.map +0 -1
  552. package/dist/collection/components/utils/hello/currencyConversion/getCurrencyElements.js.map +0 -1
  553. package/dist/collection/components/utils/hello/currencyConversion/getInitialElementAmount.js.map +0 -1
  554. package/dist/collection/components/utils/hello/currencyConversion/getLanguageCode.js.map +0 -1
  555. package/dist/collection/components/utils/hello/getCurrentHelloLocalePage.js.map +0 -1
  556. package/dist/collection/components/utils/hello/getHasMoreSpaceOnRight.js.map +0 -1
  557. package/dist/collection/components/utils/hello/initHello.js.map +0 -1
  558. package/dist/collection/components/utils/isColorVariable.js.map +0 -1
  559. package/dist/collection/components/utils/isDarkColor.js.map +0 -1
  560. package/dist/collection/components/utils/isValidSelector.js.map +0 -1
  561. package/dist/collection/components/utils/jsonParse.js.map +0 -1
  562. package/dist/collection/components/utils/lightenColor.js.map +0 -1
  563. package/dist/collection/components/utils/logging/log.js.map +0 -1
  564. package/dist/collection/components/utils/logging/logError.js.map +0 -1
  565. package/dist/collection/components/utils/mergeConfig.js.map +0 -1
  566. package/dist/collection/components/utils/submitGtag.js.map +0 -1
  567. package/dist/collection/environment.js.map +0 -1
  568. package/dist/collection/index.js.map +0 -1
  569. package/dist/collection/scripts/loadStripe.js.map +0 -1
  570. package/dist/collection/scripts/stripe.js.map +0 -1
  571. package/dist/collection/scripts/zonos.js.map +0 -1
  572. package/dist/collection/styles/stripe/addressRuleStyle.js.map +0 -1
  573. package/dist/collection/styles/stripe/defaultVariable.js.map +0 -1
  574. package/dist/collection/types/ICountryJson.js.map +0 -1
  575. package/dist/collection/types/JsonError.js.map +0 -1
  576. package/dist/collection/types/NoInfer.js.map +0 -1
  577. package/dist/collection/types/Translation.js.map +0 -1
  578. package/dist/collection/types/checkout/CheckoutConfig.js.map +0 -1
  579. package/dist/collection/types/checkout/api/CalculateLandedCostRequest.js.map +0 -1
  580. package/dist/collection/types/generated/graphql.customer.types.js.map +0 -1
  581. package/dist/collection/types/generated/graphql.frontend.types.js.map +0 -1
  582. package/dist/collection/types/hello/HelloConfig.js.map +0 -1
  583. package/dist/collection/types/index.js.map +0 -1
  584. package/dist/collection/types/online-store/OnlineStoreConfig.js.map +0 -1
  585. package/dist/collection/types/stripe/Apperance.js.map +0 -1
  586. package/dist/collection/types/styles/Color.js.map +0 -1
  587. package/dist/collection/types/styles/GridSpacing.js.map +0 -1
  588. package/dist/collection/types/styles/Text.js.map +0 -1
  589. package/dist/collection/types/utils/deep/IDeepKeyof.js.map +0 -1
  590. package/dist/collection/types/utils/deep/IDeepKeyofAtIndex.js.map +0 -1
  591. package/dist/collection/utils/format.js.map +0 -1
  592. package/dist/collection/utils/generateVercelDeployUrl.js.map +0 -1
  593. package/dist/components/classes.js.map +0 -1
  594. package/dist/components/formatCurrency.js.map +0 -1
  595. package/dist/components/getBorderRadius.js.map +0 -1
  596. package/dist/components/index.js.map +0 -1
  597. package/dist/components/isColorVariable.js.map +0 -1
  598. package/dist/components/isDarkColor.js.map +0 -1
  599. package/dist/components/localization.js.map +0 -1
  600. package/dist/components/stripe.js +0 -598
  601. package/dist/components/stripe.js.map +0 -1
  602. package/dist/components/submitGtag.js.map +0 -1
  603. package/dist/components/zonos-address.js.map +0 -1
  604. package/dist/components/zonos-address2.js.map +0 -1
  605. package/dist/components/zonos-badge.js.map +0 -1
  606. package/dist/components/zonos-badge2.js.map +0 -1
  607. package/dist/components/zonos-banner.js.map +0 -1
  608. package/dist/components/zonos-banner2.js.map +0 -1
  609. package/dist/components/zonos-button.js.map +0 -1
  610. package/dist/components/zonos-button2.js.map +0 -1
  611. package/dist/components/zonos-card.js.map +0 -1
  612. package/dist/components/zonos-card2.js.map +0 -1
  613. package/dist/components/zonos-cart-items.js.map +0 -1
  614. package/dist/components/zonos-cart-items2.js.map +0 -1
  615. package/dist/components/zonos-cart-subtotal.js.map +0 -1
  616. package/dist/components/zonos-cart-subtotal2.js.map +0 -1
  617. package/dist/components/zonos-checkout-finish.js.map +0 -1
  618. package/dist/components/zonos-checkout-finish2.js.map +0 -1
  619. package/dist/components/zonos-checkout-payment.js.map +0 -1
  620. package/dist/components/zonos-checkout-payment2.js.map +0 -1
  621. package/dist/components/zonos-checkout.js.map +0 -1
  622. package/dist/components/zonos-collapse.js.map +0 -1
  623. package/dist/components/zonos-collapse2.js.map +0 -1
  624. package/dist/components/zonos-component.js.map +0 -1
  625. package/dist/components/zonos-controller.js.map +0 -1
  626. package/dist/components/zonos-country-flag.js.map +0 -1
  627. package/dist/components/zonos-country-flag2.js.map +0 -1
  628. package/dist/components/zonos-country-select.js.map +0 -1
  629. package/dist/components/zonos-country-select2.js.map +0 -1
  630. package/dist/components/zonos-custom-message.js.map +0 -1
  631. package/dist/components/zonos-custom-message2.js.map +0 -1
  632. package/dist/components/zonos-customer-info.js.map +0 -1
  633. package/dist/components/zonos-customer-info2.js.map +0 -1
  634. package/dist/components/zonos-dialog.js.map +0 -1
  635. package/dist/components/zonos-dialog2.js.map +0 -1
  636. package/dist/components/zonos-hello-dialog-footer.js.map +0 -1
  637. package/dist/components/zonos-hello-dialog-footer2.js.map +0 -1
  638. package/dist/components/zonos-hello-dialog.js.map +0 -1
  639. package/dist/components/zonos-hello-dialog2.js.map +0 -1
  640. package/dist/components/zonos-hello.js.map +0 -1
  641. package/dist/components/zonos-icon.js.map +0 -1
  642. package/dist/components/zonos-icon2.js.map +0 -1
  643. package/dist/components/zonos-link-authentication.js.map +0 -1
  644. package/dist/components/zonos-link-authentication2.js.map +0 -1
  645. package/dist/components/zonos-logo.js.map +0 -1
  646. package/dist/components/zonos-logo2.js.map +0 -1
  647. package/dist/components/zonos-notification.js.map +0 -1
  648. package/dist/components/zonos-notification2.js.map +0 -1
  649. package/dist/components/zonos-payment.js.map +0 -1
  650. package/dist/components/zonos-payment2.js.map +0 -1
  651. package/dist/components/zonos-review.js.map +0 -1
  652. package/dist/components/zonos-review2.js.map +0 -1
  653. package/dist/components/zonos-shipping-rich-radio.js.map +0 -1
  654. package/dist/components/zonos-shipping-rich-radio2.js.map +0 -1
  655. package/dist/components/zonos-shipping.js.map +0 -1
  656. package/dist/components/zonos-shipping2.js.map +0 -1
  657. package/dist/components/zonos-spinner.js.map +0 -1
  658. package/dist/components/zonos-spinner2.js.map +0 -1
  659. package/dist/components/zonos-text.js.map +0 -1
  660. package/dist/components/zonos-text2.js.map +0 -1
  661. package/dist/components/zonos-v-stack.js.map +0 -1
  662. package/dist/components/zonos-v-stack2.js.map +0 -1
  663. package/dist/components/zonosStore.js.map +0 -1
  664. package/dist/esm/cart-2f83e048.js.map +0 -1
  665. package/dist/esm/classes-0d95c529.js.map +0 -1
  666. package/dist/esm/getBorderRadius-82fbaf25.js.map +0 -1
  667. package/dist/esm/getHasMoreSpaceOnRight-feba1ae2.js.map +0 -1
  668. package/dist/esm/index-d1aa9293.js.map +0 -1
  669. package/dist/esm/index.js.map +0 -1
  670. package/dist/esm/isColorVariable-4cda28c9.js.map +0 -1
  671. package/dist/esm/isDarkColor-b21326ae.js.map +0 -1
  672. package/dist/esm/loader.js.map +0 -1
  673. package/dist/esm/localization-4a424f49.js +0 -3374
  674. package/dist/esm/localization-4a424f49.js.map +0 -1
  675. package/dist/esm/submitGtag-fbdb454b.js +0 -26
  676. package/dist/esm/submitGtag-fbdb454b.js.map +0 -1
  677. package/dist/esm/zonos-address_2.entry.js.map +0 -1
  678. package/dist/esm/zonos-badge.entry.js.map +0 -1
  679. package/dist/esm/zonos-banner_2.entry.js +0 -115
  680. package/dist/esm/zonos-banner_2.entry.js.map +0 -1
  681. package/dist/esm/zonos-button_2.entry.js.map +0 -1
  682. package/dist/esm/zonos-card_2.entry.js.map +0 -1
  683. package/dist/esm/zonos-cart-items_10.entry.js.map +0 -1
  684. package/dist/esm/zonos-checkout.entry.js.map +0 -1
  685. package/dist/esm/zonos-component.entry.js.map +0 -1
  686. package/dist/esm/zonos-controller.entry.js.map +0 -1
  687. package/dist/esm/zonos-country-flag_4.entry.js.map +0 -1
  688. package/dist/esm/zonos-elements.js.map +0 -1
  689. package/dist/esm/zonos-hello-dialog.entry.js.map +0 -1
  690. package/dist/esm/zonos-hello.entry.js.map +0 -1
  691. package/dist/esm/zonos-icon.entry.js.map +0 -1
  692. package/dist/esm/zonos-notification.entry.js.map +0 -1
  693. package/dist/esm/zonos-shipping-rich-radio.entry.js.map +0 -1
  694. package/dist/esm/zonos-text.entry.js.map +0 -1
  695. package/dist/esm/zonosStore-13a7b534.js +0 -2639
  696. package/dist/esm/zonosStore-13a7b534.js.map +0 -1
  697. package/dist/esm-es5/cart-2f83e048.js +0 -2
  698. package/dist/esm-es5/cart-2f83e048.js.map +0 -1
  699. package/dist/esm-es5/classes-0d95c529.js.map +0 -1
  700. package/dist/esm-es5/getBorderRadius-82fbaf25.js +0 -2
  701. package/dist/esm-es5/getBorderRadius-82fbaf25.js.map +0 -1
  702. package/dist/esm-es5/getHasMoreSpaceOnRight-feba1ae2.js.map +0 -1
  703. package/dist/esm-es5/index-d1aa9293.js.map +0 -1
  704. package/dist/esm-es5/index.js.map +0 -1
  705. package/dist/esm-es5/isColorVariable-4cda28c9.js.map +0 -1
  706. package/dist/esm-es5/isDarkColor-b21326ae.js.map +0 -1
  707. package/dist/esm-es5/loader.js.map +0 -1
  708. package/dist/esm-es5/localization-4a424f49.js +0 -2
  709. package/dist/esm-es5/localization-4a424f49.js.map +0 -1
  710. package/dist/esm-es5/submitGtag-fbdb454b.js.map +0 -1
  711. package/dist/esm-es5/zonos-address_2.entry.js.map +0 -1
  712. package/dist/esm-es5/zonos-badge.entry.js.map +0 -1
  713. package/dist/esm-es5/zonos-banner_2.entry.js +0 -2
  714. package/dist/esm-es5/zonos-banner_2.entry.js.map +0 -1
  715. package/dist/esm-es5/zonos-button_2.entry.js.map +0 -1
  716. package/dist/esm-es5/zonos-card_2.entry.js.map +0 -1
  717. package/dist/esm-es5/zonos-cart-items_10.entry.js.map +0 -1
  718. package/dist/esm-es5/zonos-checkout.entry.js.map +0 -1
  719. package/dist/esm-es5/zonos-component.entry.js.map +0 -1
  720. package/dist/esm-es5/zonos-controller.entry.js.map +0 -1
  721. package/dist/esm-es5/zonos-country-flag_4.entry.js.map +0 -1
  722. package/dist/esm-es5/zonos-elements.js.map +0 -1
  723. package/dist/esm-es5/zonos-hello-dialog.entry.js.map +0 -1
  724. package/dist/esm-es5/zonos-hello.entry.js.map +0 -1
  725. package/dist/esm-es5/zonos-icon.entry.js.map +0 -1
  726. package/dist/esm-es5/zonos-notification.entry.js.map +0 -1
  727. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js.map +0 -1
  728. package/dist/esm-es5/zonos-text.entry.js.map +0 -1
  729. package/dist/esm-es5/zonosStore-13a7b534.js +0 -2
  730. package/dist/esm-es5/zonosStore-13a7b534.js.map +0 -1
  731. package/dist/zonos-elements/cart-2f83e048.js.map +0 -1
  732. package/dist/zonos-elements/cart-9780fa28.system.js +0 -2
  733. package/dist/zonos-elements/cart-9780fa28.system.js.map +0 -1
  734. package/dist/zonos-elements/classes-0d95c529.js +0 -14
  735. package/dist/zonos-elements/classes-0d95c529.js.map +0 -1
  736. package/dist/zonos-elements/classes-ce25a814.system.js.map +0 -1
  737. package/dist/zonos-elements/getBorderRadius-4fbe49de.system.js +0 -2
  738. package/dist/zonos-elements/getBorderRadius-4fbe49de.system.js.map +0 -1
  739. package/dist/zonos-elements/getBorderRadius-82fbaf25.js +0 -18
  740. package/dist/zonos-elements/getBorderRadius-82fbaf25.js.map +0 -1
  741. package/dist/zonos-elements/getHasMoreSpaceOnRight-5a9efd60.system.js.map +0 -1
  742. package/dist/zonos-elements/getHasMoreSpaceOnRight-feba1ae2.js +0 -10
  743. package/dist/zonos-elements/getHasMoreSpaceOnRight-feba1ae2.js.map +0 -1
  744. package/dist/zonos-elements/index-87193773.system.js.map +0 -1
  745. package/dist/zonos-elements/index-d1aa9293.js +0 -1884
  746. package/dist/zonos-elements/index-d1aa9293.js.map +0 -1
  747. package/dist/zonos-elements/index.esm.js.map +0 -1
  748. package/dist/zonos-elements/index.system.js +0 -2
  749. package/dist/zonos-elements/index.system.js.map +0 -1
  750. package/dist/zonos-elements/isColorVariable-4cda28c9.js +0 -16
  751. package/dist/zonos-elements/isColorVariable-4cda28c9.js.map +0 -1
  752. package/dist/zonos-elements/isColorVariable-be454101.system.js.map +0 -1
  753. package/dist/zonos-elements/isDarkColor-b21326ae.js +0 -1197
  754. package/dist/zonos-elements/isDarkColor-b21326ae.js.map +0 -1
  755. package/dist/zonos-elements/isDarkColor-dc2b7c8f.system.js +0 -2
  756. package/dist/zonos-elements/isDarkColor-dc2b7c8f.system.js.map +0 -1
  757. package/dist/zonos-elements/localization-3c43290f.system.js +0 -2
  758. package/dist/zonos-elements/localization-3c43290f.system.js.map +0 -1
  759. package/dist/zonos-elements/localization-4a424f49.js.map +0 -1
  760. package/dist/zonos-elements/submitGtag-23ecdc20.system.js +0 -2
  761. package/dist/zonos-elements/submitGtag-23ecdc20.system.js.map +0 -1
  762. package/dist/zonos-elements/submitGtag-fbdb454b.js.map +0 -1
  763. package/dist/zonos-elements/zonos-address_2.entry.js +0 -121
  764. package/dist/zonos-elements/zonos-address_2.entry.js.map +0 -1
  765. package/dist/zonos-elements/zonos-address_2.system.entry.js +0 -2
  766. package/dist/zonos-elements/zonos-address_2.system.entry.js.map +0 -1
  767. package/dist/zonos-elements/zonos-badge.entry.js +0 -32
  768. package/dist/zonos-elements/zonos-badge.entry.js.map +0 -1
  769. package/dist/zonos-elements/zonos-badge.system.entry.js +0 -2
  770. package/dist/zonos-elements/zonos-badge.system.entry.js.map +0 -1
  771. package/dist/zonos-elements/zonos-banner_2.entry.js +0 -115
  772. package/dist/zonos-elements/zonos-banner_2.entry.js.map +0 -1
  773. package/dist/zonos-elements/zonos-banner_2.system.entry.js +0 -2
  774. package/dist/zonos-elements/zonos-banner_2.system.entry.js.map +0 -1
  775. package/dist/zonos-elements/zonos-button_2.entry.js +0 -124
  776. package/dist/zonos-elements/zonos-button_2.entry.js.map +0 -1
  777. package/dist/zonos-elements/zonos-button_2.system.entry.js +0 -2
  778. package/dist/zonos-elements/zonos-button_2.system.entry.js.map +0 -1
  779. package/dist/zonos-elements/zonos-card_2.entry.js +0 -42
  780. package/dist/zonos-elements/zonos-card_2.entry.js.map +0 -1
  781. package/dist/zonos-elements/zonos-card_2.system.entry.js +0 -2
  782. package/dist/zonos-elements/zonos-card_2.system.entry.js.map +0 -1
  783. package/dist/zonos-elements/zonos-cart-items_10.entry.js +0 -494
  784. package/dist/zonos-elements/zonos-cart-items_10.entry.js.map +0 -1
  785. package/dist/zonos-elements/zonos-cart-items_10.system.entry.js +0 -2
  786. package/dist/zonos-elements/zonos-cart-items_10.system.entry.js.map +0 -1
  787. package/dist/zonos-elements/zonos-checkout.entry.js +0 -337
  788. package/dist/zonos-elements/zonos-checkout.entry.js.map +0 -1
  789. package/dist/zonos-elements/zonos-checkout.system.entry.js +0 -2
  790. package/dist/zonos-elements/zonos-checkout.system.entry.js.map +0 -1
  791. package/dist/zonos-elements/zonos-component.entry.js +0 -27
  792. package/dist/zonos-elements/zonos-component.entry.js.map +0 -1
  793. package/dist/zonos-elements/zonos-component.system.entry.js +0 -2
  794. package/dist/zonos-elements/zonos-component.system.entry.js.map +0 -1
  795. package/dist/zonos-elements/zonos-controller.entry.js +0 -165
  796. package/dist/zonos-elements/zonos-controller.entry.js.map +0 -1
  797. package/dist/zonos-elements/zonos-controller.system.entry.js +0 -2
  798. package/dist/zonos-elements/zonos-controller.system.entry.js.map +0 -1
  799. package/dist/zonos-elements/zonos-country-flag_4.entry.js +0 -1895
  800. package/dist/zonos-elements/zonos-country-flag_4.entry.js.map +0 -1
  801. package/dist/zonos-elements/zonos-country-flag_4.system.entry.js +0 -2
  802. package/dist/zonos-elements/zonos-country-flag_4.system.entry.js.map +0 -1
  803. package/dist/zonos-elements/zonos-elements.esm.js.map +0 -1
  804. package/dist/zonos-elements/zonos-elements.system.js +0 -2
  805. package/dist/zonos-elements/zonos-elements.system.js.map +0 -1
  806. package/dist/zonos-elements/zonos-hello-dialog.entry.js +0 -111
  807. package/dist/zonos-elements/zonos-hello-dialog.entry.js.map +0 -1
  808. package/dist/zonos-elements/zonos-hello-dialog.system.entry.js +0 -2
  809. package/dist/zonos-elements/zonos-hello-dialog.system.entry.js.map +0 -1
  810. package/dist/zonos-elements/zonos-hello.entry.js +0 -481
  811. package/dist/zonos-elements/zonos-hello.entry.js.map +0 -1
  812. package/dist/zonos-elements/zonos-hello.system.entry.js +0 -2
  813. package/dist/zonos-elements/zonos-hello.system.entry.js.map +0 -1
  814. package/dist/zonos-elements/zonos-icon.entry.js +0 -30
  815. package/dist/zonos-elements/zonos-icon.entry.js.map +0 -1
  816. package/dist/zonos-elements/zonos-icon.system.entry.js +0 -2
  817. package/dist/zonos-elements/zonos-icon.system.entry.js.map +0 -1
  818. package/dist/zonos-elements/zonos-notification.entry.js +0 -67
  819. package/dist/zonos-elements/zonos-notification.entry.js.map +0 -1
  820. package/dist/zonos-elements/zonos-notification.system.entry.js +0 -2
  821. package/dist/zonos-elements/zonos-notification.system.entry.js.map +0 -1
  822. package/dist/zonos-elements/zonos-shipping-rich-radio.entry.js +0 -50
  823. package/dist/zonos-elements/zonos-shipping-rich-radio.entry.js.map +0 -1
  824. package/dist/zonos-elements/zonos-shipping-rich-radio.system.entry.js +0 -2
  825. package/dist/zonos-elements/zonos-shipping-rich-radio.system.entry.js.map +0 -1
  826. package/dist/zonos-elements/zonos-text.entry.js +0 -156
  827. package/dist/zonos-elements/zonos-text.entry.js.map +0 -1
  828. package/dist/zonos-elements/zonos-text.system.entry.js +0 -2
  829. package/dist/zonos-elements/zonos-text.system.entry.js.map +0 -1
  830. package/dist/zonos-elements/zonosStore-13a7b534.js.map +0 -1
  831. package/dist/zonos-elements/zonosStore-77bcd7c0.system.js +0 -2
  832. package/dist/zonos-elements/zonosStore-77bcd7c0.system.js.map +0 -1
@@ -1,481 +0,0 @@
1
- import { r as registerInstance, h, H as Host } from './index-d1aa9293.js';
2
- import { _ as _root, i as isObjectLike_1, e as _baseGetTag, f as isObject_1, z as zonosStore, m as mergeConfig } from './zonosStore-13a7b534.js';
3
- import { t as translate, a as localizationStore, e as currencyDisplay, f as currencyConvertAndFormat, g as currencyConvert, j as currencyFormat, l as log } from './localization-4a424f49.js';
4
- import { c as classes } from './classes-0d95c529.js';
5
- import { g as getHasMoreSpaceOnRight } from './getHasMoreSpaceOnRight-feba1ae2.js';
6
-
7
- /**
8
- * Gets the timestamp of the number of milliseconds that have elapsed since
9
- * the Unix epoch (1 January 1970 00:00:00 UTC).
10
- *
11
- * @static
12
- * @memberOf _
13
- * @since 2.4.0
14
- * @category Date
15
- * @returns {number} Returns the timestamp.
16
- * @example
17
- *
18
- * _.defer(function(stamp) {
19
- * console.log(_.now() - stamp);
20
- * }, _.now());
21
- * // => Logs the number of milliseconds it took for the deferred invocation.
22
- */
23
- var now = function() {
24
- return _root.Date.now();
25
- };
26
-
27
- var now_1 = now;
28
-
29
- /** Used to match a single whitespace character. */
30
- var reWhitespace = /\s/;
31
-
32
- /**
33
- * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
34
- * character of `string`.
35
- *
36
- * @private
37
- * @param {string} string The string to inspect.
38
- * @returns {number} Returns the index of the last non-whitespace character.
39
- */
40
- function trimmedEndIndex(string) {
41
- var index = string.length;
42
-
43
- while (index-- && reWhitespace.test(string.charAt(index))) {}
44
- return index;
45
- }
46
-
47
- var _trimmedEndIndex = trimmedEndIndex;
48
-
49
- /** Used to match leading whitespace. */
50
- var reTrimStart = /^\s+/;
51
-
52
- /**
53
- * The base implementation of `_.trim`.
54
- *
55
- * @private
56
- * @param {string} string The string to trim.
57
- * @returns {string} Returns the trimmed string.
58
- */
59
- function baseTrim(string) {
60
- return string
61
- ? string.slice(0, _trimmedEndIndex(string) + 1).replace(reTrimStart, '')
62
- : string;
63
- }
64
-
65
- var _baseTrim = baseTrim;
66
-
67
- /** `Object#toString` result references. */
68
- var symbolTag = '[object Symbol]';
69
-
70
- /**
71
- * Checks if `value` is classified as a `Symbol` primitive or object.
72
- *
73
- * @static
74
- * @memberOf _
75
- * @since 4.0.0
76
- * @category Lang
77
- * @param {*} value The value to check.
78
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
79
- * @example
80
- *
81
- * _.isSymbol(Symbol.iterator);
82
- * // => true
83
- *
84
- * _.isSymbol('abc');
85
- * // => false
86
- */
87
- function isSymbol(value) {
88
- return typeof value == 'symbol' ||
89
- (isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
90
- }
91
-
92
- var isSymbol_1 = isSymbol;
93
-
94
- /** Used as references for various `Number` constants. */
95
- var NAN = 0 / 0;
96
-
97
- /** Used to detect bad signed hexadecimal string values. */
98
- var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
99
-
100
- /** Used to detect binary string values. */
101
- var reIsBinary = /^0b[01]+$/i;
102
-
103
- /** Used to detect octal string values. */
104
- var reIsOctal = /^0o[0-7]+$/i;
105
-
106
- /** Built-in method references without a dependency on `root`. */
107
- var freeParseInt = parseInt;
108
-
109
- /**
110
- * Converts `value` to a number.
111
- *
112
- * @static
113
- * @memberOf _
114
- * @since 4.0.0
115
- * @category Lang
116
- * @param {*} value The value to process.
117
- * @returns {number} Returns the number.
118
- * @example
119
- *
120
- * _.toNumber(3.2);
121
- * // => 3.2
122
- *
123
- * _.toNumber(Number.MIN_VALUE);
124
- * // => 5e-324
125
- *
126
- * _.toNumber(Infinity);
127
- * // => Infinity
128
- *
129
- * _.toNumber('3.2');
130
- * // => 3.2
131
- */
132
- function toNumber(value) {
133
- if (typeof value == 'number') {
134
- return value;
135
- }
136
- if (isSymbol_1(value)) {
137
- return NAN;
138
- }
139
- if (isObject_1(value)) {
140
- var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
141
- value = isObject_1(other) ? (other + '') : other;
142
- }
143
- if (typeof value != 'string') {
144
- return value === 0 ? value : +value;
145
- }
146
- value = _baseTrim(value);
147
- var isBinary = reIsBinary.test(value);
148
- return (isBinary || reIsOctal.test(value))
149
- ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
150
- : (reIsBadHex.test(value) ? NAN : +value);
151
- }
152
-
153
- var toNumber_1 = toNumber;
154
-
155
- /** Error message constants. */
156
- var FUNC_ERROR_TEXT = 'Expected a function';
157
-
158
- /* Built-in method references for those with the same name as other `lodash` methods. */
159
- var nativeMax = Math.max,
160
- nativeMin = Math.min;
161
-
162
- /**
163
- * Creates a debounced function that delays invoking `func` until after `wait`
164
- * milliseconds have elapsed since the last time the debounced function was
165
- * invoked. The debounced function comes with a `cancel` method to cancel
166
- * delayed `func` invocations and a `flush` method to immediately invoke them.
167
- * Provide `options` to indicate whether `func` should be invoked on the
168
- * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
169
- * with the last arguments provided to the debounced function. Subsequent
170
- * calls to the debounced function return the result of the last `func`
171
- * invocation.
172
- *
173
- * **Note:** If `leading` and `trailing` options are `true`, `func` is
174
- * invoked on the trailing edge of the timeout only if the debounced function
175
- * is invoked more than once during the `wait` timeout.
176
- *
177
- * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
178
- * until to the next tick, similar to `setTimeout` with a timeout of `0`.
179
- *
180
- * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
181
- * for details over the differences between `_.debounce` and `_.throttle`.
182
- *
183
- * @static
184
- * @memberOf _
185
- * @since 0.1.0
186
- * @category Function
187
- * @param {Function} func The function to debounce.
188
- * @param {number} [wait=0] The number of milliseconds to delay.
189
- * @param {Object} [options={}] The options object.
190
- * @param {boolean} [options.leading=false]
191
- * Specify invoking on the leading edge of the timeout.
192
- * @param {number} [options.maxWait]
193
- * The maximum time `func` is allowed to be delayed before it's invoked.
194
- * @param {boolean} [options.trailing=true]
195
- * Specify invoking on the trailing edge of the timeout.
196
- * @returns {Function} Returns the new debounced function.
197
- * @example
198
- *
199
- * // Avoid costly calculations while the window size is in flux.
200
- * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
201
- *
202
- * // Invoke `sendMail` when clicked, debouncing subsequent calls.
203
- * jQuery(element).on('click', _.debounce(sendMail, 300, {
204
- * 'leading': true,
205
- * 'trailing': false
206
- * }));
207
- *
208
- * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
209
- * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
210
- * var source = new EventSource('/stream');
211
- * jQuery(source).on('message', debounced);
212
- *
213
- * // Cancel the trailing debounced invocation.
214
- * jQuery(window).on('popstate', debounced.cancel);
215
- */
216
- function debounce(func, wait, options) {
217
- var lastArgs,
218
- lastThis,
219
- maxWait,
220
- result,
221
- timerId,
222
- lastCallTime,
223
- lastInvokeTime = 0,
224
- leading = false,
225
- maxing = false,
226
- trailing = true;
227
-
228
- if (typeof func != 'function') {
229
- throw new TypeError(FUNC_ERROR_TEXT);
230
- }
231
- wait = toNumber_1(wait) || 0;
232
- if (isObject_1(options)) {
233
- leading = !!options.leading;
234
- maxing = 'maxWait' in options;
235
- maxWait = maxing ? nativeMax(toNumber_1(options.maxWait) || 0, wait) : maxWait;
236
- trailing = 'trailing' in options ? !!options.trailing : trailing;
237
- }
238
-
239
- function invokeFunc(time) {
240
- var args = lastArgs,
241
- thisArg = lastThis;
242
-
243
- lastArgs = lastThis = undefined;
244
- lastInvokeTime = time;
245
- result = func.apply(thisArg, args);
246
- return result;
247
- }
248
-
249
- function leadingEdge(time) {
250
- // Reset any `maxWait` timer.
251
- lastInvokeTime = time;
252
- // Start the timer for the trailing edge.
253
- timerId = setTimeout(timerExpired, wait);
254
- // Invoke the leading edge.
255
- return leading ? invokeFunc(time) : result;
256
- }
257
-
258
- function remainingWait(time) {
259
- var timeSinceLastCall = time - lastCallTime,
260
- timeSinceLastInvoke = time - lastInvokeTime,
261
- timeWaiting = wait - timeSinceLastCall;
262
-
263
- return maxing
264
- ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
265
- : timeWaiting;
266
- }
267
-
268
- function shouldInvoke(time) {
269
- var timeSinceLastCall = time - lastCallTime,
270
- timeSinceLastInvoke = time - lastInvokeTime;
271
-
272
- // Either this is the first call, activity has stopped and we're at the
273
- // trailing edge, the system time has gone backwards and we're treating
274
- // it as the trailing edge, or we've hit the `maxWait` limit.
275
- return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
276
- (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
277
- }
278
-
279
- function timerExpired() {
280
- var time = now_1();
281
- if (shouldInvoke(time)) {
282
- return trailingEdge(time);
283
- }
284
- // Restart the timer.
285
- timerId = setTimeout(timerExpired, remainingWait(time));
286
- }
287
-
288
- function trailingEdge(time) {
289
- timerId = undefined;
290
-
291
- // Only invoke if we have `lastArgs` which means `func` has been
292
- // debounced at least once.
293
- if (trailing && lastArgs) {
294
- return invokeFunc(time);
295
- }
296
- lastArgs = lastThis = undefined;
297
- return result;
298
- }
299
-
300
- function cancel() {
301
- if (timerId !== undefined) {
302
- clearTimeout(timerId);
303
- }
304
- lastInvokeTime = 0;
305
- lastArgs = lastCallTime = lastThis = timerId = undefined;
306
- }
307
-
308
- function flush() {
309
- return timerId === undefined ? result : trailingEdge(now_1());
310
- }
311
-
312
- function debounced() {
313
- var time = now_1(),
314
- isInvoking = shouldInvoke(time);
315
-
316
- lastArgs = arguments;
317
- lastThis = this;
318
- lastCallTime = time;
319
-
320
- if (isInvoking) {
321
- if (timerId === undefined) {
322
- return leadingEdge(lastCallTime);
323
- }
324
- if (maxing) {
325
- // Handle invocations in a tight loop.
326
- clearTimeout(timerId);
327
- timerId = setTimeout(timerExpired, wait);
328
- return invokeFunc(lastCallTime);
329
- }
330
- }
331
- if (timerId === undefined) {
332
- timerId = setTimeout(timerExpired, wait);
333
- }
334
- return result;
335
- }
336
- debounced.cancel = cancel;
337
- debounced.flush = flush;
338
- return debounced;
339
- }
340
-
341
- var debounce_1 = debounce;
342
-
343
- const zonosHelloCss = ":host{font-family:Inter;display:block}: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:inline-block}:host .zonos--hello-wrapper{position:relative}:host .zonos--hello-wrapper .zonos--hello-dialog-wrapper-mobile-override{position:fixed;bottom:0;left:0;width:100vw;z-index:1001;height:0}@media (max-width: 768px){:host .zonos--hello-wrapper{position:fixed;bottom:0;left:0;width:100vw;z-index:1001;height:0}}:host .zonos--hello-widget{-webkit-transition:all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);transition:all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);padding:6px;border-radius:30px;background:var(--amino-page-background);font-size:var(--amino-font-size-s);border:var(--amino-border);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;cursor:pointer;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;z-index:1000}:host .zonos--hello-widget>.zonos--hello-message{-ms-flex-order:0;order:0;width:100%;max-width:0;height:100%;white-space:nowrap;-webkit-transition:border 0.3s ease-in, all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);transition:border 0.3s ease-in, all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);overflow:hidden;color:var(--amino-text-color);position:absolute;background:var(--amino-page-background);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-top-left-radius:30px;border-bottom-left-radius:30px;left:0;-webkit-transform:translateX(calc(-100% + var(--amino-space-16)));transform:translateX(calc(-100% + var(--amino-space-16)));width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border-top:var(--amino-border);border-bottom:var(--amino-border)}:host .zonos--hello-widget.zonos--hello-show-peek-message{max-width:100vw;width:100%}:host .zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{max-width:100vw;padding:0 6px;padding-right:var(--amino-space-16);border:var(--amino-border)}:host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left){border-top-left-radius:0;border-bottom-left-radius:0}:host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left)>.zonos--hello-message{border-right:none}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left{border-top-right-radius:0;border-bottom-right-radius:0}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{border-left:0}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:var(--amino-space-16);padding-right:6px;border-left:none}:host .zonos--hello-widget.zonos--hello-widget-animate-from-left>.zonos--hello-message{-ms-flex-order:1;order:1;-webkit-transform:translateX(calc(100% - var(--amino-space-16)));transform:translateX(calc(100% - var(--amino-space-16)));right:0;left:auto;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:30px;border-bottom-right-radius:30px}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper .zonos--hello-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--amino-v3-shadow-medium);box-shadow:var(--amino-v3-shadow-medium);z-index:10;justify-self:center}@media (max-width: 768px){:host .zonos--hello-widget .zonos--hello-country-flag-wrapper .zonos--hello-country-flag{border-radius:var(--amino-radius-4);width:24px}}@media (max-width: 768px){:host .zonos--hello-widget{position:fixed;bottom:var(--amino-space-32);right:var(--amino-space-32);border-radius:var(--amino-radius-4);padding:var(--amino-space-4);border:1px solid transparent}:host .zonos--hello-widget.zonos--hello-widget-left{left:var(--amino-space-32);right:auto}:host .zonos--hello-widget.zonos--hello-widget-top{bottom:auto;top:var(--amino-space-32)}:host .zonos--hello-widget>.zonos--hello-message{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-radius:30px;top:0;bottom:0;left:0;-webkit-transform:translateX(0);transform:translateX(0);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border:none}:host .zonos--hello-widget.zonos--hello-widget-animate-from-left>.zonos--hello-message{-webkit-transform:translateX(0);transform:translateX(0)}:host .zonos--hello-widget.zonos--hello-show-peek-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}:host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left){border-top-left-radius:var(--amino-radius-4);border-bottom-left-radius:var(--amino-radius-4)}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left{border-top-right-radius:var(--amino-radius-4);border-bottom-right-radius:var(--amino-radius-4)}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:var(--amino-space-8);padding-right:var(--amino-space-4)}:host .zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{padding:0 var(--amino-radius-4);padding-right:6px;border:none}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper{border-radius:var(--amino-radius-4)}}:host .zonos--hello-mobile-override.zonos--hello-widget{position:fixed;bottom:var(--amino-space-32);right:var(--amino-space-32);border-radius:var(--amino-radius-4);padding:var(--amino-space-4);border:1px solid transparent}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-left{left:var(--amino-space-32);right:auto}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-top{bottom:auto;top:var(--amino-space-32)}:host .zonos--hello-mobile-override.zonos--hello-widget>.zonos--hello-message{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-radius:30px;top:0;bottom:0;left:0;-webkit-transform:translateX(0);transform:translateX(0);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border:none}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-animate-from-left>.zonos--hello-message{-webkit-transform:translateX(0);transform:translateX(0)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left){border-top-left-radius:var(--amino-radius-4);border-bottom-left-radius:var(--amino-radius-4)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left{border-top-right-radius:var(--amino-radius-4);border-bottom-right-radius:var(--amino-radius-4)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:var(--amino-space-8);padding-right:var(--amino-space-4)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{padding:0 var(--amino-radius-4);padding-right:6px;border:none}:host .zonos--hello-mobile-override.zonos--hello-widget .zonos--hello-country-flag-wrapper{border-radius:var(--amino-radius-4)}:host .zonos--hello-mobile-override.zonos--hello-widget .zonos--hello-country-flag{border-radius:var(--amino-radius-4);width:24px}";
344
-
345
- const ZonosHello = class {
346
- constructor(hostRef) {
347
- registerInstance(this, hostRef);
348
- this.getHelloPeekMessage = () => {
349
- switch (zonosStore.currentHelloPage) {
350
- case 'cart':
351
- return translate(`Prepay duties and taxes at checkout`);
352
- case 'productList':
353
- case 'productDetail':
354
- return translate(`See duty and tax thresholds`);
355
- default:
356
- return `${translate('Welcome to')} ${zonosStore.organizationName}`;
357
- }
358
- };
359
- this.enableShowPeekMessage = () => {
360
- if (this.peekMessage) {
361
- this.showPeekMessage = true;
362
- }
363
- };
364
- this.changeShowDialog = (value) => {
365
- this.showDialog = value;
366
- };
367
- this.shouldAnimateLeftDesktop = () => {
368
- // Get element position (relative = desktop, fixed = mobile)
369
- const elPosition = this.helloRef && getComputedStyle(this.helloRef).position;
370
- // If relative position, determine if peek message should animate left or right. Mobile is pre-determined.
371
- if (this.helloRef && elPosition === 'relative') {
372
- const hasMoreSpaceOnRight = getHasMoreSpaceOnRight(this.helloRef);
373
- // Determine peek message direction
374
- return hasMoreSpaceOnRight;
375
- }
376
- };
377
- this.mobileLocationOverride = undefined;
378
- this.animateFromLeftOverride = undefined;
379
- this.appearanceSettingsOverride = undefined;
380
- this.showPeekMessage = false;
381
- this.zonosStoreHelloSettings = zonosStore.helloSettings;
382
- this.showDialog = false;
383
- this.peekMessage = '';
384
- }
385
- componentDidLoad() {
386
- const initInterval = setInterval(() => {
387
- if (!this.helloRef) {
388
- return;
389
- }
390
- if (zonosStore.loadedConfig) {
391
- this.helloRef.setAttribute('data-zonos-hello-loaded', '');
392
- this.peekMessage = this.getHelloPeekMessage();
393
- const { peekMessageBehavior, peekMessageDelay } = zonosStore.helloSettings;
394
- // peek message delay is passed in seconds, but setTimeout expects milliseconds
395
- const peekMessageDelayToUse = peekMessageDelay * 1000;
396
- if (peekMessageBehavior === 'ENABLED') {
397
- setTimeout(() => {
398
- this.enableShowPeekMessage();
399
- setTimeout(() => {
400
- this.showPeekMessage = false;
401
- }, 3000);
402
- }, peekMessageDelayToUse);
403
- }
404
- clearInterval(initInterval);
405
- }
406
- }, 100);
407
- }
408
- /**
409
- * This method will trigger the currency conversion and display the converted value
410
- * @returns void
411
- */
412
- async displayCurrency() {
413
- if (!localizationStore.exchangeRate) {
414
- // eslint-disable-next-line no-console
415
- console.error('Could not display currency. Exchange rate and format data is not available.');
416
- return;
417
- }
418
- currencyDisplay();
419
- }
420
- /**
421
- * This method will call convert and format, and return the converted and formatted string
422
- * @returns string
423
- */
424
- async convertAndFormat(value) {
425
- currencyConvertAndFormat(value);
426
- }
427
- /**
428
- * This method will convert the currency and return the converted value
429
- * @returns number
430
- */
431
- async convert(value) {
432
- currencyConvert(value);
433
- }
434
- /**
435
- * This method will format the currency and return the formatted string
436
- * @returns number
437
- */
438
- async format(value) {
439
- currencyFormat(value);
440
- }
441
- handleResize() {
442
- debounce_1(this.render.bind(this), 500);
443
- }
444
- render() {
445
- var _a;
446
- const isExcludedUrl = (_a = zonosStore.helloSettings.excludedUrlPatterns) === null || _a === void 0 ? void 0 : _a.some(pattern => new RegExp(pattern).test(window.location.href));
447
- if (isExcludedUrl) {
448
- log('Hello is excluded on this url', 'warn');
449
- return null;
450
- }
451
- const { selectedCountryCode } = localizationStore;
452
- const mobileLocation = this.mobileLocationOverride || zonosStore.helloSettings.mobileLocation;
453
- const isMobileWindow = window.innerWidth < 768;
454
- const isOnLeft = this.animateFromLeftOverride ||
455
- (isMobileWindow && mobileLocation.includes('LEFT')) ||
456
- this.shouldAnimateLeftDesktop() ||
457
- false;
458
- const isOnTop = mobileLocation.includes('TOP');
459
- const appearanceSettings = mergeConfig(zonosStore.appearance, this.appearanceSettingsOverride);
460
- const { theme } = appearanceSettings;
461
- return (h(Host, { class: "zonos--hello zonos--elements", "data-theme": theme }, selectedCountryCode && (h("div", { class: "zonos--hello-wrapper" }, h("button", { class: classes([
462
- 'zonos--hello-widget',
463
- this.showPeekMessage && 'zonos--hello-show-peek-message',
464
- this.mobileLocationOverride && 'zonos--hello-mobile-override',
465
- isOnLeft &&
466
- 'zonos--hello-widget-left zonos--hello-widget-animate-from-left',
467
- isOnTop && 'zonos--hello-widget-top',
468
- ]), onClick: () => {
469
- this.changeShowDialog(!this.showDialog);
470
- }, onMouseEnter: () => this.enableShowPeekMessage(), onMouseLeave: () => (this.showPeekMessage = false), ref: el => el && (this.helloRef = el) }, h("span", { class: "zonos--hello-message" }, this.peekMessage), selectedCountryCode && (h("div", { class: "zonos--hello-country-flag-wrapper" }, h("zonos-country-flag", { class: "zonos--hello-country-flag", countryCode: selectedCountryCode })))), h("div", { class: classes([
471
- 'zonos--hello-dialog-wrapper',
472
- this.mobileLocationOverride &&
473
- 'zonos--hello-dialog-wrapper-mobile-override',
474
- ]), style: { height: this.showDialog ? 'fit-content' : '0px' } }, h("zonos-hello-dialog", { animateFromLeftOverride: this.animateFromLeftOverride, appearanceSettings: appearanceSettings, isOpen: this.showDialog, mobileLocationOverride: this.mobileLocationOverride, setIsOpen: this.changeShowDialog }))))));
475
- }
476
- };
477
- ZonosHello.style = zonosHelloCss;
478
-
479
- export { ZonosHello as zonos_hello };
480
-
481
- //# sourceMappingURL=zonos-hello.entry.js.map
@@ -1 +0,0 @@
1
- {"file":"zonos-hello.entry.esm.js","mappings":";;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,GAAG,GAAG,WAAW;AACrB,EAAE,OAAOA,KAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;AACzB,CAAC,CAAC;AACF;AACA,SAAc,GAAG,GAAG;;ACtBpB;AACA,IAAI,YAAY,GAAG,IAAI,CAAC;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,eAAe,CAAC,MAAM,EAAE;AACjC,EAAE,IAAI,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC;AAC5B;AACA,EAAE,OAAO,KAAK,EAAE,IAAI,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE;AAC/D,EAAE,OAAO,KAAK,CAAC;AACf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AqB;QACrB,IAAI,CAAC,eAAe,IAAI,gCAAgC;QACxD,IAAI,CAAC,sBAAsB,IAAI,8BAA8B;QAC7D,QAAQ;UACN,gEAAgE;QAClE,OAAO,IAAI,yBAAyB;OACrC,CAAC,EACF,OAAO,EAAE;QACP,IAAI,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;OACzC,EACD,YAAY,EAAE,MAAM,IAAI,CAAC,qBAAqB,EAAE,EAChD,YAAY,EAAE,OAAO,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC,EAClD,GAAG,EAAE,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC,IAErC,YAAM,KAAK,EAAC,sBAAsB,IAAE,IAAI,CAAC,WAAW,CAAQ,EAE3D,mBAAmB,KAClB,WAAK,KAAK,EAAC,mCAAmC,IAC5C,0BACE,KAAK,EAAC,2BAA2B,EACjC,WAAW,EAAE,mBAAmB,GACZ,CAClB,CACP,CACM,EAET,WACE,KAAK,EAAE,OAAO,CAAC;QACb,6BAA6B;QAC7B,IAAI,CAAC,sBAAsB;UACzB,6CAA6C;OAChD,CAAC,EACF,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,UAAU,GAAG,aAAa,GAAG,KAAK,EAAE,IAE1D,0BACE,uBAAuB,EAAE,IAAI,CAAC,uBAAuB,EACrD,kBAAkB,EAAE,kBAAkB,EACtC,MAAM,EAAE,IAAI,CAAC,UAAU,EACvB,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,EACnD,SAAS,EAAE,IAAI,CAAC,gBAAgB,GACZ,CAClB,CACF,CACP,CACI,EACP;GACH;;;;;;","names":["root","trimmedEndIndex","isObjectLike","baseGetTag","isSymbol","isObject","baseTrim","toNumber","now","debounce"],"sources":["node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/now.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTrim.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toNumber.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/debounce.js","src/components/hello/zonos-hello/zonos-hello.scss?tag=zonos-hello&encapsulation=shadow","src/components/hello/zonos-hello/zonos-hello.tsx"],"sourcesContent":["var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n",":host {\n display: inline-block;\n\n .zonos--hello-wrapper {\n position: relative;\n\n .zonos--hello-dialog-wrapper-mobile-override {\n @include zonos--hello-dialog-wrapper-mobile;\n }\n @media (max-width: 768px) {\n @include zonos--hello-dialog-wrapper-mobile;\n }\n }\n\n .zonos--hello-widget {\n // Base CSS is catered to the right positioned widget (animating in from the right)\n transition: all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);\n padding: 6px;\n border-radius: 30px;\n background: $amino-page-background;\n font-size: $amino-font-size-s;\n border: $amino-border;\n display: flex;\n align-items: center;\n cursor: pointer;\n height: fit-content;\n width: fit-content;\n position: relative;\n z-index: 1000;\n\n > .zonos--hello-message {\n order: 0; // Position text on the left\n width: 100%;\n max-width: 0;\n height: 100%;\n white-space: nowrap;\n transition: border 0.3s ease-in,\n all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);\n overflow: hidden;\n color: $amino-text-color;\n position: absolute;\n background: $amino-page-background;\n display: flex;\n align-items: center;\n border-top-left-radius: 30px;\n border-bottom-left-radius: 30px;\n left: 0;\n transform: translateX(calc(-100% + $amino-space-16));\n width: fit-content;\n border-top: $amino-border;\n border-bottom: $amino-border;\n }\n\n &.zonos--hello-show-peek-message {\n max-width: 100vw;\n width: 100%;\n\n > .zonos--hello-message {\n max-width: 100vw;\n padding: 0 6px;\n padding-right: $amino-space-16;\n border: $amino-border;\n }\n\n &:not(.zonos--hello-widget-animate-from-left) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n\n > .zonos--hello-message {\n border-right: none;\n }\n }\n\n &.zonos--hello-widget-animate-from-left {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n > .zonos--hello-message {\n border-left: 0;\n }\n\n > .zonos--hello-message {\n padding-left: $amino-space-16;\n padding-right: 6px;\n border-left: none;\n }\n }\n }\n\n &.zonos--hello-widget-animate-from-left {\n > .zonos--hello-message {\n order: 1; // Position text on the right\n transform: translateX(calc(100% - $amino-space-16));\n right: 0;\n left: auto;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n border-top-right-radius: 30px;\n border-bottom-right-radius: 30px;\n }\n }\n\n .zonos--hello-country-flag-wrapper {\n display: flex;\n justify-content: center;\n\n .zonos--hello-country-flag {\n @include zonos--hello-country-flag;\n\n @media (max-width: 768px) {\n @include zonos--hello-country-flag-mobile;\n }\n }\n }\n\n // Mobile styles (fixed position)\n @media (max-width: 768px) {\n @include zonos--hello-widget-mobile;\n }\n }\n\n // Apply mobile styles on mobile override prop\n .zonos--hello-mobile-override {\n &.zonos--hello-widget {\n @include zonos--hello-widget-mobile;\n\n .zonos--hello-country-flag {\n @include zonos--hello-country-flag-mobile;\n }\n }\n }\n}\n","import { Component, h, Host, Listen, Method, Prop, State } from '@stencil/core';\nimport debounce from 'lodash/debounce';\n\nimport { localizationStore } from 'src/components/store/hello/localization';\nimport { translate } from 'src/components/store/translationStore';\nimport {\n type AppearanceConfig,\n zonosStore,\n} from 'src/components/store/zonosStore';\nimport { classes } from 'src/components/utils/classes';\nimport { currencyConvert } from 'src/components/utils/hello/currencyConversion/currencyConvert';\nimport { currencyConvertAndFormat } from 'src/components/utils/hello/currencyConversion/currencyConvertAndFormat';\nimport { currencyDisplay } from 'src/components/utils/hello/currencyConversion/currencyDisplay';\nimport { currencyFormat } from 'src/components/utils/hello/currencyConversion/currencyFormat';\nimport { getHasMoreSpaceOnRight } from 'src/components/utils/hello/getHasMoreSpaceOnRight';\nimport { log } from 'src/components/utils/logging/log';\nimport { mergeConfig } from 'src/components/utils/mergeConfig';\nimport type { HelloMobileLocation } from 'src/types/generated/graphql.customer.types';\n\n@Component({\n shadow: true,\n styleUrl: 'zonos-hello.scss',\n tag: 'zonos-hello',\n})\nexport class ZonosHello {\n private helloRef?: HTMLButtonElement;\n\n /**\n * Force mobile styling instead of media query and use the passed location value\n * @default false\n */\n @Prop() mobileLocationOverride?: HelloMobileLocation;\n /**\n * Force left animation instead of detecting which side has more space\n * @default false\n */\n @Prop() animateFromLeftOverride?: boolean;\n /**\n * Override the appearance settings\n */\n @Prop() appearanceSettingsOverride?: Partial<AppearanceConfig>;\n\n @State() showPeekMessage: boolean = false;\n @State() zonosStoreHelloSettings = zonosStore.helloSettings;\n @State() showDialog: boolean = false;\n @State() peekMessage: string | null = '';\n\n private getHelloPeekMessage = () => {\n switch (zonosStore.currentHelloPage) {\n case 'cart':\n return translate(`Prepay duties and taxes at checkout`);\n case 'productList':\n case 'productDetail':\n return translate(`See duty and tax thresholds`);\n\n default:\n return `${translate('Welcome to')} ${zonosStore.organizationName}`;\n }\n };\n\n private enableShowPeekMessage = () => {\n if (this.peekMessage) {\n this.showPeekMessage = true;\n }\n };\n\n componentDidLoad() {\n const initInterval = setInterval(() => {\n if (!this.helloRef) {\n return;\n }\n if (zonosStore.loadedConfig) {\n this.helloRef.setAttribute('data-zonos-hello-loaded', '');\n\n this.peekMessage = this.getHelloPeekMessage();\n const { peekMessageBehavior, peekMessageDelay } =\n zonosStore.helloSettings;\n // peek message delay is passed in seconds, but setTimeout expects milliseconds\n const peekMessageDelayToUse = peekMessageDelay * 1000;\n\n if (peekMessageBehavior === 'ENABLED') {\n setTimeout(() => {\n this.enableShowPeekMessage();\n\n setTimeout(() => {\n this.showPeekMessage = false;\n }, 3000);\n }, peekMessageDelayToUse);\n }\n\n clearInterval(initInterval);\n }\n }, 100);\n }\n\n /**\n * This method will trigger the currency conversion and display the converted value\n * @returns void\n */\n @Method()\n async displayCurrency() {\n if (!localizationStore.exchangeRate) {\n // eslint-disable-next-line no-console\n console.error(\n 'Could not display currency. Exchange rate and format data is not available.',\n );\n return;\n }\n currencyDisplay();\n }\n\n /**\n * This method will call convert and format, and return the converted and formatted string\n * @returns string\n */\n @Method()\n async convertAndFormat(value: number) {\n currencyConvertAndFormat(value);\n }\n\n /**\n * This method will convert the currency and return the converted value\n * @returns number\n */\n @Method()\n async convert(value: number) {\n currencyConvert(value);\n }\n\n /**\n * This method will format the currency and return the formatted string\n * @returns number\n */\n @Method()\n async format(value: number) {\n currencyFormat(value);\n }\n\n private changeShowDialog = (value: boolean) => {\n this.showDialog = value;\n };\n\n private shouldAnimateLeftDesktop = () => {\n // Get element position (relative = desktop, fixed = mobile)\n const elPosition =\n this.helloRef && getComputedStyle(this.helloRef).position;\n\n // If relative position, determine if peek message should animate left or right. Mobile is pre-determined.\n if (this.helloRef && elPosition === 'relative') {\n const hasMoreSpaceOnRight = getHasMoreSpaceOnRight(this.helloRef);\n\n // Determine peek message direction\n return hasMoreSpaceOnRight;\n }\n };\n\n @Listen('resize', { target: 'window' })\n handleResize() {\n debounce(this.render.bind(this), 500);\n }\n\n render() {\n const isExcludedUrl = zonosStore.helloSettings.excludedUrlPatterns?.some(\n pattern => new RegExp(pattern).test(window.location.href),\n );\n if (isExcludedUrl) {\n log('Hello is excluded on this url', 'warn');\n return null;\n }\n\n const { selectedCountryCode } = localizationStore;\n const mobileLocation =\n this.mobileLocationOverride || zonosStore.helloSettings.mobileLocation;\n const isMobileWindow = window.innerWidth < 768;\n\n const isOnLeft =\n this.animateFromLeftOverride ||\n (isMobileWindow && mobileLocation.includes('LEFT')) ||\n this.shouldAnimateLeftDesktop() ||\n false;\n\n const isOnTop = mobileLocation.includes('TOP');\n\n const appearanceSettings = mergeConfig(\n zonosStore.appearance,\n this.appearanceSettingsOverride,\n );\n const { theme } = appearanceSettings;\n\n return (\n <Host class=\"zonos--hello zonos--elements\" data-theme={theme}>\n {selectedCountryCode && (\n <div class=\"zonos--hello-wrapper\">\n <button\n class={classes([\n 'zonos--hello-widget',\n this.showPeekMessage && 'zonos--hello-show-peek-message',\n this.mobileLocationOverride && 'zonos--hello-mobile-override',\n isOnLeft &&\n 'zonos--hello-widget-left zonos--hello-widget-animate-from-left',\n isOnTop && 'zonos--hello-widget-top',\n ])}\n onClick={() => {\n this.changeShowDialog(!this.showDialog);\n }}\n onMouseEnter={() => this.enableShowPeekMessage()}\n onMouseLeave={() => (this.showPeekMessage = false)}\n ref={el => el && (this.helloRef = el)}\n >\n <span class=\"zonos--hello-message\">{this.peekMessage}</span>\n\n {selectedCountryCode && (\n <div class=\"zonos--hello-country-flag-wrapper\">\n <zonos-country-flag\n class=\"zonos--hello-country-flag\"\n countryCode={selectedCountryCode}\n ></zonos-country-flag>\n </div>\n )}\n </button>\n\n <div\n class={classes([\n 'zonos--hello-dialog-wrapper',\n this.mobileLocationOverride &&\n 'zonos--hello-dialog-wrapper-mobile-override',\n ])}\n style={{ height: this.showDialog ? 'fit-content' : '0px' }}\n >\n <zonos-hello-dialog\n animateFromLeftOverride={this.animateFromLeftOverride}\n appearanceSettings={appearanceSettings}\n isOpen={this.showDialog}\n mobileLocationOverride={this.mobileLocationOverride}\n setIsOpen={this.changeShowDialog}\n ></zonos-hello-dialog>\n </div>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,2 +0,0 @@
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,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n["throw"](e))}catch(e){r(e)}}function l(e){e.done?t(e.value):i(e.value).then(s,a)}l((n=n.apply(e,o||[])).next())}))};var __generator=this&&this.__generator||function(e,o){var t={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,i,r,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(o){return l([e,o])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(t=0)),t)try{if(n=1,i&&(r=a[0]&2?i["return"]:a[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;if(i=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=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(!(r=t.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){t.label=a[1];break}if(a[0]===6&&t.label<r[1]){t.label=r[1];r=a;break}if(r&&t.label<r[2]){t.label=r[2];t.ops.push(a);break}if(r[2])t.ops.pop();t.trys.pop();continue}a=o.call(e,t)}catch(e){a=[6,e];i=0}finally{n=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./index-87193773.system.js","./zonosStore-77bcd7c0.system.js","./localization-3c43290f.system.js","./classes-ce25a814.system.js","./getHasMoreSpaceOnRight-5a9efd60.system.js"],(function(e){"use strict";var o,t,n,i,r,s,a,l,h,d,f,u,c,m,g,p,w,v;return{setters:[function(e){o=e.r;t=e.h;n=e.H},function(e){i=e._;r=e.i;s=e.e;a=e.f;l=e.z;h=e.m},function(e){d=e.t;f=e.a;u=e.e;c=e.f;m=e.g;g=e.j;p=e.l},function(e){w=e.c},function(e){v=e.g}],execute:function(){var b=function(){return i.Date.now()};var z=b;var x=/\s/;function y(e){var o=e.length;while(o--&&x.test(e.charAt(o))){}return o}var k=y;var _=/^\s+/;function S(e){return e?e.slice(0,k(e)+1).replace(_,""):e}var M=S;var L="[object Symbol]";function O(e){return typeof e=="symbol"||r(e)&&s(e)==L}var D=O;var P=0/0;var T=/^[-+]0x[0-9a-f]+$/i;var X=/^0b[01]+$/i;var R=/^0o[0-7]+$/i;var j=parseInt;function E(e){if(typeof e=="number"){return e}if(D(e)){return P}if(a(e)){var o=typeof e.valueOf=="function"?e.valueOf():e;e=a(o)?o+"":o}if(typeof e!="string"){return e===0?e:+e}e=M(e);var t=X.test(e);return t||R.test(e)?j(e.slice(2),t?2:8):T.test(e)?P:+e}var C=E;var H="Expected a function";var A=Math.max,F=Math.min;function I(e,o,t){var n,i,r,s,l,h,d=0,f=false,u=false,c=true;if(typeof e!="function"){throw new TypeError(H)}o=C(o)||0;if(a(t)){f=!!t.leading;u="maxWait"in t;r=u?A(C(t.maxWait)||0,o):r;c="trailing"in t?!!t.trailing:c}function m(o){var t=n,r=i;n=i=undefined;d=o;s=e.apply(r,t);return s}function g(e){d=e;l=setTimeout(v,o);return f?m(e):s}function p(e){var t=e-h,n=e-d,i=o-t;return u?F(i,r-n):i}function w(e){var t=e-h,n=e-d;return h===undefined||t>=o||t<0||u&&n>=r}function v(){var e=z();if(w(e)){return b(e)}l=setTimeout(v,p(e))}function b(e){l=undefined;if(c&&n){return m(e)}n=i=undefined;return s}function x(){if(l!==undefined){clearTimeout(l)}d=0;n=h=i=l=undefined}function y(){return l===undefined?s:b(z())}function k(){var e=z(),t=w(e);n=arguments;i=this;h=e;if(t){if(l===undefined){return g(h)}if(u){clearTimeout(l);l=setTimeout(v,o);return m(h)}}if(l===undefined){l=setTimeout(v,o)}return s}k.cancel=x;k.flush=y;return k}var W=I;var $=":host{font-family:Inter;display:block}: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:inline-block}:host .zonos--hello-wrapper{position:relative}:host .zonos--hello-wrapper .zonos--hello-dialog-wrapper-mobile-override{position:fixed;bottom:0;left:0;width:100vw;z-index:1001;height:0}@media (max-width: 768px){:host .zonos--hello-wrapper{position:fixed;bottom:0;left:0;width:100vw;z-index:1001;height:0}}:host .zonos--hello-widget{-webkit-transition:all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);transition:all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);padding:6px;border-radius:30px;background:var(--amino-page-background);font-size:var(--amino-font-size-s);border:var(--amino-border);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;cursor:pointer;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;z-index:1000}:host .zonos--hello-widget>.zonos--hello-message{-ms-flex-order:0;order:0;width:100%;max-width:0;height:100%;white-space:nowrap;-webkit-transition:border 0.3s ease-in, all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);transition:border 0.3s ease-in, all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);overflow:hidden;color:var(--amino-text-color);position:absolute;background:var(--amino-page-background);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-top-left-radius:30px;border-bottom-left-radius:30px;left:0;-webkit-transform:translateX(calc(-100% + var(--amino-space-16)));transform:translateX(calc(-100% + var(--amino-space-16)));width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border-top:var(--amino-border);border-bottom:var(--amino-border)}:host .zonos--hello-widget.zonos--hello-show-peek-message{max-width:100vw;width:100%}:host .zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{max-width:100vw;padding:0 6px;padding-right:var(--amino-space-16);border:var(--amino-border)}:host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left){border-top-left-radius:0;border-bottom-left-radius:0}:host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left)>.zonos--hello-message{border-right:none}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left{border-top-right-radius:0;border-bottom-right-radius:0}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{border-left:0}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:var(--amino-space-16);padding-right:6px;border-left:none}:host .zonos--hello-widget.zonos--hello-widget-animate-from-left>.zonos--hello-message{-ms-flex-order:1;order:1;-webkit-transform:translateX(calc(100% - var(--amino-space-16)));transform:translateX(calc(100% - var(--amino-space-16)));right:0;left:auto;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:30px;border-bottom-right-radius:30px}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper .zonos--hello-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--amino-v3-shadow-medium);box-shadow:var(--amino-v3-shadow-medium);z-index:10;justify-self:center}@media (max-width: 768px){:host .zonos--hello-widget .zonos--hello-country-flag-wrapper .zonos--hello-country-flag{border-radius:var(--amino-radius-4);width:24px}}@media (max-width: 768px){:host .zonos--hello-widget{position:fixed;bottom:var(--amino-space-32);right:var(--amino-space-32);border-radius:var(--amino-radius-4);padding:var(--amino-space-4);border:1px solid transparent}:host .zonos--hello-widget.zonos--hello-widget-left{left:var(--amino-space-32);right:auto}:host .zonos--hello-widget.zonos--hello-widget-top{bottom:auto;top:var(--amino-space-32)}:host .zonos--hello-widget>.zonos--hello-message{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-radius:30px;top:0;bottom:0;left:0;-webkit-transform:translateX(0);transform:translateX(0);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border:none}:host .zonos--hello-widget.zonos--hello-widget-animate-from-left>.zonos--hello-message{-webkit-transform:translateX(0);transform:translateX(0)}:host .zonos--hello-widget.zonos--hello-show-peek-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}:host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left){border-top-left-radius:var(--amino-radius-4);border-bottom-left-radius:var(--amino-radius-4)}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left{border-top-right-radius:var(--amino-radius-4);border-bottom-right-radius:var(--amino-radius-4)}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:var(--amino-space-8);padding-right:var(--amino-space-4)}:host .zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{padding:0 var(--amino-radius-4);padding-right:6px;border:none}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper{border-radius:var(--amino-radius-4)}}:host .zonos--hello-mobile-override.zonos--hello-widget{position:fixed;bottom:var(--amino-space-32);right:var(--amino-space-32);border-radius:var(--amino-radius-4);padding:var(--amino-space-4);border:1px solid transparent}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-left{left:var(--amino-space-32);right:auto}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-top{bottom:auto;top:var(--amino-space-32)}:host .zonos--hello-mobile-override.zonos--hello-widget>.zonos--hello-message{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-radius:30px;top:0;bottom:0;left:0;-webkit-transform:translateX(0);transform:translateX(0);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border:none}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-animate-from-left>.zonos--hello-message{-webkit-transform:translateX(0);transform:translateX(0)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left){border-top-left-radius:var(--amino-radius-4);border-bottom-left-radius:var(--amino-radius-4)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left{border-top-right-radius:var(--amino-radius-4);border-bottom-right-radius:var(--amino-radius-4)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:var(--amino-space-8);padding-right:var(--amino-space-4)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{padding:0 var(--amino-radius-4);padding-right:6px;border:none}:host .zonos--hello-mobile-override.zonos--hello-widget .zonos--hello-country-flag-wrapper{border-radius:var(--amino-radius-4)}:host .zonos--hello-mobile-override.zonos--hello-widget .zonos--hello-country-flag{border-radius:var(--amino-radius-4);width:24px}";var B=e("zonos_hello",function(){function e(e){var t=this;o(this,e);this.getHelloPeekMessage=function(){switch(l.currentHelloPage){case"cart":return d("Prepay duties and taxes at checkout");case"productList":case"productDetail":return d("See duty and tax thresholds");default:return"".concat(d("Welcome to")," ").concat(l.organizationName)}};this.enableShowPeekMessage=function(){if(t.peekMessage){t.showPeekMessage=true}};this.changeShowDialog=function(e){t.showDialog=e};this.shouldAnimateLeftDesktop=function(){var e=t.helloRef&&getComputedStyle(t.helloRef).position;if(t.helloRef&&e==="relative"){var o=v(t.helloRef);return o}};this.mobileLocationOverride=undefined;this.animateFromLeftOverride=undefined;this.appearanceSettingsOverride=undefined;this.showPeekMessage=false;this.zonosStoreHelloSettings=l.helloSettings;this.showDialog=false;this.peekMessage=""}e.prototype.componentDidLoad=function(){var e=this;var o=setInterval((function(){if(!e.helloRef){return}if(l.loadedConfig){e.helloRef.setAttribute("data-zonos-hello-loaded","");e.peekMessage=e.getHelloPeekMessage();var t=l.helloSettings,n=t.peekMessageBehavior,i=t.peekMessageDelay;var r=i*1e3;if(n==="ENABLED"){setTimeout((function(){e.enableShowPeekMessage();setTimeout((function(){e.showPeekMessage=false}),3e3)}),r)}clearInterval(o)}}),100)};e.prototype.displayCurrency=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(!f.exchangeRate){console.error("Could not display currency. Exchange rate and format data is not available.");return[2]}u();return[2]}))}))};e.prototype.convertAndFormat=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){c(e);return[2]}))}))};e.prototype.convert=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){m(e);return[2]}))}))};e.prototype.format=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){g(e);return[2]}))}))};e.prototype.handleResize=function(){W(this.render.bind(this),500)};e.prototype.render=function(){var e=this;var o;var i=(o=l.helloSettings.excludedUrlPatterns)===null||o===void 0?void 0:o.some((function(e){return new RegExp(e).test(window.location.href)}));if(i){p("Hello is excluded on this url","warn");return null}var r=f.selectedCountryCode;var s=this.mobileLocationOverride||l.helloSettings.mobileLocation;var a=window.innerWidth<768;var d=this.animateFromLeftOverride||a&&s.includes("LEFT")||this.shouldAnimateLeftDesktop()||false;var u=s.includes("TOP");var c=h(l.appearance,this.appearanceSettingsOverride);var m=c.theme;return t(n,{class:"zonos--hello zonos--elements","data-theme":m},r&&t("div",{class:"zonos--hello-wrapper"},t("button",{class:w(["zonos--hello-widget",this.showPeekMessage&&"zonos--hello-show-peek-message",this.mobileLocationOverride&&"zonos--hello-mobile-override",d&&"zonos--hello-widget-left zonos--hello-widget-animate-from-left",u&&"zonos--hello-widget-top"]),onClick:function(){e.changeShowDialog(!e.showDialog)},onMouseEnter:function(){return e.enableShowPeekMessage()},onMouseLeave:function(){return e.showPeekMessage=false},ref:function(o){return o&&(e.helloRef=o)}},t("span",{class:"zonos--hello-message"},this.peekMessage),r&&t("div",{class:"zonos--hello-country-flag-wrapper"},t("zonos-country-flag",{class:"zonos--hello-country-flag",countryCode:r}))),t("div",{class:w(["zonos--hello-dialog-wrapper",this.mobileLocationOverride&&"zonos--hello-dialog-wrapper-mobile-override"]),style:{height:this.showDialog?"fit-content":"0px"}},t("zonos-hello-dialog",{animateFromLeftOverride:this.animateFromLeftOverride,appearanceSettings:c,isOpen:this.showDialog,mobileLocationOverride:this.mobileLocationOverride,setIsOpen:this.changeShowDialog}))))};return e}());B.style=$}}}));
2
- //# sourceMappingURL=zonos-hello.system.entry.js.map