@zonos/elements 1.3.12-alpha.1 → 1.3.12-alpha.10

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 (166) hide show
  1. package/dist/cjs/{cart-fcddc0e6.js → cart-37e23be9.js} +739 -3
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/sendErrorLog-7b3d82e4.js +29 -0
  4. package/dist/cjs/{submitGtag-ec6ead54.js → submitGtag-d0718b63.js} +1 -20
  5. package/dist/cjs/zonos-address_4.cjs.entry.js +41 -17
  6. package/dist/cjs/zonos-card_2.cjs.entry.js +1 -1
  7. package/dist/cjs/zonos-cart-items_10.cjs.entry.js +8 -8
  8. package/dist/cjs/zonos-checkout.cjs.entry.js +7 -7
  9. package/dist/cjs/zonos-controller.cjs.entry.js +1 -1
  10. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  11. package/dist/cjs/zonos-country-select_3.cjs.entry.js +1 -1
  12. package/dist/cjs/zonos-elements.cjs.js +1 -1
  13. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +90 -26
  14. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  15. package/dist/cjs/zonos-payment.cjs.entry.js +1 -1
  16. package/dist/collection/components/hello/zonos-hello-dialog/assets/importIcon.svg +4 -0
  17. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +85 -25
  18. package/dist/collection/components/store/translationStore/strings.arabic.js +36 -0
  19. package/dist/collection/components/store/translationStore/strings.base.js +36 -0
  20. package/dist/collection/components/store/translationStore/strings.chinese.js +36 -0
  21. package/dist/collection/components/store/translationStore/strings.danish.js +36 -0
  22. package/dist/collection/components/store/translationStore/strings.dutch.js +36 -0
  23. package/dist/collection/components/store/translationStore/strings.french.js +36 -0
  24. package/dist/collection/components/store/translationStore/strings.german.js +36 -0
  25. package/dist/collection/components/store/translationStore/strings.hebrew.js +36 -0
  26. package/dist/collection/components/store/translationStore/strings.indonesian.js +36 -0
  27. package/dist/collection/components/store/translationStore/strings.italian.js +36 -0
  28. package/dist/collection/components/store/translationStore/strings.japanese.js +36 -0
  29. package/dist/collection/components/store/translationStore/strings.korean.js +36 -0
  30. package/dist/collection/components/store/translationStore/strings.norwegian.js +36 -0
  31. package/dist/collection/components/store/translationStore/strings.polish.js +36 -0
  32. package/dist/collection/components/store/translationStore/strings.portuguese.js +36 -0
  33. package/dist/collection/components/store/translationStore/strings.russian.js +36 -0
  34. package/dist/collection/components/store/translationStore/strings.spanish.js +36 -0
  35. package/dist/collection/components/store/translationStore/strings.swedish.js +36 -0
  36. package/dist/collection/components/store/translationStore/strings.turkish.js +36 -0
  37. package/dist/collection/components/store/translationStore/strings.vietnamese.js +36 -0
  38. package/dist/collection/components/store/translationStore.js +19 -3
  39. package/dist/collection/components/stripe/zonos-address/zonos-address.js +41 -15
  40. package/dist/collection/components/utils/logging/getNavigatorConnection.js +16 -0
  41. package/dist/collection/components/utils/logging/sendLoadScriptLog.js +16 -0
  42. package/dist/collection/types/LogLoadScriptRequestBody.js +1 -0
  43. package/dist/collection/types/generated/graphql.customer.types.js +64 -14
  44. package/dist/collection/types/generated/graphql.frontend.types.js +4 -0
  45. package/dist/components/sendErrorLog.js +21 -0
  46. package/dist/components/stripe.js +740 -4
  47. package/dist/components/trackConversionEvent.js +1 -1
  48. package/dist/components/zonos-address2.js +41 -15
  49. package/dist/components/zonos-checkout-finish2.js +3 -20
  50. package/dist/components/zonos-checkout.js +3 -2
  51. package/dist/components/zonos-controller.js +1 -1
  52. package/dist/components/zonos-hello-dialog2.js +89 -25
  53. package/dist/components/zonos-hello.js +1 -1
  54. package/dist/components/zonos-link-authentication2.js +1 -1
  55. package/dist/esm/{cart-228e1ef7.js → cart-7961927b.js} +739 -3
  56. package/dist/esm/loader.js +1 -1
  57. package/dist/esm/sendErrorLog-4d9581da.js +26 -0
  58. package/dist/esm/{submitGtag-c3727595.js → submitGtag-4c1f09dc.js} +2 -20
  59. package/dist/esm/zonos-address_4.entry.js +40 -16
  60. package/dist/esm/zonos-card_2.entry.js +1 -1
  61. package/dist/esm/zonos-cart-items_10.entry.js +3 -3
  62. package/dist/esm/zonos-checkout.entry.js +3 -3
  63. package/dist/esm/zonos-controller.entry.js +1 -1
  64. package/dist/esm/zonos-country-flag.entry.js +1 -1
  65. package/dist/esm/zonos-country-select_3.entry.js +1 -1
  66. package/dist/esm/zonos-elements.js +1 -1
  67. package/dist/esm/zonos-hello-dialog.entry.js +90 -26
  68. package/dist/esm/zonos-hello.entry.js +1 -1
  69. package/dist/esm/zonos-payment.entry.js +1 -1
  70. package/dist/esm-es5/cart-7961927b.js +1 -0
  71. package/dist/esm-es5/loader.js +1 -1
  72. package/dist/esm-es5/sendErrorLog-4d9581da.js +1 -0
  73. package/dist/esm-es5/submitGtag-4c1f09dc.js +1 -0
  74. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  75. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  76. package/dist/esm-es5/zonos-cart-items_10.entry.js +1 -1
  77. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  78. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  79. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  80. package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
  81. package/dist/esm-es5/zonos-elements.js +1 -1
  82. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  83. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  84. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  85. package/dist/scripts/loadZonos.js +1 -1
  86. package/dist/scripts/zonos.js +1 -1
  87. package/dist/scripts/zonosBase.js +1 -1
  88. package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog.d.ts +9 -0
  89. package/dist/types/components/store/translationStore/strings.arabic.d.ts +36 -0
  90. package/dist/types/components/store/translationStore/strings.base.d.ts +36 -0
  91. package/dist/types/components/store/translationStore/strings.chinese.d.ts +36 -0
  92. package/dist/types/components/store/translationStore/strings.danish.d.ts +36 -0
  93. package/dist/types/components/store/translationStore/strings.dutch.d.ts +36 -0
  94. package/dist/types/components/store/translationStore/strings.french.d.ts +36 -0
  95. package/dist/types/components/store/translationStore/strings.german.d.ts +36 -0
  96. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +36 -0
  97. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +36 -0
  98. package/dist/types/components/store/translationStore/strings.italian.d.ts +36 -0
  99. package/dist/types/components/store/translationStore/strings.japanese.d.ts +36 -0
  100. package/dist/types/components/store/translationStore/strings.korean.d.ts +36 -0
  101. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +36 -0
  102. package/dist/types/components/store/translationStore/strings.polish.d.ts +36 -0
  103. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +36 -0
  104. package/dist/types/components/store/translationStore/strings.russian.d.ts +36 -0
  105. package/dist/types/components/store/translationStore/strings.spanish.d.ts +36 -0
  106. package/dist/types/components/store/translationStore/strings.swedish.d.ts +36 -0
  107. package/dist/types/components/store/translationStore/strings.turkish.d.ts +36 -0
  108. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +36 -0
  109. package/dist/types/components/store/translationStore.d.ts +24 -1
  110. package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +7 -1
  111. package/dist/types/components/utils/api/getCountryLandedCost.d.ts +10 -1
  112. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  113. package/dist/types/components/utils/logging/getNavigatorConnection.d.ts +8 -0
  114. package/dist/types/components/utils/logging/sendLoadScriptLog.d.ts +4 -0
  115. package/dist/types/types/LogLoadScriptRequestBody.d.ts +12 -0
  116. package/dist/types/types/checkout/CheckoutConfig.d.ts +1 -1
  117. package/dist/types/types/generated/graphql.customer.types.d.ts +91 -18
  118. package/dist/types/types/generated/graphql.customer.types.ts +132 -22
  119. package/dist/types/types/generated/graphql.frontend.types.d.ts +13 -3
  120. package/dist/types/types/generated/graphql.frontend.types.ts +23 -3
  121. package/dist/types/types/global.d.ts +1 -2
  122. package/dist/zonos-elements/assets/importIcon.svg +4 -0
  123. package/dist/zonos-elements/p-0bdac452.system.js +1 -0
  124. package/dist/zonos-elements/p-0c5d3595.js +1 -0
  125. package/dist/zonos-elements/{p-5d5c0fbf.entry.js → p-2191b884.entry.js} +1 -1
  126. package/dist/zonos-elements/{p-0082c5be.system.entry.js → p-2da8e12a.system.entry.js} +1 -1
  127. package/dist/zonos-elements/{p-67ff446b.system.entry.js → p-339c505b.system.entry.js} +1 -1
  128. package/dist/zonos-elements/{p-ac5aecca.entry.js → p-33f5634a.entry.js} +1 -1
  129. package/dist/zonos-elements/{p-5f662cf2.entry.js → p-3eb402c8.entry.js} +1 -1
  130. package/dist/zonos-elements/p-431648d8.system.entry.js +1 -0
  131. package/dist/zonos-elements/p-44842b39.system.entry.js +1 -0
  132. package/dist/zonos-elements/{p-14a2824f.entry.js → p-44f4dd4b.entry.js} +1 -1
  133. package/dist/zonos-elements/{p-35c328ba.system.entry.js → p-4b3923d2.system.entry.js} +1 -1
  134. package/dist/zonos-elements/{p-30cd191f.entry.js → p-4eba3abe.entry.js} +1 -1
  135. package/dist/zonos-elements/p-5a3ceb49.entry.js +1 -0
  136. package/dist/zonos-elements/p-63775f6d.js +1 -0
  137. package/dist/zonos-elements/p-6e81adba.system.js +1 -1
  138. package/dist/zonos-elements/{p-5f6f0581.system.entry.js → p-7efb9c12.system.entry.js} +1 -1
  139. package/dist/zonos-elements/{p-5dbb80df.system.entry.js → p-8eb876e8.system.entry.js} +1 -1
  140. package/dist/zonos-elements/p-a6c9c505.system.js +1 -0
  141. package/dist/zonos-elements/{p-c815e8b4.system.entry.js → p-bdb72353.system.entry.js} +1 -1
  142. package/dist/zonos-elements/{p-499d7f5d.system.entry.js → p-d6aa3011.system.entry.js} +1 -1
  143. package/dist/zonos-elements/p-dd4f3724.system.js +1 -0
  144. package/dist/zonos-elements/{p-925ae524.entry.js → p-e1796e2a.entry.js} +1 -1
  145. package/dist/zonos-elements/{p-db1adc42.entry.js → p-e4919505.entry.js} +1 -1
  146. package/dist/zonos-elements/p-e4be7bd8.js +1 -0
  147. package/dist/zonos-elements/{p-7ff3a533.system.entry.js → p-e5fd850c.system.entry.js} +1 -1
  148. package/dist/zonos-elements/p-e90e2126.entry.js +1 -0
  149. package/dist/zonos-elements/{p-11f1b5fb.entry.js → p-f0b5d2fb.entry.js} +1 -1
  150. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  151. package/package.json +1 -1
  152. package/dist/cjs/isCheckoutMobile-f491ca7c.js +0 -8
  153. package/dist/esm/isCheckoutMobile-8846dccb.js +0 -6
  154. package/dist/esm-es5/cart-228e1ef7.js +0 -1
  155. package/dist/esm-es5/isCheckoutMobile-8846dccb.js +0 -1
  156. package/dist/esm-es5/submitGtag-c3727595.js +0 -1
  157. package/dist/zonos-elements/p-0679e872.system.entry.js +0 -1
  158. package/dist/zonos-elements/p-09dbb0e9.entry.js +0 -1
  159. package/dist/zonos-elements/p-55940b5a.system.entry.js +0 -1
  160. package/dist/zonos-elements/p-770e5b9e.js +0 -1
  161. package/dist/zonos-elements/p-81a54668.js +0 -1
  162. package/dist/zonos-elements/p-94bbf247.system.js +0 -1
  163. package/dist/zonos-elements/p-960e4021.system.js +0 -1
  164. package/dist/zonos-elements/p-aed0098c.system.js +0 -1
  165. package/dist/zonos-elements/p-d11b2449.js +0 -1
  166. package/dist/zonos-elements/p-d31e5fcc.entry.js +0 -1
@@ -0,0 +1,4 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M9.35028 11.5744C9.05738 11.2815 8.58251 11.2815 8.28962 11.5744C7.99672 11.8673 7.99672 12.3422 8.28962 12.635L11.2917 15.6372C11.6823 16.0277 12.3154 16.0277 12.7059 15.6372L15.708 12.6351C16.0009 12.3422 16.0009 11.8674 15.708 11.5745C15.4151 11.2816 14.9402 11.2816 14.6473 11.5745L12.7488 13.4729V4.68005C12.7488 4.26584 12.413 3.93005 11.9988 3.93005C11.5846 3.93005 11.2488 4.26584 11.2488 4.68005L11.2488 13.4729L9.35028 11.5744Z" fill="#4D505A"/>
3
+ <path d="M20 14C20 13.5858 19.6642 13.25 19.25 13.25C18.8358 13.25 18.5 13.5858 18.5 14L18.5 17.25C18.5 17.9404 17.9404 18.5 17.25 18.5L6.75 18.5C6.05964 18.5 5.5 17.9404 5.5 17.25L5.5 14C5.5 13.5858 5.16421 13.25 4.75 13.25C4.33579 13.25 4 13.5858 4 14V17.25C4 18.7688 5.23122 20 6.75 20H17.25C18.7688 20 20 18.7688 20 17.25L20 14Z" fill="#4D505A"/>
4
+ </svg>
@@ -10,6 +10,8 @@ import { getHasMoreSpaceOnRight } from "../../utils/hello/getHasMoreSpaceOnRight
10
10
  // eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
11
11
  import BagIcon from "./assets/bagIcon.svg";
12
12
  // eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
13
+ import ImportIcon from "./assets/importIcon.svg";
14
+ // eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
13
15
  import MessageIcon from "./assets/messageIcon.svg";
14
16
  // eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
15
17
  import MoneyIcon from "./assets/moneyIcon.svg";
@@ -42,6 +44,81 @@ export class ZonosHelloDialog {
42
44
  this.setShowLanguageSelect = async (value) => {
43
45
  this.showLanguageSelect = value;
44
46
  };
47
+ this.getDutyMessage = () => {
48
+ const { countryLandedCost } = localizationStore;
49
+ // Our Robby API spells deminimis wrong here
50
+ const dutyDeminimis = (countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.dutyDeminimus)
51
+ ? currencyFormat(countryLandedCost.dutyDeminimus)
52
+ : null;
53
+ // If Canada, use 40 CAD (courier duty de minimis)
54
+ const dutyDeminimisToUse = localizationStore.selectedCountryCode === 'CA'
55
+ ? currencyFormat(40)
56
+ : dutyDeminimis;
57
+ // If deminimis is undefined or null, assume it's $0
58
+ return dutyDeminimisToUse
59
+ ? `${translate('Spend')} ${dutyDeminimisToUse} ${translate('duty free')}`
60
+ : translate('Duties will apply to all orders');
61
+ };
62
+ this.getTaxMessage = () => {
63
+ const { countryLandedCost } = localizationStore;
64
+ // Our Robby API spells deminimis wrong here
65
+ const taxDeminimis = (countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.vatTaxDeminimus)
66
+ ? currencyFormat(countryLandedCost.vatTaxDeminimus)
67
+ : null;
68
+ // If Canada, use 150 CAD (courier tax de minimis)
69
+ const taxDeminimisToUse = localizationStore.selectedCountryCode === 'CA'
70
+ ? currencyFormat(150)
71
+ : taxDeminimis;
72
+ return taxDeminimisToUse
73
+ ? `${translate('Spend')} ${taxDeminimisToUse} ${translate('tax free')}`
74
+ : translate('Taxes will apply to all orders');
75
+ };
76
+ this.getUkDutyTaxMessage = (landedCost) => {
77
+ if (landedCost.allowLowValueOrders) {
78
+ // show nothing if low value orders are allowed
79
+ return null;
80
+ }
81
+ const dutyDeminimis = landedCost.dutyDeminimus;
82
+ return translate('Orders to ${countryName} must be over ${threshold} to ship.', {
83
+ countryName: 'United Kingdom',
84
+ threshold: currencyFormat(dutyDeminimis),
85
+ });
86
+ };
87
+ this.getAustraliaDutyTaxMessage = (landedCost) => {
88
+ return translate('${percentage} GST due on any order above ${threshold}.', {
89
+ percentage: `${landedCost.vatTaxRate * 100}%`,
90
+ threshold: currencyFormat(landedCost.vatTaxDeminimus),
91
+ });
92
+ };
93
+ this.getNewZealandDutyTaxMessge = (landedCost) => {
94
+ return translate('${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.', {
95
+ percentage: `${landedCost.vatTaxRate * 100}%`,
96
+ threshold: currencyFormat(landedCost.vatTaxDeminimus),
97
+ });
98
+ };
99
+ /**
100
+ * Get additional duty tax message if selected country has tax id
101
+ */
102
+ this.getAdditionalDutyTaxMessage = () => {
103
+ if (!localizationStore.countryLandedCost) {
104
+ return null;
105
+ }
106
+ // only show the message if the store has a tax id for selected country
107
+ if (!localizationStore.countryLandedCost.hasTaxId) {
108
+ return null;
109
+ }
110
+ switch (localizationStore.countryLandedCost.countryCode) {
111
+ case 'GB':
112
+ return this.getUkDutyTaxMessage(localizationStore.countryLandedCost);
113
+ case 'AU':
114
+ return this.getAustraliaDutyTaxMessage(localizationStore.countryLandedCost);
115
+ case 'NZ':
116
+ return this.getNewZealandDutyTaxMessge(localizationStore.countryLandedCost);
117
+ default:
118
+ // show nothing
119
+ return null;
120
+ }
121
+ };
45
122
  this.isOpen = false;
46
123
  this.setIsOpen = () => { };
47
124
  this.mobileLocationOverride = undefined;
@@ -63,30 +140,13 @@ export class ZonosHelloDialog {
63
140
  }
64
141
  render() {
65
142
  var _a;
66
- const { countryLandedCost, selectedCountryCode } = localizationStore;
67
- // Our Robby API spells deminimis wrong here
68
- const dutyDeminimis = (countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.dutyDeminimus)
69
- ? currencyFormat(countryLandedCost.dutyDeminimus)
70
- : null;
71
- // If Canada, use 40 CAD (courier duty de minimis)
72
- const dutyDeminimisToUse = localizationStore.selectedCountryCode === 'CA'
73
- ? currencyFormat(40)
74
- : dutyDeminimis;
143
+ const { selectedCountryCode } = localizationStore;
144
+ // If deminimis is undefined or null, assume it's $0
145
+ const dutyDeMinimisMessage = this.getDutyMessage();
75
146
  // If deminimis is undefined or null, assume it's $0
76
- const dutyDeMinimisMessage = dutyDeminimisToUse
77
- ? `${translate('Spend')} ${dutyDeminimisToUse} ${translate('duty free')}`
78
- : translate('Duties will apply to all orders');
79
- // Our Robby API spells deminimis wrong here
80
- const taxDeminimis = (countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.vatTaxDeminimus)
81
- ? currencyFormat(countryLandedCost.vatTaxDeminimus)
82
- : null;
83
- // If Canada, use 150 CAD (courier tax de minimis)
84
- const taxDeminimisToUse = localizationStore.selectedCountryCode === 'CA'
85
- ? currencyFormat(150)
86
- : taxDeminimis;
87
- const taxDeMinimisMessage = taxDeminimisToUse
88
- ? `${translate('Spend')} ${taxDeminimisToUse} ${translate('tax free')}`
89
- : translate('Taxes will apply to all orders');
147
+ const taxDeMinimisMessage = this.getTaxMessage();
148
+ // Show additional information if selected country has tax id
149
+ const additionalInformation = this.getAdditionalDutyTaxMessage();
90
150
  const animateLeft = this.animateFromLeftOverride ||
91
151
  (this.dialogRef && getHasMoreSpaceOnRight(this.dialogRef));
92
152
  const animateFromBottom = this.dialogRef && getHasMoreSpaceAbove(this.dialogRef);
@@ -97,7 +157,7 @@ export class ZonosHelloDialog {
97
157
  const defaultMessage = formatStringWithLinks(defaultMessageStr);
98
158
  const currentPage = this.getCurrentPageEnum();
99
159
  const filteredMessages = customMessages.filter(x => x.pageName === currentPage);
100
- return (h(Host, { key: 'dcd4c055999375785e289cc273c37e50c358d594', class: "zonos--elements" }, h("div", { key: 'a8921afb921ee0b4c0adb31dca0da646c91bdecc', "aria-hidden": "true", class: classes([
160
+ return (h(Host, { key: 'ccabd686943b009ed6bb9c0ec64a6a4e7cc917f5', class: "zonos--elements" }, h("div", { key: '6bfbae15f5b43413fc76d21b94d0d56a2ce48f4d', "aria-hidden": "true", class: classes([
101
161
  'zonos--hello-dialog',
102
162
  animateLeft && 'zonos--hello-dialog-animate-from-left',
103
163
  animateFromBottom && 'zonos--hello-dialog-animate-from-bottom',
@@ -107,7 +167,7 @@ export class ZonosHelloDialog {
107
167
  ]), ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", null, h("div", { class: "zonos--hello-dialog-content" }, h("zonos-button", { class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close Zonos Hello dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.setIsOpen(false) }), h("zonos-v-stack", { spacing: 24 }, h("zonos-country-flag", { class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { type: "boldSubheader" }, welcomeMessage), h("zonos-text", { innerHTML: defaultMessage, textColor: "gray-800" })), h("zonos-v-stack", { spacing: 8 }, this.restrictedItems.map(item => {
108
168
  var _a;
109
169
  return item && (h("zonos-banner", { bannerTitle: item.name, intent: "error" }, (_a = item.itemRestrictions) === null || _a === void 0 ? void 0 : _a.map(x => (h("zonos-text", { textColor: "red-800" }, x === null || x === void 0 ? void 0 : x.note)))));
110
- }), h("zonos-card", { spacing: "12px" }, h("zonos-v-stack", { spacing: 12 }, h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Duty de minimis", content: BagIcon }), h("zonos-text", null, dutyDeMinimisMessage)), h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Tax de minimis", content: MoneyIcon }), h("zonos-text", null, taxDeMinimisMessage)))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", null, h("zonos-country-select", { handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", null, h("zonos-language-select", { handleOnClose: () => this.setShowLanguageSelect(false) }))))));
170
+ }), h("zonos-card", { spacing: "12px" }, h("zonos-v-stack", { spacing: 12 }, h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Duty de minimis", content: ImportIcon }), h("zonos-text", null, dutyDeMinimisMessage)), h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Tax de minimis", content: MoneyIcon }), h("zonos-text", null, taxDeMinimisMessage)), additionalInformation && (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Low value order shipping restriction", content: BagIcon }), h("zonos-text", null, additionalInformation))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", null, h("zonos-country-select", { handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", null, h("zonos-language-select", { handleOnClose: () => this.setShowLanguageSelect(false) }))))));
111
171
  }
112
172
  static get is() { return "zonos-hello-dialog"; }
113
173
  static get encapsulation() { return "shadow"; }
@@ -1,10 +1,22 @@
1
1
  export const stringsArabic = {
2
+ '${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
3
+ value: '${percentage} ضريبة القيمة المضافة مستحقة على أي طلب يتجاوز ${threshold} بالإضافة إلى رسوم معاملة إدخال الاستيراد ورسوم MPI.',
4
+ },
5
+ '${percentage} GST due on any order above ${threshold}.': {
6
+ value: '${percentage} ضريبة القيمة المضافة مستحقة على أي طلب يتجاوز ${threshold}.',
7
+ },
2
8
  'Above de minimis threshold for': {
3
9
  value: 'أعلى من الحد الأدنى لـ',
4
10
  },
5
11
  Address: {
6
12
  value: 'العنوان',
7
13
  },
14
+ 'Address line 1': {
15
+ value: 'سطر العنوان 1',
16
+ },
17
+ 'Address line 2': {
18
+ value: 'سطر العنوان 2',
19
+ },
8
20
  Back: {
9
21
  value: 'رجوع',
10
22
  },
@@ -14,12 +26,18 @@ export const stringsArabic = {
14
26
  'Cart subtotal': {
15
27
  value: 'المجموع الفرعي للسلة',
16
28
  },
29
+ City: {
30
+ value: 'مدينة',
31
+ },
17
32
  Contact: {
18
33
  value: 'اتصل بنا',
19
34
  },
20
35
  'Continue to shipping': {
21
36
  value: 'متابعة إلى الشحن',
22
37
  },
38
+ Country: {
39
+ value: 'بلد',
40
+ },
23
41
  Customer: {
24
42
  value: 'العميل',
25
43
  },
@@ -59,6 +77,9 @@ export const stringsArabic = {
59
77
  'Know about duties and taxes before you buy. Shop with confidence!': {
60
78
  value: 'تعرف على الرسوم والضرائب قبل الشراء. اشترِ بثقة!',
61
79
  },
80
+ Name: {
81
+ value: 'اسم',
82
+ },
62
83
  'No shipping method selected': {
63
84
  value: 'لم يتم تحديد طريقة الشحن',
64
85
  },
@@ -77,6 +98,9 @@ export const stringsArabic = {
77
98
  'Order total': {
78
99
  value: 'إجمالي الطلبية',
79
100
  },
101
+ 'Orders to ${countryName} must be over ${threshold} to ship.': {
102
+ value: 'يجب أن تتجاوز الطلبيات إلى ${countryName} ${threshold} ليتم شحنها.',
103
+ },
80
104
  Pay: {
81
105
  value: 'دفع',
82
106
  },
@@ -98,6 +122,12 @@ export const stringsArabic = {
98
122
  'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
99
123
  value: 'يرجى التأكد من أن نصك يستخدم الأبجدية اللاتينية فقط (A-Z, a-z).',
100
124
  },
125
+ 'Please resolve the following errors:': {
126
+ value: 'الرجاء حل الأخطاء التالية:',
127
+ },
128
+ 'Postal code': {
129
+ value: 'الرمز البريدي',
130
+ },
101
131
  'Powered by': {
102
132
  value: 'مشغل بواسطة',
103
133
  },
@@ -140,6 +170,9 @@ export const stringsArabic = {
140
170
  Spend: {
141
171
  value: 'إنفاق',
142
172
  },
173
+ State: {
174
+ value: 'ولاية',
175
+ },
143
176
  'Taxes will apply to all orders': {
144
177
  value: 'ستنطبق الضرائب على جميع الطلبات',
145
178
  },
@@ -176,6 +209,9 @@ export const stringsArabic = {
176
209
  'duty free': {
177
210
  value: 'معفى من الرسوم',
178
211
  },
212
+ 'only supports Latin characters (A-Z, a-z)': {
213
+ value: 'يدعم فقط الأحرف اللاتينية (A-Z, a-z)',
214
+ },
179
215
  'tax free': {
180
216
  value: 'معفى من الضرائب',
181
217
  },
@@ -1,10 +1,22 @@
1
1
  export const stringsBase = {
2
+ '${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
3
+ value: '${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.',
4
+ },
5
+ '${percentage} GST due on any order above ${threshold}.': {
6
+ value: '${percentage} GST due on any order above ${threshold}.',
7
+ },
2
8
  'Above de minimis threshold for': {
3
9
  value: 'Above de minimis threshold for',
4
10
  },
5
11
  Address: {
6
12
  value: 'Address',
7
13
  },
14
+ 'Address line 1': {
15
+ value: 'Address line 1',
16
+ },
17
+ 'Address line 2': {
18
+ value: 'Address line 2',
19
+ },
8
20
  Back: {
9
21
  value: 'Back',
10
22
  },
@@ -14,12 +26,18 @@ export const stringsBase = {
14
26
  'Cart subtotal': {
15
27
  value: 'Cart subtotal',
16
28
  },
29
+ City: {
30
+ value: 'City',
31
+ },
17
32
  Contact: {
18
33
  value: 'Contact',
19
34
  },
20
35
  'Continue to shipping': {
21
36
  value: 'Continue to shipping',
22
37
  },
38
+ Country: {
39
+ value: 'Country',
40
+ },
23
41
  Customer: {
24
42
  value: 'Customer',
25
43
  },
@@ -59,6 +77,9 @@ export const stringsBase = {
59
77
  'Know about duties and taxes before you buy. Shop with confidence!': {
60
78
  value: 'Know about duties and taxes before you buy. Shop with confidence!',
61
79
  },
80
+ Name: {
81
+ value: 'Name',
82
+ },
62
83
  'No shipping method selected': {
63
84
  value: 'No shipping method selected',
64
85
  },
@@ -77,6 +98,9 @@ export const stringsBase = {
77
98
  'Order total': {
78
99
  value: 'Order total',
79
100
  },
101
+ 'Orders to ${countryName} must be over ${threshold} to ship.': {
102
+ value: 'Orders to ${countryName} must be over ${threshold} to ship.',
103
+ },
80
104
  Pay: {
81
105
  value: 'Pay',
82
106
  },
@@ -98,6 +122,12 @@ export const stringsBase = {
98
122
  'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
99
123
  value: 'Please ensure your text uses the Latin alphabet only (A-Z, a-z).',
100
124
  },
125
+ 'Please resolve the following errors:': {
126
+ value: 'Please resolve the following errors:',
127
+ },
128
+ 'Postal code': {
129
+ value: 'Postal code',
130
+ },
101
131
  'Powered by': {
102
132
  value: 'Powered by',
103
133
  },
@@ -140,6 +170,9 @@ export const stringsBase = {
140
170
  Spend: {
141
171
  value: 'Spend',
142
172
  },
173
+ State: {
174
+ value: 'State',
175
+ },
143
176
  'Taxes will apply to all orders': {
144
177
  value: 'Taxes will apply to all orders',
145
178
  },
@@ -176,6 +209,9 @@ export const stringsBase = {
176
209
  'duty free': {
177
210
  value: 'duty free',
178
211
  },
212
+ 'only supports Latin characters (A-Z, a-z)': {
213
+ value: 'only supports Latin characters (A-Z, a-z)',
214
+ },
179
215
  'tax free': {
180
216
  value: 'tax free',
181
217
  },
@@ -1,10 +1,22 @@
1
1
  export const stringsChinese = {
2
+ '${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
3
+ value: '任何订单超过${threshold},除了需缴纳${percentage}的商品及服务税外,还包括进口货物申报费和MPI征费。',
4
+ },
5
+ '${percentage} GST due on any order above ${threshold}.': {
6
+ value: '任何订单超过${threshold},需缴纳${percentage}的商品及服务税。',
7
+ },
2
8
  'Above de minimis threshold for': {
3
9
  value: '超过最低征税门槛',
4
10
  },
5
11
  Address: {
6
12
  value: '地址',
7
13
  },
14
+ 'Address line 1': {
15
+ value: '地址行1',
16
+ },
17
+ 'Address line 2': {
18
+ value: '地址行2',
19
+ },
8
20
  Back: {
9
21
  value: '返回',
10
22
  },
@@ -14,12 +26,18 @@ export const stringsChinese = {
14
26
  'Cart subtotal': {
15
27
  value: '购物车小计',
16
28
  },
29
+ City: {
30
+ value: '城市',
31
+ },
17
32
  Contact: {
18
33
  value: '联系方式',
19
34
  },
20
35
  'Continue to shipping': {
21
36
  value: '继续运送',
22
37
  },
38
+ Country: {
39
+ value: '国家',
40
+ },
23
41
  Customer: {
24
42
  value: '顾客',
25
43
  },
@@ -59,6 +77,9 @@ export const stringsChinese = {
59
77
  'Know about duties and taxes before you buy. Shop with confidence!': {
60
78
  value: '在购买之前了解关税和税款。放心购物!',
61
79
  },
80
+ Name: {
81
+ value: '名称',
82
+ },
62
83
  'No shipping method selected': {
63
84
  value: '未选择运输方式',
64
85
  },
@@ -77,6 +98,9 @@ export const stringsChinese = {
77
98
  'Order total': {
78
99
  value: '订单总计',
79
100
  },
101
+ 'Orders to ${countryName} must be over ${threshold} to ship.': {
102
+ value: '寄往${countryName}的订单必须超过${threshold}才能发货。',
103
+ },
80
104
  Pay: {
81
105
  value: '支付',
82
106
  },
@@ -98,6 +122,12 @@ export const stringsChinese = {
98
122
  'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
99
123
  value: '请确保您的文本仅使用拉丁字母表(A-Z, a-z)。',
100
124
  },
125
+ 'Please resolve the following errors:': {
126
+ value: '请解决以下错误:',
127
+ },
128
+ 'Postal code': {
129
+ value: '邮政编码',
130
+ },
101
131
  'Powered by': {
102
132
  value: '由...提供支持',
103
133
  },
@@ -140,6 +170,9 @@ export const stringsChinese = {
140
170
  Spend: {
141
171
  value: '花费',
142
172
  },
173
+ State: {
174
+ value: '州',
175
+ },
143
176
  'Taxes will apply to all orders': {
144
177
  value: '税款将适用于所有订单',
145
178
  },
@@ -176,6 +209,9 @@ export const stringsChinese = {
176
209
  'duty free': {
177
210
  value: '免征关税',
178
211
  },
212
+ 'only supports Latin characters (A-Z, a-z)': {
213
+ value: '仅支持拉丁字符 (A-Z, a-z)',
214
+ },
179
215
  'tax free': {
180
216
  value: '免税',
181
217
  },
@@ -1,10 +1,22 @@
1
1
  export const stringsDanish = {
2
+ '${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
3
+ value: '${percentage} GST skyldig på enhver ordre over ${threshold}, sammen med et import indgangstransaktionsgebyr og MPI-afgift.',
4
+ },
5
+ '${percentage} GST due on any order above ${threshold}.': {
6
+ value: '${percentage} GST skyldig på enhver ordre over ${threshold}.',
7
+ },
2
8
  'Above de minimis threshold for': {
3
9
  value: 'Over de minimis-grænsen for',
4
10
  },
5
11
  Address: {
6
12
  value: 'Adresse',
7
13
  },
14
+ 'Address line 1': {
15
+ value: 'Adresse linje 1',
16
+ },
17
+ 'Address line 2': {
18
+ value: 'Adresse linje 2',
19
+ },
8
20
  Back: {
9
21
  value: 'Tilbage',
10
22
  },
@@ -14,12 +26,18 @@ export const stringsDanish = {
14
26
  'Cart subtotal': {
15
27
  value: 'Subtotal på kurv',
16
28
  },
29
+ City: {
30
+ value: 'By',
31
+ },
17
32
  Contact: {
18
33
  value: 'Kontakt',
19
34
  },
20
35
  'Continue to shipping': {
21
36
  value: 'Fortsæt til levering',
22
37
  },
38
+ Country: {
39
+ value: 'Land',
40
+ },
23
41
  Customer: {
24
42
  value: 'Kunde',
25
43
  },
@@ -59,6 +77,9 @@ export const stringsDanish = {
59
77
  'Know about duties and taxes before you buy. Shop with confidence!': {
60
78
  value: 'Lær om told og skatter, før du køber. Handle trygt!',
61
79
  },
80
+ Name: {
81
+ value: 'Navn',
82
+ },
62
83
  'No shipping method selected': {
63
84
  value: 'Ingen leveringsmetode valgt',
64
85
  },
@@ -77,6 +98,9 @@ export const stringsDanish = {
77
98
  'Order total': {
78
99
  value: 'Ordresum',
79
100
  },
101
+ 'Orders to ${countryName} must be over ${threshold} to ship.': {
102
+ value: 'Ordrer til ${countryName} skal være over ${threshold} for at blive sendt.',
103
+ },
80
104
  Pay: {
81
105
  value: 'Betal',
82
106
  },
@@ -98,6 +122,12 @@ export const stringsDanish = {
98
122
  'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
99
123
  value: 'Sørg venligst for, at din tekst kun bruger det latinske alfabet (A-Z, a-z).',
100
124
  },
125
+ 'Please resolve the following errors:': {
126
+ value: 'Venligst ret følgende fejl:',
127
+ },
128
+ 'Postal code': {
129
+ value: 'Postnummer',
130
+ },
101
131
  'Powered by': {
102
132
  value: 'Drevet af',
103
133
  },
@@ -140,6 +170,9 @@ export const stringsDanish = {
140
170
  Spend: {
141
171
  value: 'Brug',
142
172
  },
173
+ State: {
174
+ value: 'Stat',
175
+ },
143
176
  'Taxes will apply to all orders': {
144
177
  value: 'Skatter vil gælde for alle ordrer',
145
178
  },
@@ -176,6 +209,9 @@ export const stringsDanish = {
176
209
  'duty free': {
177
210
  value: 'toldfrit',
178
211
  },
212
+ 'only supports Latin characters (A-Z, a-z)': {
213
+ value: 'understøtter kun latinske tegn (A-Z, a-z)',
214
+ },
179
215
  'tax free': {
180
216
  value: 'skattefrit',
181
217
  },
@@ -1,10 +1,22 @@
1
1
  export const stringsDutch = {
2
+ '${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
3
+ value: '${percentage} BTW verschuldigd op elke bestelling boven ${threshold}, inclusief een invoertransactiekosten en MPI-heffing.',
4
+ },
5
+ '${percentage} GST due on any order above ${threshold}.': {
6
+ value: '${percentage} BTW verschuldigd op elke bestelling boven ${threshold}.',
7
+ },
2
8
  'Above de minimis threshold for': {
3
9
  value: 'Boven de minimale drempel voor',
4
10
  },
5
11
  Address: {
6
12
  value: 'Adres',
7
13
  },
14
+ 'Address line 1': {
15
+ value: 'Adreslijn 1',
16
+ },
17
+ 'Address line 2': {
18
+ value: 'Adreslijn 2',
19
+ },
8
20
  Back: {
9
21
  value: 'Terug',
10
22
  },
@@ -14,12 +26,18 @@ export const stringsDutch = {
14
26
  'Cart subtotal': {
15
27
  value: 'Winkelwagen subtotaal',
16
28
  },
29
+ City: {
30
+ value: 'Stad',
31
+ },
17
32
  Contact: {
18
33
  value: 'Contact',
19
34
  },
20
35
  'Continue to shipping': {
21
36
  value: 'Ga verder naar verzending',
22
37
  },
38
+ Country: {
39
+ value: 'Land',
40
+ },
23
41
  Customer: {
24
42
  value: 'Klant',
25
43
  },
@@ -59,6 +77,9 @@ export const stringsDutch = {
59
77
  'Know about duties and taxes before you buy. Shop with confidence!': {
60
78
  value: 'Weet wat de heffingen en belastingen zijn voordat je koopt. Winkel met vertrouwen!',
61
79
  },
80
+ Name: {
81
+ value: 'Naam',
82
+ },
62
83
  'No shipping method selected': {
63
84
  value: 'Geen verzendmethode geselecteerd',
64
85
  },
@@ -77,6 +98,9 @@ export const stringsDutch = {
77
98
  'Order total': {
78
99
  value: 'Totaal bestelling',
79
100
  },
101
+ 'Orders to ${countryName} must be over ${threshold} to ship.': {
102
+ value: 'Bestellingen naar ${countryName} moeten meer dan ${threshold} zijn om verzonden te worden.',
103
+ },
80
104
  Pay: {
81
105
  value: 'Betalen',
82
106
  },
@@ -98,6 +122,12 @@ export const stringsDutch = {
98
122
  'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
99
123
  value: 'Zorg ervoor dat uw tekst alleen het Latijnse alfabet gebruikt (A-Z, a-z).',
100
124
  },
125
+ 'Please resolve the following errors:': {
126
+ value: 'Gelieve de volgende fouten op te lossen:',
127
+ },
128
+ 'Postal code': {
129
+ value: 'Postcode',
130
+ },
101
131
  'Powered by': {
102
132
  value: 'Aangedreven door',
103
133
  },
@@ -140,6 +170,9 @@ export const stringsDutch = {
140
170
  Spend: {
141
171
  value: 'Uitgeven',
142
172
  },
173
+ State: {
174
+ value: 'Staat',
175
+ },
143
176
  'Taxes will apply to all orders': {
144
177
  value: 'Belastingen gelden voor alle bestellingen',
145
178
  },
@@ -176,6 +209,9 @@ export const stringsDutch = {
176
209
  'duty free': {
177
210
  value: 'heffingvrij',
178
211
  },
212
+ 'only supports Latin characters (A-Z, a-z)': {
213
+ value: 'ondersteunt alleen Latijnse karakters (A-Z, a-z)',
214
+ },
179
215
  'tax free': {
180
216
  value: 'belastingvrij',
181
217
  },