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

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