@zonos/elements 1.3.87 → 1.3.89

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 (94) hide show
  1. package/dist/cjs/{cart-120d68f9.js → cart-e15290ab.js} +15 -7
  2. package/dist/cjs/{createCustomEvent-ed9156dc.js → createCustomEvent-3da45800.js} +1 -1
  3. package/dist/cjs/index.cjs.js +7 -7
  4. package/dist/cjs/{paypal-875cfaf1.js → paypal-47b71e3b.js} +1 -1
  5. package/dist/cjs/zonos-address_7.cjs.entry.js +8 -6
  6. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +1022 -11
  7. package/dist/cjs/zonos-checkout.cjs.entry.js +4 -6
  8. package/dist/cjs/zonos-controller.cjs.entry.js +1 -1
  9. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  10. package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
  11. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +1 -1
  12. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  13. package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
  14. package/dist/cjs/zonos-notification_3.cjs.entry.js +2 -2
  15. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +4 -4
  16. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +20 -4
  17. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +2 -4
  18. package/dist/collection/components/store/checkout/stripe.js +2 -3
  19. package/dist/collection/components/store/hello/localization.js +13 -4
  20. package/dist/collection/components/stripe/zonos-address/zonos-address.js +9 -6
  21. package/dist/collection/components/utils/cleanHtmlMarkdown.js +28 -0
  22. package/dist/esm/{cart-9f1caabf.js → cart-08c2a740.js} +15 -7
  23. package/dist/esm/{createCustomEvent-464c49c0.js → createCustomEvent-a8a9fe09.js} +1 -1
  24. package/dist/esm/index.js +7 -7
  25. package/dist/esm/{paypal-fb449438.js → paypal-4a21792c.js} +1 -1
  26. package/dist/esm/zonos-address_7.entry.js +9 -7
  27. package/dist/esm/zonos-cart-items_12.entry.js +1022 -11
  28. package/dist/esm/zonos-checkout.entry.js +4 -6
  29. package/dist/esm/zonos-controller.entry.js +1 -1
  30. package/dist/esm/zonos-country-flag.entry.js +1 -1
  31. package/dist/esm/zonos-country-select_4.entry.js +1 -1
  32. package/dist/esm/zonos-hello-dialog.entry.js +1 -1
  33. package/dist/esm/zonos-hello.entry.js +1 -1
  34. package/dist/esm/zonos-language-select_2.entry.js +1 -1
  35. package/dist/esm/zonos-notification_3.entry.js +2 -2
  36. package/dist/esm-es5/{cart-9f1caabf.js → cart-08c2a740.js} +1 -1
  37. package/dist/esm-es5/{createCustomEvent-464c49c0.js → createCustomEvent-a8a9fe09.js} +1 -1
  38. package/dist/esm-es5/index.js +1 -1
  39. package/dist/esm-es5/{paypal-fb449438.js → paypal-4a21792c.js} +1 -1
  40. package/dist/esm-es5/zonos-address_7.entry.js +1 -1
  41. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  42. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  43. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  44. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  45. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  46. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  47. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  48. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  49. package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
  50. package/dist/scripts/index.d.ts +1 -1
  51. package/dist/scripts/index.js +1 -1
  52. package/dist/scripts/loadZonos.js +1 -1
  53. package/dist/scripts/zonos.js +1 -1
  54. package/dist/types/components/store/hello/localization.d.ts +1 -4
  55. package/dist/types/components/utils/cleanHtmlMarkdown.d.ts +16 -0
  56. package/dist/types/types/checkout/CheckoutConfig.d.ts +1 -1
  57. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  58. package/dist/zonos-elements/index.esm.js +1 -1
  59. package/dist/zonos-elements/p-0033c20b.system.entry.js +1 -0
  60. package/dist/zonos-elements/{p-89d2a27b.system.js → p-00706ef7.system.js} +1 -1
  61. package/dist/zonos-elements/{p-d7cf2a25.system.js → p-05b75d37.system.js} +1 -1
  62. package/dist/zonos-elements/{p-3d521899.system.entry.js → p-12f25739.system.entry.js} +1 -1
  63. package/dist/zonos-elements/{p-9f36076f.entry.js → p-2aeb1f26.entry.js} +1 -1
  64. package/dist/zonos-elements/{p-cb9ff4df.js → p-3214b2df.js} +1 -1
  65. package/dist/zonos-elements/{p-7fce2a19.entry.js → p-3951ac01.entry.js} +1 -1
  66. package/dist/zonos-elements/{p-e6129027.entry.js → p-3ac3a8be.entry.js} +1 -1
  67. package/dist/zonos-elements/p-48b151ae.entry.js +1 -0
  68. package/dist/zonos-elements/{p-5bef550e.system.entry.js → p-49010cea.system.entry.js} +1 -1
  69. package/dist/zonos-elements/{p-35577bd8.system.entry.js → p-4a417566.system.entry.js} +1 -1
  70. package/dist/zonos-elements/{p-72513d54.entry.js → p-4f13a851.entry.js} +1 -1
  71. package/dist/zonos-elements/{p-d33a87fc.entry.js → p-531973ca.entry.js} +1 -1
  72. package/dist/zonos-elements/{p-294026a0.system.js → p-5f0c4397.system.js} +1 -1
  73. package/dist/zonos-elements/{p-92f1cf70.entry.js → p-6d5d31ac.entry.js} +1 -1
  74. package/dist/zonos-elements/{p-0b01b9b1.system.entry.js → p-76015899.system.entry.js} +1 -1
  75. package/dist/zonos-elements/{p-f7ec6999.js → p-7c8ad901.js} +1 -1
  76. package/dist/zonos-elements/p-8bbe007f.system.entry.js +1 -0
  77. package/dist/zonos-elements/p-9773abc9.entry.js +1 -0
  78. package/dist/zonos-elements/{p-253cbdae.entry.js → p-aab5ccde.entry.js} +1 -1
  79. package/dist/zonos-elements/{p-6c380fa8.system.js → p-c1f0aeb4.system.js} +1 -1
  80. package/dist/zonos-elements/p-c28824a0.system.entry.js +1 -0
  81. package/dist/zonos-elements/p-c78dd680.system.js +1 -1
  82. package/dist/zonos-elements/{p-d81f35bf.js → p-db4c833d.js} +2 -2
  83. package/dist/zonos-elements/{p-c0a7750c.system.entry.js → p-dbd51a62.system.entry.js} +1 -1
  84. package/dist/zonos-elements/p-f49ca64f.entry.js +1 -0
  85. package/dist/zonos-elements/{p-69bb9b53.system.entry.js → p-f5e29ed6.system.entry.js} +1 -1
  86. package/dist/zonos-elements/{p-94589f18.system.entry.js → p-fc2191b7.system.entry.js} +1 -1
  87. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  88. package/package.json +5 -4
  89. package/dist/zonos-elements/p-4412b94b.system.entry.js +0 -1
  90. package/dist/zonos-elements/p-49a3a2a5.system.entry.js +0 -1
  91. package/dist/zonos-elements/p-7f21c1c4.entry.js +0 -1
  92. package/dist/zonos-elements/p-a7b6fd9c.entry.js +0 -1
  93. package/dist/zonos-elements/p-b58f4433.entry.js +0 -1
  94. package/dist/zonos-elements/p-e05eed8e.system.entry.js +0 -1
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-120d68f9.js');
7
- const paypal = require('./paypal-875cfaf1.js');
6
+ const cart = require('./cart-e15290ab.js');
7
+ const paypal = require('./paypal-47b71e3b.js');
8
8
  const zonosStore = require('./zonosStore-a4395972.js');
9
- const createCustomEvent = require('./createCustomEvent-ed9156dc.js');
9
+ const createCustomEvent = require('./createCustomEvent-3da45800.js');
10
10
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
11
11
  const handleFetch = require('./handleFetch-45e76490.js');
12
12
  const classes = require('./classes-b7918f56.js');
@@ -438,9 +438,7 @@ const ZonosCheckout = class {
438
438
  const legacyShippingInfo = {
439
439
  country:
440
440
  // fallback to selected country code if country is not provided
441
- urlParams.get('country') ||
442
- cart.localizationStore.selectedCountryCode ||
443
- cart.DEFAULT_COUNTRY_CODE_LEGACY_CHECKOUT,
441
+ urlParams.get('country') || cart.localizationStore.selectedCountryCode,
444
442
  customerAddress1: urlParams.get('customerAddress1'),
445
443
  customerAddress2: urlParams.get('customerAddress2'),
446
444
  customerCity: urlParams.get('customerCity'),
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-120d68f9.js');
6
+ const cart = require('./cart-e15290ab.js');
7
7
  const zonosStore = require('./zonosStore-a4395972.js');
8
8
  const handleFetch = require('./handleFetch-45e76490.js');
9
9
  require('./isDarkColor-5efc8367.js');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-120d68f9.js');
6
+ const cart = require('./cart-e15290ab.js');
7
7
  const zonosStore = require('./zonosStore-a4395972.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
9
  require('./handleFetch-45e76490.js');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-120d68f9.js');
6
+ const cart = require('./cart-e15290ab.js');
7
7
  const zonosStore = require('./zonosStore-a4395972.js');
8
8
  const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
9
9
  const isDarkColor = require('./isDarkColor-5efc8367.js');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-120d68f9.js');
6
+ const cart = require('./cart-e15290ab.js');
7
7
  const zonosStore = require('./zonosStore-a4395972.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
9
  const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
6
  const zonosStore = require('./zonosStore-a4395972.js');
7
- const cart = require('./cart-120d68f9.js');
7
+ const cart = require('./cart-e15290ab.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
9
  const handleFetch = require('./handleFetch-45e76490.js');
10
10
  const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-120d68f9.js');
6
+ const cart = require('./cart-e15290ab.js');
7
7
  const zonosStore = require('./zonosStore-a4395972.js');
8
8
  const ILanguage = require('./ILanguage-98b04442.js');
9
9
  require('./handleFetch-45e76490.js');
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-d56e0a8b.js');
6
6
  const zonosStore = require('./zonosStore-a4395972.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const cart = require('./cart-120d68f9.js');
8
+ const cart = require('./cart-e15290ab.js');
9
9
  const handleFetch = require('./handleFetch-45e76490.js');
10
- const paypal = require('./paypal-875cfaf1.js');
10
+ const paypal = require('./paypal-47b71e3b.js');
11
11
  require('./isDarkColor-5efc8367.js');
12
12
  require('./getBorderRadius-5a64574c.js');
13
13
 
@@ -1,6 +1,7 @@
1
1
  import { getAssetPath, h, Host } from "@stencil/core";
2
2
  import { cartStore } from "../../../store/checkout/cart";
3
3
  import { translate } from "../../../store/translationStore";
4
+ import { cleanHtmlMarkdown } from "../../../utils/cleanHtmlMarkdown";
4
5
  import { currencyFormat } from "../../../utils/hello/currencyConversion/currencyFormat";
5
6
  export class ZonosCartItems {
6
7
  constructor() {
@@ -11,15 +12,14 @@ export class ZonosCartItems {
11
12
  const emptyItemImg = getAssetPath('./assets/empty-item.jpeg');
12
13
  const rate = ((_a = cartStore.exchangeRate) === null || _a === void 0 ? void 0 : _a.rate) || 1;
13
14
  const nonRestrictedItems = cartStore.items.filter(item => !item.isRestricted);
14
- return (h(Host, { key: '7bdf8d1972edb2d11669441b3d8ec6643fca1f4b', class: "zonos--cart-items zonos--elements" }, h("table", { key: '1c2fe6d444ea93e40b981a8935d16192bf61928c', class: "zonos--cart-table" }, h("tbody", { key: '84279bea6821077bf117a7a13ca497155276c622' }, nonRestrictedItems.map(item => {
15
+ return (h(Host, { key: '5bb1ea08c13ffd9521ed1ef3934a0e02bdce3317', class: "zonos--cart-items zonos--elements" }, h("table", { key: '54c1dcf71a22e9fa1108350c272ee5267832f2e3', class: "zonos--cart-table" }, h("tbody", { key: 'f1c426a5cf7db0b4198a25bfb9cb99a2d67908ab' }, nonRestrictedItems.map(item => {
15
16
  const itemImg = item.imageUrl;
16
- // Split the name by <br> tag
17
- const namesWithNewLine = item.name.split(/<br\s*\/*>/);
17
+ const cleanedItemNames = cleanHtmlMarkdown(item.name);
18
18
  return (h("tr", { class: "zonos--cart-item" }, h("td", { class: "zonos--column zonos--cart-item-image" }, itemImg && !this.errorImages.includes(itemImg) ? (h("img", { alt: item.name, onError: () => {
19
19
  this.errorImages = [...this.errorImages, itemImg];
20
20
  }, src: item.imageUrl, style: {
21
21
  'min-width': '40px',
22
- }, width: 40 })) : (h("img", { alt: item.name, src: emptyItemImg, width: 40 }))), h("td", { class: "zonos--column zonos--cart-item-name" }, h("div", null, namesWithNewLine.map(name => (h("zonos-text", { type: "label" }, name)))), h("zonos-text", { textColor: "gray-600", type: "caption" }, translate('Quantity'), ": ", item.quantity)), h("td", { class: "zonos--column zonos--cart-item-price" }, h("zonos-text", { type: "semiBoldLabel", weight: 600 }, currencyFormat({
22
+ }, width: 40 })) : (h("img", { alt: item.name, src: emptyItemImg, width: 40 }))), h("td", { class: "zonos--column zonos--cart-item-name" }, h("div", null, cleanedItemNames.map(name => (h("zonos-text", { type: "label" }, name)))), h("zonos-text", { textColor: "gray-600", type: "caption" }, translate('Quantity'), ": ", item.quantity)), h("td", { class: "zonos--column zonos--cart-item-price" }, h("zonos-text", { type: "semiBoldLabel", weight: 600 }, currencyFormat({
23
23
  amount: item.amount * rate * item.quantity,
24
24
  currency: cartStore.currency,
25
25
  })))));
@@ -93,13 +93,29 @@ export class ZonosCheckoutFinish {
93
93
  };
94
94
  // TODO: This method of pulling orders is temporary. Once we have a working event registry system, we will rely on that to tell us when the order is ready to trigger onOrderSuccess
95
95
  this.getPullOrder = async (attempts = 0) => {
96
+ var _a, _b, _c;
96
97
  const { baseUrl, order } = await this.pullOrder();
97
- if (order) {
98
+ const legacyOrderNumberExist = !!((_c = (_b = (_a = this.order) === null || _a === void 0 ? void 0 : _a.references) === null || _b === void 0 ? void 0 : _b.find(entry => (entry === null || entry === void 0 ? void 0 : entry.key) === 'zonosOrderNumber')) === null || _c === void 0 ? void 0 : _c.value);
99
+ // legacy customers are still using the old order number so we need to wait for legacy order number to attach to dgs order before redirecting
100
+ if ((order && attempts >= 5) || legacyOrderNumberExist) {
101
+ if (!legacyOrderNumberExist) {
102
+ const checkoutSessionId = cartStore.checkoutSessionId;
103
+ void sendErrorLog({
104
+ endpoint: `${baseUrl}/api/zonos-elements/get-order?checkoutSessionId=${checkoutSessionId}&orderId=${order === null || order === void 0 ? void 0 : order.id}`,
105
+ errors: [`Order found but legacy order number doesn’t exist`],
106
+ metadata: {
107
+ checkoutSessionId: cartStore.checkoutSessionId || '',
108
+ domain: window.location.hostname,
109
+ orderId: (order === null || order === void 0 ? void 0 : order.id) || '',
110
+ storeId: zonosStore.storeId,
111
+ },
112
+ });
113
+ }
98
114
  void trackConversionEvent('checkout_orderCompleted');
99
115
  this.order = order;
100
116
  this.handleSuccessBehavior();
101
117
  }
102
- else if (!order && attempts < 5) {
118
+ else if ((!order || !legacyOrderNumberExist) && attempts < 5) {
103
119
  // Wait for 1 second before the next attempt
104
120
  await new Promise(resolve => setTimeout(resolve, 1000));
105
121
  await this.getPullOrder(attempts + 1);
@@ -235,11 +251,11 @@ export class ZonosCheckoutFinish {
235
251
  var _a, _b;
236
252
  const orderId = ((_a = this.order) === null || _a === void 0 ? void 0 : _a.accountOrderNumber) || getGraphQlShortId((_b = this.order) === null || _b === void 0 ? void 0 : _b.id);
237
253
  const isTestMode = getIsTestMode();
238
- return (h(Host, { key: '9939772d4ce4213978ae6b02b4cd5345d15dbdfd', class: "zonos--checkout-finish zonos--elements", style: {
254
+ return (h(Host, { key: '3c6c69c59622b7b2731f9bc6eb1cc8a7f3491572', class: "zonos--checkout-finish zonos--elements", style: {
239
255
  '--border-radius': getBorderRadius({
240
256
  overrideBorderStyle: this.borderRadius,
241
257
  }),
242
- } }, this.isLoading && (h("div", { key: '491d4d0ba3dc487d448606009a30a5ce8d3bb86e', class: "loading-wrapper" }, h("zonos-spinner", { key: '3179aeb472d3e70628d3f1e3e2b76ed3d622145d' }))), !this.isLoading && (h("div", { key: '6044c9d1ac7599d9168f944dcf82028669fd1f37', class: "zonos--finish-details" }, h("div", { key: 'd22ec981a73db08e4871c8babe29f9a09a5bc29d', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: 'bfef33fd319456253e07c3ef3f81da1b85414df9', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), orderId && (h("div", { key: 'f056c93644d1f9defa263f59111874f154293b51', class: "zonos--order-number" }, "Order #", orderId)), h("zonos-text", { key: '69d38c4640943a5cfdcef5ea6951ddec9c7b8a84', textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), h("zonos-button", { key: 'fbb2d1cc0baab99a3312f2077c28cb9d51b4eb44', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText)), isTestMode && cartStore.step === 'finish' && (h("div", { key: '7b63fd838f850ce6a5acf4970fa66657ca05e235', class: "zonos--finish-button-wrapper" }, h("zonos-button", { key: '85035826e36d52ccf8c77aa6ba6e27173fccdaa6', backgroundColor: "gray-0", buttonColor: "gray-1200", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), h("zonos-button", { key: 'd3848fdbdf1380dce49fcbc2b2903d99ce65247d', onClick: () => this.redirectToUrl(`/orders/all`), size: "lg", variant: "primary" }, "View order in Dashboard")))))));
258
+ } }, this.isLoading && (h("div", { key: '45ce0e608dca725237abc09295656c8b6471d26c', class: "loading-wrapper" }, h("zonos-spinner", { key: 'fd1a193d34ecf41af9bb6eff082c192c6a8d46db' }))), !this.isLoading && (h("div", { key: '64f652a419330967f13b9d01a172fcc52f6dfd5b', class: "zonos--finish-details" }, h("div", { key: '945cb9e55b418de79921c1995604572e6e009459', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: '241bd7034c5ab5e83e4cedd526a181120a743ad0', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), orderId && (h("div", { key: '959595c1be3f65aa6cd2e00e4398c5bb4df702b6', class: "zonos--order-number" }, "Order #", orderId)), h("zonos-text", { key: 'a23dce69391c3abf49eb512e715af454c971977e', textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), h("zonos-button", { key: 'ce87734e2d46e8a044bc0ded7a6ed6a4a705685d', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText)), isTestMode && cartStore.step === 'finish' && (h("div", { key: 'a46cee8819c83fb76a54dbe049ee2452b7fc150a', class: "zonos--finish-button-wrapper" }, h("zonos-button", { key: '514fdff77f5aff9f4b9657a0579ab843833af7b0', backgroundColor: "gray-0", buttonColor: "gray-1200", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), h("zonos-button", { key: '59630cf7504c1ef9d24854d041b063bbfdc3a1a4', onClick: () => this.redirectToUrl(`/orders/all`), size: "lg", variant: "primary" }, "View order in Dashboard")))))));
243
259
  }
244
260
  static get is() { return "zonos-checkout-finish"; }
245
261
  static get encapsulation() { return "shadow"; }
@@ -2,7 +2,7 @@ import { Fragment, h, Host, } from "@stencil/core";
2
2
  import { cartStore, cartStoreClearCheckoutInterval, cartStoreNextStep, cartStoreReset, cartStoreResetTabItems, cartStoreSetCheckoutSession, cartStoreStartCheckoutInterval, cartStoreUpdateItems, cartStoreUpdateToErrorState, } from "../../store/checkout/cart";
3
3
  import { paypalInitScript } from "../../store/checkout/paypal";
4
4
  import { initStripeElements, stripeStore, stripeStoreCleanupDomesticShippingSession, stripeStoreConfirmPayment, stripeStoreHandleInventoryCheck, stripeStoreInitCheckoutSession, stripeStorePrefetchLandedCost, stripeStoreReset, } from "../../store/checkout/stripe";
5
- import { DEFAULT_COUNTRY_CODE_LEGACY_CHECKOUT, localizationStore, localizationStoreOnUpdate, } from "../../store/hello/localization";
5
+ import { localizationStore, localizationStoreOnUpdate, } from "../../store/hello/localization";
6
6
  import { translate } from "../../store/translationStore";
7
7
  import { getZonosStoreTheme, zonosStore, } from "../../store/zonosStore";
8
8
  import { buildCartItemsByTempCart } from "../../utils/api/buildCartItemsByTempCart";
@@ -284,9 +284,7 @@ export class ZonosCheckout {
284
284
  const legacyShippingInfo = {
285
285
  country:
286
286
  // fallback to selected country code if country is not provided
287
- urlParams.get('country') ||
288
- localizationStore.selectedCountryCode ||
289
- DEFAULT_COUNTRY_CODE_LEGACY_CHECKOUT,
287
+ urlParams.get('country') || localizationStore.selectedCountryCode,
290
288
  customerAddress1: urlParams.get('customerAddress1'),
291
289
  customerAddress2: urlParams.get('customerAddress2'),
292
290
  customerCity: urlParams.get('customerCity'),
@@ -1,6 +1,6 @@
1
1
  import { createStore } from "@stencil/store";
2
2
  import { cartStore, cartStoreApplySubtotals, cartStoreCheckItemRestrictions, cartStorePreviousStep, cartStoreResetCartItems, cartStoreSetCheckoutSession, cartStoreUpdateSelectedShippingOption, } from "./cart";
3
- import { DEFAULT_COUNTRY_CODE_LEGACY_CHECKOUT, localizationStore, } from "../hello/localization";
3
+ import { localizationStore } from "../hello/localization";
4
4
  import { translate } from "../translationStore";
5
5
  import { zonosStore } from "../zonosStore";
6
6
  import { calculateLandedCostNormalized } from "../../utils/api/calculateLandedCostNormaliz";
@@ -423,8 +423,7 @@ const stripeStoreInitCheckoutSession = async () => {
423
423
  currency: ((_a = cartStore.items.find(Boolean)) === null || _a === void 0 ? void 0 : _a.currencyCode) || '',
424
424
  itemsAmount: total,
425
425
  metadata: [{ key: 'language', value: localizationStore.selectedLocale }],
426
- presentmentCountryCode: localizationStore.selectedCountryCode ||
427
- DEFAULT_COUNTRY_CODE_LEGACY_CHECKOUT,
426
+ presentmentCountryCode: localizationStore.selectedCountryCode,
428
427
  },
429
428
  method: 'POST',
430
429
  });
@@ -15,10 +15,6 @@ import { getCurrencyCode } from "../../utils/hello/currencyConversion/getCurrenc
15
15
  import { setZCountryUrlParam } from "../../utils/hello/setZCountryUrlParam";
16
16
  import { log } from "../../utils/logging/log";
17
17
  import { logError } from "../../utils/logging/logError";
18
- /**
19
- * CHORE: This is mostly for legacy checkout as the country param is not guaranteed.
20
- */
21
- export const DEFAULT_COUNTRY_CODE_LEGACY_CHECKOUT = 'CA';
22
18
  const { dispose: localizationDispose, onChange: localizationStoreOnUpdate, state: localizationStore, } = createStore({
23
19
  countryLandedCost: null,
24
20
  customMessages: [],
@@ -46,6 +42,18 @@ const triggerGetExchangeRate = async (isGuaranteed) => {
46
42
  }
47
43
  return { maxAge };
48
44
  };
45
+ /**
46
+ * CHORE: This is mostly for legacy checkout as the country param is not guaranteed.
47
+ */
48
+ const DEFAULT_COUNTRY_CODE_LEGACY_CHECKOUT = 'CA';
49
+ export const getFallbackDefaultCountryCode = (allowedCountries) => {
50
+ if (localizationStore.selectedCountryCode &&
51
+ allowedCountries.includes(localizationStore.selectedCountryCode)) {
52
+ return localizationStore.selectedCountryCode;
53
+ }
54
+ // Don't check if it is allowed. If it is not allowed it will fallback to Albania (first option).
55
+ return DEFAULT_COUNTRY_CODE_LEGACY_CHECKOUT;
56
+ };
49
57
  // This recursive function is for users who step away from their computer and come back needing a new exchange rate
50
58
  const startExchangeRateTimeout = ({ isGuaranteed, maxAge, }) => {
51
59
  if (localizationStore.exchangeRateTimeout) {
@@ -194,6 +202,7 @@ const initLocalizationStore = async () => {
194
202
  // Initialize the country list for the hello widget
195
203
  initHelloCountryList(allCountries || {});
196
204
  const { country, locale } = localization;
205
+ log(`Country code from localization: ${country}`);
197
206
  // update selected country code in store
198
207
  localizationStoreUpdateSelectedCountryCode(country);
199
208
  // use locale from params if it exists, otherwise use locale from localization
@@ -1,7 +1,8 @@
1
1
  import { h, Host, } from "@stencil/core";
2
2
  import { stripeStore } from "../../store/checkout/stripe";
3
- import { DEFAULT_COUNTRY_CODE_LEGACY_CHECKOUT, localizationStore, } from "../../store/hello/localization";
3
+ import { getFallbackDefaultCountryCode, localizationStore, } from "../../store/hello/localization";
4
4
  import { isCheckoutMobile } from "../../utils/checkout/isCheckoutMobile";
5
+ import { log } from "../../utils/logging/log";
5
6
  import { logError } from "../../utils/logging/logError";
6
7
  /**
7
8
  * This component is a wrapper for the stripe address element that would render default style object
@@ -63,16 +64,18 @@ export class ZonosAddress {
63
64
  const shippingZone = shippableCountries
64
65
  ? Object.values(shippableCountries).map(country => country.code)
65
66
  : [];
67
+ const allowedCountries = this.type === 'shipping' ? shippingZone : [];
68
+ const defaultAddressCountry = (stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.country) ||
69
+ getFallbackDefaultCountryCode(allowedCountries);
70
+ log(`Stripe country code: ${defaultAddressCountry}`, 'info');
66
71
  const addressElement = stripeElements.create('address', {
67
- allowedCountries: this.type === 'shipping' ? shippingZone : [],
72
+ allowedCountries,
68
73
  // only show the default address if stripeAddressEventData is not provided
69
74
  contacts: this.defaultAddress && !stripeAddressEventData
70
75
  ? [this.defaultAddress]
71
76
  : [],
72
77
  defaultValues: {
73
- address: Object.assign(Object.assign({}, stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address), { country: (stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.country) ||
74
- localizationStore.selectedCountryCode ||
75
- DEFAULT_COUNTRY_CODE_LEGACY_CHECKOUT }),
78
+ address: Object.assign(Object.assign({}, stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address), { country: defaultAddressCountry }),
76
79
  firstName: stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.firstName,
77
80
  lastName: stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.lastName,
78
81
  phone: stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.phone,
@@ -135,7 +138,7 @@ export class ZonosAddress {
135
138
  }
136
139
  render() {
137
140
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
138
- return (h(Host, { key: 'aa9a569b302099681082cd4219b553f9c70842ea', class: "zonos--address zonos--elements" }, h("zonos-text", { key: '60050e9f8f0b80dde9acc9ffbd868333fdabf2b3', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '5af7ee4f23d75fc877cdde7babe0edaefef14da8', class: "zonos--address-component" })));
141
+ return (h(Host, { key: '15074e6cf5021e2d583838eb866f92cb8dad0c1e', class: "zonos--address zonos--elements" }, h("zonos-text", { key: '4203a4dffc101ba0667e975ff2ebe6125e023509', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '66add8724cb61193252e44b7a8179fbabc34d3d2', class: "zonos--address-component" })));
139
142
  }
140
143
  static get is() { return "zonos-address"; }
141
144
  static get encapsulation() { return "scoped"; }
@@ -0,0 +1,28 @@
1
+ import TurndownService from "turndown";
2
+ const turndownService = new TurndownService();
3
+ /**
4
+ * Converts an HTML string to Markdown format, strips unnecessary Markdown tags,
5
+ * and returns an array of cleaned Markdown text blocks..
6
+ *
7
+ * This utility function is useful for transforming HTML into Markdown and cleaning
8
+ * it by removing extra or unwanted Markdown elements, resulting in an array of
9
+ * plain Markdown text segments.
10
+ *
11
+ * @param {string} htmlString - The input HTML string to be converted and cleaned.
12
+ *
13
+ * @example
14
+ * const htmlInput = "<h1>Hello World</h1><p>This is a paragraph.</p>";
15
+ * const result = cleanHtmlMarkdown(htmlInput);
16
+ * console.log(result); // Outputs cleaned HTML after conversion and processing
17
+ */
18
+ export const cleanHtmlMarkdown = (htmlString) => {
19
+ const mdString = turndownService.turndown(htmlString);
20
+ const sanitizedMdString =
21
+ // remove header tags
22
+ mdString.replace(/^\#+\s+/gm, '').trim();
23
+ if (!sanitizedMdString) {
24
+ return [];
25
+ }
26
+ const mdBlocks = sanitizedMdString.split(/[\n\r]+/gm);
27
+ return mdBlocks;
28
+ };
@@ -8397,10 +8397,6 @@ const setZCountryUrlParam = (selectedCountryCode) => {
8397
8397
  }
8398
8398
  };
8399
8399
 
8400
- /**
8401
- * CHORE: This is mostly for legacy checkout as the country param is not guaranteed.
8402
- */
8403
- const DEFAULT_COUNTRY_CODE_LEGACY_CHECKOUT = 'CA';
8404
8400
  const { dispose: localizationDispose, onChange: localizationStoreOnUpdate, state: localizationStore, } = createStore({
8405
8401
  countryLandedCost: null,
8406
8402
  customMessages: [],
@@ -8428,6 +8424,18 @@ const triggerGetExchangeRate = async (isGuaranteed) => {
8428
8424
  }
8429
8425
  return { maxAge };
8430
8426
  };
8427
+ /**
8428
+ * CHORE: This is mostly for legacy checkout as the country param is not guaranteed.
8429
+ */
8430
+ const DEFAULT_COUNTRY_CODE_LEGACY_CHECKOUT = 'CA';
8431
+ const getFallbackDefaultCountryCode = (allowedCountries) => {
8432
+ if (localizationStore.selectedCountryCode &&
8433
+ allowedCountries.includes(localizationStore.selectedCountryCode)) {
8434
+ return localizationStore.selectedCountryCode;
8435
+ }
8436
+ // Don't check if it is allowed. If it is not allowed it will fallback to Albania (first option).
8437
+ return DEFAULT_COUNTRY_CODE_LEGACY_CHECKOUT;
8438
+ };
8431
8439
  // This recursive function is for users who step away from their computer and come back needing a new exchange rate
8432
8440
  const startExchangeRateTimeout = ({ isGuaranteed, maxAge, }) => {
8433
8441
  if (localizationStore.exchangeRateTimeout) {
@@ -8576,6 +8584,7 @@ const initLocalizationStore = async () => {
8576
8584
  // Initialize the country list for the hello widget
8577
8585
  initHelloCountryList(allCountries || {});
8578
8586
  const { country, locale } = localization;
8587
+ log(`Country code from localization: ${country}`);
8579
8588
  // update selected country code in store
8580
8589
  localizationStoreUpdateSelectedCountryCode(country);
8581
8590
  // use locale from params if it exists, otherwise use locale from localization
@@ -9475,8 +9484,7 @@ const stripeStoreInitCheckoutSession = async () => {
9475
9484
  currency: ((_a = cartStore.items.find(Boolean)) === null || _a === void 0 ? void 0 : _a.currencyCode) || '',
9476
9485
  itemsAmount: total,
9477
9486
  metadata: [{ key: 'language', value: localizationStore.selectedLocale }],
9478
- presentmentCountryCode: localizationStore.selectedCountryCode ||
9479
- DEFAULT_COUNTRY_CODE_LEGACY_CHECKOUT,
9487
+ presentmentCountryCode: localizationStore.selectedCountryCode,
9480
9488
  },
9481
9489
  method: 'POST',
9482
9490
  });
@@ -10015,4 +10023,4 @@ const cartStoreResetTabItems = () => {
10015
10023
  cartStoreResetSelectedShippingOption();
10016
10024
  };
10017
10025
 
10018
- export { setZCountryUrlParam as A, currencyDisplay as B, currencyConvertAndFormat as C, DEFAULT_COUNTRY_CODE_LEGACY_CHECKOUT as D, currencyConvert as E, currencyFormat as F, cartStoreHasOneEligibleItem as G, stripeStoreApplyPromoCode as H, stripeStoreRemovePromoCode as I, stripeStoreRetrievePayment as J, stripeStoreMessageBasedOnStatus as K, stripeStoreResetPromoCode as L, stripeStoreTranslateAddressToLatin as M, cartStoreUpdateSelectedShippingOption as N, cartStoreGetShippingTransitInfo as O, sortServiceLevelOptionsByAmount as P, localizationStoreUpdateSelectedLocale as Q, localizationStoreUpdateSelectedCountryCode as a, stripeStoreCleanupDomesticShippingSession as b, stripeStoreSaveDomesticShippingSession as c, cartStore as d, cartStoreUpdateItems as e, cartStoreReset as f, cartStoreResetTabItems as g, cartStoreClearCheckoutInterval as h, initStripeElements as i, stripeStore as j, stripeStoreInitCheckoutSession as k, localizationStore as l, cartStoreStartCheckoutInterval as m, cartStoreUpdateToErrorState as n, cartStoreSetCheckoutSession as o, stripeStorePrefetchLandedCost as p, cartStoreNextStep as q, stripeStoreHandleInventoryCheck as r, stripeStoreGetDomesticShippingSession as s, translate as t, stripeStoreConfirmPayment as u, stripeStoreReset as v, localizationStoreOnUpdate as w, isValidSelector as x, initLocalizationStore as y, getZCountryUrlParam as z };
10026
+ export { setZCountryUrlParam as A, currencyDisplay as B, currencyConvertAndFormat as C, currencyConvert as D, currencyFormat as E, cartStoreHasOneEligibleItem as F, stripeStoreApplyPromoCode as G, stripeStoreRemovePromoCode as H, stripeStoreRetrievePayment as I, stripeStoreMessageBasedOnStatus as J, stripeStoreResetPromoCode as K, stripeStoreTranslateAddressToLatin as L, cartStoreUpdateSelectedShippingOption as M, cartStoreGetShippingTransitInfo as N, sortServiceLevelOptionsByAmount as O, getFallbackDefaultCountryCode as P, localizationStoreUpdateSelectedLocale as Q, localizationStoreUpdateSelectedCountryCode as a, stripeStoreCleanupDomesticShippingSession as b, stripeStoreSaveDomesticShippingSession as c, cartStore as d, cartStoreUpdateItems as e, cartStoreReset as f, cartStoreResetTabItems as g, cartStoreClearCheckoutInterval as h, initStripeElements as i, stripeStore as j, stripeStoreInitCheckoutSession as k, localizationStore as l, cartStoreStartCheckoutInterval as m, cartStoreUpdateToErrorState as n, cartStoreSetCheckoutSession as o, stripeStorePrefetchLandedCost as p, cartStoreNextStep as q, stripeStoreHandleInventoryCheck as r, stripeStoreGetDomesticShippingSession as s, translate as t, stripeStoreConfirmPayment as u, stripeStoreReset as v, localizationStoreOnUpdate as w, isValidSelector as x, initLocalizationStore as y, getZCountryUrlParam as z };
@@ -1,4 +1,4 @@
1
- import { d as cartStore, l as localizationStore } from './cart-9f1caabf.js';
1
+ import { d as cartStore, l as localizationStore } from './cart-08c2a740.js';
2
2
  import { z as zonosStore } from './zonosStore-0dc7a947.js';
3
3
  import { h as handleFetch } from './handleFetch-0133265e.js';
4
4
 
package/dist/esm/index.js CHANGED
@@ -94,7 +94,7 @@ const getZonosQaUrl = () => {
94
94
  return null;
95
95
  }
96
96
  const qaUrl = extractZonosQaUrl(window.location.href);
97
- const cdnUrl = "https://v1.3.87.js.zonos.com";
97
+ const cdnUrl = "https://v1.3.89.js.zonos.com";
98
98
  // when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
99
99
  if (!qaUrl &&
100
100
  (cdnUrl.includes('test.') ||
@@ -278,10 +278,10 @@ const zonosLoadUrl = (() => {
278
278
  }
279
279
  return null;
280
280
  })();
281
- const ZONOS_URL = "https://v1.3.87.js.zonos.com";
282
- const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.87";
283
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.87";
284
- const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.87";
281
+ const ZONOS_URL = "https://v1.3.89.js.zonos.com";
282
+ const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.89";
283
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.89";
284
+ const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.89";
285
285
  const INTER_FONT_URL = 'https://rsms.me';
286
286
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
287
287
  const INTER_FONT_REGEX = /^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;
@@ -296,7 +296,7 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
296
296
  !!window.location.search.match(/\?.*(&*)zonosConversionTest/);
297
297
  Zonos._paypalMockResponse = null;
298
298
  Zonos.isBigCommerce = false;
299
- Zonos.releaseDate = "1728918962245";
299
+ Zonos.releaseDate = "1728924518080";
300
300
  Zonos.isLegacyCheckout = false;
301
301
  /**
302
302
  * By default, the package will load from npm
@@ -304,7 +304,7 @@ Zonos.isLegacyCheckout = false;
304
304
  Zonos.isNpm = true;
305
305
  Zonos.zonosQaUrl = null;
306
306
  Zonos.zonosQaUrlApi = null;
307
- Zonos.version = `v${"1.3.87"}`;
307
+ Zonos.version = `v${"1.3.89"}`;
308
308
  Zonos.modeAlerted = false;
309
309
  Zonos.cartData = null;
310
310
  Zonos.paypal = null;
@@ -1,5 +1,5 @@
1
1
  import { z as zonosStore, c as createStore } from './zonosStore-0dc7a947.js';
2
- import { d as cartStore, r as stripeStoreHandleInventoryCheck, t as translate, q as cartStoreNextStep, h as cartStoreClearCheckoutInterval } from './cart-9f1caabf.js';
2
+ import { d as cartStore, r as stripeStoreHandleInventoryCheck, t as translate, q as cartStoreNextStep, h as cartStoreClearCheckoutInterval } from './cart-08c2a740.js';
3
3
  import { h as handleFetch, l as log, a as logError, j as jsonParse } from './handleFetch-0133265e.js';
4
4
  import { t as tinycolor } from './isDarkColor-b3afa948.js';
5
5
 
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, d as getElement } from './index-86b8247e.js';
2
- import { j as stripeStore, l as localizationStore, D as DEFAULT_COUNTRY_CODE_LEGACY_CHECKOUT, t as translate } from './cart-9f1caabf.js';
2
+ import { j as stripeStore, P as getFallbackDefaultCountryCode, l as localizationStore, t as translate } from './cart-08c2a740.js';
3
3
  import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
4
- import { a as logError } from './handleFetch-0133265e.js';
4
+ import { a as logError, l as log } from './handleFetch-0133265e.js';
5
5
  import { i as isTextContainsNonLatinChars, c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
6
6
  import { z as zonosStore, d as zonosStoreFontFamily } from './zonosStore-0dc7a947.js';
7
7
  import { c as classes } from './classes-0d95c529.js';
@@ -71,16 +71,18 @@ const ZonosAddress = class {
71
71
  const shippingZone = shippableCountries
72
72
  ? Object.values(shippableCountries).map(country => country.code)
73
73
  : [];
74
+ const allowedCountries = this.type === 'shipping' ? shippingZone : [];
75
+ const defaultAddressCountry = (stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.country) ||
76
+ getFallbackDefaultCountryCode(allowedCountries);
77
+ log(`Stripe country code: ${defaultAddressCountry}`, 'info');
74
78
  const addressElement = stripeElements.create('address', {
75
- allowedCountries: this.type === 'shipping' ? shippingZone : [],
79
+ allowedCountries,
76
80
  // only show the default address if stripeAddressEventData is not provided
77
81
  contacts: this.defaultAddress && !stripeAddressEventData
78
82
  ? [this.defaultAddress]
79
83
  : [],
80
84
  defaultValues: {
81
- address: Object.assign(Object.assign({}, stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address), { country: (stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.country) ||
82
- localizationStore.selectedCountryCode ||
83
- DEFAULT_COUNTRY_CODE_LEGACY_CHECKOUT }),
85
+ address: Object.assign(Object.assign({}, stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address), { country: defaultAddressCountry }),
84
86
  firstName: stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.firstName,
85
87
  lastName: stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.lastName,
86
88
  phone: stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.phone,
@@ -143,7 +145,7 @@ const ZonosAddress = class {
143
145
  }
144
146
  render() {
145
147
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
146
- return (h(Host, { key: 'aa9a569b302099681082cd4219b553f9c70842ea', class: "zonos--address zonos--elements" }, h("zonos-text", { key: '60050e9f8f0b80dde9acc9ffbd868333fdabf2b3', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '5af7ee4f23d75fc877cdde7babe0edaefef14da8', class: "zonos--address-component" })));
148
+ return (h(Host, { key: '15074e6cf5021e2d583838eb866f92cb8dad0c1e', class: "zonos--address zonos--elements" }, h("zonos-text", { key: '4203a4dffc101ba0667e975ff2ebe6125e023509', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '66add8724cb61193252e44b7a8179fbabc34d3d2', class: "zonos--address-component" })));
147
149
  }
148
150
  get el() { return getElement(this); }
149
151
  static get watchers() { return {