@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 +0,0 @@
1
- {"version":3,"names":["now","root","Date","now_1","reWhitespace","trimmedEndIndex","string","index","length","test","charAt","_trimmedEndIndex","reTrimStart","baseTrim","slice","replace","_baseTrim","symbolTag","isSymbol","value","isObjectLike","baseGetTag","isSymbol_1","NAN","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","parseInt","toNumber","isObject","other","valueOf","isBinary","toNumber_1","FUNC_ERROR_TEXT","nativeMax","Math","max","nativeMin","min","debounce","func","wait","options","lastArgs","lastThis","maxWait","result","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","TypeError","invokeFunc","time","args","thisArg","undefined","apply","leadingEdge","setTimeout","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","timeWaiting","shouldInvoke","trailingEdge","cancel","clearTimeout","flush","debounced","isInvoking","arguments","this","debounce_1","zonosHelloCss","ZonosHello","exports","getHelloPeekMessage","zonosStore","currentHelloPage","translate","concat","organizationName","enableShowPeekMessage","_this","peekMessage","showPeekMessage","changeShowDialog","showDialog","shouldAnimateLeftDesktop","elPosition","helloRef","getComputedStyle","position","hasMoreSpaceOnRight","getHasMoreSpaceOnRight","helloSettings","class_1","prototype","componentDidLoad","initInterval","setInterval","loadedConfig","setAttribute","_b","peekMessageBehavior","peekMessageDelay","peekMessageDelayToUse","clearInterval","displayCurrency","localizationStore","exchangeRate","console","error","currencyDisplay","convertAndFormat","currencyConvertAndFormat","convert","currencyConvert","format","currencyFormat","handleResize","render","bind","isExcludedUrl","_a","excludedUrlPatterns","some","pattern","RegExp","window","location","href","log","selectedCountryCode","mobileLocation","mobileLocationOverride","isMobileWindow","innerWidth","isOnLeft","animateFromLeftOverride","includes","isOnTop","appearanceSettings","mergeConfig","appearance","appearanceSettingsOverride","theme","h","Host","class","classes","onClick","onMouseEnter","onMouseLeave","ref","el","countryCode","style","height","isOpen","setIsOpen"],"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"],"mappings":"m6DAkBA,IAAIA,EAAM,WACR,OAAOC,EAAKC,KAAKF,KACnB,EAEA,IAAAG,EAAiBH,ECrBjB,IAAII,EAAe,KAUnB,SAASC,EAAgBC,GACvB,IAAIC,EAAQD,EAAOE,OAEnB,MAAOD,KAAWH,EAAaK,KAAKH,EAAOI,OAAOH,IAAS,EAC3D,OAAOA,CACT,CAEA,IAAAI,EAAiBN,ECfjB,IAAIO,EAAc,OASlB,SAASC,EAASP,GAChB,OAAOA,EACHA,EAAOQ,MAAM,EAAGT,EAAgBC,GAAU,GAAGS,QAAQH,EAAa,IAClEN,CACN,CAEA,IAAAU,EAAiBH,ECdjB,IAAII,EAAY,kBAmBhB,SAASC,EAASC,GAChB,cAAcA,GAAS,UACpBC,EAAaD,IAAUE,EAAWF,IAAUF,CACjD,CAEA,IAAAK,EAAiBJ,ECvBjB,IAAIK,EAAM,EAAI,EAGd,IAAIC,EAAa,qBAGjB,IAAIC,EAAa,aAGjB,IAAIC,EAAY,cAGhB,IAAIC,EAAeC,SAyBnB,SAASC,EAASV,GAChB,UAAWA,GAAS,SAAU,CAC5B,OAAOA,C,CAET,GAAID,EAASC,GAAQ,CACnB,OAAOI,C,CAET,GAAIO,EAASX,GAAQ,CACnB,IAAIY,SAAeZ,EAAMa,SAAW,WAAab,EAAMa,UAAYb,EACnEA,EAAQW,EAASC,GAAUA,EAAQ,GAAMA,C,CAE3C,UAAWZ,GAAS,SAAU,CAC5B,OAAOA,IAAU,EAAIA,GAASA,C,CAEhCA,EAAQN,EAASM,GACjB,IAAIc,EAAWR,EAAWhB,KAAKU,GAC/B,OAAQc,GAAYP,EAAUjB,KAAKU,GAC/BQ,EAAaR,EAAML,MAAM,GAAImB,EAAW,EAAI,GAC3CT,EAAWf,KAAKU,GAASI,GAAOJ,CACvC,CAEA,IAAAe,EAAiBL,EC1DjB,IAAIM,EAAkB,sBAGtB,IAAIC,EAAYC,KAAKC,IACjBC,EAAYF,KAAKG,IAwDrB,SAASC,EAASC,EAAMC,EAAMC,GAC5B,IAAIC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EAAiB,EACjBC,EAAU,MACVC,EAAS,MACTC,EAAW,KAEf,UAAWZ,GAAQ,WAAY,CAC7B,MAAM,IAAIa,UAAUpB,E,CAEtBQ,EAAOd,EAASc,IAAS,EACzB,GAAIb,EAASc,GAAU,CACrBQ,IAAYR,EAAQQ,QACpBC,EAAS,YAAaT,EACtBG,EAAUM,EAASjB,EAAUP,EAASe,EAAQG,UAAY,EAAGJ,GAAQI,EACrEO,EAAW,aAAcV,IAAYA,EAAQU,SAAWA,C,CAG1D,SAASE,EAAWC,GAClB,IAAIC,EAAOb,EACPc,EAAUb,EAEdD,EAAWC,EAAWc,UACtBT,EAAiBM,EACjBT,EAASN,EAAKmB,MAAMF,EAASD,GAC7B,OAAOV,CACX,CAEE,SAASc,EAAYL,GAEnBN,EAAiBM,EAEjBR,EAAUc,WAAWC,EAAcrB,GAEnC,OAAOS,EAAUI,EAAWC,GAAQT,CACxC,CAEE,SAASiB,EAAcR,GACrB,IAAIS,EAAoBT,EAAOP,EAC3BiB,EAAsBV,EAAON,EAC7BiB,EAAczB,EAAOuB,EAEzB,OAAOb,EACHd,EAAU6B,EAAarB,EAAUoB,GACjCC,CACR,CAEE,SAASC,EAAaZ,GACpB,IAAIS,EAAoBT,EAAOP,EAC3BiB,EAAsBV,EAAON,EAKjC,OAAQD,IAAiBU,WAAcM,GAAqBvB,GACzDuB,EAAoB,GAAOb,GAAUc,GAAuBpB,CACnE,CAEE,SAASiB,IACP,IAAIP,EAAOzD,IACX,GAAIqE,EAAaZ,GAAO,CACtB,OAAOa,EAAab,E,CAGtBR,EAAUc,WAAWC,EAAcC,EAAcR,GACrD,CAEE,SAASa,EAAab,GACpBR,EAAUW,UAIV,GAAIN,GAAYT,EAAU,CACxB,OAAOW,EAAWC,E,CAEpBZ,EAAWC,EAAWc,UACtB,OAAOZ,CACX,CAEE,SAASuB,IACP,GAAItB,IAAYW,UAAW,CACzBY,aAAavB,E,CAEfE,EAAiB,EACjBN,EAAWK,EAAeJ,EAAWG,EAAUW,SACnD,CAEE,SAASa,IACP,OAAOxB,IAAYW,UAAYZ,EAASsB,EAAatE,IACzD,CAEE,SAAS0E,IACP,IAAIjB,EAAOzD,IACP2E,EAAaN,EAAaZ,GAE9BZ,EAAW+B,UACX9B,EAAW+B,KACX3B,EAAeO,EAEf,GAAIkB,EAAY,CACd,GAAI1B,IAAYW,UAAW,CACzB,OAAOE,EAAYZ,E,CAErB,GAAIG,EAAQ,CAEVmB,aAAavB,GACbA,EAAUc,WAAWC,EAAcrB,GACnC,OAAOa,EAAWN,E,EAGtB,GAAID,IAAYW,UAAW,CACzBX,EAAUc,WAAWC,EAAcrB,E,CAErC,OAAOK,CACX,CACE0B,EAAUH,OAASA,EACnBG,EAAUD,MAAQA,EAClB,OAAOC,CACT,CAEA,IAAAI,EAAiBrC,EC9LjB,IAAMsC,EAAgB,ovP,ICwBTC,EAAUC,EAAA,yB,mCAuBbJ,KAAAK,oBAAsB,WAC5B,OAAQC,EAAWC,kBACjB,IAAK,OACH,OAAOC,EAAU,uCACnB,IAAK,cACL,IAAK,gBACH,OAAOA,EAAU,+BAEnB,QACE,MAAO,GAAAC,OAAGD,EAAU,cAAa,KAAAC,OAAIH,EAAWI,kB,EAI9CV,KAAAW,sBAAwB,WAC9B,GAAIC,EAAKC,YAAa,CACpBD,EAAKE,gBAAkB,I,GA4EnBd,KAAAe,iBAAmB,SAACzE,GAC1BsE,EAAKI,WAAa1E,C,EAGZ0D,KAAAiB,yBAA2B,WAEjC,IAAMC,EACJN,EAAKO,UAAYC,iBAAiBR,EAAKO,UAAUE,SAGnD,GAAIT,EAAKO,UAAYD,IAAe,WAAY,CAC9C,IAAMI,EAAsBC,EAAuBX,EAAKO,UAGxD,OAAOG,C,+IA9GyB,M,6BACDhB,EAAWkB,c,gBACf,M,iBACO,E,CAqBtCC,EAAAC,UAAAC,iBAAA,eAAAf,EAAAZ,KACE,IAAM4B,EAAeC,aAAY,WAC/B,IAAKjB,EAAKO,SAAU,CAClB,M,CAEF,GAAIb,EAAWwB,aAAc,CAC3BlB,EAAKO,SAASY,aAAa,0BAA2B,IAEtDnB,EAAKC,YAAcD,EAAKP,sBAClB,IAAA2B,EACJ1B,EAAWkB,cADLS,EAAmBD,EAAAC,oBAAEC,EAAgBF,EAAAE,iBAG7C,IAAMC,EAAwBD,EAAmB,IAEjD,GAAID,IAAwB,UAAW,CACrC/C,YAAW,WACT0B,EAAKD,wBAELzB,YAAW,WACT0B,EAAKE,gBAAkB,K,GACtB,I,GACFqB,E,CAGLC,cAAcR,E,IAEf,I,EAQCH,EAAAC,UAAAW,gBAAN,W,qFACE,IAAKC,EAAkBC,aAAc,CAEnCC,QAAQC,MACN,+EAEF,S,CAEFC,I,iBAQIjB,EAAAC,UAAAiB,iBAAN,SAAuBrG,G,qFACrBsG,EAAyBtG,G,iBAQrBmF,EAAAC,UAAAmB,QAAN,SAAcvG,G,qFACZwG,EAAgBxG,G,iBAQZmF,EAAAC,UAAAqB,OAAN,SAAazG,G,qFACX0G,EAAe1G,G,iBAsBjBmF,EAAAC,UAAAuB,aAAA,WACErF,EAASoC,KAAKkD,OAAOC,KAAKnD,MAAO,I,EAGnCyB,EAAAC,UAAAwB,OAAA,eAAAtC,EAAAZ,K,MACE,IAAMoD,GAAgBC,EAAA/C,EAAWkB,cAAc8B,uBAAmB,MAAAD,SAAA,SAAAA,EAAEE,MAClE,SAAAC,GAAW,WAAIC,OAAOD,GAAS5H,KAAK8H,OAAOC,SAASC,KAAzC,IAEb,GAAIR,EAAe,CACjBS,EAAI,gCAAiC,QACrC,OAAO,I,CAGD,IAAAC,EAAwBxB,EAAiBwB,oBACjD,IAAMC,EACJ/D,KAAKgE,wBAA0B1D,EAAWkB,cAAcuC,eAC1D,IAAME,EAAiBP,OAAOQ,WAAa,IAE3C,IAAMC,EACJnE,KAAKoE,yBACJH,GAAkBF,EAAeM,SAAS,SAC3CrE,KAAKiB,4BACL,MAEF,IAAMqD,EAAUP,EAAeM,SAAS,OAExC,IAAME,EAAqBC,EACzBlE,EAAWmE,WACXzE,KAAK0E,4BAEC,IAAAC,EAAUJ,EAAkBI,MAEpC,OACEC,EAACC,EAAI,CAACC,MAAM,+BAA8B,aAAaH,GACpDb,GACCc,EAAA,OAAKE,MAAM,wBACTF,EAAA,UACEE,MAAOC,EAAQ,CACb,sBACA/E,KAAKc,iBAAmB,iCACxBd,KAAKgE,wBAA0B,+BAC/BG,GACE,iEACFG,GAAW,4BAEbU,QAAS,WACPpE,EAAKG,kBAAkBH,EAAKI,W,EAE9BiE,aAAc,WAAM,OAAArE,EAAKD,uBAAL,EACpBuE,aAAc,kBAAOtE,EAAKE,gBAAkB,KAA9B,EACdqE,IAAK,SAAAC,GAAM,OAAAA,IAAOxE,EAAKO,SAAWiE,EAAvB,GAEXR,EAAA,QAAME,MAAM,wBAAwB9E,KAAKa,aAExCiD,GACCc,EAAA,OAAKE,MAAM,qCACTF,EAAA,sBACEE,MAAM,4BACNO,YAAavB,MAMrBc,EAAA,OACEE,MAAOC,EAAQ,CACb,8BACA/E,KAAKgE,wBACH,gDAEJsB,MAAO,CAAEC,OAAQvF,KAAKgB,WAAa,cAAgB,QAEnD4D,EAAA,sBACER,wBAAyBpE,KAAKoE,wBAC9BG,mBAAoBA,EACpBiB,OAAQxF,KAAKgB,WACbgD,uBAAwBhE,KAAKgE,uBAC7ByB,UAAWzF,KAAKe,qB,WAlNT,I"}
@@ -1,30 +0,0 @@
1
- import { r as registerInstance, h, d as getElement, H as Host } from './index-d1aa9293.js';
2
-
3
- const zonosIconCss = ":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:-ms-inline-flexbox;display:inline-flex}:host svg{width:var(--width);height:var(--height);fill:var(--color);color:var(--color)}";
4
-
5
- const ZonosIcon = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.autoHeight = false;
9
- this.color = 'gray-1200';
10
- this.content = undefined;
11
- this.size = 24;
12
- }
13
- render() {
14
- if (!this.content || !this.el.shadowRoot) {
15
- return null;
16
- }
17
- this.el.shadowRoot.innerHTML = this.content;
18
- return (h(Host, { class: "zonos--elements", style: {
19
- '--color': `var(--amino-${this.color})`,
20
- '--height': `${this.autoHeight ? 'auto' : `${this.size}px`}`,
21
- '--width': `${this.size}px`,
22
- } }));
23
- }
24
- get el() { return getElement(this); }
25
- };
26
- ZonosIcon.style = zonosIconCss;
27
-
28
- export { ZonosIcon as zonos_icon };
29
-
30
- //# sourceMappingURL=zonos-icon.entry.js.map
@@ -1 +0,0 @@
1
- {"file":"zonos-icon.entry.esm.js","mappings":";;AAAA,MAAM,YAAY,GAAG,iZAAiZ;;MCSzZ,SAAS;;;sBAKU,KAAK;iBAMZ,WAAW;;gBAiBX,EAAE;;EAIzB,MAAM;IACJ,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,EAAE;MACxC,OAAO,IAAI,CAAC;KACb;IAED,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC;IAE5C,QACE,EAAC,IAAI,IACH,KAAK,EAAC,iBAAiB,EACvB,KAAK,EAAE;QACL,SAAS,EAAE,eAAe,IAAI,CAAC,KAAK,GAAG;QACvC,UAAU,EAAE,GAAG,IAAI,CAAC,UAAU,GAAG,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,IAAI,EAAE;QAC5D,SAAS,EAAE,GAAG,IAAI,CAAC,IAAI,IAAI;OAC5B,GACK,EACR;GACH;;;;;;;","names":[],"sources":["src/components/common/zonos-icon/zonos-icon.scss?tag=zonos-icon&encapsulation=shadow","src/components/common/zonos-icon/zonos-icon.tsx"],"sourcesContent":[":host {\n display: inline-flex;\n\n svg {\n width: var(--width);\n height: var(--height);\n fill: var(--color);\n color: var(--color);\n }\n}\n","import { Component, Element, h, Host, Prop } from '@stencil/core';\n\nimport type { Color } from 'src/types';\n\n@Component({\n shadow: true,\n styleUrl: 'zonos-icon.scss',\n tag: 'zonos-icon',\n})\nexport class ZonosIcon {\n /**\n * Determines if the icon should be auto height instead of square\n * @default false\n */\n @Prop() autoHeight: boolean = false;\n\n /**\n * Color of the SVG\n * @default 'gray-1200'\n */\n @Prop() color: Color = 'gray-1200';\n\n /**\n * The content of the icon (full svg)\n * @example\n * import RemoveIcon from './assets/removeIcon.svg';\n * ...\n * <zonos-icon content={RemoveIcon}></zonos-icon>\n * // or\n * <zonos-icon content=\"<svg>...</svg>\"></zonos-icon>\n */\n @Prop() content!: string;\n\n /**\n * The size of the icon\n * @default 24\n */\n @Prop() size: number = 24;\n\n @Element() el!: HTMLZonosIconElement;\n\n render() {\n if (!this.content || !this.el.shadowRoot) {\n return null;\n }\n\n this.el.shadowRoot.innerHTML = this.content;\n\n return (\n <Host\n class=\"zonos--elements\"\n style={{\n '--color': `var(--amino-${this.color})`,\n '--height': `${this.autoHeight ? 'auto' : `${this.size}px`}`,\n '--width': `${this.size}px`,\n }}\n ></Host>\n );\n }\n}\n"],"version":3}
@@ -1,2 +0,0 @@
1
- System.register(["./index-87193773.system.js"],(function(t){"use strict";var o,e,s,i;return{setters:[function(t){o=t.r;e=t.h;s=t.d;i=t.H}],execute:function(){var n=":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:-ms-inline-flexbox;display:inline-flex}:host svg{width:var(--width);height:var(--height);fill:var(--color);color:var(--color)}";var h=t("zonos_icon",function(){function t(t){o(this,t);this.autoHeight=false;this.color="gray-1200";this.content=undefined;this.size=24}t.prototype.render=function(){if(!this.content||!this.el.shadowRoot){return null}this.el.shadowRoot.innerHTML=this.content;return e(i,{class:"zonos--elements",style:{"--color":"var(--amino-".concat(this.color,")"),"--height":"".concat(this.autoHeight?"auto":"".concat(this.size,"px")),"--width":"".concat(this.size,"px")}})};Object.defineProperty(t.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});return t}());h.style=n}}}));
2
- //# sourceMappingURL=zonos-icon.system.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["zonosIconCss","ZonosIcon","exports","class_1","prototype","render","this","content","el","shadowRoot","innerHTML","h","Host","class","style","concat","color","autoHeight","size"],"sources":["src/components/common/zonos-icon/zonos-icon.scss?tag=zonos-icon&encapsulation=shadow","src/components/common/zonos-icon/zonos-icon.tsx"],"sourcesContent":[":host {\n display: inline-flex;\n\n svg {\n width: var(--width);\n height: var(--height);\n fill: var(--color);\n color: var(--color);\n }\n}\n","import { Component, Element, h, Host, Prop } from '@stencil/core';\n\nimport type { Color } from 'src/types';\n\n@Component({\n shadow: true,\n styleUrl: 'zonos-icon.scss',\n tag: 'zonos-icon',\n})\nexport class ZonosIcon {\n /**\n * Determines if the icon should be auto height instead of square\n * @default false\n */\n @Prop() autoHeight: boolean = false;\n\n /**\n * Color of the SVG\n * @default 'gray-1200'\n */\n @Prop() color: Color = 'gray-1200';\n\n /**\n * The content of the icon (full svg)\n * @example\n * import RemoveIcon from './assets/removeIcon.svg';\n * ...\n * <zonos-icon content={RemoveIcon}></zonos-icon>\n * // or\n * <zonos-icon content=\"<svg>...</svg>\"></zonos-icon>\n */\n @Prop() content!: string;\n\n /**\n * The size of the icon\n * @default 24\n */\n @Prop() size: number = 24;\n\n @Element() el!: HTMLZonosIconElement;\n\n render() {\n if (!this.content || !this.el.shadowRoot) {\n return null;\n }\n\n this.el.shadowRoot.innerHTML = this.content;\n\n return (\n <Host\n class=\"zonos--elements\"\n style={{\n '--color': `var(--amino-${this.color})`,\n '--height': `${this.autoHeight ? 'auto' : `${this.size}px`}`,\n '--width': `${this.size}px`,\n }}\n ></Host>\n );\n }\n}\n"],"mappings":"8JAAA,IAAMA,EAAe,kZ,ICSRC,EAASC,EAAA,wB,wCAKU,M,WAMP,Y,iCAiBA,E,CAIvBC,EAAAC,UAAAC,OAAA,WACE,IAAKC,KAAKC,UAAYD,KAAKE,GAAGC,WAAY,CACxC,OAAO,I,CAGTH,KAAKE,GAAGC,WAAWC,UAAYJ,KAAKC,QAEpC,OACEI,EAACC,EAAI,CACHC,MAAM,kBACNC,MAAO,CACL,UAAW,eAAAC,OAAeT,KAAKU,MAAK,KACpC,WAAY,GAAAD,OAAGT,KAAKW,WAAa,OAAS,GAAAF,OAAGT,KAAKY,KAAI,OACtD,UAAW,GAAAH,OAAGT,KAAKY,KAAI,Q,uHA7CX,I"}
@@ -1,67 +0,0 @@
1
- import { r as registerInstance, h, H as Host } from './index-d1aa9293.js';
2
- import { c as classes } from './classes-0d95c529.js';
3
-
4
- const zonosNotificationCss = ":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:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host .zonos--notification-items{position:fixed;z-index:9999999;bottom:var(--amino-space-24);gap:var(--amino-space-8);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}:host .zonos--notification-item{cursor:pointer;-webkit-transition:all 0.3s ease;transition:all 0.3s ease;padding:var(--amino-space-8);border-radius:var(--border-radius, var(--amino-radius-6));opacity:0;-ms-flex-negative:0.0001;flex-shrink:0.0001;-webkit-transform:translateY(100%);transform:translateY(100%)}:host .zonos--notification-item+:host .zonos--notification-item{margin-top:8px}:host .zonos--notification-item.show{opacity:1;-webkit-transform:translateY(0);transform:translateY(0);-ms-flex-positive:1000;flex-grow:1000}:host .zonos--notification-item.success{background-color:var(--amino-green-700)}:host .zonos--notification-item.error{background-color:var(--amino-red-700)}:host .zonos--notification-item.warning{background-color:var(--amino-orange-700)}";
5
-
6
- const ZonosNotification = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- this.class = '';
10
- this.notificationArray = [];
11
- }
12
- /**
13
- * Show a notification
14
- */
15
- async showNotification(notification) {
16
- // random generate id
17
- const id = `id-${Math.random().toString(36).substring(2, 9)}`;
18
- const notificationItem = Object.assign(Object.assign({}, notification), { id, timeout: notification.timeout || 5000, transitionClass: '', type: notification.type || 'success' });
19
- this.notificationArray = [...this.notificationArray, notificationItem];
20
- setTimeout(() => {
21
- this.updateTransitionClass({
22
- id,
23
- transitionClass: 'show',
24
- });
25
- }, 50);
26
- setTimeout(() => {
27
- this.removeNotification(id);
28
- }, notificationItem.timeout);
29
- }
30
- updateTransitionClass({ id, transitionClass, }) {
31
- this.notificationArray = this.notificationArray.map(notification => {
32
- if (notification.id === id) {
33
- return Object.assign(Object.assign({}, notification), { transitionClass });
34
- }
35
- return notification;
36
- });
37
- }
38
- /**
39
- * Remove a notification
40
- */
41
- removeNotification(id) {
42
- // add hide class before removing the item 100ms to trigger animation
43
- this.updateTransitionClass({
44
- id,
45
- transitionClass: '',
46
- });
47
- setTimeout(() => {
48
- this.notificationArray = this.notificationArray.filter(notification => notification.id !== id);
49
- }, 300);
50
- }
51
- render() {
52
- return (h(Host, { class: classes(['zonos--elements zonos--notification', this.class]) }, h("div", { class: "zonos--notification-items" }, this.notificationArray.map(notification => {
53
- return (h("div", { "aria-hidden": "true", class: classes([
54
- 'zonos--notification-item',
55
- notification.type,
56
- notification.transitionClass,
57
- ]), key: notification.id, onClick: () => {
58
- this.removeNotification(notification.id);
59
- } }, h("zonos-text", { color: "gray-0" }, notification.message)));
60
- }))));
61
- }
62
- };
63
- ZonosNotification.style = zonosNotificationCss;
64
-
65
- export { ZonosNotification as zonos_notification };
66
-
67
- //# sourceMappingURL=zonos-notification.entry.js.map
@@ -1 +0,0 @@
1
- {"file":"zonos-notification.entry.esm.js","mappings":";;;AAAA,MAAM,oBAAoB,GAAG,0yCAA0yC;;MC4B1zC,iBAAiB;;;iBAIZ,EAAE;6BAE+B,EAAE;;;;;EAMnD,MAAM,gBAAgB,CAAC,YAA8B;;IAEnD,MAAM,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;IAC9D,MAAM,gBAAgB,mCACjB,YAAY,KACf,EAAE,EACF,OAAO,EAAE,YAAY,CAAC,OAAO,IAAI,IAAI,EACrC,eAAe,EAAE,EAAE,EACnB,IAAI,EAAE,YAAY,CAAC,IAAI,IAAI,SAAS,GACrC,CAAC;IACF,IAAI,CAAC,iBAAiB,GAAG,CAAC,GAAG,IAAI,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,CAAC;IACvE,UAAU,CAAC;MACT,IAAI,CAAC,qBAAqB,CAAC;QACzB,EAAE;QACF,eAAe,EAAE,MAAM;OACxB,CAAC,CAAC;KACJ,EAAE,EAAE,CAAC,CAAC;IAEP,UAAU,CAAC;MACT,IAAI,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC;KAC7B,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;GAC9B;EAEO,qBAAqB,CAAC,EAC5B,EAAE,EACF,eAAe,GAIhB;IACC,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,YAAY;MAC9D,IAAI,YAAY,CAAC,EAAE,KAAK,EAAE,EAAE;QAC1B,uCACK,YAAY,KACf,eAAe,IACf;OACH;MACD,OAAO,YAAY,CAAC;KACrB,CAAC,CAAC;GACJ;;;;EAKO,kBAAkB,CAAC,EAAU;;IAEnC,IAAI,CAAC,qBAAqB,CAAC;MACzB,EAAE;MACF,eAAe,EAAE,EAAE;KACpB,CAAC,CAAC;IAEH,UAAU,CAAC;MACT,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,CAAC,MAAM,CACpD,YAAY,IAAI,YAAY,CAAC,EAAE,KAAK,EAAE,CACvC,CAAC;KACH,EAAE,GAAG,CAAC,CAAC;GACT;EAED,MAAM;IACJ,QACE,EAAC,IAAI,IACH,KAAK,EAAE,OAAO,CAAC,CAAC,qCAAqC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,IAEnE,WAAK,KAAK,EAAC,2BAA2B,IACnC,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,YAAY;MACtC,QACE,0BACc,MAAM,EAClB,KAAK,EAAE,OAAO,CAAC;UACb,0BAA0B;UAC1B,YAAY,CAAC,IAAI;UACjB,YAAY,CAAC,eAAe;SAC7B,CAAC,EACF,GAAG,EAAE,YAAY,CAAC,EAAE,EACpB,OAAO,EAAE;UACP,IAAI,CAAC,kBAAkB,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;SAC1C,IAED,kBAAY,KAAK,EAAC,QAAQ,IAAE,YAAY,CAAC,OAAO,CAAc,CAC1D,EACN;KACH,CAAC,CACE,CACD,EACP;GACH;;;;;;","names":[],"sources":["src/components/common/zonos-notification/zonos-notification.scss?tag=zonos-notification&encapsulation=shadow","src/components/common/zonos-notification/zonos-notification.tsx"],"sourcesContent":["$border-radius: var(--border-radius, $amino-radius-6);\n\n:host {\n display: flex;\n justify-content: center;\n .zonos--notification-items {\n position: fixed;\n z-index: 9999999;\n bottom: $amino-space-24;\n gap: $amino-space-8;\n display: inline-flex;\n flex-direction: column;\n }\n .zonos--notification-item {\n cursor: pointer;\n transition: all 0.3s ease;\n padding: $amino-space-8;\n border-radius: $border-radius;\n // fade in animation\n opacity: 0;\n flex-shrink: 0.0001;\n transform: translateY(100%);\n & + & {\n margin-top: 8px;\n }\n &.show {\n opacity: 1;\n transform: translateY(0);\n flex-grow: 1000;\n }\n &.success {\n background-color: $amino-green-700;\n }\n &.error {\n background-color: $amino-red-700;\n }\n &.warning {\n background-color: $amino-orange-700;\n }\n }\n}\n","import { Component, h, Host, Method, Prop, State } from '@stencil/core';\n\nimport { classes } from 'src/components/utils/classes';\n\nexport type NotificationInit = {\n message: string;\n /**\n * Time in milliseconds\n * @default 4000\n */\n timeout?: number;\n /**\n * Type of notification\n * @default 'success'\n */\n type?: 'error' | 'success' | 'warning';\n};\n\ntype NotificationItem = NotificationInit & {\n id: string;\n transitionClass: 'show' | '';\n};\n\n@Component({\n shadow: true,\n styleUrl: 'zonos-notification.scss',\n tag: 'zonos-notification',\n})\nexport class ZonosNotification {\n /**\n * Custom class to add to the notification\n */\n @Prop() class = '';\n\n @State() notificationArray: NotificationItem[] = [];\n\n /**\n * Show a notification\n */\n @Method()\n async showNotification(notification: NotificationInit) {\n // random generate id\n const id = `id-${Math.random().toString(36).substring(2, 9)}`;\n const notificationItem: NotificationItem = {\n ...notification,\n id,\n timeout: notification.timeout || 5000,\n transitionClass: '',\n type: notification.type || 'success',\n };\n this.notificationArray = [...this.notificationArray, notificationItem];\n setTimeout(() => {\n this.updateTransitionClass({\n id,\n transitionClass: 'show',\n });\n }, 50);\n\n setTimeout(() => {\n this.removeNotification(id);\n }, notificationItem.timeout);\n }\n\n private updateTransitionClass({\n id,\n transitionClass,\n }: {\n id: string;\n transitionClass: 'show' | '';\n }) {\n this.notificationArray = this.notificationArray.map(notification => {\n if (notification.id === id) {\n return {\n ...notification,\n transitionClass,\n };\n }\n return notification;\n });\n }\n\n /**\n * Remove a notification\n */\n private removeNotification(id: string) {\n // add hide class before removing the item 100ms to trigger animation\n this.updateTransitionClass({\n id,\n transitionClass: '',\n });\n\n setTimeout(() => {\n this.notificationArray = this.notificationArray.filter(\n notification => notification.id !== id,\n );\n }, 300);\n }\n\n render() {\n return (\n <Host\n class={classes(['zonos--elements zonos--notification', this.class])}\n >\n <div class=\"zonos--notification-items\">\n {this.notificationArray.map(notification => {\n return (\n <div\n aria-hidden=\"true\"\n class={classes([\n 'zonos--notification-item',\n notification.type,\n notification.transitionClass,\n ])}\n key={notification.id}\n onClick={() => {\n this.removeNotification(notification.id);\n }}\n >\n <zonos-text color=\"gray-0\">{notification.message}</zonos-text>\n </div>\n );\n })}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,2 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,i,n,o){function e(t){return t instanceof n?t:new n((function(i){i(t)}))}return new(n||(n=Promise))((function(n,r){function a(t){try{c(o.next(t))}catch(t){r(t)}}function s(t){try{c(o["throw"](t))}catch(t){r(t)}}function c(t){t.done?n(t.value):e(t.value).then(a,s)}c((o=o.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,e,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(i){return c([t,i])}}function c(s){if(o)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(n=0)),n)try{if(o=1,e&&(r=s[0]&2?e["return"]:s[0]?e["throw"]||((r=e["return"])&&r.call(e),0):e.next)&&!(r=r.call(e,s[1])).done)return r;if(e=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;e=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){n.label=s[1];break}if(s[0]===6&&n.label<r[1]){n.label=r[1];r=s;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(s);break}if(r[2])n.ops.pop();n.trys.pop();continue}s=i.call(t,n)}catch(t){s=[6,t];e=0}finally{o=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,i,n){if(n||arguments.length===2)for(var o=0,e=i.length,r;o<e;o++){if(r||!(o in i)){if(!r)r=Array.prototype.slice.call(i,0,o);r[o]=i[o]}}return t.concat(r||Array.prototype.slice.call(i))};System.register(["./index-87193773.system.js","./classes-ce25a814.system.js"],(function(t){"use strict";var i,n,o,e;return{setters:[function(t){i=t.r;n=t.h;o=t.H},function(t){e=t.c}],execute:function(){var r=":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:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host .zonos--notification-items{position:fixed;z-index:9999999;bottom:var(--amino-space-24);gap:var(--amino-space-8);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}:host .zonos--notification-item{cursor:pointer;-webkit-transition:all 0.3s ease;transition:all 0.3s ease;padding:var(--amino-space-8);border-radius:var(--border-radius, var(--amino-radius-6));opacity:0;-ms-flex-negative:0.0001;flex-shrink:0.0001;-webkit-transform:translateY(100%);transform:translateY(100%)}:host .zonos--notification-item+:host .zonos--notification-item{margin-top:8px}:host .zonos--notification-item.show{opacity:1;-webkit-transform:translateY(0);transform:translateY(0);-ms-flex-positive:1000;flex-grow:1000}:host .zonos--notification-item.success{background-color:var(--amino-green-700)}:host .zonos--notification-item.error{background-color:var(--amino-red-700)}:host .zonos--notification-item.warning{background-color:var(--amino-orange-700)}";var a=t("zonos_notification",function(){function t(t){i(this,t);this.class="";this.notificationArray=[]}t.prototype.showNotification=function(t){return __awaiter(this,void 0,void 0,(function(){var i,n;var o=this;return __generator(this,(function(e){i="id-".concat(Math.random().toString(36).substring(2,9));n=Object.assign(Object.assign({},t),{id:i,timeout:t.timeout||5e3,transitionClass:"",type:t.type||"success"});this.notificationArray=__spreadArray(__spreadArray([],this.notificationArray,true),[n],false);setTimeout((function(){o.updateTransitionClass({id:i,transitionClass:"show"})}),50);setTimeout((function(){o.removeNotification(i)}),n.timeout);return[2]}))}))};t.prototype.updateTransitionClass=function(t){var i=t.id,n=t.transitionClass;this.notificationArray=this.notificationArray.map((function(t){if(t.id===i){return Object.assign(Object.assign({},t),{transitionClass:n})}return t}))};t.prototype.removeNotification=function(t){var i=this;this.updateTransitionClass({id:t,transitionClass:""});setTimeout((function(){i.notificationArray=i.notificationArray.filter((function(i){return i.id!==t}))}),300)};t.prototype.render=function(){var t=this;return n(o,{class:e(["zonos--elements zonos--notification",this.class])},n("div",{class:"zonos--notification-items"},this.notificationArray.map((function(i){return n("div",{"aria-hidden":"true",class:e(["zonos--notification-item",i.type,i.transitionClass]),key:i.id,onClick:function(){t.removeNotification(i.id)}},n("zonos-text",{color:"gray-0"},i.message))}))))};return t}());a.style=r}}}));
2
- //# sourceMappingURL=zonos-notification.system.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["zonosNotificationCss","ZonosNotification","exports","class_1","prototype","showNotification","notification","id","concat","Math","random","toString","substring","notificationItem","Object","assign","timeout","transitionClass","type","this","notificationArray","__spreadArray","setTimeout","_this","updateTransitionClass","removeNotification","_a","map","filter","render","h","Host","class","classes","key","onClick","color","message"],"sources":["src/components/common/zonos-notification/zonos-notification.scss?tag=zonos-notification&encapsulation=shadow","src/components/common/zonos-notification/zonos-notification.tsx"],"sourcesContent":["$border-radius: var(--border-radius, $amino-radius-6);\n\n:host {\n display: flex;\n justify-content: center;\n .zonos--notification-items {\n position: fixed;\n z-index: 9999999;\n bottom: $amino-space-24;\n gap: $amino-space-8;\n display: inline-flex;\n flex-direction: column;\n }\n .zonos--notification-item {\n cursor: pointer;\n transition: all 0.3s ease;\n padding: $amino-space-8;\n border-radius: $border-radius;\n // fade in animation\n opacity: 0;\n flex-shrink: 0.0001;\n transform: translateY(100%);\n & + & {\n margin-top: 8px;\n }\n &.show {\n opacity: 1;\n transform: translateY(0);\n flex-grow: 1000;\n }\n &.success {\n background-color: $amino-green-700;\n }\n &.error {\n background-color: $amino-red-700;\n }\n &.warning {\n background-color: $amino-orange-700;\n }\n }\n}\n","import { Component, h, Host, Method, Prop, State } from '@stencil/core';\n\nimport { classes } from 'src/components/utils/classes';\n\nexport type NotificationInit = {\n message: string;\n /**\n * Time in milliseconds\n * @default 4000\n */\n timeout?: number;\n /**\n * Type of notification\n * @default 'success'\n */\n type?: 'error' | 'success' | 'warning';\n};\n\ntype NotificationItem = NotificationInit & {\n id: string;\n transitionClass: 'show' | '';\n};\n\n@Component({\n shadow: true,\n styleUrl: 'zonos-notification.scss',\n tag: 'zonos-notification',\n})\nexport class ZonosNotification {\n /**\n * Custom class to add to the notification\n */\n @Prop() class = '';\n\n @State() notificationArray: NotificationItem[] = [];\n\n /**\n * Show a notification\n */\n @Method()\n async showNotification(notification: NotificationInit) {\n // random generate id\n const id = `id-${Math.random().toString(36).substring(2, 9)}`;\n const notificationItem: NotificationItem = {\n ...notification,\n id,\n timeout: notification.timeout || 5000,\n transitionClass: '',\n type: notification.type || 'success',\n };\n this.notificationArray = [...this.notificationArray, notificationItem];\n setTimeout(() => {\n this.updateTransitionClass({\n id,\n transitionClass: 'show',\n });\n }, 50);\n\n setTimeout(() => {\n this.removeNotification(id);\n }, notificationItem.timeout);\n }\n\n private updateTransitionClass({\n id,\n transitionClass,\n }: {\n id: string;\n transitionClass: 'show' | '';\n }) {\n this.notificationArray = this.notificationArray.map(notification => {\n if (notification.id === id) {\n return {\n ...notification,\n transitionClass,\n };\n }\n return notification;\n });\n }\n\n /**\n * Remove a notification\n */\n private removeNotification(id: string) {\n // add hide class before removing the item 100ms to trigger animation\n this.updateTransitionClass({\n id,\n transitionClass: '',\n });\n\n setTimeout(() => {\n this.notificationArray = this.notificationArray.filter(\n notification => notification.id !== id,\n );\n }, 300);\n }\n\n render() {\n return (\n <Host\n class={classes(['zonos--elements zonos--notification', this.class])}\n >\n <div class=\"zonos--notification-items\">\n {this.notificationArray.map(notification => {\n return (\n <div\n aria-hidden=\"true\"\n class={classes([\n 'zonos--notification-item',\n notification.type,\n notification.transitionClass,\n ])}\n key={notification.id}\n onClick={() => {\n this.removeNotification(notification.id);\n }}\n >\n <zonos-text color=\"gray-0\">{notification.message}</zonos-text>\n </div>\n );\n })}\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"04DAAA,IAAMA,EAAuB,2yC,IC4BhBC,EAAiBC,EAAA,gC,mCAIZ,G,uBAEiC,E,CAM3CC,EAAAC,UAAAC,iBAAN,SAAuBC,G,wGAEfC,EAAK,MAAAC,OAAMC,KAAKC,SAASC,SAAS,IAAIC,UAAU,EAAG,IACnDC,EAAgBC,OAAAC,OAAAD,OAAAC,OAAA,GACjBT,GAAY,CACfC,GAAEA,EACFS,QAASV,EAAaU,SAAW,IACjCC,gBAAiB,GACjBC,KAAMZ,EAAaY,MAAQ,YAE7BC,KAAKC,kBAAiBC,4BAAA,GAAOF,KAAKC,kBAAiB,OAAEP,GAAgB,OACrES,YAAW,WACTC,EAAKC,sBAAsB,CACzBjB,GAAEA,EACFU,gBAAiB,Q,GAElB,IAEHK,YAAW,WACTC,EAAKE,mBAAmBlB,E,GACvBM,EAAiBG,S,iBAGdb,EAAAC,UAAAoB,sBAAA,SAAsBE,G,IAC5BnB,EAAEmB,EAAAnB,GACFU,EAAeS,EAAAT,gBAKfE,KAAKC,kBAAoBD,KAAKC,kBAAkBO,KAAI,SAAArB,GAClD,GAAIA,EAAaC,KAAOA,EAAI,CAC1B,OAAAO,OAAAC,OAAAD,OAAAC,OAAA,GACKT,GAAY,CACfW,gBAAeA,G,CAGnB,OAAOX,C,KAOHH,EAAAC,UAAAqB,mBAAA,SAAmBlB,GAAnB,IAAAgB,EAAAJ,KAENA,KAAKK,sBAAsB,CACzBjB,GAAEA,EACFU,gBAAiB,KAGnBK,YAAW,WACTC,EAAKH,kBAAoBG,EAAKH,kBAAkBQ,QAC9C,SAAAtB,GAAgB,OAAAA,EAAaC,KAAOA,CAApB,G,GAEjB,I,EAGLJ,EAAAC,UAAAyB,OAAA,eAAAN,EAAAJ,KACE,OACEW,EAACC,EAAI,CACHC,MAAOC,EAAQ,CAAC,sCAAuCd,KAAKa,SAE5DF,EAAA,OAAKE,MAAM,6BACRb,KAAKC,kBAAkBO,KAAI,SAAArB,GAC1B,OACEwB,EAAA,qBACc,OACZE,MAAOC,EAAQ,CACb,2BACA3B,EAAaY,KACbZ,EAAaW,kBAEfiB,IAAK5B,EAAaC,GAClB4B,QAAS,WACPZ,EAAKE,mBAAmBnB,EAAaC,G,GAGvCuB,EAAA,cAAYM,MAAM,UAAU9B,EAAa+B,S,gBA1F3B,I"}
@@ -1,50 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-d1aa9293.js';
2
- import { z as zonosStore } from './zonosStore-13a7b534.js';
3
- import { c as classes } from './classes-0d95c529.js';
4
- import { g as getBorderRadius } from './getBorderRadius-82fbaf25.js';
5
- import { i as isColorVariable } from './isColorVariable-4cda28c9.js';
6
-
7
- const zonosShippingRichRadioCss = ":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:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host input{margin:0;accent-color:var(--selected-border-color, var(--amino-blue-600))}:host .zonos--shipping-rich-radio-item{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;padding:var(--amino-space-16);-ms-flex-align:center;align-items:center;gap:var(--amino-space-16);cursor:pointer;border:1px solid var(--amino-gray-200)}:host .zonos--shipping-rich-radio-item:first-child{border-top-left-radius:var(--border-radius, var(--amino-radius-10));border-top-right-radius:var(--border-radius, var(--amino-radius-10))}:host .zonos--shipping-rich-radio-item:last-child{border-bottom-left-radius:var(--border-radius, var(--amino-radius-10));border-bottom-right-radius:var(--border-radius, var(--amino-radius-10))}:host .zonos--shipping-rich-radio-item.selected{border-color:var(--selected-border-color, var(--amino-blue-600))}:host .zonos--shipping-info{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex:1;flex:1}:host .zonos--shipping-detail{-ms-flex:1;flex:1}:host .zonos--sub-detail{display:-ms-inline-flexbox;display:inline-flex;gap:8px;-ms-flex-wrap:wrap;flex-wrap:wrap}";
8
-
9
- const ZonosShippingRichRadio = class {
10
- constructor(hostRef) {
11
- registerInstance(this, hostRef);
12
- this.radioSelected = createEvent(this, "radioSelected", 7);
13
- this.handleRichRadioSelect = (item) => {
14
- var _a;
15
- this.selectedItem = item;
16
- (_a = this.radioSelected) === null || _a === void 0 ? void 0 : _a.emit(item);
17
- };
18
- this.getRadioItemStyleVariables = () => {
19
- const usedColor = this.borderColor || zonosStore.appearance.colorSecondary;
20
- const secondaryColor = isColorVariable(usedColor)
21
- ? `var(--amino-${usedColor})`
22
- : usedColor;
23
- return {
24
- '--border-radius': getBorderRadius(this.borderStyle),
25
- '--selected-border-color': secondaryColor || 'unset',
26
- };
27
- };
28
- this.items = undefined;
29
- this.borderColor = undefined;
30
- this.borderStyle = undefined;
31
- this.theme = undefined;
32
- this.selectedItem = null;
33
- }
34
- render() {
35
- var _a;
36
- return (h(Host, { class: "zonos--shipping-rich-radio zonos--elements", "data-theme": this.theme, style: this.getRadioItemStyleVariables() }, (_a = this.items) === null || _a === void 0 ? void 0 : _a.map(item => {
37
- var _a;
38
- const selected = ((_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.value) === item.value;
39
- return (h("div", { "aria-hidden": "true", class: classes([
40
- 'zonos--shipping-rich-radio-item',
41
- selected && 'selected',
42
- ]), onClick: () => this.handleRichRadioSelect(item) }, h("input", { checked: selected, class: "zonos--shipping-rich-radio-input", name: "zonos--shipping-rich-radio", type: "radio", value: item.value }), h("div", { class: "zonos--shipping-info" }, h("div", { class: "zonos--shipping-detail" }, h("zonos-text", { type: "label" }, item.label), (item.sublabel || item.caption) && (h("div", { class: "zonos--sub-detail" }, item.sublabel && (h("zonos-text", { color: "gray-800" }, item.sublabel)), item.caption && (h("zonos-text", { color: "gray-400" }, item.caption))))), h("zonos-text", { type: "semiBoldLabel" }, item.price))));
43
- })));
44
- }
45
- };
46
- ZonosShippingRichRadio.style = zonosShippingRichRadioCss;
47
-
48
- export { ZonosShippingRichRadio as zonos_shipping_rich_radio };
49
-
50
- //# sourceMappingURL=zonos-shipping-rich-radio.entry.js.map
@@ -1 +0,0 @@
1
- {"file":"zonos-shipping-rich-radio.entry.esm.js","mappings":";;;;;;AAAA,MAAM,yBAAyB,GAAG,26CAA26C;;MC6Bh8C,sBAAsB;;;;IA+BzB,0BAAqB,GAAG,CAAC,IAA2B;;MAC1D,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;MACzB,MAAA,IAAI,CAAC,aAAa,0CAAE,IAAI,CAAC,IAAI,CAAC,CAAC;KAChC,CAAC;IAEM,+BAA0B,GAAG;MACnC,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,IAAI,UAAU,CAAC,UAAU,CAAC,cAAc,CAAC;MAC3E,MAAM,cAAc,GAAG,eAAe,CAAC,SAAS,CAAC;UAC7C,eAAe,SAAS,GAAG;UAC3B,SAAS,CAAC;MAEd,OAAO;QACL,iBAAiB,EAAE,eAAe,CAAC,IAAI,CAAC,WAAW,CAAC;QACpD,yBAAyB,EAAE,cAAc,IAAI,OAAO;OACrD,CAAC;KACH,CAAC;;;;;wBAtBoD,IAAI;;EAwB1D,MAAM;;IACJ,QACE,EAAC,IAAI,IACH,KAAK,EAAC,4CAA4C,gBACtC,IAAI,CAAC,KAAK,EACtB,KAAK,EAAE,IAAI,CAAC,0BAA0B,EAAE,IAEvC,MAAA,IAAI,CAAC,KAAK,0CAAE,GAAG,CAAC,IAAI;;MACnB,MAAM,QAAQ,GAAG,CAAA,MAAA,IAAI,CAAC,YAAY,0CAAE,KAAK,MAAK,IAAI,CAAC,KAAK,CAAC;MACzD,QACE,0BACc,MAAM,EAClB,KAAK,EAAE,OAAO,CAAC;UACb,iCAAiC;UACjC,QAAQ,IAAI,UAAU;SACvB,CAAC,EACF,OAAO,EAAE,MAAM,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,IAE/C,aACE,OAAO,EAAE,QAAQ,EACjB,KAAK,EAAC,kCAAkC,EACxC,IAAI,EAAC,4BAA4B,EACjC,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,IAAI,CAAC,KAAK,GACjB,EACF,WAAK,KAAK,EAAC,sBAAsB,IAC/B,WAAK,KAAK,EAAC,wBAAwB,IACjC,kBAAY,IAAI,EAAC,OAAO,IAAE,IAAI,CAAC,KAAK,CAAc,EACjD,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,OAAO,MAC7B,WAAK,KAAK,EAAC,mBAAmB,IAC3B,IAAI,CAAC,QAAQ,KACZ,kBAAY,KAAK,EAAC,UAAU,IACzB,IAAI,CAAC,QAAQ,CACH,CACd,EACA,IAAI,CAAC,OAAO,KACX,kBAAY,KAAK,EAAC,UAAU,IAAE,IAAI,CAAC,OAAO,CAAc,CACzD,CACG,CACP,CACG,EACN,kBAAY,IAAI,EAAC,eAAe,IAAE,IAAI,CAAC,KAAK,CAAc,CACtD,CACF,EACN;KACH,CAAC,CACG,EACP;GACH;;;;;;","names":[],"sources":["src/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.scss?tag=zonos-shipping-rich-radio&encapsulation=shadow","src/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.tsx"],"sourcesContent":["$selected-border-color: var(--selected-border-color, $amino-blue-600);\n$border-radius: var(--border-radius, $amino-radius-10);\n:host {\n display: flex;\n flex-direction: column;\n input {\n margin: 0;\n accent-color: $selected-border-color;\n }\n .zonos--shipping-rich-radio-item {\n display: flex;\n flex: 1;\n padding: $amino-space-16;\n align-items: center;\n gap: $amino-space-16;\n cursor: pointer;\n border: 1px solid $amino-gray-200;\n &:first-child {\n border-top-left-radius: $border-radius;\n border-top-right-radius: $border-radius;\n }\n &:last-child {\n border-bottom-left-radius: $border-radius;\n border-bottom-right-radius: $border-radius;\n }\n\n &.selected {\n border-color: $selected-border-color;\n }\n }\n .zonos--shipping-info {\n display: flex;\n align-items: center;\n flex: 1;\n }\n .zonos--shipping-detail {\n flex: 1;\n }\n .zonos--sub-detail {\n display: inline-flex;\n gap: 8px;\n flex-wrap: wrap;\n }\n}\n","import {\n type EventEmitter,\n Component,\n Event,\n h,\n Host,\n Prop,\n State,\n} from '@stencil/core';\n\nimport { zonosStore } from 'src/components/store/zonosStore';\nimport { classes } from 'src/components/utils/classes';\nimport { getBorderRadius } from 'src/components/utils/getBorderRadius';\nimport { isColorVariable } from 'src/components/utils/isColorVariable';\nimport type { Color, ElementsUiStyle, ElementsUiTheme } from 'src/types';\n\nexport type ShippingRichRadioItem = {\n caption?: string;\n label: string;\n price: string;\n sublabel?: string;\n value: string | number;\n};\n\n@Component({\n shadow: true,\n styleUrl: 'zonos-shipping-rich-radio.scss',\n tag: 'zonos-shipping-rich-radio',\n})\nexport class ZonosShippingRichRadio {\n /**\n * List of items to display\n */\n @Prop() items!: ShippingRichRadioItem[];\n\n /**\n * Override border color of the radio item\n */\n @Prop() borderColor?: Color | (string & { _placeholder?: never });\n\n /**\n * Override border color of the radio item\n */\n @Prop() borderStyle?: ElementsUiStyle;\n\n /**\n * Theme of the radio item\n */\n @Prop() theme?: ElementsUiTheme;\n /**\n * Selected item\n * @default {null|firstItem}\n */\n @State() selectedItem: ShippingRichRadioItem | null = null;\n\n /**\n * Event emitted when an item is selected\n */\n @Event() radioSelected?: EventEmitter<ShippingRichRadioItem>;\n\n private handleRichRadioSelect = (item: ShippingRichRadioItem) => {\n this.selectedItem = item;\n this.radioSelected?.emit(item);\n };\n\n private getRadioItemStyleVariables = () => {\n const usedColor = this.borderColor || zonosStore.appearance.colorSecondary;\n const secondaryColor = isColorVariable(usedColor)\n ? `var(--amino-${usedColor})`\n : usedColor;\n\n return {\n '--border-radius': getBorderRadius(this.borderStyle),\n '--selected-border-color': secondaryColor || 'unset',\n };\n };\n\n render() {\n return (\n <Host\n class=\"zonos--shipping-rich-radio zonos--elements\"\n data-theme={this.theme}\n style={this.getRadioItemStyleVariables()}\n >\n {this.items?.map(item => {\n const selected = this.selectedItem?.value === item.value;\n return (\n <div\n aria-hidden=\"true\"\n class={classes([\n 'zonos--shipping-rich-radio-item',\n selected && 'selected',\n ])}\n onClick={() => this.handleRichRadioSelect(item)}\n >\n <input\n checked={selected}\n class=\"zonos--shipping-rich-radio-input\"\n name=\"zonos--shipping-rich-radio\"\n type=\"radio\"\n value={item.value}\n />\n <div class=\"zonos--shipping-info\">\n <div class=\"zonos--shipping-detail\">\n <zonos-text type=\"label\">{item.label}</zonos-text>\n {(item.sublabel || item.caption) && (\n <div class=\"zonos--sub-detail\">\n {item.sublabel && (\n <zonos-text color=\"gray-800\">\n {item.sublabel}\n </zonos-text>\n )}\n {item.caption && (\n <zonos-text color=\"gray-400\">{item.caption}</zonos-text>\n )}\n </div>\n )}\n </div>\n <zonos-text type=\"semiBoldLabel\">{item.price}</zonos-text>\n </div>\n </div>\n );\n })}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,2 +0,0 @@
1
- System.register(["./index-87193773.system.js","./zonosStore-77bcd7c0.system.js","./classes-ce25a814.system.js","./getBorderRadius-4fbe49de.system.js","./isColorVariable-be454101.system.js"],(function(e){"use strict";var i,o,s,t,r,a,n,l;return{setters:[function(e){i=e.r;o=e.c;s=e.h;t=e.H},function(e){r=e.z},function(e){a=e.c},function(e){n=e.g},function(e){l=e.i}],execute:function(){var d=":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:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host input{margin:0;accent-color:var(--selected-border-color, var(--amino-blue-600))}:host .zonos--shipping-rich-radio-item{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;padding:var(--amino-space-16);-ms-flex-align:center;align-items:center;gap:var(--amino-space-16);cursor:pointer;border:1px solid var(--amino-gray-200)}:host .zonos--shipping-rich-radio-item:first-child{border-top-left-radius:var(--border-radius, var(--amino-radius-10));border-top-right-radius:var(--border-radius, var(--amino-radius-10))}:host .zonos--shipping-rich-radio-item:last-child{border-bottom-left-radius:var(--border-radius, var(--amino-radius-10));border-bottom-right-radius:var(--border-radius, var(--amino-radius-10))}:host .zonos--shipping-rich-radio-item.selected{border-color:var(--selected-border-color, var(--amino-blue-600))}:host .zonos--shipping-info{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex:1;flex:1}:host .zonos--shipping-detail{-ms-flex:1;flex:1}:host .zonos--sub-detail{display:-ms-inline-flexbox;display:inline-flex;gap:8px;-ms-flex-wrap:wrap;flex-wrap:wrap}";var c=e("zonos_shipping_rich_radio",function(){function e(e){var s=this;i(this,e);this.radioSelected=o(this,"radioSelected",7);this.handleRichRadioSelect=function(e){var i;s.selectedItem=e;(i=s.radioSelected)===null||i===void 0?void 0:i.emit(e)};this.getRadioItemStyleVariables=function(){var e=s.borderColor||r.appearance.colorSecondary;var i=l(e)?"var(--amino-".concat(e,")"):e;return{"--border-radius":n(s.borderStyle),"--selected-border-color":i||"unset"}};this.items=undefined;this.borderColor=undefined;this.borderStyle=undefined;this.theme=undefined;this.selectedItem=null}e.prototype.render=function(){var e=this;var i;return s(t,{class:"zonos--shipping-rich-radio zonos--elements","data-theme":this.theme,style:this.getRadioItemStyleVariables()},(i=this.items)===null||i===void 0?void 0:i.map((function(i){var o;var t=((o=e.selectedItem)===null||o===void 0?void 0:o.value)===i.value;return s("div",{"aria-hidden":"true",class:a(["zonos--shipping-rich-radio-item",t&&"selected"]),onClick:function(){return e.handleRichRadioSelect(i)}},s("input",{checked:t,class:"zonos--shipping-rich-radio-input",name:"zonos--shipping-rich-radio",type:"radio",value:i.value}),s("div",{class:"zonos--shipping-info"},s("div",{class:"zonos--shipping-detail"},s("zonos-text",{type:"label"},i.label),(i.sublabel||i.caption)&&s("div",{class:"zonos--sub-detail"},i.sublabel&&s("zonos-text",{color:"gray-800"},i.sublabel),i.caption&&s("zonos-text",{color:"gray-400"},i.caption))),s("zonos-text",{type:"semiBoldLabel"},i.price)))})))};return e}());c.style=d}}}));
2
- //# sourceMappingURL=zonos-shipping-rich-radio.system.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["zonosShippingRichRadioCss","ZonosShippingRichRadio","exports","this","handleRichRadioSelect","item","_this","selectedItem","_a","radioSelected","emit","getRadioItemStyleVariables","usedColor","borderColor","zonosStore","appearance","colorSecondary","secondaryColor","isColorVariable","concat","getBorderRadius","borderStyle","class_1","prototype","render","h","Host","class","theme","style","items","map","selected","value","classes","onClick","checked","name","type","label","sublabel","caption","color","price"],"sources":["src/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.scss?tag=zonos-shipping-rich-radio&encapsulation=shadow","src/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.tsx"],"sourcesContent":["$selected-border-color: var(--selected-border-color, $amino-blue-600);\n$border-radius: var(--border-radius, $amino-radius-10);\n:host {\n display: flex;\n flex-direction: column;\n input {\n margin: 0;\n accent-color: $selected-border-color;\n }\n .zonos--shipping-rich-radio-item {\n display: flex;\n flex: 1;\n padding: $amino-space-16;\n align-items: center;\n gap: $amino-space-16;\n cursor: pointer;\n border: 1px solid $amino-gray-200;\n &:first-child {\n border-top-left-radius: $border-radius;\n border-top-right-radius: $border-radius;\n }\n &:last-child {\n border-bottom-left-radius: $border-radius;\n border-bottom-right-radius: $border-radius;\n }\n\n &.selected {\n border-color: $selected-border-color;\n }\n }\n .zonos--shipping-info {\n display: flex;\n align-items: center;\n flex: 1;\n }\n .zonos--shipping-detail {\n flex: 1;\n }\n .zonos--sub-detail {\n display: inline-flex;\n gap: 8px;\n flex-wrap: wrap;\n }\n}\n","import {\n type EventEmitter,\n Component,\n Event,\n h,\n Host,\n Prop,\n State,\n} from '@stencil/core';\n\nimport { zonosStore } from 'src/components/store/zonosStore';\nimport { classes } from 'src/components/utils/classes';\nimport { getBorderRadius } from 'src/components/utils/getBorderRadius';\nimport { isColorVariable } from 'src/components/utils/isColorVariable';\nimport type { Color, ElementsUiStyle, ElementsUiTheme } from 'src/types';\n\nexport type ShippingRichRadioItem = {\n caption?: string;\n label: string;\n price: string;\n sublabel?: string;\n value: string | number;\n};\n\n@Component({\n shadow: true,\n styleUrl: 'zonos-shipping-rich-radio.scss',\n tag: 'zonos-shipping-rich-radio',\n})\nexport class ZonosShippingRichRadio {\n /**\n * List of items to display\n */\n @Prop() items!: ShippingRichRadioItem[];\n\n /**\n * Override border color of the radio item\n */\n @Prop() borderColor?: Color | (string & { _placeholder?: never });\n\n /**\n * Override border color of the radio item\n */\n @Prop() borderStyle?: ElementsUiStyle;\n\n /**\n * Theme of the radio item\n */\n @Prop() theme?: ElementsUiTheme;\n /**\n * Selected item\n * @default {null|firstItem}\n */\n @State() selectedItem: ShippingRichRadioItem | null = null;\n\n /**\n * Event emitted when an item is selected\n */\n @Event() radioSelected?: EventEmitter<ShippingRichRadioItem>;\n\n private handleRichRadioSelect = (item: ShippingRichRadioItem) => {\n this.selectedItem = item;\n this.radioSelected?.emit(item);\n };\n\n private getRadioItemStyleVariables = () => {\n const usedColor = this.borderColor || zonosStore.appearance.colorSecondary;\n const secondaryColor = isColorVariable(usedColor)\n ? `var(--amino-${usedColor})`\n : usedColor;\n\n return {\n '--border-radius': getBorderRadius(this.borderStyle),\n '--selected-border-color': secondaryColor || 'unset',\n };\n };\n\n render() {\n return (\n <Host\n class=\"zonos--shipping-rich-radio zonos--elements\"\n data-theme={this.theme}\n style={this.getRadioItemStyleVariables()}\n >\n {this.items?.map(item => {\n const selected = this.selectedItem?.value === item.value;\n return (\n <div\n aria-hidden=\"true\"\n class={classes([\n 'zonos--shipping-rich-radio-item',\n selected && 'selected',\n ])}\n onClick={() => this.handleRichRadioSelect(item)}\n >\n <input\n checked={selected}\n class=\"zonos--shipping-rich-radio-input\"\n name=\"zonos--shipping-rich-radio\"\n type=\"radio\"\n value={item.value}\n />\n <div class=\"zonos--shipping-info\">\n <div class=\"zonos--shipping-detail\">\n <zonos-text type=\"label\">{item.label}</zonos-text>\n {(item.sublabel || item.caption) && (\n <div class=\"zonos--sub-detail\">\n {item.sublabel && (\n <zonos-text color=\"gray-800\">\n {item.sublabel}\n </zonos-text>\n )}\n {item.caption && (\n <zonos-text color=\"gray-400\">{item.caption}</zonos-text>\n )}\n </div>\n )}\n </div>\n <zonos-text type=\"semiBoldLabel\">{item.price}</zonos-text>\n </div>\n </div>\n );\n })}\n </Host>\n );\n }\n}\n"],"mappings":"iYAAA,IAAMA,EAA4B,46C,IC6BrBC,EAAsBC,EAAA,uC,gFA+BzBC,KAAAC,sBAAwB,SAACC,G,MAC/BC,EAAKC,aAAeF,GACpBG,EAAAF,EAAKG,iBAAa,MAAAD,SAAA,SAAAA,EAAEE,KAAKL,E,EAGnBF,KAAAQ,2BAA6B,WACnC,IAAMC,EAAYN,EAAKO,aAAeC,EAAWC,WAAWC,eAC5D,IAAMC,EAAiBC,EAAgBN,GACnC,eAAAO,OAAeP,EAAS,KACxBA,EAEJ,MAAO,CACL,kBAAmBQ,EAAgBd,EAAKe,aACxC,0BAA2BJ,GAAkB,Q,oHApBK,I,CAwBtDK,EAAAC,UAAAC,OAAA,eAAAlB,EAAAH,K,MACE,OACEsB,EAACC,EAAI,CACHC,MAAM,6CAA4C,aACtCxB,KAAKyB,MACjBC,MAAO1B,KAAKQ,+BAEXH,EAAAL,KAAK2B,SAAK,MAAAtB,SAAA,SAAAA,EAAEuB,KAAI,SAAA1B,G,MACf,IAAM2B,IAAWxB,EAAAF,EAAKC,gBAAY,MAAAC,SAAA,SAAAA,EAAEyB,SAAU5B,EAAK4B,MACnD,OACER,EAAA,qBACc,OACZE,MAAOO,EAAQ,CACb,kCACAF,GAAY,aAEdG,QAAS,WAAM,OAAA7B,EAAKF,sBAAsBC,EAA3B,GAEfoB,EAAA,SACEW,QAASJ,EACTL,MAAM,mCACNU,KAAK,6BACLC,KAAK,QACLL,MAAO5B,EAAK4B,QAEdR,EAAA,OAAKE,MAAM,wBACTF,EAAA,OAAKE,MAAM,0BACTF,EAAA,cAAYa,KAAK,SAASjC,EAAKkC,QAC7BlC,EAAKmC,UAAYnC,EAAKoC,UACtBhB,EAAA,OAAKE,MAAM,qBACRtB,EAAKmC,UACJf,EAAA,cAAYiB,MAAM,YACfrC,EAAKmC,UAGTnC,EAAKoC,SACJhB,EAAA,cAAYiB,MAAM,YAAYrC,EAAKoC,WAK3ChB,EAAA,cAAYa,KAAK,iBAAiBjC,EAAKsC,Q,eAzFpB,I"}
@@ -1,156 +0,0 @@
1
- import { r as registerInstance, h, H as Host } from './index-d1aa9293.js';
2
- import { c as classes } from './classes-0d95c529.js';
3
-
4
- const textOptions = {
5
- pageHeader: {
6
- label: 'Page Header (3XL) · 34px (2.125rem)',
7
- size: '3xl',
8
- tag: 'h2',
9
- weight: 900,
10
- },
11
- secondaryPageHeader: {
12
- label: 'Secondary Page Header (3XL) • 34px, 500 "Medium"',
13
- size: '3xl',
14
- tag: 'h2',
15
- weight: 500,
16
- },
17
- // eslint-disable-next-line sort-keys/sort-keys-fix
18
- header: {
19
- label: 'Header (2XL) · 28px (1.75rem)',
20
- size: '2xl',
21
- tag: 'h3',
22
- weight: 700,
23
- },
24
- // eslint-disable-next-line sort-keys/sort-keys-fix
25
- descriptionHeader: {
26
- label: 'Description Header (2XL) · 28px (1.75rem)',
27
- size: '2xl',
28
- tag: 'h3',
29
- weight: 700,
30
- },
31
- title: {
32
- label: 'Title (XL) • 22px (1.375rem)',
33
- size: 'xl',
34
- tag: 'h4',
35
- weight: 600,
36
- },
37
- // eslint-disable-next-line sort-keys/sort-keys-fix
38
- boldSubheader: {
39
- label: 'Bold Subheader (L) • 18px (1.125rem)',
40
- size: 'l',
41
- tag: 'h5',
42
- weight: 700,
43
- },
44
- semiBoldSubheader: {
45
- label: 'Semi Bold Subheader (L / H4) • 18px (1.125rem)',
46
- size: 'l',
47
- tag: 'h5',
48
- weight: 600,
49
- },
50
- subheader: {
51
- label: 'Subheader (L) • 18px (1.125rem)',
52
- size: 'l',
53
- tag: 'h5',
54
- weight: 500,
55
- },
56
- // eslint-disable-next-line sort-keys/sort-keys-fix
57
- boldLabel: {
58
- label: 'Bold Label (Base) • 14px (.875rem)',
59
- size: 'base',
60
- tag: 'span',
61
- weight: 700,
62
- },
63
- semiBoldLabel: {
64
- label: 'Semi Bold Label (Base) • 14px (.875rem)',
65
- size: 'base',
66
- tag: 'span',
67
- weight: 600,
68
- },
69
- // eslint-disable-next-line sort-keys/sort-keys-fix
70
- label: {
71
- label: 'Label (Base) • 14px (.875rem)',
72
- size: 'base',
73
- tag: 'span',
74
- weight: 500,
75
- },
76
- // eslint-disable-next-line sort-keys/sort-keys-fix
77
- body: {
78
- label: 'Body (Base) • 14px (.875rem)',
79
- size: 'base',
80
- tag: 'span',
81
- weight: 400,
82
- },
83
- smallHeader: {
84
- label: 'Small header (S) • 12px (.75rem)',
85
- size: 's',
86
- tag: 'span',
87
- weight: 600,
88
- },
89
- // eslint-disable-next-line sort-keys/sort-keys-fix
90
- caption: {
91
- label: 'Caption (S) • 12px (.75rem)',
92
- size: 's',
93
- tag: 'span',
94
- weight: 400,
95
- },
96
- hintText: {
97
- label: 'Hint text (XS) • 10px (.625rem)',
98
- size: 'xs',
99
- tag: 'span',
100
- weight: 400,
101
- },
102
- };
103
-
104
- const zonosTextCss = ":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{color:var(--color)}:host(.zonos--text-size-3xl)>*,:host(.zonos--text-size-3xl){font-size:var(--amino-font-size-3xl)}:host(.zonos--text-size-2xl)>*,:host(.zonos--text-size-2xl){font-size:var(--amino-font-size-2xl)}:host(.zonos--text-size-xl)>*,:host(.zonos--text-size-xl){font-size:var(--amino-font-size-xl)}:host(.zonos--text-size-l)>*,:host(.zonos--text-size-l){font-size:var(--amino-font-size-l)}:host(.zonos--text-size-base)>*,:host(.zonos--text-size-base){font-size:var(--amino-font-size-base)}:host(.zonos--text-size-s)>*,:host(.zonos--text-size-s){font-size:var(--amino-font-size-s)}:host(.zonos--text-size-xs)>*,:host(.zonos--text-size-xs){font-size:var(--amino-font-size-xs)}:host(.zonos--text-weight-900)>*,:host(.zonos--text-weight-900){font-weight:900}:host(.zonos--text-weight-700)>*,:host(.zonos--text-weight-700){font-weight:700}:host(.zonos--text-weight-600)>*,:host(.zonos--text-weight-600){font-weight:600}:host(.zonos--text-weight-500)>*,:host(.zonos--text-weight-500){font-weight:500}:host(.zonos--text-weight-400)>*,:host(.zonos--text-weight-400){font-weight:400}";
105
-
106
- const ZonosText = class {
107
- constructor(hostRef) {
108
- registerInstance(this, hostRef);
109
- this.class = '';
110
- this.color = 'gray-1200';
111
- this.size = undefined;
112
- this.type = 'body';
113
- this.weight = undefined;
114
- this.content = undefined;
115
- this.ready = false;
116
- }
117
- componentDidRender() {
118
- setTimeout(() => {
119
- this.ready = true;
120
- }, 100);
121
- }
122
- render() {
123
- const { size: defaultSize, tag: defaultTag, weight: defaultWeight, } = textOptions.body;
124
- const { size, tag, weight } = textOptions[this.type];
125
- const textSize = this.size || size || defaultSize;
126
- const textWeight = this.weight || weight || defaultWeight;
127
- const textTag = tag || defaultTag;
128
- const renderText = () => {
129
- switch (textTag) {
130
- case 'h2':
131
- return (h("h2", null, h("slot", null)));
132
- case 'h3':
133
- return (h("h3", null, h("slot", null)));
134
- case 'h4':
135
- return (h("h4", null, h("slot", null)));
136
- case 'h5':
137
- return (h("h5", null, h("slot", null)));
138
- case 'span':
139
- default:
140
- return (h("span", null, h("slot", null)));
141
- }
142
- };
143
- return (h(Host, { class: classes([
144
- `zonos--text-size-${textSize}`,
145
- `zonos--text-weight-${textWeight}`,
146
- this.class,
147
- ]), style: {
148
- '--color': this.color ? `var(--amino-${this.color})` : '',
149
- } }, renderText()));
150
- }
151
- };
152
- ZonosText.style = zonosTextCss;
153
-
154
- export { ZonosText as zonos_text };
155
-
156
- //# sourceMappingURL=zonos-text.entry.js.map
@@ -1 +0,0 @@
1
- {"file":"zonos-text.entry.esm.js","mappings":"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","names":[],"sources":["src/types/styles/Text.ts","src/components/common/zonos-text/zonos-text.scss?tag=zonos-text&encapsulation=shadow","src/components/common/zonos-text/zonos-text.tsx"],"sourcesContent":["export const textOptions = {\n pageHeader: {\n label: 'Page Header (3XL) · 34px (2.125rem)',\n size: '3xl',\n tag: 'h2',\n weight: 900,\n },\n secondaryPageHeader: {\n label: 'Secondary Page Header (3XL) • 34px, 500 \"Medium\"',\n size: '3xl',\n tag: 'h2',\n weight: 500,\n },\n // eslint-disable-next-line sort-keys/sort-keys-fix\n header: {\n label: 'Header (2XL) · 28px (1.75rem)',\n size: '2xl',\n tag: 'h3',\n weight: 700,\n },\n // eslint-disable-next-line sort-keys/sort-keys-fix\n descriptionHeader: {\n label: 'Description Header (2XL) · 28px (1.75rem)',\n size: '2xl',\n tag: 'h3',\n weight: 700,\n },\n title: {\n label: 'Title (XL) • 22px (1.375rem)',\n size: 'xl',\n tag: 'h4',\n weight: 600,\n },\n // eslint-disable-next-line sort-keys/sort-keys-fix\n boldSubheader: {\n label: 'Bold Subheader (L) • 18px (1.125rem)',\n size: 'l',\n tag: 'h5',\n weight: 700,\n },\n semiBoldSubheader: {\n label: 'Semi Bold Subheader (L / H4) • 18px (1.125rem)',\n size: 'l',\n tag: 'h5',\n weight: 600,\n },\n subheader: {\n label: 'Subheader (L) • 18px (1.125rem)',\n size: 'l',\n tag: 'h5',\n weight: 500,\n },\n // eslint-disable-next-line sort-keys/sort-keys-fix\n boldLabel: {\n label: 'Bold Label (Base) • 14px (.875rem)',\n size: 'base',\n tag: 'span',\n weight: 700,\n },\n semiBoldLabel: {\n label: 'Semi Bold Label (Base) • 14px (.875rem)',\n size: 'base',\n tag: 'span',\n weight: 600,\n },\n // eslint-disable-next-line sort-keys/sort-keys-fix\n label: {\n label: 'Label (Base) • 14px (.875rem)',\n size: 'base',\n tag: 'span',\n weight: 500,\n },\n // eslint-disable-next-line sort-keys/sort-keys-fix\n body: {\n label: 'Body (Base) • 14px (.875rem)',\n size: 'base',\n tag: 'span',\n weight: 400,\n },\n smallHeader: {\n label: 'Small header (S) • 12px (.75rem)',\n size: 's',\n tag: 'span',\n weight: 600,\n },\n // eslint-disable-next-line sort-keys/sort-keys-fix\n caption: {\n label: 'Caption (S) • 12px (.75rem)',\n size: 's',\n tag: 'span',\n weight: 400,\n },\n hintText: {\n label: 'Hint text (XS) • 10px (.625rem)',\n size: 'xs',\n tag: 'span',\n weight: 400,\n },\n} as const;\n\ntype TextOptions = typeof textOptions;\nexport type Size = TextOptions[keyof TextOptions]['size'];\nexport type Type = keyof TextOptions;\nexport type FontWeight = TextOptions[keyof TextOptions]['weight'] | 800;\n","$color: var(--color);\n\n$sizes: (\n '3xl': $amino-font-size-3xl,\n '2xl': $amino-font-size-2xl,\n 'xl': $amino-font-size-xl,\n 'l': $amino-font-size-l,\n 'base': $amino-font-size-base,\n 's': $amino-font-size-s,\n 'xs': $amino-font-size-xs,\n);\n\n$weights: (\n '900': 900,\n '700': 700,\n '600': 600,\n '500': 500,\n '400': 400,\n);\n\n:host {\n color: var(--color);\n}\n\n@each $_size, $_value in $sizes {\n :host(.zonos--text-size-#{$_size}) {\n > *,\n & {\n font-size: $_value;\n }\n }\n}\n@each $_weight, $_value in $weights {\n :host(.zonos--text-weight-#{$_weight}) {\n > *,\n & {\n font-weight: $_value;\n }\n }\n}\n","import { Component, h, Host, Prop, State } from '@stencil/core';\n\nimport { classes } from 'src/components/utils/classes';\nimport type { Color } from 'src/types/styles/Color';\nimport {\n type FontWeight,\n type Size,\n type Type,\n textOptions,\n} from 'src/types/styles/Text';\n\n@Component({\n shadow: true,\n styleUrl: 'zonos-text.scss',\n tag: 'zonos-text',\n})\nexport class ZonosText {\n /**\n * css class for the component\n */\n @Prop() class: string = '';\n /**\n * The icon element to display\n */\n @Prop() color: Color = 'gray-1200';\n\n /**\n * The size of the text\n */\n @Prop() size?: Size;\n\n /**\n * Type of the text to display\n */\n @Prop() type: Type = 'body';\n\n /**\n * The weight of the text\n */\n @Prop() weight?: FontWeight;\n\n /**\n * The tag to use for the text\n */\n @Prop() content?: string;\n\n /**\n * Whether or not the component is ready\n */\n @State() ready: boolean = false;\n\n componentDidRender() {\n setTimeout(() => {\n this.ready = true;\n }, 100);\n }\n\n render() {\n const {\n size: defaultSize,\n tag: defaultTag,\n weight: defaultWeight,\n } = textOptions.body;\n const { size, tag, weight } = textOptions[this.type];\n\n const textSize = this.size || size || defaultSize;\n const textWeight = this.weight || weight || defaultWeight;\n const textTag = tag || defaultTag;\n\n const renderText = () => {\n switch (textTag) {\n case 'h2':\n return (\n <h2>\n <slot></slot>\n </h2>\n );\n case 'h3':\n return (\n <h3>\n <slot></slot>\n </h3>\n );\n case 'h4':\n return (\n <h4>\n <slot></slot>\n </h4>\n );\n case 'h5':\n return (\n <h5>\n <slot></slot>\n </h5>\n );\n case 'span':\n default:\n return (\n <span>\n <slot></slot>\n </span>\n );\n }\n };\n\n return (\n <Host\n class={classes([\n `zonos--text-size-${textSize}`,\n `zonos--text-weight-${textWeight}`,\n this.class,\n ])}\n style={{\n '--color': this.color ? `var(--amino-${this.color})` : '',\n }}\n >\n {renderText()}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,2 +0,0 @@
1
- System.register(["./index-87193773.system.js","./classes-ce25a814.system.js"],(function(e){"use strict";var t,s,o,i;return{setters:[function(e){t=e.r;s=e.h;o=e.H},function(e){i=e.c}],execute:function(){var a={pageHeader:{label:"Page Header (3XL) · 34px (2.125rem)",size:"3xl",tag:"h2",weight:900},secondaryPageHeader:{label:'Secondary Page Header (3XL) • 34px, 500 "Medium"',size:"3xl",tag:"h2",weight:500},header:{label:"Header (2XL) · 28px (1.75rem)",size:"2xl",tag:"h3",weight:700},descriptionHeader:{label:"Description Header (2XL) · 28px (1.75rem)",size:"2xl",tag:"h3",weight:700},title:{label:"Title (XL) • 22px (1.375rem)",size:"xl",tag:"h4",weight:600},boldSubheader:{label:"Bold Subheader (L) • 18px (1.125rem)",size:"l",tag:"h5",weight:700},semiBoldSubheader:{label:"Semi Bold Subheader (L / H4) • 18px (1.125rem)",size:"l",tag:"h5",weight:600},subheader:{label:"Subheader (L) • 18px (1.125rem)",size:"l",tag:"h5",weight:500},boldLabel:{label:"Bold Label (Base) • 14px (.875rem)",size:"base",tag:"span",weight:700},semiBoldLabel:{label:"Semi Bold Label (Base) • 14px (.875rem)",size:"base",tag:"span",weight:600},label:{label:"Label (Base) • 14px (.875rem)",size:"base",tag:"span",weight:500},body:{label:"Body (Base) • 14px (.875rem)",size:"base",tag:"span",weight:400},smallHeader:{label:"Small header (S) • 12px (.75rem)",size:"s",tag:"span",weight:600},caption:{label:"Caption (S) • 12px (.75rem)",size:"s",tag:"span",weight:400},hintText:{label:"Hint text (XS) • 10px (.625rem)",size:"xs",tag:"span",weight:400}};var n=":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{color:var(--color)}:host(.zonos--text-size-3xl)>*,:host(.zonos--text-size-3xl){font-size:var(--amino-font-size-3xl)}:host(.zonos--text-size-2xl)>*,:host(.zonos--text-size-2xl){font-size:var(--amino-font-size-2xl)}:host(.zonos--text-size-xl)>*,:host(.zonos--text-size-xl){font-size:var(--amino-font-size-xl)}:host(.zonos--text-size-l)>*,:host(.zonos--text-size-l){font-size:var(--amino-font-size-l)}:host(.zonos--text-size-base)>*,:host(.zonos--text-size-base){font-size:var(--amino-font-size-base)}:host(.zonos--text-size-s)>*,:host(.zonos--text-size-s){font-size:var(--amino-font-size-s)}:host(.zonos--text-size-xs)>*,:host(.zonos--text-size-xs){font-size:var(--amino-font-size-xs)}:host(.zonos--text-weight-900)>*,:host(.zonos--text-weight-900){font-weight:900}:host(.zonos--text-weight-700)>*,:host(.zonos--text-weight-700){font-weight:700}:host(.zonos--text-weight-600)>*,:host(.zonos--text-weight-600){font-weight:600}:host(.zonos--text-weight-500)>*,:host(.zonos--text-weight-500){font-weight:500}:host(.zonos--text-weight-400)>*,:host(.zonos--text-weight-400){font-weight:400}";var h=e("zonos_text",function(){function e(e){t(this,e);this.class="";this.color="gray-1200";this.size=undefined;this.type="body";this.weight=undefined;this.content=undefined;this.ready=false}e.prototype.componentDidRender=function(){var e=this;setTimeout((function(){e.ready=true}),100)};e.prototype.render=function(){var e=a.body,t=e.size,n=e.tag,h=e.weight;var l=a[this.type],r=l.size,z=l.tag,x=l.weight;var g=this.size||r||t;var d=this.weight||x||h;var c=z||n;var u=function(){switch(c){case"h2":return s("h2",null,s("slot",null));case"h3":return s("h3",null,s("slot",null));case"h4":return s("h4",null,s("slot",null));case"h5":return s("h5",null,s("slot",null));case"span":default:return s("span",null,s("slot",null))}};return s(o,{class:i(["zonos--text-size-".concat(g),"zonos--text-weight-".concat(d),this.class]),style:{"--color":this.color?"var(--amino-".concat(this.color,")"):""}},u())};return e}());h.style=n}}}));
2
- //# sourceMappingURL=zonos-text.system.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["textOptions","pageHeader","label","size","tag","weight","secondaryPageHeader","header","descriptionHeader","title","boldSubheader","semiBoldSubheader","subheader","boldLabel","semiBoldLabel","body","smallHeader","caption","hintText","zonosTextCss","ZonosText","exports","class_1","prototype","componentDidRender","_this","this","setTimeout","ready","render","_a","defaultSize","defaultTag","defaultWeight","_b","type","textSize","textWeight","textTag","renderText","h","Host","class","classes","concat","style","color"],"sources":["src/types/styles/Text.ts","src/components/common/zonos-text/zonos-text.scss?tag=zonos-text&encapsulation=shadow","src/components/common/zonos-text/zonos-text.tsx"],"sourcesContent":["export const textOptions = {\n pageHeader: {\n label: 'Page Header (3XL) · 34px (2.125rem)',\n size: '3xl',\n tag: 'h2',\n weight: 900,\n },\n secondaryPageHeader: {\n label: 'Secondary Page Header (3XL) • 34px, 500 \"Medium\"',\n size: '3xl',\n tag: 'h2',\n weight: 500,\n },\n // eslint-disable-next-line sort-keys/sort-keys-fix\n header: {\n label: 'Header (2XL) · 28px (1.75rem)',\n size: '2xl',\n tag: 'h3',\n weight: 700,\n },\n // eslint-disable-next-line sort-keys/sort-keys-fix\n descriptionHeader: {\n label: 'Description Header (2XL) · 28px (1.75rem)',\n size: '2xl',\n tag: 'h3',\n weight: 700,\n },\n title: {\n label: 'Title (XL) • 22px (1.375rem)',\n size: 'xl',\n tag: 'h4',\n weight: 600,\n },\n // eslint-disable-next-line sort-keys/sort-keys-fix\n boldSubheader: {\n label: 'Bold Subheader (L) • 18px (1.125rem)',\n size: 'l',\n tag: 'h5',\n weight: 700,\n },\n semiBoldSubheader: {\n label: 'Semi Bold Subheader (L / H4) • 18px (1.125rem)',\n size: 'l',\n tag: 'h5',\n weight: 600,\n },\n subheader: {\n label: 'Subheader (L) • 18px (1.125rem)',\n size: 'l',\n tag: 'h5',\n weight: 500,\n },\n // eslint-disable-next-line sort-keys/sort-keys-fix\n boldLabel: {\n label: 'Bold Label (Base) • 14px (.875rem)',\n size: 'base',\n tag: 'span',\n weight: 700,\n },\n semiBoldLabel: {\n label: 'Semi Bold Label (Base) • 14px (.875rem)',\n size: 'base',\n tag: 'span',\n weight: 600,\n },\n // eslint-disable-next-line sort-keys/sort-keys-fix\n label: {\n label: 'Label (Base) • 14px (.875rem)',\n size: 'base',\n tag: 'span',\n weight: 500,\n },\n // eslint-disable-next-line sort-keys/sort-keys-fix\n body: {\n label: 'Body (Base) • 14px (.875rem)',\n size: 'base',\n tag: 'span',\n weight: 400,\n },\n smallHeader: {\n label: 'Small header (S) • 12px (.75rem)',\n size: 's',\n tag: 'span',\n weight: 600,\n },\n // eslint-disable-next-line sort-keys/sort-keys-fix\n caption: {\n label: 'Caption (S) • 12px (.75rem)',\n size: 's',\n tag: 'span',\n weight: 400,\n },\n hintText: {\n label: 'Hint text (XS) • 10px (.625rem)',\n size: 'xs',\n tag: 'span',\n weight: 400,\n },\n} as const;\n\ntype TextOptions = typeof textOptions;\nexport type Size = TextOptions[keyof TextOptions]['size'];\nexport type Type = keyof TextOptions;\nexport type FontWeight = TextOptions[keyof TextOptions]['weight'] | 800;\n","$color: var(--color);\n\n$sizes: (\n '3xl': $amino-font-size-3xl,\n '2xl': $amino-font-size-2xl,\n 'xl': $amino-font-size-xl,\n 'l': $amino-font-size-l,\n 'base': $amino-font-size-base,\n 's': $amino-font-size-s,\n 'xs': $amino-font-size-xs,\n);\n\n$weights: (\n '900': 900,\n '700': 700,\n '600': 600,\n '500': 500,\n '400': 400,\n);\n\n:host {\n color: var(--color);\n}\n\n@each $_size, $_value in $sizes {\n :host(.zonos--text-size-#{$_size}) {\n > *,\n & {\n font-size: $_value;\n }\n }\n}\n@each $_weight, $_value in $weights {\n :host(.zonos--text-weight-#{$_weight}) {\n > *,\n & {\n font-weight: $_value;\n }\n }\n}\n","import { Component, h, Host, Prop, State } from '@stencil/core';\n\nimport { classes } from 'src/components/utils/classes';\nimport type { Color } from 'src/types/styles/Color';\nimport {\n type FontWeight,\n type Size,\n type Type,\n textOptions,\n} from 'src/types/styles/Text';\n\n@Component({\n shadow: true,\n styleUrl: 'zonos-text.scss',\n tag: 'zonos-text',\n})\nexport class ZonosText {\n /**\n * css class for the component\n */\n @Prop() class: string = '';\n /**\n * The icon element to display\n */\n @Prop() color: Color = 'gray-1200';\n\n /**\n * The size of the text\n */\n @Prop() size?: Size;\n\n /**\n * Type of the text to display\n */\n @Prop() type: Type = 'body';\n\n /**\n * The weight of the text\n */\n @Prop() weight?: FontWeight;\n\n /**\n * The tag to use for the text\n */\n @Prop() content?: string;\n\n /**\n * Whether or not the component is ready\n */\n @State() ready: boolean = false;\n\n componentDidRender() {\n setTimeout(() => {\n this.ready = true;\n }, 100);\n }\n\n render() {\n const {\n size: defaultSize,\n tag: defaultTag,\n weight: defaultWeight,\n } = textOptions.body;\n const { size, tag, weight } = textOptions[this.type];\n\n const textSize = this.size || size || defaultSize;\n const textWeight = this.weight || weight || defaultWeight;\n const textTag = tag || defaultTag;\n\n const renderText = () => {\n switch (textTag) {\n case 'h2':\n return (\n <h2>\n <slot></slot>\n </h2>\n );\n case 'h3':\n return (\n <h3>\n <slot></slot>\n </h3>\n );\n case 'h4':\n return (\n <h4>\n <slot></slot>\n </h4>\n );\n case 'h5':\n return (\n <h5>\n <slot></slot>\n </h5>\n );\n case 'span':\n default:\n return (\n <span>\n <slot></slot>\n </span>\n );\n }\n };\n\n return (\n <Host\n class={classes([\n `zonos--text-size-${textSize}`,\n `zonos--text-weight-${textWeight}`,\n this.class,\n ])}\n style={{\n '--color': this.color ? `var(--amino-${this.color})` : '',\n }}\n >\n {renderText()}\n </Host>\n );\n }\n}\n"],"mappings":"0MAAO,IAAMA,EAAc,CACzBC,WAAY,CACVC,MAAO,sCACPC,KAAM,MACNC,IAAK,KACLC,OAAQ,KAEVC,oBAAqB,CACnBJ,MAAO,mDACPC,KAAM,MACNC,IAAK,KACLC,OAAQ,KAGVE,OAAQ,CACNL,MAAO,gCACPC,KAAM,MACNC,IAAK,KACLC,OAAQ,KAGVG,kBAAmB,CACjBN,MAAO,4CACPC,KAAM,MACNC,IAAK,KACLC,OAAQ,KAEVI,MAAO,CACLP,MAAO,+BACPC,KAAM,KACNC,IAAK,KACLC,OAAQ,KAGVK,cAAe,CACbR,MAAO,uCACPC,KAAM,IACNC,IAAK,KACLC,OAAQ,KAEVM,kBAAmB,CACjBT,MAAO,iDACPC,KAAM,IACNC,IAAK,KACLC,OAAQ,KAEVO,UAAW,CACTV,MAAO,kCACPC,KAAM,IACNC,IAAK,KACLC,OAAQ,KAGVQ,UAAW,CACTX,MAAO,qCACPC,KAAM,OACNC,IAAK,OACLC,OAAQ,KAEVS,cAAe,CACbZ,MAAO,0CACPC,KAAM,OACNC,IAAK,OACLC,OAAQ,KAGVH,MAAO,CACLA,MAAO,gCACPC,KAAM,OACNC,IAAK,OACLC,OAAQ,KAGVU,KAAM,CACJb,MAAO,+BACPC,KAAM,OACNC,IAAK,OACLC,OAAQ,KAEVW,YAAa,CACXd,MAAO,mCACPC,KAAM,IACNC,IAAK,OACLC,OAAQ,KAGVY,QAAS,CACPf,MAAO,8BACPC,KAAM,IACNC,IAAK,OACLC,OAAQ,KAEVa,SAAU,CACRhB,MAAO,kCACPC,KAAM,KACNC,IAAK,OACLC,OAAQ,MChGZ,IAAMc,EAAe,u0C,ICgBRC,EAASC,EAAA,wB,mCAII,G,WAID,Y,8BAUF,O,wDAeK,K,CAE1BC,EAAAC,UAAAC,mBAAA,eAAAC,EAAAC,KACEC,YAAW,WACTF,EAAKG,MAAQ,I,GACZ,I,EAGLN,EAAAC,UAAAM,OAAA,WACQ,IAAAC,EAIF9B,EAAYe,KAHRgB,EAAWD,EAAA3B,KACZ6B,EAAUF,EAAA1B,IACP6B,EAAaH,EAAAzB,OAEjB,IAAA6B,EAAwBlC,EAAY0B,KAAKS,MAAvChC,EAAI+B,EAAA/B,KAAEC,EAAG8B,EAAA9B,IAAEC,EAAM6B,EAAA7B,OAEzB,IAAM+B,EAAWV,KAAKvB,MAAQA,GAAQ4B,EACtC,IAAMM,EAAaX,KAAKrB,QAAUA,GAAU4B,EAC5C,IAAMK,EAAUlC,GAAO4B,EAEvB,IAAMO,EAAa,WACjB,OAAQD,GACN,IAAK,KACH,OACEE,EAAA,UACEA,EAAA,cAGN,IAAK,KACH,OACEA,EAAA,UACEA,EAAA,cAGN,IAAK,KACH,OACEA,EAAA,UACEA,EAAA,cAGN,IAAK,KACH,OACEA,EAAA,UACEA,EAAA,cAGN,IAAK,OACL,QACE,OACEA,EAAA,YACEA,EAAA,c,EAMV,OACEA,EAACC,EAAI,CACHC,MAAOC,EAAQ,CACb,oBAAAC,OAAoBR,GACpB,sBAAAQ,OAAsBP,GACtBX,KAAKgB,QAEPG,MAAO,CACL,UAAWnB,KAAKoB,MAAQ,eAAAF,OAAelB,KAAKoB,MAAK,KAAM,KAGxDP,I,WApGa,I"}