@zonos/elements 1.3.289 → 1.3.290

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 (281) hide show
  1. package/dist/cjs/{cart-WLQb2hbe.js → cart-7DceSLKl.js} +3 -3
  2. package/dist/cjs/{collect-B92uIdsY.js → collect-C08DUE1L.js} +3 -3
  3. package/dist/cjs/{debounce-5sZmmlCI.js → debounce-Cd2emZPn.js} +2 -2
  4. package/dist/cjs/{debounce-Nu2lJW4A.js → debounce-vY0QYT6o.js} +1 -1
  5. package/dist/cjs/{getBorderRadius-DGZiQu09.js → getBorderRadius-CyYZw4qq.js} +1 -1
  6. package/dist/cjs/{getMissingRequiredShippingFields-5w62gTIB.js → getMissingRequiredShippingFields-Duz8xpmf.js} +1 -1
  7. package/dist/cjs/{hasInclusivePrice-hmV0Inld.js → hasInclusivePrice-C-iyXqJ0.js} +1 -1
  8. package/dist/cjs/index.cjs.js +7 -7
  9. package/dist/cjs/{invoice-Bal1mqYR.js → invoice-DSuHUQpi.js} +3 -3
  10. package/dist/cjs/{localization-C5HPlCNK.js → localization-BJqYz_PB.js} +1 -1
  11. package/dist/cjs/{paypal-o164C26_.js → paypal-CZoctP9S.js} +4 -4
  12. package/dist/cjs/{placeTestOrder-C7tAipav.js → placeTestOrder-D7baFuaV.js} +2 -2
  13. package/dist/cjs/{renderCheckoutCurrency-Bpx-vrTQ.js → renderCheckoutCurrency-Ca2HH1Gc.js} +2 -2
  14. package/dist/cjs/{shouldShowLanguageSelect-CtwkMt8b.js → shouldShowLanguageSelect-FyTdz7U_.js} +1 -1
  15. package/dist/cjs/{submitGtag-CcEL-w5D.js → submitGtag-D79e8u6s.js} +1 -1
  16. package/dist/cjs/{throttle-BcxGntLr.js → throttle-zSVRQLC0.js} +2 -2
  17. package/dist/cjs/{updateCheckoutSessionAttributes-Dltl5RBx.js → updateCheckoutSessionAttributes-jMtfOL2m.js} +1 -1
  18. package/dist/cjs/zonos-address-completion-dialog_7.cjs.entry.js +7 -7
  19. package/dist/cjs/zonos-address-display_2.cjs.entry.js +3 -3
  20. package/dist/cjs/zonos-address_4.cjs.entry.js +6 -6
  21. package/dist/cjs/zonos-airwallex-payment.cjs.entry.js +5 -5
  22. package/dist/cjs/zonos-badge.cjs.entry.js +1 -1
  23. package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
  24. package/dist/cjs/zonos-button_3.cjs.entry.js +2 -2
  25. package/dist/cjs/zonos-card_5.cjs.entry.js +6 -6
  26. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +14 -14
  27. package/dist/cjs/zonos-checkbox_2.cjs.entry.js +2 -2
  28. package/dist/cjs/zonos-checkout.cjs.entry.js +9 -9
  29. package/dist/cjs/zonos-collapse.cjs.entry.js +1 -1
  30. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +4 -4
  31. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +10 -10
  32. package/dist/cjs/zonos-collect.cjs.entry.js +7 -7
  33. package/dist/cjs/zonos-controller.cjs.entry.js +5 -5
  34. package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -2
  35. package/dist/cjs/zonos-country-select_4.cjs.entry.js +3 -3
  36. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +3 -3
  37. package/dist/cjs/zonos-hello.cjs.entry.js +129 -51
  38. package/dist/cjs/zonos-input.cjs.entry.js +2 -2
  39. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +6 -6
  40. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +10 -10
  41. package/dist/cjs/zonos-invoice.cjs.entry.js +7 -7
  42. package/dist/cjs/zonos-language-select_2.cjs.entry.js +2 -2
  43. package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
  44. package/dist/cjs/zonos-policy-consent_2.cjs.entry.js +5 -5
  45. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +2 -2
  46. package/dist/cjs/zonos-stripe-input.cjs.entry.js +2 -2
  47. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  48. package/dist/cjs/zonos-v-stack.cjs.entry.js +1 -1
  49. package/dist/cjs/{zonosStore-BCNYr6Tk.js → zonosStore-Bx9jK82G.js} +2 -0
  50. package/dist/collection/components/hello/zonos-hello/zonos-hello.css +17 -15
  51. package/dist/collection/components/hello/zonos-hello/zonos-hello.js +29 -52
  52. package/dist/collection/components/store/zonosStore.js +2 -0
  53. package/dist/collection/components/utils/hello/resolveHelloFloatPlacement.js +98 -0
  54. package/dist/collection/types/generated/graphql.internal.types.js +176 -9
  55. package/dist/esm/{cart-BDc4RTBJ.js → cart-Cleo1j5P.js} +3 -3
  56. package/dist/esm/{collect-NRCK3t-M.js → collect-CspdWIRo.js} +3 -3
  57. package/dist/esm/{debounce-D4ko2kvZ.js → debounce-BR3PaG8X.js} +1 -1
  58. package/dist/esm/{debounce-DWPsxJsW.js → debounce-CrmpwbEE.js} +2 -2
  59. package/dist/esm/{getBorderRadius-HwG64EKM.js → getBorderRadius-DYfkeXdx.js} +1 -1
  60. package/dist/esm/{getMissingRequiredShippingFields-D-B-N1NH.js → getMissingRequiredShippingFields-B1IL1-gn.js} +1 -1
  61. package/dist/esm/{hasInclusivePrice-Bti4iudO.js → hasInclusivePrice-DKRplpLX.js} +1 -1
  62. package/dist/esm/index.js +7 -7
  63. package/dist/esm/{invoice-DsvQvu4a.js → invoice-D49igPQ9.js} +3 -3
  64. package/dist/esm/{localization-Bs6hVcKV.js → localization-BiL8bPsY.js} +1 -1
  65. package/dist/esm/{paypal-BqyEZS_u.js → paypal-D4vWRxHJ.js} +4 -4
  66. package/dist/esm/{placeTestOrder-x3xwMAnW.js → placeTestOrder-BNmc5RCo.js} +2 -2
  67. package/dist/esm/{renderCheckoutCurrency-DIBdWKN1.js → renderCheckoutCurrency-BNbwijGo.js} +2 -2
  68. package/dist/esm/{shouldShowLanguageSelect-Bb9sbQ41.js → shouldShowLanguageSelect-B82gTfHz.js} +1 -1
  69. package/dist/esm/{submitGtag-CCGQS060.js → submitGtag-df9AQ2zL.js} +1 -1
  70. package/dist/esm/{throttle-D5GyA3yr.js → throttle-Cvlvb-dm.js} +2 -2
  71. package/dist/esm/{updateCheckoutSessionAttributes-eRSqdC74.js → updateCheckoutSessionAttributes-4Jq6V4pO.js} +1 -1
  72. package/dist/esm/zonos-address-completion-dialog_7.entry.js +7 -7
  73. package/dist/esm/zonos-address-display_2.entry.js +3 -3
  74. package/dist/esm/zonos-address_4.entry.js +6 -6
  75. package/dist/esm/zonos-airwallex-payment.entry.js +5 -5
  76. package/dist/esm/zonos-badge.entry.js +1 -1
  77. package/dist/esm/zonos-banner.entry.js +1 -1
  78. package/dist/esm/zonos-button_3.entry.js +2 -2
  79. package/dist/esm/zonos-card_5.entry.js +6 -6
  80. package/dist/esm/zonos-cart-items_12.entry.js +14 -14
  81. package/dist/esm/zonos-checkbox_2.entry.js +2 -2
  82. package/dist/esm/zonos-checkout.entry.js +9 -9
  83. package/dist/esm/zonos-collapse.entry.js +1 -1
  84. package/dist/esm/zonos-collect-cart-items_3.entry.js +4 -4
  85. package/dist/esm/zonos-collect-finish_6.entry.js +10 -10
  86. package/dist/esm/zonos-collect.entry.js +7 -7
  87. package/dist/esm/zonos-controller.entry.js +5 -5
  88. package/dist/esm/zonos-country-flag.entry.js +2 -2
  89. package/dist/esm/zonos-country-select_4.entry.js +3 -3
  90. package/dist/esm/zonos-hello-dialog.entry.js +3 -3
  91. package/dist/esm/zonos-hello.entry.js +129 -51
  92. package/dist/esm/zonos-input.entry.js +2 -2
  93. package/dist/esm/zonos-invoice-cart-items_2.entry.js +6 -6
  94. package/dist/esm/zonos-invoice-finish_5.entry.js +10 -10
  95. package/dist/esm/zonos-invoice.entry.js +7 -7
  96. package/dist/esm/zonos-language-select_2.entry.js +2 -2
  97. package/dist/esm/zonos-logo.entry.js +1 -1
  98. package/dist/esm/zonos-policy-consent_2.entry.js +5 -5
  99. package/dist/esm/zonos-shipping-rich-radio.entry.js +2 -2
  100. package/dist/esm/zonos-stripe-input.entry.js +2 -2
  101. package/dist/esm/zonos-text.entry.js +1 -1
  102. package/dist/esm/zonos-v-stack.entry.js +1 -1
  103. package/dist/esm/{zonosStore-DrIOAz4M.js → zonosStore-msUlqmSD.js} +2 -0
  104. package/dist/esm-es5/{cart-BDc4RTBJ.js → cart-Cleo1j5P.js} +8 -8
  105. package/dist/esm-es5/{collect-NRCK3t-M.js → collect-CspdWIRo.js} +1 -1
  106. package/dist/esm-es5/{debounce-D4ko2kvZ.js → debounce-BR3PaG8X.js} +7 -7
  107. package/dist/esm-es5/debounce-CrmpwbEE.js +1 -0
  108. package/dist/esm-es5/{getBorderRadius-HwG64EKM.js → getBorderRadius-DYfkeXdx.js} +1 -1
  109. package/dist/esm-es5/{getMissingRequiredShippingFields-D-B-N1NH.js → getMissingRequiredShippingFields-B1IL1-gn.js} +3 -3
  110. package/dist/esm-es5/{hasInclusivePrice-Bti4iudO.js → hasInclusivePrice-DKRplpLX.js} +1 -1
  111. package/dist/esm-es5/index.js +4 -4
  112. package/dist/esm-es5/{invoice-DsvQvu4a.js → invoice-D49igPQ9.js} +1 -1
  113. package/dist/esm-es5/{localization-Bs6hVcKV.js → localization-BiL8bPsY.js} +1 -1
  114. package/dist/esm-es5/{paypal-BqyEZS_u.js → paypal-D4vWRxHJ.js} +1 -1
  115. package/dist/esm-es5/{placeTestOrder-x3xwMAnW.js → placeTestOrder-BNmc5RCo.js} +1 -1
  116. package/dist/esm-es5/{renderCheckoutCurrency-DIBdWKN1.js → renderCheckoutCurrency-BNbwijGo.js} +1 -1
  117. package/dist/esm-es5/{shouldShowLanguageSelect-Bb9sbQ41.js → shouldShowLanguageSelect-B82gTfHz.js} +1 -1
  118. package/dist/esm-es5/{submitGtag-CCGQS060.js → submitGtag-df9AQ2zL.js} +1 -1
  119. package/dist/esm-es5/{throttle-D5GyA3yr.js → throttle-Cvlvb-dm.js} +2 -2
  120. package/dist/esm-es5/{updateCheckoutSessionAttributes-eRSqdC74.js → updateCheckoutSessionAttributes-4Jq6V4pO.js} +1 -1
  121. package/dist/esm-es5/zonos-address-completion-dialog_7.entry.js +1 -1
  122. package/dist/esm-es5/zonos-address-display_2.entry.js +1 -1
  123. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  124. package/dist/esm-es5/zonos-airwallex-payment.entry.js +1 -1
  125. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  126. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  127. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  128. package/dist/esm-es5/zonos-card_5.entry.js +1 -1
  129. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  130. package/dist/esm-es5/zonos-checkbox_2.entry.js +1 -1
  131. package/dist/esm-es5/zonos-checkout.entry.js +3 -3
  132. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  133. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  134. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  135. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  136. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  137. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  138. package/dist/esm-es5/zonos-country-select_4.entry.js +2 -2
  139. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  140. package/dist/esm-es5/zonos-hello.entry.js +21 -24
  141. package/dist/esm-es5/zonos-input.entry.js +1 -1
  142. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +2 -2
  143. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
  144. package/dist/esm-es5/zonos-invoice.entry.js +3 -3
  145. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  146. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  147. package/dist/esm-es5/zonos-policy-consent_2.entry.js +1 -1
  148. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  149. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  150. package/dist/esm-es5/zonos-text.entry.js +1 -1
  151. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  152. package/dist/esm-es5/{zonosStore-DrIOAz4M.js → zonosStore-msUlqmSD.js} +1 -1
  153. package/dist/scripts/index.d.ts +36 -6
  154. package/dist/scripts/index.js +1 -1
  155. package/dist/scripts/loadZonos.js +1 -1
  156. package/dist/scripts/zonos.js +1 -1
  157. package/dist/types/components/hello/zonos-hello/zonos-hello.d.ts +5 -3
  158. package/dist/types/components/utils/hello/resolveHelloFloatPlacement.d.ts +39 -0
  159. package/dist/types/components.d.ts +4 -6
  160. package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +10 -0
  161. package/dist/types/types/generated/graphql.internal.types.d.ts +239 -11
  162. package/dist/types/types/generated/graphql.internal.types.ts +302 -15
  163. package/dist/types/types/hello/HelloConfig.d.ts +12 -0
  164. package/dist/zonos-elements/index.esm.js +1 -1
  165. package/dist/zonos-elements/{p-c090cc60.entry.js → p-028e0500.entry.js} +1 -1
  166. package/dist/zonos-elements/p-079af8c0.system.entry.js +118 -0
  167. package/dist/zonos-elements/{p-058f07aa.system.entry.js → p-0a4a7742.system.entry.js} +1 -1
  168. package/dist/zonos-elements/{p-02ff6f8b.system.entry.js → p-0dca8a26.system.entry.js} +26 -26
  169. package/dist/zonos-elements/{p-d9527bd7.system.entry.js → p-0ee74bf3.system.entry.js} +32 -32
  170. package/dist/zonos-elements/{p-e582ae2a.entry.js → p-11bab88b.entry.js} +1 -1
  171. package/dist/zonos-elements/{p-d261f27c.system.entry.js → p-13d3a372.system.entry.js} +16 -16
  172. package/dist/zonos-elements/{p-1568ab06.system.entry.js → p-1409de3b.system.entry.js} +1 -1
  173. package/dist/zonos-elements/{p-8328f44d.entry.js → p-193d9722.entry.js} +1 -1
  174. package/dist/zonos-elements/{p-22fab1ba.system.entry.js → p-195f6e38.system.entry.js} +1 -1
  175. package/dist/zonos-elements/{p-317d4665.system.entry.js → p-1b77464d.system.entry.js} +18 -18
  176. package/dist/zonos-elements/{p-cc5306fe.system.entry.js → p-1bac5ac1.system.entry.js} +1 -1
  177. package/dist/zonos-elements/{p-128485dc.entry.js → p-1c150f26.entry.js} +1 -1
  178. package/dist/zonos-elements/{p-628a0f7f.entry.js → p-234c202c.entry.js} +1 -1
  179. package/dist/zonos-elements/{p-0ff26236.system.entry.js → p-23f6346b.system.entry.js} +1 -1
  180. package/dist/zonos-elements/{p-cc949df1.system.entry.js → p-244e0302.system.entry.js} +1 -1
  181. package/dist/zonos-elements/{p-7681798d.entry.js → p-24f3c547.entry.js} +1 -1
  182. package/dist/zonos-elements/{p-5c08d36b.entry.js → p-2603dce0.entry.js} +1 -1
  183. package/dist/zonos-elements/{p-6c6c65f0.entry.js → p-26295311.entry.js} +1 -1
  184. package/dist/zonos-elements/{p-68e0180a.entry.js → p-34c5e145.entry.js} +1 -1
  185. package/dist/zonos-elements/{p-e126e9bd.system.entry.js → p-35509b10.system.entry.js} +78 -78
  186. package/dist/zonos-elements/p-35539d3d.entry.js +1 -0
  187. package/dist/zonos-elements/{p-56159b7c.system.entry.js → p-3c800376.system.entry.js} +19 -19
  188. package/dist/zonos-elements/{p-f8fd756a.system.entry.js → p-474e8a92.system.entry.js} +1 -1
  189. package/dist/zonos-elements/{p-36559431.system.entry.js → p-481ecc23.system.entry.js} +19 -19
  190. package/dist/zonos-elements/{p-8cac7911.system.entry.js → p-4fd78ecf.system.entry.js} +13 -13
  191. package/dist/zonos-elements/{p-b78bab27.entry.js → p-52d9fd3a.entry.js} +1 -1
  192. package/dist/zonos-elements/{p-a6faab6a.entry.js → p-55916c90.entry.js} +1 -1
  193. package/dist/zonos-elements/p-5b06f069.entry.js +1 -0
  194. package/dist/zonos-elements/{p-635341d6.entry.js → p-5df25a1a.entry.js} +1 -1
  195. package/dist/zonos-elements/{p-b96666ca.system.entry.js → p-5f347f91.system.entry.js} +3 -3
  196. package/dist/zonos-elements/{p-beeb9d36.system.entry.js → p-756d303f.system.entry.js} +1 -1
  197. package/dist/zonos-elements/{p-fcfac62f.system.entry.js → p-79ddb12a.system.entry.js} +1 -1
  198. package/dist/zonos-elements/{p-3cc27e0e.system.entry.js → p-7d284341.system.entry.js} +4 -4
  199. package/dist/zonos-elements/{p-b88e521e.system.entry.js → p-7e1050dd.system.entry.js} +16 -16
  200. package/dist/zonos-elements/{p-03fbe813.system.entry.js → p-7ee2af6e.system.entry.js} +1 -1
  201. package/dist/zonos-elements/{p-34d1545a.entry.js → p-83aa1c8c.entry.js} +1 -1
  202. package/dist/zonos-elements/{p-5eb82be3.entry.js → p-84c9ce16.entry.js} +1 -1
  203. package/dist/zonos-elements/{p-CaUXHglQ.system.js → p-8PPEbm_0.system.js} +9 -9
  204. package/dist/zonos-elements/{p-b6deae2b.system.entry.js → p-92fe9a1f.system.entry.js} +2 -2
  205. package/dist/zonos-elements/{p-cc17a230.entry.js → p-990b49f2.entry.js} +1 -1
  206. package/dist/zonos-elements/{p-c4713ff1.system.entry.js → p-9ef0f69e.system.entry.js} +3 -3
  207. package/dist/zonos-elements/{p-CZl1nwqv.system.js → p-B4Ufchqh.system.js} +3 -3
  208. package/dist/zonos-elements/{p-D4WI0B6-.system.js → p-B5NDhB1w.system.js} +4 -4
  209. package/dist/zonos-elements/{p-B6X55m0b.js → p-BDrM4x5N.js} +2 -2
  210. package/dist/zonos-elements/p-BGktDPwA.system.js +1 -0
  211. package/dist/zonos-elements/p-BJzAgoqz.js +1 -0
  212. package/dist/zonos-elements/{p-opB7B9YB.js → p-BKoLoalh.js} +1 -1
  213. package/dist/zonos-elements/{p-UM1aYZBV.system.js → p-BT9_ehlh.system.js} +1 -1
  214. package/dist/zonos-elements/{p-CVQ7-7E2.system.js → p-B_5RofQ9.system.js} +16 -16
  215. package/dist/zonos-elements/p-BaF00SfB.js +1 -0
  216. package/dist/zonos-elements/{p-D0erXw7p.js → p-BpDCLBwW.js} +1 -1
  217. package/dist/zonos-elements/{p-CpvnCfKt.js → p-BtWDzGMx.js} +1 -1
  218. package/dist/zonos-elements/p-Bu9WCfUC.system.js +1 -1
  219. package/dist/zonos-elements/{p-CPnR_T0a.system.js → p-BuU_p5DP.system.js} +58 -58
  220. package/dist/zonos-elements/{p-CH6tsv9B.system.js → p-CASTsiDR.system.js} +3 -3
  221. package/dist/zonos-elements/{p-CaAod213.system.js → p-CBx5nYet.system.js} +1 -1
  222. package/dist/zonos-elements/{p-Cd9xIgx7.system.js → p-CEmXVahp.system.js} +1 -1
  223. package/dist/zonos-elements/{p-nU86HJ5w.js → p-CUaf1cEg.js} +1 -1
  224. package/dist/zonos-elements/p-CX_vfdWt.js +1 -0
  225. package/dist/zonos-elements/p-C_z9WL8a.js +1 -0
  226. package/dist/zonos-elements/p-CcJF6xhQ.js +1 -0
  227. package/dist/zonos-elements/{p-MHVIIOVE.js → p-CewmhMGk.js} +1 -1
  228. package/dist/zonos-elements/{p-CQyFoOXW.system.js → p-Cpe_ISNt.system.js} +18 -18
  229. package/dist/zonos-elements/{p-CGkdA4pY.js → p-Cuk0LLGQ.js} +1 -1
  230. package/dist/zonos-elements/p-Cxuiqv1I.js +1 -0
  231. package/dist/zonos-elements/p-DQZncB2d.system.js +9 -0
  232. package/dist/zonos-elements/{p-D2fOB4Wn.system.js → p-DVITR-Eu.system.js} +1 -1
  233. package/dist/zonos-elements/{p-CuhGrJBA.system.js → p-DYIisqF7.system.js} +1 -1
  234. package/dist/zonos-elements/{p-uV7m6KrY.system.js → p-DoEHepOc.system.js} +1 -1
  235. package/dist/zonos-elements/{p-DqEtY53c.js → p-DwkyNtpD.js} +1 -1
  236. package/dist/zonos-elements/p-NJVOYjda.js +1 -0
  237. package/dist/zonos-elements/{p-CtEsvWI6.js → p-W82paT5F.js} +1 -1
  238. package/dist/zonos-elements/{p-72b6a006.system.entry.js → p-a571beaa.system.entry.js} +20 -20
  239. package/dist/zonos-elements/{p-e9a3bc27.system.entry.js → p-a5c25829.system.entry.js} +3 -3
  240. package/dist/zonos-elements/{p-b68ca96f.entry.js → p-a938c174.entry.js} +1 -1
  241. package/dist/zonos-elements/{p-f44631d5.entry.js → p-ab54d0a1.entry.js} +1 -1
  242. package/dist/zonos-elements/{p-9ebe9a36.entry.js → p-acd50b0b.entry.js} +1 -1
  243. package/dist/zonos-elements/{p-0f603278.system.entry.js → p-b5882fbb.system.entry.js} +2 -2
  244. package/dist/zonos-elements/{p-3d536086.entry.js → p-ba510730.entry.js} +1 -1
  245. package/dist/zonos-elements/{p-18021e6b.entry.js → p-c3b02dbf.entry.js} +1 -1
  246. package/dist/zonos-elements/{p-be64d823.system.entry.js → p-c403f004.system.entry.js} +1 -1
  247. package/dist/zonos-elements/{p-4625058a.entry.js → p-c4ad6d4b.entry.js} +1 -1
  248. package/dist/zonos-elements/p-ca3175d9.entry.js +1 -0
  249. package/dist/zonos-elements/{p-3e59d41c.entry.js → p-d3d0656a.entry.js} +1 -1
  250. package/dist/zonos-elements/{p-9b6482ef.entry.js → p-d4d2b39e.entry.js} +1 -1
  251. package/dist/zonos-elements/{p-c5f17bad.entry.js → p-d6b72f6d.entry.js} +1 -1
  252. package/dist/zonos-elements/p-d74bc3e8.entry.js +1 -0
  253. package/dist/zonos-elements/p-db75322d.entry.js +1 -0
  254. package/dist/zonos-elements/{p-5e074243.entry.js → p-dd8ca91e.entry.js} +1 -1
  255. package/dist/zonos-elements/{p-cf53f67a.entry.js → p-ddca5ee1.entry.js} +1 -1
  256. package/dist/zonos-elements/{p-bdba7d9e.system.entry.js → p-dfc87b10.system.entry.js} +1 -1
  257. package/dist/zonos-elements/{p-d451d5bc.system.entry.js → p-f37b8aaf.system.entry.js} +4 -4
  258. package/dist/zonos-elements/{p-2466b5f0.system.entry.js → p-fb869759.system.entry.js} +1 -1
  259. package/dist/zonos-elements/{p-i1iCWKdv.js → p-sz4L-ZnB.js} +1 -1
  260. package/dist/zonos-elements/{p-BybDGrH4.system.js → p-tGJYTlGL.system.js} +4 -4
  261. package/dist/zonos-elements/p-tkSf-lrO.system.js +13 -0
  262. package/dist/zonos-elements/{p-NL_Eiq6m.system.js → p-uuZUZPIm.system.js} +6 -6
  263. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  264. package/package.json +1 -1
  265. package/dist/esm-es5/debounce-DWPsxJsW.js +0 -1
  266. package/dist/zonos-elements/p-02628b9f.entry.js +0 -1
  267. package/dist/zonos-elements/p-037d3688.entry.js +0 -1
  268. package/dist/zonos-elements/p-0466650f.entry.js +0 -1
  269. package/dist/zonos-elements/p-163b81c0.system.entry.js +0 -121
  270. package/dist/zonos-elements/p-3ERbuo5a.js +0 -1
  271. package/dist/zonos-elements/p-97f848f6.entry.js +0 -1
  272. package/dist/zonos-elements/p-9H2p9XKE.js +0 -1
  273. package/dist/zonos-elements/p-BANhKkF2.system.js +0 -1
  274. package/dist/zonos-elements/p-BJufDgh3.js +0 -1
  275. package/dist/zonos-elements/p-BSgVcCxT.system.js +0 -9
  276. package/dist/zonos-elements/p-ClUEwqZW.system.js +0 -13
  277. package/dist/zonos-elements/p-CtKp6AQ4.js +0 -1
  278. package/dist/zonos-elements/p-DdpeA8cH.js +0 -1
  279. package/dist/zonos-elements/p-DkirvyAh.js +0 -1
  280. package/dist/zonos-elements/p-a6354d15.entry.js +0 -1
  281. package/dist/zonos-elements/p-t_ClFAJR.js +0 -1
@@ -1,12 +1,12 @@
1
1
  import { r as registerInstance, h, a as Host, g as getElement } from './index-_lt63o7c.js';
2
- import { d as debounce } from './debounce-DWPsxJsW.js';
3
- import { l as localizationStore, n as isValidSelector, t as translate, g as getZCountryUrlParam, p as setZCountryUrlParam, q as currencyDisplay, r as currencyConvertAndFormat, u as currencyConvert, j as currencyFormat, v as shouldShowHelloWidget } from './localization-Bs6hVcKV.js';
4
- import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-DrIOAz4M.js';
2
+ import { d as debounce } from './debounce-CrmpwbEE.js';
3
+ import { l as localizationStore, n as isValidSelector, t as translate, g as getZCountryUrlParam, p as setZCountryUrlParam, q as currencyDisplay, r as currencyConvertAndFormat, u as currencyConvert, j as currencyFormat, v as shouldShowHelloWidget } from './localization-BiL8bPsY.js';
4
+ import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-msUlqmSD.js';
5
5
  import { c as classes } from './classes-BJHSB96f.js';
6
6
  import { h as handleFetch, l as logError } from './handleFetch-D5GYDF-O.js';
7
7
  import { g as getHasMoreSpaceOnRight } from './getHasMoreSpaceOnRight-DAscqB23.js';
8
8
  import { l as log } from './VarianceTest-BJmZPrZl.js';
9
- import './debounce-D4ko2kvZ.js';
9
+ import './debounce-BR3PaG8X.js';
10
10
 
11
11
  const checkItemRestrictions = async ({ items, shipFrom, shipTo, }) => {
12
12
  var _a;
@@ -140,7 +140,106 @@ const getProductsOnPage = () => {
140
140
  return mergedElements;
141
141
  };
142
142
 
143
- const zonosHelloCss = () => `:host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:inline-block;--zonos-elements-hello-widget-size:18px;--zonos-elements-hello-bubble-padding:max( 6px, calc(var(--zonos-elements-hello-widget-size) * 0.22) );--zonos-elements-hello-bubble-size:calc( var(--zonos-elements-hello-widget-size) + var(--zonos-elements-hello-bubble-padding) * 2 + 2px )}:host .zonos--hello-wrapper{position:relative}:host .zonos--hello-wrapper .zonos--hello-dialog-wrapper-mobile-override{position:fixed;bottom:0;left:0;width:100vw;z-index:1001;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}@media (max-width: 768px){:host .zonos--hello-wrapper .zonos--hello-dialog-wrapper{position:fixed;bottom:0;left:0;width:100vw;z-index:1001;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}}@media screen and (min-width: 769px){:host .zonos--hello-wrapper .zonos--hello-dialog-wrapper.zonos--hello-widget-float{position:fixed;bottom:72px;right:32px;width:auto;height:auto;z-index:1001}:host .zonos--hello-wrapper .zonos--hello-dialog-wrapper.zonos--hello-widget-float.zonos--hello-widget-left{left:32px;right:auto}:host .zonos--hello-wrapper .zonos--hello-dialog-wrapper.zonos--hello-widget-float.zonos--hello-widget-top{bottom:auto;top:32px}}:host .zonos--hello-widget{-webkit-transition:all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);transition:all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);padding:var(--zonos-elements-hello-bubble-padding);border-radius:9999px;background:var(--zonos-elements-page-background);font-size:var(--zonos-elements-font-size-s);border:var(--zonos-elements-border);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;-webkit-box-sizing:border-box;box-sizing:border-box;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;z-index:1000}:host .zonos--hello-widget>.zonos--hello-message{-ms-flex-order:0;order:0;max-width:0;height:100%;white-space:nowrap;-webkit-transition:border 0.3s ease-in, all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);transition:border 0.3s ease-in, all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);overflow:hidden;color:var(--zonos-elements-text-color);position:absolute;background:var(--zonos-elements-page-background);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-top-left-radius:calc(var(--zonos-elements-hello-bubble-size) / 2);border-bottom-left-radius:calc(var(--zonos-elements-hello-bubble-size) / 2);left:0;-webkit-transform:translateX(calc(-100% + var(--zonos-elements-hello-bubble-size) / 2));transform:translateX(calc(-100% + var(--zonos-elements-hello-bubble-size) / 2));width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border-top:var(--zonos-elements-border);border-bottom:var(--zonos-elements-border)}:host .zonos--hello-widget.zonos--hello-has-restrictions{background:var(--zonos-elements-red-100);border:1px solid var(--zonos-elements-red-200)}:host .zonos--hello-widget.zonos--hello-has-restrictions>.zonos--hello-message{background:var(--zonos-elements-red-100);color:var(--zonos-elements-red-800);font-weight:500}:host .zonos--hello-widget.zonos--hello-has-restrictions.zonos--hello-show-peek-message>.zonos--hello-message{border:1px solid var(--zonos-elements-red-200)}:host .zonos--hello-widget.zonos--hello-show-peek-message{max-width:100vw;width:100%}:host .zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{max-width:100vw;padding:0 calc(var(--zonos-elements-hello-bubble-size) / 2);border:var(--zonos-elements-border)}:host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left)>.zonos--hello-message{border-right:none}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:calc(var(--zonos-elements-hello-bubble-size) / 2);border-left:none}:host .zonos--hello-widget.zonos--hello-widget-animate-from-left>.zonos--hello-message{-ms-flex-order:1;order:1;-webkit-transform:translateX(calc(100% - var(--zonos-elements-hello-bubble-size) / 2));transform:translateX(calc(100% - var(--zonos-elements-hello-bubble-size) / 2));right:0;left:auto;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:calc(var(--zonos-elements-hello-bubble-size) / 2);border-bottom-right-radius:calc(var(--zonos-elements-hello-bubble-size) / 2)}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper .zonos--hello-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-v3-shadow-medium);z-index:10;justify-self:center;height:var(--zonos-elements-hello-widget-size);width:var(--zonos-elements-hello-widget-size)}:host .zonos--hello-widget.zonos--hello-widget-float{position:fixed;bottom:72px;right:32px}:host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-left{left:32px;right:auto}:host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-top{bottom:auto;top:32px}:host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-has-restrictions.zonos--hello-show-peek-message>.zonos--hello-message{border:none}:host .zonos--hello-widget.zonos--hello-widget-float>.zonos--hello-message{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-radius:30px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;top:0;bottom:0;left:0;-webkit-transform:translateX(0);transform:translateX(0);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border:none}:host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-animate-from-left>.zonos--hello-message{-webkit-transform:translateX(0);transform:translateX(0)}:host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-show-peek-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}:host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:8px;padding-right:4px}:host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-show-peek-message>.zonos--hello-message{padding:0 var(--zonos-elements-radius-4);padding-right:6px;border:none}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float{position:fixed;bottom:72px;right:32px}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-left{left:32px;right:auto}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-top{bottom:auto;top:32px}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-has-restrictions.zonos--hello-show-peek-message>.zonos--hello-message{border:none}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float>.zonos--hello-message{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-radius:30px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;top:0;bottom:0;left:0;-webkit-transform:translateX(0);transform:translateX(0);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border:none}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-animate-from-left>.zonos--hello-message{-webkit-transform:translateX(0);transform:translateX(0)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-show-peek-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:8px;padding-right:4px}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-show-peek-message>.zonos--hello-message{padding:0 var(--zonos-elements-radius-4);padding-right:6px;border:none}`;
143
+ const isValidHelloPlacement = (value) => {
144
+ if (value == null || typeof value !== 'object') {
145
+ return false;
146
+ }
147
+ const { anchor, horizontalOffset, verticalOffset } = value;
148
+ return (typeof anchor === 'string' &&
149
+ anchor.length > 0 &&
150
+ typeof horizontalOffset === 'number' &&
151
+ Number.isFinite(horizontalOffset) &&
152
+ typeof verticalOffset === 'number' &&
153
+ Number.isFinite(verticalOffset));
154
+ };
155
+ const includesLeft = (location) => Boolean(location === null || location === void 0 ? void 0 : location.includes('LEFT'));
156
+ const includesTop = (location) => Boolean(location === null || location === void 0 ? void 0 : location.includes('TOP'));
157
+ const buildResolved = ({ anchor, animateFromLeftOverride, horizontalOffset, isMobileWindow, isOnLeft, shouldFloat, verticalOffset, }) => ({
158
+ anchor,
159
+ horizontalOffset,
160
+ isMobileWindow,
161
+ isOnLeft: isOnLeft !== null && isOnLeft !== void 0 ? isOnLeft : (Boolean(animateFromLeftOverride) || includesLeft(anchor)),
162
+ isOnTop: includesTop(anchor),
163
+ shouldFloat,
164
+ verticalOffset,
165
+ });
166
+ /**
167
+ * Resolve active Hello float placement per viewport.
168
+ * Precedence: component enum prop → settings HelloPlacement → settings location enum.
169
+ *
170
+ * When the winning source is a component enum prop or settings `HelloPlacement`,
171
+ * `shouldFloat` is always true — including when `anchorElementSelector` is set.
172
+ * That matches existing prop-forced float behavior and FR-006 / data-model rules
173
+ * (placement implies floating; enum fallback still respects the anchor selector).
174
+ */
175
+ const resolveHelloFloatPlacement = (params) => {
176
+ const { anchorElementSelector, animateFromLeftOverride, componentDesktopLocation, componentMobileLocation, desktopLocation, isMobileWindow, mobileLocation, settingsDesktopPlacement, settingsMobilePlacement, shouldAnimateLeftDesktop, } = params;
177
+ if (isMobileWindow) {
178
+ if (componentMobileLocation) {
179
+ return buildResolved({
180
+ anchor: componentMobileLocation,
181
+ animateFromLeftOverride,
182
+ horizontalOffset: null,
183
+ isMobileWindow: true,
184
+ shouldFloat: true,
185
+ verticalOffset: null,
186
+ });
187
+ }
188
+ if (isValidHelloPlacement(settingsMobilePlacement)) {
189
+ return buildResolved({
190
+ anchor: settingsMobilePlacement.anchor,
191
+ animateFromLeftOverride,
192
+ horizontalOffset: settingsMobilePlacement.horizontalOffset,
193
+ isMobileWindow: true,
194
+ shouldFloat: true,
195
+ verticalOffset: settingsMobilePlacement.verticalOffset,
196
+ });
197
+ }
198
+ return buildResolved({
199
+ anchor: mobileLocation,
200
+ animateFromLeftOverride,
201
+ horizontalOffset: null,
202
+ isMobileWindow: true,
203
+ shouldFloat: Boolean(mobileLocation),
204
+ verticalOffset: null,
205
+ });
206
+ }
207
+ if (componentDesktopLocation) {
208
+ return buildResolved({
209
+ anchor: componentDesktopLocation,
210
+ animateFromLeftOverride,
211
+ horizontalOffset: null,
212
+ isMobileWindow: false,
213
+ shouldFloat: true,
214
+ verticalOffset: null,
215
+ });
216
+ }
217
+ if (isValidHelloPlacement(settingsDesktopPlacement)) {
218
+ return buildResolved({
219
+ anchor: settingsDesktopPlacement.anchor,
220
+ animateFromLeftOverride,
221
+ horizontalOffset: settingsDesktopPlacement.horizontalOffset,
222
+ isMobileWindow: false,
223
+ shouldFloat: true,
224
+ verticalOffset: settingsDesktopPlacement.verticalOffset,
225
+ });
226
+ }
227
+ const shouldFloat = !anchorElementSelector && Boolean(desktopLocation);
228
+ const isOnLeft = Boolean(animateFromLeftOverride) ||
229
+ (shouldFloat && desktopLocation
230
+ ? includesLeft(desktopLocation)
231
+ : Boolean(shouldAnimateLeftDesktop === null || shouldAnimateLeftDesktop === void 0 ? void 0 : shouldAnimateLeftDesktop()));
232
+ return buildResolved({
233
+ anchor: desktopLocation,
234
+ horizontalOffset: null,
235
+ isMobileWindow: false,
236
+ isOnLeft,
237
+ shouldFloat,
238
+ verticalOffset: null,
239
+ });
240
+ };
241
+
242
+ const zonosHelloCss = () => `:host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:inline-block;--zonos-elements-hello-widget-size:18px;--zonos-elements-hello-bubble-padding:max( 6px, calc(var(--zonos-elements-hello-widget-size) * 0.22) );--zonos-elements-hello-bubble-size:calc( var(--zonos-elements-hello-widget-size) + var(--zonos-elements-hello-bubble-padding) * 2 + 2px )}:host .zonos--hello-wrapper{position:relative}:host .zonos--hello-wrapper .zonos--hello-dialog-wrapper-mobile-override{position:fixed;bottom:0;left:0;width:100vw;z-index:1001;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}@media (max-width: 768px){:host .zonos--hello-wrapper .zonos--hello-dialog-wrapper{position:fixed;bottom:0;left:0;width:100vw;z-index:1001;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}}@media screen and (min-width: 769px){:host .zonos--hello-wrapper .zonos--hello-dialog-wrapper.zonos--hello-widget-float{position:fixed;bottom:var(--zonos-elements-hello-float-inset-y, 72px);right:var(--zonos-elements-hello-float-inset-x, 32px)}:host .zonos--hello-wrapper .zonos--hello-dialog-wrapper.zonos--hello-widget-float.zonos--hello-widget-left{left:var(--zonos-elements-hello-float-inset-x, 32px);right:auto}:host .zonos--hello-wrapper .zonos--hello-dialog-wrapper.zonos--hello-widget-float.zonos--hello-widget-top{bottom:auto;top:var(--zonos-elements-hello-float-inset-y, 32px)}:host .zonos--hello-wrapper .zonos--hello-dialog-wrapper.zonos--hello-widget-float{width:auto;height:auto;z-index:1001}}:host .zonos--hello-widget{-webkit-transition:all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);transition:all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);padding:var(--zonos-elements-hello-bubble-padding);border-radius:9999px;background:var(--zonos-elements-page-background);font-size:var(--zonos-elements-font-size-s);border:var(--zonos-elements-border);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;-webkit-box-sizing:border-box;box-sizing:border-box;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;z-index:1000}:host .zonos--hello-widget>.zonos--hello-message{-ms-flex-order:0;order:0;max-width:0;height:100%;white-space:nowrap;-webkit-transition:border 0.3s ease-in, all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);transition:border 0.3s ease-in, all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);overflow:hidden;color:var(--zonos-elements-text-color);position:absolute;background:var(--zonos-elements-page-background);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-top-left-radius:calc(var(--zonos-elements-hello-bubble-size) / 2);border-bottom-left-radius:calc(var(--zonos-elements-hello-bubble-size) / 2);left:0;-webkit-transform:translateX(calc(-100% + var(--zonos-elements-hello-bubble-size) / 2));transform:translateX(calc(-100% + var(--zonos-elements-hello-bubble-size) / 2));width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border-top:var(--zonos-elements-border);border-bottom:var(--zonos-elements-border)}:host .zonos--hello-widget.zonos--hello-has-restrictions{background:var(--zonos-elements-red-100);border:1px solid var(--zonos-elements-red-200)}:host .zonos--hello-widget.zonos--hello-has-restrictions>.zonos--hello-message{background:var(--zonos-elements-red-100);color:var(--zonos-elements-red-800);font-weight:500}:host .zonos--hello-widget.zonos--hello-has-restrictions.zonos--hello-show-peek-message>.zonos--hello-message{border:1px solid var(--zonos-elements-red-200)}:host .zonos--hello-widget.zonos--hello-show-peek-message{max-width:100vw;width:100%}:host .zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{max-width:100vw;padding:0 calc(var(--zonos-elements-hello-bubble-size) / 2);border:var(--zonos-elements-border)}:host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left)>.zonos--hello-message{border-right:none}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:calc(var(--zonos-elements-hello-bubble-size) / 2);border-left:none}:host .zonos--hello-widget.zonos--hello-widget-animate-from-left>.zonos--hello-message{-ms-flex-order:1;order:1;-webkit-transform:translateX(calc(100% - var(--zonos-elements-hello-bubble-size) / 2));transform:translateX(calc(100% - var(--zonos-elements-hello-bubble-size) / 2));right:0;left:auto;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:calc(var(--zonos-elements-hello-bubble-size) / 2);border-bottom-right-radius:calc(var(--zonos-elements-hello-bubble-size) / 2)}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper .zonos--hello-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-v3-shadow-medium);z-index:10;justify-self:center;height:var(--zonos-elements-hello-widget-size);width:var(--zonos-elements-hello-widget-size)}:host .zonos--hello-widget.zonos--hello-widget-float{position:fixed;bottom:var(--zonos-elements-hello-float-inset-y, 72px);right:var(--zonos-elements-hello-float-inset-x, 32px)}:host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-left{left:var(--zonos-elements-hello-float-inset-x, 32px);right:auto}:host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-top{bottom:auto;top:var(--zonos-elements-hello-float-inset-y, 32px)}:host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-has-restrictions.zonos--hello-show-peek-message>.zonos--hello-message{border:none}:host .zonos--hello-widget.zonos--hello-widget-float>.zonos--hello-message{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-radius:30px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;top:0;bottom:0;left:0;-webkit-transform:translateX(0);transform:translateX(0);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border:none}:host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-animate-from-left>.zonos--hello-message{-webkit-transform:translateX(0);transform:translateX(0)}:host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-show-peek-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}:host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:8px;padding-right:4px}:host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-show-peek-message>.zonos--hello-message{padding:0 var(--zonos-elements-radius-4);padding-right:6px;border:none}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float{position:fixed;bottom:var(--zonos-elements-hello-float-inset-y, 72px);right:var(--zonos-elements-hello-float-inset-x, 32px)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-left{left:var(--zonos-elements-hello-float-inset-x, 32px);right:auto}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-top{bottom:auto;top:var(--zonos-elements-hello-float-inset-y, 32px)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-has-restrictions.zonos--hello-show-peek-message>.zonos--hello-message{border:none}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float>.zonos--hello-message{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-radius:30px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;top:0;bottom:0;left:0;-webkit-transform:translateX(0);transform:translateX(0);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border:none}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-animate-from-left>.zonos--hello-message{-webkit-transform:translateX(0);transform:translateX(0)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-show-peek-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:8px;padding-right:4px}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-show-peek-message>.zonos--hello-message{padding:0 var(--zonos-elements-radius-4);padding-right:6px;border:none}`;
144
243
 
145
244
  const PEEK_MESSAGE_CLOSE_DELAY_MS = 3000;
146
245
  const ZonosHello = class {
@@ -349,6 +448,8 @@ const ZonosHello = class {
349
448
  return localizationStore.helloCountryList;
350
449
  }
351
450
  componentWillLoad() {
451
+ // Set before first paint so mobile uses mobile placement, not desktop.
452
+ this.isMobile = window.innerWidth <= 768;
352
453
  const initInterval = setInterval(async () => {
353
454
  if (!this.helloRef) {
354
455
  return;
@@ -434,50 +535,19 @@ const ZonosHello = class {
434
535
  }
435
536
  }
436
537
  getHelloLocation() {
437
- const mobileLocation = this.mobileLocationOverride || zonosStore.helloSettings.mobileLocation;
438
- const desktopLocation = this.desktopLocationOverride || zonosStore.helloSettings.desktopLocation;
439
- const isMobileWindow = this.isMobile;
440
- switch (true) {
441
- // Mobile
442
- case isMobileWindow: {
443
- const isOnLeft = this.animateFromLeftOverride || (mobileLocation === null || mobileLocation === void 0 ? void 0 : mobileLocation.includes('LEFT'));
444
- const isOnTop = mobileLocation === null || mobileLocation === void 0 ? void 0 : mobileLocation.includes('TOP');
445
- return {
446
- isMobileWindow,
447
- isOnLeft,
448
- isOnTop,
449
- shouldFloat: !!mobileLocation,
450
- };
451
- }
452
- // Desktop
453
- default:
454
- case !isMobileWindow: {
455
- /**
456
- * Float on desktop when `desktopLocationOverride` is set (explicit
457
- * consumer request) OR when no anchor is specified and a
458
- * `desktopLocation` is configured in the store. With an anchor and no
459
- * override, the widget renders inline at the anchor.
460
- */
461
- const shouldFloat = !!this.desktopLocationOverride ||
462
- (!zonosStore.helloSettings.anchorElementSelector &&
463
- !!desktopLocation);
464
- // When a desktopLocation is set, derive the side deterministically
465
- // from it so RIGHT positions resolve to `false` (not `undefined`).
466
- // Spatial detection only runs as a fallback when no location is set
467
- // (e.g. inline / anchored placement).
468
- const isOnLeft = this.animateFromLeftOverride ||
469
- (shouldFloat && desktopLocation
470
- ? desktopLocation.includes('LEFT')
471
- : this.shouldAnimateLeftDesktop());
472
- const isOnTop = desktopLocation === null || desktopLocation === void 0 ? void 0 : desktopLocation.includes('TOP');
473
- return {
474
- isMobileWindow,
475
- isOnLeft,
476
- isOnTop,
477
- shouldFloat,
478
- };
479
- }
480
- }
538
+ // Enum @Prop `*LocationOverride` → component*; settings HelloPlacement object → settings*.
539
+ return resolveHelloFloatPlacement({
540
+ anchorElementSelector: zonosStore.helloSettings.anchorElementSelector,
541
+ animateFromLeftOverride: this.animateFromLeftOverride,
542
+ componentDesktopLocation: this.desktopLocationOverride,
543
+ componentMobileLocation: this.mobileLocationOverride,
544
+ desktopLocation: zonosStore.helloSettings.desktopLocation,
545
+ isMobileWindow: this.isMobile,
546
+ mobileLocation: zonosStore.helloSettings.mobileLocation,
547
+ settingsDesktopPlacement: zonosStore.helloSettings.desktopLocationOverride,
548
+ settingsMobilePlacement: zonosStore.helloSettings.mobileLocationOverride,
549
+ shouldAnimateLeftDesktop: () => Boolean(this.shouldAnimateLeftDesktop()),
550
+ });
481
551
  }
482
552
  handleAppearanceSettingsOverrideChange() {
483
553
  var _a;
@@ -497,7 +567,7 @@ const ZonosHello = class {
497
567
  return null;
498
568
  }
499
569
  const { selectedCountryCode, targetCurrency } = localizationStore;
500
- const { isOnLeft, isOnTop, shouldFloat } = this.getHelloLocation();
570
+ const { horizontalOffset, isOnLeft, isOnTop, shouldFloat, verticalOffset } = this.getHelloLocation();
501
571
  const appearanceSettings = mergeConfig(zonosStore.appearance, this.appearanceSettingsOverride || null);
502
572
  const { theme } = appearanceSettings;
503
573
  const restrictedItemsOnPage = (_b = this.allRestrictedItems) === null || _b === void 0 ? void 0 : _b.filter(product => this.productsOnPage.some(restriction => restriction.description === product.itemDescription));
@@ -513,7 +583,15 @@ const ZonosHello = class {
513
583
  });
514
584
  }
515
585
  const widgetSize = getHelloWidgetSize(zonosStore.helloSettings.widgetSize);
516
- return (h(Host, { class: "zonos--hello zonos--elements", "data-theme": theme, style: { '--zonos-elements-hello-widget-size': `${widgetSize}px` } }, showHello && (h("div", { class: classes([
586
+ const hostStyle = {
587
+ '--zonos-elements-hello-widget-size': `${widgetSize}px`,
588
+ };
589
+ if (horizontalOffset != null && verticalOffset != null) {
590
+ hostStyle['--zonos-elements-hello-float-inset-x'] =
591
+ `${horizontalOffset}px`;
592
+ hostStyle['--zonos-elements-hello-float-inset-y'] = `${verticalOffset}px`;
593
+ }
594
+ return (h(Host, { class: "zonos--hello zonos--elements", "data-theme": theme, style: hostStyle }, showHello && (h("div", { class: classes([
517
595
  'zonos--hello-wrapper',
518
596
  shouldFloat && 'zonos--hello-widget-float',
519
597
  ]) }, h("button", { class: classes([
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, d as createEvent, h, a as Host, g as getElement } from './index-_lt63o7c.js';
2
- import { a as zonosStoreFontFamily } from './zonosStore-DrIOAz4M.js';
2
+ import { a as zonosStoreFontFamily } from './zonosStore-msUlqmSD.js';
3
3
  import { c as classes } from './classes-BJHSB96f.js';
4
- import { g as getBorderRadius } from './getBorderRadius-HwG64EKM.js';
4
+ import { g as getBorderRadius } from './getBorderRadius-DYfkeXdx.js';
5
5
  import './VarianceTest-BJmZPrZl.js';
6
6
 
7
7
  const zonosInputCss = () => `:host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{margin:1px}:host .zonos--label-wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:100%;width:100%;background:var(--zonos-elements-input-background);border-radius:var(--zonos--border-radius);border:var(--zonos-elements-border)}:host .zonos--label-wrapper:hover{border:1px solid var(--zonos-elements-gray-300)}:host .zonos--floated-input{-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;padding:0 16px;outline:none;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);width:100%;border-radius:var(--zonos--border-radius);background:var(--zonos-elements-input-background);border:0;-ms-flex-order:2;order:2;font-weight:500}:host .zonos--floated-input :-internal-autofill-selected{border-radius:var(--zonos-elements-radius-6) 0 0 var(--zonos-elements-radius-6)}:host .zonos--floated-input :-internal-autofill-selected+label+div{background-color:#e8f0fe}:host .zonos--floated-input.has-label{padding:16px 4px 8px 16px}:host .zonos--floated-input.has-label.has-input-prefix{padding-left:0}:host .zonos--floated-input.has-label.has-input-prefix+.zonos--floated-label::before{margin-left:0}:host .zonos--floated-input:not(.has-label)::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label):-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input::-webkit-input-placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::-moz-placeholder{-moz-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input:-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input:focus{outline:none}:host .zonos--floated-input:focus+.zonos--floated-label::after{-webkit-box-shadow:var(--zonos-elements-glow-blue);box-shadow:var(--zonos-elements-glow-blue)}:host .zonos--floated-input.has-error+.zonos--floated-label::after{-webkit-box-shadow:var(--zonos-elements-glow-error);box-shadow:var(--zonos-elements-glow-error)}:host .zonos--floated-input.has-content::-webkit-input-placeholder,:host .zonos--floated-input:focus::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::-moz-placeholder,:host .zonos--floated-input:focus::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content:-ms-input-placeholder,:host .zonos--floated-input:focus:-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::-ms-input-placeholder,:host .zonos--floated-input:focus::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::placeholder,:host .zonos--floated-input:focus::placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content+.zonos--floated-label::before,:host .zonos--floated-input:focus+.zonos--floated-label::before{top:11px;-webkit-transform:scale(0.8);transform:scale(0.8)}:host .zonos--floated-input:-webkit-autofill,:host .zonos--floated-input:-moz-autofill{background-color:var(--zonos-elements-input-background);color:var(--zonos-elements-text-color)}:host .zonos--floated-label{display:block;max-height:0;pointer-events:none;-ms-flex-order:1;order:1}:host .zonos--floated-label::before{content:attr(data-label);color:var(--zonos-elements-gray-800);position:absolute;font-size:var(--zonos-elements-font-size-base);line-height:var(--zonos-elements-font-size-base);display:inline-block;-webkit-filter:blur(0);filter:blur(0);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);margin-left:16px;top:calc(50% - var(--zonos-elements-font-size-base) / 2);z-index:1}:host .zonos--floated-label::after{content:"";position:absolute;left:0;right:0;top:0;bottom:0;border-radius:var(--zonos--border-radius)}:host{}:host .disabled .zonos--floated-label{pointer-events:inherit}:host .disabled .zonos--floated-label::after{cursor:not-allowed;z-index:1}:host(.sm){height:calc(var(--zonos-elements-size-sm) - 2px)}:host(.sm) .zonos--floated-input.has-label{padding-top:13px;padding-bottom:0}:host(.sm) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.sm) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:2px}:host(.md){height:calc(var(--zonos-elements-size-md) - 2px)}:host(.md) .zonos--floated-input.has-label{padding-top:20px}:host(.md) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.md) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:6px}:host(.lg){height:calc(var(--zonos-elements-size-lg) - 2px)}:host(.lg) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.lg) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:10px}:host(.xl){height:calc(var(--zonos-elements-size-xl) - 2px)}:host(.xl) .zonos--floated-input.has-label{padding-bottom:2px}`;
@@ -1,15 +1,15 @@
1
1
  import { r as registerInstance, h, a as Host } from './index-_lt63o7c.js';
2
- import { d as cartStore } from './cart-BDc4RTBJ.js';
3
- import { t as translate } from './localization-Bs6hVcKV.js';
4
- import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-DIBdWKN1.js';
2
+ import { d as cartStore } from './cart-Cleo1j5P.js';
3
+ import { t as translate } from './localization-BiL8bPsY.js';
4
+ import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-BNbwijGo.js';
5
5
  import { c as classes } from './classes-BJHSB96f.js';
6
- import { c as invoiceStore } from './invoice-DsvQvu4a.js';
6
+ import { c as invoiceStore } from './invoice-D49igPQ9.js';
7
7
  import { r as renderFallback } from './renderFallback-Cy03ZcWE.js';
8
- import './zonosStore-DrIOAz4M.js';
8
+ import './zonosStore-msUlqmSD.js';
9
9
  import './VarianceTest-BJmZPrZl.js';
10
10
  import './handleFetch-D5GYDF-O.js';
11
11
  import './isDarkColor-YdrG78th.js';
12
- import './getBorderRadius-HwG64EKM.js';
12
+ import './getBorderRadius-DYfkeXdx.js';
13
13
  import './TaxId-Cye-evFK.js';
14
14
 
15
15
  const zonosInvoiceCartItemsCss = () => `:host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column{padding:8px;padding-left:0;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column:last-child{text-align:right;padding-right:0}:host .zonos--cart-table .zonos--column:first-child{padding-left:0;width:50px}:host .zonos--cart-table .zonos--cart-item-link{text-align:left}:host .zonos--cart-table .zonos--cart-item-created-at{text-align:right}:host .zonos--cart-table td{vertical-align:middle}:host .zonos--cart-item-price zonos-text{white-space:nowrap}:host(.mobile) table{margin-top:16px}:host(.mobile) table td{vertical-align:top}`;
@@ -1,23 +1,23 @@
1
1
  import { r as registerInstance, d as createEvent, h, F as Fragment, a as Host, g as getElement } from './index-_lt63o7c.js';
2
- import { b as stripeStore, c as stripeStoreRetrievePayment, t as trackConversionEvent, P as stripeStoreResetPromoCode, H as stripeStoreReset, Q as stripeStoreMessageBasedOnStatus, d as cartStore, x as cartStoreNextStep, I as cartStoreOnChange } from './cart-BDc4RTBJ.js';
3
- import { s as submitAnalytics, c as paypalStoreReset, a as paypalStore, b as paypalInitScript } from './paypal-BqyEZS_u.js';
4
- import { t as translate, s as storageStore, k as languages, l as localizationStore } from './localization-Bs6hVcKV.js';
5
- import { z as zonosStore } from './zonosStore-DrIOAz4M.js';
2
+ import { b as stripeStore, c as stripeStoreRetrievePayment, t as trackConversionEvent, P as stripeStoreResetPromoCode, H as stripeStoreReset, Q as stripeStoreMessageBasedOnStatus, d as cartStore, x as cartStoreNextStep, I as cartStoreOnChange } from './cart-Cleo1j5P.js';
3
+ import { s as submitAnalytics, c as paypalStoreReset, a as paypalStore, b as paypalInitScript } from './paypal-D4vWRxHJ.js';
4
+ import { t as translate, s as storageStore, k as languages, l as localizationStore } from './localization-BiL8bPsY.js';
5
+ import { z as zonosStore } from './zonosStore-msUlqmSD.js';
6
6
  import { h as handleFetch, s as sendErrorLog, g as getIsTestMode, i as isCheckoutMobile, a as getIsStagingMode } from './handleFetch-D5GYDF-O.js';
7
7
  import { c as createCustomEvent } from './createCustomEvent-XQfWgQLB.js';
8
- import { g as getBorderRadius } from './getBorderRadius-HwG64EKM.js';
8
+ import { g as getBorderRadius } from './getBorderRadius-DYfkeXdx.js';
9
9
  import { l as log, b as allLogs } from './VarianceTest-BJmZPrZl.js';
10
10
  import { i as isInvoiceMobile, a as isInvoiceTablet } from './isInvoiceMobileTablet-Clej0Ffe.js';
11
11
  import { c as classes } from './classes-BJHSB96f.js';
12
- import { s as shouldShowLanguageSelect } from './shouldShowLanguageSelect-Bb9sbQ41.js';
13
- import { c as invoiceStore } from './invoice-DsvQvu4a.js';
14
- import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-DIBdWKN1.js';
15
- import { p as placeTestOrder } from './placeTestOrder-x3xwMAnW.js';
12
+ import { s as shouldShowLanguageSelect } from './shouldShowLanguageSelect-B82gTfHz.js';
13
+ import { c as invoiceStore } from './invoice-D49igPQ9.js';
14
+ import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-BNbwijGo.js';
15
+ import { p as placeTestOrder } from './placeTestOrder-BNmc5RCo.js';
16
16
  import { r as renderFallback } from './renderFallback-Cy03ZcWE.js';
17
17
  import './isDarkColor-YdrG78th.js';
18
18
  import './TaxId-Cye-evFK.js';
19
19
  import './isContrastColor-CWLU13s9.js';
20
- import './submitGtag-CCGQS060.js';
20
+ import './submitGtag-df9AQ2zL.js';
21
21
 
22
22
  var RemoveIcon = `<svg color="var(--zonos-elements-red-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" data-is-secondary-color="true" fill="var(--zonos-elements-red-200)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>`;
23
23
 
@@ -1,19 +1,19 @@
1
1
  import { r as registerInstance, h, a as Host, F as Fragment } from './index-_lt63o7c.js';
2
- import { b as stripeStore, i as initStripeElements, c as stripeStoreRetrievePayment, d as cartStore, r as cartStoreUpdateToErrorState, e as cartStoreUpdateItems, k as stripeStoreInitCheckoutSession, l as stripeStoreGetPaymentIntent, z as stripeStoreUpdateCheckoutSessionBaseCurrency, E as stripeStoreConfirmPayment, J as stripeStoreOnChange, H as stripeStoreReset, f as cartStoreReset } from './cart-BDc4RTBJ.js';
3
- import { i as invoiceStoreUpdateSelectedShippingOption, a as invoiceStoreInitShippingInfo, b as invoiceStoreAsyncAddressUpdate, c as invoiceStore } from './invoice-DsvQvu4a.js';
4
- import { p as paypalStoreHasPaypalEnabled, a as paypalStore } from './paypal-BqyEZS_u.js';
5
- import { s as storageStore, t as translate, h as localizationStoreOnChange, j as currencyFormat, k as languages, l as localizationStore } from './localization-Bs6hVcKV.js';
6
- import { z as zonosStore } from './zonosStore-DrIOAz4M.js';
2
+ import { b as stripeStore, i as initStripeElements, c as stripeStoreRetrievePayment, d as cartStore, r as cartStoreUpdateToErrorState, e as cartStoreUpdateItems, k as stripeStoreInitCheckoutSession, l as stripeStoreGetPaymentIntent, z as stripeStoreUpdateCheckoutSessionBaseCurrency, E as stripeStoreConfirmPayment, J as stripeStoreOnChange, H as stripeStoreReset, f as cartStoreReset } from './cart-Cleo1j5P.js';
3
+ import { i as invoiceStoreUpdateSelectedShippingOption, a as invoiceStoreInitShippingInfo, b as invoiceStoreAsyncAddressUpdate, c as invoiceStore } from './invoice-D49igPQ9.js';
4
+ import { p as paypalStoreHasPaypalEnabled, a as paypalStore } from './paypal-D4vWRxHJ.js';
5
+ import { s as storageStore, t as translate, h as localizationStoreOnChange, j as currencyFormat, k as languages, l as localizationStore } from './localization-BiL8bPsY.js';
6
+ import { z as zonosStore } from './zonosStore-msUlqmSD.js';
7
7
  import { b as buildCartItemsByTempCart } from './buildCartItemsByTempCart-BycjkdlE.js';
8
8
  import { h as handleFetch, s as sendErrorLog, l as logError, g as getIsTestMode } from './handleFetch-D5GYDF-O.js';
9
9
  import { i as isInvoiceMobile, a as isInvoiceTablet } from './isInvoiceMobileTablet-Clej0Ffe.js';
10
10
  import { c as classes } from './classes-BJHSB96f.js';
11
11
  import { l as log } from './VarianceTest-BJmZPrZl.js';
12
12
  import './isDarkColor-YdrG78th.js';
13
- import './getBorderRadius-HwG64EKM.js';
13
+ import './getBorderRadius-DYfkeXdx.js';
14
14
  import './TaxId-Cye-evFK.js';
15
15
  import './isContrastColor-CWLU13s9.js';
16
- import './submitGtag-CCGQS060.js';
16
+ import './submitGtag-df9AQ2zL.js';
17
17
 
18
18
  var ChevronDownIcon = `<svg color="var(--zonos-elements-gray-400)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M6.293 9.293a1 1 0 0 1 1.414 0L12 13.586l4.293-4.293a1 1 0 0 1 1.414 1.414l-4.93 4.93a1.1 1.1 0 0 1-1.555 0l-4.93-4.93a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>`;
19
19
 
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, a as Host } from './index-_lt63o7c.js';
2
- import { D as localizationStoreUpdateSelectedLocale, t as translate, A as getSupportedLanguages, l as localizationStore } from './localization-Bs6hVcKV.js';
3
- import { a as zonosStoreFontFamily } from './zonosStore-DrIOAz4M.js';
2
+ import { D as localizationStoreUpdateSelectedLocale, t as translate, A as getSupportedLanguages, l as localizationStore } from './localization-BiL8bPsY.js';
3
+ import { a as zonosStoreFontFamily } from './zonosStore-msUlqmSD.js';
4
4
  import './handleFetch-D5GYDF-O.js';
5
5
  import './VarianceTest-BJmZPrZl.js';
6
6
 
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, e as getAssetPath, a as Host } from './index-_lt63o7c.js';
2
- import { a as zonosStoreFontFamily } from './zonosStore-DrIOAz4M.js';
2
+ import { a as zonosStoreFontFamily } from './zonosStore-msUlqmSD.js';
3
3
  import { c as classes } from './classes-BJHSB96f.js';
4
4
  import './VarianceTest-BJmZPrZl.js';
5
5
 
@@ -1,9 +1,9 @@
1
1
  import { r as registerInstance, h, F as Fragment, a as Host, g as getElement } from './index-_lt63o7c.js';
2
- import { a1 as getEnabledPolicies, G as policyConsentStore, a2 as storeCreditStoreSetEnabled, a3 as storeCreditStoreSetUseFullBalance, a4 as cartStoreUpdateStoreCredit, R as storeCreditStore, a5 as storeCreditStoreSetAmount, a6 as storeCreditStoreRefreshBalance, K as storeCreditStoreGetEffectiveAmount } from './cart-BDc4RTBJ.js';
3
- import { l as localizationStore, t as translate } from './localization-Bs6hVcKV.js';
4
- import { z as zonosStore, a as zonosStoreFontFamily } from './zonosStore-DrIOAz4M.js';
5
- import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-DIBdWKN1.js';
6
- import { g as getBorderRadius } from './getBorderRadius-HwG64EKM.js';
2
+ import { a1 as getEnabledPolicies, G as policyConsentStore, a2 as storeCreditStoreSetEnabled, a3 as storeCreditStoreSetUseFullBalance, a4 as cartStoreUpdateStoreCredit, R as storeCreditStore, a5 as storeCreditStoreSetAmount, a6 as storeCreditStoreRefreshBalance, K as storeCreditStoreGetEffectiveAmount } from './cart-Cleo1j5P.js';
3
+ import { l as localizationStore, t as translate } from './localization-BiL8bPsY.js';
4
+ import { z as zonosStore, a as zonosStoreFontFamily } from './zonosStore-msUlqmSD.js';
5
+ import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-BNbwijGo.js';
6
+ import { g as getBorderRadius } from './getBorderRadius-DYfkeXdx.js';
7
7
  import './VarianceTest-BJmZPrZl.js';
8
8
  import './handleFetch-D5GYDF-O.js';
9
9
  import './isDarkColor-YdrG78th.js';
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, d as createEvent, h, a as Host, g as getElement } from './index-_lt63o7c.js';
2
- import { z as zonosStore, a as zonosStoreFontFamily } from './zonosStore-DrIOAz4M.js';
2
+ import { z as zonosStore, a as zonosStoreFontFamily } from './zonosStore-msUlqmSD.js';
3
3
  import { c as classes } from './classes-BJHSB96f.js';
4
- import { g as getBorderRadius } from './getBorderRadius-HwG64EKM.js';
4
+ import { g as getBorderRadius } from './getBorderRadius-DYfkeXdx.js';
5
5
  import { g as getContrastColor } from './getContrastColor-CfCPlW9U.js';
6
6
  import { i as isColorVariable } from './isColorVariable-DXXUq2Lv.js';
7
7
  import './VarianceTest-BJmZPrZl.js';
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, d as createEvent, h, a as Host, g as getElement } from './index-_lt63o7c.js';
2
- import { z as zonosStore, a as zonosStoreFontFamily } from './zonosStore-DrIOAz4M.js';
2
+ import { z as zonosStore, a as zonosStoreFontFamily } from './zonosStore-msUlqmSD.js';
3
3
  import { i as inheritAriaAttributes, a as inheritAttributes } from './helpers-DJIdCwJ5.js';
4
4
  import { c as classes } from './classes-BJHSB96f.js';
5
- import { g as getBorderRadius } from './getBorderRadius-HwG64EKM.js';
5
+ import { g as getBorderRadius } from './getBorderRadius-DYfkeXdx.js';
6
6
  import { i as isDarkColor } from './isDarkColor-YdrG78th.js';
7
7
  import './VarianceTest-BJmZPrZl.js';
8
8
 
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, a as Host } from './index-_lt63o7c.js';
2
- import { z as zonosStore, a as zonosStoreFontFamily } from './zonosStore-DrIOAz4M.js';
2
+ import { z as zonosStore, a as zonosStoreFontFamily } from './zonosStore-msUlqmSD.js';
3
3
  import { c as classes } from './classes-BJHSB96f.js';
4
4
  import { i as isColorVariable } from './isColorVariable-DXXUq2Lv.js';
5
5
  import { s as styles } from './styles-BTIeCf3T.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, a as Host } from './index-_lt63o7c.js';
2
- import { a as zonosStoreFontFamily } from './zonosStore-DrIOAz4M.js';
2
+ import { a as zonosStoreFontFamily } from './zonosStore-msUlqmSD.js';
3
3
  import { c as classes } from './classes-BJHSB96f.js';
4
4
  import './VarianceTest-BJmZPrZl.js';
5
5
 
@@ -3693,9 +3693,11 @@ const { onChange: zonosStoreOnChange, reset, state: zonosStore, } = createStore(
3693
3693
  * Default to bottom right so hello would float if anchorElementSelector is not set. Otherwise, this will be ignored
3694
3694
  */
3695
3695
  desktopLocation: 'BOTTOM_RIGHT',
3696
+ desktopLocationOverride: null,
3696
3697
  excludedUrlPatterns: [],
3697
3698
  homepageUrlPattern: '',
3698
3699
  mobileLocation: 'BOTTOM_RIGHT',
3700
+ mobileLocationOverride: null,
3699
3701
  mode: 'LIVE',
3700
3702
  notFoundElementFallback: null,
3701
3703
  organization: '',
@@ -1,4 +1,4 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,r,o){function n(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function a(e){try{d(o.next(e))}catch(e){i(e)}}function s(e){try{d(o["throw"](e))}catch(e){i(e)}}function d(e){e.done?r(e.value):n(e.value).then(a,s)}d((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,n,i,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=s(0),a["throw"]=s(1),a["return"]=s(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return d([e,t])}}function d(s){if(o)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(r=0)),r)try{if(o=1,n&&(i=s[0]&2?n["return"]:s[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;if(n=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;n=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(s[0]===6&&r.label<i[1]){r.label=i[1];i=s;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(s);break}if(i[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];n=0}finally{o=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var o=0,n=t.length,i;o<n;o++){if(i||!(o in t)){if(!i)i=Array.prototype.slice.call(t,0,o);i[o]=t[o]}}return e.concat(i||Array.prototype.slice.call(t))};import{c as createStore,z as zonosStore}from"./zonosStore-DrIOAz4M.js";import{s as storageStore,t as translate,m as getOverridenZCountry,l as localizationStore,f as filterValidTests,e as storageStoreSetEnabledVariantTestKeys}from"./localization-Bs6hVcKV.js";import{l as log,b as allLogs}from"./VarianceTest-BJmZPrZl.js";import{h as handleFetch,l as logError,f as fallbackApiList,g as getIsTestMode,a as getIsStagingMode,s as sendErrorLog,j as jsonParse}from"./handleFetch-D5GYDF-O.js";import{i as isDarkColor}from"./isDarkColor-YdrG78th.js";import{g as getBorderRadius}from"./getBorderRadius-HwG64EKM.js";import{e as euCountryCodes}from"./TaxId-Cye-evFK.js";var getCheckoutSession=function(){return __awaiter(void 0,void 0,void 0,(function(){var e,t,r,o;return __generator(this,(function(n){switch(n.label){case 0:if(!storageStore.checkoutSessionId){return[2/*return*/,{errors:[{message:"No checkout session id found"}],json:null}]}e=new URLSearchParams;e.set("checkoutSessionId",storageStore.checkoutSessionId);return[4/*yield*/,handleFetch("/api/zonos-elements/get-checkout-session?".concat(e.toString()))];case 1:t=n.sent(),r=t.errors,o=t.json;return[2/*return*/,{errors:r,json:o}]}}))}))};var _o=createStore((function(){return{amountToApply:null,appliedAmount:null,availableBalance:null,error:null,isApplying:false,isEnabled:false,orderIdCreated:null,remainingBalance:null,useFullBalance:true}})),reset$2=_o.reset,storeCreditStore=_o.state;
1
+ var __awaiter=this&&this.__awaiter||function(e,t,r,o){function n(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function a(e){try{d(o.next(e))}catch(e){i(e)}}function s(e){try{d(o["throw"](e))}catch(e){i(e)}}function d(e){e.done?r(e.value):n(e.value).then(a,s)}d((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,n,i,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=s(0),a["throw"]=s(1),a["return"]=s(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return d([e,t])}}function d(s){if(o)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(r=0)),r)try{if(o=1,n&&(i=s[0]&2?n["return"]:s[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;if(n=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;n=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(s[0]===6&&r.label<i[1]){r.label=i[1];i=s;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(s);break}if(i[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];n=0}finally{o=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var o=0,n=t.length,i;o<n;o++){if(i||!(o in t)){if(!i)i=Array.prototype.slice.call(t,0,o);i[o]=t[o]}}return e.concat(i||Array.prototype.slice.call(t))};import{c as createStore,z as zonosStore}from"./zonosStore-msUlqmSD.js";import{s as storageStore,t as translate,m as getOverridenZCountry,l as localizationStore,f as filterValidTests,e as storageStoreSetEnabledVariantTestKeys}from"./localization-BiL8bPsY.js";import{l as log,b as allLogs}from"./VarianceTest-BJmZPrZl.js";import{h as handleFetch,l as logError,f as fallbackApiList,g as getIsTestMode,a as getIsStagingMode,s as sendErrorLog,j as jsonParse}from"./handleFetch-D5GYDF-O.js";import{i as isDarkColor}from"./isDarkColor-YdrG78th.js";import{g as getBorderRadius}from"./getBorderRadius-DYfkeXdx.js";import{e as euCountryCodes}from"./TaxId-Cye-evFK.js";var getCheckoutSession=function(){return __awaiter(void 0,void 0,void 0,(function(){var e,t,r,o;return __generator(this,(function(n){switch(n.label){case 0:if(!storageStore.checkoutSessionId){return[2/*return*/,{errors:[{message:"No checkout session id found"}],json:null}]}e=new URLSearchParams;e.set("checkoutSessionId",storageStore.checkoutSessionId);return[4/*yield*/,handleFetch("/api/zonos-elements/get-checkout-session?".concat(e.toString()))];case 1:t=n.sent(),r=t.errors,o=t.json;return[2/*return*/,{errors:r,json:o}]}}))}))};var _o=createStore((function(){return{amountToApply:null,appliedAmount:null,availableBalance:null,error:null,isApplying:false,isEnabled:false,orderIdCreated:null,remainingBalance:null,useFullBalance:true}})),reset$2=_o.reset,storeCreditStore=_o.state;
2
2
  /**
3
3
  * Reset store credit store to initial state
4
4
  */var storeCreditStoreReset=function(){reset$2()};
@@ -79,7 +79,7 @@ var POLICY_NAME_KEY={privacyPolicy:"Privacy policy",refundPolicy:"Refund policy"
79
79
  var i=(o===null||o===void 0?void 0:o.split(/\s+/))||[];var a=(t===null||t===void 0?void 0:t.trim())||((n=i[0])===null||n===void 0?void 0:n.trim())||"";var s=(r===null||r===void 0?void 0:r.trim())||i.slice(1).join(" ").trim()||"";return{firstName:a,lastName:s}};
80
80
  /**
81
81
  * Extract value from translated object
82
- */var getTranslatedAddress=function(e){var t=e.currentAddress,r=e.translatedAddress;var o,n,i,a,s,d;var c=t.value.address,l=c.city,u=c.country,S=c.line1,v=c.line2,p=c.postal_code,f=c.state;var h=t.value.name||[t.value.firstName,t.value.lastName].join(" ");return{city:((o=r.city)===null||o===void 0?void 0:o[l])||l,country:u,line1:((n=r.line1)===null||n===void 0?void 0:n[S])||S,line2:((i=r.line2)===null||i===void 0?void 0:i[v||""])||v||"",name:((a=r.name)===null||a===void 0?void 0:a[h])||h,phone:t.value.phone||"",postal_code:((s=r.postal_code)===null||s===void 0?void 0:s[p])||p,state:((d=r.state)===null||d===void 0?void 0:d[f])||f}};
82
+ */var getTranslatedAddress=function(e){var t=e.currentAddress,r=e.translatedAddress;var o,n,i,a,s,d;var c=t.value.address,l=c.city,u=c.country,S=c.line1,v=c.line2,p=c.postal_code,f=c.state;var m=t.value.name||[t.value.firstName,t.value.lastName].join(" ");return{city:((o=r.city)===null||o===void 0?void 0:o[l])||l,country:u,line1:((n=r.line1)===null||n===void 0?void 0:n[S])||S,line2:((i=r.line2)===null||i===void 0?void 0:i[v||""])||v||"",name:((a=r.name)===null||a===void 0?void 0:a[m])||m,phone:t.value.phone||"",postal_code:((s=r.postal_code)===null||s===void 0?void 0:s[p])||p,state:((d=r.state)===null||d===void 0?void 0:d[f])||f}};
83
83
  /**
84
84
  * Similar to prepCalculateLandedCost except it only uses cart ID
85
85
  */var prepCartCalculateLandedCost=function(e){var t;var r=new URLSearchParams(window.location.search).get("zonosE2ETest")==="1";
@@ -151,9 +151,9 @@ if(!a||!s){return null}
151
151
  // only translate if there are invalid characters
152
152
  if(!t&&!r){return null}var d=o.value;var c=(n===null||n===void 0?void 0:n.value)||null;
153
153
  // Returns undefined if the name is Latin so it won't be included in the request body
154
- var l=extractName({firstName:d.firstName,lastName:d.lastName,name:d.name}),u=l.firstName,S=l.lastName;var v="".concat(u," ").concat(S);var p=extractName({firstName:c===null||c===void 0?void 0:c.firstName,lastName:c===null||c===void 0?void 0:c.lastName,name:(c===null||c===void 0?void 0:c.name)||""}),f=p.firstName,h=p.lastName;var m=f&&h?"".concat(f," ").concat(h):"";var g=d.address;var C=c===null||c===void 0?void 0:c.address;return{address:getExcludeAddressFieldsObject({address:Object.assign(Object.assign({},g),{name:v}),invalidAdddressList:t}),
154
+ var l=extractName({firstName:d.firstName,lastName:d.lastName,name:d.name}),u=l.firstName,S=l.lastName;var v="".concat(u," ").concat(S);var p=extractName({firstName:c===null||c===void 0?void 0:c.firstName,lastName:c===null||c===void 0?void 0:c.lastName,name:(c===null||c===void 0?void 0:c.name)||""}),f=p.firstName,m=p.lastName;var h=f&&m?"".concat(f," ").concat(m):"";var g=d.address;var C=c===null||c===void 0?void 0:c.address;return{address:getExcludeAddressFieldsObject({address:Object.assign(Object.assign({},g),{name:v}),invalidAdddressList:t}),
155
155
  // only include billing address if it's different from the shipping address
156
- billingAddress:!i?getExcludeAddressFieldsObject({address:C?Object.assign(Object.assign({},C),{name:m}):null,invalidAdddressList:r}):undefined,destinationCountry:g.country}};
156
+ billingAddress:!i?getExcludeAddressFieldsObject({address:C?Object.assign(Object.assign({},C),{name:h}):null,invalidAdddressList:r}):undefined,destinationCountry:g.country}};
157
157
  /**
158
158
  * Sorts service levels with lower cost first
159
159
  */var sortServiceLevelOptionsByAmount=function(e){var t=e.sort((function(e,t){return e.amount-t.amount}));return t};
@@ -474,13 +474,13 @@ cartStoreApplySubtotals({method:((t=i.checkoutSessionUpdate.landedCost)===null||
474
474
  if(e.method==="DAP"&&((o=(r=zonosStore.genericSettings)===null||r===void 0?void 0:r.domesticCountries)===null||o===void 0?void 0:o.includes(((n=stripeStore.stripeAddressEventData)===null||n===void 0?void 0:n.value.address.country)||"US"))){return"DDP"}
475
475
  // EU 3-EUR cutover (05CHECK-893): keep EU POSTAL remittance quotes as DAP so
476
476
  // the shopper is told duties are paid upon delivery, even though we remit.
477
- if(isEuDapRemittance({deliveryType:t,landedCost:e,shipToCountry:(i=stripeStore.stripeAddressEventData)===null||i===void 0?void 0:i.value.address.country})){return"DAP"}if(e.method==="DAP"&&e.remittance.length&&e.landedCostGuaranteeCode==="ZONOS"){return"DDP"}return e.method};var cartStoreUpdateSelectedShippingOption=function(e){return __awaiter(void 0,[e],void 0,(function(e){var t,r,o,n,i,a,s,d,c,l,u,S,v,p,f,h,m,g,C,y,w,b,A,O,_,k;var E=e.applySubtotalsOnly,I=e.landedCostId,P=e.selectedShippingOption;return __generator(this,(function(e){switch(e.label){case 0:log("Updating selected shipping option","info",{landedCostId:I,selectedShippingOption:P});cartStore.selectedShippingOption=P;v=cartStoreGetShippingTransitInfo(cartStore.selectedShippingOption);if(v){p=v.maxTransit,f=v.minTransit,h=v.unit;cartStore.selectedShippingOptionTransitTime="".concat(f,"-").concat(p," ").concat(h)}else{cartStore.selectedShippingOptionTransitTime=""}m=(t=cartStore.landedCostData)===null||t===void 0?void 0:t.find((function(e){return e.landedCostId===I}));
477
+ if(isEuDapRemittance({deliveryType:t,landedCost:e,shipToCountry:(i=stripeStore.stripeAddressEventData)===null||i===void 0?void 0:i.value.address.country})){return"DAP"}if(e.method==="DAP"&&e.remittance.length&&e.landedCostGuaranteeCode==="ZONOS"){return"DDP"}return e.method};var cartStoreUpdateSelectedShippingOption=function(e){return __awaiter(void 0,[e],void 0,(function(e){var t,r,o,n,i,a,s,d,c,l,u,S,v,p,f,m,h,g,C,y,w,b,A,O,_,k;var E=e.applySubtotalsOnly,I=e.landedCostId,P=e.selectedShippingOption;return __generator(this,(function(e){switch(e.label){case 0:log("Updating selected shipping option","info",{landedCostId:I,selectedShippingOption:P});cartStore.selectedShippingOption=P;v=cartStoreGetShippingTransitInfo(cartStore.selectedShippingOption);if(v){p=v.maxTransit,f=v.minTransit,m=v.unit;cartStore.selectedShippingOptionTransitTime="".concat(f,"-").concat(p," ").concat(m)}else{cartStore.selectedShippingOptionTransitTime=""}h=(t=cartStore.landedCostData)===null||t===void 0?void 0:t.find((function(e){return e.landedCostId===I}));
478
478
  // save selected landed cost for later use
479
- cartStore.selectedLandedCost=m||null;if(!m){
479
+ cartStore.selectedLandedCost=h||null;if(!h){
480
480
  // do nothing if we can't find landed cost for selected shipping option
481
- return[2/*return*/,false]}g=((r=m.landedCost.amountSubtotals)===null||r===void 0?void 0:r.landedCostTotal)||0;C=m.subtotals.exchangeRate.rate;y=g*C;if(y){log("DAP quote, using estimate: ".concat(y),"info")}cartStore.landedCostMethod=cartStoreGetMethod(m.landedCost,(o=P.shippingProfile)===null||o===void 0?void 0:o.serviceLevel.deliveryType);
481
+ return[2/*return*/,false]}g=((r=h.landedCost.amountSubtotals)===null||r===void 0?void 0:r.landedCostTotal)||0;C=h.subtotals.exchangeRate.rate;y=g*C;if(y){log("DAP quote, using estimate: ".concat(y),"info")}cartStore.landedCostMethod=cartStoreGetMethod(h.landedCost,(o=P.shippingProfile)===null||o===void 0?void 0:o.serviceLevel.deliveryType);
482
482
  // update shipping value and dutiesTaxFees on selectedShippingOption change
483
- cartStore.shipping=m.subtotals.shipping;w=((n=m===null||m===void 0?void 0:m.landedCost)===null||n===void 0?void 0:n.landedCostGuaranteeCode)==="ZONOS";b=!!((a=(i=m===null||m===void 0?void 0:m.landedCost)===null||i===void 0?void 0:i.deMinimis)===null||a===void 0?void 0:a.find((function(e){return["DUTY","TAX"].includes(e.type)&&e.threshold==="ABOVE"})));cartStore.isSelectedShippingAboveDeminimis=b;cartStore.isSelectedShippingGuarantee=w;A=false;if(!E)return[3/*break*/,1];O=m.subtotals;cartStoreApplySubtotals({dutiesTaxesFeesEstimate:y,method:cartStore.landedCostMethod,subtotals:O});log("Exchange rate updated for cart items (landed cost subtotal)","info",cartStore.exchangeRate);A=true;return[3/*break*/,3];case 1:return[4/*yield*/,cartStoreReCalculateTotal({adjustmentsAmount:cartStore.adjustmentTotal,cartId:window.Zonos.cartId,dutiesTaxesFeesEstimate:y,landedCostId:(s=m.landedCost)===null||s===void 0?void 0:s.id})];case 2:
483
+ cartStore.shipping=h.subtotals.shipping;w=((n=h===null||h===void 0?void 0:h.landedCost)===null||n===void 0?void 0:n.landedCostGuaranteeCode)==="ZONOS";b=!!((a=(i=h===null||h===void 0?void 0:h.landedCost)===null||i===void 0?void 0:i.deMinimis)===null||a===void 0?void 0:a.find((function(e){return["DUTY","TAX"].includes(e.type)&&e.threshold==="ABOVE"})));cartStore.isSelectedShippingAboveDeminimis=b;cartStore.isSelectedShippingGuarantee=w;A=false;if(!E)return[3/*break*/,1];O=h.subtotals;cartStoreApplySubtotals({dutiesTaxesFeesEstimate:y,method:cartStore.landedCostMethod,subtotals:O});log("Exchange rate updated for cart items (landed cost subtotal)","info",cartStore.exchangeRate);A=true;return[3/*break*/,3];case 1:return[4/*yield*/,cartStoreReCalculateTotal({adjustmentsAmount:cartStore.adjustmentTotal,cartId:window.Zonos.cartId,dutiesTaxesFeesEstimate:y,landedCostId:(s=h.landedCost)===null||s===void 0?void 0:s.id})];case 2:
484
484
  // update session with selected landed cost
485
485
  A=e.sent();e.label=3;case 3:_=(d=cartStore.items.find(Boolean))===null||d===void 0?void 0:d.currencyCode;k=((c=stripeStore.stripeAddressEventData)===null||c===void 0?void 0:c.value.address.country)||"US";
486
486
  // Only show pay in USD button if item's currency is in USD, the setting is enabled and the order presentment currency is not USD, also only in USD settlement ship to country list
@@ -1,4 +1,4 @@
1
- var __awaiter=this&&this.__awaiter||function(e,r,t,n){function i(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n["throw"](e))}catch(e){o(e)}}function u(e){e.done?t(e.value):i(e.value).then(a,s)}u((n=n.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=s(0),a["throw"]=s(1),a["return"]=s(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(r){return u([e,r])}}function u(s){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(t=0)),t)try{if(n=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:t.label++;return{value:s[1],done:false};case 5:t.label++;i=s[1];s=[0];continue;case 7:s=t.ops.pop();t.trys.pop();continue;default:if(!(o=t.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){t.label=s[1];break}if(s[0]===6&&t.label<o[1]){t.label=o[1];o=s;break}if(o&&t.label<o[2]){t.label=o[2];t.ops.push(s);break}if(o[2])t.ops.pop();t.trys.pop();continue}s=r.call(e,t)}catch(e){s=[6,e];i=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{c as createStore,z as zonosStore}from"./zonosStore-DrIOAz4M.js";import{t as translate,l as localizationStore,s as storageStore}from"./localization-Bs6hVcKV.js";import{l as logError$1,h as handleFetch,s as sendErrorLog}from"./handleFetch-D5GYDF-O.js";import{l as log,b as allLogs}from"./VarianceTest-BJmZPrZl.js";import{d as cartStore,Y as cartStoreUpdateSelectedShippingOption,b as stripeStore,a0 as stripeStoreBuildAddressForPartyCreate}from"./cart-BDc4RTBJ.js";
1
+ var __awaiter=this&&this.__awaiter||function(e,r,t,n){function i(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n["throw"](e))}catch(e){o(e)}}function u(e){e.done?t(e.value):i(e.value).then(a,s)}u((n=n.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=s(0),a["throw"]=s(1),a["return"]=s(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(r){return u([e,r])}}function u(s){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(t=0)),t)try{if(n=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:t.label++;return{value:s[1],done:false};case 5:t.label++;i=s[1];s=[0];continue;case 7:s=t.ops.pop();t.trys.pop();continue;default:if(!(o=t.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){t.label=s[1];break}if(s[0]===6&&t.label<o[1]){t.label=o[1];o=s;break}if(o&&t.label<o[2]){t.label=o[2];t.ops.push(s);break}if(o[2])t.ops.pop();t.trys.pop();continue}s=r.call(e,t)}catch(e){s=[6,e];i=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{c as createStore,z as zonosStore}from"./zonosStore-msUlqmSD.js";import{t as translate,l as localizationStore,s as storageStore}from"./localization-BiL8bPsY.js";import{l as logError$1,h as handleFetch,s as sendErrorLog}from"./handleFetch-D5GYDF-O.js";import{l as log,b as allLogs}from"./VarianceTest-BJmZPrZl.js";import{d as cartStore,Y as cartStoreUpdateSelectedShippingOption,b as stripeStore,a0 as stripeStoreBuildAddressForPartyCreate}from"./cart-Cleo1j5P.js";
2
2
  // src/constant/common.ts
3
3
  function _array_like_to_array(e,r){if(r==null||r>e.length)r=e.length;for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function _array_with_holes(e){if(Array.isArray(e))return e}function _array_without_holes(e){if(Array.isArray(e))return _array_like_to_array(e)}function asyncGeneratorStep(e,r,t,n,i,o,a){try{var s=e[o](a);var u=s.value}catch(e){t(e);return}if(s.done){r(u)}else{Promise.resolve(u).then(n,i)}}function _async_to_generator(e){return function(){var r=this,t=arguments;return new Promise((function(n,i){var o=e.apply(r,t);function a(e){asyncGeneratorStep(o,n,i,a,s,"next",e)}function s(e){asyncGeneratorStep(o,n,i,a,s,"throw",e)}a(undefined)}))}}function _class_call_check(e,r){if(!(e instanceof r)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function _create_class(e,r,t){if(r)_defineProperties(e.prototype,r);return e}function _define_property(e,r,t){if(r in e){Object.defineProperty(e,r,{value:t,enumerable:true,configurable:true,writable:true})}else{e[r]=t}return e}function _instanceof(e,r){if(r!=null&&typeof Symbol!=="undefined"&&r[Symbol.hasInstance]){return!!r[Symbol.hasInstance](e)}else{return e instanceof r}}function _iterable_to_array(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _iterable_to_array_limit(e,r){var t=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t==null)return;var n=[];var i=true;var o=false;var a,s;try{for(t=t.call(e);!(i=(a=t.next()).done);i=true){n.push(a.value);if(n.length===r)break}}catch(e){o=true;s=e}finally{try{if(!i&&t["return"]!=null)t["return"]()}finally{if(o)throw s}}return n}function _non_iterable_rest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _non_iterable_spread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _object_spread(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};var n=Object.keys(t);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))}n.forEach((function(r){_define_property(e,r,t[r])}))}return e}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}function _object_spread_props(e,r){r=r!=null?r:{};if(Object.getOwnPropertyDescriptors){Object.defineProperties(e,Object.getOwnPropertyDescriptors(r))}else{ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _sliced_to_array(e,r){return _array_with_holes(e)||_iterable_to_array_limit(e,r)||_unsupported_iterable_to_array(e,r)||_non_iterable_rest()}function _to_consumable_array(e){return _array_without_holes(e)||_iterable_to_array(e)||_unsupported_iterable_to_array(e)||_non_iterable_spread()}function _type_of(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}function _unsupported_iterable_to_array(e,r){if(!e)return;if(typeof e==="string")return _array_like_to_array(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor)t=e.constructor.name;if(t==="Map"||t==="Set")return Array.from(t);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _array_like_to_array(e,r)}function _ts_generator(e,r){var t,n,i,o,a={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(r){return u([e,r])}}function u(o){if(t)throw new TypeError("Generator is already executing.");while(a)try{if(t=1,n&&(i=o[0]&2?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;if(n=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:a.label++;return{value:o[1],done:false};case 5:a.label++;n=o[1];o=[0];continue;case 7:o=a.ops.pop();a.trys.pop();continue;default:if(!(i=a.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){a=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(o[0]===6&&a.label<i[1]){a.label=i[1];i=o;break}if(i&&a.label<i[2]){a.label=i[2];a.ops.push(o);break}if(i[2])a.ops.pop();a.trys.pop();continue}o=r.call(e,a)}catch(e){o=[6,e];n=0}finally{t=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}}var Environment=function(e){e["production"]="prod";e["demo"]="demo";e["staging"]="staging";return e}(Environment||{});
4
4
  // src/constant/config.ts