@ikas/loyalty-widget-renderer 1.0.0-alpha.58 → 1.0.0-alpha.6

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 (125) hide show
  1. package/build/assets/index.d.ts +0 -1
  2. package/build/assets/widget-icons/illustraions/medal.js +1 -1
  3. package/build/ext/tslib/tslib.es6.mjs.js +1 -1
  4. package/build/index.d.ts +1 -5
  5. package/build/index.js +1 -1
  6. package/build/models/base.d.ts +4 -0
  7. package/build/models/base.js +1 -0
  8. package/build/models/category/index.d.ts +5 -0
  9. package/build/models/image/index.d.ts +2 -2
  10. package/build/models/image/index.js +1 -1
  11. package/build/models/index.d.ts +5 -16
  12. package/build/models/index.js +1 -1
  13. package/build/models/loyalty-customer-info/index.d.ts +7 -7
  14. package/build/models/loyalty-customer-info/index.js +1 -1
  15. package/build/models/loyalty-program-earning-method/index.d.ts +30 -16
  16. package/build/models/loyalty-program-earning-method/index.js +1 -1
  17. package/build/models/loyalty-program-point-history/index.d.ts +3 -3
  18. package/build/models/loyalty-program-point-history/index.js +1 -1
  19. package/build/models/loyalty-program-spending-method/index.d.ts +20 -7
  20. package/build/models/loyalty-program-spending-method/index.js +1 -1
  21. package/build/models/loyalty-widget/header/header-background/index.d.ts +2 -1
  22. package/build/models/loyalty-widget/header/header-background/index.js +1 -1
  23. package/build/models/loyalty-widget/header/index.d.ts +1 -1
  24. package/build/models/loyalty-widget/header-background/index.d.ts +9 -0
  25. package/build/models/loyalty-widget/index.d.ts +2 -2
  26. package/build/models/loyalty-widget/index.js +1 -1
  27. package/build/models/loyalty-widget/settings/index.js +1 -1
  28. package/build/models/types/index.d.ts +36 -13
  29. package/build/models/types/index.js +1 -1
  30. package/build/renderer/components/button/index.js +1 -1
  31. package/build/renderer/components/button/style.d.ts +0 -1
  32. package/build/renderer/components/button/style.js +1 -1
  33. package/build/renderer/components/loyalty-method-card/index.d.ts +1 -2
  34. package/build/renderer/components/loyalty-method-card/index.js +1 -1
  35. package/build/renderer/components/loyalty-method-card/style.js +1 -1
  36. package/build/renderer/components/style/typography.d.ts +1 -3
  37. package/build/renderer/components/style/typography.js +1 -1
  38. package/build/renderer/index.js +1 -1
  39. package/build/renderer/screens/credit-earning-methods-screen/index.js +1 -1
  40. package/build/renderer/screens/credit-history-screen/index.js +1 -1
  41. package/build/renderer/screens/credit-history-screen/style.d.ts +1 -3
  42. package/build/renderer/screens/credit-history-screen/style.js +1 -1
  43. package/build/renderer/screens/credit-spending-methods-screen/index.js +1 -1
  44. package/build/renderer/screens/credit-spending-methods-screen/style.d.ts +1 -3
  45. package/build/renderer/screens/credit-spending-methods-screen/style.js +1 -1
  46. package/build/renderer/screens/loyalty-level-screen/index.js +1 -1
  47. package/build/renderer/screens/loyalty-level-screen/style.d.ts +2 -6
  48. package/build/renderer/screens/loyalty-level-screen/style.js +1 -1
  49. package/build/renderer/screens/main-screen/earning-methods-section/index.d.ts +0 -1
  50. package/build/renderer/screens/main-screen/earning-methods-section/index.js +1 -1
  51. package/build/renderer/screens/main-screen/header/auth-user-section/index.js +1 -1
  52. package/build/renderer/screens/main-screen/header/index.js +1 -1
  53. package/build/renderer/screens/main-screen/header/logo-section/index.js +1 -1
  54. package/build/renderer/screens/main-screen/header/logo-section/style.d.ts +1 -3
  55. package/build/renderer/screens/main-screen/header/logo-section/style.js +1 -1
  56. package/build/renderer/screens/main-screen/header/style.d.ts +5 -11
  57. package/build/renderer/screens/main-screen/header/style.js +1 -1
  58. package/build/renderer/screens/main-screen/header/title-section/index.js +1 -1
  59. package/build/renderer/screens/main-screen/header/title-section/style.js +1 -1
  60. package/build/renderer/screens/main-screen/header/user-logged-section/index.js +1 -1
  61. package/build/renderer/screens/main-screen/index.js +1 -1
  62. package/build/renderer/screens/main-screen/program-info-section/index.js +1 -1
  63. package/build/renderer/screens/main-screen/program-info-section/style.d.ts +3 -11
  64. package/build/renderer/screens/main-screen/program-info-section/style.js +1 -1
  65. package/build/renderer/screens/main-screen/spending-methods-section/dynamic-slider.js +1 -1
  66. package/build/renderer/screens/main-screen/spending-methods-section/index.d.ts +0 -1
  67. package/build/renderer/screens/main-screen/spending-methods-section/index.js +1 -1
  68. package/build/renderer/screens/main-screen/style.js +1 -1
  69. package/build/renderer/style.d.ts +2 -17
  70. package/build/renderer/style.js +1 -1
  71. package/build/renderer/utils/i18n.js +1 -1
  72. package/build/renderer/utils/locales/en.json.js +1 -1
  73. package/build/renderer/utils/locales/tr.json.js +1 -1
  74. package/build/renderer/utils/loyalty-details.js +1 -1
  75. package/build/utils.d.ts +4 -6
  76. package/build/utils.js +1 -1
  77. package/package.json +10 -19
  78. package/build/assets/icons/arrow-right.d.ts +0 -2
  79. package/build/assets/icons/arrow-right.js +0 -1
  80. package/build/ext/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -1
  81. package/build/ext/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -1
  82. package/build/ext/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -1
  83. package/build/ext/@babel/runtime/helpers/esm/classCallCheck.js +0 -1
  84. package/build/ext/@babel/runtime/helpers/esm/createClass.js +0 -1
  85. package/build/ext/@babel/runtime/helpers/esm/defineProperty.js +0 -1
  86. package/build/ext/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -1
  87. package/build/ext/@babel/runtime/helpers/esm/inherits.js +0 -1
  88. package/build/ext/@babel/runtime/helpers/esm/iterableToArray.js +0 -1
  89. package/build/ext/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -1
  90. package/build/ext/@babel/runtime/helpers/esm/nonIterableRest.js +0 -1
  91. package/build/ext/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -1
  92. package/build/ext/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -1
  93. package/build/ext/@babel/runtime/helpers/esm/slicedToArray.js +0 -1
  94. package/build/ext/@babel/runtime/helpers/esm/toArray.js +0 -1
  95. package/build/ext/@babel/runtime/helpers/esm/toPrimitive.js +0 -1
  96. package/build/ext/@babel/runtime/helpers/esm/toPropertyKey.js +0 -1
  97. package/build/ext/@babel/runtime/helpers/esm/typeof.js +0 -1
  98. package/build/ext/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -1
  99. package/build/ext/i18next/dist/esm/i18next.js +0 -1
  100. package/build/ext/react-i18next/dist/es/I18nextProvider.js +0 -1
  101. package/build/ext/react-i18next/dist/es/context.js +0 -1
  102. package/build/ext/react-i18next/dist/es/unescape.js +0 -1
  103. package/build/ext/react-i18next/dist/es/useTranslation.js +0 -1
  104. package/build/ext/react-i18next/dist/es/utils.js +0 -1
  105. package/build/injector.d.ts +0 -5
  106. package/build/models/common/index.d.ts +0 -21
  107. package/build/models/common/index.js +0 -1
  108. package/build/models/mini-mode/index.d.ts +0 -7
  109. package/build/models/mini-mode/index.js +0 -1
  110. package/build/renderer/components/count-up/index.d.ts +0 -7
  111. package/build/renderer/components/count-up/index.js +0 -1
  112. package/build/renderer/components/flexible-value-container/index.d.ts +0 -16
  113. package/build/renderer/components/flexible-value-container/index.js +0 -1
  114. package/build/renderer/components/mini-mode-button/index.d.ts +0 -7
  115. package/build/renderer/components/mini-mode-button/index.js +0 -1
  116. package/build/renderer/components/mini-mode-button/style.d.ts +0 -6
  117. package/build/renderer/components/mini-mode-button/style.js +0 -1
  118. package/build/renderer/components/mini-mode-description/index.d.ts +0 -7
  119. package/build/renderer/components/mini-mode-description/index.js +0 -1
  120. package/build/renderer/components/mini-mode-description/style.d.ts +0 -3
  121. package/build/renderer/components/mini-mode-description/style.js +0 -1
  122. package/build/renderer/components/style/icon-wrapper.d.ts +0 -4
  123. package/build/renderer/components/style/icon-wrapper.js +0 -1
  124. package/build/storefront-widget-script-injector.iife.js +0 -68
  125. package/build/storefront-widget-script-injector.iife.js.map +0 -1
@@ -6,7 +6,6 @@ export { XClose } from "./icons/x-close";
6
6
  export { CheckCircleFill } from "./icons/check-circle-fill";
7
7
  export { ChevronLeft } from "./icons/chevron-left";
8
8
  export { Check } from "./icons/check";
9
- export { ArrowRight } from "./icons/arrow-right";
10
9
  export { BubbleChatDone } from "./widget-icons/normal/bubbleChatDone";
11
10
  export { CommentAdd01 } from "./widget-icons/normal/commentAdd01";
12
11
  export { CouponPercent } from "./widget-icons/normal/couponPercent";
@@ -1 +1 @@
1
- import e from"react";var t=function(t){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e.createElement("path",{d:"M12.7287 10.0002L17.2219 7.19194C17.8199 6.81816 18.1832 6.16265 18.1832 5.4574V3.86381C18.1832 2.73414 17.2675 1.81836 16.1378 1.81836H12.7287L12.0469 5.90927L12.7287 10.0002Z",fill:"url(#paint0_linear_14681_7916)"}),e.createElement("path",{d:"M7.27095 1.81836H3.86186C2.73219 1.81836 1.81641 2.73414 1.81641 3.86381V5.4574C1.81641 6.16265 2.17972 6.81816 2.77777 7.19194L7.27095 10.0002L7.95277 5.90927L7.27095 1.81836Z",fill:"url(#paint1_linear_14681_7916)"}),e.createElement("path",{d:"M12.728 1.81836H7.27344V10.0002L8.91662 11.0272C9.5799 11.4417 10.4215 11.4417 11.0848 11.0272L12.728 10.0002V1.81836Z",fill:"url(#paint2_linear_14681_7916)"}),e.createElement("path",{d:"M14.092 14.0909C14.092 16.3503 12.2604 18.1818 10.0011 18.1818C7.74172 18.1818 5.91016 16.3503 5.91016 14.0909C5.91016 11.8316 7.74172 10 10.0011 10C12.2604 10 14.092 11.8316 14.092 14.0909Z",fill:"url(#paint3_radial_14681_7916)"}),e.createElement("path",{d:"M9.99858 19.0909C12.509 19.0909 14.544 17.0558 14.544 14.5455C14.544 12.0351 12.509 10 9.99858 10C7.48819 10 5.45312 12.0351 5.45312 14.5455C5.45312 17.0558 7.48819 19.0909 9.99858 19.0909Z",fill:"url(#paint4_linear_14681_7916)"}),e.createElement("path",{d:"M9.99715 18.299C12.071 18.299 13.7521 16.6178 13.7521 14.544C13.7521 12.4702 12.071 10.7891 9.99715 10.7891C7.92334 10.7891 6.24219 12.4702 6.24219 14.544C6.24219 16.6178 7.92334 18.299 9.99715 18.299Z",fill:"url(#paint5_linear_14681_7916)"}),e.createElement("path",{d:"M10.0001 17.9046C11.8555 17.9046 13.3596 16.4005 13.3596 14.5451C13.3596 12.6896 11.8555 11.1855 10.0001 11.1855C8.14473 11.1855 6.64062 12.6896 6.64062 14.5451C6.64062 16.4005 8.14473 17.9046 10.0001 17.9046Z",fill:"url(#paint6_linear_14681_7916)"}),e.createElement("path",{d:"M8.50316 14.9411L7.19531 13.5667L9.06143 13.2233L9.96432 11.5547L10.8676 13.2233L12.7337 13.5667L11.4259 14.9411L11.6763 16.822L9.96432 16.0026L8.25316 16.822L8.50316 14.9411Z",fill:"url(#paint7_linear_14681_7916)"}),e.createElement("path",{d:"M9.96289 11.8145L10.7852 13.3339L12.4844 13.6467L11.2931 14.8983L11.5212 16.6107L9.96289 15.8649L8.40422 16.6107L8.63232 14.8983L7.44141 13.6467L9.14058 13.3339L9.96289 11.8145Z",fill:"url(#paint8_linear_14681_7916)"}),e.createElement("path",{d:"M9.97014 15.1779L9.17717 15.5573L9.29328 14.6858L8.6875 14.0494L9.55196 13.8899L9.97014 13.1172L10.3892 13.8899L11.2532 14.0494L10.6474 14.6858L10.7635 15.5573L9.97014 15.1779Z",fill:"url(#paint9_linear_14681_7916)"}),e.createElement("path",{d:"M7.44141 13.6468L8.67984 14.0493L9.5443 13.8898L9.14058 13.334L7.44141 13.6468Z",fill:"url(#paint10_linear_14681_7916)"}),e.createElement("path",{d:"M9.97075 11.8184V13.12L9.5534 13.8927L9.14844 13.3349L9.86745 12.0126L9.97075 11.8184Z",fill:"url(#paint11_linear_14681_7916)"}),e.createElement("path",{d:"M10.7872 13.3349L10.3822 13.8927L9.96484 13.12V11.8184L10.0764 12.025L10.7872 13.3349Z",fill:"url(#paint12_linear_14681_7916)"}),e.createElement("path",{d:"M10.3828 13.8898L11.2469 14.0493L12.4857 13.6468L10.7865 13.334L10.3828 13.8898Z",fill:"url(#paint13_linear_14681_7916)"}),e.createElement("path",{d:"M10.6445 14.6853L11.2978 14.8981L12.4892 13.6465L11.2503 14.049L10.6445 14.6853Z",fill:"url(#paint14_linear_14681_7916)"}),e.createElement("path",{d:"M9.96883 15.8649L9.96842 15.1777L9.17545 15.5571L8.41016 16.6108L9.96883 15.8649Z",fill:"url(#paint15_linear_14681_7916)"}),e.createElement("path",{d:"M9.96484 15.1777L10.7582 15.5571L11.5235 16.6108L9.96526 15.8649L9.96484 15.1777Z",fill:"url(#paint16_linear_14681_7916)"}),e.createElement("path",{d:"M10.6445 14.6875L10.7606 15.559L11.5259 16.6127L11.2978 14.9003L10.6445 14.6875Z",fill:"url(#paint17_linear_14681_7916)"}),e.createElement("path",{d:"M8.63826 14.9003L9.29156 14.6875L9.17545 15.559L8.41016 16.6127L8.63826 14.9003Z",fill:"url(#paint18_linear_14681_7916)"}),e.createElement("path",{d:"M7.44141 13.6465L8.67984 14.049L9.28562 14.6853L8.63232 14.8981L7.44141 13.6465Z",fill:"url(#paint19_linear_14681_7916)"}),e.createElement("path",{d:"M9.99858 19.0909C12.509 19.0909 14.544 17.0558 14.544 14.5455C14.544 12.0351 12.509 10 9.99858 10C7.48819 10 5.45312 12.0351 5.45312 14.5455C5.45312 17.0558 7.48819 19.0909 9.99858 19.0909Z",fill:"url(#paint20_radial_14681_7916)"}),e.createElement("path",{d:"M9.99715 18.299C12.071 18.299 13.7521 16.6178 13.7521 14.544C13.7521 12.4702 12.071 10.7891 9.99715 10.7891C7.92334 10.7891 6.24219 12.4702 6.24219 14.544C6.24219 16.6178 7.92334 18.299 9.99715 18.299Z",fill:"url(#paint21_radial_14681_7916)"}),e.createElement("path",{d:"M9.99715 18.299C12.071 18.299 13.7521 16.6178 13.7521 14.544C13.7521 12.4702 12.071 10.7891 9.99715 10.7891C7.92334 10.7891 6.24219 12.4702 6.24219 14.544C6.24219 16.6178 7.92334 18.299 9.99715 18.299Z",fill:"url(#paint22_radial_14681_7916)"}),e.createElement("defs",null,e.createElement("linearGradient",{id:"paint0_linear_14681_7916",x1:"18.1832",y1:"2.54586",x2:"12.2343",y2:"9.06149",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#52D17C"}),e.createElement("stop",{offset:"1",stopColor:"#1A7F7C"})),e.createElement("linearGradient",{id:"paint1_linear_14681_7916",x1:"1.81641",y1:"4.02205",x2:"7.88105",y2:"8.17236",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#52D17C"}),e.createElement("stop",{offset:"1",stopColor:"#1A7F7C"})),e.createElement("linearGradient",{id:"paint2_linear_14681_7916",x1:"10.0007",y1:"0.627741",x2:"13.5024",y2:"10.0346",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#76EB95"}),e.createElement("stop",{offset:"1",stopColor:"#1EC8B0"})),e.createElement("radialGradient",{id:"paint3_radial_14681_7916",cx:"0",cy:"0",r:"1",gradientTransform:"matrix(25.1299 38.1331 -35.5287 17.1684 -11.7684 -18.6364)",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{offset:"0.771547",stopColor:"#FFCD0F"}),e.createElement("stop",{offset:"0.990707",stopColor:"#E67505"})),e.createElement("linearGradient",{id:"paint4_linear_14681_7916",x1:"5.69362",y1:"9.55248",x2:"13.2197",y2:"18.2814",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FFE16E"}),e.createElement("stop",{offset:"0.352",stopColor:"#FFD226"}),e.createElement("stop",{offset:"0.453",stopColor:"#FDCD23"}),e.createElement("stop",{offset:"0.579",stopColor:"#F6BD1B"}),e.createElement("stop",{offset:"0.663",stopColor:"#F0AF13"}),e.createElement("stop",{offset:"1",stopColor:"#F08D13"})),e.createElement("linearGradient",{id:"paint5_linear_14681_7916",x1:"13.3174",y1:"17.8643",x2:"6.0112",y2:"10.5581",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FFE16E"}),e.createElement("stop",{offset:"0.352",stopColor:"#FFD226"}),e.createElement("stop",{offset:"0.453",stopColor:"#FDCD23"}),e.createElement("stop",{offset:"0.579",stopColor:"#F6BD1B"}),e.createElement("stop",{offset:"0.663",stopColor:"#F0AF13"}),e.createElement("stop",{offset:"1",stopColor:"#F08D13"})),e.createElement("linearGradient",{id:"paint6_linear_14681_7916",x1:"7.13029",y1:"11.1438",x2:"12.8274",y2:"17.8959",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FFE787"}),e.createElement("stop",{offset:"0.525",stopColor:"#FFE16E"}),e.createElement("stop",{offset:"1",stopColor:"#F0BC13"})),e.createElement("linearGradient",{id:"paint7_linear_14681_7916",x1:"1.46143",y1:"8.42039",x2:"14.2635",y2:"18.022",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FFDD5D"}),e.createElement("stop",{offset:"0.485",stopColor:"#F0BC13"}),e.createElement("stop",{offset:"1",stopColor:"#F08D13"})),e.createElement("linearGradient",{id:"paint8_linear_14681_7916",x1:"7.41579",y1:"11.6529",x2:"12.6559",y2:"17.6665",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FFDD5D"}),e.createElement("stop",{offset:"0.485",stopColor:"#F0BC13"}),e.createElement("stop",{offset:"1",stopColor:"#F08D13"})),e.createElement("linearGradient",{id:"paint9_linear_14681_7916",x1:"8.5656",y1:"12.0961",x2:"12.0474",y2:"17.8106",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FFDD5D"}),e.createElement("stop",{offset:"0.485",stopColor:"#F0BC13"}),e.createElement("stop",{offset:"1",stopColor:"#F08D13"})),e.createElement("linearGradient",{id:"paint10_linear_14681_7916",x1:"7.6443",y1:"12.5861",x2:"9.65752",y2:"15.3906",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FFE16E"}),e.createElement("stop",{offset:"0.485",stopColor:"#F0BC13"}),e.createElement("stop",{offset:"1",stopColor:"#F08D13"})),e.createElement("linearGradient",{id:"paint11_linear_14681_7916",x1:"10.7009",y1:"11.2605",x2:"5.89017",y2:"19.432",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FFE996"}),e.createElement("stop",{offset:"0.485",stopColor:"#F0BC13"}),e.createElement("stop",{offset:"0.797",stopColor:"#F0A013"}),e.createElement("stop",{offset:"1",stopColor:"#F08D13"})),e.createElement("linearGradient",{id:"paint12_linear_14681_7916",x1:"12.1818",y1:"10.5014",x2:"9.52641",y2:"13.6142",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FFE16E"}),e.createElement("stop",{offset:"0.352",stopColor:"#FFD226"}),e.createElement("stop",{offset:"0.453",stopColor:"#FDCD23"}),e.createElement("stop",{offset:"0.579",stopColor:"#F6BD1B"}),e.createElement("stop",{offset:"0.663",stopColor:"#F0AF13"}),e.createElement("stop",{offset:"1",stopColor:"#F08D13"})),e.createElement("linearGradient",{id:"paint13_linear_14681_7916",x1:"12.6506",y1:"14.1274",x2:"7.6857",y2:"12.6608",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FFE996"}),e.createElement("stop",{offset:"0.158",stopColor:"#F8D55A"}),e.createElement("stop",{offset:"0.31",stopColor:"#F2C327"}),e.createElement("stop",{offset:"0.384",stopColor:"#F0BC13"}),e.createElement("stop",{offset:"0.797",stopColor:"#F0A013"}),e.createElement("stop",{offset:"1",stopColor:"#F08D13"})),e.createElement("linearGradient",{id:"paint14_linear_14681_7916",x1:"13.4057",y1:"11.001",x2:"11.1991",y2:"14.799",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FFE16E"}),e.createElement("stop",{offset:"0.352",stopColor:"#FFD226"}),e.createElement("stop",{offset:"0.491",stopColor:"#FDCD23"}),e.createElement("stop",{offset:"0.664",stopColor:"#F6BD1B"}),e.createElement("stop",{offset:"0.779",stopColor:"#F0AF13"}),e.createElement("stop",{offset:"0.852",stopColor:"#F0AA13"}),e.createElement("stop",{offset:"0.941",stopColor:"#F09B13"}),e.createElement("stop",{offset:"1",stopColor:"#F08D13"})),e.createElement("linearGradient",{id:"paint15_linear_14681_7916",x1:"6.72255",y1:"16.5881",x2:"9.94239",y2:"15.6823",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FFE16E"}),e.createElement("stop",{offset:"0.352",stopColor:"#FFD226"}),e.createElement("stop",{offset:"0.436",stopColor:"#FDCD23"}),e.createElement("stop",{offset:"0.54",stopColor:"#F6BD1B"}),e.createElement("stop",{offset:"0.61",stopColor:"#F0AF13"}),e.createElement("stop",{offset:"1",stopColor:"#F08D13"})),e.createElement("linearGradient",{id:"paint16_linear_14681_7916",x1:"13.9297",y1:"17.5815",x2:"9.43922",y2:"15.2273",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FFE16E"}),e.createElement("stop",{offset:"0.352",stopColor:"#FFD226"}),e.createElement("stop",{offset:"0.453",stopColor:"#FDCD23"}),e.createElement("stop",{offset:"0.579",stopColor:"#F6BD1B"}),e.createElement("stop",{offset:"0.663",stopColor:"#F0AF13"}),e.createElement("stop",{offset:"1",stopColor:"#F08D13"})),e.createElement("linearGradient",{id:"paint17_linear_14681_7916",x1:"10.3747",y1:"9.50403",x2:"11.2379",y2:"16.9701",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FFE16E"}),e.createElement("stop",{offset:"0.352",stopColor:"#FFD226"}),e.createElement("stop",{offset:"0.453",stopColor:"#FDCD23"}),e.createElement("stop",{offset:"0.579",stopColor:"#F6BD1B"}),e.createElement("stop",{offset:"0.663",stopColor:"#F0AF13"}),e.createElement("stop",{offset:"1",stopColor:"#F08D13"})),e.createElement("linearGradient",{id:"paint18_linear_14681_7916",x1:"8.84611",y1:"17.6495",x2:"8.85933",y2:"12.0445",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FFE996"}),e.createElement("stop",{offset:"0.507",stopColor:"#F0BC13"}),e.createElement("stop",{offset:"0.797",stopColor:"#F0A013"}),e.createElement("stop",{offset:"1",stopColor:"#F08D13"})),e.createElement("linearGradient",{id:"paint19_linear_14681_7916",x1:"7.97281",y1:"10.7849",x2:"8.56413",y2:"15.9019",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FFE16E"}),e.createElement("stop",{offset:"0.352",stopColor:"#FFD226"}),e.createElement("stop",{offset:"0.453",stopColor:"#FDCD23"}),e.createElement("stop",{offset:"0.579",stopColor:"#F6BD1B"}),e.createElement("stop",{offset:"0.663",stopColor:"#F0AF13"}),e.createElement("stop",{offset:"1",stopColor:"#F08D13"})),e.createElement("radialGradient",{id:"paint20_radial_14681_7916",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(10.499 15.1045) scale(6.30579)"},e.createElement("stop",{stopColor:"#FFE477",stopOpacity:"0"}),e.createElement("stop",{offset:"0.725",stopColor:"#FFE477",stopOpacity:"0"}),e.createElement("stop",{offset:"0.83",stopColor:"#FFEEAB"}),e.createElement("stop",{offset:"0.962",stopColor:"#FFE477",stopOpacity:"0"})),e.createElement("radialGradient",{id:"paint21_radial_14681_7916",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(10.1641 13.7837) scale(5.65413)"},e.createElement("stop",{stopColor:"#FFE477",stopOpacity:"0"}),e.createElement("stop",{offset:"0.725",stopColor:"#FFE477",stopOpacity:"0"}),e.createElement("stop",{offset:"0.83",stopColor:"#FFEEAB"}),e.createElement("stop",{offset:"0.962",stopColor:"#FFE477",stopOpacity:"0"})),e.createElement("radialGradient",{id:"paint22_radial_14681_7916",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(10.1641 13.7837) scale(5.65413)"},e.createElement("stop",{stopColor:"#FFE477",stopOpacity:"0"}),e.createElement("stop",{offset:"0.725",stopColor:"#FFE477",stopOpacity:"0"}),e.createElement("stop",{offset:"0.83",stopColor:"#FFEEAB"}),e.createElement("stop",{offset:"0.962",stopColor:"#FFE477",stopOpacity:"0"}))))};export{t as Medal};
1
+ import e from"react";var t=function(t){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e.createElement("path",{d:"M12.7287 10.0002L17.2219 7.19194C17.8199 6.81816 18.1832 6.16265 18.1832 5.4574V3.86381C18.1832 2.73414 17.2675 1.81836 16.1378 1.81836H12.7287L12.0469 5.90927L12.7287 10.0002Z",fill:"url(#paint0_linear_14681_7916)"}),e.createElement("path",{d:"M7.27095 1.81836H3.86186C2.73219 1.81836 1.81641 2.73414 1.81641 3.86381V5.4574C1.81641 6.16265 2.17972 6.81816 2.77777 7.19194L7.27095 10.0002L7.95277 5.90927L7.27095 1.81836Z",fill:"url(#paint1_linear_14681_7916)"}),e.createElement("path",{d:"M12.728 1.81836H7.27344V10.0002L8.91662 11.0272C9.5799 11.4417 10.4215 11.4417 11.0848 11.0272L12.728 10.0002V1.81836Z",fill:"url(#paint2_linear_14681_7916)"}),e.createElement("path",{d:"M14.092 14.0909C14.092 16.3503 12.2604 18.1818 10.0011 18.1818C7.74172 18.1818 5.91016 16.3503 5.91016 14.0909C5.91016 11.8316 7.74172 10 10.0011 10C12.2604 10 14.092 11.8316 14.092 14.0909Z",fill:"url(#paint3_radial_14681_7916)"}),e.createElement("path",{d:"M9.99858 19.0909C12.509 19.0909 14.544 17.0558 14.544 14.5455C14.544 12.0351 12.509 10 9.99858 10C7.48819 10 5.45312 12.0351 5.45312 14.5455C5.45312 17.0558 7.48819 19.0909 9.99858 19.0909Z",fill:"url(#paint4_linear_14681_7916)"}),e.createElement("path",{d:"M9.99715 18.299C12.071 18.299 13.7521 16.6178 13.7521 14.544C13.7521 12.4702 12.071 10.7891 9.99715 10.7891C7.92334 10.7891 6.24219 12.4702 6.24219 14.544C6.24219 16.6178 7.92334 18.299 9.99715 18.299Z",fill:"url(#paint5_linear_14681_7916)"}),e.createElement("path",{d:"M10.0001 17.9046C11.8555 17.9046 13.3596 16.4005 13.3596 14.5451C13.3596 12.6896 11.8555 11.1855 10.0001 11.1855C8.14473 11.1855 6.64062 12.6896 6.64062 14.5451C6.64062 16.4005 8.14473 17.9046 10.0001 17.9046Z",fill:"url(#paint6_linear_14681_7916)"}),e.createElement("path",{d:"M8.50316 14.9411L7.19531 13.5667L9.06143 13.2233L9.96432 11.5547L10.8676 13.2233L12.7337 13.5667L11.4259 14.9411L11.6763 16.822L9.96432 16.0026L8.25316 16.822L8.50316 14.9411Z",fill:"url(#paint7_linear_14681_7916)"}),e.createElement("path",{d:"M9.96289 11.8145L10.7852 13.3339L12.4844 13.6467L11.2931 14.8983L11.5212 16.6107L9.96289 15.8649L8.40422 16.6107L8.63232 14.8983L7.44141 13.6467L9.14058 13.3339L9.96289 11.8145Z",fill:"url(#paint8_linear_14681_7916)"}),e.createElement("path",{d:"M9.97014 15.1779L9.17717 15.5573L9.29328 14.6858L8.6875 14.0494L9.55196 13.8899L9.97014 13.1172L10.3892 13.8899L11.2532 14.0494L10.6474 14.6858L10.7635 15.5573L9.97014 15.1779Z",fill:"url(#paint9_linear_14681_7916)"}),e.createElement("path",{d:"M7.44141 13.6468L8.67984 14.0493L9.5443 13.8898L9.14058 13.334L7.44141 13.6468Z",fill:"url(#paint10_linear_14681_7916)"}),e.createElement("path",{d:"M9.97075 11.8184V13.12L9.5534 13.8927L9.14844 13.3349L9.86745 12.0126L9.97075 11.8184Z",fill:"url(#paint11_linear_14681_7916)"}),e.createElement("path",{d:"M10.7872 13.3349L10.3822 13.8927L9.96484 13.12V11.8184L10.0764 12.025L10.7872 13.3349Z",fill:"url(#paint12_linear_14681_7916)"}),e.createElement("path",{d:"M10.3828 13.8898L11.2469 14.0493L12.4857 13.6468L10.7865 13.334L10.3828 13.8898Z",fill:"url(#paint13_linear_14681_7916)"}),e.createElement("path",{d:"M10.6445 14.6853L11.2978 14.8981L12.4892 13.6465L11.2503 14.049L10.6445 14.6853Z",fill:"url(#paint14_linear_14681_7916)"}),e.createElement("path",{d:"M9.96883 15.8649L9.96842 15.1777L9.17545 15.5571L8.41016 16.6108L9.96883 15.8649Z",fill:"url(#paint15_linear_14681_7916)"}),e.createElement("path",{d:"M9.96484 15.1777L10.7582 15.5571L11.5235 16.6108L9.96526 15.8649L9.96484 15.1777Z",fill:"url(#paint16_linear_14681_7916)"}),e.createElement("path",{d:"M10.6445 14.6875L10.7606 15.559L11.5259 16.6127L11.2978 14.9003L10.6445 14.6875Z",fill:"url(#paint17_linear_14681_7916)"}),e.createElement("path",{d:"M8.63826 14.9003L9.29156 14.6875L9.17545 15.559L8.41016 16.6127L8.63826 14.9003Z",fill:"url(#paint18_linear_14681_7916)"}),e.createElement("path",{d:"M7.44141 13.6465L8.67984 14.049L9.28562 14.6853L8.63232 14.8981L7.44141 13.6465Z",fill:"url(#paint19_linear_14681_7916)"}),e.createElement("path",{d:"M9.99858 19.0909C12.509 19.0909 14.544 17.0558 14.544 14.5455C14.544 12.0351 12.509 10 9.99858 10C7.48819 10 5.45312 12.0351 5.45312 14.5455C5.45312 17.0558 7.48819 19.0909 9.99858 19.0909Z",fill:"url(#paint20_radial_14681_7916)"}),e.createElement("path",{d:"M9.99715 18.299C12.071 18.299 13.7521 16.6178 13.7521 14.544C13.7521 12.4702 12.071 10.7891 9.99715 10.7891C7.92334 10.7891 6.24219 12.4702 6.24219 14.544C6.24219 16.6178 7.92334 18.299 9.99715 18.299Z",fill:"url(#paint21_radial_14681_7916)"}),e.createElement("path",{d:"M9.99715 18.299C12.071 18.299 13.7521 16.6178 13.7521 14.544C13.7521 12.4702 12.071 10.7891 9.99715 10.7891C7.92334 10.7891 6.24219 12.4702 6.24219 14.544C6.24219 16.6178 7.92334 18.299 9.99715 18.299Z",fill:"url(#paint22_radial_14681_7916)"}),e.createElement("defs",null,e.createElement("linearGradient",{id:"paint0_linear_14681_7916",x1:"18.1832",y1:"2.54586",x2:"12.2343",y2:"9.06149",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#52D17C"}),e.createElement("stop",{offset:"1",stopColor:"#1A7F7C"})),e.createElement("linearGradient",{id:"paint1_linear_14681_7916",x1:"1.81641",y1:"4.02205",x2:"7.88105",y2:"8.17236",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#52D17C"}),e.createElement("stop",{offset:"1",stopColor:"#1A7F7C"})),e.createElement("linearGradient",{id:"paint2_linear_14681_7916",x1:"10.0007",y1:"0.627741",x2:"13.5024",y2:"10.0346",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#76EB95"}),e.createElement("stop",{offset:"1",stopColor:"#1EC8B0"})),e.createElement("radialGradient",{id:"paint3_radial_14681_7916",cx:"0",cy:"0",r:"1",gradientTransform:"matrix(25.1299 38.1331 -35.5287 17.1684 -11.7684 -18.6364)",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{offset:"0.771547",stopColor:"#FFCD0F"}),e.createElement("stop",{offset:"0.990707",stopColor:"#E67505"})),e.createElement("linearGradient",{id:"paint4_linear_14681_7916",x1:"5.69362",y1:"9.55248",x2:"13.2197",y2:"18.2814",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FFE16E"}),e.createElement("stop",{offset:"0.352",stopColor:"#FFD226"}),e.createElement("stop",{offset:"0.453",stopColor:"#FDCD23"}),e.createElement("stop",{offset:"0.579",stopColor:"#F6BD1B"}),e.createElement("stop",{offset:"0.663",stopColor:"#F0AF13"}),e.createElement("stop",{offset:"1",stopColor:"#F08D13"})),e.createElement("linearGradient",{id:"paint5_linear_14681_7916",x1:"13.3174",y1:"17.8643",x2:"6.0112",y2:"10.5581",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FFE16E"}),e.createElement("stop",{offset:"0.352",stopColor:"#FFD226"}),e.createElement("stop",{offset:"0.453",stopColor:"#FDCD23"}),e.createElement("stop",{offset:"0.579",stopColor:"#F6BD1B"}),e.createElement("stop",{offset:"0.663",stopColor:"#F0AF13"}),e.createElement("stop",{offset:"1",stopColor:"#F08D13"})),e.createElement("linearGradient",{id:"paint6_linear_14681_7916",x1:"7.13029",y1:"11.1438",x2:"12.8274",y2:"17.8959",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FFE787"}),e.createElement("stop",{offset:"0.525",stopColor:"#FFE16E"}),e.createElement("stop",{offset:"1",stopColor:"#F0BC13"})),e.createElement("linearGradient",{id:"paint7_linear_14681_7916",x1:"1.46143",y1:"8.42039",x2:"14.2635",y2:"18.022",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FFDD5D"}),e.createElement("stop",{offset:"0.485",stopColor:"#F0BC13"}),e.createElement("stop",{offset:"1",stopColor:"#F08D13"})),e.createElement("linearGradient",{id:"paint8_linear_14681_7916",x1:"7.41579",y1:"11.6529",x2:"12.6559",y2:"17.6665",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FFDD5D"}),e.createElement("stop",{offset:"0.485",stopColor:"#F0BC13"}),e.createElement("stop",{offset:"1",stopColor:"#F08D13"})),e.createElement("linearGradient",{id:"paint9_linear_14681_7916",x1:"8.5656",y1:"12.0961",x2:"12.0474",y2:"17.8106",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FFDD5D"}),e.createElement("stop",{offset:"0.485",stopColor:"#F0BC13"}),e.createElement("stop",{offset:"1",stopColor:"#F08D13"})),e.createElement("linearGradient",{id:"paint10_linear_14681_7916",x1:"7.6443",y1:"12.5861",x2:"9.65752",y2:"15.3906",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FFE16E"}),e.createElement("stop",{offset:"0.485",stopColor:"#F0BC13"}),e.createElement("stop",{offset:"1",stopColor:"#F08D13"})),e.createElement("linearGradient",{id:"paint11_linear_14681_7916",x1:"10.7009",y1:"11.2605",x2:"5.89017",y2:"19.432",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FFE996"}),e.createElement("stop",{offset:"0.485",stopColor:"#F0BC13"}),e.createElement("stop",{offset:"0.797",stopColor:"#F0A013"}),e.createElement("stop",{offset:"1",stopColor:"#F08D13"})),e.createElement("linearGradient",{id:"paint12_linear_14681_7916",x1:"12.1818",y1:"10.5014",x2:"9.52641",y2:"13.6142",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FFE16E"}),e.createElement("stop",{offset:"0.352",stopColor:"#FFD226"}),e.createElement("stop",{offset:"0.453",stopColor:"#FDCD23"}),e.createElement("stop",{offset:"0.579",stopColor:"#F6BD1B"}),e.createElement("stop",{offset:"0.663",stopColor:"#F0AF13"}),e.createElement("stop",{offset:"1",stopColor:"#F08D13"})),e.createElement("linearGradient",{id:"paint13_linear_14681_7916",x1:"12.6506",y1:"14.1274",x2:"7.6857",y2:"12.6608",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FFE996"}),e.createElement("stop",{offset:"0.158",stopColor:"#F8D55A"}),e.createElement("stop",{offset:"0.31",stopColor:"#F2C327"}),e.createElement("stop",{offset:"0.384",stopColor:"#F0BC13"}),e.createElement("stop",{offset:"0.797",stopColor:"#F0A013"}),e.createElement("stop",{offset:"1",stopColor:"#F08D13"})),e.createElement("linearGradient",{id:"paint14_linear_14681_7916",x1:"13.4057",y1:"11.001",x2:"11.1991",y2:"14.799",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FFE16E"}),e.createElement("stop",{offset:"0.352",stopColor:"#FFD226"}),e.createElement("stop",{offset:"0.491",stopColor:"#FDCD23"}),e.createElement("stop",{offset:"0.664",stopColor:"#F6BD1B"}),e.createElement("stop",{offset:"0.779",stopColor:"#F0AF13"}),e.createElement("stop",{offset:"0.852",stopColor:"#F0AA13"}),e.createElement("stop",{offset:"0.941",stopColor:"#F09B13"}),e.createElement("stop",{offset:"1",stopColor:"#F08D13"})),e.createElement("linearGradient",{id:"paint15_linear_14681_7916",x1:"6.72255",y1:"16.5881",x2:"9.94239",y2:"15.6823",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FFE16E"}),e.createElement("stop",{offset:"0.352",stopColor:"#FFD226"}),e.createElement("stop",{offset:"0.436",stopColor:"#FDCD23"}),e.createElement("stop",{offset:"0.54",stopColor:"#F6BD1B"}),e.createElement("stop",{offset:"0.61",stopColor:"#F0AF13"}),e.createElement("stop",{offset:"1",stopColor:"#F08D13"})),e.createElement("linearGradient",{id:"paint16_linear_14681_7916",x1:"13.9297",y1:"17.5815",x2:"9.43922",y2:"15.2273",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FFE16E"}),e.createElement("stop",{offset:"0.352",stopColor:"#FFD226"}),e.createElement("stop",{offset:"0.453",stopColor:"#FDCD23"}),e.createElement("stop",{offset:"0.579",stopColor:"#F6BD1B"}),e.createElement("stop",{offset:"0.663",stopColor:"#F0AF13"}),e.createElement("stop",{offset:"1",stopColor:"#F08D13"})),e.createElement("linearGradient",{id:"paint17_linear_14681_7916",x1:"10.3747",y1:"9.50403",x2:"11.2379",y2:"16.9701",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FFE16E"}),e.createElement("stop",{offset:"0.352",stopColor:"#FFD226"}),e.createElement("stop",{offset:"0.453",stopColor:"#FDCD23"}),e.createElement("stop",{offset:"0.579",stopColor:"#F6BD1B"}),e.createElement("stop",{offset:"0.663",stopColor:"#F0AF13"}),e.createElement("stop",{offset:"1",stopColor:"#F08D13"})),e.createElement("linearGradient",{id:"paint18_linear_14681_7916",x1:"8.84611",y1:"17.6495",x2:"8.85933",y2:"12.0445",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FFE996"}),e.createElement("stop",{offset:"0.507",stopColor:"#F0BC13"}),e.createElement("stop",{offset:"0.797",stopColor:"#F0A013"}),e.createElement("stop",{offset:"1",stopColor:"#F08D13"})),e.createElement("linearGradient",{id:"paint19_linear_14681_7916",x1:"7.97281",y1:"10.7849",x2:"8.56413",y2:"15.9019",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FFE16E"}),e.createElement("stop",{offset:"0.352",stopColor:"#FFD226"}),e.createElement("stop",{offset:"0.453",stopColor:"#FDCD23"}),e.createElement("stop",{offset:"0.579",stopColor:"#F6BD1B"}),e.createElement("stop",{offset:"0.663",stopColor:"#F0AF13"}),e.createElement("stop",{offset:"1",stopColor:"#F08D13"})),e.createElement("radialGradient",{id:"paint20_radial_14681_7916",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(10.499 15.1045) scale(6.30579)"},e.createElement("stop",{stopColor:"#FFE477","stop-opacity":"0"}),e.createElement("stop",{offset:"0.725",stopColor:"#FFE477","stop-opacity":"0"}),e.createElement("stop",{offset:"0.83",stopColor:"#FFEEAB"}),e.createElement("stop",{offset:"0.962",stopColor:"#FFE477","stop-opacity":"0"})),e.createElement("radialGradient",{id:"paint21_radial_14681_7916",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(10.1641 13.7837) scale(5.65413)"},e.createElement("stop",{stopColor:"#FFE477","stop-opacity":"0"}),e.createElement("stop",{offset:"0.725",stopColor:"#FFE477","stop-opacity":"0"}),e.createElement("stop",{offset:"0.83",stopColor:"#FFEEAB"}),e.createElement("stop",{offset:"0.962",stopColor:"#FFE477","stop-opacity":"0"})),e.createElement("radialGradient",{id:"paint22_radial_14681_7916",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(10.1641 13.7837) scale(5.65413)"},e.createElement("stop",{stopColor:"#FFE477","stop-opacity":"0"}),e.createElement("stop",{offset:"0.725",stopColor:"#FFE477","stop-opacity":"0"}),e.createElement("stop",{offset:"0.83",stopColor:"#FFEEAB"}),e.createElement("stop",{offset:"0.962",stopColor:"#FFE477","stop-opacity":"0"}))))};export{t as Medal};
@@ -1 +1 @@
1
- var e=function(){return e=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},e.apply(this,arguments)};function t(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function r(e,t,r,n){return new(r||(r=Promise))(function(o,a){function c(e){try{i(n.next(e))}catch(e){a(e)}}function l(e){try{i(n.throw(e))}catch(e){a(e)}}function i(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(c,l)}i((n=n.apply(e,t||[])).next())})}function n(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return c.next=l(0),c.throw=l(1),c.return=l(2),"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function l(l){return function(i){return function(l){if(r)throw new TypeError("Generator is already executing.");for(;c&&(c=0,l[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&l[0]?n.return:l[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;switch(n=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,n=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],n=0}finally{r=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,i])}}}function o(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function a(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}"function"==typeof SuppressedError&&SuppressedError;export{e as __assign,r as __awaiter,n as __generator,a as __makeTemplateObject,t as __rest,o as __spreadArray};
1
+ var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])},t(r,e)};function r(r,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var e=function(){return e=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},e.apply(this,arguments)};function n(t,r){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&r.indexOf(n)<0&&(e[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(e[n[o]]=t[n[o]])}return e}function o(t,r,e,n){return new(e||(e=Promise))(function(o,c){function a(t){try{u(n.next(t))}catch(t){c(t)}}function l(t){try{u(n.throw(t))}catch(t){c(t)}}function u(t){var r;t.done?o(t.value):(r=t.value,r instanceof e?r:new e(function(t){t(r)})).then(a,l)}u((n=n.apply(t,r||[])).next())})}function c(t,r){var e,n,o,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(u){return function(l){if(e)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(c=0)),c;)try{if(e=1,n&&(o=2&l[0]?n.return:l[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;switch(n=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return c.label++,{value:l[1],done:!1};case 5:c.label++,n=l[1],l=[0];continue;case 7:l=c.ops.pop(),c.trys.pop();continue;default:if(!(o=c.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){c=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){c.label=l[1];break}if(6===l[0]&&c.label<o[1]){c.label=o[1],o=l;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(l);break}o[2]&&c.ops.pop(),c.trys.pop();continue}l=r.call(t,c)}catch(t){l=[6,t],n=0}finally{e=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,u])}}}function a(t,r,e){if(e||2===arguments.length)for(var n,o=0,c=r.length;o<c;o++)!n&&o in r||(n||(n=Array.prototype.slice.call(r,0,o)),n[o]=r[o]);return t.concat(n||Array.prototype.slice.call(r))}function l(t,r){return Object.defineProperty?Object.defineProperty(t,"raw",{value:r}):t.raw=r,t}"function"==typeof SuppressedError&&SuppressedError;export{e as __assign,o as __awaiter,r as __extends,c as __generator,l as __makeTemplateObject,n as __rest,a as __spreadArray};
package/build/index.d.ts CHANGED
@@ -4,13 +4,9 @@ export * from "./models/loyalty-widget/header";
4
4
  export * from "./models/loyalty-widget/header/header-background";
5
5
  export * from "./models/image";
6
6
  export * from "./models/button";
7
- export * from "./models/loyalty-customer-info";
8
- export * from "./models/loyalty-program-point-history";
9
- export * from "./models/loyalty-program-spending-method";
10
- export * from "./models/loyalty-program-earning-method";
11
- export * from "./models/loyalty-widget";
12
7
  export * from "./models/loyalty-widget/settings";
13
8
  export * from "./models";
9
+ export * from "./models";
14
10
  export * from "./models/types";
15
11
  export * from "./assets";
16
12
  export { default as LoyaltyWidgetRenderer } from "./renderer";
package/build/index.js CHANGED
@@ -1 +1 @@
1
- export{LoyaltyWidget}from"./models/loyalty-widget/index.js";export{BadgeIconTypeEnum,HeaderBackgroundTypeEnum,ImageTypeEnum,LoyaltyWidgetLayoutTypeEnum,WidgetIconTypeEnum,WidgetPositionEnum}from"./models/loyalty-widget/types/index.js";export{LoyaltyWidgetHeader}from"./models/loyalty-widget/header/index.js";export{LoyaltyWidgetHeaderBackground}from"./models/loyalty-widget/header/header-background/index.js";export{IMAGE_SIZE,LoyaltyWidgetImage}from"./models/image/index.js";export{LoyaltyWidgetButton}from"./models/button/index.js";export{LoyaltyCustomerInfo,LoyaltyProgramTier,LoyaltyProgramTierTranslation}from"./models/loyalty-customer-info/index.js";export{LoyaltyProgramPointHistory}from"./models/loyalty-program-point-history/index.js";export{LoyaltyProgramDiscountSettings,LoyaltyProgramSpendingMethod}from"./models/loyalty-program-spending-method/index.js";export{LoyaltyProgramEarningMethod,LoyaltyProgramEarningMethodOrderSettings,LoyaltyProgramEarningMethodProductSettings}from"./models/loyalty-program-earning-method/index.js";export{LoyaltyWidgetSettings}from"./models/loyalty-widget/settings/index.js";export{LoyaltyWidgetViewModel}from"./models/index.js";export{EarningMethodTypeEnum,LoyaltyProgramFilterTypeEnum,LoyaltyProgramMethodSpendingTypeEnum,LoyaltyProgramPointEarningTypeEnum,LoyaltyProgramPointHistoryTypeEnum,LoyaltyWidgetScreenTypeEnum,PeriodTypeEnum,WidgetMode}from"./models/types/index.js";export{BadgeLevel1}from"./assets/badgeLevel1.js";export{BadgeLevel2}from"./assets/badgeLevel2.js";export{BadgeLevel3}from"./assets/badgeLevel3.js";export{BadgeLevel4}from"./assets/badgeLevel4.js";export{XClose}from"./assets/icons/x-close.js";export{CheckCircleFill}from"./assets/icons/check-circle-fill.js";export{ChevronLeft}from"./assets/icons/chevron-left.js";export{Check}from"./assets/icons/check.js";export{ArrowRight}from"./assets/icons/arrow-right.js";export{BubbleChatDone}from"./assets/widget-icons/normal/bubbleChatDone.js";export{CommentAdd01}from"./assets/widget-icons/normal/commentAdd01.js";export{CouponPercent}from"./assets/widget-icons/normal/couponPercent.js";export{DiscountTag02}from"./assets/widget-icons/normal/discountTag02.js";export{Gift}from"./assets/widget-icons/normal/gift.js";export{MoneyAdd01}from"./assets/widget-icons/normal/moneyAdd01.js";export{PackageDelivered}from"./assets/widget-icons/normal/packageDelivered.js";export{SaveMoneyDollar}from"./assets/widget-icons/normal/saveMoneyDollar.js";export{ShoppingBasketAdd02}from"./assets/widget-icons/normal/shoppingBasketAdd02.js";export{UserAdd01}from"./assets/widget-icons/normal/userAdd01.js";export{UsersIllustration}from"./assets/widget-icons/illustraions/usersIllustration.js";export{BubbleChatIllustration}from"./assets/widget-icons/illustraions/bubbleChatIllustration.js";export{ApprovedChatIllustration}from"./assets/widget-icons/illustraions/approvedChatIllustration.js";export{TshirtIllustration}from"./assets/widget-icons/illustraions/tshirtIllustration.js";export{Medal}from"./assets/widget-icons/illustraions/medal.js";export{GiftIllustration}from"./assets/widget-icons/illustraions/giftIllustration.js";export{ShippingBox}from"./assets/widget-icons/illustraions/shippingBox.js";export{BigSaleMedal}from"./assets/widget-icons/illustraions/bigSaleMedal.js";export{ShoppingCartIllustration}from"./assets/widget-icons/illustraions/shoppingCartIllustration.js";export{default as LoyaltyWidgetRenderer}from"./renderer/index.js";
1
+ export{LoyaltyWidget}from"./models/loyalty-widget/index.js";export{BadgeIconTypeEnum,HeaderBackgroundTypeEnum,ImageTypeEnum,LoyaltyWidgetLayoutTypeEnum,WidgetIconTypeEnum,WidgetPositionEnum}from"./models/loyalty-widget/types/index.js";export{LoyaltyWidgetHeader}from"./models/loyalty-widget/header/index.js";export{LoyaltyWidgetHeaderBackground}from"./models/loyalty-widget/header/header-background/index.js";export{IMAGE_SIZE,LoyaltyWidgetImage}from"./models/image/index.js";export{LoyaltyWidgetButton}from"./models/button/index.js";export{LoyaltyWidgetSettings}from"./models/loyalty-widget/settings/index.js";export{LoyaltyWidgetViewModel}from"./models/index.js";export{EarningMethodTypeEnum,LoyaltyProgramFilterTypeEnum,LoyaltyProgramMethodSpendingTypeEnum,LoyaltyProgramPeriod,LoyaltyProgramPointEarningTypeEnum,LoyaltyProgramPointHistoryTypeEnum,LoyaltyWidgetScreenTypeEnum,PeriodTypeEnum}from"./models/types/index.js";export{BadgeLevel1}from"./assets/badgeLevel1.js";export{BadgeLevel2}from"./assets/badgeLevel2.js";export{BadgeLevel3}from"./assets/badgeLevel3.js";export{BadgeLevel4}from"./assets/badgeLevel4.js";export{XClose}from"./assets/icons/x-close.js";export{CheckCircleFill}from"./assets/icons/check-circle-fill.js";export{ChevronLeft}from"./assets/icons/chevron-left.js";export{Check}from"./assets/icons/check.js";export{BubbleChatDone}from"./assets/widget-icons/normal/bubbleChatDone.js";export{CommentAdd01}from"./assets/widget-icons/normal/commentAdd01.js";export{CouponPercent}from"./assets/widget-icons/normal/couponPercent.js";export{DiscountTag02}from"./assets/widget-icons/normal/discountTag02.js";export{Gift}from"./assets/widget-icons/normal/gift.js";export{MoneyAdd01}from"./assets/widget-icons/normal/moneyAdd01.js";export{PackageDelivered}from"./assets/widget-icons/normal/packageDelivered.js";export{SaveMoneyDollar}from"./assets/widget-icons/normal/saveMoneyDollar.js";export{ShoppingBasketAdd02}from"./assets/widget-icons/normal/shoppingBasketAdd02.js";export{UserAdd01}from"./assets/widget-icons/normal/userAdd01.js";export{UsersIllustration}from"./assets/widget-icons/illustraions/usersIllustration.js";export{BubbleChatIllustration}from"./assets/widget-icons/illustraions/bubbleChatIllustration.js";export{ApprovedChatIllustration}from"./assets/widget-icons/illustraions/approvedChatIllustration.js";export{TshirtIllustration}from"./assets/widget-icons/illustraions/tshirtIllustration.js";export{Medal}from"./assets/widget-icons/illustraions/medal.js";export{GiftIllustration}from"./assets/widget-icons/illustraions/giftIllustration.js";export{ShippingBox}from"./assets/widget-icons/illustraions/shippingBox.js";export{BigSaleMedal}from"./assets/widget-icons/illustraions/bigSaleMedal.js";export{ShoppingCartIllustration}from"./assets/widget-icons/illustraions/shoppingCartIllustration.js";export{default as LoyaltyWidgetRenderer}from"./renderer/index.js";
@@ -0,0 +1,4 @@
1
+ export declare class BaseModel {
2
+ id: string;
3
+ constructor(data?: Partial<BaseModel>);
4
+ }
@@ -0,0 +1 @@
1
+ import{makeObservable as o,observable as s}from"mobx";import'./../ext/uuid/dist/esm-browser/stringify.js';import'./../ext/uuid/dist/esm-browser/v3.js';import i from'./../ext/uuid/dist/esm-browser/v4.js';import'./../ext/uuid/dist/esm-browser/v5.js';var d=function(d){void 0===d&&(d={}),this.id=d.id||i(),o(this,{id:s})};export{d as BaseModel};
@@ -0,0 +1,5 @@
1
+ export declare class Category {
2
+ id: string;
3
+ name: string;
4
+ constructor(data?: Partial<Category>);
5
+ }
@@ -1,12 +1,12 @@
1
+ import { BaseModel } from "models/base";
1
2
  import { ImageTypeEnum } from "models/loyalty-widget/types";
2
3
  export declare const IMAGE_SIZE = 1080;
3
- export declare class LoyaltyWidgetImage {
4
+ export declare class LoyaltyWidgetImage extends BaseModel {
4
5
  link: string | null;
5
6
  cdnURL: string | null;
6
7
  merchantId: string | null;
7
8
  imageId: string | null;
8
9
  type: ImageTypeEnum;
9
- maxHeight: number;
10
10
  constructor(data: Partial<LoyaltyWidgetImage>);
11
11
  get src(): string | undefined;
12
12
  }
@@ -1 +1 @@
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};
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,26 +1,19 @@
1
- import { LoyaltyCustomerInfo, LoyaltyProgramTier } from "./loyalty-customer-info";
1
+ import { LoyaltyWidget } from "./loyalty-widget";
2
+ import { LoyaltyWidgetCallbacks, LoyaltyWidgetScreenTypeEnum, Category, Product, Brand, Tag, LoyaltyProgramTier } from "./types";
3
+ import { LoyaltyProgramSpendingMethod } from "./loyalty-program-spending-method";
2
4
  import { LoyaltyProgramEarningMethod } from "./loyalty-program-earning-method";
5
+ import { LoyaltyCustomerInfo } from "./loyalty-customer-info";
3
6
  import { LoyaltyProgramPointHistory } from "./loyalty-program-point-history";
4
- import { LoyaltyProgramSpendingMethod } from "./loyalty-program-spending-method";
5
- import { LoyaltyWidget } from "./loyalty-widget";
6
- import { Brand, Category, LoyaltyWidgetCallbacks, LoyaltyWidgetScreenTypeEnum, Product, Tag, WidgetMode } from "./types";
7
7
  export declare class LoyaltyWidgetViewModel {
8
8
  selectedScreen: LoyaltyWidgetScreenTypeEnum;
9
- currentWidgetMode: WidgetMode;
10
- isMiniModeDescriptionClosed: boolean;
11
9
  isLoading: boolean;
12
- isActionLoading: boolean;
13
10
  loyaltyWidget: LoyaltyWidget;
14
- userRefreshTrigger: number;
15
- cartRefreshTrigger: number;
16
11
  cartId?: string | null;
17
- ikasEventUser: any | null;
18
12
  cdnURL: string;
19
13
  merchantId: string;
20
14
  storeUrl: string;
21
15
  currency: string;
22
16
  locale: string;
23
- isPreviewMode: boolean;
24
17
  user: LoyaltyCustomerInfo | null;
25
18
  categories: Category[] | null;
26
19
  products: Product[];
@@ -31,9 +24,5 @@ export declare class LoyaltyWidgetViewModel {
31
24
  tiers: LoyaltyProgramTier[];
32
25
  pointHistory: LoyaltyProgramPointHistory[];
33
26
  callbacks?: LoyaltyWidgetCallbacks;
34
- constructor(data: Partial<LoyaltyWidgetViewModel> | undefined, cdnURL: string, merchantId: string, currency: string, locale: string, storeURL?: string | null, isPreviewMode?: boolean, callbacks?: LoyaltyWidgetCallbacks);
35
- get shouldShowSpendingMethods(): boolean;
36
- setWidgetMode(mode: WidgetMode): void;
37
- closeMiniModeDescription(): void;
38
- formatCurrency(price: number): string;
27
+ constructor(data: Partial<LoyaltyWidgetViewModel> | undefined, cdnURL: string, merchantId: string, currency: string, locale: string, callbacks?: LoyaltyWidgetCallbacks);
39
28
  }
@@ -1 +1 @@
1
- import{__assign as e}from'./../ext/tslib/tslib.es6.mjs.js';import{makeObservable as t,observable as i,action as s,computed as r}from"mobx";import{LoyaltyCustomerInfo as o}from"./loyalty-customer-info/index.js";import{LoyaltyProgramEarningMethod as n}from"./loyalty-program-earning-method/index.js";import{LoyaltyProgramSpendingMethod as d}from"./loyalty-program-spending-method/index.js";import{LoyaltyWidget as c}from"./loyalty-widget/index.js";import{WidgetMode as a,LoyaltyWidgetScreenTypeEnum as h}from"./types/index.js";var l=function(){function l(l,g,u,p,M,m,y,f){void 0===l&&(l={}),this.userRefreshTrigger=0,this.cartRefreshTrigger=0,this.selectedScreen=l.selectedScreen||h.MAIN_SCREEN,this.currentWidgetMode=y?a.WIDGET_MODE:a.MINI_MODE,this.isMiniModeDescriptionClosed=l.isMiniModeDescriptionClosed||!1,this.isLoading=l.isLoading||!1,this.isActionLoading=l.isActionLoading||!1,this.loyaltyWidget=new c(l.loyaltyWidget),this.cdnURL=g,this.merchantId=u,this.storeUrl=m||l.storeUrl||"",this.currency=p,this.locale=M,this.isPreviewMode=y||!1,this.cartId=l.cartId||null,this.cartId=l.cartId||null,this.ikasEventUser=l.ikasEventUser||null,this.user=l.user?new o(l.user):null,this.earningMethods=l.earningMethods?l.earningMethods.map(function(e){return new n(e)}):[],this.spendingMethods=l.spendingMethods?l.spendingMethods.map(function(e){return new d(e)}):[],this.tiers=l.tiers?l.tiers:[],this.categories=l.categories?l.categories:[],this.products=l.products?l.products:[],this.brands=l.brands?l.brands:[],this.tags=l.tags?l.tags:[],this.pointHistory=l.pointHistory?l.pointHistory:[],this.callbacks=f||void 0,t(this,e(e({cartId:i},y?{}:{loyaltyWidget:i}),{isLoading:i,isActionLoading:i,cdnURL:i,merchantId:i,storeUrl:i,currency:i,locale:i,setWidgetMode:s.bound,closeMiniModeDescription:s.bound,formatCurrency:s.bound,selectedScreen:i,currentWidgetMode:i,isMiniModeDescriptionClosed:i,user:i,earningMethods:i,spendingMethods:i,tiers:i,categories:i,products:i,brands:i,tags:i,pointHistory:i,ikasEventUser:i,userRefreshTrigger:i,cartRefreshTrigger:i,shouldShowSpendingMethods:r}))}return Object.defineProperty(l.prototype,"shouldShowSpendingMethods",{get:function(){return!!this.user&&(!(this.user.totalPoint<=0)&&0!==this.spendingMethods.length)},enumerable:!1,configurable:!0}),l.prototype.setWidgetMode=function(e){this.currentWidgetMode=e,e!==a.WIDGET_MODE||this.isPreviewMode||(this.isMiniModeDescriptionClosed=!0)},l.prototype.closeMiniModeDescription=function(){this.isMiniModeDescriptionClosed=!0},l.prototype.formatCurrency=function(e){var t;return(null===(t=this.callbacks)||void 0===t?void 0:t.formatCurrency)?this.callbacks.formatCurrency(e):"".concat(e.toFixed(2)," ").concat(this.currency)},l}();export{l as LoyaltyWidgetViewModel};
1
+ import{makeObservable as t,observable as e}from"mobx";import{LoyaltyWidget as s}from"./loyalty-widget/index.js";import{LoyaltyWidgetScreenTypeEnum as i}from"./types/index.js";import{LoyaltyProgramSpendingMethod as r}from"./loyalty-program-spending-method/index.js";import{LoyaltyProgramEarningMethod as o}from"./loyalty-program-earning-method/index.js";import{LoyaltyCustomerInfo as n}from"./loyalty-customer-info/index.js";var d=function(d,a,c,h,l,g){void 0===d&&(d={}),this.selectedScreen=d.selectedScreen||i.MAIN_SCREEN,this.isLoading=d.isLoading||!1,this.loyaltyWidget=d.loyaltyWidget?new s(d.loyaltyWidget):new s,this.cdnURL=a,this.merchantId=c,this.storeUrl=d.storeUrl||"",this.currency=h,this.locale=l,this.cartId=d.cartId||null,this.user=d.user?new n(d.user):null,this.earningMethods=d.earningMethods?d.earningMethods.map(function(t){return new o(t)}):[],this.spendingMethods=d.spendingMethods?d.spendingMethods.map(function(t){return new r(t)}):[],this.tiers=d.tiers?d.tiers:[],this.categories=d.categories?d.categories:[],this.products=d.products?d.products:[],this.brands=d.brands?d.brands:[],this.tags=d.tags?d.tags:[],this.pointHistory=d.pointHistory?d.pointHistory:[],this.callbacks=g||void 0,t(this,{cartId:e,loyaltyWidget:e,isLoading:e,cdnURL:e,merchantId:e,storeUrl:e,currency:e,locale:e,selectedScreen:e,user:e,earningMethods:e,spendingMethods:e,tiers:e,categories:e,products:e,brands:e,tags:e,pointHistory:e})};export{d as LoyaltyWidgetViewModel};
@@ -1,4 +1,4 @@
1
- import { LoyaltyProgramPeriod } from "../common";
1
+ import { LoyaltyProgramPeriod } from "../types";
2
2
  export declare class LoyaltyProgramTierTranslation {
3
3
  locale: string;
4
4
  name: string;
@@ -7,16 +7,16 @@ export declare class LoyaltyProgramTierTranslation {
7
7
  export declare class LoyaltyProgramTier {
8
8
  id: string;
9
9
  name: string;
10
- pointsRequired: number | null;
11
- tierPointMultiplier: number | null;
10
+ pointsRequired: number;
11
+ tierPointMultiplier: number;
12
12
  loyaltyProgramId: string;
13
- customerSegmentId: string | null;
14
- createdAt: any | null;
15
- updatedAt: any | null;
13
+ customerSegmentId: string;
14
+ createdAt: string;
15
+ updatedAt: string;
16
16
  deleted: boolean;
17
17
  isActive: boolean;
18
18
  period: LoyaltyProgramPeriod | null;
19
- translations: LoyaltyProgramTierTranslation[] | null;
19
+ translations: LoyaltyProgramTierTranslation[];
20
20
  constructor(data?: Partial<LoyaltyProgramTier>);
21
21
  }
22
22
  export declare class LoyaltyCustomerInfo {
@@ -1 +1 @@
1
- import{makeObservable as t,observable as i}from"mobx";import{LoyaltyProgramPeriod as e}from"../common/index.js";var o=function(e){void 0===e&&(e={}),this.locale=e.locale||"",this.name=e.name||"",t(this,{locale:i,name:i})},r=function(r){void 0===r&&(r={}),this.id=r.id||"",this.name=r.name||"",this.pointsRequired=r.pointsRequired||null,this.tierPointMultiplier=r.tierPointMultiplier||null,this.loyaltyProgramId=r.loyaltyProgramId||"",this.customerSegmentId=r.customerSegmentId||null,this.createdAt=r.createdAt||null,this.updatedAt=r.updatedAt||null,this.deleted=r.deleted||!1,this.isActive=r.isActive||!1,this.period=r.period?new e(r.period):null,this.translations=r.translations?r.translations.map(function(t){return new o(t)}):null,t(this,{id:i,name:i,pointsRequired:i,tierPointMultiplier:i,loyaltyProgramId:i,customerSegmentId:i,createdAt:i,updatedAt:i,deleted:i,isActive:i,period:i,translations:i})},l=function(e){void 0===e&&(e={}),this.customerTierId=e.customerTierId?new r(e.customerTierId):null,this.loyaltyProgramCustomerId=e.loyaltyProgramCustomerId||"",this.loyaltyProgramId=e.loyaltyProgramId||"",this.totalPoint=e.totalPoint||0,t(this,{customerTierId:i,loyaltyProgramCustomerId:i,loyaltyProgramId:i,totalPoint:i})};export{l as LoyaltyCustomerInfo,r as LoyaltyProgramTier,o as LoyaltyProgramTierTranslation};
1
+ import{makeObservable as t,observable as e}from"mobx";import{LoyaltyProgramPeriod as i}from"../types/index.js";var o=function(i){void 0===i&&(i={}),this.locale=i.locale||"",this.name=i.name||"",t(this,{locale:e,name:e})},r=function(r){void 0===r&&(r={}),this.id=r.id||"",this.name=r.name||"",this.pointsRequired=r.pointsRequired||0,this.tierPointMultiplier=r.tierPointMultiplier||0,this.loyaltyProgramId=r.loyaltyProgramId||"",this.customerSegmentId=r.customerSegmentId||"",this.createdAt=r.createdAt||"",this.updatedAt=r.updatedAt||"",this.deleted=r.deleted||!1,this.isActive=r.isActive||!1,this.period=r.period?new i(r.period):null,this.translations=r.translations?r.translations.map(function(t){return new o(t)}):[],t(this,{id:e,name:e,pointsRequired:e,tierPointMultiplier:e,loyaltyProgramId:e,customerSegmentId:e,createdAt:e,updatedAt:e,deleted:e,isActive:e,period:e,translations:e})},s=function(i){void 0===i&&(i={}),this.customerTierId=i.customerTierId?new r(i.customerTierId):null,this.loyaltyProgramCustomerId=i.loyaltyProgramCustomerId||"",this.loyaltyProgramId=i.loyaltyProgramId||"",this.totalPoint=i.totalPoint||0,t(this,{customerTierId:e,loyaltyProgramCustomerId:e,loyaltyProgramId:e,totalPoint:e})};export{s as LoyaltyCustomerInfo,r as LoyaltyProgramTier,o as LoyaltyProgramTierTranslation};
@@ -1,37 +1,51 @@
1
- import { EarningMethodTypeEnum, LoyaltyProgramPointEarningTypeEnum } from "../types";
2
- import { LoyaltyProgramPointLimit, LoyaltyProgramFilter, LoyaltyProgramMethodTranslation, LoyaltyProgramPeriod } from "../common";
1
+ import { EarningMethodTypeEnum, LoyaltyProgramPointEarningTypeEnum, LoyaltyProgramPeriod, LoyaltyProgramFilterTypeEnum } from "../types";
2
+ export declare class LoyaltyProgramPointLimit {
3
+ maxPointLimit: number;
4
+ minPointLimit: number;
5
+ constructor(data?: Partial<LoyaltyProgramPointLimit>);
6
+ }
7
+ export declare class LoyaltyProgramFilter {
8
+ type: LoyaltyProgramFilterTypeEnum;
9
+ idList: string[];
10
+ constructor(data?: Partial<LoyaltyProgramFilter>);
11
+ }
3
12
  export declare class LoyaltyProgramEarningMethodOrderSettings {
4
- maxOrderAmount: number | null;
13
+ maxOrderAmount: number;
5
14
  minOrderAmount: number;
6
- productFilters: LoyaltyProgramFilter[] | null;
15
+ productFilters: LoyaltyProgramFilter[];
7
16
  constructor(data?: Partial<LoyaltyProgramEarningMethodOrderSettings>);
8
17
  }
9
18
  export declare class LoyaltyProgramEarningMethodProductSettings {
10
- maxProductQuantity: number | null;
11
- minProductQuantity: number | null;
12
- productFilters: LoyaltyProgramFilter[] | null;
19
+ maxProductQuantity: number;
20
+ minProductQuantity: number;
21
+ productFilters: LoyaltyProgramFilter[];
13
22
  constructor(data?: Partial<LoyaltyProgramEarningMethodProductSettings>);
14
23
  }
24
+ export declare class LoyaltyProgramMethodTranslation {
25
+ description: string;
26
+ locale: string;
27
+ constructor(data?: Partial<LoyaltyProgramMethodTranslation>);
28
+ }
15
29
  export declare class LoyaltyProgramEarningMethod {
16
- amountPerPointsEarned: number | null;
17
- createdAt: any | null;
30
+ amountPerPointsEarned: number;
31
+ createdAt: string;
18
32
  deleted: boolean;
19
- description: string | null;
33
+ description: string;
20
34
  earnedPointLimit: LoyaltyProgramPointLimit | null;
21
35
  id: string;
22
36
  isActive: boolean;
23
- lastValidityDate: any | null;
37
+ lastValidityDate: string;
24
38
  loyaltyProgramId: string;
25
39
  methodType: EarningMethodTypeEnum;
26
40
  orderSettings: LoyaltyProgramEarningMethodOrderSettings | null;
27
41
  pointEarningType: LoyaltyProgramPointEarningTypeEnum;
28
42
  pointsEarned: number;
29
43
  productSettings: LoyaltyProgramEarningMethodProductSettings | null;
30
- quantityPerPointsEarned: number | null;
31
- segmentId: string | null;
32
- tierIds: string[] | null;
33
- translations: LoyaltyProgramMethodTranslation[] | null;
34
- updatedAt: any | null;
44
+ quantityPerPointsEarned: number;
45
+ segmentId: string;
46
+ tierIds: string[];
47
+ translations: LoyaltyProgramMethodTranslation[];
48
+ updatedAt: string;
35
49
  validityPeriod: LoyaltyProgramPeriod | null;
36
50
  constructor(data?: Partial<LoyaltyProgramEarningMethod>);
37
51
  }
@@ -1 +1 @@
1
- import{makeObservable as t,observable as i}from"mobx";import{EarningMethodTypeEnum as n,LoyaltyProgramPointEarningTypeEnum as e}from"../types/index.js";import{LoyaltyProgramFilter as r,LoyaltyProgramPointLimit as d,LoyaltyProgramMethodTranslation as o,LoyaltyProgramPeriod as s}from"../common/index.js";var a=function(n){void 0===n&&(n={}),this.maxOrderAmount=n.maxOrderAmount||null,this.minOrderAmount=n.minOrderAmount||0,this.productFilters=n.productFilters?n.productFilters.map(function(t){return new r(t)}):null,t(this,{maxOrderAmount:i,minOrderAmount:i,productFilters:i})},l=function(n){void 0===n&&(n={}),this.maxProductQuantity=n.maxProductQuantity||null,this.minProductQuantity=n.minProductQuantity||null,this.productFilters=n.productFilters?n.productFilters.map(function(t){return new r(t)}):null,t(this,{maxProductQuantity:i,minProductQuantity:i,productFilters:i})},u=function(r){void 0===r&&(r={}),this.amountPerPointsEarned=r.amountPerPointsEarned||null,this.createdAt=r.createdAt||null,this.deleted=r.deleted||!1,this.description=r.description||null,this.earnedPointLimit=r.earnedPointLimit?new d(r.earnedPointLimit):null,this.id=r.id||"",this.isActive=r.isActive||!1,this.lastValidityDate=r.lastValidityDate||null,this.loyaltyProgramId=r.loyaltyProgramId||"",this.methodType=r.methodType||n.ORDER_CREATE,this.orderSettings=r.orderSettings?new a(r.orderSettings):null,this.pointEarningType=r.pointEarningType||e.STATIC,this.pointsEarned=r.pointsEarned||0,this.productSettings=r.productSettings?new l(r.productSettings):null,this.quantityPerPointsEarned=r.quantityPerPointsEarned||null,this.segmentId=r.segmentId||null,this.tierIds=r.tierIds||null,this.translations=r.translations?r.translations.map(function(t){return new o(t)}):null,this.updatedAt=r.updatedAt||null,this.validityPeriod=r.validityPeriod?new s(r.validityPeriod):null,t(this,{amountPerPointsEarned:i,createdAt:i,deleted:i,description:i,earnedPointLimit:i,id:i,isActive:i,lastValidityDate:i,loyaltyProgramId:i,methodType:i,orderSettings:i,pointEarningType:i,pointsEarned:i,productSettings:i,quantityPerPointsEarned:i,segmentId:i,tierIds:i,translations:i,updatedAt:i,validityPeriod:i})};export{u as LoyaltyProgramEarningMethod,a as LoyaltyProgramEarningMethodOrderSettings,l as LoyaltyProgramEarningMethodProductSettings};
1
+ import{makeObservable as t,observable as i}from"mobx";import{EarningMethodTypeEnum as n,LoyaltyProgramPointEarningTypeEnum as e,LoyaltyProgramPeriod as r,LoyaltyProgramFilterTypeEnum as o}from"../types/index.js";var d=function(n){void 0===n&&(n={}),this.maxPointLimit=n.maxPointLimit||0,this.minPointLimit=n.minPointLimit||0,t(this,{maxPointLimit:i,minPointLimit:i})},s=function(n){void 0===n&&(n={}),this.type=n.type||o.CATEGORY,this.idList=n.idList||[],t(this,{type:i,idList:i})},a=function(n){void 0===n&&(n={}),this.maxOrderAmount=n.maxOrderAmount||0,this.minOrderAmount=n.minOrderAmount||0,this.productFilters=n.productFilters?n.productFilters.map(function(t){return new s(t)}):[],t(this,{maxOrderAmount:i,minOrderAmount:i,productFilters:i})},u=function(n){void 0===n&&(n={}),this.maxProductQuantity=n.maxProductQuantity||0,this.minProductQuantity=n.minProductQuantity||0,this.productFilters=n.productFilters?n.productFilters.map(function(t){return new s(t)}):[],t(this,{maxProductQuantity:i,minProductQuantity:i,productFilters:i})},m=function(n){void 0===n&&(n={}),this.description=n.description||"",this.locale=n.locale||"",t(this,{description:i,locale:i})},l=function(o){void 0===o&&(o={}),this.amountPerPointsEarned=o.amountPerPointsEarned||0,this.createdAt=o.createdAt||"",this.deleted=o.deleted||!1,this.description=o.description||"",this.earnedPointLimit=o.earnedPointLimit?new d(o.earnedPointLimit):null,this.id=o.id||"",this.isActive=o.isActive||!1,this.lastValidityDate=o.lastValidityDate||"",this.loyaltyProgramId=o.loyaltyProgramId||"",this.methodType=o.methodType||n.ORDER_CREATE,this.orderSettings=o.orderSettings?new a(o.orderSettings):null,this.pointEarningType=o.pointEarningType||e.STATIC,this.pointsEarned=o.pointsEarned||0,this.productSettings=o.productSettings?new u(o.productSettings):null,this.quantityPerPointsEarned=o.quantityPerPointsEarned||0,this.segmentId=o.segmentId||"",this.tierIds=o.tierIds||[],this.translations=o.translations?o.translations.map(function(t){return new m(t)}):[],this.updatedAt=o.updatedAt||"",this.validityPeriod=o.validityPeriod?new r(o.validityPeriod):null,t(this,{amountPerPointsEarned:i,createdAt:i,deleted:i,description:i,earnedPointLimit:i,id:i,isActive:i,lastValidityDate:i,loyaltyProgramId:i,methodType:i,orderSettings:i,pointEarningType:i,pointsEarned:i,productSettings:i,quantityPerPointsEarned:i,segmentId:i,tierIds:i,translations:i,updatedAt:i,validityPeriod:i})};export{l as LoyaltyProgramEarningMethod,a as LoyaltyProgramEarningMethodOrderSettings,u as LoyaltyProgramEarningMethodProductSettings,s as LoyaltyProgramFilter,m as LoyaltyProgramMethodTranslation,d as LoyaltyProgramPointLimit};
@@ -1,10 +1,10 @@
1
1
  import { LoyaltyProgramPointHistoryTypeEnum } from "../types";
2
2
  export declare class LoyaltyProgramPointHistory {
3
3
  amount: number;
4
- createdAt: any | null;
4
+ createdAt: string;
5
5
  customerId: string;
6
6
  deleted: boolean;
7
- expireDate: any | null;
7
+ expireDate: string | null;
8
8
  id: string;
9
9
  loyaltyProgramCustomerId: string;
10
10
  loyaltyProgramEarningMethodId: string | null;
@@ -12,6 +12,6 @@ export declare class LoyaltyProgramPointHistory {
12
12
  loyaltyProgramSpendingMethodId: string | null;
13
13
  orderId: string | null;
14
14
  type: LoyaltyProgramPointHistoryTypeEnum;
15
- updatedAt: any | null;
15
+ updatedAt: string;
16
16
  constructor(data?: Partial<LoyaltyProgramPointHistory>);
17
17
  }
@@ -1 +1 @@
1
- import{makeObservable as t,observable as e}from"mobx";import{LoyaltyProgramPointHistoryTypeEnum as r}from"../types/index.js";var d=function(d){void 0===d&&(d={}),this.amount=d.amount||0,this.createdAt=d.createdAt||null,this.customerId=d.customerId||"",this.deleted=d.deleted||!1,this.expireDate=d.expireDate||null,this.id=d.id||"",this.loyaltyProgramCustomerId=d.loyaltyProgramCustomerId||"",this.loyaltyProgramEarningMethodId=d.loyaltyProgramEarningMethodId||null,this.loyaltyProgramId=d.loyaltyProgramId||"",this.loyaltyProgramSpendingMethodId=d.loyaltyProgramSpendingMethodId||null,this.orderId=d.orderId||null,this.type=d.type||r.EARN,this.updatedAt=d.updatedAt||null,t(this,{amount:e,createdAt:e,customerId:e,deleted:e,expireDate:e,id:e,loyaltyProgramCustomerId:e,loyaltyProgramEarningMethodId:e,loyaltyProgramId:e,loyaltyProgramSpendingMethodId:e,orderId:e,type:e,updatedAt:e})};export{d as LoyaltyProgramPointHistory};
1
+ import{makeObservable as t,observable as e}from"mobx";import{LoyaltyProgramPointHistoryTypeEnum as r}from"../types/index.js";var d=function(d){void 0===d&&(d={}),this.amount=d.amount||0,this.createdAt=d.createdAt||"",this.customerId=d.customerId||"",this.deleted=d.deleted||!1,this.expireDate=d.expireDate||null,this.id=d.id||"",this.loyaltyProgramCustomerId=d.loyaltyProgramCustomerId||"",this.loyaltyProgramEarningMethodId=d.loyaltyProgramEarningMethodId||null,this.loyaltyProgramId=d.loyaltyProgramId||"",this.loyaltyProgramSpendingMethodId=d.loyaltyProgramSpendingMethodId||null,this.orderId=d.orderId||null,this.type=d.type||r.EARN,this.updatedAt=d.updatedAt||"",t(this,{amount:e,createdAt:e,customerId:e,deleted:e,expireDate:e,id:e,loyaltyProgramCustomerId:e,loyaltyProgramEarningMethodId:e,loyaltyProgramId:e,loyaltyProgramSpendingMethodId:e,orderId:e,type:e,updatedAt:e})};export{d as LoyaltyProgramPointHistory};
@@ -1,25 +1,38 @@
1
- import { LoyaltyProgramMethodSpendingTypeEnum } from "../types";
2
- import { LoyaltyProgramPointLimit, LoyaltyProgramFilter, LoyaltyProgramMethodTranslation } from "../common";
1
+ import { LoyaltyProgramMethodSpendingTypeEnum, LoyaltyProgramFilterTypeEnum } 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
+ idList: string[];
9
+ type: LoyaltyProgramFilterTypeEnum;
10
+ constructor(data?: Partial<LoyaltyProgramFilter>);
11
+ }
3
12
  export declare class LoyaltyProgramDiscountSettings {
4
13
  discountAmount: number | null;
5
14
  freeProductId: string | null;
6
15
  point: number;
7
16
  constructor(data?: Partial<LoyaltyProgramDiscountSettings>);
8
17
  }
18
+ export declare class LoyaltyProgramMethodTranslation {
19
+ description: string | null;
20
+ locale: string | null;
21
+ constructor(data?: Partial<LoyaltyProgramMethodTranslation>);
22
+ }
9
23
  export declare class LoyaltyProgramSpendingMethod {
10
- createdAt: any | null;
24
+ createdAt: string;
11
25
  deleted: boolean;
12
26
  description: string | null;
13
27
  discountSettings: LoyaltyProgramDiscountSettings | null;
14
28
  id: string;
15
29
  isActive: boolean;
16
- isAvailable: boolean | null;
17
30
  isDynamic: boolean;
18
31
  loyaltyProgramId: string;
19
32
  pointUsageLimit: LoyaltyProgramPointLimit | null;
20
- productFilters: LoyaltyProgramFilter[] | null;
21
- translations: LoyaltyProgramMethodTranslation[] | null;
33
+ productFilters: LoyaltyProgramFilter[];
34
+ translations: LoyaltyProgramMethodTranslation[];
22
35
  type: LoyaltyProgramMethodSpendingTypeEnum;
23
- updatedAt: any | null;
36
+ updatedAt: string;
24
37
  constructor(data?: Partial<LoyaltyProgramSpendingMethod>);
25
38
  }
@@ -1 +1 @@
1
- import{makeObservable as t,observable as i}from"mobx";import{LoyaltyProgramMethodSpendingTypeEnum as n}from"../types/index.js";import{LoyaltyProgramPointLimit as s,LoyaltyProgramFilter as e,LoyaltyProgramMethodTranslation as o}from"../common/index.js";var l=function(n){void 0===n&&(n={}),this.discountAmount=n.discountAmount||null,this.freeProductId=n.freeProductId||null,this.point=n.point||0,t(this,{discountAmount:i,freeProductId:i,point:i})},d=function(d){void 0===d&&(d={}),this.createdAt=d.createdAt||null,this.deleted=d.deleted||!1,this.description=d.description||null,this.discountSettings=d.discountSettings?new l(d.discountSettings):null,this.id=d.id||"",this.isActive=d.isActive||!1,this.isAvailable=void 0!==d.isAvailable&&null!==d.isAvailable?d.isAvailable:null,this.isDynamic=d.isDynamic||!1,this.loyaltyProgramId=d.loyaltyProgramId||"",this.pointUsageLimit=d.pointUsageLimit?new s(d.pointUsageLimit):null,this.productFilters=d.productFilters?d.productFilters.map(function(t){return new e(t)}):null,this.translations=d.translations?d.translations.map(function(t){return new o(t)}):null,this.type=d.type||n.FIXED_AMOUNT,this.updatedAt=d.updatedAt||null,t(this,{createdAt:i,deleted:i,description:i,discountSettings:i,id:i,isActive:i,isAvailable:i,isDynamic:i,loyaltyProgramId:i,pointUsageLimit:i,productFilters:i,translations:i,type:i,updatedAt:i})};export{l as LoyaltyProgramDiscountSettings,d as LoyaltyProgramSpendingMethod};
1
+ import{makeObservable as t,observable as i}from"mobx";import{LoyaltyProgramMethodSpendingTypeEnum as n,LoyaltyProgramFilterTypeEnum as s}from"../types/index.js";var o=function(n){void 0===n&&(n={}),this.maxPointLimit=n.maxPointLimit||null,this.minPointLimit=n.minPointLimit||null,t(this,{maxPointLimit:i,minPointLimit:i})},e=function(n){void 0===n&&(n={}),this.idList=n.idList||[],this.type=n.type||s.PRODUCT_AND_VARIANT,t(this,{idList:i,type:i})},d=function(n){void 0===n&&(n={}),this.discountAmount=n.discountAmount||null,this.freeProductId=n.freeProductId||null,this.point=n.point||0,t(this,{discountAmount:i,freeProductId:i,point:i})},r=function(n){void 0===n&&(n={}),this.description=n.description||null,this.locale=n.locale||null,t(this,{description:i,locale:i})},l=function(s){void 0===s&&(s={}),this.createdAt=s.createdAt||"",this.deleted=s.deleted||!1,this.description=s.description||null,this.discountSettings=s.discountSettings?new d(s.discountSettings):null,this.id=s.id||"",this.isActive=s.isActive||!1,this.isDynamic=s.isDynamic||!1,this.loyaltyProgramId=s.loyaltyProgramId||"",this.pointUsageLimit=s.pointUsageLimit?new o(s.pointUsageLimit):null,this.productFilters=s.productFilters?s.productFilters.map(function(t){return new e(t)}):[],this.translations=s.translations?s.translations.map(function(t){return new r(t)}):[],this.type=s.type||n.FIXED_AMOUNT,this.updatedAt=s.updatedAt||"",t(this,{createdAt:i,deleted:i,description:i,discountSettings:i,id:i,isActive:i,isDynamic:i,loyaltyProgramId:i,pointUsageLimit:i,productFilters:i,translations:i,type:i,updatedAt:i})};export{d as LoyaltyProgramDiscountSettings,e as LoyaltyProgramFilter,r as LoyaltyProgramMethodTranslation,o as LoyaltyProgramPointLimit,l as LoyaltyProgramSpendingMethod};
@@ -1,6 +1,7 @@
1
+ import { BaseModel } from "models/base";
1
2
  import { LoyaltyWidgetImage } from "models/image";
2
3
  import { HeaderBackgroundTypeEnum } from "../../types";
3
- export declare class LoyaltyWidgetHeaderBackground {
4
+ export declare class LoyaltyWidgetHeaderBackground extends BaseModel {
4
5
  bgColor: string | null;
5
6
  image: LoyaltyWidgetImage | null;
6
7
  type: HeaderBackgroundTypeEnum;
@@ -1 +1 @@
1
- import{makeObservable as i,observable as o}from"mobx";import{LoyaltyWidgetImage as e}from"../../../image/index.js";import{HeaderBackgroundTypeEnum as t}from"../../types/index.js";var m=function(m){this.bgColor=m.bgColor||null,this.image=m.image?new e(m.image):null,this.type=m.type||t.COLOR,i(this,{bgColor:o,image:o,type:o})};export{m as LoyaltyWidgetHeaderBackground};
1
+ import{__extends as o}from'./../../../../ext/tslib/tslib.es6.mjs.js';import{makeObservable as r,observable as e}from"mobx";import{BaseModel as i}from"../../../base.js";import{LoyaltyWidgetImage as m}from"../../../image/index.js";import{HeaderBackgroundTypeEnum as t}from"../../types/index.js";var s=function(i){function s(o){var s=i.call(this,o)||this;return s.bgColor=o.bgColor||null,s.image=o.image?new m(o.image):null,s.type=o.type||t.COLOR,r(s,{bgColor:e,image:e,type:e}),s}return o(s,i),s}(i);export{s as LoyaltyWidgetHeaderBackground};
@@ -1,4 +1,4 @@
1
- import { LoyaltyWidgetImage } from "../../image";
1
+ import { LoyaltyWidgetImage } from "models/image";
2
2
  import { LoyaltyWidgetHeaderBackground } from "./header-background";
3
3
  export declare class LoyaltyWidgetHeader {
4
4
  logo: LoyaltyWidgetImage;
@@ -0,0 +1,9 @@
1
+ import { BaseModel } from "models/base";
2
+ import { LoyaltyWidgetImage } from "models/image";
3
+ import { HeaderBackgroundTypeEnum } from "../types";
4
+ export declare class LoyaltyWidgetHeaderBackground extends BaseModel {
5
+ bgColor: string | null;
6
+ image: LoyaltyWidgetImage | null;
7
+ type: HeaderBackgroundTypeEnum;
8
+ constructor(data: Partial<LoyaltyWidgetHeaderBackground>);
9
+ }
@@ -1,4 +1,4 @@
1
- import { MiniMode } from "models/mini-mode";
1
+ import { LoyaltyWidgetImage } from "../image";
2
2
  import { LoyaltyWidgetButton } from "../button";
3
3
  import { LoyaltyWidgetHeader } from "./header";
4
4
  import { LoyaltyWidgetSettings } from "./settings";
@@ -7,6 +7,6 @@ export declare class LoyaltyWidget {
7
7
  settings: LoyaltyWidgetSettings;
8
8
  header: LoyaltyWidgetHeader;
9
9
  button: LoyaltyWidgetButton;
10
- miniMode: MiniMode;
10
+ miniModeLogo: LoyaltyWidgetImage;
11
11
  constructor(data?: Partial<LoyaltyWidget>);
12
12
  }
@@ -1 +1 @@
1
- import{makeObservable as e,observable as i}from"mobx";import'./../../ext/uuid/dist/esm-browser/stringify.js';import'./../../ext/uuid/dist/esm-browser/v3.js';import t from'./../../ext/uuid/dist/esm-browser/v4.js';import'./../../ext/uuid/dist/esm-browser/v5.js';import{MiniMode as o}from"../mini-mode/index.js";import{LoyaltyWidgetButton as s}from"../button/index.js";import{LoyaltyWidgetHeader as d}from"./header/index.js";import{LoyaltyWidgetSettings as n}from"./settings/index.js";var r=function(r){void 0===r&&(r={}),this.id=r.id||t(),this.header=r.header?new d(r.header):new d({}),this.settings=r.settings?new n(r.settings):new n({}),this.miniMode=r.miniMode?new o(r.miniMode):new o({}),this.button=r.button?new s(r.button):new s({}),e(this,{id:i,miniMode:i,button:i,header:i,settings:i})};export{r as LoyaltyWidget};
1
+ import{makeObservable as e,observable as i}from"mobx";import'./../../ext/uuid/dist/esm-browser/stringify.js';import'./../../ext/uuid/dist/esm-browser/v3.js';import o from'./../../ext/uuid/dist/esm-browser/v4.js';import'./../../ext/uuid/dist/esm-browser/v5.js';import{LoyaltyWidgetImage as t}from"../image/index.js";import{LoyaltyWidgetButton as s}from"../button/index.js";import{LoyaltyWidgetHeader as d}from"./header/index.js";import{LoyaltyWidgetSettings as n}from"./settings/index.js";var r=function(r){void 0===r&&(r={}),this.id=r.id||o(),this.header=r.header?new d(r.header):new d({}),this.settings=r.settings?new n(r.settings):new n({}),this.miniModeLogo=r.miniModeLogo?new t(r.miniModeLogo):new t({}),this.button=r.button?new s(r.button):new s({}),e(this,{id:i,miniModeLogo:i,button:i,header:i,settings:i})};export{r as LoyaltyWidget};
@@ -1 +1 @@
1
- import{makeObservable as o,observable as i}from"mobx";import{WidgetPositionEnum as r,LoyaltyWidgetLayoutTypeEnum as e,WidgetIconTypeEnum as t,BadgeIconTypeEnum as p}from"../types/index.js";var d=function(d){var s;void 0===d&&(d={}),this.position=d.position||r.RIGHT,this.type=d.type||e.DRAWER,this.primaryColor=d.primaryColor||null,this.cartBorderRadius=null!==(s=d.cartBorderRadius)&&void 0!==s?s:0,this.widgetIconType=d.widgetIconType||t.NORMAL,this.badgeIconLevel=d.badgeIconLevel||p.LEVEL_1,o(this,{position:i,type:i,primaryColor:i,cartBorderRadius:i,widgetIconType:i,badgeIconLevel:i})};export{d as LoyaltyWidgetSettings};
1
+ import{makeObservable as o,observable as i}from"mobx";import{WidgetPositionEnum as r,LoyaltyWidgetLayoutTypeEnum as e,WidgetIconTypeEnum as t,BadgeIconTypeEnum as p}from"../types/index.js";var d=function(d){var s;void 0===d&&(d={}),this.position=d.position||r.RIGHT,this.type=d.type||e.WIDGET,this.primaryColor=d.primaryColor||null,this.cartBorderRadius=null!==(s=d.cartBorderRadius)&&void 0!==s?s:0,this.widgetIconType=d.widgetIconType||t.NORMAL,this.badgeIconLevel=d.badgeIconLevel||p.LEVEL_1,o(this,{position:i,type:i,primaryColor:i,cartBorderRadius:i,widgetIconType:i,badgeIconLevel:i})};export{d as LoyaltyWidgetSettings};