@zonos/elements 1.3.39 → 1.3.40

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 (283) hide show
  1. package/dist/cjs/{cart-c7212410.js → cart-775440b7.js} +240 -7
  2. package/dist/cjs/{getBorderRadius-074b46ef.js → getBorderRadius-9ae7890c.js} +1 -1
  3. package/dist/cjs/{index-b071017b.js → index-ef8b2c76.js} +234 -167
  4. package/dist/cjs/index.cjs.js +10 -4
  5. package/dist/cjs/{isDarkColor-371a3b1a.js → isDarkColor-5f56770b.js} +1 -1
  6. package/dist/cjs/loader.cjs.js +2 -2
  7. package/dist/cjs/paypal-25c84e33.js +461 -0
  8. package/dist/cjs/{submitGtag-7a679d92.js → sendErrorLog-7818b288.js} +2 -19
  9. package/dist/cjs/zonos-address_8.cjs.entry.js +8 -8
  10. package/dist/cjs/zonos-badge_2.cjs.entry.js +2 -2
  11. package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
  12. package/dist/cjs/zonos-button_3.cjs.entry.js +4 -4
  13. package/dist/cjs/zonos-card.cjs.entry.js +3 -3
  14. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +73 -35
  15. package/dist/cjs/zonos-checkout.cjs.entry.js +43 -70
  16. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  17. package/dist/cjs/zonos-controller.cjs.entry.js +15 -15
  18. package/dist/cjs/zonos-country-flag.cjs.entry.js +5 -5
  19. package/dist/cjs/zonos-country-select_3.cjs.entry.js +5 -5
  20. package/dist/cjs/zonos-elements.cjs.js +3 -3
  21. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +5 -5
  22. package/dist/cjs/zonos-hello.cjs.entry.js +5 -5
  23. package/dist/cjs/zonos-input.cjs.entry.js +3 -3
  24. package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -5
  25. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  26. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  27. package/dist/cjs/{zonos-notification_2.cjs.entry.js → zonos-notification_3.cjs.entry.js} +59 -7
  28. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
  29. package/dist/cjs/zonos-text.cjs.entry.js +2 -2
  30. package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
  31. package/dist/cjs/{zonosStore-4c6c85da.js → zonosStore-b6c72408.js} +5 -1
  32. package/dist/collection/__tests__/build-utils/urlCheckOne.js +3 -1
  33. package/dist/collection/collection-manifest.json +2 -1
  34. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.css +1 -0
  35. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +39 -8
  36. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.css +1 -0
  37. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +7 -1
  38. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +37 -22
  39. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +3 -0
  40. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +30 -60
  41. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +1 -0
  42. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +1 -0
  43. package/dist/collection/components/main/zonos-controller.js +22 -8
  44. package/dist/collection/components/paypal/zonos-paypal-payment.css +37 -0
  45. package/dist/collection/components/paypal/zonos-paypal-payment.js +92 -0
  46. package/dist/collection/components/store/checkout/cart.js +26 -1
  47. package/dist/collection/components/store/checkout/paypal.js +219 -0
  48. package/dist/collection/components/store/checkout/stripe.js +16 -4
  49. package/dist/collection/components/store/translationStore/strings.arabic.js +9 -0
  50. package/dist/collection/components/store/translationStore/strings.base.js +9 -0
  51. package/dist/collection/components/store/translationStore/strings.chinese.js +9 -0
  52. package/dist/collection/components/store/translationStore/strings.danish.js +9 -0
  53. package/dist/collection/components/store/translationStore/strings.dutch.js +9 -0
  54. package/dist/collection/components/store/translationStore/strings.french.js +9 -0
  55. package/dist/collection/components/store/translationStore/strings.german.js +9 -0
  56. package/dist/collection/components/store/translationStore/strings.hebrew.js +9 -0
  57. package/dist/collection/components/store/translationStore/strings.indonesian.js +9 -0
  58. package/dist/collection/components/store/translationStore/strings.italian.js +9 -0
  59. package/dist/collection/components/store/translationStore/strings.japanese.js +9 -0
  60. package/dist/collection/components/store/translationStore/strings.korean.js +9 -0
  61. package/dist/collection/components/store/translationStore/strings.norwegian.js +9 -0
  62. package/dist/collection/components/store/translationStore/strings.polish.js +9 -0
  63. package/dist/collection/components/store/translationStore/strings.portuguese.js +9 -0
  64. package/dist/collection/components/store/translationStore/strings.russian.js +9 -0
  65. package/dist/collection/components/store/translationStore/strings.spanish.js +9 -0
  66. package/dist/collection/components/store/translationStore/strings.swedish.js +9 -0
  67. package/dist/collection/components/store/translationStore/strings.turkish.js +9 -0
  68. package/dist/collection/components/store/translationStore/strings.vietnamese.js +9 -0
  69. package/dist/collection/components/store/zonosStore.js +4 -0
  70. package/dist/collection/components/stripe/zonos-address/zonos-address.js +2 -2
  71. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
  72. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +2 -3
  73. package/dist/collection/components/utils/api/getZonosSettings.js +3 -3
  74. package/dist/collection/components/utils/api/paypalCaptureOrder.js +8 -0
  75. package/dist/collection/components/utils/api/paypalCreateOrder.js +8 -0
  76. package/dist/collection/components/utils/getContrastColor.js +6 -2
  77. package/dist/collection/components/utils/handleFetch.js +6 -1
  78. package/dist/collection/components/utils/isContrastColor.js +7 -0
  79. package/dist/collection/environment.js +4 -5
  80. package/dist/collection/scripts/_getZonosQaUrl.js +4 -0
  81. package/dist/collection/scripts/_zonosBase.js +2 -0
  82. package/dist/collection/styles/stripe/addressRuleStyle.js +6 -0
  83. package/dist/collection/types/generated/graphql.customer.types.js +35 -0
  84. package/dist/esm/{cart-eb75b113.js → cart-e9cd8286.js} +236 -8
  85. package/dist/esm/{getBorderRadius-947c24de.js → getBorderRadius-3c75c4c1.js} +1 -1
  86. package/dist/esm/{index-3b46f3c3.js → index-5a37ccde.js} +234 -167
  87. package/dist/esm/index.js +10 -4
  88. package/dist/esm/{isDarkColor-f8324c10.js → isDarkColor-3eb31a6d.js} +1 -1
  89. package/dist/esm/loader.js +3 -3
  90. package/dist/esm/paypal-da2b3db1.js +453 -0
  91. package/dist/esm/{submitGtag-0bc0baa0.js → sendErrorLog-2fcf78a2.js} +3 -19
  92. package/dist/esm/zonos-address_8.entry.js +8 -8
  93. package/dist/esm/zonos-badge_2.entry.js +2 -2
  94. package/dist/esm/zonos-banner.entry.js +2 -2
  95. package/dist/esm/zonos-button_3.entry.js +4 -4
  96. package/dist/esm/zonos-card.entry.js +3 -3
  97. package/dist/esm/zonos-cart-items_12.entry.js +60 -22
  98. package/dist/esm/zonos-checkout.entry.js +34 -61
  99. package/dist/esm/zonos-component.entry.js +1 -1
  100. package/dist/esm/zonos-controller.entry.js +15 -15
  101. package/dist/esm/zonos-country-flag.entry.js +5 -5
  102. package/dist/esm/zonos-country-select_3.entry.js +5 -5
  103. package/dist/esm/zonos-elements.js +4 -4
  104. package/dist/esm/zonos-hello-dialog.entry.js +5 -5
  105. package/dist/esm/zonos-hello.entry.js +5 -5
  106. package/dist/esm/zonos-input.entry.js +3 -3
  107. package/dist/esm/zonos-language-select_2.entry.js +5 -5
  108. package/dist/esm/zonos-link.entry.js +1 -1
  109. package/dist/esm/zonos-logo.entry.js +2 -2
  110. package/dist/esm/{zonos-notification_2.entry.js → zonos-notification_3.entry.js} +60 -9
  111. package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
  112. package/dist/esm/zonos-text.entry.js +2 -2
  113. package/dist/esm/zonos-v-stack.entry.js +2 -2
  114. package/dist/esm/{zonosStore-ba9e541e.js → zonosStore-425abc1b.js} +5 -1
  115. package/dist/esm-es5/cart-e9cd8286.js +1 -0
  116. package/dist/esm-es5/{getBorderRadius-947c24de.js → getBorderRadius-3c75c4c1.js} +1 -1
  117. package/dist/esm-es5/index-5a37ccde.js +2 -0
  118. package/dist/esm-es5/index.js +1 -1
  119. package/dist/esm-es5/{isDarkColor-f8324c10.js → isDarkColor-3eb31a6d.js} +1 -1
  120. package/dist/esm-es5/loader.js +1 -1
  121. package/dist/esm-es5/paypal-da2b3db1.js +17 -0
  122. package/dist/esm-es5/sendErrorLog-2fcf78a2.js +1 -0
  123. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  124. package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
  125. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  126. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  127. package/dist/esm-es5/zonos-card.entry.js +1 -1
  128. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  129. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  130. package/dist/esm-es5/zonos-component.entry.js +1 -1
  131. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  132. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  133. package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
  134. package/dist/esm-es5/zonos-elements.js +1 -1
  135. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  136. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  137. package/dist/esm-es5/zonos-input.entry.js +1 -1
  138. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  139. package/dist/esm-es5/zonos-link.entry.js +1 -1
  140. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  141. package/dist/esm-es5/zonos-notification_3.entry.js +1 -0
  142. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  143. package/dist/esm-es5/zonos-text.entry.js +1 -1
  144. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  145. package/dist/esm-es5/{zonosStore-ba9e541e.js → zonosStore-425abc1b.js} +1 -1
  146. package/dist/scripts/index.d.ts +91 -6
  147. package/dist/scripts/index.js +1 -1
  148. package/dist/scripts/loadZonos.js +1 -1
  149. package/dist/scripts/zonos.js +1 -1
  150. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +2 -1
  151. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.d.ts +8 -4
  152. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +1 -20
  153. package/dist/types/components/main/zonos-controller.d.ts +6 -0
  154. package/dist/types/components/paypal/zonos-paypal-payment.d.ts +17 -0
  155. package/dist/types/components/store/checkout/cart.d.ts +19 -1
  156. package/dist/types/components/store/checkout/paypal.d.ts +28 -0
  157. package/dist/types/components/store/checkout/stripe.d.ts +10 -1
  158. package/dist/types/components/store/translationStore/strings.arabic.d.ts +9 -0
  159. package/dist/types/components/store/translationStore/strings.base.d.ts +9 -0
  160. package/dist/types/components/store/translationStore/strings.chinese.d.ts +9 -0
  161. package/dist/types/components/store/translationStore/strings.danish.d.ts +9 -0
  162. package/dist/types/components/store/translationStore/strings.dutch.d.ts +9 -0
  163. package/dist/types/components/store/translationStore/strings.french.d.ts +9 -0
  164. package/dist/types/components/store/translationStore/strings.german.d.ts +9 -0
  165. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +9 -0
  166. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +9 -0
  167. package/dist/types/components/store/translationStore/strings.italian.d.ts +9 -0
  168. package/dist/types/components/store/translationStore/strings.japanese.d.ts +9 -0
  169. package/dist/types/components/store/translationStore/strings.korean.d.ts +9 -0
  170. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +9 -0
  171. package/dist/types/components/store/translationStore/strings.polish.d.ts +9 -0
  172. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +9 -0
  173. package/dist/types/components/store/translationStore/strings.russian.d.ts +9 -0
  174. package/dist/types/components/store/translationStore/strings.spanish.d.ts +9 -0
  175. package/dist/types/components/store/translationStore/strings.swedish.d.ts +9 -0
  176. package/dist/types/components/store/translationStore/strings.turkish.d.ts +9 -0
  177. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +9 -0
  178. package/dist/types/components/store/translationStore.d.ts +1 -1
  179. package/dist/types/components/store/zonosStore.d.ts +4 -0
  180. package/dist/types/components/utils/api/getZonosSettings.d.ts +2 -0
  181. package/dist/types/components/utils/api/paypalCaptureOrder.d.ts +10 -0
  182. package/dist/types/components/utils/api/paypalCreateOrder.d.ts +9 -0
  183. package/dist/types/components/utils/handleFetch.d.ts +4 -0
  184. package/dist/types/components/utils/isContrastColor.d.ts +4 -0
  185. package/dist/types/components.d.ts +50 -6
  186. package/dist/types/scripts/_zonosBase.d.ts +9 -1
  187. package/dist/types/stencil-public-runtime.d.ts +3 -10
  188. package/dist/types/types/checkout/CheckoutConfig.d.ts +14 -1
  189. package/dist/types/types/generated/graphql.customer.types.d.ts +71 -11
  190. package/dist/types/types/generated/graphql.customer.types.ts +103 -11
  191. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  192. package/dist/zonos-elements/index.esm.js +1 -1
  193. package/dist/zonos-elements/{p-ed333de6.system.entry.js → p-01bd2187.system.entry.js} +1 -1
  194. package/dist/zonos-elements/{p-f06bb776.system.entry.js → p-14b53e8f.system.entry.js} +1 -1
  195. package/dist/zonos-elements/p-15ecad81.entry.js +1 -0
  196. package/dist/zonos-elements/p-1b499bcc.system.js +1 -0
  197. package/dist/zonos-elements/{p-d2992457.system.entry.js → p-1daa3b1e.system.entry.js} +1 -1
  198. package/dist/zonos-elements/{p-085548f2.entry.js → p-1debb7b2.entry.js} +1 -1
  199. package/dist/zonos-elements/{p-9de374a7.system.entry.js → p-2bfb5e4b.system.entry.js} +1 -1
  200. package/dist/zonos-elements/{p-01304a58.system.entry.js → p-2c03ac78.system.entry.js} +1 -1
  201. package/dist/zonos-elements/p-3447ef24.system.js +17 -0
  202. package/dist/zonos-elements/{p-699a5376.entry.js → p-3496183d.entry.js} +1 -1
  203. package/dist/zonos-elements/{p-59f37de3.entry.js → p-36df9785.entry.js} +1 -1
  204. package/dist/zonos-elements/p-3996d025.system.js +1 -0
  205. package/dist/zonos-elements/p-3b6a7200.entry.js +1 -0
  206. package/dist/zonos-elements/p-3d98f422.system.entry.js +1 -0
  207. package/dist/zonos-elements/{p-31b3d26b.js → p-3da1bc42.js} +1 -1
  208. package/dist/zonos-elements/{p-a21ec316.system.entry.js → p-445fb353.system.entry.js} +1 -1
  209. package/dist/zonos-elements/{p-3541e6dd.entry.js → p-54101ed6.entry.js} +1 -1
  210. package/dist/zonos-elements/p-54971a77.system.js +1 -0
  211. package/dist/zonos-elements/{p-c0fcc0fa.system.entry.js → p-5a5d1a12.system.entry.js} +1 -1
  212. package/dist/zonos-elements/{p-c21802e9.entry.js → p-5e55dcbc.entry.js} +1 -1
  213. package/dist/zonos-elements/{p-71882ac9.system.entry.js → p-5f68f356.system.entry.js} +1 -1
  214. package/dist/zonos-elements/{p-73ba4398.system.entry.js → p-61842b4f.system.entry.js} +1 -1
  215. package/dist/zonos-elements/{p-3523c3b4.entry.js → p-657be9e9.entry.js} +1 -1
  216. package/dist/zonos-elements/p-6897be29.entry.js +1 -0
  217. package/dist/zonos-elements/{p-3f5e2e5c.system.entry.js → p-6f39051c.system.entry.js} +1 -1
  218. package/dist/zonos-elements/{p-966ab4e7.system.entry.js → p-70b024ad.system.entry.js} +1 -1
  219. package/dist/zonos-elements/{p-22882fd6.entry.js → p-71037fe5.entry.js} +1 -1
  220. package/dist/zonos-elements/p-7dd54a63.entry.js +1 -0
  221. package/dist/zonos-elements/{p-e3c014ae.entry.js → p-7f96d3b4.entry.js} +1 -1
  222. package/dist/zonos-elements/p-800db524.system.js +1 -0
  223. package/dist/zonos-elements/{p-9a1c0d02.js → p-890f5788.js} +1 -1
  224. package/dist/zonos-elements/{p-62ed4236.entry.js → p-8d149b99.entry.js} +1 -1
  225. package/dist/zonos-elements/p-916adba7.entry.js +1 -0
  226. package/dist/zonos-elements/{p-5821856c.js → p-92bebe7a.js} +1 -1
  227. package/dist/zonos-elements/p-94279862.system.js +1 -0
  228. package/dist/zonos-elements/{p-b903af96.system.entry.js → p-97dadd90.system.entry.js} +1 -1
  229. package/dist/zonos-elements/{p-e37440ad.system.js → p-b2007124.system.js} +1 -1
  230. package/dist/zonos-elements/p-b55b557a.system.js +2 -0
  231. package/dist/zonos-elements/{p-18b28104.entry.js → p-bfa5ec2b.entry.js} +1 -1
  232. package/dist/zonos-elements/p-c55a5fe4.system.entry.js +1 -0
  233. package/dist/zonos-elements/p-c5a5512a.system.entry.js +1 -0
  234. package/dist/zonos-elements/p-c87113fb.system.entry.js +1 -0
  235. package/dist/zonos-elements/p-ca58f16e.system.entry.js +1 -0
  236. package/dist/zonos-elements/{p-6c3390b7.entry.js → p-d46fa40a.entry.js} +1 -1
  237. package/dist/zonos-elements/p-d6135575.js +1 -0
  238. package/dist/zonos-elements/p-d95cb86a.system.js +1 -0
  239. package/dist/zonos-elements/{p-d8c1eb99.entry.js → p-d9d5ee2f.entry.js} +1 -1
  240. package/dist/zonos-elements/{p-2a45c837.system.entry.js → p-da15b587.system.entry.js} +1 -1
  241. package/dist/zonos-elements/{p-8acdf43b.system.entry.js → p-dc6a17fe.system.entry.js} +1 -1
  242. package/dist/zonos-elements/p-dd61b7a0.js +2 -0
  243. package/dist/zonos-elements/p-e252d86f.entry.js +1 -0
  244. package/dist/zonos-elements/{p-da2e5289.system.entry.js → p-e6efc2e1.system.entry.js} +1 -1
  245. package/dist/zonos-elements/{p-63a27875.entry.js → p-efdc7748.entry.js} +1 -1
  246. package/dist/zonos-elements/{p-2aa72606.entry.js → p-f643035f.entry.js} +1 -1
  247. package/dist/zonos-elements/p-f98f7066.js +17 -0
  248. package/dist/zonos-elements/{p-9d29f3f4.system.entry.js → p-fa02dd07.system.entry.js} +1 -1
  249. package/dist/zonos-elements/{p-c3619b3d.entry.js → p-fa95c3dc.entry.js} +1 -1
  250. package/dist/zonos-elements/p-fb63bd03.js +1 -0
  251. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  252. package/dist/zonos-elements/zonos-elements.js +1 -1
  253. package/loader/cdn.js +1 -2
  254. package/loader/index.cjs.js +1 -2
  255. package/loader/index.d.ts +3 -0
  256. package/loader/index.es2017.js +1 -2
  257. package/loader/index.js +1 -2
  258. package/package.json +12 -11
  259. package/dist/esm-es5/cart-eb75b113.js +0 -1
  260. package/dist/esm-es5/index-3b46f3c3.js +0 -2
  261. package/dist/esm-es5/submitGtag-0bc0baa0.js +0 -1
  262. package/dist/esm-es5/zonos-notification_2.entry.js +0 -1
  263. package/dist/zonos-elements/p-02405211.system.entry.js +0 -1
  264. package/dist/zonos-elements/p-0b538ed4.system.js +0 -1
  265. package/dist/zonos-elements/p-357322ea.system.entry.js +0 -1
  266. package/dist/zonos-elements/p-53acc999.js +0 -1
  267. package/dist/zonos-elements/p-548ac127.entry.js +0 -1
  268. package/dist/zonos-elements/p-5609876a.system.entry.js +0 -1
  269. package/dist/zonos-elements/p-6f9448bb.entry.js +0 -1
  270. package/dist/zonos-elements/p-70262120.system.js +0 -1
  271. package/dist/zonos-elements/p-878293fe.js +0 -1
  272. package/dist/zonos-elements/p-97d74f84.system.js +0 -1
  273. package/dist/zonos-elements/p-a393c1db.system.entry.js +0 -1
  274. package/dist/zonos-elements/p-a8b934c2.entry.js +0 -1
  275. package/dist/zonos-elements/p-a8cb25de.system.js +0 -1
  276. package/dist/zonos-elements/p-abe8ea12.system.js +0 -1
  277. package/dist/zonos-elements/p-ae04d3ff.entry.js +0 -1
  278. package/dist/zonos-elements/p-b684f8aa.system.entry.js +0 -1
  279. package/dist/zonos-elements/p-ce347974.js +0 -2
  280. package/dist/zonos-elements/p-d99232c5.system.js +0 -2
  281. package/dist/zonos-elements/p-e0bf9666.system.js +0 -1
  282. package/dist/zonos-elements/p-e1db1bc9.entry.js +0 -1
  283. package/dist/zonos-elements/p-e74ca4bc.entry.js +0 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const zonosStore = require('./zonosStore-4c6c85da.js');
3
+ const zonosStore = require('./zonosStore-b6c72408.js');
4
4
 
5
5
  /**
6
6
  * Get the border radius for the elements based on the style
@@ -21,15 +21,141 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'zonos-elements';
24
+ const BUILD = /* zonos-elements */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: false, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: true, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
24
25
 
25
26
  /*
26
- Stencil Client Platform v4.18.0 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
27
28
  */
28
29
  var __defProp = Object.defineProperty;
29
30
  var __export = (target, all) => {
30
31
  for (var name in all)
31
32
  __defProp(target, name, { get: all[name], enumerable: true });
32
33
  };
34
+ var hostRefs = /* @__PURE__ */ new WeakMap();
35
+ var getHostRef = (ref) => hostRefs.get(ref);
36
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
37
+ var registerHost = (hostElement, cmpMeta) => {
38
+ const hostRef = {
39
+ $flags$: 0,
40
+ $hostElement$: hostElement,
41
+ $cmpMeta$: cmpMeta,
42
+ $instanceValues$: /* @__PURE__ */ new Map()
43
+ };
44
+ {
45
+ hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
46
+ }
47
+ {
48
+ hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
49
+ hostElement["s-p"] = [];
50
+ hostElement["s-rc"] = [];
51
+ }
52
+ return hostRefs.set(hostElement, hostRef);
53
+ };
54
+ var isMemberInElement = (elm, memberName) => memberName in elm;
55
+ var consoleError = (e, el) => (0, console.error)(e, el);
56
+
57
+ // src/client/client-load-module.ts
58
+ var cmpModules = /* @__PURE__ */ new Map();
59
+ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
60
+ const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
61
+ const bundleId = cmpMeta.$lazyBundleId$;
62
+ if (!bundleId) {
63
+ return void 0;
64
+ }
65
+ const module = cmpModules.get(bundleId) ;
66
+ if (module) {
67
+ return module[exportName];
68
+ }
69
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
70
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
71
+ /* @vite-ignore */
72
+ /* webpackInclude: /\.entry\.js$/ */
73
+ /* webpackExclude: /\.system\.entry\.js$/ */
74
+ /* webpackMode: "lazy" */
75
+ `./${bundleId}.entry.js${""}`
76
+ )); }).then((importedModule) => {
77
+ {
78
+ cmpModules.set(bundleId, importedModule);
79
+ }
80
+ return importedModule[exportName];
81
+ }, consoleError);
82
+ };
83
+
84
+ // src/client/client-style.ts
85
+ var styles = /* @__PURE__ */ new Map();
86
+ var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
87
+ var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
88
+ var win = typeof window !== "undefined" ? window : {};
89
+ var doc = win.document || { head: {} };
90
+ var plt = {
91
+ $flags$: 0,
92
+ $resourcesUrl$: "",
93
+ jmp: (h2) => h2(),
94
+ raf: (h2) => requestAnimationFrame(h2),
95
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
96
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
97
+ ce: (eventName, opts) => new CustomEvent(eventName, opts)
98
+ };
99
+ var supportsListenerOptions = /* @__PURE__ */ (() => {
100
+ let supportsListenerOptions2 = false;
101
+ try {
102
+ doc.addEventListener(
103
+ "e",
104
+ null,
105
+ Object.defineProperty({}, "passive", {
106
+ get() {
107
+ supportsListenerOptions2 = true;
108
+ }
109
+ })
110
+ );
111
+ } catch (e) {
112
+ }
113
+ return supportsListenerOptions2;
114
+ })();
115
+ var promiseResolve = (v) => Promise.resolve(v);
116
+ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
117
+ try {
118
+ new CSSStyleSheet();
119
+ return typeof new CSSStyleSheet().replaceSync === "function";
120
+ } catch (e) {
121
+ }
122
+ return false;
123
+ })() ;
124
+ var queuePending = false;
125
+ var queueDomReads = [];
126
+ var queueDomWrites = [];
127
+ var queueTask = (queue, write) => (cb) => {
128
+ queue.push(cb);
129
+ if (!queuePending) {
130
+ queuePending = true;
131
+ if (write && plt.$flags$ & 4 /* queueSync */) {
132
+ nextTick(flush);
133
+ } else {
134
+ plt.raf(flush);
135
+ }
136
+ }
137
+ };
138
+ var consume = (queue) => {
139
+ for (let i2 = 0; i2 < queue.length; i2++) {
140
+ try {
141
+ queue[i2](performance.now());
142
+ } catch (e) {
143
+ consoleError(e);
144
+ }
145
+ }
146
+ queue.length = 0;
147
+ };
148
+ var flush = () => {
149
+ consume(queueDomReads);
150
+ {
151
+ consume(queueDomWrites);
152
+ if (queuePending = queueDomReads.length > 0) {
153
+ plt.raf(flush);
154
+ }
155
+ }
156
+ };
157
+ var nextTick = (cb) => promiseResolve().then(cb);
158
+ var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
33
159
 
34
160
  // src/runtime/asset-path.ts
35
161
  var getAssetPath = (path) => {
@@ -117,8 +243,6 @@ var uniqueTime = (key, measureText) => {
117
243
  };
118
244
  }
119
245
  };
120
- var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
121
- var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
122
246
  var h = (nodeName, vnodeData, ...children) => {
123
247
  let child = null;
124
248
  let key = null;
@@ -447,7 +571,6 @@ var hostTagName;
447
571
  var useNativeShadowDom = false;
448
572
  var isSvgMode = false;
449
573
  var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
450
- var _a, _b, _c;
451
574
  const newVNode2 = newParentVNode.$children$[childIndex];
452
575
  let i2 = 0;
453
576
  let elm;
@@ -460,7 +583,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
460
583
  }
461
584
  elm = newVNode2.$elm$ = doc.createElementNS(
462
585
  isSvgMode ? SVG_NS : HTML_NS,
463
- newVNode2.$tag$
586
+ !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
464
587
  ) ;
465
588
  if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
466
589
  isSvgMode = false;
@@ -472,15 +595,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
472
595
  elm.classList.add(elm["s-si"] = scopeId);
473
596
  }
474
597
  {
475
- const rootScopeId = ((_a = newParentVNode.$elm$) == null ? void 0 : _a["s-rsc"]) || ((_b = newParentVNode.$elm$) == null ? void 0 : _b["s-si"]) || ((_c = newParentVNode.$elm$) == null ? void 0 : _c["s-sc"]);
476
- if (rootScopeId) {
477
- elm["s-rsc"] = rootScopeId;
478
- !elm.classList.contains(rootScopeId) && elm.classList.add(rootScopeId);
479
- }
598
+ updateElementScopeIds(elm, parentElm);
480
599
  }
481
600
  if (newVNode2.$children$) {
482
601
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
483
- childNode = createElm(oldParentVNode, newVNode2, i2);
602
+ childNode = createElm(oldParentVNode, newVNode2, i2, elm);
484
603
  if (childNode) {
485
604
  elm.appendChild(childNode);
486
605
  }
@@ -505,10 +624,10 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
505
624
  }
506
625
  for (; startIdx <= endIdx; ++startIdx) {
507
626
  if (vnodes[startIdx]) {
508
- childNode = createElm(null, parentVNode, startIdx);
627
+ childNode = createElm(null, parentVNode, startIdx, parentElm);
509
628
  if (childNode) {
510
629
  vnodes[startIdx].$elm$ = childNode;
511
- containerElm.insertBefore(childNode, before);
630
+ insertBefore(containerElm, childNode, before);
512
631
  }
513
632
  }
514
633
  }
@@ -557,12 +676,12 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
557
676
  newEndVnode = newCh[--newEndIdx];
558
677
  } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
559
678
  patch(oldStartVnode, newEndVnode, isInitialRender);
560
- parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
679
+ insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
561
680
  oldStartVnode = oldCh[++oldStartIdx];
562
681
  newEndVnode = newCh[--newEndIdx];
563
682
  } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
564
683
  patch(oldEndVnode, newStartVnode, isInitialRender);
565
- parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
684
+ insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
566
685
  oldEndVnode = oldCh[--oldEndIdx];
567
686
  newStartVnode = newCh[++newStartIdx];
568
687
  } else {
@@ -578,7 +697,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
578
697
  if (idxInOld >= 0) {
579
698
  elmToMove = oldCh[idxInOld];
580
699
  if (elmToMove.$tag$ !== newStartVnode.$tag$) {
581
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
700
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
582
701
  } else {
583
702
  patch(elmToMove, newStartVnode, isInitialRender);
584
703
  oldCh[idxInOld] = void 0;
@@ -586,12 +705,12 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
586
705
  }
587
706
  newStartVnode = newCh[++newStartIdx];
588
707
  } else {
589
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
708
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx, parentElm);
590
709
  newStartVnode = newCh[++newStartIdx];
591
710
  }
592
711
  if (node) {
593
712
  {
594
- oldStartVnode.$elm$.parentNode.insertBefore(node, oldStartVnode.$elm$);
713
+ insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
595
714
  }
596
715
  }
597
716
  }
@@ -656,6 +775,39 @@ var nullifyVNodeRefs = (vNode) => {
656
775
  vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
657
776
  }
658
777
  };
778
+ var insertBefore = (parent, newNode, reference) => {
779
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
780
+ {
781
+ updateElementScopeIds(newNode, parent);
782
+ }
783
+ return inserted;
784
+ };
785
+ var findScopeIds = (element) => {
786
+ const scopeIds = [];
787
+ if (element) {
788
+ scopeIds.push(
789
+ ...element["s-scs"] || [],
790
+ element["s-si"],
791
+ element["s-sc"],
792
+ ...findScopeIds(element.parentElement)
793
+ );
794
+ }
795
+ return scopeIds;
796
+ };
797
+ var updateElementScopeIds = (element, parent, iterateChildNodes = false) => {
798
+ var _a;
799
+ if (element && parent && element.nodeType === 1 /* ElementNode */) {
800
+ const scopeIds = new Set(findScopeIds(parent).filter(Boolean));
801
+ if (scopeIds.size) {
802
+ (_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = [...scopeIds]);
803
+ if (element["s-ol"] || iterateChildNodes) {
804
+ for (const childNode of Array.from(element.childNodes)) {
805
+ updateElementScopeIds(childNode, element, true);
806
+ }
807
+ }
808
+ }
809
+ }
810
+ };
659
811
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
660
812
  const hostElm = hostRef.$hostElement$;
661
813
  const cmpMeta = hostRef.$cmpMeta$;
@@ -699,8 +851,14 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
699
851
  return writeTask(dispatch) ;
700
852
  };
701
853
  var dispatchHooks = (hostRef, isInitialLoad) => {
854
+ const elm = hostRef.$hostElement$;
702
855
  const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
703
856
  const instance = hostRef.$lazyInstance$ ;
857
+ if (!instance) {
858
+ throw new Error(
859
+ `Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
860
+ );
861
+ }
704
862
  let maybePromise;
705
863
  if (isInitialLoad) {
706
864
  {
@@ -717,7 +875,10 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
717
875
  endSchedule();
718
876
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
719
877
  };
720
- var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn) : fn();
878
+ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
879
+ console.error(err2);
880
+ fn();
881
+ }) : fn();
721
882
  var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
722
883
  var updateComponent = async (hostRef, instance, isInitialLoad) => {
723
884
  var _a;
@@ -841,12 +1002,20 @@ var safeCall = (instance, method, arg) => {
841
1002
  }
842
1003
  return void 0;
843
1004
  };
844
- var addHydratedFlag = (elm) => elm.classList.add("hydrated") ;
1005
+ var addHydratedFlag = (elm) => {
1006
+ var _a;
1007
+ return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
1008
+ };
845
1009
 
846
1010
  // src/runtime/set-value.ts
847
1011
  var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
848
1012
  var setValue = (ref, propName, newVal, cmpMeta) => {
849
1013
  const hostRef = getHostRef(ref);
1014
+ if (!hostRef) {
1015
+ throw new Error(
1016
+ `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
1017
+ );
1018
+ }
850
1019
  const elm = hostRef.$hostElement$ ;
851
1020
  const oldVal = hostRef.$instanceValues$.get(propName);
852
1021
  const flags = hostRef.$flags$;
@@ -878,13 +1047,13 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
878
1047
 
879
1048
  // src/runtime/proxy-component.ts
880
1049
  var proxyComponent = (Cstr, cmpMeta, flags) => {
881
- var _a;
1050
+ var _a, _b;
882
1051
  const prototype = Cstr.prototype;
883
- if (cmpMeta.$members$) {
884
- if (Cstr.watchers) {
1052
+ if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
1053
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
885
1054
  cmpMeta.$watchers$ = Cstr.watchers;
886
1055
  }
887
- const members = Object.entries(cmpMeta.$members$);
1056
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
888
1057
  members.map(([memberName, [memberFlags]]) => {
889
1058
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
890
1059
  Object.defineProperty(prototype, memberName, {
@@ -940,7 +1109,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
940
1109
  };
941
1110
  Cstr.observedAttributes = Array.from(
942
1111
  /* @__PURE__ */ new Set([
943
- ...Object.keys((_a = cmpMeta.$watchers$) != null ? _a : {}),
1112
+ ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
944
1113
  ...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
945
1114
  const attrName = m[1] || propName;
946
1115
  attrNameToPropName.set(attrName, propName);
@@ -960,11 +1129,16 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
960
1129
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
961
1130
  const bundleId = cmpMeta.$lazyBundleId$;
962
1131
  if (bundleId) {
963
- Cstr = loadModule(cmpMeta);
964
- if (Cstr.then) {
1132
+ const CstrImport = loadModule(cmpMeta);
1133
+ if (CstrImport && "then" in CstrImport) {
965
1134
  const endLoad = uniqueTime();
966
- Cstr = await Cstr;
1135
+ Cstr = await CstrImport;
967
1136
  endLoad();
1137
+ } else {
1138
+ Cstr = CstrImport;
1139
+ }
1140
+ if (!Cstr) {
1141
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
968
1142
  }
969
1143
  if (!Cstr.isProxied) {
970
1144
  {
@@ -991,10 +1165,14 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
991
1165
  endNewInstance();
992
1166
  } else {
993
1167
  Cstr = elm.constructor;
994
- customElements.whenDefined(cmpMeta.$tagName$).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1168
+ const cmpTag = elm.localName;
1169
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
995
1170
  }
996
- if (Cstr.style) {
997
- let style = Cstr.style;
1171
+ if (Cstr && Cstr.style) {
1172
+ let style;
1173
+ if (typeof Cstr.style === "string") {
1174
+ style = Cstr.style;
1175
+ }
998
1176
  const scopeId2 = getScopeId(cmpMeta);
999
1177
  if (!styles.has(scopeId2)) {
1000
1178
  const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
@@ -1116,20 +1294,34 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1116
1294
  // StencilLazyHost
1117
1295
  constructor(self) {
1118
1296
  super(self);
1297
+ this.hasRegisteredEventListeners = false;
1119
1298
  self = this;
1120
1299
  registerHost(self, cmpMeta);
1121
1300
  if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1122
1301
  {
1123
- {
1124
- self.attachShadow({
1125
- mode: "open",
1126
- delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
1127
- });
1302
+ if (!self.shadowRoot) {
1303
+ {
1304
+ self.attachShadow({
1305
+ mode: "open",
1306
+ delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
1307
+ });
1308
+ }
1309
+ } else {
1310
+ if (self.shadowRoot.mode !== "open") {
1311
+ throw new Error(
1312
+ `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
1313
+ );
1314
+ }
1128
1315
  }
1129
1316
  }
1130
1317
  }
1131
1318
  }
1132
1319
  connectedCallback() {
1320
+ const hostRef = getHostRef(this);
1321
+ if (!this.hasRegisteredEventListeners) {
1322
+ this.hasRegisteredEventListeners = true;
1323
+ addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
1324
+ }
1133
1325
  if (appLoadFallback) {
1134
1326
  clearTimeout(appLoadFallback);
1135
1327
  appLoadFallback = null;
@@ -1162,7 +1354,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1162
1354
  dataStyles.textContent += SLOT_FB_CSS;
1163
1355
  }
1164
1356
  {
1165
- dataStyles.textContent += cmpTags + HYDRATED_CSS;
1357
+ dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
1166
1358
  }
1167
1359
  if (dataStyles.innerHTML.length) {
1168
1360
  dataStyles.setAttribute("data-styles", "");
@@ -1198,10 +1390,11 @@ var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) =>
1198
1390
  }
1199
1391
  };
1200
1392
  var hostListenerProxy = (hostRef, methodName) => (ev) => {
1393
+ var _a;
1201
1394
  try {
1202
1395
  {
1203
1396
  if (hostRef.$flags$ & 256 /* isListenReady */) {
1204
- hostRef.$lazyInstance$[methodName](ev);
1397
+ (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
1205
1398
  } else {
1206
1399
  (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
1207
1400
  }
@@ -1211,12 +1404,9 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1211
1404
  }
1212
1405
  };
1213
1406
  var getHostListenerTarget = (elm, flags) => {
1214
- if (flags & 4 /* TargetDocument */)
1215
- return doc;
1216
- if (flags & 8 /* TargetWindow */)
1217
- return win;
1218
- if (flags & 16 /* TargetBody */)
1219
- return doc.body;
1407
+ if (flags & 4 /* TargetDocument */) return doc;
1408
+ if (flags & 8 /* TargetWindow */) return win;
1409
+ if (flags & 16 /* TargetBody */) return doc.body;
1220
1410
  return elm;
1221
1411
  };
1222
1412
  var hostListenerOpts = (flags) => supportsListenerOptions ? {
@@ -1227,129 +1417,6 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
1227
1417
  // src/runtime/nonce.ts
1228
1418
  var setNonce = (nonce) => plt.$nonce$ = nonce;
1229
1419
 
1230
- // src/client/client-host-ref.ts
1231
- var hostRefs = /* @__PURE__ */ new WeakMap();
1232
- var getHostRef = (ref) => hostRefs.get(ref);
1233
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
1234
- var registerHost = (hostElement, cmpMeta) => {
1235
- const hostRef = {
1236
- $flags$: 0,
1237
- $hostElement$: hostElement,
1238
- $cmpMeta$: cmpMeta,
1239
- $instanceValues$: /* @__PURE__ */ new Map()
1240
- };
1241
- {
1242
- hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
1243
- }
1244
- {
1245
- hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
1246
- hostElement["s-p"] = [];
1247
- hostElement["s-rc"] = [];
1248
- }
1249
- addHostEventListeners(hostElement, hostRef, cmpMeta.$listeners$);
1250
- return hostRefs.set(hostElement, hostRef);
1251
- };
1252
- var isMemberInElement = (elm, memberName) => memberName in elm;
1253
- var consoleError = (e, el) => (0, console.error)(e, el);
1254
-
1255
- // src/client/client-load-module.ts
1256
- var cmpModules = /* @__PURE__ */ new Map();
1257
- var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1258
- const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
1259
- const bundleId = cmpMeta.$lazyBundleId$;
1260
- const module = cmpModules.get(bundleId) ;
1261
- if (module) {
1262
- return module[exportName];
1263
- }
1264
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
1265
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1266
- /* @vite-ignore */
1267
- /* webpackInclude: /\.entry\.js$/ */
1268
- /* webpackExclude: /\.system\.entry\.js$/ */
1269
- /* webpackMode: "lazy" */
1270
- `./${bundleId}.entry.js${""}`
1271
- )); }).then((importedModule) => {
1272
- {
1273
- cmpModules.set(bundleId, importedModule);
1274
- }
1275
- return importedModule[exportName];
1276
- }, consoleError);
1277
- };
1278
-
1279
- // src/client/client-style.ts
1280
- var styles = /* @__PURE__ */ new Map();
1281
- var win = typeof window !== "undefined" ? window : {};
1282
- var doc = win.document || { head: {} };
1283
- var plt = {
1284
- $flags$: 0,
1285
- $resourcesUrl$: "",
1286
- jmp: (h2) => h2(),
1287
- raf: (h2) => requestAnimationFrame(h2),
1288
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
1289
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
1290
- ce: (eventName, opts) => new CustomEvent(eventName, opts)
1291
- };
1292
- var supportsListenerOptions = /* @__PURE__ */ (() => {
1293
- let supportsListenerOptions2 = false;
1294
- try {
1295
- doc.addEventListener(
1296
- "e",
1297
- null,
1298
- Object.defineProperty({}, "passive", {
1299
- get() {
1300
- supportsListenerOptions2 = true;
1301
- }
1302
- })
1303
- );
1304
- } catch (e) {
1305
- }
1306
- return supportsListenerOptions2;
1307
- })();
1308
- var promiseResolve = (v) => Promise.resolve(v);
1309
- var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
1310
- try {
1311
- new CSSStyleSheet();
1312
- return typeof new CSSStyleSheet().replaceSync === "function";
1313
- } catch (e) {
1314
- }
1315
- return false;
1316
- })() ;
1317
- var queuePending = false;
1318
- var queueDomReads = [];
1319
- var queueDomWrites = [];
1320
- var queueTask = (queue, write) => (cb) => {
1321
- queue.push(cb);
1322
- if (!queuePending) {
1323
- queuePending = true;
1324
- if (write && plt.$flags$ & 4 /* queueSync */) {
1325
- nextTick(flush);
1326
- } else {
1327
- plt.raf(flush);
1328
- }
1329
- }
1330
- };
1331
- var consume = (queue) => {
1332
- for (let i2 = 0; i2 < queue.length; i2++) {
1333
- try {
1334
- queue[i2](performance.now());
1335
- } catch (e) {
1336
- consoleError(e);
1337
- }
1338
- }
1339
- queue.length = 0;
1340
- };
1341
- var flush = () => {
1342
- consume(queueDomReads);
1343
- {
1344
- consume(queueDomWrites);
1345
- if (queuePending = queueDomReads.length > 0) {
1346
- plt.raf(flush);
1347
- }
1348
- }
1349
- };
1350
- var nextTick = (cb) => promiseResolve().then(cb);
1351
- var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
1352
-
1353
1420
  exports.Fragment = Fragment;
1354
1421
  exports.Host = Host;
1355
1422
  exports.bootstrapLazy = bootstrapLazy;
@@ -88,6 +88,10 @@ const getZonosQaUrl = () => {
88
88
  return null;
89
89
  }
90
90
  const qaUrl = extractZonosQaUrl(window.location.href);
91
+ // when local demo app is running, it needs to use the local dev script unless the qaUrl is set
92
+ if (!qaUrl && window.location.hostname === 'dev.demo.elements.zonos.com') {
93
+ return 'https://dev.elements.zonos.com';
94
+ }
91
95
  if (!qaUrl) {
92
96
  return null;
93
97
  }
@@ -249,9 +253,9 @@ const zonosLoadUrl = (() => {
249
253
  }
250
254
  return null;
251
255
  })();
252
- const ZONOS_URL = "https://v1.3.39.js.zonos.com";
253
- const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.39";
254
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.39";
256
+ const ZONOS_URL = "https://v1.3.40.js.zonos.com";
257
+ const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.40";
258
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.40";
255
259
  const MAIN_LOAD_CDN_TYPE = 'jsdelivr';
256
260
  const INTER_FONT_URL = 'https://rsms.me';
257
261
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
@@ -265,15 +269,17 @@ Zonos.debug = typeof window !== 'undefined' &&
265
269
  !!window.location.search.match(/\?.*(&*)zonosDebug=1/);
266
270
  Zonos.zonosConversionTest = typeof window !== 'undefined' &&
267
271
  !!window.location.search.match(/\?.*(&*)zonosConversionTest/);
272
+ Zonos._paypalMockResponse = null;
268
273
  Zonos.isBigCommerce = false;
269
274
  /**
270
275
  * By default, the package will load from npm
271
276
  */
272
277
  Zonos.isNpm = true;
273
278
  Zonos.zonosQaUrl = null;
274
- Zonos.version = `v${"1.3.39"}`;
279
+ Zonos.version = `v${"1.3.40"}`;
275
280
  Zonos.modeAlerted = false;
276
281
  Zonos.tempCartData = null;
282
+ Zonos.paypal = null;
277
283
  Zonos.getCurrentTimestamp = () => new Date().getTime();
278
284
  Zonos.zonosController = null;
279
285
  Zonos.init = async ({ appearance, checkoutSettings, currencyConverter, helloSettings, onCountryChange, overrideCurrencyFormat, storeId, zonosApiKey, }) => {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const zonosStore = require('./zonosStore-4c6c85da.js');
3
+ const zonosStore = require('./zonosStore-b6c72408.js');
4
4
 
5
5
  var tinycolor$1 = {exports: {}};
6
6