@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
@@ -1 +1 @@
1
- var t={points:"Points",view:"View",create:"Create",allow:"Allow",use:"Use",review:"Review",login:"Login",register:"Register"},e={earningMethodsTitle:"Ways to Earn Points",programInfoTitle:"Program Information"},r={title:"Loyalty Program",subtitle:"Earn as You Spend",register_title:"Join Now",registerDescription:"Unlock exciting benefits and get access to exclusive rewards.",registerButton:"Register Now",haveAccount:"Already have an account?",earnedPoints:"Earned Points"},o={minPointLimit:"Minimum {{points}} points can be converted.",FIXED_AMOUNT:{title:"Fixed Amount Discount"},RATIO:{title:"Percentage Discount"},FREE_SHIPPING:{title:"Free Shipping"},FREE_PRODUCT:{title:"Free Product",description:"{{product}} product will be added to cart for free."}},i={spent_amount_description:"{{points}} points for every {{amount}}₺ spent",min_order_amount_description:"Minimum order amount must be {{amount}} TL.",category_filter_description:"A product from {{category}} category must be added to the order.",product_filter_description:"Product {{product}} must be added to the order."},n={xPoints:"{{points}} Points",xPointsForEachProduct:"{{points}} points per product",CUSTOMER_REGISTER:{title:"Create Account"},CUSTOMER_REVIEW:{title:"Review Products"},ENABLE_SUBSCRIPTION:{title:"Subscribe to Communication"},ORDER_CREATE:{RECEIVE_POINTS_ON_SPEND:{title:"Earn as You Spend",description:"{{points}} points for every {{amount}}{{currency}} spent"},BASE:{title:"Create Order",descriptionStaticMinimum:"Minimum order amount must be {{amount}}{{currency}}.",descriptionStaticMaximum:"Maximum order amount must be {{amount}}{{currency}}.",descriptionDynamicMinimum:"Minimum order amount must be {{amount}}{{currency}}. A product from {{category}} category must be added to the order.",descriptionDynamicMaximum:"Maximum order amount must be {{amount}}{{currency}}. A product from {{category}} category must be added to the order.",descriptionOnlyCategory:"A product from {{category}} category must be added to the order.",descriptionOnlyProduct:"Product {{product}} must be added to the order.",descriptionOnlyBrand:"A product from {{brand}} brand must be added to the order.",descriptionOnlyTag:"A product with {{tag}} tag must be added to the order."}},BUY_PRODUCT:{title:"Buy Product",description:"A product from {{category}} category must be purchased."},CUSTOMER_SEGMENT:{title:"Customer Segment"}},d={creditEarningMethods:"Credit Earning Methods",creditSpendingMethods:"Credit Spending Methods",creditHistory:"Credit History",loyaltyLevel:"Loyalty Level"},a={common:t,main_screen:e,header:r,spendingMethods:o,earning_methods:i,earningMethods:n,screens:d};export{t as common,a as default,n as earningMethods,i as earning_methods,r as header,e as main_screen,d as screens,o as spendingMethods};
1
+ var e={points:"Points",create:"Create",allow:"Allow",use:"Use",login:"Login",convert:"Convert"},t={earningMethodsTitle:"Points Earning Methods",spendingMethodsTitle:"Rewards You Can Use",programInfoTitle:"Program Information",earnPoints:"Earn Points",allRewards:"All Rewards",tiers:"Tiers",pointHistory:"Points History",cartWarning:"You cannot use rewards without creating a cart.",appliedDiscount:{fixedAmount:"{{amount}} discount applied to your cart.",freeShipping:"Free shipping applied to your cart.",ratio:"{{amount}} discount applied to your cart.",freeProduct:"Gift product added to your cart.",generic:"{{amount}} discount applied to your cart.",remove:"Remove",goToCheckout:"Go to Checkout"}},o={minPointLimit:"At least {{points}} points can be converted.",FIXED_AMOUNT:{title:"Amount Discount",dynamicTitle:"Dynamic Amount Discount"},RATIO:{title:"Percentage Discount"},FREE_SHIPPING:{title:"Free Shipping"},FREE_PRODUCT:{title:"Gift Product",description:"{{product}} will be added to cart for free."}},i={title:"Loyalty Program",subtitle:"Earn as You Spend",register_title:"Sign Up",registerDescription:"It is your pass to unlock exciting benefits and access exclusive rewards.",registerButton:"Register Now",haveAccount:"Already have an account?",earnedPoints:"Earned Points",logoAlt:"Logo"},r={xPoints:"{{points}} Points",CUSTOMER_REGISTER:{title:"Create Account"},CUSTOMER_REVIEW:{title:"Review Products"},ENABLE_SUBSCRIPTION:{title:"Allow Communication"},ORDER_CREATE:{RECEIVE_POINTS_ON_SPEND:{title:"Earn Points as You Spend",description:"{{points}} points for every {{amount}} spent"},BASE:{title:"Create Order",descriptionStaticMinimum:"Order amount must be at least {{amount}}.",descriptionStaticMaximum:"Order amount must be at most {{amount}}.",descriptionOnlyCategory:"A product from {{category}} category must be added to order.",descriptionOnlyProduct:"The product {{product}} must be added to order.",descriptionOnlyBrand:"A product from {{brand}} brand must be added to order.",descriptionOnlyTag:"A product with {{tag}} tag must be added to order.",genericCategory:"in {{category}} category",genericProduct:"containing {{product}} product",genericBrand:"in {{brand}} brand",genericTag:"in {{tag}} tag",descriptionWithFilter:"{{filter}} an order must be created."}},BUY_PRODUCT:{title:"Buy Product"},CUSTOMER_SEGMENT:{title:"Customer Segment"}},n={earnedTitle:"Points Earned",spentTitle:"Points Spent",refundTitle:"Points Cancelled",refillTitle:"Points Restored",earningMethodLabels:{CUSTOMER_REGISTER:"Account Creation",ENABLE_SUBSCRIPTION:"Communication Permission",CUSTOMER_REVIEW:"Product Review",ORDER_CREATE:"Order",BUY_PRODUCT:"Product Purchase",CUSTOMER_SEGMENT:"Customer Segment"},orderRefund:"Order Refunded"},a={creditEarningMethods:"Points Earning Methods",creditSpendingMethods:"Points Spending Methods",creditHistory:"Points History",loyaltyLevel:"Tiers",loyaltyLevelScreen:{afterEarning:"after earning",reachNextTier:"Collect {{points}} more points to reach {{tierName}} tier.",allTiersCompleted:"You have completed all tiers!",currentTierDescription:"You are currently in this tier.",multiplierDescription:"Points earned when you move to this tier are multiplied by <0>{{multiplier}}x</0>."}},s={description:"Hello! 👋 Join our loyalty program, benefit from extra discounts as you spend!",descriptionLoggedIn:"Hello! 👋 View your loyalty points and complete new tasks!",altText:"Loyalty Widget"},d={common:e,main_screen:t,spendingMethods:o,header:i,earningMethods:r,history:n,screens:a,miniMode:s};export{e as common,d as default,r as earningMethods,i as header,n as history,t as main_screen,s as miniMode,a as screens,o as spendingMethods};
@@ -0,0 +1 @@
1
+ var e={points:"Points",create:"Créer",allow:"Autoriser",use:"Utiliser",login:"Connexion",convert:"Convertir"},t={earningMethodsTitle:"Méthodes pour gagner des points",spendingMethodsTitle:"Récompenses utilisables",programInfoTitle:"Informations du programme",earnPoints:"Gagner des points",allRewards:"Toutes les récompenses",tiers:"Niveaux",pointHistory:"Historique des points",cartWarning:"Vous ne pouvez pas utiliser de récompenses sans créer de panier.",appliedDiscount:{fixedAmount:"{{amount}} de réduction appliquée à votre panier.",freeShipping:"Livraison gratuite appliquée à votre panier.",ratio:"{{amount}} de réduction appliquée à votre panier.",freeProduct:"Produit cadeau ajouté à votre panier.",generic:"{{amount}} de réduction appliquée à votre panier.",remove:"Retirer",goToCheckout:"Aller au paiement"}},i={minPointLimit:"Au moins {{points}} points peuvent être convertis.",FIXED_AMOUNT:{title:"Réduction de montant",dynamicTitle:"Réduction de montant dynamique"},RATIO:{title:"Réduction en pourcentage"},FREE_SHIPPING:{title:"Livraison gratuite"},FREE_PRODUCT:{title:"Produit cadeau",description:"{{product}} sera ajouté gratuitement au panier."}},n={title:"Programme de fidélité",subtitle:"Gagnez en dépensant",register_title:"Inscrivez-vous",registerDescription:"C'est votre passe pour débloquer des avantages passionnants et accéder à des récompenses exclusives.",registerButton:"S'inscrire maintenant",haveAccount:"Vous avez déjà un compte ?",earnedPoints:"Points gagnés",logoAlt:"Logo"},o={xPoints:"{{points}} Points",CUSTOMER_REGISTER:{title:"Créer un compte"},CUSTOMER_REVIEW:{title:"Évaluer les produits"},ENABLE_SUBSCRIPTION:{title:"Autoriser la communication"},ORDER_CREATE:{RECEIVE_POINTS_ON_SPEND:{title:"Gagnez des points en dépensant",description:"{{points}} points pour chaque {{amount}} dépensé"},BASE:{title:"Créer une commande",descriptionStaticMinimum:"Le montant de la commande doit être d'au moins {{amount}}.",descriptionStaticMaximum:"Le montant de la commande doit être d'au plus {{amount}}.",descriptionOnlyCategory:"Un produit de la catégorie {{category}} doit être ajouté.",descriptionOnlyProduct:"Le produit {{product}} doit être ajouté.",descriptionOnlyBrand:"Un produit de la marque {{brand}} doit être ajouté.",descriptionOnlyTag:"Un produit avec l'étiquette {{tag}} doit être ajouté.",genericCategory:"dans la catégorie {{category}}",genericProduct:"contenant le produit {{product}}",genericBrand:"de la marque {{brand}}",genericTag:"avec l'étiquette {{tag}}",descriptionWithFilter:"{{filter}} une commande doit être créée."}},BUY_PRODUCT:{title:"Acheter un produit"},CUSTOMER_SEGMENT:{title:"Segment client"}},r={earnedTitle:"Points gagnés",spentTitle:"Points dépensés",refundTitle:"Points annulés",refillTitle:"Points restaurés",earningMethodLabels:{CUSTOMER_REGISTER:"Création de compte",ENABLE_SUBSCRIPTION:"Autorisation de communication",CUSTOMER_REVIEW:"Avis produit",ORDER_CREATE:"Commande",BUY_PRODUCT:"Achat de produit",CUSTOMER_SEGMENT:"Segment client"},orderRefund:"Commande remboursée"},a={creditEarningMethods:"Méthodes pour gagner des points",creditSpendingMethods:"Méthodes pour dépenser des points",creditHistory:"Historique des points",loyaltyLevel:"Niveaux",loyaltyLevelScreen:{afterEarning:"après avoir gagné",reachNextTier:"Collectez {{points}} points supplémentaires pour atteindre le niveau {{tierName}}.",allTiersCompleted:"Vous avez complété tous les niveaux !",currentTierDescription:"Vous êtes actuellement à ce niveau.",multiplierDescription:"Les points gagnés lorsque vous atteignez ce niveau sont multipliés par <0>{{multiplier}}x</0>."}},s={description:"Bonjour ! 👋 Rejoignez notre programme de fidélité, bénéficiez de réductions supplémentaires en dépensant !",descriptionLoggedIn:"Bonjour ! 👋 Consultez vos points de fidélité et accomplissez de nouvelles missions !",altText:"Programme de fidélité"},d={common:e,main_screen:t,spendingMethods:i,header:n,earningMethods:o,history:r,screens:a,miniMode:s};export{e as common,d as default,o as earningMethods,n as header,r as history,t as main_screen,s as miniMode,a as screens,i as spendingMethods};
@@ -0,0 +1 @@
1
+ var e={points:"Punten",create:"Aanmaken",allow:"Toestaan",use:"Gebruiken",login:"Inloggen",convert:"Omzetten"},n={earningMethodsTitle:"Manieren om punten te verdienen",spendingMethodsTitle:"Beschikbare beloningen",programInfoTitle:"Programma-informatie",earnPoints:"Punten verdienen",allRewards:"Alle beloningen",tiers:"Niveaus",pointHistory:"Puntengeschiedenis",cartWarning:"U kunt geen beloningen gebruiken zonder een winkelwagen aan te maken.",appliedDiscount:{fixedAmount:"{{amount}} korting toegepast op uw winkelwagen.",freeShipping:"Gratis verzending toegepast op uw winkelwagen.",ratio:"{{amount}} korting toegepast op uw winkelwagen.",freeProduct:"Cadeauproduct toegevoegd aan uw winkelwagen.",generic:"{{amount}} korting toegepast op uw winkelwagen.",remove:"Verwijderen",goToCheckout:"Naar afrekenen"}},t={minPointLimit:"Er kunnen minimaal {{points}} punten worden omgezet.",FIXED_AMOUNT:{title:"Bedragkorting",dynamicTitle:"Dynamische bedragkorting"},RATIO:{title:"Percentagekorting"},FREE_SHIPPING:{title:"Gratis verzending"},FREE_PRODUCT:{title:"Cadeauproduct",description:"{{product}} wordt gratis aan de winkelwagen toegevoegd."}},i={title:"Loyaliteitsprogramma",subtitle:"Verdien terwijl u uitgeeft",register_title:"Aanmelden",registerDescription:"Het is uw toegang tot spannende voordelen en exclusieve beloningen.",registerButton:"Nu registreren",haveAccount:"Heeft u al een account?",earnedPoints:"Verdiende punten",logoAlt:"Logo"},o={xPoints:"{{points}} Punten",CUSTOMER_REGISTER:{title:"Account aanmaken"},CUSTOMER_REVIEW:{title:"Producten beoordelen"},ENABLE_SUBSCRIPTION:{title:"Communicatie toestaan"},ORDER_CREATE:{RECEIVE_POINTS_ON_SPEND:{title:"Punten verdienen bij uitgaven",description:"{{points}} punten voor elke bestede {{amount}}"},BASE:{title:"Bestelling plaatsen",descriptionStaticMinimum:"Bestelbedrag moet minimaal {{amount}} zijn.",descriptionStaticMaximum:"Bestelbedrag mag maximaal {{amount}} zijn.",descriptionOnlyCategory:"Een product uit categorie {{category}} moet worden toegevoegd.",descriptionOnlyProduct:"Het product {{product}} moet worden toegevoegd.",descriptionOnlyBrand:"Een product van het merk {{brand}} moet worden toegevoegd.",descriptionOnlyTag:"Een product met de tag {{tag}} moet worden toegevoegd.",genericCategory:"in categorie {{category}}",genericProduct:"met product {{product}}",genericBrand:"van merk {{brand}}",genericTag:"met tag {{tag}}",descriptionWithFilter:"{{filter}} een bestelling moet worden aangemaakt."}},BUY_PRODUCT:{title:"Product kopen"},CUSTOMER_SEGMENT:{title:"Klantsegment"}},r={earnedTitle:"Punten verdiend",spentTitle:"Punten uitgegeven",refundTitle:"Punten geannuleerd",refillTitle:"Punten hersteld",earningMethodLabels:{CUSTOMER_REGISTER:"Account aanmaken",ENABLE_SUBSCRIPTION:"Communicatietoestemming",CUSTOMER_REVIEW:"Productbeoordeling",ORDER_CREATE:"Bestelling",BUY_PRODUCT:"Product aankoop",CUSTOMER_SEGMENT:"Klantsegment"},orderRefund:"Bestelling terugbetaald"},a={creditEarningMethods:"Manieren om punten te verdienen",creditSpendingMethods:"Manieren om punten uit te geven",creditHistory:"Puntengeschiedenis",loyaltyLevel:"Niveaus",loyaltyLevelScreen:{afterEarning:"na het verdienen van",reachNextTier:"Verzamel nog {{points}} punten om niveau {{tierName}} te bereiken.",allTiersCompleted:"U heeft alle niveaus voltooid!",currentTierDescription:"U bevindt zich momenteel in dit niveau.",multiplierDescription:"Punten verdiend bij het bereiken van dit niveau worden vermenigvuldigd met <0>{{multiplier}}x</0>."}},d={description:"Hallo! 👋 Word lid van ons loyaliteitsprogramma, profiteer van extra kortingen terwijl u uitgeeft!",descriptionLoggedIn:"Hallo! 👋 Bekijk uw loyaliteitspunten en voltooi nieuwe taken!",altText:"Loyaliteitsprogramma Widget"},g={common:e,main_screen:n,spendingMethods:t,header:i,earningMethods:o,history:r,screens:a,miniMode:d};export{e as common,g as default,o as earningMethods,i as header,r as history,n as main_screen,d as miniMode,a as screens,t as spendingMethods};
@@ -1 +1 @@
1
- var e={points:"Puan",view:"Görüntüle",create:"Oluştur",allow:"İzin Ver",use:"Kullan",review:"İncele",login:"Giriş Yap",register:"Kayıt Ol",convert:"Dönüştür"},i={earningMethodsTitle:"Puan Kazanma Yöntemleri",spendingMethodsTitle:"Kullanabileceğin Ödüller",programInfoTitle:"Program Bilgileri",earnPoints:"Puan Kazan",allRewards:"Tüm Ödüller",tiers:"Kademeler",pointHistory:"Puan Geçmişi"},r={minPointLimit:"En az {{points}} puan dönüştürülebilir.",FIXED_AMOUNT:{title:"Tutar İndirimi"},RATIO:{title:"Oransal İndirim"},FREE_SHIPPING:{title:"Ücretsiz Kargo"},FREE_PRODUCT:{title:"Hediye Ürün",description:"{{product}} ürünü ücretsiz olarak sepete eklenir."}},n={title:"Sadakat Programı",subtitle:"Harcama Yaptıkça Kazan",register_title:"Üye Olun",registerDescription:"Heyecan verici avantajların kilidini açmanın ve özel ödüllere erişim kartınızdır.",registerButton:"Şimdi Kayıt Ol",haveAccount:"Zaten bir hesabın var mı?",earnedPoints:"Kazanılan Puan"},a={xPoints:"{{points}} Puan",xPointsForEachProduct:"Ürün başına {{points}} puan",CUSTOMER_REGISTER:{title:"Hesap Oluştur"},CUSTOMER_REVIEW:{title:"Ürünlere Yorum Yap"},ENABLE_SUBSCRIPTION:{title:"İletişim İzni Verme"},ORDER_CREATE:{RECEIVE_POINTS_ON_SPEND:{title:"Harcadıkça Puan Kazan",description:"Harcanan her {{amount}}{{currency}} için {{points}} puan"},BASE:{title:"Sipariş Oluşturma",descriptionStaticMinimum:"Sipariş tutarının minimum {{amount}}{{currency}} olması gerekir.",descriptionStaticMaximum:"Sipariş tutarının maksimum {{amount}}{{currency}} olması gerekir.",descriptionDynamicMinimum:"Sipariş tutarının minimum {{amount}}{{currency}} olması gerekir. Siparişe {{category}} kategorisinden bir ürün eklenmesi gerekir.",descriptionDynamicMaximum:"Sipariş tutarının maksimum {{amount}}{{currency}} olması gerekir. Siparişe {{category}} kategorisinden bir ürün eklenmesi gerekir.",descriptionOnlyCategory:"Siparişe {{category}} kategorisinden bir ürün eklenmesi gerekir.",descriptionOnlyProduct:"Siparişe {{product}} ürününün eklenmesi gerekir.",descriptionOnlyBrand:"Siparişe {{brand}} markasından bir ürün eklenmesi gerekir.",descriptionOnlyTag:"Siparişe {{tag}} etiketine sahip bir ürün eklenmesi gerekir.",genericCategory:"{{category}} kategorisinde",genericProduct:"{{product}} ürünü içeren",genericBrand:"{{brand}} markasında",genericTag:"{{tag}} etiketinde",descriptionSuffix:"sipariş oluşturulması gerekir."}},BUY_PRODUCT:{title:"Ürün Satın Al",description:"{{category}} kategorisinden bir ürün satın alınması gerekir."},CUSTOMER_SEGMENT:{title:"Müşteri Segmenti"}},t={earnedTitle:"Puan Kazanıldı",spentTitle:"Puan Harcandı"},l={creditEarningMethods:"Puan Kazanma Yöntemleri",creditSpendingMethods:"Puan Harcama Yöntemleri",creditHistory:"Puan Geçmişi",loyaltyLevel:"Kademeler",loyaltyLevelScreen:{afterEarning:"kazandıktan sonra",multiplierPrefix:"Bu kademeye geçtiğinizde kazandığınız puanlar",multiplierSuffix:"ile çarpılır.",reachNextTier:"{{tierName}} kademesine ulaşmak için {{points}} puan daha toplayın.",allTiersCompleted:"Tüm kademeleri tamamladınız!"}},m={common:e,main_screen:i,spendingMethods:r,header:n,earningMethods:a,history:t,screens:l};export{e as common,m as default,a as earningMethods,n as header,t as history,i as main_screen,l as screens,r as spendingMethods};
1
+ var e={points:"Puan",create:"Oluştur",allow:"İzin Ver",use:"Kullan",login:"Giriş Yap",convert:"Dönüştür"},i={earningMethodsTitle:"Puan Kazanma Yöntemleri",spendingMethodsTitle:"Kullanabileceğin Ödüller",programInfoTitle:"Program Bilgileri",earnPoints:"Puan Kazan",allRewards:"Tüm Ödüller",tiers:"Kademeler",pointHistory:"Puan Geçmişi",cartWarning:"Sepet oluşturmadan ödülleri kullanamazsınız.",appliedDiscount:{fixedAmount:"Sepetine {{amount}} indirim uygulandı.",freeShipping:"Sepetine ücretsiz kargo uygulandı.",ratio:"Sepetine {{amount}} indirim uygulandı.",freeProduct:"Sepetine hediye ürün eklendi.",generic:"Sepetine {{amount}} indirim uygulandı.",remove:"Kaldır",goToCheckout:"Ödeme Adımına Git"}},a={minPointLimit:"En az {{points}} puan dönüştürülebilir.",FIXED_AMOUNT:{title:"Tutar İndirimi",dynamicTitle:"Dinamik Tutar İndirimi"},RATIO:{title:"Yüzdesel İndirim"},FREE_SHIPPING:{title:"Ücretsiz Kargo"},FREE_PRODUCT:{title:"Hediye Ürün",description:"{{product}} ürünü ücretsiz olarak sepete eklenir."}},n={title:"Sadakat Programı",subtitle:"Harcama Yaptıkça Kazan",register_title:"Üye Olun",registerDescription:"Heyecan verici avantajların kilidini açmanın ve özel ödüllere erişim kartınızdır.",registerButton:"Şimdi Kayıt Ol",haveAccount:"Zaten bir hesabın var mı?",earnedPoints:"Kazanılan Puan",logoAlt:"Logo"},r={xPoints:"{{points}} Puan",CUSTOMER_REGISTER:{title:"Hesap Oluştur"},CUSTOMER_REVIEW:{title:"Ürünlere Yorum Yap"},ENABLE_SUBSCRIPTION:{title:"İletişim İzni Verme"},ORDER_CREATE:{RECEIVE_POINTS_ON_SPEND:{title:"Harcadıkça Puan Kazan",description:"Harcanan her {{amount}} için {{points}} puan"},BASE:{title:"Sipariş Oluşturma",descriptionStaticMinimum:"Sipariş tutarının minimum {{amount}} olması gerekir.",descriptionStaticMaximum:"Sipariş tutarının maksimum {{amount}} olması gerekir.",descriptionOnlyCategory:"Siparişe {{category}} kategorisinden bir ürün eklenmesi gerekir.",descriptionOnlyProduct:"Siparişe {{product}} ürününün eklenmesi gerekir.",descriptionOnlyBrand:"Siparişe {{brand}} markasından bir ürün eklenmesi gerekir.",descriptionOnlyTag:"Siparişe {{tag}} etiketine sahip bir ürün eklenmesi gerekir.",genericCategory:"{{category}} kategorisinde",genericProduct:"{{product}} ürünü içeren",genericBrand:"{{brand}} markasında",genericTag:"{{tag}} etiketinde",descriptionWithFilter:"{{filter}} sipariş oluşturulması gerekir."}},BUY_PRODUCT:{title:"Ürün Satın Al"},CUSTOMER_SEGMENT:{title:"Müşteri Segmenti"}},t={earnedTitle:"Puan Kazanıldı",spentTitle:"Puan Harcandı",refundTitle:"Puan İptal Edildi",refillTitle:"Puan Geri Eklendi",earningMethodLabels:{CUSTOMER_REGISTER:"Hesap Oluşturuldu",ENABLE_SUBSCRIPTION:"İletişim İzni Verildi",CUSTOMER_REVIEW:"Ürüne Yorum Yapıldı",ORDER_CREATE:"Sipariş Oluşturuldu",BUY_PRODUCT:"Ürün Satın Alındı",CUSTOMER_SEGMENT:"Müşteri Segmenti"},orderRefund:"Sipariş İade Edildi"},l={creditEarningMethods:"Puan Kazanma Yöntemleri",creditSpendingMethods:"Puan Harcama Yöntemleri",creditHistory:"Puan Geçmişi",loyaltyLevel:"Kademeler",loyaltyLevelScreen:{afterEarning:"kazandıktan sonra",reachNextTier:"{{tierName}} kademesine ulaşmak için {{points}} puan daha toplayın.",allTiersCompleted:"Tüm kademeleri tamamladınız!",currentTierDescription:"Şu an bu kademedesiniz.",multiplierDescription:"Bu kademeye geçtiğinizde kazandığınız puanlar <0>{{multiplier}}x</0> ile çarpılır."}},d={description:"Merhaba! 👋 Sadakat programımıza katıl, harcama yaptıkça ekstra indirimlerden yararlan!",descriptionLoggedIn:"Merhaba! 👋 Sadakat puanlarını gör ve yeni görevlerini tamamla!",altText:"Sadakat Widget"},o={common:e,main_screen:i,spendingMethods:a,header:n,earningMethods:r,history:t,screens:l,miniMode:d};export{e as common,o as default,r as earningMethods,n as header,t as history,i as main_screen,d as miniMode,l as screens,a as spendingMethods};
@@ -1 +1 @@
1
- import{__spreadArray as e}from'./../../ext/tslib/tslib.es6.mjs.js';import{EarningMethodTypeEnum as n,LoyaltyProgramPointEarningTypeEnum as r,LoyaltyProgramFilterTypeEnum as t}from"../../models/types/index.js";var i=function(e,n,r){if(!r||0===r.length)return[];var i=[];return r.forEach(function(r){var a="";switch(n){case t.CATEGORY:case t.DYNAMIC_CATEGORY:if(e.categories){var o=e.categories.find(function(e){return e.id===r});o&&(a=o.name)}break;case t.PRODUCT_AND_VARIANT:if(e.products){var s=e.products.find(function(e){return e.id===r});s&&(a=s.name)}break;case t.PRODUCT_BRAND:if(e.brands){var c=e.brands.find(function(e){return e.id===r});c&&(a=c.name)}break;case t.PRODUCT_TAG:if(e.tags){var u=e.tags.find(function(e){return e.id===r});u&&(a=u.name)}}a?i.push({type:n,name:a,id:r}):i.push({type:n,name:r,id:r})}),i},a=function(e,n){if(e.products){var r=e.products.find(function(e){return e.id===n});return r?r.name:void 0}},o=function(a,o,s){var c,u,d=s.currency;switch(o.methodType){case n.CUSTOMER_REGISTER:case n.CUSTOMER_REVIEW:case n.ENABLE_SUBSCRIPTION:return a("earningMethods.xPoints",{points:o.pointsEarned});case n.ORDER_CREATE:var E=e(e([],(null===(c=o.productSettings)||void 0===c?void 0:c.productFilters)||[],!0),(null===(u=o.orderSettings)||void 0===u?void 0:u.productFilters)||[],!0),R=E.reduce(function(e,n){return e.concat(i(s,n.type,n.idList))},[]),A=R.map(function(e){switch(e.type){case t.CATEGORY:case t.DYNAMIC_CATEGORY:return a("earningMethods.ORDER_CREATE.BASE.genericCategory",{category:e.name});case t.PRODUCT_AND_VARIANT:return a("earningMethods.ORDER_CREATE.BASE.genericProduct",{product:e.name});case t.PRODUCT_BRAND:return a("earningMethods.ORDER_CREATE.BASE.genericBrand",{brand:e.name});case t.PRODUCT_TAG:return a("earningMethods.ORDER_CREATE.BASE.genericTag",{tag:e.name});default:return e.name}}).filter(Boolean).join(", "),m=o.orderSettings||{},f=m.minOrderAmount,T=m.maxOrderAmount,p="number"==typeof T&&T>0,g="";switch("number"==typeof f&&f>0?g=a("earningMethods.ORDER_CREATE.BASE.descriptionStaticMinimum",{amount:f,currency:d}):p&&(g=a("earningMethods.ORDER_CREATE.BASE.descriptionStaticMaximum",{amount:T,currency:d})),o.pointEarningType){case r.DYNAMIC_ORDER_AMOUNT:return(C=[A,g,a("earningMethods.ORDER_CREATE.RECEIVE_POINTS_ON_SPEND.description",{amount:o.amountPerPointsEarned,currency:d,points:o.pointsEarned})].filter(Boolean)).join(" ");case r.STATIC:var C;return 0===(C=[A,g].filter(Boolean)).length?void E.length:!g&&A?A+" "+a("earningMethods.ORDER_CREATE.BASE.descriptionSuffix"):C.join(", ")}break;default:return""}};export{o as getEarningMethodDescriptionV2,i as getFilterDetails,a as getFreeProductName};
1
+ import{__spreadArray as e}from'./../../ext/tslib/tslib.es6.mjs.js';import{LoyaltyProgramFilterTypeEnum as n,EarningMethodTypeEnum as r,LoyaltyProgramPointEarningTypeEnum as t}from"../../models/types/index.js";var i=function(e,r,t){if(!t||0===t.length)return[];var i=[];return t.forEach(function(t){var a="";switch(r){case n.CATEGORY:case n.DYNAMIC_CATEGORY:if(e.categories){var o=e.categories.find(function(e){return e.id===t});o&&(a=o.name)}break;case n.PRODUCT_AND_VARIANT:if(e.products){var s=e.products.find(function(e){return e.id===t});s&&(a=s.name)}break;case n.PRODUCT_BRAND:if(e.brands){var c=e.brands.find(function(e){return e.id===t});c&&(a=c.name)}break;case n.PRODUCT_TAG:if(e.tags){var d=e.tags.find(function(e){return e.id===t});d&&(a=d.name)}}a?i.push({type:r,name:a,id:t}):i.push({type:r,name:t,id:t})}),i},a=function(e,n){if(e.products){var r=e.products.find(function(e){return e.id===n});return r?r.name:void 0}},o=function(a,o,s){var c,d;switch(o.methodType){case r.CUSTOMER_REGISTER:case r.CUSTOMER_REVIEW:case r.ENABLE_SUBSCRIPTION:return a("earningMethods.xPoints",{points:o.pointsEarned});case r.ORDER_CREATE:var u=e(e([],(null===(c=o.productSettings)||void 0===c?void 0:c.productFilters)||[],!0),(null===(d=o.orderSettings)||void 0===d?void 0:d.productFilters)||[],!0),E=u.reduce(function(e,n){return e.concat(i(s,n.type,n.idList))},[]),R=E.map(function(e){switch(e.type){case n.CATEGORY:case n.DYNAMIC_CATEGORY:return a("earningMethods.ORDER_CREATE.BASE.genericCategory",{category:e.name});case n.PRODUCT_AND_VARIANT:return a("earningMethods.ORDER_CREATE.BASE.genericProduct",{product:e.name});case n.PRODUCT_BRAND:return a("earningMethods.ORDER_CREATE.BASE.genericBrand",{brand:e.name});case n.PRODUCT_TAG:return a("earningMethods.ORDER_CREATE.BASE.genericTag",{tag:e.name});default:return e.name}}).filter(Boolean).join(", "),m=o.orderSettings||{},A=m.minOrderAmount,f=m.maxOrderAmount,T="number"==typeof f&&f>0,p="";switch("number"==typeof A&&A>0?p=a("earningMethods.ORDER_CREATE.BASE.descriptionStaticMinimum",{amount:s.formatCurrency(A)}):T&&(p=a("earningMethods.ORDER_CREATE.BASE.descriptionStaticMaximum",{amount:s.formatCurrency(f)})),o.pointEarningType){case t.DYNAMIC_ORDER_AMOUNT:return(C=[R,p,a("earningMethods.ORDER_CREATE.RECEIVE_POINTS_ON_SPEND.description",{amount:s.formatCurrency(o.amountPerPointsEarned||0),points:o.pointsEarned})].filter(Boolean)).join(" ");case t.STATIC:var C;return 0===(C=[R,p].filter(Boolean)).length?void u.length:!p&&R?a("earningMethods.ORDER_CREATE.BASE.descriptionWithFilter",{filter:R}):C.join(", ")}break;default:return""}};export{o as getEarningMethodDescriptionV2,i as getFilterDetails,a as getFreeProductName};
@@ -0,0 +1,2 @@
1
+ export declare const flatten: (obj: any, prefix?: string) => Record<string, string>;
2
+ export declare const unflatten: (data: Record<string, string>) => any;
@@ -0,0 +1 @@
1
+ var n=function(r,e){return void 0===e&&(e=""),Object.keys(r).reduce(function(t,u){var c=e.length?e+".":"";return"object"==typeof r[u]&&null!==r[u]?Object.assign(t,n(r[u],c+u)):t[c+u]=r[u],t},{})},r=function(n){var r={},e=function(e){var t=e.split(".");t.reduce(function(r,u,c){return r[u]||(r[u]=isNaN(Number(t[c+1]))?t.length-1===c?n[e]:{}:[])},r)};for(var t in n)e(t);return r};export{n as flatten,r as unflatten};