@zonos/elements 1.3.22 → 1.3.24

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 (272) hide show
  1. package/dist/cjs/{ILanguage-d247b45b.js → ILanguage-98b04442.js} +2 -2
  2. package/dist/cjs/{cart-f963b239.js → cart-31ad351d.js} +399 -220
  3. package/dist/cjs/{getBorderRadius-332422ab.js → getBorderRadius-ea0984bb.js} +1 -1
  4. package/dist/cjs/index.cjs.js +3 -3
  5. package/dist/cjs/{isDarkColor-3ddf6511.js → isDarkColor-b14d5752.js} +1 -1
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/{submitGtag-8d562ad4.js → submitGtag-d37af04d.js} +2 -2
  8. package/dist/cjs/zonos-address_8.cjs.entry.js +7 -7
  9. package/dist/cjs/zonos-badge_2.cjs.entry.js +3 -3
  10. package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
  11. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  12. package/dist/cjs/zonos-card_2.cjs.entry.js +5 -5
  13. package/dist/cjs/{zonos-cart-items_11.cjs.entry.js → zonos-cart-items_12.cjs.entry.js} +41 -12
  14. package/dist/cjs/zonos-checkout.cjs.entry.js +46 -6
  15. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  16. package/dist/cjs/zonos-controller.cjs.entry.js +9 -7
  17. package/dist/cjs/zonos-country-flag.cjs.entry.js +4 -4
  18. package/dist/cjs/zonos-country-select_3.cjs.entry.js +7 -7
  19. package/dist/cjs/zonos-elements.cjs.js +1 -1
  20. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +13 -11
  21. package/dist/cjs/zonos-hello.cjs.entry.js +15 -11
  22. package/dist/cjs/zonos-input.cjs.entry.js +2 -2
  23. package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
  24. package/dist/cjs/zonos-notification.cjs.entry.js +1 -1
  25. package/dist/cjs/zonos-payment.cjs.entry.js +5 -5
  26. package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +5 -5
  27. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +2 -2
  28. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  29. package/dist/cjs/{zonosStore-768d6ca0.js → zonosStore-3958bbeb.js} +0 -2
  30. package/dist/collection/collection-manifest.json +1 -0
  31. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.css +1 -1
  32. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +44 -2
  33. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.css +2 -2
  34. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +31 -10
  35. package/dist/collection/components/common/zonos-dialog/zonos-dialog.css +4 -4
  36. package/dist/collection/components/common/zonos-rest-state/assets/Boxes.png +0 -0
  37. package/dist/collection/components/common/zonos-rest-state/assets/Earth.png +0 -0
  38. package/dist/collection/components/common/zonos-rest-state/assets/EmptyBox.png +0 -0
  39. package/dist/collection/components/common/zonos-rest-state/assets/Lock.png +0 -0
  40. package/dist/collection/components/common/zonos-rest-state/assets/PigBank.png +0 -0
  41. package/dist/collection/components/common/zonos-rest-state/assets/Scribble.png +0 -0
  42. package/dist/collection/components/common/zonos-rest-state/assets/Search.png +0 -0
  43. package/dist/collection/components/common/zonos-rest-state/assets/Settings.png +0 -0
  44. package/dist/collection/components/common/zonos-rest-state/assets/ShoppingCart.png +0 -0
  45. package/dist/collection/components/common/zonos-rest-state/assets/SpilledCup.png +0 -0
  46. package/dist/collection/components/common/zonos-rest-state/assets/Switch.png +0 -0
  47. package/dist/collection/components/common/zonos-rest-state/assets/TaxId.png +0 -0
  48. package/dist/collection/components/common/zonos-rest-state/assets/Truck.png +0 -0
  49. package/dist/collection/components/common/zonos-rest-state/assets/Warning.png +0 -0
  50. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.css +53 -0
  51. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +102 -0
  52. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  53. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  54. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  55. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  56. package/dist/collection/components/hello/zonos-hello/zonos-hello.js +3 -1
  57. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -3
  58. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +9 -7
  59. package/dist/collection/components/main/zonos-controller.js +1 -1
  60. package/dist/collection/components/store/hello/localization.js +1 -1
  61. package/dist/collection/components/store/translationStore/strings.arabic.js +19 -10
  62. package/dist/collection/components/store/translationStore/strings.base.js +19 -10
  63. package/dist/collection/components/store/translationStore/strings.chinese.js +19 -10
  64. package/dist/collection/components/store/translationStore/strings.danish.js +19 -10
  65. package/dist/collection/components/store/translationStore/strings.dutch.js +19 -10
  66. package/dist/collection/components/store/translationStore/strings.french.js +19 -10
  67. package/dist/collection/components/store/translationStore/strings.german.js +19 -10
  68. package/dist/collection/components/store/translationStore/strings.hebrew.js +19 -10
  69. package/dist/collection/components/store/translationStore/strings.indonesian.js +19 -10
  70. package/dist/collection/components/store/translationStore/strings.italian.js +19 -10
  71. package/dist/collection/components/store/translationStore/strings.japanese.js +19 -10
  72. package/dist/collection/components/store/translationStore/strings.korean.js +19 -10
  73. package/dist/collection/components/store/translationStore/strings.norwegian.js +19 -10
  74. package/dist/collection/components/store/translationStore/strings.polish.js +19 -10
  75. package/dist/collection/components/store/translationStore/strings.portuguese.js +19 -10
  76. package/dist/collection/components/store/translationStore/strings.russian.js +19 -10
  77. package/dist/collection/components/store/translationStore/strings.spanish.js +19 -10
  78. package/dist/collection/components/store/translationStore/strings.swedish.js +19 -10
  79. package/dist/collection/components/store/translationStore/strings.turkish.js +19 -10
  80. package/dist/collection/components/store/translationStore/strings.vietnamese.js +19 -10
  81. package/dist/collection/components/store/translationStore.js +2 -2
  82. package/dist/collection/components/store/zonosStore.js +0 -2
  83. package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
  84. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
  85. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  86. package/dist/collection/components/utils/hello/currencyConversion/currencyDisplay.js +1 -15
  87. package/dist/collection/components/utils/hello/currencyConversion/defaultCurrencyConverter.js +14 -2
  88. package/dist/collection/components/utils/hello/getCurrentHelloLocalePage.js +8 -6
  89. package/dist/collection/components/utils/hello/initHello.js +4 -2
  90. package/dist/collection/components/utils/restStateType.js +16 -0
  91. package/dist/collection/types/ILanguage.js +2 -2
  92. package/dist/esm/{ILanguage-97790bee.js → ILanguage-cd6acb72.js} +2 -2
  93. package/dist/esm/{cart-efecbea6.js → cart-8662415b.js} +399 -220
  94. package/dist/esm/{getBorderRadius-a2e46e26.js → getBorderRadius-5e5a5800.js} +1 -1
  95. package/dist/esm/index.js +3 -3
  96. package/dist/esm/{isDarkColor-69ed8e39.js → isDarkColor-5185b62c.js} +1 -1
  97. package/dist/esm/loader.js +1 -1
  98. package/dist/esm/{submitGtag-a7b8a86e.js → submitGtag-07553cf5.js} +2 -2
  99. package/dist/esm/zonos-address_8.entry.js +7 -7
  100. package/dist/esm/zonos-badge_2.entry.js +3 -3
  101. package/dist/esm/zonos-banner.entry.js +1 -1
  102. package/dist/esm/zonos-button_3.entry.js +3 -3
  103. package/dist/esm/zonos-card_2.entry.js +5 -5
  104. package/dist/esm/{zonos-cart-items_11.entry.js → zonos-cart-items_12.entry.js} +41 -13
  105. package/dist/esm/zonos-checkout.entry.js +47 -7
  106. package/dist/esm/zonos-component.entry.js +1 -1
  107. package/dist/esm/zonos-controller.entry.js +9 -7
  108. package/dist/esm/zonos-country-flag.entry.js +4 -4
  109. package/dist/esm/zonos-country-select_3.entry.js +7 -7
  110. package/dist/esm/zonos-elements.js +1 -1
  111. package/dist/esm/zonos-hello-dialog.entry.js +13 -11
  112. package/dist/esm/zonos-hello.entry.js +15 -11
  113. package/dist/esm/zonos-input.entry.js +2 -2
  114. package/dist/esm/zonos-logo.entry.js +1 -1
  115. package/dist/esm/zonos-notification.entry.js +1 -1
  116. package/dist/esm/zonos-payment.entry.js +5 -5
  117. package/dist/esm/zonos-select-dialog-header_2.entry.js +5 -5
  118. package/dist/esm/zonos-shipping-rich-radio.entry.js +2 -2
  119. package/dist/esm/zonos-text.entry.js +1 -1
  120. package/dist/esm/{zonosStore-93da32b4.js → zonosStore-8b9ea19c.js} +0 -2
  121. package/dist/esm-es5/ILanguage-cd6acb72.js +1 -0
  122. package/dist/esm-es5/cart-8662415b.js +1 -0
  123. package/dist/esm-es5/{getBorderRadius-a2e46e26.js → getBorderRadius-5e5a5800.js} +1 -1
  124. package/dist/esm-es5/index.js +1 -1
  125. package/dist/esm-es5/{isDarkColor-69ed8e39.js → isDarkColor-5185b62c.js} +1 -1
  126. package/dist/esm-es5/loader.js +1 -1
  127. package/dist/esm-es5/{submitGtag-a7b8a86e.js → submitGtag-07553cf5.js} +1 -1
  128. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  129. package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
  130. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  131. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  132. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  133. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -0
  134. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  135. package/dist/esm-es5/zonos-component.entry.js +1 -1
  136. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  137. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  138. package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
  139. package/dist/esm-es5/zonos-elements.js +1 -1
  140. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  141. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  142. package/dist/esm-es5/zonos-input.entry.js +1 -1
  143. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  144. package/dist/esm-es5/zonos-notification.entry.js +1 -1
  145. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  146. package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -1
  147. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  148. package/dist/esm-es5/zonos-text.entry.js +1 -1
  149. package/dist/esm-es5/{zonosStore-93da32b4.js → zonosStore-8b9ea19c.js} +1 -1
  150. package/dist/scripts/index.d.ts +74 -12
  151. package/dist/scripts/index.js +1 -1
  152. package/dist/scripts/loadZonos.js +1 -1
  153. package/dist/scripts/zonos.js +1 -1
  154. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +12 -0
  155. package/dist/types/components/common/zonos-confirm-dialog/zonos-confirm-dialog.d.ts +8 -1
  156. package/dist/types/components/common/zonos-rest-state/zonos-rest-state.d.ts +21 -0
  157. package/dist/types/components/store/translationStore/strings.arabic.d.ts +17 -8
  158. package/dist/types/components/store/translationStore/strings.base.d.ts +17 -8
  159. package/dist/types/components/store/translationStore/strings.chinese.d.ts +17 -8
  160. package/dist/types/components/store/translationStore/strings.danish.d.ts +17 -8
  161. package/dist/types/components/store/translationStore/strings.dutch.d.ts +17 -8
  162. package/dist/types/components/store/translationStore/strings.french.d.ts +17 -8
  163. package/dist/types/components/store/translationStore/strings.german.d.ts +17 -8
  164. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +17 -8
  165. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +17 -8
  166. package/dist/types/components/store/translationStore/strings.italian.d.ts +17 -8
  167. package/dist/types/components/store/translationStore/strings.japanese.d.ts +17 -8
  168. package/dist/types/components/store/translationStore/strings.korean.d.ts +17 -8
  169. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +17 -8
  170. package/dist/types/components/store/translationStore/strings.polish.d.ts +17 -8
  171. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +17 -8
  172. package/dist/types/components/store/translationStore/strings.russian.d.ts +17 -8
  173. package/dist/types/components/store/translationStore/strings.spanish.d.ts +17 -8
  174. package/dist/types/components/store/translationStore/strings.swedish.d.ts +17 -8
  175. package/dist/types/components/store/translationStore/strings.turkish.d.ts +17 -8
  176. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +17 -8
  177. package/dist/types/components/store/translationStore.d.ts +7 -7
  178. package/dist/types/components/utils/hello/currencyConversion/getCurrencyElements.d.ts +1 -1
  179. package/dist/types/components/utils/restStateType.d.ts +2 -0
  180. package/dist/types/components.d.ts +52 -3
  181. package/dist/types/scripts/_zonosBase.d.ts +21 -2
  182. package/dist/types/types/ILanguage.d.ts +2 -2
  183. package/dist/types/types/hello/HelloConfig.d.ts +1 -3
  184. package/dist/zonos-elements/assets/Boxes.png +0 -0
  185. package/dist/zonos-elements/assets/Earth.png +0 -0
  186. package/dist/zonos-elements/assets/EmptyBox.png +0 -0
  187. package/dist/zonos-elements/assets/Lock.png +0 -0
  188. package/dist/zonos-elements/assets/PigBank.png +0 -0
  189. package/dist/zonos-elements/assets/Scribble.png +0 -0
  190. package/dist/zonos-elements/assets/Search.png +0 -0
  191. package/dist/zonos-elements/assets/Settings.png +0 -0
  192. package/dist/zonos-elements/assets/ShoppingCart.png +0 -0
  193. package/dist/zonos-elements/assets/SpilledCup.png +0 -0
  194. package/dist/zonos-elements/assets/Switch.png +0 -0
  195. package/dist/zonos-elements/assets/TaxId.png +0 -0
  196. package/dist/zonos-elements/assets/Truck.png +0 -0
  197. package/dist/zonos-elements/assets/Warning.png +0 -0
  198. package/dist/zonos-elements/index.esm.js +1 -1
  199. package/dist/zonos-elements/{p-c77c056d.system.entry.js → p-02a01106.system.entry.js} +1 -1
  200. package/dist/zonos-elements/{p-283aa6f9.system.entry.js → p-088d6460.system.entry.js} +1 -1
  201. package/dist/zonos-elements/{p-13940c52.entry.js → p-0ea19a4d.entry.js} +1 -1
  202. package/dist/zonos-elements/p-144147f8.system.entry.js +1 -0
  203. package/dist/zonos-elements/{p-ecaed308.system.entry.js → p-1620d0cc.system.entry.js} +1 -1
  204. package/dist/zonos-elements/{p-7d2fc0fd.entry.js → p-1752853e.entry.js} +1 -1
  205. package/dist/zonos-elements/{p-8df58197.system.entry.js → p-1d7c9c24.system.entry.js} +1 -1
  206. package/dist/zonos-elements/{p-33f83b9a.system.entry.js → p-1e2fbb1d.system.entry.js} +1 -1
  207. package/dist/zonos-elements/p-1fed304e.system.js +1 -0
  208. package/dist/zonos-elements/{p-498a0e18.entry.js → p-2701e08c.entry.js} +1 -1
  209. package/dist/zonos-elements/{p-140bb400.system.entry.js → p-299bceb7.system.entry.js} +1 -1
  210. package/dist/zonos-elements/p-33b054d9.system.js +1 -0
  211. package/dist/zonos-elements/{p-d6f829c2.entry.js → p-33bcb4ab.entry.js} +1 -1
  212. package/dist/zonos-elements/{p-5b7438ef.entry.js → p-41413c70.entry.js} +1 -1
  213. package/dist/zonos-elements/{p-bbe5d0f0.entry.js → p-44c59c27.entry.js} +1 -1
  214. package/dist/zonos-elements/p-45969dde.system.entry.js +1 -0
  215. package/dist/zonos-elements/p-4f2986fa.system.entry.js +1 -0
  216. package/dist/zonos-elements/{p-1e07c616.system.entry.js → p-5992c6fb.system.entry.js} +1 -1
  217. package/dist/zonos-elements/p-5a11a235.system.entry.js +1 -0
  218. package/dist/zonos-elements/{p-c53f7199.entry.js → p-6260d404.entry.js} +1 -1
  219. package/dist/zonos-elements/p-687f1f62.entry.js +1 -0
  220. package/dist/zonos-elements/{p-36f8a3df.system.js → p-7d48c12c.system.js} +1 -1
  221. package/dist/zonos-elements/{p-68e3ef26.system.entry.js → p-7f08c0f4.system.entry.js} +1 -1
  222. package/dist/zonos-elements/{p-a20f6ba3.entry.js → p-7fa5a6ea.entry.js} +1 -1
  223. package/dist/zonos-elements/p-81750812.entry.js +1 -0
  224. package/dist/zonos-elements/{p-298b5d95.entry.js → p-84791c5c.entry.js} +1 -1
  225. package/dist/zonos-elements/{p-884b41a8.system.js → p-8853e051.system.js} +1 -1
  226. package/dist/zonos-elements/{p-57d70603.entry.js → p-8e584524.entry.js} +1 -1
  227. package/dist/zonos-elements/{p-8171d013.system.entry.js → p-941a01be.system.entry.js} +1 -1
  228. package/dist/zonos-elements/p-97aceb11.js +1 -0
  229. package/dist/zonos-elements/{p-2d3940dc.entry.js → p-9c0859b5.entry.js} +1 -1
  230. package/dist/zonos-elements/{p-c0f0edbe.entry.js → p-9c8705ac.entry.js} +1 -1
  231. package/dist/zonos-elements/{p-795a3ed5.js → p-a5e9d372.js} +1 -1
  232. package/dist/zonos-elements/p-a67e5a9b.js +1 -0
  233. package/dist/zonos-elements/p-afc277d9.entry.js +1 -0
  234. package/dist/zonos-elements/{p-85a49fb8.system.entry.js → p-b45db572.system.entry.js} +1 -1
  235. package/dist/zonos-elements/p-b56c38a9.entry.js +1 -0
  236. package/dist/zonos-elements/{p-3bee1a04.system.entry.js → p-b79753bb.system.entry.js} +1 -1
  237. package/dist/zonos-elements/{p-a52afd83.system.js → p-be14323b.system.js} +1 -1
  238. package/dist/zonos-elements/{p-95ffff25.js → p-bf9dca26.js} +1 -1
  239. package/dist/zonos-elements/{p-5ca32f4f.entry.js → p-bfc30599.entry.js} +1 -1
  240. package/dist/zonos-elements/{p-d8255adf.entry.js → p-c0ddef11.entry.js} +1 -1
  241. package/dist/zonos-elements/{p-20ab8daf.system.entry.js → p-c41d1708.system.entry.js} +1 -1
  242. package/dist/zonos-elements/{p-df267420.js → p-c53cef11.js} +1 -1
  243. package/dist/zonos-elements/{p-2641f474.system.entry.js → p-c8e83577.system.entry.js} +1 -1
  244. package/dist/zonos-elements/p-c9e433c0.system.js +1 -0
  245. package/dist/zonos-elements/{p-6e717c40.system.entry.js → p-cbe5c7bb.system.entry.js} +1 -1
  246. package/dist/zonos-elements/p-d1b8bfce.system.js +1 -0
  247. package/dist/zonos-elements/p-d29b5bff.entry.js +1 -0
  248. package/dist/zonos-elements/{p-18432252.js → p-d6307a6d.js} +1 -1
  249. package/dist/zonos-elements/{p-5edc4f18.system.entry.js → p-d6796b73.system.entry.js} +1 -1
  250. package/dist/zonos-elements/{p-c2328652.system.entry.js → p-d7e6cad0.system.entry.js} +1 -1
  251. package/dist/zonos-elements/p-e0bf9666.system.js +1 -1
  252. package/dist/zonos-elements/{p-e5f7ff0f.entry.js → p-f3feed11.entry.js} +1 -1
  253. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  254. package/package.json +7 -15
  255. package/dist/esm-es5/ILanguage-97790bee.js +0 -1
  256. package/dist/esm-es5/cart-efecbea6.js +0 -1
  257. package/dist/esm-es5/zonos-cart-items_11.entry.js +0 -1
  258. package/dist/zonos-elements/p-102c670d.entry.js +0 -1
  259. package/dist/zonos-elements/p-16ad90ca.js +0 -1
  260. package/dist/zonos-elements/p-348adf28.js +0 -1
  261. package/dist/zonos-elements/p-49061c5d.entry.js +0 -1
  262. package/dist/zonos-elements/p-678daa20.system.entry.js +0 -1
  263. package/dist/zonos-elements/p-8a65433a.entry.js +0 -1
  264. package/dist/zonos-elements/p-968df90a.entry.js +0 -1
  265. package/dist/zonos-elements/p-9a299a98.system.entry.js +0 -1
  266. package/dist/zonos-elements/p-abe7524f.system.js +0 -1
  267. package/dist/zonos-elements/p-c7360a6c.system.js +0 -1
  268. package/dist/zonos-elements/p-d0a2b1ba.system.entry.js +0 -1
  269. package/dist/zonos-elements/p-d0c53fba.system.js +0 -1
  270. package/dist/zonos-elements/p-dafc6260.system.js +0 -1
  271. package/dist/zonos-elements/p-e625f68d.system.entry.js +0 -1
  272. package/dist/zonos-elements/p-edfb5021.entry.js +0 -1
@@ -22,8 +22,9 @@ export class ZonosConfirmDialog {
22
22
  this.submitBtnColor = undefined;
23
23
  this.dialogConfirmBtnText = undefined;
24
24
  this.dialogCancelBtnText = undefined;
25
+ this.dialogType = 'confirm';
25
26
  this.isMobile = false;
26
- this.dialogOpen = false;
27
+ this.dialogOpen = undefined;
27
28
  this.noClickOutside = false;
28
29
  }
29
30
  handleKeyDown(ev) {
@@ -81,12 +82,12 @@ export class ZonosConfirmDialog {
81
82
  const borderStyle = getBorderRadius();
82
83
  // Get theme for the update dialog, inherit from the theme, no from this component theme
83
84
  const theme = getZonosStoreTheme(zonosStore.appearance.theme);
84
- return (h(Host, { key: 'e52030ffc052c699daa87c5b62ee8b44ddad7f7f', class: classes([this.dialogOpen && 'open', 'zonos--elements']), "data-theme": theme, style: {
85
+ return (h(Host, { key: '0adbea273e5504ac29ef8040fd968ded3f731f4b', class: classes([this.dialogOpen && 'open', 'zonos--elements']), "data-dialog-type": this.dialogType, "data-theme": theme, style: {
85
86
  '--border-radius': borderStyle,
86
87
  '--font-family': zonosStoreFontFamily(),
87
- } }, h("div", { key: 'a34d31946f198b2593f142b582aec18f69fe74c5', class: "zonos--backdrop", tabIndex: -1 }), h("div", { key: '2f3dfa27dfbfbc4080eb710dd3db530521b63d36', "aria-hidden": "true", class: classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, h("div", { key: '8f61424a8899c81f9510deda0adc3ff3e2da102b', class: "zonos--confirm-dialog", onBlur: () => {
88
+ } }, h("div", { key: '4dbb78a0d1fc37dbd573c23aee53838a4578e18e', class: "zonos--backdrop", tabIndex: -1 }), h("div", { key: '106e28d9bea08a332063cf8fe07f7e1db7ef3f0b', "aria-hidden": "true", class: classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, h("div", { key: 'b296e7d2c30815147396b6e5c50207b40722d6f5', class: "zonos--confirm-dialog", onBlur: () => {
88
89
  this.focusDialog();
89
- } }, h("div", { key: '2fca3f071d7f9d2af628d909770bb12a3acabfe2', class: "wrapper" }, h("div", { key: 'fed312e492a9fcac175a9cac7501255aeb975c10', class: "icon-wrapper" }, this.renderIcon()), h("div", { key: '131651e201a8d6b2ee9e0c82bd1990bc9a8dc702', class: "content" }, h("div", { key: 'a42e1a9271bdfb9fba133e9af330bdb8b16be230', class: "title" }, h("zonos-text", { key: '91461b9e572e3eb0e6e8616612cce56cf723678f', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (h("div", { key: 'fde989f7ef37692173c1476b5cfd98f6cc71bb6e', class: "subtitle" }, h("zonos-text", { key: '2e273099ff036b1aa62bba923fff696d1d291867', textColor: "gray-800" }, this.dialogSubtitle)))), h("div", { key: '3b7f50adf490388feb759f2e09a626ece5f29c20', class: "footer" }, h("zonos-button", { key: '9686f10d831470273543cf3b5217a8e59bb5160a', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText), h("zonos-button", { key: '3781a86d62efe11e8dc08886e3b4ad885c64776a', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
90
+ } }, h("div", { key: 'ba8c7aa3f0a6c3753f2275b2fd9daac8181d8e05', class: "wrapper" }, h("div", { key: '60490f9e714881bd75c6fcad07aebf3ae9d9947b', class: "icon-wrapper" }, this.renderIcon()), h("div", { key: 'd735c7e03bff1d41fdbc003c9628a4abaa4f9313', class: "content" }, h("div", { key: 'e085cea22f8036b3deec9fa9f51c977629e6cc74', class: "title" }, h("zonos-text", { key: '4e41e3b2fe012a8c28daa7ceab614b19299c7cdf', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (h("div", { key: '5cc1fefbe7a551bf5ad7ff3744d7ecc6ecf5e73a', class: "subtitle" }, h("zonos-text", { key: '07afaf41a189f491db17d135cf074d4c6152e3cb', textColor: "gray-800" }, this.dialogSubtitle)))), h("div", { key: 'fbcfeb7f1a195ad928dea606f5085d8d2c1f2df6', class: "footer" }, this.dialogType === 'confirm' && (h("zonos-button", { key: 'eab37a4bf872bcde807ea50f33f2f082889a47c1', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText || translate('Cancel'))), h("zonos-button", { key: '21e66354e0eaa951fd68f86beda36c4a89f06e44', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
90
91
  }
91
92
  static get is() { return "zonos-confirm-dialog"; }
92
93
  static get encapsulation() { return "shadow"; }
@@ -205,11 +206,11 @@ export class ZonosConfirmDialog {
205
206
  "mutable": false,
206
207
  "complexType": {
207
208
  "original": "string",
208
- "resolved": "string",
209
+ "resolved": "string | undefined",
209
210
  "references": {}
210
211
  },
211
- "required": true,
212
- "optional": false,
212
+ "required": false,
213
+ "optional": true,
213
214
  "docs": {
214
215
  "tags": [],
215
216
  "text": "Cancel button text"
@@ -217,6 +218,27 @@ export class ZonosConfirmDialog {
217
218
  "attribute": "dialog-cancel-btn-text",
218
219
  "reflect": false
219
220
  },
221
+ "dialogType": {
222
+ "type": "string",
223
+ "mutable": false,
224
+ "complexType": {
225
+ "original": "'alert' | 'confirm'",
226
+ "resolved": "\"alert\" | \"confirm\"",
227
+ "references": {}
228
+ },
229
+ "required": false,
230
+ "optional": false,
231
+ "docs": {
232
+ "tags": [{
233
+ "name": "default",
234
+ "text": "\"confirm\""
235
+ }],
236
+ "text": "Type of dialog\n- \"alert\" - Only confirm button\n- \"confirm\" - Both Confirm and cancel buttons"
237
+ },
238
+ "attribute": "dialog-type",
239
+ "reflect": false,
240
+ "defaultValue": "'confirm'"
241
+ },
220
242
  "isMobile": {
221
243
  "type": "boolean",
222
244
  "mutable": false,
@@ -243,15 +265,14 @@ export class ZonosConfirmDialog {
243
265
  "resolved": "boolean",
244
266
  "references": {}
245
267
  },
246
- "required": false,
268
+ "required": true,
247
269
  "optional": false,
248
270
  "docs": {
249
271
  "tags": [],
250
272
  "text": "Whether or not the dialog is open"
251
273
  },
252
274
  "attribute": "dialog-open",
253
- "reflect": false,
254
- "defaultValue": "false"
275
+ "reflect": false
255
276
  },
256
277
  "noClickOutside": {
257
278
  "type": "boolean",
@@ -55,7 +55,7 @@
55
55
  display: flex;
56
56
  align-items: center;
57
57
  justify-content: center;
58
- z-index: 10002;
58
+ z-index: 2147483009;
59
59
  background: var(--zonos-elements-gray-0);
60
60
  border-radius: var(--border-radius, var(--zonos-elements-radius-10));
61
61
  }
@@ -73,7 +73,7 @@
73
73
  }
74
74
  :host .zonos--dialog {
75
75
  position: relative;
76
- z-index: 10001;
76
+ z-index: 2147483008;
77
77
  background: var(--zonos-elements-gray-0);
78
78
  max-width: 90vw;
79
79
  max-height: 90vh;
@@ -127,12 +127,12 @@
127
127
  visibility: visible;
128
128
  }
129
129
  :host(.open) .zonos--backdrop {
130
- z-index: 10001;
130
+ z-index: 2147483008;
131
131
  opacity: 0.65;
132
132
  }
133
133
  :host(.open) .zonos--dialog-layout {
134
134
  opacity: 1;
135
- z-index: 10002;
135
+ z-index: 2147483009;
136
136
  transform: scale(1);
137
137
  }
138
138
 
@@ -0,0 +1,53 @@
1
+ :host {
2
+ font-family: var(--font-family, Inter), Inter;
3
+ display: block;
4
+ white-space: normal;
5
+ }
6
+ :host * {
7
+ font-family: var(--font-family, Inter), Inter;
8
+ }
9
+ :host img {
10
+ max-width: 100%;
11
+ }
12
+ :host dl,
13
+ :host dd,
14
+ :host h1,
15
+ :host h2,
16
+ :host h3,
17
+ :host h4,
18
+ :host h5,
19
+ :host h6,
20
+ :host hr,
21
+ :host figure,
22
+ :host p,
23
+ :host pre {
24
+ margin: 0;
25
+ }
26
+
27
+ /* All sets of variable are here */
28
+ /* smooth font rendering */
29
+ :host {
30
+ -moz-osx-font-smoothing: grayscale;
31
+ -webkit-font-smoothing: antialiased;
32
+ }
33
+
34
+ :host {
35
+ height: 100%;
36
+ width: 100%;
37
+ display: flex;
38
+ justify-content: center;
39
+ align-items: center;
40
+ flex-direction: column;
41
+ gap: 20px;
42
+ }
43
+ :host .zonos--restState-image {
44
+ width: 124px;
45
+ height: 124px;
46
+ margin-bottom: 15px;
47
+ }
48
+ :host .content {
49
+ display: flex;
50
+ flex-direction: column;
51
+ align-items: center;
52
+ gap: 8px;
53
+ }
@@ -0,0 +1,102 @@
1
+ import { getAssetPath, h, Host } from "@stencil/core";
2
+ import { zonosStoreFontFamily } from "../../store/zonosStore";
3
+ import { classes } from "../../utils/classes";
4
+ export class ZonosRestState {
5
+ constructor() {
6
+ this.getImageRestState = () => {
7
+ const imageSrc = getAssetPath(`./assets/${this.restStateType}.png`);
8
+ return imageSrc;
9
+ };
10
+ this.restStateSubtitle = undefined;
11
+ this.restStateTitle = undefined;
12
+ this.restStateType = undefined;
13
+ this.isErrorImageLoad = false;
14
+ }
15
+ render() {
16
+ const imageUrl = this.getImageRestState();
17
+ return (h(Host, { key: '1bfff1095ec5c517b04106972431ac2e7f6355d9', class: classes(['zonos--elements zonos--restState']), style: {
18
+ '--font-family': zonosStoreFontFamily(),
19
+ } }, h("div", { key: 'e4c9b3b63f73c8c9ed04e196369a888fdbece30a', class: "zonos--restState-image" }, h("img", { key: 'e7444fae5141035f415ae0255ce5ff1446910fa4', alt: this.restStateType, onError: () => {
20
+ this.isErrorImageLoad = true;
21
+ }, src: imageUrl })), h("div", { key: '2f1d1ac03dcf47d7fd7bc7014a8c4af0486d3a80', class: "content" }, h("zonos-text", { key: 'bf9fe66af7349c07c6fba5dd4e749a808b051fcc', class: "title", type: "boldSubheader" }, this.restStateTitle), h("zonos-text", { key: '2b9fc699b05557487ad8534f34857febb0defda8', class: "subtitle" }, this.restStateSubtitle)), h("div", { key: 'fe7c44da5367b5b52abbbee2631a955544f41042', class: "action" }, h("slot", { key: '395e78af0e2dff6f0a98e7ac005509c3abb965fd' }))));
22
+ }
23
+ static get is() { return "zonos-rest-state"; }
24
+ static get encapsulation() { return "shadow"; }
25
+ static get originalStyleUrls() {
26
+ return {
27
+ "$": ["zonos-rest-state.scss"]
28
+ };
29
+ }
30
+ static get styleUrls() {
31
+ return {
32
+ "$": ["zonos-rest-state.css"]
33
+ };
34
+ }
35
+ static get assetsDirs() { return ["assets"]; }
36
+ static get properties() {
37
+ return {
38
+ "restStateSubtitle": {
39
+ "type": "string",
40
+ "mutable": false,
41
+ "complexType": {
42
+ "original": "string",
43
+ "resolved": "string",
44
+ "references": {}
45
+ },
46
+ "required": true,
47
+ "optional": false,
48
+ "docs": {
49
+ "tags": [],
50
+ "text": "The subtitle of the rest state"
51
+ },
52
+ "attribute": "rest-state-subtitle",
53
+ "reflect": false
54
+ },
55
+ "restStateTitle": {
56
+ "type": "string",
57
+ "mutable": false,
58
+ "complexType": {
59
+ "original": "string",
60
+ "resolved": "string",
61
+ "references": {}
62
+ },
63
+ "required": true,
64
+ "optional": false,
65
+ "docs": {
66
+ "tags": [],
67
+ "text": "The title of the rest state"
68
+ },
69
+ "attribute": "rest-state-title",
70
+ "reflect": false
71
+ },
72
+ "restStateType": {
73
+ "type": "string",
74
+ "mutable": false,
75
+ "complexType": {
76
+ "original": "RestStateType",
77
+ "resolved": "\"Boxes\" | \"Earth\" | \"EmptyBox\" | \"Lock\" | \"PigBank\" | \"Scribble\" | \"Search\" | \"Settings\" | \"ShoppingCart\" | \"SpilledCup\" | \"Switch\" | \"TaxId\" | \"Truck\" | \"Warning\"",
78
+ "references": {
79
+ "RestStateType": {
80
+ "location": "import",
81
+ "path": "src/components/utils/restStateType",
82
+ "id": "src/components/utils/restStateType.ts::RestStateType"
83
+ }
84
+ }
85
+ },
86
+ "required": true,
87
+ "optional": false,
88
+ "docs": {
89
+ "tags": [],
90
+ "text": "The type of rest state"
91
+ },
92
+ "attribute": "rest-state-type",
93
+ "reflect": false
94
+ }
95
+ };
96
+ }
97
+ static get states() {
98
+ return {
99
+ "isErrorImageLoad": {}
100
+ };
101
+ }
102
+ }
@@ -8,9 +8,9 @@ export class ZonosSelectDialogHeader {
8
8
  this.label = '';
9
9
  }
10
10
  render() {
11
- return (h(Host, { key: '6bbc81e8045153c49da17c4b999bc1992aa9f01d', class: "zonos--elements", style: {
11
+ return (h(Host, { key: 'aee08db0e889bd5a5b9084180f6ee038c120a3b2', class: "zonos--elements", style: {
12
12
  '--font-family': zonosStoreFontFamily(),
13
- } }, h("zonos-v-stack", { key: 'c0184343c6cefd3c996695964800d242d1673ee1', class: "zonos--select-dialog-header-wrapper", spacing: 8 }, h("div", { key: 'ae13d39c8a0917df33aec34a10853892d9470a9c', class: "zonos--select-dialog-header" }, h("zonos-text", { key: '32e9af076b72f63cb1ec0c92b7e77d3196572106', type: "boldLabel" }, this.label), h("zonos-button", { key: 'eb4d2f0cef4a2b0eafe628c19d0fcbac4f3493e6', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close select dialog", content: RemoveIcon, size: 20 }), noBackground: true, onClick: () => this.handleOnClose() })), h("slot", { key: '98a6f0e4f44e74208b5e446ad8066b74b1f7beaa' }))));
13
+ } }, h("zonos-v-stack", { key: '565a273f0037418387c0868c74943c3325ab6c35', class: "zonos--select-dialog-header-wrapper", spacing: 8 }, h("div", { key: '0d994f27c948e49c092d016a0f1d6e453f80f00a', class: "zonos--select-dialog-header" }, h("zonos-text", { key: 'ee7bb796e921b2a14fa6201c8f17d0dfd9f3a3c2', type: "boldLabel" }, this.label), h("zonos-button", { key: '0e3a6c9c2cc4b67a51015b2fb7345c47a0e5ef23', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close select dialog", content: RemoveIcon, size: 20 }), noBackground: true, onClick: () => this.handleOnClose() })), h("slot", { key: 'ad9fb089fa4a571a5443431c0d686b4804d25b0a' }))));
14
14
  }
15
15
  static get is() { return "zonos-select-dialog-header"; }
16
16
  static get encapsulation() { return "shadow"; }
@@ -7,10 +7,10 @@ export class ZonosTooltip {
7
7
  this.showTooltip = false;
8
8
  }
9
9
  render() {
10
- return (h(Host, { key: 'dd98e35a2295dd72209775ce1e63d6f653913466', class: "zonos--elements" }, h("div", { key: '4bee5ca82e3a493826b723f620baa6d7cf7af63a', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, h("slot", { key: '1320496e6caed5f16d940f0e5119d5f19186f565' }), h("div", { key: '2a9b891c672d03cdbe8babf59312942e101704a7', class: classes([
10
+ return (h(Host, { key: '62f307eee14511a4d37aecd927a25f797e206d8f', class: "zonos--elements" }, h("div", { key: '8bcdbbbd4d9fffe487c975d2f42bc0e7ecc0d7a5', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, h("slot", { key: '53413e70a522d44f044bf08154c933e8d2b6863e' }), h("div", { key: 'b3ff18f30520346abe71df2987763d08ccc21c3c', class: classes([
11
11
  this.showTooltip && 'zonos--show-tooltip',
12
12
  'zonos--tooltip-content',
13
- ]) }, h("zonos-text", { key: '0146fad3f70fa07e9eb644b26d6dd65963a70c3d', size: "s", textColor: "gray-0", type: "boldLabel" }, this.label), h("zonos-text", { key: '36e76d4624927255679107ee47022b7314479441', size: "xs", textColor: "gray-0" }, this.subtitle)))));
13
+ ]) }, h("zonos-text", { key: '72567e2ace426b1d45e46a7bb68aa17076fcf7d3', size: "s", textColor: "gray-0", type: "boldLabel" }, this.label), h("zonos-text", { key: '183b70f17a065b3eb3eef65df38bee2092c91582', size: "xs", textColor: "gray-0" }, this.subtitle)))));
14
14
  }
15
15
  static get is() { return "zonos-tooltip"; }
16
16
  static get encapsulation() { return "shadow"; }
@@ -7,9 +7,9 @@ export class VStack {
7
7
  this.spacing = 24;
8
8
  }
9
9
  render() {
10
- return (h(Host, { key: '3d0753111d525b29e1f36684c89b7216ee0b323f', style: {
10
+ return (h(Host, { key: '9b7115624d2e27b1c6da58ac16f6059d5cad71a9', style: {
11
11
  '--font-family': zonosStoreFontFamily(),
12
- } }, h("div", { key: '95b732681743abc1b08b1b8bc722855c3c8e967a', class: classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, h("slot", { key: 'b93347c5fb986a70f9f1d67ce2216bba84db7ba4' }))));
12
+ } }, h("div", { key: 'bd3ccd8700897292fd1a9ad40825c851a484fcf2', class: classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, h("slot", { key: '1c6fe3e6dc8eda9461eb90180535c9bd563a1840' }))));
13
13
  }
14
14
  static get is() { return "zonos-v-stack"; }
15
15
  static get encapsulation() { return "shadow"; }
@@ -10,7 +10,7 @@ export class ZonosComponent {
10
10
  return format(this.first, this.middle, this.last);
11
11
  }
12
12
  render() {
13
- return h("div", { key: 'b51f2edddb50f8f6a868da28c73218fe6955d2e5' }, "Hello, World! I'm ", this.getText());
13
+ return h("div", { key: 'b2d57ce9356cd0d1454c7ef195fe0ac21f694b7b' }, "Hello, World! I'm ", this.getText());
14
14
  }
15
15
  static get is() { return "zonos-component"; }
16
16
  static get encapsulation() { return "shadow"; }
@@ -37,7 +37,9 @@ export class ZonosHello {
37
37
  case 'productDetail':
38
38
  return translate(`See duty and tax thresholds`);
39
39
  default:
40
- return `${translate('Welcome to')} ${organizationName}`;
40
+ return translate('Welcome to [storeName]!', {
41
+ storeName: organizationName,
42
+ });
41
43
  }
42
44
  };
43
45
  this.enableShowPeekMessage = () => {
@@ -1,7 +1,6 @@
1
1
  import { h, Host } from "@stencil/core";
2
2
  import { localizationStore } from "../../../store/hello/localization";
3
3
  import { isDarkColor } from "../../../utils/isDarkColor";
4
- // import { isElementUsingDarkTheme } from 'src/components/utils/isElementUsingDarkTheme';
5
4
  import { languages } from "../../../../types/ILanguage";
6
5
  // eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
7
6
  import Globe from "./assets/globe.svg";
@@ -19,9 +18,9 @@ export class ZonosHelloDialogFooter {
19
18
  const language = (_b = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _b === void 0 ? void 0 : _b.translatedLabel;
20
19
  // Only use gray-0 (white) when the background color is dark (apply inverted color if the element is using dark theme variable)
21
20
  const mainColor = primaryColor && isDarkColor(primaryColor) ? 'white' : 'black';
22
- return (h(Host, { key: '056e6cead0dd21acc085689ea850ba4a53f67bf9', class: "zonos--elements" }, h("div", { key: '00f61e795abc81d6e2f0be7e64eeae298248b34e', class: "zonos--hello-dialog-footer", style: {
21
+ return (h(Host, { key: 'f84d021e99271bd6a00da32edd35fdc5e0520c5a', class: "zonos--elements" }, h("div", { key: '96eeeb3df6698a18ae1439c3c35bc2337fe3e83c', class: "zonos--hello-dialog-footer", style: {
23
22
  '--primary-color': primaryColor,
24
- } }, h("a", { key: '79235722e7f4caaeac2d2a400665603e07b14614', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: '7a92af7024dfc3e21de1a0789623b1c1fdb8a33e', "aria-label": "Zonos Logo", autoHeight: true, content: ZonosIcon, iconColor: mainColor, size: 108 })), h("div", { key: '04d44adc9941688bc7ae7bef0ea8c9d26a33a401', class: "zonos--hello-locale-wrapper" }, h("zonos-button", { key: 'b9f3debc0c965f1ebd8745cb020c10f6e8c17285', buttonColor: mainColor, icon: h("zonos-icon", { "aria-label": "Open language select", content: Globe, iconColor: mainColor }), onClick: () => this.setShowLanguageSelect(true), variant: "subtle" }, language), h("zonos-button", { key: 'cc3ec6a8ece0ed8e94a85ec3a7a38c3c87fbf95e', buttonColor: mainColor, icon: h("zonos-country-flag", { "aria-label": "Open country select", class: "zonos--footer-country-flag", countryCode: localizationStore.selectedCountryCode }), onClick: () => this.setShowCountrySelect(true), variant: "subtle" }, localizationStore.selectedCountryCode)))));
23
+ } }, h("a", { key: 'bb17cee42a3cb6d88e1b064649184c686ef41201', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: '9183c662eb9d2dbb63b5149c338d013439767634', "aria-label": "Zonos Logo", autoHeight: true, content: ZonosIcon, iconColor: mainColor, size: 108 })), h("div", { key: 'dd5bed89a4a2ae9386fa39fe15362c42fa7535ee', class: "zonos--hello-locale-wrapper" }, h("zonos-button", { key: 'cbe6cb613fb2ca39f772363f8276cbc8c9e28b70', buttonColor: mainColor, icon: h("zonos-icon", { "aria-label": "Open language select", content: Globe, iconColor: mainColor }), onClick: () => this.setShowLanguageSelect(true), variant: "subtle" }, language), h("zonos-button", { key: 'e05876aa9b1e56f945f810b82163335cd14202d1', buttonColor: mainColor, icon: h("zonos-country-flag", { "aria-label": "Open country select", class: "zonos--footer-country-flag", countryCode: localizationStore.selectedCountryCode }), onClick: () => this.setShowCountrySelect(true), variant: "subtle" }, localizationStore.selectedCountryCode)))));
25
24
  }
26
25
  static get is() { return "zonos-hello-dialog-footer"; }
27
26
  static get encapsulation() { return "shadow"; }
@@ -71,19 +71,19 @@ export class ZonosHelloDialog {
71
71
  return null;
72
72
  }
73
73
  const dutyDeminimis = landedCost.dutyDeminimus;
74
- return translate('Orders to ${countryName} must be over ${threshold} to ship.', {
74
+ return translate('Orders to [countryName] must be over [threshold] to ship.', {
75
75
  countryName: 'United Kingdom',
76
76
  threshold: currencyFormat({ amount: dutyDeminimis }),
77
77
  });
78
78
  };
79
79
  this.getAustraliaDutyTaxMessage = (landedCost) => {
80
- return translate('${percentage} GST due on any order above ${threshold}.', {
80
+ return translate('[percentage] GST due on any order above [threshold].', {
81
81
  percentage: `${landedCost.vatTaxRate * 100}%`,
82
82
  threshold: currencyFormat({ amount: landedCost.vatTaxDeminimus }),
83
83
  });
84
84
  };
85
85
  this.getNewZealandDutyTaxMessge = (landedCost) => {
86
- return translate('${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.', {
86
+ return translate('[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.', {
87
87
  percentage: `${landedCost.vatTaxRate * 100}%`,
88
88
  threshold: currencyFormat({ amount: landedCost.vatTaxDeminimus }),
89
89
  });
@@ -143,23 +143,25 @@ export class ZonosHelloDialog {
143
143
  (this.dialogRef && getHasMoreSpaceOnRight(this.dialogRef));
144
144
  const animateFromBottom = this.dialogRef && getHasMoreSpaceAbove(this.dialogRef);
145
145
  const { customMessages } = localizationStore;
146
- const welcomeMessage = `${translate('Welcome to')} ${zonosStore.organizationName}!`;
146
+ const welcomeMessage = translate('Welcome to [storeName]!', {
147
+ storeName: zonosStore.organizationName,
148
+ });
147
149
  const defaultMessageStr = ((_a = customMessages.find(x => x.pageName === 'hello_default')) === null || _a === void 0 ? void 0 : _a.message) ||
148
150
  translate('Know about duties and taxes before you buy. Shop with confidence!');
149
151
  const defaultMessage = formatStringWithLinks(defaultMessageStr);
150
152
  const currentPage = this.getCurrentPageEnum();
151
153
  const filteredMessages = customMessages.filter(x => x.pageName === currentPage);
152
- return (h(Host, { key: 'ec64ed364328acba99227ccb40371ff6b7e0c1e2', class: "zonos--elements" }, h("div", { key: '441d4a9ae4274b0fffbd22771b8f1ffe3839230a', "aria-hidden": "true", class: classes([
154
+ return (h(Host, { key: '354758888accf5c5f44e321cc36f3126fe161596', class: "zonos--elements" }, h("div", { key: 'b6e9ef3ac53035b578f1ccb6940e04561a6c7362', "aria-hidden": "true", class: classes([
153
155
  'zonos--hello-dialog',
154
156
  animateLeft && 'zonos--hello-dialog-animate-from-left',
155
157
  animateFromBottom && 'zonos--hello-dialog-animate-from-bottom',
156
158
  !!this.mobileLocationOverride &&
157
159
  'zonos--hello-dialog-mobile-override',
158
160
  this.isOpen && 'zonos--hello-dialog-open',
159
- ]), ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: '9d53c5dd06b5f1b1a0800bfdaee9615e851b3338' }, h("div", { key: '43b424d7d115ead896f0ce743d60db1775468ada', class: "zonos--hello-dialog-content" }, h("zonos-button", { key: '2dacf61dfd6976de8a37f63697a927b00c70500c', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close Zonos Hello dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.setIsOpen(false) }), h("zonos-v-stack", { key: '75d1b83b6e7bcefe592bd90e1fbcfd97154f0b4c', spacing: 24 }, h("zonos-country-flag", { key: '051019e1d01cc12d38d82c5c1d2765b280cf87e4', class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { key: '4dd4f2bb7b8f88fcdb8c27ebaca86bbaa4f8459a', class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { key: '33a2430d344b0613fda2597e5e8d52e852398a3c', type: "boldSubheader" }, welcomeMessage), h("zonos-text", { key: '5e0785c9e190be41d5c1b22736a73031de0f0a8b', innerHTML: defaultMessage, textColor: "gray-800" })), h("zonos-v-stack", { key: '460c1914c7f91ad7d3495e77f2f0de412e0d2f78', spacing: 8 }, this.restrictedItems.map(item => {
161
+ ]), ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: 'cba389a7107bf0505743237a7e61e27988955a44' }, h("div", { key: '3cef5f247dca70671ad0c304f29980f7147cf21c', class: "zonos--hello-dialog-content" }, h("zonos-button", { key: '013764140f25f64ab52f4588a50b5148f4b170d0', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close Zonos Hello dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.setIsOpen(false) }), h("zonos-v-stack", { key: '099dc23581474e5167cfa8bd90be9987b3caa47f', spacing: 24 }, h("zonos-country-flag", { key: 'c545313157e3a488433619292306419588e20e50', class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { key: 'f8be1b95571b28be7ed4fc3caee5d13177845150', class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { key: '9ac86d0f247cecd0bfa19ffc041eee89bd19b168', type: "boldSubheader" }, welcomeMessage), h("zonos-text", { key: '3234c9640aa1d484c6dcb78e7e3bf43e3545d67e', innerHTML: defaultMessage, textColor: "gray-800" })), h("zonos-v-stack", { key: '2f090b934ede76c8400b7891b6caa391e1f039b0', spacing: 8 }, this.restrictedItems.map(item => {
160
162
  var _a;
161
163
  return item && (h("zonos-banner", { bannerTitle: item.name, intent: "error" }, (_a = item.itemRestrictions) === null || _a === void 0 ? void 0 : _a.map(x => (h("zonos-text", { textColor: "red-800" }, x === null || x === void 0 ? void 0 : x.note)))));
162
- }), h("zonos-card", { key: '290e82532fc85421c08c0049755f2d03de5f4848', spacing: "12px" }, h("zonos-v-stack", { key: 'de37e3b7c156a952ff4906463f4e57c0e384af18', spacing: 12 }, h("div", { key: '3ce588bffccb7c41d5043d813fb6b9b0043d4fab', class: "zonos--flex-message" }, h("zonos-icon", { key: '3c955c3aa1a27566e503188a4a4f495c2daed5b1', "aria-label": "Duty de minimis", content: ImportIcon }), h("zonos-text", { key: '8b283197b31e82a8c15eff248e1ab55b28eba3d2' }, dutyDeMinimisMessage)), h("div", { key: '720af84433106750661c5d2e847c58ba673ee71c', class: "zonos--flex-message" }, h("zonos-icon", { key: '036e93ccbdafd6c6e911cc978f331c84ee542c73', "aria-label": "Tax de minimis", content: MoneyIcon }), h("zonos-text", { key: 'ca33772a3fce849a35536502d95ca81d3e9b29cb' }, taxDeMinimisMessage)), additionalInformation && (h("div", { key: '254ac11735d2e3f5b3804d58c22847414df19753', class: "zonos--flex-message" }, h("zonos-icon", { key: '28d85fa72b8d0754ba5f1633f17bd0caf78abe36', "aria-label": "Low value order shipping restriction", content: BagIcon }), h("zonos-text", { key: '6ff2d5231f7fd942c0ff7b3391589984f5d0e7d2' }, additionalInformation))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { key: '4d6593ce36f883bb538970008aa75ba3338654e5', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", { key: '66362e6aac0c8d9b5fe922c3af4d74642ff6fe8a' }, h("zonos-country-select", { key: '53fc96743eb427f76e6c658b1b3541f43afab25a', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", { key: 'e4cc485d4574d11b5759e485be18e3e2cb0af966' }, h("zonos-language-select", { key: '579c3018f84fedf257253b6db0b0c172908662e2', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
164
+ }), h("zonos-card", { key: 'e7ec890c1673b4025e650ed737ee4ba0e37ceb5d', spacing: "12px" }, h("zonos-v-stack", { key: 'a09bc2634da2795a4f0e2ef8b66680db9b0e403d', spacing: 12 }, h("div", { key: '2182aac10dc9b654b81234188cf0ef4decb2328a', class: "zonos--flex-message" }, h("zonos-icon", { key: '362807633b9a55a4438e95a9150c4c80f5bd836b', "aria-label": "Duty de minimis", content: ImportIcon }), h("zonos-text", { key: '10bbbd399a255ad3a593b246d4b8b475e1c089e1' }, dutyDeMinimisMessage)), h("div", { key: '451c58a91d38413cc295a377e08ffa9947411112', class: "zonos--flex-message" }, h("zonos-icon", { key: '2eceeced9d2b0ab482c94b8edd768134ba936d2d', "aria-label": "Tax de minimis", content: MoneyIcon }), h("zonos-text", { key: 'f4284b8e56522de93d5ca1160103ca2fac85250e' }, taxDeMinimisMessage)), additionalInformation && (h("div", { key: 'f9f0a09a1a7bfa85b2a70f843aabea7961250141', class: "zonos--flex-message" }, h("zonos-icon", { key: '147ee865b2708d662c185e4fe5d4dba7f099c310', "aria-label": "Low value order shipping restriction", content: BagIcon }), h("zonos-text", { key: 'ccb671b31672ebfd41369a9b0fda8e49ed3739cc' }, additionalInformation))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { key: '16b584281762c987d375b15e5cd3b5784fce5cd4', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", { key: '1122d535ce9bf451aa823726764a1a662c0378df' }, h("zonos-country-select", { key: '73c417e435dcbb15be72879ecde8271cb5cc01a1', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", { key: '4555dcf5260fa976458f6d612efce72a39564abf' }, h("zonos-language-select", { key: 'c19ca73913d2b026976acc36c1d9eb68bf90f07c', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
163
165
  }
164
166
  static get is() { return "zonos-hello-dialog"; }
165
167
  static get encapsulation() { return "shadow"; }
@@ -178,7 +178,7 @@ export class ZonosController {
178
178
  zonosStore.organizationName = organizationName;
179
179
  }
180
180
  render() {
181
- return h(Host, { key: '5085618e4664aa12a2d48d289ae5b2c3ac15d83b', class: "zonos--elements" });
181
+ return h(Host, { key: 'a5a97e414d4be249a1d8a733356111a65623aaeb', class: "zonos--elements" });
182
182
  }
183
183
  static get is() { return "zonos-controller"; }
184
184
  static get encapsulation() { return "shadow"; }
@@ -55,6 +55,7 @@ const startExchangeRateTimeout = ({ isGuaranteed, maxAge, }) => {
55
55
  const getNewLocalization = async () => {
56
56
  log('get new localization store');
57
57
  const { isShippableCountry, selectedCountryCode } = localizationStore;
58
+ localizationStore.countryLandedCost = await getCountryLandedCost(localizationStore.selectedCountryCode);
58
59
  if (zonosStore.helloSettings.currencyBehavior === 'DISABLED' ||
59
60
  !isShippableCountry ||
60
61
  !selectedCountryCode) {
@@ -63,7 +64,6 @@ const getNewLocalization = async () => {
63
64
  const isGuaranteed = zonosStore.checkoutSettings.visibilityStatus === 'ENABLED';
64
65
  const { maxAge } = await triggerGetExchangeRate(isGuaranteed);
65
66
  startExchangeRateTimeout({ isGuaranteed, maxAge });
66
- localizationStore.countryLandedCost = await getCountryLandedCost(localizationStore.selectedCountryCode);
67
67
  };
68
68
  const getCustomMessages = async () => {
69
69
  if (!localizationStore.selectedCountryCode || !zonosStore.storeId) {
@@ -1,10 +1,4 @@
1
1
  export const stringsArabic = {
2
- '${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
3
- value: '${percentage} ضريبة القيمة المضافة مستحقة على أي طلب يتجاوز ${threshold} بالإضافة إلى رسوم معاملة إدخال الاستيراد ورسوم MPI.',
4
- },
5
- '${percentage} GST due on any order above ${threshold}.': {
6
- value: '${percentage} ضريبة القيمة المضافة مستحقة على أي طلب يتجاوز ${threshold}.',
7
- },
8
2
  'Above de minimis threshold for': {
9
3
  value: 'أعلى من الحد الأدنى لـ',
10
4
  },
@@ -131,8 +125,8 @@ export const stringsArabic = {
131
125
  'Order total': {
132
126
  value: 'إجمالي الطلبية',
133
127
  },
134
- 'Orders to ${countryName} must be over ${threshold} to ship.': {
135
- value: 'يجب أن تتجاوز الطلبيات إلى ${countryName} ${threshold} ليتم شحنها.',
128
+ 'Orders to [countryName] must be over [threshold] to ship.': {
129
+ value: 'يجب أن تتجاوز الطلبيات إلى [countryName] [threshold] ليتم شحنها.',
136
130
  },
137
131
  Pay: {
138
132
  value: 'دفع',
@@ -167,6 +161,9 @@ export const stringsArabic = {
167
161
  'Prepay duties and taxes at checkout': {
168
162
  value: 'دفع الرسوم والضرائب مقدمًا عند الدفع',
169
163
  },
164
+ Reload: {
165
+ value: 'إعادة تحميل',
166
+ },
170
167
  'Restricted item': {
171
168
  value: 'عنصر مقيد',
172
169
  },
@@ -185,6 +182,9 @@ export const stringsArabic = {
185
182
  'Select a language': {
186
183
  value: 'اختر لغة',
187
184
  },
185
+ 'Session timed out': {
186
+ value: 'انتهت الجلسة',
187
+ },
188
188
  Shipping: {
189
189
  value: 'الشحن',
190
190
  },
@@ -239,8 +239,8 @@ export const stringsArabic = {
239
239
  "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time.": {
240
240
  value: 'لقد أرسلنا إليك تأكيدًا بالبريد الإلكتروني لتفاصيل الطلبية لمراجعتك. ويقوم فريقنا بإعداد طلبيتك بعناية حتى تصل في الوقت المحدد.',
241
241
  },
242
- 'Welcome to': {
243
- value: 'مرحبا بكم في',
242
+ 'Welcome to [storeName]!': {
243
+ value: 'مرحبًا بك في [storeName]!',
244
244
  },
245
245
  'Welcome!': {
246
246
  value: 'أهلا بك!',
@@ -254,9 +254,18 @@ export const stringsArabic = {
254
254
  "You're all set!": {
255
255
  value: 'أنت جاهز!',
256
256
  },
257
+ 'Your checkout session has expired. Please reload the page to continue.': {
258
+ value: 'انتهت جلستك الدفعية. يرجى إعادة تحميل الصفحة للمتابعة.',
259
+ },
257
260
  'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
258
261
  value: 'تمت عملية الدفع بنجاح! شكرا لتسوقك معنا! نأمل أن تكون قد استمتعت بتجربة رائعة ودعمك يعني لنا الكثير.',
259
262
  },
263
+ '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
264
+ value: '[percentage] ضريبة القيمة المضافة مستحقة على أي طلب يتجاوز [threshold] بالإضافة إلى رسوم معاملة إدخال الاستيراد ورسوم MPI.',
265
+ },
266
+ '[percentage] GST due on any order above [threshold].': {
267
+ value: '[percentage] ضريبة القيمة المضافة مستحقة على أي طلب يتجاوز [threshold].',
268
+ },
260
269
  'business days': {
261
270
  value: 'أيام العمل',
262
271
  },