@ikas/loyalty-widget-renderer 1.0.0-alpha.8 → 1.0.0-alpha.81

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 (181) hide show
  1. package/build/assets/icons/arrow-right.d.ts +2 -0
  2. package/build/assets/icons/arrow-right.js +1 -0
  3. package/build/assets/icons/check-circle.d.ts +2 -0
  4. package/build/assets/icons/check-circle.js +1 -0
  5. package/build/assets/index.d.ts +7 -0
  6. package/build/assets/widget-icons/illustraions/check-fill.d.ts +2 -0
  7. package/build/assets/widget-icons/illustraions/check-fill.js +1 -0
  8. package/build/assets/widget-icons/illustraions/informationCircleIllustration.d.ts +2 -0
  9. package/build/assets/widget-icons/illustraions/informationCircleIllustration.js +1 -0
  10. package/build/assets/widget-icons/illustraions/medal.js +1 -1
  11. package/build/assets/widget-icons/illustraions/refundIllustration.d.ts +2 -0
  12. package/build/assets/widget-icons/illustraions/refundIllustration.js +1 -0
  13. package/build/assets/widget-icons/normal/informationCircle.d.ts +2 -0
  14. package/build/assets/widget-icons/normal/informationCircle.js +1 -0
  15. package/build/assets/widget-icons/normal/refund.d.ts +2 -0
  16. package/build/assets/widget-icons/normal/refund.js +1 -0
  17. package/build/ext/@babel/runtime/helpers/esm/arrayLikeToArray.js +1 -0
  18. package/build/ext/@babel/runtime/helpers/esm/arrayWithHoles.js +1 -0
  19. package/build/ext/@babel/runtime/helpers/esm/assertThisInitialized.js +1 -0
  20. package/build/ext/@babel/runtime/helpers/esm/classCallCheck.js +1 -0
  21. package/build/ext/@babel/runtime/helpers/esm/createClass.js +1 -0
  22. package/build/ext/@babel/runtime/helpers/esm/defineProperty.js +1 -0
  23. package/build/ext/@babel/runtime/helpers/esm/getPrototypeOf.js +1 -0
  24. package/build/ext/@babel/runtime/helpers/esm/inherits.js +1 -0
  25. package/build/ext/@babel/runtime/helpers/esm/iterableToArray.js +1 -0
  26. package/build/ext/@babel/runtime/helpers/esm/iterableToArrayLimit.js +1 -0
  27. package/build/ext/@babel/runtime/helpers/esm/nonIterableRest.js +1 -0
  28. package/build/ext/@babel/runtime/helpers/esm/objectWithoutProperties.js +1 -0
  29. package/build/ext/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -0
  30. package/build/ext/@babel/runtime/helpers/esm/possibleConstructorReturn.js +1 -0
  31. package/build/ext/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -0
  32. package/build/ext/@babel/runtime/helpers/esm/slicedToArray.js +1 -0
  33. package/build/ext/@babel/runtime/helpers/esm/toArray.js +1 -0
  34. package/build/ext/@babel/runtime/helpers/esm/toPrimitive.js +1 -0
  35. package/build/ext/@babel/runtime/helpers/esm/toPropertyKey.js +1 -0
  36. package/build/ext/@babel/runtime/helpers/esm/typeof.js +1 -0
  37. package/build/ext/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +1 -0
  38. package/build/ext/html-parse-stringify/dist/html-parse-stringify.module.js +1 -0
  39. package/build/ext/i18next/dist/esm/i18next.js +1 -1
  40. package/build/ext/react-i18next/dist/es/I18nextProvider.js +1 -1
  41. package/build/ext/react-i18next/dist/es/Trans.js +1 -0
  42. package/build/ext/react-i18next/dist/es/context.js +1 -1
  43. package/build/ext/react-i18next/dist/es/unescape.js +1 -1
  44. package/build/ext/react-i18next/dist/es/useTranslation.js +1 -1
  45. package/build/ext/react-i18next/dist/es/utils.js +1 -1
  46. package/build/ext/tslib/tslib.es6.mjs.js +1 -1
  47. package/build/ext/void-elements/index.js +1 -0
  48. package/build/index.d.ts +9 -0
  49. package/build/index.js +1 -1
  50. package/build/injector.d.ts +5 -0
  51. package/build/locales.d.ts +638 -0
  52. package/build/locales.js +1 -0
  53. package/build/models/common/index.d.ts +21 -0
  54. package/build/models/common/index.js +1 -0
  55. package/build/models/image/index.d.ts +2 -2
  56. package/build/models/image/index.js +1 -1
  57. package/build/models/index.d.ts +16 -6
  58. package/build/models/index.js +1 -1
  59. package/build/models/loyalty-customer-info/index.d.ts +29 -8
  60. package/build/models/loyalty-customer-info/index.js +1 -1
  61. package/build/models/loyalty-program-earning-method/index.d.ts +16 -30
  62. package/build/models/loyalty-program-earning-method/index.js +1 -1
  63. package/build/models/loyalty-program-point-history/index.d.ts +3 -3
  64. package/build/models/loyalty-program-point-history/index.js +1 -1
  65. package/build/models/loyalty-program-spending-method/index.d.ts +7 -20
  66. package/build/models/loyalty-program-spending-method/index.js +1 -1
  67. package/build/models/loyalty-widget/header/header-background/index.d.ts +2 -2
  68. package/build/models/loyalty-widget/header/header-background/index.js +1 -1
  69. package/build/models/loyalty-widget/header/index.d.ts +1 -1
  70. package/build/models/loyalty-widget/index.d.ts +4 -2
  71. package/build/models/loyalty-widget/index.js +1 -1
  72. package/build/models/loyalty-widget/settings/index.js +1 -1
  73. package/build/models/loyalty-widget/translations.d.ts +5 -0
  74. package/build/models/loyalty-widget/translations.js +1 -0
  75. package/build/models/mini-mode/index.d.ts +7 -0
  76. package/build/models/mini-mode/index.js +1 -0
  77. package/build/models/types/index.d.ts +25 -41
  78. package/build/models/types/index.js +1 -1
  79. package/build/renderer/components/animate-height/index.d.ts +9 -0
  80. package/build/renderer/components/animate-height/index.js +1 -0
  81. package/build/renderer/components/button/index.js +1 -1
  82. package/build/renderer/components/button/style.d.ts +1 -0
  83. package/build/renderer/components/button/style.js +1 -1
  84. package/build/renderer/components/count-up/index.d.ts +7 -0
  85. package/build/renderer/components/count-up/index.js +1 -0
  86. package/build/renderer/components/flexible-value-container/index.d.ts +16 -0
  87. package/build/renderer/components/flexible-value-container/index.js +1 -0
  88. package/build/renderer/components/loyalty-method-card/index.d.ts +2 -1
  89. package/build/renderer/components/loyalty-method-card/index.js +1 -1
  90. package/build/renderer/components/loyalty-method-card/style.d.ts +3 -3
  91. package/build/renderer/components/loyalty-method-card/style.js +1 -1
  92. package/build/renderer/components/mini-mode-button/index.d.ts +7 -0
  93. package/build/renderer/components/mini-mode-button/index.js +1 -0
  94. package/build/renderer/components/mini-mode-button/style.d.ts +6 -0
  95. package/build/renderer/components/mini-mode-button/style.js +1 -0
  96. package/build/renderer/components/mini-mode-description/index.d.ts +8 -0
  97. package/build/renderer/components/mini-mode-description/index.js +1 -0
  98. package/build/renderer/components/mini-mode-description/style.d.ts +3 -0
  99. package/build/renderer/components/mini-mode-description/style.js +1 -0
  100. package/build/renderer/components/style/icon-wrapper.d.ts +4 -0
  101. package/build/renderer/components/style/icon-wrapper.js +1 -0
  102. package/build/renderer/components/style/typography.d.ts +3 -1
  103. package/build/renderer/components/style/typography.js +1 -1
  104. package/build/renderer/components/tooltip/index.d.ts +7 -0
  105. package/build/renderer/components/tooltip/index.js +1 -0
  106. package/build/renderer/components/tooltip/style.d.ts +4 -0
  107. package/build/renderer/components/tooltip/style.js +1 -0
  108. package/build/renderer/components/translation-settings/style.d.ts +9 -0
  109. package/build/renderer/index.js +1 -1
  110. package/build/renderer/screens/credit-earning-methods-screen/index.js +1 -1
  111. package/build/renderer/screens/credit-earning-methods-screen/style.js +1 -1
  112. package/build/renderer/screens/credit-history-screen/index.js +1 -1
  113. package/build/renderer/screens/credit-history-screen/style.d.ts +5 -1
  114. package/build/renderer/screens/credit-history-screen/style.js +1 -1
  115. package/build/renderer/screens/credit-spending-methods-screen/index.js +1 -1
  116. package/build/renderer/screens/credit-spending-methods-screen/style.d.ts +3 -1
  117. package/build/renderer/screens/credit-spending-methods-screen/style.js +1 -1
  118. package/build/renderer/screens/loyalty-level-screen/index.js +1 -1
  119. package/build/renderer/screens/loyalty-level-screen/style.d.ts +13 -3
  120. package/build/renderer/screens/loyalty-level-screen/style.js +1 -1
  121. package/build/renderer/screens/main-screen/applied-discount/index.d.ts +9 -0
  122. package/build/renderer/screens/main-screen/applied-discount/index.js +1 -0
  123. package/build/renderer/screens/main-screen/applied-discount/style.d.ts +14 -0
  124. package/build/renderer/screens/main-screen/applied-discount/style.js +1 -0
  125. package/build/renderer/screens/main-screen/cart-warning/index.d.ts +7 -0
  126. package/build/renderer/screens/main-screen/cart-warning/index.js +1 -0
  127. package/build/renderer/screens/main-screen/cart-warning/style.d.ts +5 -0
  128. package/build/renderer/screens/main-screen/cart-warning/style.js +1 -0
  129. package/build/renderer/screens/main-screen/earning-methods-section/index.d.ts +1 -0
  130. package/build/renderer/screens/main-screen/earning-methods-section/index.js +1 -1
  131. package/build/renderer/screens/main-screen/header/auth-user-section/index.js +1 -1
  132. package/build/renderer/screens/main-screen/header/index.js +1 -1
  133. package/build/renderer/screens/main-screen/header/logo-section/index.js +1 -1
  134. package/build/renderer/screens/main-screen/header/logo-section/style.d.ts +3 -1
  135. package/build/renderer/screens/main-screen/header/logo-section/style.js +1 -1
  136. package/build/renderer/screens/main-screen/header/style.d.ts +11 -5
  137. package/build/renderer/screens/main-screen/header/style.js +1 -1
  138. package/build/renderer/screens/main-screen/header/title-section/index.js +1 -1
  139. package/build/renderer/screens/main-screen/header/title-section/style.js +1 -1
  140. package/build/renderer/screens/main-screen/header/user-logged-section/index.js +1 -1
  141. package/build/renderer/screens/main-screen/header/user-logged-section/style.d.ts +4 -1
  142. package/build/renderer/screens/main-screen/header/user-logged-section/style.js +1 -1
  143. package/build/renderer/screens/main-screen/index.js +1 -1
  144. package/build/renderer/screens/main-screen/program-info-section/index.js +1 -1
  145. package/build/renderer/screens/main-screen/program-info-section/style.d.ts +12 -4
  146. package/build/renderer/screens/main-screen/program-info-section/style.js +1 -1
  147. package/build/renderer/screens/main-screen/spending-methods-section/dynamic-slider.js +1 -1
  148. package/build/renderer/screens/main-screen/spending-methods-section/index.d.ts +1 -0
  149. package/build/renderer/screens/main-screen/spending-methods-section/index.js +1 -1
  150. package/build/renderer/screens/main-screen/style.js +1 -1
  151. package/build/renderer/style.d.ts +18 -2
  152. package/build/renderer/style.js +1 -1
  153. package/build/renderer/utils/i18n.d.ts +17 -0
  154. package/build/renderer/utils/i18n.js +1 -1
  155. package/build/renderer/utils/locales/de.json.js +1 -0
  156. package/build/renderer/utils/locales/en.json.js +1 -1
  157. package/build/renderer/utils/locales/fr.json.js +1 -0
  158. package/build/renderer/utils/locales/nl.json.js +1 -0
  159. package/build/renderer/utils/locales/tr.json.js +1 -1
  160. package/build/renderer/utils/loyalty-details.js +1 -1
  161. package/build/renderer/utils/object-utils.d.ts +2 -0
  162. package/build/renderer/utils/object-utils.js +1 -0
  163. package/build/storefront-widget-script-injector.iife.js +68 -0
  164. package/build/storefront-widget-script-injector.iife.js.map +1 -0
  165. package/build/utils.d.ts +32 -4
  166. package/build/utils.js +1 -1
  167. package/package.json +23 -11
  168. package/build/_virtual/index.js +0 -1
  169. package/build/_virtual/use-sync-external-store-shim.development.js +0 -1
  170. package/build/_virtual/use-sync-external-store-shim.production.js +0 -1
  171. package/build/ext/react-i18next/dist/es/IcuTransUtils/htmlEntityDecoder.js +0 -1
  172. package/build/ext/react-i18next/dist/es/defaults.js +0 -1
  173. package/build/ext/react-i18next/dist/es/i18nInstance.js +0 -1
  174. package/build/ext/react-i18next/dist/es/initReactI18next.js +0 -1
  175. package/build/ext/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +0 -10
  176. package/build/ext/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +0 -10
  177. package/build/ext/use-sync-external-store/shim/index.js +0 -1
  178. package/build/models/base.d.ts +0 -4
  179. package/build/models/base.js +0 -1
  180. package/build/models/category/index.d.ts +0 -5
  181. package/build/models/loyalty-widget/header-background/index.d.ts +0 -9
@@ -0,0 +1,638 @@
1
+ declare const locales: {
2
+ tr: {
3
+ common: {
4
+ points: string;
5
+ create: string;
6
+ allow: string;
7
+ use: string;
8
+ login: string;
9
+ convert: string;
10
+ };
11
+ main_screen: {
12
+ earningMethodsTitle: string;
13
+ spendingMethodsTitle: string;
14
+ programInfoTitle: string;
15
+ earnPoints: string;
16
+ allRewards: string;
17
+ tiers: string;
18
+ pointHistory: string;
19
+ cartWarning: string;
20
+ appliedDiscount: {
21
+ fixedAmount: string;
22
+ freeShipping: string;
23
+ ratio: string;
24
+ freeProduct: string;
25
+ generic: string;
26
+ remove: string;
27
+ goToCheckout: string;
28
+ };
29
+ };
30
+ spendingMethods: {
31
+ minPointLimit: string;
32
+ FIXED_AMOUNT: {
33
+ title: string;
34
+ dynamicTitle: string;
35
+ };
36
+ RATIO: {
37
+ title: string;
38
+ };
39
+ FREE_SHIPPING: {
40
+ title: string;
41
+ };
42
+ FREE_PRODUCT: {
43
+ title: string;
44
+ description: string;
45
+ };
46
+ };
47
+ header: {
48
+ title: string;
49
+ subtitle: string;
50
+ register_title: string;
51
+ registerDescription: string;
52
+ registerButton: string;
53
+ haveAccount: string;
54
+ earnedPoints: string;
55
+ logoAlt: string;
56
+ };
57
+ earningMethods: {
58
+ xPoints: string;
59
+ CUSTOMER_REGISTER: {
60
+ title: string;
61
+ };
62
+ CUSTOMER_REVIEW: {
63
+ title: string;
64
+ };
65
+ ENABLE_SUBSCRIPTION: {
66
+ title: string;
67
+ };
68
+ ORDER_CREATE: {
69
+ RECEIVE_POINTS_ON_SPEND: {
70
+ title: string;
71
+ description: string;
72
+ };
73
+ BASE: {
74
+ title: string;
75
+ descriptionStaticMinimum: string;
76
+ descriptionStaticMaximum: string;
77
+ descriptionOnlyCategory: string;
78
+ descriptionOnlyProduct: string;
79
+ descriptionOnlyBrand: string;
80
+ descriptionOnlyTag: string;
81
+ genericCategory: string;
82
+ genericProduct: string;
83
+ genericBrand: string;
84
+ genericTag: string;
85
+ descriptionWithFilter: string;
86
+ };
87
+ };
88
+ BUY_PRODUCT: {
89
+ title: string;
90
+ };
91
+ CUSTOMER_SEGMENT: {
92
+ title: string;
93
+ };
94
+ };
95
+ history: {
96
+ earnedTitle: string;
97
+ spentTitle: string;
98
+ refundTitle: string;
99
+ refillTitle: string;
100
+ earningMethodLabels: {
101
+ CUSTOMER_REGISTER: string;
102
+ ENABLE_SUBSCRIPTION: string;
103
+ CUSTOMER_REVIEW: string;
104
+ ORDER_CREATE: string;
105
+ BUY_PRODUCT: string;
106
+ CUSTOMER_SEGMENT: string;
107
+ };
108
+ orderRefund: string;
109
+ };
110
+ screens: {
111
+ creditEarningMethods: string;
112
+ creditSpendingMethods: string;
113
+ creditHistory: string;
114
+ loyaltyLevel: string;
115
+ loyaltyLevelScreen: {
116
+ afterEarning: string;
117
+ reachNextTier: string;
118
+ allTiersCompleted: string;
119
+ currentTierDescription: string;
120
+ multiplierDescription: string;
121
+ };
122
+ };
123
+ miniMode: {
124
+ description: string;
125
+ descriptionLoggedIn: string;
126
+ altText: string;
127
+ };
128
+ };
129
+ en: {
130
+ common: {
131
+ points: string;
132
+ create: string;
133
+ allow: string;
134
+ use: string;
135
+ login: string;
136
+ convert: string;
137
+ };
138
+ main_screen: {
139
+ earningMethodsTitle: string;
140
+ spendingMethodsTitle: string;
141
+ programInfoTitle: string;
142
+ earnPoints: string;
143
+ allRewards: string;
144
+ tiers: string;
145
+ pointHistory: string;
146
+ cartWarning: string;
147
+ appliedDiscount: {
148
+ fixedAmount: string;
149
+ freeShipping: string;
150
+ ratio: string;
151
+ freeProduct: string;
152
+ generic: string;
153
+ remove: string;
154
+ goToCheckout: string;
155
+ };
156
+ };
157
+ spendingMethods: {
158
+ minPointLimit: string;
159
+ FIXED_AMOUNT: {
160
+ title: string;
161
+ dynamicTitle: string;
162
+ };
163
+ RATIO: {
164
+ title: string;
165
+ };
166
+ FREE_SHIPPING: {
167
+ title: string;
168
+ };
169
+ FREE_PRODUCT: {
170
+ title: string;
171
+ description: string;
172
+ };
173
+ };
174
+ header: {
175
+ title: string;
176
+ subtitle: string;
177
+ register_title: string;
178
+ registerDescription: string;
179
+ registerButton: string;
180
+ haveAccount: string;
181
+ earnedPoints: string;
182
+ logoAlt: string;
183
+ };
184
+ earningMethods: {
185
+ xPoints: string;
186
+ CUSTOMER_REGISTER: {
187
+ title: string;
188
+ };
189
+ CUSTOMER_REVIEW: {
190
+ title: string;
191
+ };
192
+ ENABLE_SUBSCRIPTION: {
193
+ title: string;
194
+ };
195
+ ORDER_CREATE: {
196
+ RECEIVE_POINTS_ON_SPEND: {
197
+ title: string;
198
+ description: string;
199
+ };
200
+ BASE: {
201
+ title: string;
202
+ descriptionStaticMinimum: string;
203
+ descriptionStaticMaximum: string;
204
+ descriptionOnlyCategory: string;
205
+ descriptionOnlyProduct: string;
206
+ descriptionOnlyBrand: string;
207
+ descriptionOnlyTag: string;
208
+ genericCategory: string;
209
+ genericProduct: string;
210
+ genericBrand: string;
211
+ genericTag: string;
212
+ descriptionWithFilter: string;
213
+ };
214
+ };
215
+ BUY_PRODUCT: {
216
+ title: string;
217
+ };
218
+ CUSTOMER_SEGMENT: {
219
+ title: string;
220
+ };
221
+ };
222
+ history: {
223
+ earnedTitle: string;
224
+ spentTitle: string;
225
+ refundTitle: string;
226
+ refillTitle: string;
227
+ earningMethodLabels: {
228
+ CUSTOMER_REGISTER: string;
229
+ ENABLE_SUBSCRIPTION: string;
230
+ CUSTOMER_REVIEW: string;
231
+ ORDER_CREATE: string;
232
+ BUY_PRODUCT: string;
233
+ CUSTOMER_SEGMENT: string;
234
+ };
235
+ orderRefund: string;
236
+ };
237
+ screens: {
238
+ creditEarningMethods: string;
239
+ creditSpendingMethods: string;
240
+ creditHistory: string;
241
+ loyaltyLevel: string;
242
+ loyaltyLevelScreen: {
243
+ afterEarning: string;
244
+ reachNextTier: string;
245
+ allTiersCompleted: string;
246
+ currentTierDescription: string;
247
+ multiplierDescription: string;
248
+ };
249
+ };
250
+ miniMode: {
251
+ description: string;
252
+ descriptionLoggedIn: string;
253
+ altText: string;
254
+ };
255
+ };
256
+ de: {
257
+ common: {
258
+ points: string;
259
+ create: string;
260
+ allow: string;
261
+ use: string;
262
+ login: string;
263
+ convert: string;
264
+ };
265
+ main_screen: {
266
+ earningMethodsTitle: string;
267
+ spendingMethodsTitle: string;
268
+ programInfoTitle: string;
269
+ earnPoints: string;
270
+ allRewards: string;
271
+ tiers: string;
272
+ pointHistory: string;
273
+ cartWarning: string;
274
+ appliedDiscount: {
275
+ fixedAmount: string;
276
+ freeShipping: string;
277
+ ratio: string;
278
+ freeProduct: string;
279
+ generic: string;
280
+ remove: string;
281
+ goToCheckout: string;
282
+ };
283
+ };
284
+ spendingMethods: {
285
+ minPointLimit: string;
286
+ FIXED_AMOUNT: {
287
+ title: string;
288
+ dynamicTitle: string;
289
+ };
290
+ RATIO: {
291
+ title: string;
292
+ };
293
+ FREE_SHIPPING: {
294
+ title: string;
295
+ };
296
+ FREE_PRODUCT: {
297
+ title: string;
298
+ description: string;
299
+ };
300
+ };
301
+ header: {
302
+ title: string;
303
+ subtitle: string;
304
+ register_title: string;
305
+ registerDescription: string;
306
+ registerButton: string;
307
+ haveAccount: string;
308
+ earnedPoints: string;
309
+ logoAlt: string;
310
+ };
311
+ earningMethods: {
312
+ xPoints: string;
313
+ CUSTOMER_REGISTER: {
314
+ title: string;
315
+ };
316
+ CUSTOMER_REVIEW: {
317
+ title: string;
318
+ };
319
+ ENABLE_SUBSCRIPTION: {
320
+ title: string;
321
+ };
322
+ ORDER_CREATE: {
323
+ RECEIVE_POINTS_ON_SPEND: {
324
+ title: string;
325
+ description: string;
326
+ };
327
+ BASE: {
328
+ title: string;
329
+ descriptionStaticMinimum: string;
330
+ descriptionStaticMaximum: string;
331
+ descriptionOnlyCategory: string;
332
+ descriptionOnlyProduct: string;
333
+ descriptionOnlyBrand: string;
334
+ descriptionOnlyTag: string;
335
+ genericCategory: string;
336
+ genericProduct: string;
337
+ genericBrand: string;
338
+ genericTag: string;
339
+ descriptionWithFilter: string;
340
+ };
341
+ };
342
+ BUY_PRODUCT: {
343
+ title: string;
344
+ };
345
+ CUSTOMER_SEGMENT: {
346
+ title: string;
347
+ };
348
+ };
349
+ history: {
350
+ earnedTitle: string;
351
+ spentTitle: string;
352
+ refundTitle: string;
353
+ refillTitle: string;
354
+ earningMethodLabels: {
355
+ CUSTOMER_REGISTER: string;
356
+ ENABLE_SUBSCRIPTION: string;
357
+ CUSTOMER_REVIEW: string;
358
+ ORDER_CREATE: string;
359
+ BUY_PRODUCT: string;
360
+ CUSTOMER_SEGMENT: string;
361
+ };
362
+ orderRefund: string;
363
+ };
364
+ screens: {
365
+ creditEarningMethods: string;
366
+ creditSpendingMethods: string;
367
+ creditHistory: string;
368
+ loyaltyLevel: string;
369
+ loyaltyLevelScreen: {
370
+ afterEarning: string;
371
+ reachNextTier: string;
372
+ allTiersCompleted: string;
373
+ currentTierDescription: string;
374
+ multiplierDescription: string;
375
+ };
376
+ };
377
+ miniMode: {
378
+ description: string;
379
+ descriptionLoggedIn: string;
380
+ altText: string;
381
+ };
382
+ };
383
+ nl: {
384
+ common: {
385
+ points: string;
386
+ create: string;
387
+ allow: string;
388
+ use: string;
389
+ login: string;
390
+ convert: string;
391
+ };
392
+ main_screen: {
393
+ earningMethodsTitle: string;
394
+ spendingMethodsTitle: string;
395
+ programInfoTitle: string;
396
+ earnPoints: string;
397
+ allRewards: string;
398
+ tiers: string;
399
+ pointHistory: string;
400
+ cartWarning: string;
401
+ appliedDiscount: {
402
+ fixedAmount: string;
403
+ freeShipping: string;
404
+ ratio: string;
405
+ freeProduct: string;
406
+ generic: string;
407
+ remove: string;
408
+ goToCheckout: string;
409
+ };
410
+ };
411
+ spendingMethods: {
412
+ minPointLimit: string;
413
+ FIXED_AMOUNT: {
414
+ title: string;
415
+ dynamicTitle: string;
416
+ };
417
+ RATIO: {
418
+ title: string;
419
+ };
420
+ FREE_SHIPPING: {
421
+ title: string;
422
+ };
423
+ FREE_PRODUCT: {
424
+ title: string;
425
+ description: string;
426
+ };
427
+ };
428
+ header: {
429
+ title: string;
430
+ subtitle: string;
431
+ register_title: string;
432
+ registerDescription: string;
433
+ registerButton: string;
434
+ haveAccount: string;
435
+ earnedPoints: string;
436
+ logoAlt: string;
437
+ };
438
+ earningMethods: {
439
+ xPoints: string;
440
+ CUSTOMER_REGISTER: {
441
+ title: string;
442
+ };
443
+ CUSTOMER_REVIEW: {
444
+ title: string;
445
+ };
446
+ ENABLE_SUBSCRIPTION: {
447
+ title: string;
448
+ };
449
+ ORDER_CREATE: {
450
+ RECEIVE_POINTS_ON_SPEND: {
451
+ title: string;
452
+ description: string;
453
+ };
454
+ BASE: {
455
+ title: string;
456
+ descriptionStaticMinimum: string;
457
+ descriptionStaticMaximum: string;
458
+ descriptionOnlyCategory: string;
459
+ descriptionOnlyProduct: string;
460
+ descriptionOnlyBrand: string;
461
+ descriptionOnlyTag: string;
462
+ genericCategory: string;
463
+ genericProduct: string;
464
+ genericBrand: string;
465
+ genericTag: string;
466
+ descriptionWithFilter: string;
467
+ };
468
+ };
469
+ BUY_PRODUCT: {
470
+ title: string;
471
+ };
472
+ CUSTOMER_SEGMENT: {
473
+ title: string;
474
+ };
475
+ };
476
+ history: {
477
+ earnedTitle: string;
478
+ spentTitle: string;
479
+ refundTitle: string;
480
+ refillTitle: string;
481
+ earningMethodLabels: {
482
+ CUSTOMER_REGISTER: string;
483
+ ENABLE_SUBSCRIPTION: string;
484
+ CUSTOMER_REVIEW: string;
485
+ ORDER_CREATE: string;
486
+ BUY_PRODUCT: string;
487
+ CUSTOMER_SEGMENT: string;
488
+ };
489
+ orderRefund: string;
490
+ };
491
+ screens: {
492
+ creditEarningMethods: string;
493
+ creditSpendingMethods: string;
494
+ creditHistory: string;
495
+ loyaltyLevel: string;
496
+ loyaltyLevelScreen: {
497
+ afterEarning: string;
498
+ reachNextTier: string;
499
+ allTiersCompleted: string;
500
+ currentTierDescription: string;
501
+ multiplierDescription: string;
502
+ };
503
+ };
504
+ miniMode: {
505
+ description: string;
506
+ descriptionLoggedIn: string;
507
+ altText: string;
508
+ };
509
+ };
510
+ fr: {
511
+ common: {
512
+ points: string;
513
+ create: string;
514
+ allow: string;
515
+ use: string;
516
+ login: string;
517
+ convert: string;
518
+ };
519
+ main_screen: {
520
+ earningMethodsTitle: string;
521
+ spendingMethodsTitle: string;
522
+ programInfoTitle: string;
523
+ earnPoints: string;
524
+ allRewards: string;
525
+ tiers: string;
526
+ pointHistory: string;
527
+ cartWarning: string;
528
+ appliedDiscount: {
529
+ fixedAmount: string;
530
+ freeShipping: string;
531
+ ratio: string;
532
+ freeProduct: string;
533
+ generic: string;
534
+ remove: string;
535
+ goToCheckout: string;
536
+ };
537
+ };
538
+ spendingMethods: {
539
+ minPointLimit: string;
540
+ FIXED_AMOUNT: {
541
+ title: string;
542
+ dynamicTitle: string;
543
+ };
544
+ RATIO: {
545
+ title: string;
546
+ };
547
+ FREE_SHIPPING: {
548
+ title: string;
549
+ };
550
+ FREE_PRODUCT: {
551
+ title: string;
552
+ description: string;
553
+ };
554
+ };
555
+ header: {
556
+ title: string;
557
+ subtitle: string;
558
+ register_title: string;
559
+ registerDescription: string;
560
+ registerButton: string;
561
+ haveAccount: string;
562
+ earnedPoints: string;
563
+ logoAlt: string;
564
+ };
565
+ earningMethods: {
566
+ xPoints: string;
567
+ CUSTOMER_REGISTER: {
568
+ title: string;
569
+ };
570
+ CUSTOMER_REVIEW: {
571
+ title: string;
572
+ };
573
+ ENABLE_SUBSCRIPTION: {
574
+ title: string;
575
+ };
576
+ ORDER_CREATE: {
577
+ RECEIVE_POINTS_ON_SPEND: {
578
+ title: string;
579
+ description: string;
580
+ };
581
+ BASE: {
582
+ title: string;
583
+ descriptionStaticMinimum: string;
584
+ descriptionStaticMaximum: string;
585
+ descriptionOnlyCategory: string;
586
+ descriptionOnlyProduct: string;
587
+ descriptionOnlyBrand: string;
588
+ descriptionOnlyTag: string;
589
+ genericCategory: string;
590
+ genericProduct: string;
591
+ genericBrand: string;
592
+ genericTag: string;
593
+ descriptionWithFilter: string;
594
+ };
595
+ };
596
+ BUY_PRODUCT: {
597
+ title: string;
598
+ };
599
+ CUSTOMER_SEGMENT: {
600
+ title: string;
601
+ };
602
+ };
603
+ history: {
604
+ earnedTitle: string;
605
+ spentTitle: string;
606
+ refundTitle: string;
607
+ refillTitle: string;
608
+ earningMethodLabels: {
609
+ CUSTOMER_REGISTER: string;
610
+ ENABLE_SUBSCRIPTION: string;
611
+ CUSTOMER_REVIEW: string;
612
+ ORDER_CREATE: string;
613
+ BUY_PRODUCT: string;
614
+ CUSTOMER_SEGMENT: string;
615
+ };
616
+ orderRefund: string;
617
+ };
618
+ screens: {
619
+ creditEarningMethods: string;
620
+ creditSpendingMethods: string;
621
+ creditHistory: string;
622
+ loyaltyLevel: string;
623
+ loyaltyLevelScreen: {
624
+ afterEarning: string;
625
+ reachNextTier: string;
626
+ allTiersCompleted: string;
627
+ currentTierDescription: string;
628
+ multiplierDescription: string;
629
+ };
630
+ };
631
+ miniMode: {
632
+ description: string;
633
+ descriptionLoggedIn: string;
634
+ altText: string;
635
+ };
636
+ };
637
+ };
638
+ export default locales;
@@ -0,0 +1 @@
1
+ import r from"./renderer/utils/locales/de.json.js";import e from"./renderer/utils/locales/en.json.js";import o from"./renderer/utils/locales/fr.json.js";import s from"./renderer/utils/locales/nl.json.js";import l from"./renderer/utils/locales/tr.json.js";var n={tr:l,en:e,de:r,nl:s,fr:o};export{n as default};
@@ -0,0 +1,21 @@
1
+ import { LoyaltyProgramFilterTypeEnum, PeriodTypeEnum } from "../types";
2
+ export declare class LoyaltyProgramPointLimit {
3
+ maxPointLimit: number | null;
4
+ minPointLimit: number | null;
5
+ constructor(data?: Partial<LoyaltyProgramPointLimit>);
6
+ }
7
+ export declare class LoyaltyProgramFilter {
8
+ type: LoyaltyProgramFilterTypeEnum;
9
+ idList: string[];
10
+ constructor(data?: Partial<LoyaltyProgramFilter>);
11
+ }
12
+ export declare class LoyaltyProgramMethodTranslation {
13
+ description: string;
14
+ locale: string;
15
+ constructor(data?: Partial<LoyaltyProgramMethodTranslation>);
16
+ }
17
+ export declare class LoyaltyProgramPeriod {
18
+ period: string | null;
19
+ periodType: PeriodTypeEnum | null;
20
+ constructor(data?: Partial<LoyaltyProgramPeriod>);
21
+ }
@@ -0,0 +1 @@
1
+ import{makeObservable as i,observable as t}from"mobx";import{LoyaltyProgramFilterTypeEnum as o}from"../types/index.js";var n=function(o){void 0===o&&(o={}),this.maxPointLimit=o.maxPointLimit||null,this.minPointLimit=o.minPointLimit||null,i(this,{maxPointLimit:t,minPointLimit:t})},e=function(n){void 0===n&&(n={}),this.type=n.type||o.CATEGORY,this.idList=n.idList||[],i(this,{type:t,idList:t})},s=function(o){void 0===o&&(o={}),this.description=o.description||"",this.locale=o.locale||"",i(this,{description:t,locale:t})},p=function(o){void 0===o&&(o={}),this.period=o.period||null,this.periodType=o.periodType||null,i(this,{period:t,periodType:t})};export{e as LoyaltyProgramFilter,s as LoyaltyProgramMethodTranslation,p as LoyaltyProgramPeriod,n as LoyaltyProgramPointLimit};
@@ -1,12 +1,12 @@
1
- import { BaseModel } from "models/base";
2
1
  import { ImageTypeEnum } from "models/loyalty-widget/types";
3
2
  export declare const IMAGE_SIZE = 1080;
4
- export declare class LoyaltyWidgetImage extends BaseModel {
3
+ export declare class LoyaltyWidgetImage {
5
4
  link: string | null;
6
5
  cdnURL: string | null;
7
6
  merchantId: string | null;
8
7
  imageId: string | null;
9
8
  type: ImageTypeEnum;
9
+ maxHeight: number;
10
10
  constructor(data: Partial<LoyaltyWidgetImage>);
11
11
  get src(): string | undefined;
12
12
  }
@@ -1 +1 @@
1
- import{__extends as t}from'./../../ext/tslib/tslib.es6.mjs.js';import{makeObservable as e,observable as n,computed as i}from"mobx";import{BaseModel as r}from"../base.js";import{ImageTypeEnum as c}from"../loyalty-widget/types/index.js";var o=1080,m=function(r){function o(t){var o=r.call(this,t)||this;return o.imageId=t.imageId||null,o.link=t.link||null,o.cdnURL=t.cdnURL||null,o.merchantId=t.merchantId||null,o.type=t.type||c.SHOW,e(o,{imageId:n,link:n,cdnURL:n,merchantId:n,type:n,src:i}),o}return t(o,r),Object.defineProperty(o.prototype,"src",{get:function(){if(this.imageId)return"".concat(this.cdnURL,"images/").concat(this.merchantId,"/").concat(this.imageId,"/image_").concat(1080,".jpeg")},enumerable:!1,configurable:!0}),o}(r);export{o as IMAGE_SIZE,m as LoyaltyWidgetImage};
1
+ import{makeObservable as t,observable as i,computed as e}from"mobx";import{ImageTypeEnum as n}from"../loyalty-widget/types/index.js";var a=1080,c=function(){function a(a){var c;this.imageId=a.imageId||null,this.link=a.link||null,this.cdnURL=a.cdnURL||null,this.merchantId=a.merchantId||null,this.type=a.type||n.SHOW,this.maxHeight=null!==(c=a.maxHeight)&&void 0!==c?c:50,t(this,{imageId:i,link:i,cdnURL:i,merchantId:i,type:i,maxHeight:i,src:e})}return Object.defineProperty(a.prototype,"src",{get:function(){if(this.imageId)return"".concat(this.cdnURL,"images/").concat(this.merchantId,"/").concat(this.imageId,"/image_").concat(1080,".webp")},enumerable:!1,configurable:!0}),a}();export{a as IMAGE_SIZE,c as LoyaltyWidgetImage};