@ikas/loyalty-widget-renderer 1.0.0-alpha.7 → 1.0.0-alpha.70

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