@zonos/elements 1.3.82 → 1.3.83

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 (158) hide show
  1. package/dist/cjs/{cart-ba540c8e.js → cart-4de3faca.js} +455 -16
  2. package/dist/cjs/{createCustomEvent-1fd24ad8.js → createCustomEvent-65331eae.js} +1 -1
  3. package/dist/cjs/index.cjs.js +7 -7
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/{paypal-6bbe55a7.js → paypal-370b3a10.js} +1 -1
  6. package/dist/cjs/{zonos-address_8.cjs.entry.js → zonos-address_7.cjs.entry.js} +1 -56
  7. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +99 -29
  8. package/dist/cjs/zonos-checkout.cjs.entry.js +4 -4
  9. package/dist/cjs/zonos-collapse.cjs.entry.js +62 -0
  10. package/dist/cjs/zonos-controller.cjs.entry.js +1 -1
  11. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  12. package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
  13. package/dist/cjs/zonos-elements.cjs.js +1 -1
  14. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +1 -1
  15. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  16. package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
  17. package/dist/cjs/zonos-notification_3.cjs.entry.js +2 -2
  18. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +1 -11
  19. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +17 -6
  20. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +3 -1
  21. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/assets/ChevronUpIcon.svg +23 -0
  22. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +55 -9
  23. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +57 -16
  24. package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +20 -27
  25. package/dist/collection/components/store/checkout/cart.js +29 -11
  26. package/dist/collection/components/store/checkout/stripe.js +2 -2
  27. package/dist/collection/components/store/translationStore/strings.arabic.js +21 -0
  28. package/dist/collection/components/store/translationStore/strings.base.js +21 -0
  29. package/dist/collection/components/store/translationStore/strings.chinese.js +21 -0
  30. package/dist/collection/components/store/translationStore/strings.danish.js +21 -0
  31. package/dist/collection/components/store/translationStore/strings.dutch.js +21 -0
  32. package/dist/collection/components/store/translationStore/strings.french.js +22 -1
  33. package/dist/collection/components/store/translationStore/strings.german.js +22 -1
  34. package/dist/collection/components/store/translationStore/strings.hebrew.js +22 -1
  35. package/dist/collection/components/store/translationStore/strings.indonesian.js +21 -0
  36. package/dist/collection/components/store/translationStore/strings.italian.js +21 -0
  37. package/dist/collection/components/store/translationStore/strings.japanese.js +21 -0
  38. package/dist/collection/components/store/translationStore/strings.korean.js +21 -0
  39. package/dist/collection/components/store/translationStore/strings.norwegian.js +21 -0
  40. package/dist/collection/components/store/translationStore/strings.polish.js +21 -0
  41. package/dist/collection/components/store/translationStore/strings.portuguese.js +21 -0
  42. package/dist/collection/components/store/translationStore/strings.russian.js +22 -1
  43. package/dist/collection/components/store/translationStore/strings.spanish.js +21 -0
  44. package/dist/collection/components/store/translationStore/strings.swedish.js +21 -0
  45. package/dist/collection/components/store/translationStore/strings.turkish.js +21 -0
  46. package/dist/collection/components/store/translationStore/strings.vietnamese.js +21 -0
  47. package/dist/collection/components/utils/checkout/{sortServiceLevelOptions.js → sortServiceLevelOptionsByAmount.js} +1 -1
  48. package/dist/esm/{cart-7df78f9f.js → cart-bdc45f59.js} +455 -17
  49. package/dist/esm/{createCustomEvent-fcec608e.js → createCustomEvent-4db13122.js} +1 -1
  50. package/dist/esm/index.js +7 -7
  51. package/dist/esm/loader.js +1 -1
  52. package/dist/esm/{paypal-a27aad03.js → paypal-1b29d424.js} +1 -1
  53. package/dist/esm/{zonos-address_8.entry.js → zonos-address_7.entry.js} +2 -56
  54. package/dist/esm/zonos-cart-items_12.entry.js +99 -29
  55. package/dist/esm/zonos-checkout.entry.js +4 -4
  56. package/dist/esm/zonos-collapse.entry.js +58 -0
  57. package/dist/esm/zonos-controller.entry.js +1 -1
  58. package/dist/esm/zonos-country-flag.entry.js +1 -1
  59. package/dist/esm/zonos-country-select_4.entry.js +1 -1
  60. package/dist/esm/zonos-elements.js +1 -1
  61. package/dist/esm/zonos-hello-dialog.entry.js +1 -1
  62. package/dist/esm/zonos-hello.entry.js +1 -1
  63. package/dist/esm/zonos-language-select_2.entry.js +1 -1
  64. package/dist/esm/zonos-notification_3.entry.js +2 -2
  65. package/dist/esm/zonos-shipping-rich-radio.entry.js +1 -11
  66. package/dist/esm-es5/cart-bdc45f59.js +1 -0
  67. package/dist/esm-es5/{createCustomEvent-fcec608e.js → createCustomEvent-4db13122.js} +1 -1
  68. package/dist/esm-es5/index.js +1 -1
  69. package/dist/esm-es5/loader.js +1 -1
  70. package/dist/esm-es5/{paypal-a27aad03.js → paypal-1b29d424.js} +1 -1
  71. package/dist/esm-es5/{zonos-address_8.entry.js → zonos-address_7.entry.js} +1 -1
  72. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  73. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  74. package/dist/esm-es5/zonos-collapse.entry.js +1 -0
  75. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  76. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  77. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  78. package/dist/esm-es5/zonos-elements.js +1 -1
  79. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  80. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  81. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  82. package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
  83. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  84. package/dist/scripts/index.d.ts +499 -496
  85. package/dist/scripts/index.js +1 -1
  86. package/dist/scripts/loadZonos.js +1 -1
  87. package/dist/scripts/zonos.js +1 -1
  88. package/dist/types/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.d.ts +4 -1
  89. package/dist/types/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.d.ts +2 -6
  90. package/dist/types/components/store/checkout/cart.d.ts +9 -7
  91. package/dist/types/components/store/translationStore/strings.arabic.d.ts +21 -0
  92. package/dist/types/components/store/translationStore/strings.base.d.ts +21 -0
  93. package/dist/types/components/store/translationStore/strings.chinese.d.ts +21 -0
  94. package/dist/types/components/store/translationStore/strings.danish.d.ts +21 -0
  95. package/dist/types/components/store/translationStore/strings.dutch.d.ts +21 -0
  96. package/dist/types/components/store/translationStore/strings.french.d.ts +21 -0
  97. package/dist/types/components/store/translationStore/strings.german.d.ts +21 -0
  98. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +21 -0
  99. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +21 -0
  100. package/dist/types/components/store/translationStore/strings.italian.d.ts +21 -0
  101. package/dist/types/components/store/translationStore/strings.japanese.d.ts +21 -0
  102. package/dist/types/components/store/translationStore/strings.korean.d.ts +21 -0
  103. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +21 -0
  104. package/dist/types/components/store/translationStore/strings.polish.d.ts +21 -0
  105. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +21 -0
  106. package/dist/types/components/store/translationStore/strings.russian.d.ts +21 -0
  107. package/dist/types/components/store/translationStore/strings.spanish.d.ts +21 -0
  108. package/dist/types/components/store/translationStore/strings.swedish.d.ts +21 -0
  109. package/dist/types/components/store/translationStore/strings.turkish.d.ts +21 -0
  110. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +21 -0
  111. package/dist/types/components/store/translationStore.d.ts +1 -1
  112. package/dist/types/components/utils/checkout/{sortServiceLevelOptions.d.ts → sortServiceLevelOptionsByAmount.d.ts} +1 -1
  113. package/dist/types/components.d.ts +10 -8
  114. package/dist/zonos-elements/assets/ChevronUpIcon.svg +23 -1
  115. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  116. package/dist/zonos-elements/index.esm.js +1 -1
  117. package/dist/zonos-elements/{p-270cc182.system.entry.js → p-00bb8221.system.entry.js} +1 -1
  118. package/dist/zonos-elements/{p-b09c3702.entry.js → p-017bf338.entry.js} +1 -1
  119. package/dist/zonos-elements/{p-2d2edb5a.system.entry.js → p-01d11845.system.entry.js} +1 -1
  120. package/dist/zonos-elements/p-0cc8c6a3.system.js +1 -0
  121. package/dist/zonos-elements/{p-43e2de45.system.entry.js → p-2140ccb4.system.entry.js} +1 -1
  122. package/dist/zonos-elements/{p-4e06a2bb.system.entry.js → p-2183128a.system.entry.js} +1 -1
  123. package/dist/zonos-elements/p-278d61ed.js +1 -0
  124. package/dist/zonos-elements/p-2b60faf8.entry.js +1 -0
  125. package/dist/zonos-elements/{p-8dd38974.entry.js → p-3347e142.entry.js} +1 -1
  126. package/dist/zonos-elements/{p-4097a25b.system.entry.js → p-3457c5e8.system.entry.js} +1 -1
  127. package/dist/zonos-elements/p-4abca0e9.system.entry.js +1 -0
  128. package/dist/zonos-elements/{p-15651b06.system.js → p-4ec7afc5.system.js} +1 -1
  129. package/dist/zonos-elements/{p-bf84416a.entry.js → p-5fb337a0.entry.js} +1 -1
  130. package/dist/zonos-elements/{p-a4cdd4f2.entry.js → p-6aa35f18.entry.js} +1 -1
  131. package/dist/zonos-elements/{p-cfd53396.entry.js → p-771e2623.entry.js} +1 -1
  132. package/dist/zonos-elements/{p-acabfc47.js → p-7cc5e325.js} +1 -1
  133. package/dist/zonos-elements/p-7f3aeb53.system.entry.js +1 -0
  134. package/dist/zonos-elements/p-844ec9f9.system.entry.js +1 -0
  135. package/dist/zonos-elements/p-9931bea7.system.entry.js +1 -0
  136. package/dist/zonos-elements/{p-cd17565d.entry.js → p-9b911f6f.entry.js} +1 -1
  137. package/dist/zonos-elements/{p-59806a8e.system.entry.js → p-9cfa3736.system.entry.js} +1 -1
  138. package/dist/zonos-elements/{p-957b1c1b.system.js → p-a1fa0a1c.system.js} +1 -1
  139. package/dist/zonos-elements/{p-df83e30b.entry.js → p-a34f0674.entry.js} +1 -1
  140. package/dist/zonos-elements/{p-4683797b.system.js → p-a6cff57f.system.js} +1 -1
  141. package/dist/zonos-elements/{p-112a969c.entry.js → p-b0303b0e.entry.js} +1 -1
  142. package/dist/zonos-elements/{p-2c5e2163.entry.js → p-c6350880.entry.js} +1 -1
  143. package/dist/zonos-elements/p-c78dd680.system.js +1 -1
  144. package/dist/zonos-elements/{p-2024313c.js → p-ce41cbde.js} +1 -1
  145. package/dist/zonos-elements/p-cec3e1ed.entry.js +1 -0
  146. package/dist/zonos-elements/{p-d48f3bd3.system.entry.js → p-e3df5ff6.system.entry.js} +1 -1
  147. package/dist/zonos-elements/{p-5d4bde9c.system.entry.js → p-f1d043ad.system.entry.js} +1 -1
  148. package/dist/zonos-elements/p-f1e452e1.entry.js +1 -0
  149. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  150. package/package.json +1 -1
  151. package/dist/esm-es5/cart-7df78f9f.js +0 -1
  152. package/dist/zonos-elements/p-85600e22.system.entry.js +0 -1
  153. package/dist/zonos-elements/p-8fd6ae63.js +0 -1
  154. package/dist/zonos-elements/p-a1c5c1a2.entry.js +0 -1
  155. package/dist/zonos-elements/p-aa899bf7.entry.js +0 -1
  156. package/dist/zonos-elements/p-cffe7cc8.system.entry.js +0 -1
  157. package/dist/zonos-elements/p-e7eb0a92.system.js +0 -1
  158. package/dist/zonos-elements/p-f4667002.system.entry.js +0 -1
@@ -86,12 +86,18 @@ export const stringsSwedish = {
86
86
  "Don't close": {
87
87
  value: 'Stäng inte',
88
88
  },
89
+ 'Due at delivery': {
90
+ value: 'Betalas vid leverans',
91
+ },
89
92
  'Duties & taxes in Australia, VAT or GST is [percentage] and is due on all orders.': {
90
93
  value: 'Tullar och skatter i Australien, moms eller GST är [percentage] och förfaller på alla beställningar.',
91
94
  },
92
95
  'Duties and taxes will be applied to items and shipping.': {
93
96
  value: 'Tull och skatter kommer att tillämpas på varor och frakt.',
94
97
  },
98
+ 'Duties and taxes will be charged upon delivery.': {
99
+ value: 'Tullar och skatter debiteras vid leverans.',
100
+ },
95
101
  'Duties will apply to all orders.': {
96
102
  value: 'Tullar kommer att gälla för alla beställningar.',
97
103
  },
@@ -107,6 +113,9 @@ export const stringsSwedish = {
107
113
  'Error updating Checkout': {
108
114
  value: 'Fel vid uppdatering av utcheckning',
109
115
  },
116
+ Estimated: {
117
+ value: 'Uppskattad',
118
+ },
110
119
  'Expected delivery': {
111
120
  value: 'Beräknad leverans',
112
121
  },
@@ -128,6 +137,9 @@ export const stringsSwedish = {
128
137
  Hide: {
129
138
  value: 'Dölj',
130
139
  },
140
+ 'Hide non prepaid methods': {
141
+ value: 'Dölj icke-förbetalda metoder',
142
+ },
131
143
  'Invalid promo code': {
132
144
  value: 'Ogiltig kampanjkod',
133
145
  },
@@ -161,6 +173,9 @@ export const stringsSwedish = {
161
173
  'No shipping methods found - try editing your address or contacting support if the error persists': {
162
174
  value: 'Inga leveransmetoder hittades - försök redigera din adress eller kontakta supporten om felet kvarstår',
163
175
  },
176
+ 'Nothing due at delivery': {
177
+ value: 'Ingenting att betala vid leverans',
178
+ },
164
179
  'Nothing due at the door': {
165
180
  value: 'Ingenting att betala vid dörren',
166
181
  },
@@ -269,6 +284,9 @@ export const stringsSwedish = {
269
284
  Show: {
270
285
  value: 'Visa',
271
286
  },
287
+ 'Show non prepaid methods': {
288
+ value: 'Visa icke förbetalda metoder',
289
+ },
272
290
  'Something went wrong.': {
273
291
  value: 'Något gick fel.',
274
292
  },
@@ -341,6 +359,9 @@ export const stringsSwedish = {
341
359
  'Would you like to close checkout and return to the site?': {
342
360
  value: 'Vill du stänga kassan och återvända till webbplatsen?',
343
361
  },
362
+ 'You may incur additional fees from the shipping carrier by not prepaying.': {
363
+ value: 'Du kan få extra avgifter från fraktbolaget om du inte förbetalar.',
364
+ },
344
365
  "You're all set!": {
345
366
  value: 'Du är klar!',
346
367
  },
@@ -86,12 +86,18 @@ export const stringsTurkish = {
86
86
  "Don't close": {
87
87
  value: 'Kapatma',
88
88
  },
89
+ 'Due at delivery': {
90
+ value: 'Teslimatta ödenecek',
91
+ },
89
92
  'Duties & taxes in Australia, VAT or GST is [percentage] and is due on all orders.': {
90
93
  value: "Avustralya'da gümrük vergileri ve vergiler, KDV veya GST [percentage] olup tüm siparişlerde ödenir.",
91
94
  },
92
95
  'Duties and taxes will be applied to items and shipping.': {
93
96
  value: 'Ürünlere ve kargoya vergi ve gümrük vergisi uygulanacak.',
94
97
  },
98
+ 'Duties and taxes will be charged upon delivery.': {
99
+ value: 'Vergi ve harçlar teslimatta tahsil edilecektir.',
100
+ },
95
101
  'Duties will apply to all orders.': {
96
102
  value: 'Tüm siparişlere gümrük vergisi uygulanacaktır.',
97
103
  },
@@ -107,6 +113,9 @@ export const stringsTurkish = {
107
113
  'Error updating Checkout': {
108
114
  value: 'Ödeme güncelleme hatası',
109
115
  },
116
+ Estimated: {
117
+ value: 'Tahmini',
118
+ },
110
119
  'Expected delivery': {
111
120
  value: 'Beklenen teslimat',
112
121
  },
@@ -128,6 +137,9 @@ export const stringsTurkish = {
128
137
  Hide: {
129
138
  value: 'Sakla',
130
139
  },
140
+ 'Hide non prepaid methods': {
141
+ value: 'Ön ödemesiz yöntemleri gizle',
142
+ },
131
143
  'Invalid promo code': {
132
144
  value: 'Geçersiz promosyon kodu',
133
145
  },
@@ -161,6 +173,9 @@ export const stringsTurkish = {
161
173
  'No shipping methods found - try editing your address or contacting support if the error persists': {
162
174
  value: 'Hiçbir gönderi yöntemi bulunamadı - eğer hata devam ediyorsa adresinizi düzenlemeyi deneyin veya destekle iletişime geçin',
163
175
  },
176
+ 'Nothing due at delivery': {
177
+ value: 'Teslimatta ödenecek bir şey yok',
178
+ },
164
179
  'Nothing due at the door': {
165
180
  value: 'Kapıda ödenecek bir şey yok',
166
181
  },
@@ -269,6 +284,9 @@ export const stringsTurkish = {
269
284
  Show: {
270
285
  value: 'Göster',
271
286
  },
287
+ 'Show non prepaid methods': {
288
+ value: 'Ön ödemesiz yöntemleri göster',
289
+ },
272
290
  'Something went wrong.': {
273
291
  value: 'Bir şeyler yanlış gitti.',
274
292
  },
@@ -341,6 +359,9 @@ export const stringsTurkish = {
341
359
  'Would you like to close checkout and return to the site?': {
342
360
  value: 'Ödemeyi kapatıp siteye geri dönmek ister misiniz?',
343
361
  },
362
+ 'You may incur additional fees from the shipping carrier by not prepaying.': {
363
+ value: 'Ön ödeme yapmazsanız, nakliye şirketinden ek ücretler alabilirsiniz.',
364
+ },
344
365
  "You're all set!": {
345
366
  value: 'Hazırsınız!',
346
367
  },
@@ -86,12 +86,18 @@ export const stringsVietnamese = {
86
86
  "Don't close": {
87
87
  value: 'Đừng đóng',
88
88
  },
89
+ 'Due at delivery': {
90
+ value: 'Thanh toán khi giao hàng',
91
+ },
89
92
  'Duties & taxes in Australia, VAT or GST is [percentage] and is due on all orders.': {
90
93
  value: 'Thuế và phí tại Úc, VAT hoặc GST là [percentage] và phải trả cho tất cả các đơn hàng.',
91
94
  },
92
95
  'Duties and taxes will be applied to items and shipping.': {
93
96
  value: 'Thuế và phí sẽ được áp dụng cho hàng hóa và vận chuyển.',
94
97
  },
98
+ 'Duties and taxes will be charged upon delivery.': {
99
+ value: 'Thuế và phí sẽ được tính khi giao hàng.',
100
+ },
95
101
  'Duties will apply to all orders.': {
96
102
  value: 'Thuế sẽ áp dụng cho tất cả các đơn hàng.',
97
103
  },
@@ -107,6 +113,9 @@ export const stringsVietnamese = {
107
113
  'Error updating Checkout': {
108
114
  value: 'Lỗi khi cập nhật phiên thanh toán',
109
115
  },
116
+ Estimated: {
117
+ value: 'Ước tính',
118
+ },
110
119
  'Expected delivery': {
111
120
  value: 'Dự kiến giao hàng',
112
121
  },
@@ -128,6 +137,9 @@ export const stringsVietnamese = {
128
137
  Hide: {
129
138
  value: 'Ẩn',
130
139
  },
140
+ 'Hide non prepaid methods': {
141
+ value: 'Ẩn các phương thức không trả trước',
142
+ },
131
143
  'Invalid promo code': {
132
144
  value: 'Mã khuyến mãi không hợp lệ',
133
145
  },
@@ -161,6 +173,9 @@ export const stringsVietnamese = {
161
173
  'No shipping methods found - try editing your address or contacting support if the error persists': {
162
174
  value: 'Không tìm thấy phương thức vận chuyển - hãy thử chỉnh sửa địa chỉ của bạn hoặc liên hệ hỗ trợ nếu lỗi vẫn tiếp tục',
163
175
  },
176
+ 'Nothing due at delivery': {
177
+ value: 'Không có gì phải trả khi giao hàng',
178
+ },
164
179
  'Nothing due at the door': {
165
180
  value: 'Không có gì phải trả tại cửa',
166
181
  },
@@ -269,6 +284,9 @@ export const stringsVietnamese = {
269
284
  Show: {
270
285
  value: 'Hiển thị',
271
286
  },
287
+ 'Show non prepaid methods': {
288
+ value: 'Hiển thị các phương thức không trả trước',
289
+ },
272
290
  'Something went wrong.': {
273
291
  value: 'Đã xảy ra lỗi.',
274
292
  },
@@ -341,6 +359,9 @@ export const stringsVietnamese = {
341
359
  'Would you like to close checkout and return to the site?': {
342
360
  value: 'Bạn có muốn đóng thanh toán và quay lại trang web không?',
343
361
  },
362
+ 'You may incur additional fees from the shipping carrier by not prepaying.': {
363
+ value: 'Bạn có thể phải chịu thêm phí từ nhà vận chuyển nếu không trả trước.',
364
+ },
344
365
  "You're all set!": {
345
366
  value: 'Bạn đã sẵn sàng!',
346
367
  },
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Sorts service levels with lower cost first
3
3
  */
4
- export const sortServiceLevelOptions = (serviceLevels) => {
4
+ export const sortServiceLevelOptionsByAmount = (serviceLevels) => {
5
5
  const sortedServiceLevels = serviceLevels.sort((a, b) => {
6
6
  return a.amount - b.amount;
7
7
  });