@zonos/elements 1.3.49 → 1.3.51

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 (172) hide show
  1. package/dist/cjs/{cart-8fac8840.js → cart-546d1602.js} +43 -6
  2. package/dist/cjs/{createCustomEvent-21addb75.js → createCustomEvent-9b91480b.js} +2 -2
  3. package/dist/cjs/{getBorderRadius-4413e191.js → getBorderRadius-a6a3b35e.js} +1 -1
  4. package/dist/cjs/index.cjs.js +7 -7
  5. package/dist/cjs/{isDarkColor-4eb96a1e.js → isDarkColor-7a056d05.js} +1 -1
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/{paypal-8d507ea7.js → paypal-83f49f9a.js} +3 -3
  8. package/dist/cjs/zonos-address_8.cjs.entry.js +4 -4
  9. package/dist/cjs/zonos-badge_2.cjs.entry.js +1 -1
  10. package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
  11. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  12. package/dist/cjs/zonos-card.cjs.entry.js +2 -2
  13. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +6 -6
  14. package/dist/cjs/zonos-checkout.cjs.entry.js +6 -6
  15. package/dist/cjs/zonos-controller.cjs.entry.js +28 -15
  16. package/dist/cjs/zonos-country-flag.cjs.entry.js +4 -4
  17. package/dist/cjs/zonos-country-select_4.cjs.entry.js +4 -4
  18. package/dist/cjs/zonos-elements.cjs.js +1 -1
  19. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +4 -4
  20. package/dist/cjs/zonos-hello.cjs.entry.js +58 -15
  21. package/dist/cjs/zonos-input.cjs.entry.js +2 -2
  22. package/dist/cjs/zonos-language-select_2.cjs.entry.js +4 -4
  23. package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
  24. package/dist/cjs/zonos-notification_3.cjs.entry.js +5 -5
  25. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +2 -2
  26. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  27. package/dist/cjs/zonos-v-stack.cjs.entry.js +1 -1
  28. package/dist/cjs/{zonosStore-56401fdb.js → zonosStore-67139f0e.js} +5 -0
  29. package/dist/collection/components/hello/zonos-hello/zonos-hello.css +53 -103
  30. package/dist/collection/components/hello/zonos-hello/zonos-hello.js +55 -11
  31. package/dist/collection/components/main/zonos-controller.js +12 -4
  32. package/dist/collection/components/store/zonosStore.js +5 -0
  33. package/dist/collection/components/utils/api/triggerBuildLandedCost.js +2 -2
  34. package/dist/collection/components/utils/handleFetch.js +6 -1
  35. package/dist/collection/components/utils/hello/currencyConversion/currencyFormat.js +7 -1
  36. package/dist/collection/components/utils/hello/currencyConversion/numberFormat.js +27 -0
  37. package/dist/collection/components/utils/hello/initHello.js +14 -9
  38. package/dist/collection/types/generated/graphql.customer.types.js +20 -0
  39. package/dist/esm/{cart-e14f2366.js → cart-51529af2.js} +43 -6
  40. package/dist/esm/{createCustomEvent-444ddf02.js → createCustomEvent-b8bbdf5e.js} +2 -2
  41. package/dist/esm/{getBorderRadius-3ba98361.js → getBorderRadius-23398fc6.js} +1 -1
  42. package/dist/esm/index.js +7 -7
  43. package/dist/esm/{isDarkColor-3119e351.js → isDarkColor-c927f77d.js} +1 -1
  44. package/dist/esm/loader.js +1 -1
  45. package/dist/esm/{paypal-eef2a2a3.js → paypal-905325d0.js} +3 -3
  46. package/dist/esm/zonos-address_8.entry.js +4 -4
  47. package/dist/esm/zonos-badge_2.entry.js +1 -1
  48. package/dist/esm/zonos-banner.entry.js +1 -1
  49. package/dist/esm/zonos-button_3.entry.js +3 -3
  50. package/dist/esm/zonos-card.entry.js +2 -2
  51. package/dist/esm/zonos-cart-items_12.entry.js +6 -6
  52. package/dist/esm/zonos-checkout.entry.js +6 -6
  53. package/dist/esm/zonos-controller.entry.js +28 -15
  54. package/dist/esm/zonos-country-flag.entry.js +4 -4
  55. package/dist/esm/zonos-country-select_4.entry.js +4 -4
  56. package/dist/esm/zonos-elements.js +1 -1
  57. package/dist/esm/zonos-hello-dialog.entry.js +4 -4
  58. package/dist/esm/zonos-hello.entry.js +58 -15
  59. package/dist/esm/zonos-input.entry.js +2 -2
  60. package/dist/esm/zonos-language-select_2.entry.js +4 -4
  61. package/dist/esm/zonos-logo.entry.js +1 -1
  62. package/dist/esm/zonos-notification_3.entry.js +5 -5
  63. package/dist/esm/zonos-shipping-rich-radio.entry.js +2 -2
  64. package/dist/esm/zonos-text.entry.js +1 -1
  65. package/dist/esm/zonos-v-stack.entry.js +1 -1
  66. package/dist/esm/{zonosStore-8fc9ceb2.js → zonosStore-473f4654.js} +5 -0
  67. package/dist/esm-es5/{cart-e14f2366.js → cart-51529af2.js} +1 -1
  68. package/dist/esm-es5/{createCustomEvent-444ddf02.js → createCustomEvent-b8bbdf5e.js} +1 -1
  69. package/dist/esm-es5/{getBorderRadius-3ba98361.js → getBorderRadius-23398fc6.js} +1 -1
  70. package/dist/esm-es5/index.js +1 -1
  71. package/dist/esm-es5/{isDarkColor-3119e351.js → isDarkColor-c927f77d.js} +1 -1
  72. package/dist/esm-es5/loader.js +1 -1
  73. package/dist/esm-es5/{paypal-eef2a2a3.js → paypal-905325d0.js} +1 -1
  74. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  75. package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
  76. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  77. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  78. package/dist/esm-es5/zonos-card.entry.js +1 -1
  79. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  80. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  81. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  82. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  83. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  84. package/dist/esm-es5/zonos-elements.js +1 -1
  85. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  86. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  87. package/dist/esm-es5/zonos-input.entry.js +1 -1
  88. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  89. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  90. package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
  91. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  92. package/dist/esm-es5/zonos-text.entry.js +1 -1
  93. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  94. package/dist/esm-es5/{zonosStore-8fc9ceb2.js → zonosStore-473f4654.js} +1 -1
  95. package/dist/scripts/index.d.ts +82 -6
  96. package/dist/scripts/index.js +1 -1
  97. package/dist/scripts/loadZonos.js +1 -1
  98. package/dist/scripts/zonos.js +1 -1
  99. package/dist/types/components/hello/zonos-hello/zonos-hello.d.ts +9 -0
  100. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  101. package/dist/types/components/utils/hello/currencyConversion/numberFormat.d.ts +13 -0
  102. package/dist/types/components/utils/hello/initHello.d.ts +6 -2
  103. package/dist/types/components/utils/logging/sendErrorLog.d.ts +1 -1
  104. package/dist/types/scripts/_zonosBase.d.ts +77 -3
  105. package/dist/types/types/generated/graphql.customer.types.d.ts +27 -3
  106. package/dist/types/types/generated/graphql.customer.types.ts +38 -3
  107. package/dist/types/types/generated/graphql.frontend.types.d.ts +14 -14
  108. package/dist/types/types/generated/graphql.frontend.types.ts +12 -12
  109. package/dist/types/types/hello/HelloConfig.d.ts +3 -1
  110. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  111. package/dist/zonos-elements/index.esm.js +1 -1
  112. package/dist/zonos-elements/{p-a4a2ccb6.system.entry.js → p-00100b17.system.entry.js} +1 -1
  113. package/dist/zonos-elements/{p-46bb8fd1.entry.js → p-101c41bf.entry.js} +1 -1
  114. package/dist/zonos-elements/{p-5a2d27cd.system.entry.js → p-1828a4ff.system.entry.js} +1 -1
  115. package/dist/zonos-elements/{p-e8f7fb29.system.entry.js → p-1c72e53f.system.entry.js} +1 -1
  116. package/dist/zonos-elements/{p-6ac72711.js → p-23a84835.js} +1 -1
  117. package/dist/zonos-elements/{p-40c21634.system.js → p-29814fd7.system.js} +1 -1
  118. package/dist/zonos-elements/{p-7ec264d3.system.js → p-2c323311.system.js} +1 -1
  119. package/dist/zonos-elements/{p-b4963e20.system.entry.js → p-3c4eec63.system.entry.js} +1 -1
  120. package/dist/zonos-elements/{p-d5268ba8.system.entry.js → p-47945026.system.entry.js} +1 -1
  121. package/dist/zonos-elements/{p-6bb0b7d2.system.entry.js → p-47c72c50.system.entry.js} +1 -1
  122. package/dist/zonos-elements/p-496e040f.system.entry.js +1 -0
  123. package/dist/zonos-elements/{p-717028a2.system.entry.js → p-4b59ada6.system.entry.js} +1 -1
  124. package/dist/zonos-elements/p-4e77ed65.system.entry.js +1 -0
  125. package/dist/zonos-elements/{p-e07bf9ea.entry.js → p-54f66cd1.entry.js} +1 -1
  126. package/dist/zonos-elements/{p-b5ef10aa.entry.js → p-58d9803d.entry.js} +1 -1
  127. package/dist/zonos-elements/{p-ee05c6c1.system.entry.js → p-59e85369.system.entry.js} +1 -1
  128. package/dist/zonos-elements/{p-52947dab.system.entry.js → p-5a59ed7f.system.entry.js} +1 -1
  129. package/dist/zonos-elements/{p-0f59fba9.entry.js → p-5e56828a.entry.js} +1 -1
  130. package/dist/zonos-elements/{p-9220f63d.entry.js → p-5f7f51bd.entry.js} +1 -1
  131. package/dist/zonos-elements/{p-9a319774.entry.js → p-6013e370.entry.js} +1 -1
  132. package/dist/zonos-elements/{p-a171d025.system.entry.js → p-6b42fa1b.system.entry.js} +1 -1
  133. package/dist/zonos-elements/{p-9420f9db.entry.js → p-6dcef5ce.entry.js} +1 -1
  134. package/dist/zonos-elements/{p-c7301a88.entry.js → p-70bb4a25.entry.js} +1 -1
  135. package/dist/zonos-elements/{p-14067782.system.entry.js → p-7ef2737b.system.entry.js} +1 -1
  136. package/dist/zonos-elements/{p-4d0c5518.system.entry.js → p-8473f99a.system.entry.js} +1 -1
  137. package/dist/zonos-elements/{p-9eadd9a7.system.entry.js → p-89d8c1ad.system.entry.js} +1 -1
  138. package/dist/zonos-elements/p-8b8ef484.entry.js +1 -0
  139. package/dist/zonos-elements/p-8e8defdc.system.js +1 -0
  140. package/dist/zonos-elements/{p-dc368ad5.entry.js → p-8e9dcaa3.entry.js} +1 -1
  141. package/dist/zonos-elements/{p-c8393dae.entry.js → p-9a0401fd.entry.js} +1 -1
  142. package/dist/zonos-elements/{p-04054425.js → p-9dd6b00d.js} +1 -1
  143. package/dist/zonos-elements/p-9e976332.entry.js +1 -0
  144. package/dist/zonos-elements/{p-4f454a91.system.entry.js → p-a3547b34.system.entry.js} +1 -1
  145. package/dist/zonos-elements/{p-9d1f13c2.entry.js → p-a4309beb.entry.js} +1 -1
  146. package/dist/zonos-elements/{p-b0d100bc.js → p-aa5d669b.js} +1 -1
  147. package/dist/zonos-elements/{p-3e6d9006.system.entry.js → p-b1a8b874.system.entry.js} +1 -1
  148. package/dist/zonos-elements/{p-62db3f69.entry.js → p-b57d24f2.entry.js} +1 -1
  149. package/dist/zonos-elements/{p-ec21c7f0.entry.js → p-ba0289f9.entry.js} +1 -1
  150. package/dist/zonos-elements/p-c78dd680.system.js +1 -1
  151. package/dist/zonos-elements/{p-1bc23926.system.js → p-c89859cf.system.js} +1 -1
  152. package/dist/zonos-elements/{p-da3edde8.js → p-c8a3303b.js} +1 -1
  153. package/dist/zonos-elements/{p-412e5260.entry.js → p-cc7a4fca.entry.js} +1 -1
  154. package/dist/zonos-elements/{p-8b01aafb.entry.js → p-cf9a46e8.entry.js} +1 -1
  155. package/dist/zonos-elements/{p-7da895a1.js → p-d413cd13.js} +1 -1
  156. package/dist/zonos-elements/{p-b5c47b6d.system.js → p-e758ec31.system.js} +1 -1
  157. package/dist/zonos-elements/p-e97793ce.system.js +1 -0
  158. package/dist/zonos-elements/{p-706d2bad.entry.js → p-eb3520e7.entry.js} +1 -1
  159. package/dist/zonos-elements/{p-0229282c.system.entry.js → p-ecd6a58a.system.entry.js} +1 -1
  160. package/dist/zonos-elements/p-f05f3e27.js +1 -0
  161. package/dist/zonos-elements/{p-c4bb2949.system.entry.js → p-f3811c4c.system.entry.js} +1 -1
  162. package/dist/zonos-elements/{p-baa03426.system.js → p-fcfde531.system.js} +1 -1
  163. package/dist/zonos-elements/{p-a6f1a790.entry.js → p-ffd76226.entry.js} +1 -1
  164. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  165. package/package.json +2 -1
  166. package/dist/zonos-elements/p-52fb6876.js +0 -1
  167. package/dist/zonos-elements/p-539974db.system.js +0 -1
  168. package/dist/zonos-elements/p-6058a37a.entry.js +0 -1
  169. package/dist/zonos-elements/p-8809964a.system.js +0 -1
  170. package/dist/zonos-elements/p-c024a9b3.entry.js +0 -1
  171. package/dist/zonos-elements/p-ca508c67.system.entry.js +0 -1
  172. package/dist/zonos-elements/p-ef664d5a.system.entry.js +0 -1
@@ -3,13 +3,13 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const zonosStore = require('./zonosStore-56401fdb.js');
7
- const cart = require('./cart-8fac8840.js');
6
+ const zonosStore = require('./zonosStore-67139f0e.js');
7
+ const cart = require('./cart-546d1602.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
9
  const logError = require('./logError-4e2f2020.js');
10
10
  const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
11
- require('./isDarkColor-4eb96a1e.js');
12
- require('./getBorderRadius-4413e191.js');
11
+ require('./isDarkColor-7a056d05.js');
12
+ require('./getBorderRadius-a6a3b35e.js');
13
13
 
14
14
  var root = zonosStore._root;
15
15
 
@@ -472,11 +472,10 @@ const getProductsOnPage = () => {
472
472
  return mergedElements;
473
473
  };
474
474
 
475
- const zonosHelloCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:inline-block}:host .zonos--hello-wrapper{position:relative}:host .zonos--hello-wrapper .zonos--hello-dialog-wrapper-mobile-override{position:fixed;bottom:0;left:0;width:100vw;z-index:1001;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}@media (max-width: 768px){:host .zonos--hello-wrapper{position:fixed;bottom:0;left:0;width:100vw;z-index:1001;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}}:host .zonos--hello-widget{-webkit-transition:all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);transition:all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);padding:6px;border-radius:30px;background:var(--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;cursor:pointer;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;z-index:1000}:host .zonos--hello-widget>.zonos--hello-message{-ms-flex-order:0;order:0;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:30px;border-bottom-left-radius:30px;left:0;-webkit-transform:translateX(calc(-100% + 16px));transform:translateX(calc(-100% + 16px));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 6px;padding-right:16px;border:var(--zonos-elements-border)}:host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left){border-top-left-radius:0;border-bottom-left-radius:0}:host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left)>.zonos--hello-message{border-right:none}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left{border-top-right-radius:0;border-bottom-right-radius:0}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{border-left:0}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:16px;padding-right:6px;border-left:none}:host .zonos--hello-widget.zonos--hello-widget-animate-from-left>.zonos--hello-message{-ms-flex-order:1;order:1;-webkit-transform:translateX(calc(100% - 16px));transform:translateX(calc(100% - 16px));right:0;left:auto;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:30px;border-bottom-right-radius:30px}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper .zonos--hello-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-v3-shadow-medium);z-index:10;justify-self:center}@media (max-width: 768px){:host .zonos--hello-widget .zonos--hello-country-flag-wrapper .zonos--hello-country-flag{border-radius:var(--zonos-elements-radius-4);width:24px}}@media (max-width: 768px){:host .zonos--hello-widget{position:fixed;bottom:32px;right:32px;border-radius:var(--zonos-elements-radius-4);padding:4px;border:1px solid transparent}:host .zonos--hello-widget.zonos--hello-widget-left{left:32px;right:auto}:host .zonos--hello-widget.zonos--hello-widget-top{bottom:auto;top:32px}:host .zonos--hello-widget.zonos--hello-has-restrictions.zonos--hello-show-peek-message>.zonos--hello-message{border:none}:host .zonos--hello-widget>.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-animate-from-left>.zonos--hello-message{-webkit-transform:translateX(0);transform:translateX(0)}:host .zonos--hello-widget.zonos--hello-show-peek-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}:host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left){border-top-left-radius:var(--zonos-elements-radius-4);border-bottom-left-radius:var(--zonos-elements-radius-4)}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left{border-top-right-radius:var(--zonos-elements-radius-4);border-bottom-right-radius:var(--zonos-elements-radius-4)}:host .zonos--hello-widget.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-show-peek-message>.zonos--hello-message{padding:0 var(--zonos-elements-radius-4);padding-right:6px;border:none}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper{border-radius:var(--zonos-elements-radius-4)}}:host .zonos--hello-mobile-override.zonos--hello-widget{position:fixed;bottom:32px;right:32px;border-radius:var(--zonos-elements-radius-4);padding:4px;border:1px solid transparent}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-left{left:32px;right:auto}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-top{bottom:auto;top:32px}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-has-restrictions.zonos--hello-show-peek-message>.zonos--hello-message{border:none}:host .zonos--hello-mobile-override.zonos--hello-widget>.zonos--hello-message{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-radius:30px;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-animate-from-left>.zonos--hello-message{-webkit-transform:translateX(0);transform:translateX(0)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left){border-top-left-radius:var(--zonos-elements-radius-4);border-bottom-left-radius:var(--zonos-elements-radius-4)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left{border-top-right-radius:var(--zonos-elements-radius-4);border-bottom-right-radius:var(--zonos-elements-radius-4)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:8px;padding-right:4px}:host .zonos--hello-mobile-override.zonos--hello-widget.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-country-flag-wrapper{border-radius:var(--zonos-elements-radius-4)}:host .zonos--hello-mobile-override.zonos--hello-widget .zonos--hello-country-flag{border-radius:var(--zonos-elements-radius-4);width:24px}";
475
+ const zonosHelloCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:inline-block}:host .zonos--hello-wrapper{position:relative}:host .zonos--hello-wrapper .zonos--hello-dialog-wrapper-mobile-override{position:fixed;bottom:0;left:0;width:100vw;z-index:1001;height:-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}}:host .zonos--hello-widget{-webkit-transition:all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);transition:all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);padding:6px;border-radius:30px;background:var(--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;cursor:pointer;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;z-index:1000}:host .zonos--hello-widget>.zonos--hello-message{-ms-flex-order:0;order:0;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:30px;border-bottom-left-radius:30px;left:0;-webkit-transform:translateX(calc(-100% + 16px));transform:translateX(calc(-100% + 16px));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 6px;padding-right:16px;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{border-left:0}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:16px;padding-right:6px;border-left:none}:host .zonos--hello-widget.zonos--hello-widget-animate-from-left>.zonos--hello-message{-ms-flex-order:1;order:1;-webkit-transform:translateX(calc(100% - 16px));transform:translateX(calc(100% - 16px));right:0;left:auto;border-top-right-radius:30px;border-bottom-right-radius:30px}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper .zonos--hello-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-v3-shadow-medium);z-index:10;justify-self:center}: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}";
476
476
  const ZonosHelloStyle0 = zonosHelloCss;
477
477
 
478
478
  const PEEK_MESSAGE_CLOSE_DELAY_MS = 3000;
479
- const RESIZE_DEBOUNCE_DELAY_MS = 500;
480
479
  const ZonosHello = class {
481
480
  constructor(hostRef) {
482
481
  index.registerInstance(this, hostRef);
@@ -622,6 +621,9 @@ const ZonosHello = class {
622
621
  this.changeShowDialog = (value) => {
623
622
  this.showDialog = value;
624
623
  };
624
+ /**
625
+ * Determine if the peek message should animate from left or not
626
+ */
625
627
  this.shouldAnimateLeftDesktop = () => {
626
628
  // Get Hello position (relative = desktop, fixed = mobile)
627
629
  const elPosition = this.helloRef && getComputedStyle(this.helloRef).position;
@@ -663,6 +665,7 @@ const ZonosHello = class {
663
665
  this.allFoundProducts = [];
664
666
  this.productsOnPage = [];
665
667
  this.isHelloWidgetRendered = false;
668
+ this.isMobile = false;
666
669
  }
667
670
  /**
668
671
  * Get the country list the hello widget's country select is using
@@ -729,7 +732,7 @@ const ZonosHello = class {
729
732
  this.changeShowDialog(value);
730
733
  }
731
734
  handleResize() {
732
- debounce_1(this.render.bind(this), RESIZE_DEBOUNCE_DELAY_MS);
735
+ this.isMobile = window.innerWidth <= 768;
733
736
  }
734
737
  /**
735
738
  * This method will handle the Hello widget initialized state, should only trigger once
@@ -750,6 +753,44 @@ const ZonosHello = class {
750
753
  }));
751
754
  }
752
755
  }
756
+ getHelloLocation() {
757
+ const mobileLocation = this.mobileLocationOverride || zonosStore.zonosStore.helloSettings.mobileLocation;
758
+ const desktopLocation = zonosStore.zonosStore.helloSettings.desktopLocation;
759
+ const isMobileWindow = this.isMobile;
760
+ switch (true) {
761
+ // Mobile
762
+ case isMobileWindow: {
763
+ const isOnLeft = this.animateFromLeftOverride || (mobileLocation === null || mobileLocation === void 0 ? void 0 : mobileLocation.includes('LEFT'));
764
+ const isOnTop = mobileLocation === null || mobileLocation === void 0 ? void 0 : mobileLocation.includes('TOP');
765
+ return {
766
+ isMobileWindow,
767
+ isOnLeft,
768
+ isOnTop,
769
+ shouldFloat: !!mobileLocation,
770
+ };
771
+ }
772
+ // Desktop
773
+ default:
774
+ case !isMobileWindow: {
775
+ /**
776
+ * Only float on desktop if there is no anchor specified and desktopLocation is set
777
+ * This is to keep the same behavior as it is now (display at anchor if set on desktop, float on mobile).
778
+ **/
779
+ const shouldFloat = !zonosStore.zonosStore.helloSettings.anchorElementSelector && !!desktopLocation;
780
+ const isOnLeft = this.animateFromLeftOverride ||
781
+ (desktopLocation === null || desktopLocation === void 0 ? void 0 : desktopLocation.includes('LEFT')) ||
782
+ this.shouldAnimateLeftDesktop();
783
+ const isOnTop = desktopLocation === null || desktopLocation === void 0 ? void 0 : desktopLocation.includes('TOP');
784
+ return {
785
+ isMobileWindow,
786
+ isOnLeft,
787
+ isOnTop,
788
+ // Only float if
789
+ shouldFloat,
790
+ };
791
+ }
792
+ }
793
+ }
753
794
  handleAppearanceSettingsOverrideChange() {
754
795
  var _a;
755
796
  if ((_a = this.appearanceSettingsOverride) === null || _a === void 0 ? void 0 : _a.theme) {
@@ -757,6 +798,9 @@ const ZonosHello = class {
757
798
  this.appearanceSettingsOverride.theme = zonosStore.getZonosStoreTheme(this.appearanceSettingsOverride.theme);
758
799
  }
759
800
  }
801
+ componentDidLoad() {
802
+ this.isMobile = window.innerWidth <= 768;
803
+ }
760
804
  render() {
761
805
  var _a, _b;
762
806
  const isExcludedUrl = (_a = zonosStore.zonosStore.helloSettings.excludedUrlPatterns) === null || _a === void 0 ? void 0 : _a.some(pattern => new RegExp(pattern).test(window.location.href));
@@ -765,13 +809,7 @@ const ZonosHello = class {
765
809
  return null;
766
810
  }
767
811
  const { selectedCountryCode, targetCurrency } = cart.localizationStore;
768
- const mobileLocation = this.mobileLocationOverride || zonosStore.zonosStore.helloSettings.mobileLocation;
769
- const isMobileWindow = window.innerWidth < 768;
770
- const isOnLeft = this.animateFromLeftOverride ||
771
- (isMobileWindow && mobileLocation.includes('LEFT')) ||
772
- this.shouldAnimateLeftDesktop() ||
773
- false;
774
- const isOnTop = mobileLocation.includes('TOP');
812
+ const { isOnLeft, isOnTop, shouldFloat } = this.getHelloLocation();
775
813
  const appearanceSettings = zonosStore.mergeConfig(zonosStore.zonosStore.appearance, this.appearanceSettingsOverride);
776
814
  const { theme } = appearanceSettings;
777
815
  const restrictedItemsOnPage = (_b = this.allRestrictedItems) === null || _b === void 0 ? void 0 : _b.filter(product => this.productsOnPage.some(restriction => restriction.description === product.itemDescription));
@@ -786,7 +824,10 @@ const ZonosHello = class {
786
824
  currencyCode: targetCurrency,
787
825
  });
788
826
  }
789
- return (index.h(index.Host, { class: "zonos--hello zonos--elements", "data-theme": theme }, showHello && (index.h("div", { class: "zonos--hello-wrapper" }, index.h("button", { class: classes.classes([
827
+ return (index.h(index.Host, { class: "zonos--hello zonos--elements", "data-theme": theme }, showHello && (index.h("div", { class: classes.classes([
828
+ 'zonos--hello-wrapper',
829
+ shouldFloat && 'zonos--hello-widget-float',
830
+ ]) }, index.h("button", { class: classes.classes([
790
831
  'zonos--hello-widget',
791
832
  this.showPeekMessage && 'zonos--hello-show-peek-message',
792
833
  this.mobileLocationOverride && 'zonos--hello-mobile-override',
@@ -795,12 +836,14 @@ const ZonosHello = class {
795
836
  isOnTop && 'zonos--hello-widget-top',
796
837
  !!this.allRestrictedItems.length &&
797
838
  'zonos--hello-has-restrictions',
839
+ shouldFloat && 'zonos--hello-widget-float',
798
840
  ]), onClick: () => {
799
841
  void this.changeShowDialog(!this.showDialog);
800
842
  }, onMouseEnter: () => this.enableShowPeekMessage(), onMouseLeave: () => (this.showPeekMessage = false), ref: el => el && (this.helloRef = el) }, index.h("zonos-text", { class: "zonos--hello-message" }, this.peekMessage), selectedCountryCode && (index.h("div", { class: "zonos--hello-country-flag-wrapper" }, index.h("zonos-country-flag", { class: "zonos--hello-country-flag", countryCode: selectedCountryCode })))), index.h("div", { class: classes.classes([
801
843
  'zonos--hello-dialog-wrapper',
802
844
  this.mobileLocationOverride &&
803
845
  'zonos--hello-dialog-wrapper-mobile-override',
846
+ shouldFloat && 'zonos--hello-widget-float',
804
847
  ]), style: { height: this.showDialog ? 'fit-content' : '0px' } }, index.h("zonos-hello-dialog", { animateFromLeftOverride: this.animateFromLeftOverride, appearanceSettings: appearanceSettings, isOpen: this.showDialog, mobileLocationOverride: this.mobileLocationOverride, restrictedItems: restrictedItemsOnPage, setIsOpen: this.changeShowDialog }))))));
805
848
  }
806
849
  static get watchers() { return {
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const zonosStore = require('./zonosStore-56401fdb.js');
6
+ const zonosStore = require('./zonosStore-67139f0e.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const getBorderRadius = require('./getBorderRadius-4413e191.js');
8
+ const getBorderRadius = require('./getBorderRadius-a6a3b35e.js');
9
9
 
10
10
  const zonosInputCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{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(--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(--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(--border-radius)}: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}";
11
11
  const ZonosInputStyle0 = zonosInputCss;
@@ -3,12 +3,12 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-8fac8840.js');
7
- const zonosStore = require('./zonosStore-56401fdb.js');
6
+ const cart = require('./cart-546d1602.js');
7
+ const zonosStore = require('./zonosStore-67139f0e.js');
8
8
  const ILanguage = require('./ILanguage-98b04442.js');
9
9
  require('./logError-4e2f2020.js');
10
- require('./isDarkColor-4eb96a1e.js');
11
- require('./getBorderRadius-4413e191.js');
10
+ require('./isDarkColor-7a056d05.js');
11
+ require('./getBorderRadius-a6a3b35e.js');
12
12
 
13
13
  const GreenCheckDuotoneIcon = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
14
14
  <path d="M7.99996 2.6665C5.05444 2.6665 2.66663 5.05432 2.66663 7.99984C2.66663 10.9454 5.05444 13.3332 7.99996 13.3332C10.9455 13.3332 13.3333 10.9454 13.3333 7.99984C13.3333 5.05432 10.9455 2.6665 7.99996 2.6665Z" fill="#AFF8C3"/>
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const zonosStore = require('./zonosStore-56401fdb.js');
6
+ const zonosStore = require('./zonosStore-67139f0e.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
 
9
9
  const zonosLogoCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host img{-webkit-filter:var(--filter-color);filter:var(--filter-color);width:var(--width)}";
@@ -3,13 +3,13 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const zonosStore = require('./zonosStore-56401fdb.js');
6
+ const zonosStore = require('./zonosStore-67139f0e.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const cart = require('./cart-8fac8840.js');
8
+ const cart = require('./cart-546d1602.js');
9
9
  const logError = require('./logError-4e2f2020.js');
10
- const paypal = require('./paypal-8d507ea7.js');
11
- require('./isDarkColor-4eb96a1e.js');
12
- require('./getBorderRadius-4413e191.js');
10
+ const paypal = require('./paypal-83f49f9a.js');
11
+ require('./isDarkColor-7a056d05.js');
12
+ require('./getBorderRadius-a6a3b35e.js');
13
13
 
14
14
  const zonosNotificationCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host .zonos--notification-items{position:fixed;z-index:9999999999;bottom:24px;gap:8px;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}:host .zonos--notification-item{cursor:pointer;-webkit-transition:all 0.3s ease;transition:all 0.3s ease;padding:8px;border-radius:var(--border-radius, var(--zonos-elements-radius-6));opacity:0;-ms-flex-negative:0.0001;flex-shrink:0.0001;-webkit-transform:translateY(100%);transform:translateY(100%)}:host .zonos--notification-item+:host .zonos--notification-item{margin-top:8px}:host .zonos--notification-item.show{opacity:1;-webkit-transform:translateY(0);transform:translateY(0);-ms-flex-positive:1000;flex-grow:1000}:host .zonos--notification-item.success{background-color:var(--zonos-elements-green-700)}:host .zonos--notification-item.error{background-color:var(--zonos-elements-red-700)}:host .zonos--notification-item.warning{background-color:var(--zonos-elements-orange-700)}";
15
15
  const ZonosNotificationStyle0 = zonosNotificationCss;
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const zonosStore = require('./zonosStore-56401fdb.js');
6
+ const zonosStore = require('./zonosStore-67139f0e.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const getBorderRadius = require('./getBorderRadius-4413e191.js');
8
+ const getBorderRadius = require('./getBorderRadius-a6a3b35e.js');
9
9
  const isColorVariable = require('./isColorVariable-6f5a9608.js');
10
10
 
11
11
  const zonosShippingRichRadioCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host input{margin:0;accent-color:var(--selected-border-color, var(--zonos-elements-blue-600))}:host .zonos--shipping-rich-radio-item{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;padding:16px;-ms-flex-align:center;align-items:center;gap:16px;cursor:pointer;border:1px solid var(--zonos-elements-gray-200)}:host .zonos--shipping-rich-radio-item:first-child{border-top-left-radius:var(--border-radius, var(--zonos-elements-radius-10));border-top-right-radius:var(--border-radius, var(--zonos-elements-radius-10))}:host .zonos--shipping-rich-radio-item:last-child{border-bottom-right-radius:var(--border-radius, var(--zonos-elements-radius-10));border-bottom-left-radius:var(--border-radius, var(--zonos-elements-radius-10))}:host .zonos--shipping-rich-radio-item:not(:last-child){border-bottom:none}:host .zonos--shipping-rich-radio-item.selected{outline:1px solid var(--selected-border-color, var(--zonos-elements-blue-600));outline-offset:-1px}:host .zonos--shipping-info{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex:1;flex:1}:host .zonos--shipping-detail{-ms-flex:1;flex:1}:host .zonos--sub-detail{display:-ms-inline-flexbox;display:inline-flex;gap:8px;-ms-flex-wrap:wrap;flex-wrap:wrap}";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const zonosStore = require('./zonosStore-56401fdb.js');
6
+ const zonosStore = require('./zonosStore-67139f0e.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
  const isColorVariable = require('./isColorVariable-6f5a9608.js');
9
9
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const zonosStore = require('./zonosStore-56401fdb.js');
6
+ const zonosStore = require('./zonosStore-67139f0e.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
 
9
9
  const zonosVStackCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .vstack{display:grid;grid-auto-columns:minmax(0, 1fr);grid-row-gap:var(--spacing, 24px);grid-auto-flow:row}";
@@ -2814,6 +2814,10 @@ const { dispose: zonosStoreDispose, reset, state: zonosStore, } = createStore(()
2814
2814
  countryOverrideBehavior: 'URL_PARAM',
2815
2815
  currencyBehavior: 'ENABLED',
2816
2816
  currencyElementSelector: '.money',
2817
+ /**
2818
+ * Default to bottom right so hello would float if anchorElementSelector is not set. Otherwise, this will be ignored
2819
+ */
2820
+ desktopLocation: 'BOTTOM_RIGHT',
2817
2821
  excludedUrlPatterns: [],
2818
2822
  homepageUrlPattern: '',
2819
2823
  mobileLocation: 'BOTTOM_RIGHT',
@@ -2828,6 +2832,7 @@ const { dispose: zonosStoreDispose, reset, state: zonosStore, } = createStore(()
2828
2832
  productTitleElementSelector: '',
2829
2833
  restrictionBehavior: 'DISABLED',
2830
2834
  showForCountries: 'ONLY_SHIPPABLE',
2835
+ visibilityStatus: 'ENABLED',
2831
2836
  },
2832
2837
  loadedConfig: false,
2833
2838
  organizationId: '',
@@ -46,7 +46,7 @@
46
46
  height: fit-content;
47
47
  }
48
48
  @media (max-width: 768px) {
49
- :host .zonos--hello-wrapper {
49
+ :host .zonos--hello-wrapper .zonos--hello-dialog-wrapper {
50
50
  position: fixed;
51
51
  bottom: 0;
52
52
  left: 0;
@@ -112,17 +112,9 @@
112
112
  padding-right: 16px;
113
113
  border: var(--zonos-elements-border);
114
114
  }
115
- :host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left) {
116
- border-top-left-radius: 0;
117
- border-bottom-left-radius: 0;
118
- }
119
115
  :host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left) > .zonos--hello-message {
120
116
  border-right: none;
121
117
  }
122
- :host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left {
123
- border-top-right-radius: 0;
124
- border-bottom-right-radius: 0;
125
- }
126
118
  :host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left > .zonos--hello-message {
127
119
  border-left: 0;
128
120
  }
@@ -136,8 +128,6 @@
136
128
  transform: translateX(calc(100% - 16px));
137
129
  right: 0;
138
130
  left: auto;
139
- border-top-left-radius: 0;
140
- border-bottom-left-radius: 0;
141
131
  border-top-right-radius: 30px;
142
132
  border-bottom-right-radius: 30px;
143
133
  }
@@ -155,92 +145,23 @@
155
145
  z-index: 10;
156
146
  justify-self: center;
157
147
  }
158
- @media (max-width: 768px) {
159
- :host .zonos--hello-widget .zonos--hello-country-flag-wrapper .zonos--hello-country-flag {
160
- border-radius: var(--zonos-elements-radius-4);
161
- width: 24px;
162
- }
163
- }
164
- @media (max-width: 768px) {
165
- :host .zonos--hello-widget {
166
- position: fixed;
167
- bottom: 32px;
168
- right: 32px;
169
- border-radius: var(--zonos-elements-radius-4);
170
- padding: 4px;
171
- border: 1px solid transparent;
172
- }
173
- :host .zonos--hello-widget.zonos--hello-widget-left {
174
- left: 32px;
175
- right: auto;
176
- }
177
- :host .zonos--hello-widget.zonos--hello-widget-top {
178
- bottom: auto;
179
- top: 32px;
180
- }
181
- :host .zonos--hello-widget.zonos--hello-has-restrictions.zonos--hello-show-peek-message > .zonos--hello-message {
182
- border: none;
183
- }
184
- :host .zonos--hello-widget > .zonos--hello-message {
185
- position: relative;
186
- display: flex;
187
- align-items: center;
188
- border-radius: 30px;
189
- height: fit-content;
190
- top: 0;
191
- bottom: 0;
192
- left: 0;
193
- transform: translateX(0);
194
- width: fit-content;
195
- border: none;
196
- }
197
- :host .zonos--hello-widget.zonos--hello-widget-animate-from-left > .zonos--hello-message {
198
- transform: translateX(0);
199
- }
200
- :host .zonos--hello-widget.zonos--hello-show-peek-message {
201
- width: fit-content;
202
- }
203
- :host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left) {
204
- border-top-left-radius: var(--zonos-elements-radius-4);
205
- border-bottom-left-radius: var(--zonos-elements-radius-4);
206
- }
207
- :host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left {
208
- border-top-right-radius: var(--zonos-elements-radius-4);
209
- border-bottom-right-radius: var(--zonos-elements-radius-4);
210
- }
211
- :host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left > .zonos--hello-message {
212
- padding-left: 8px;
213
- padding-right: 4px;
214
- }
215
- :host .zonos--hello-widget.zonos--hello-show-peek-message > .zonos--hello-message {
216
- padding: 0 var(--zonos-elements-radius-4);
217
- padding-right: 6px;
218
- border: none;
219
- }
220
- :host .zonos--hello-widget .zonos--hello-country-flag-wrapper {
221
- border-radius: var(--zonos-elements-radius-4);
222
- }
223
- }
224
- :host .zonos--hello-mobile-override.zonos--hello-widget {
148
+ :host .zonos--hello-widget.zonos--hello-widget-float {
225
149
  position: fixed;
226
- bottom: 32px;
150
+ bottom: 72px;
227
151
  right: 32px;
228
- border-radius: var(--zonos-elements-radius-4);
229
- padding: 4px;
230
- border: 1px solid transparent;
231
152
  }
232
- :host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-left {
153
+ :host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-left {
233
154
  left: 32px;
234
155
  right: auto;
235
156
  }
236
- :host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-top {
157
+ :host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-top {
237
158
  bottom: auto;
238
159
  top: 32px;
239
160
  }
240
- :host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-has-restrictions.zonos--hello-show-peek-message > .zonos--hello-message {
161
+ :host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-has-restrictions.zonos--hello-show-peek-message > .zonos--hello-message {
241
162
  border: none;
242
163
  }
243
- :host .zonos--hello-mobile-override.zonos--hello-widget > .zonos--hello-message {
164
+ :host .zonos--hello-widget.zonos--hello-widget-float > .zonos--hello-message {
244
165
  position: relative;
245
166
  display: flex;
246
167
  align-items: center;
@@ -253,33 +174,62 @@
253
174
  width: fit-content;
254
175
  border: none;
255
176
  }
256
- :host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-animate-from-left > .zonos--hello-message {
177
+ :host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-animate-from-left > .zonos--hello-message {
257
178
  transform: translateX(0);
258
179
  }
259
- :host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message {
180
+ :host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-show-peek-message {
260
181
  width: fit-content;
261
182
  }
262
- :host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left) {
263
- border-top-left-radius: var(--zonos-elements-radius-4);
264
- border-bottom-left-radius: var(--zonos-elements-radius-4);
265
- }
266
- :host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left {
267
- border-top-right-radius: var(--zonos-elements-radius-4);
268
- border-bottom-right-radius: var(--zonos-elements-radius-4);
269
- }
270
- :host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left > .zonos--hello-message {
183
+ :host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left > .zonos--hello-message {
271
184
  padding-left: 8px;
272
185
  padding-right: 4px;
273
186
  }
274
- :host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message > .zonos--hello-message {
187
+ :host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-show-peek-message > .zonos--hello-message {
275
188
  padding: 0 var(--zonos-elements-radius-4);
276
189
  padding-right: 6px;
277
190
  border: none;
278
191
  }
279
- :host .zonos--hello-mobile-override.zonos--hello-widget .zonos--hello-country-flag-wrapper {
280
- border-radius: var(--zonos-elements-radius-4);
192
+ :host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float {
193
+ position: fixed;
194
+ bottom: 72px;
195
+ right: 32px;
281
196
  }
282
- :host .zonos--hello-mobile-override.zonos--hello-widget .zonos--hello-country-flag {
283
- border-radius: var(--zonos-elements-radius-4);
284
- width: 24px;
197
+ :host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-left {
198
+ left: 32px;
199
+ right: auto;
200
+ }
201
+ :host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-top {
202
+ bottom: auto;
203
+ top: 32px;
204
+ }
205
+ :host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-has-restrictions.zonos--hello-show-peek-message > .zonos--hello-message {
206
+ border: none;
207
+ }
208
+ :host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float > .zonos--hello-message {
209
+ position: relative;
210
+ display: flex;
211
+ align-items: center;
212
+ border-radius: 30px;
213
+ height: fit-content;
214
+ top: 0;
215
+ bottom: 0;
216
+ left: 0;
217
+ transform: translateX(0);
218
+ width: fit-content;
219
+ border: none;
220
+ }
221
+ :host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-animate-from-left > .zonos--hello-message {
222
+ transform: translateX(0);
223
+ }
224
+ :host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-show-peek-message {
225
+ width: fit-content;
226
+ }
227
+ :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 {
228
+ padding-left: 8px;
229
+ padding-right: 4px;
230
+ }
231
+ :host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-show-peek-message > .zonos--hello-message {
232
+ padding: 0 var(--zonos-elements-radius-4);
233
+ padding-right: 6px;
234
+ border: none;
285
235
  }