@everymatrix/player-elevate-card-jojogroup 1.80.4

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 (100) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/general-styling-wrapper_6.cjs.entry.js +3570 -0
  3. package/dist/cjs/index-51874d29.js +1619 -0
  4. package/dist/cjs/index.cjs.js +2 -0
  5. package/dist/cjs/loader.cjs.js +15 -0
  6. package/dist/cjs/player-elevate-card-jojogroup.cjs.js +25 -0
  7. package/dist/collection/collection-manifest.json +23 -0
  8. package/dist/collection/components/player-elevate-card-data/player-elevate-card-data.css +192 -0
  9. package/dist/collection/components/player-elevate-card-data/player-elevate-card-data.js +244 -0
  10. package/dist/collection/components/player-elevate-card-jojogroup/index.js +1 -0
  11. package/dist/collection/components/player-elevate-card-jojogroup/player-elevate-card-jojogroup-items.js +23 -0
  12. package/dist/collection/components/player-elevate-card-jojogroup/player-elevate-card-jojogroup.css +64 -0
  13. package/dist/collection/components/player-elevate-card-jojogroup/player-elevate-card-jojogroup.js +297 -0
  14. package/dist/collection/components/player-elevate-loyaltycard-jojogroup/player-elevate-loyaltycard-jojogroup.css +98 -0
  15. package/dist/collection/components/player-elevate-loyaltycard-jojogroup/player-elevate-loyaltycard-jojogroup.js +310 -0
  16. package/dist/collection/components/player-elevate-pointcard/player-elevate-pointcard.css +70 -0
  17. package/dist/collection/components/player-elevate-pointcard/player-elevate-pointcard.js +334 -0
  18. package/dist/collection/components/player-rakeback-card/player-rakeback-card.css +87 -0
  19. package/dist/collection/components/player-rakeback-card/player-rakeback-card.js +357 -0
  20. package/dist/collection/components/static/button-default.svg +42 -0
  21. package/dist/collection/components/static/button-disabled.svg +4 -0
  22. package/dist/collection/components/static/button-hover.svg +4 -0
  23. package/dist/collection/components/static/button-level.svg +27 -0
  24. package/dist/collection/components/static/button-pressed.svg +18 -0
  25. package/dist/collection/components/static/button-redeem.svg +36 -0
  26. package/dist/collection/components/static/card-ground-over.png +0 -0
  27. package/dist/collection/components/static/card-ground-over.svg +903 -0
  28. package/dist/collection/components/static/card-ground.png +0 -0
  29. package/dist/collection/components/static/card-ground.svg +34 -0
  30. package/dist/collection/components/static/info.svg +4 -0
  31. package/dist/collection/components/static/level-badge.png +0 -0
  32. package/dist/collection/components/static/level-percent.svg +80 -0
  33. package/dist/collection/components/static/tips-info.svg +21 -0
  34. package/dist/collection/components/static/user.svg +3 -0
  35. package/dist/collection/index.js +1 -0
  36. package/dist/collection/models/player-elevate.js +1 -0
  37. package/dist/collection/utils/locale.utils.js +238 -0
  38. package/dist/collection/utils/utils.js +51 -0
  39. package/dist/esm/app-globals-0f993ce5.js +3 -0
  40. package/dist/esm/general-styling-wrapper_6.entry.js +3561 -0
  41. package/dist/esm/index-9498ebd7.js +1589 -0
  42. package/dist/esm/index.js +1 -0
  43. package/dist/esm/loader.js +11 -0
  44. package/dist/esm/player-elevate-card-jojogroup.js +20 -0
  45. package/dist/index.cjs.js +1 -0
  46. package/dist/index.js +1 -0
  47. package/dist/player-elevate-card-jojogroup/app-globals-0f993ce5.js +1 -0
  48. package/dist/player-elevate-card-jojogroup/general-styling-wrapper_6.entry.js +1 -0
  49. package/dist/player-elevate-card-jojogroup/index-9498ebd7.js +2 -0
  50. package/dist/player-elevate-card-jojogroup/index.esm.js +0 -0
  51. package/dist/player-elevate-card-jojogroup/player-elevate-card-jojogroup.esm.js +1 -0
  52. package/dist/static/button-default.svg +42 -0
  53. package/dist/static/button-disabled.svg +4 -0
  54. package/dist/static/button-hover.svg +4 -0
  55. package/dist/static/button-level.svg +27 -0
  56. package/dist/static/button-pressed.svg +18 -0
  57. package/dist/static/button-redeem.svg +36 -0
  58. package/dist/static/card-ground-over.png +0 -0
  59. package/dist/static/card-ground-over.svg +903 -0
  60. package/dist/static/card-ground.png +0 -0
  61. package/dist/static/card-ground.svg +34 -0
  62. package/dist/static/info.svg +4 -0
  63. package/dist/static/level-badge.png +0 -0
  64. package/dist/static/level-percent.svg +80 -0
  65. package/dist/static/tips-info.svg +21 -0
  66. package/dist/static/user.svg +3 -0
  67. package/dist/stencil.config.dev.js +18 -0
  68. package/dist/stencil.config.js +20 -0
  69. package/dist/storybook/main.js +47 -0
  70. package/dist/storybook/preview.js +9 -0
  71. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-card-jojogroup/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
  72. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-card-jojogroup/.stencil/packages/stencil/player-elevate-card-jojogroup/stencil.config.d.ts +2 -0
  73. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-card-jojogroup/.stencil/packages/stencil/player-elevate-card-jojogroup/stencil.config.dev.d.ts +2 -0
  74. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-card-jojogroup/.stencil/packages/stencil/player-elevate-card-jojogroup/storybook/main.d.ts +3 -0
  75. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-card-jojogroup/.stencil/packages/stencil/player-elevate-card-jojogroup/storybook/preview.d.ts +70 -0
  76. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-card-jojogroup/.stencil/tools/plugins/index.d.ts +4 -0
  77. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-card-jojogroup/.stencil/tools/plugins/lazy-load-chunk-plugin.d.ts +12 -0
  78. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-card-jojogroup/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
  79. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-card-jojogroup/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
  80. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-card-jojogroup/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
  81. package/dist/types/components/player-elevate-card-data/player-elevate-card-data.d.ts +24 -0
  82. package/dist/types/components/player-elevate-card-jojogroup/index.d.ts +1 -0
  83. package/dist/types/components/player-elevate-card-jojogroup/player-elevate-card-jojogroup-items.d.ts +20 -0
  84. package/dist/types/components/player-elevate-card-jojogroup/player-elevate-card-jojogroup.d.ts +56 -0
  85. package/dist/types/components/player-elevate-loyaltycard-jojogroup/player-elevate-loyaltycard-jojogroup.d.ts +59 -0
  86. package/dist/types/components/player-elevate-pointcard/player-elevate-pointcard.d.ts +69 -0
  87. package/dist/types/components/player-rakeback-card/player-rakeback-card.d.ts +65 -0
  88. package/dist/types/components.d.ts +461 -0
  89. package/dist/types/index.d.ts +1 -0
  90. package/dist/types/models/player-elevate.d.ts +40 -0
  91. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  92. package/dist/types/utils/locale.utils.d.ts +15 -0
  93. package/dist/types/utils/utils.d.ts +1 -0
  94. package/loader/cdn.js +1 -0
  95. package/loader/index.cjs.js +1 -0
  96. package/loader/index.d.ts +24 -0
  97. package/loader/index.es2017.js +1 -0
  98. package/loader/index.js +2 -0
  99. package/loader/package.json +11 -0
  100. package/package.json +26 -0
@@ -0,0 +1,34 @@
1
+ <svg width="100%" height="100%" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g filter="url(#filter0_bd_164_4223)">
3
+ <rect x="0" width="100%" height="100%" rx="20" fill="#F5F1E4" fill-opacity="0.25" shape-rendering="crispEdges"/>
4
+ <rect x="0" y="1" width="100%" height="" rx="19" stroke="url(#paint0_linear_164_4223)" stroke-opacity="0.6" stroke-width="2px" shape-rendering="crispEdges"/>
5
+ <rect x="0" y="1" width="100%" height="100%" rx="19" stroke="url(#paint1_linear_164_4223)" stroke-width="2px" shape-rendering="crispEdges"/>
6
+ <rect x="0" y="1" width="100%" height="100%" rx="19" stroke="url(#paint2_linear_164_4223)" stroke-width="2px" shape-rendering="crispEdges"/>
7
+ </g>
8
+ <defs>
9
+ <filter id="filter0_bd_164_4223" x="0" y="0" width="100%" height="100%" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
10
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
11
+ <feGaussianBlur in="BackgroundImageFix" stdDeviation="20"/>
12
+ <feComposite in2="SourceAlpha" operator="in" result="effect1_backgroundBlur_164_4223"/>
13
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
14
+ <feOffset dy="4"/>
15
+ <feGaussianBlur stdDeviation="2"/>
16
+ <feComposite in2="hardAlpha" operator="out"/>
17
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
18
+ <feBlend mode="normal" in2="effect1_backgroundBlur_164_4223" result="effect2_dropShadow_164_4223"/>
19
+ <feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow_164_4223" result="shape"/>
20
+ </filter>
21
+ <linearGradient id="paint0_linear_164_4223" x1="443.76" y1="83.9511" x2="318.014" y2="90.9637" gradientUnits="userSpaceOnUse">
22
+ <stop stop-color="white"/>
23
+ <stop offset="1" stop-color="#EFEFEF" stop-opacity="0"/>
24
+ </linearGradient>
25
+ <linearGradient id="paint1_linear_164_4223" x1="0" y1="0" x2="106.285" y2="95.535" gradientUnits="userSpaceOnUse">
26
+ <stop stop-color="white" stop-opacity="0.5"/>
27
+ <stop offset="1" stop-color="white" stop-opacity="0"/>
28
+ </linearGradient>
29
+ <linearGradient id="paint2_linear_164_4223" x1="373" y1="210" x2="243.388" y2="153.851" gradientUnits="userSpaceOnUse">
30
+ <stop stop-color="white" stop-opacity="0.5"/>
31
+ <stop offset="1" stop-color="white" stop-opacity="0"/>
32
+ </linearGradient>
33
+ </defs>
34
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <circle cx="6" cy="6" r="5.5" stroke="#EEEEEE"/>
3
+ <path d="M4.12276 9C4.08866 9 4.05797 8.98928 4.03069 8.96783C4.01023 8.95174 4 8.92761 4 8.89544V8.2681C4 8.24129 4.01023 8.21984 4.03069 8.20375C4.05797 8.18231 4.08866 8.17158 4.12276 8.17158H5.51407V5.69437H4.30691C4.2728 5.69437 4.24211 5.68633 4.21483 5.67024C4.19437 5.64879 4.18414 5.62198 4.18414 5.58981V4.96247C4.18414 4.93566 4.19437 4.91421 4.21483 4.89812C4.24211 4.87668 4.2728 4.86595 4.30691 4.86595H6.49616C6.53026 4.86595 6.55754 4.87668 6.57801 4.89812C6.60529 4.91421 6.61893 4.93566 6.61893 4.96247V8.17158H7.87724C7.91134 8.17158 7.93862 8.18231 7.95908 8.20375C7.98636 8.21984 8 8.24129 8 8.2681V8.89544C8 8.96515 7.95908 9 7.87724 9H4.12276ZM5.92327 4.23056C5.70503 4.23056 5.52089 4.17158 5.37084 4.05362C5.2208 3.93566 5.14578 3.79357 5.14578 3.62735C5.14578 3.4504 5.2208 3.30295 5.37084 3.18499C5.52089 3.06166 5.70503 3 5.92327 3C6.14834 3 6.33589 3.06166 6.48593 3.18499C6.6428 3.30295 6.72123 3.4504 6.72123 3.62735C6.72123 3.79357 6.6428 3.93566 6.48593 4.05362C6.33589 4.17158 6.14834 4.23056 5.92327 4.23056Z" fill="#EEEEEE"/>
4
+ </svg>
@@ -0,0 +1,80 @@
1
+ <svg width="100%" height="28" style="opacity: 0" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect y="12" x="2" width="100%" id="total_level" height="5" rx="2.5" fill="white" fill-opacity="0.5"/>
3
+ <rect y="12" x="2" id="current_level" width="64" height="5" rx="2.5" fill="white"/>
4
+ <g filter="url(#filter_current_level)">
5
+ <circle id="circle_current_level" cx="74.5" cy="14.5" r="6.5" fill="white"/>
6
+ </g>
7
+ <g filter="url(#filter_heart_ball)">
8
+ <g filter="url(#filter_ball)">
9
+ <circle cx="169" cy="14" r="10" id="lock" fill="url(#paint0_linear_ball)"/>
10
+ </g>
11
+ <g filter="url(#filter_heart)">
12
+ <svg x="0" y="4" id="lock_box">
13
+ <path d="M10.217 6.42442c-0.713,-0.574,-1.304,-1.083,-1.928,-1.622c-0.348,-0.299,-0.707,-0.611,-1.101,-0.943l-0.013,-0.01c0,0,-0.023,-0.017,-0.04,-0.027l-0.167,-0.095l-0.15,0.12c0,0,-0.015,0.012,-0.024,0.02c-0.391,0.33,-0.749,0.64,-1.094,0.939c-0.622,0.539,-1.211,1.048,-1.924,1.624c-1.816,1.463,-3.598,3.263,-3.033,5.506c0.404,1.601,2.104,2.905,3.789,2.905c0.211,0,0.423,-0.02,0.626,-0.061c0.286,-0.058,0.572,-0.145,0.864,-0.265c-0.079,0.962,-0.413,1.864,-0.881,2.369l-0.423,0.459h0.633c0.633,0,1.018,-0.007,1.356,-0.013c0.248,-0.004,0.462,-0.008,0.72,-0.008c0.335,0,0.709,0.006,1.215,0.021l0.686,0.02l-0.474,-0.483c-0.504,-0.514,-0.847,-1.403,-0.923,-2.385c0.311,0.132,0.616,0.227,0.916,0.287c0.204,0.039,0.411,0.059,0.623,0.059c1.687,0,3.386,-1.304,3.789,-2.909c0.56,-2.243,-1.224,-4.041,-3.042,-5.504v-0.004z" fill="#933CBF"/>
14
+ <path d="M9.727,6.98459c-1.004,-0.83,-1.741,-1.515,-2.723,-2.365c-0.002,0,-0.004,-0.004,-0.007,-0.006c-0.002,0,-0.004,0.004,-0.006,0.006c-0.98,0.85,-1.715,1.537,-2.721,2.367c-1.455,1.202,-3.126,2.821,-2.638,4.81c0.37,1.511,2.091,2.751,3.665,2.43c0.389,-0.08,0.75,-0.224,1.094,-0.402c0,0.116,-0.004,0.233,-0.012,0.353c-0.064,0.991,-0.398,1.892,-0.86,2.401c1.481,0,1.481,-0.043,2.961,0c-0.481,-0.503,-0.834,-1.382,-0.9,-2.401c-0.008,-0.127,-0.012,-0.253,-0.012,-0.378c0.357,0.19,0.733,0.342,1.14,0.425c1.574,0.319,3.292,-0.922,3.661,-2.433c0.486,-1.992,-1.189,-3.609,-2.644,
15
+ -4.809l0.002,0.002z" fill="url(#paint1_linear_lock)"/>
16
+ <path d="M9.255,7.551c-0.844,-0.716,-1.462,-1.309,-2.286,-2.045c-0.002,0,-0.004,-0.004,-0.006,-0.006c0,0,-0.004,0.004,-0.006,0.006c-0.824,0.736,-1.44,1.329,-2.284,2.047c-0.919,0.782,-1.94,1.769,-2.214,2.943c-0.115,0.021,-0.914,0.044,-0.914,0.044l0.887,0.083c-0.039,0.206,-0.055,0.418,-0.041,0.638c0.087,-1.371,1.25,-2.507,2.282,-3.384c0.844,-0.718,1.462,-1.313,2.284,-2.047c0.002,-0.002,0.004,-0.004,0.006,-0.006c0.002,0,0.004,0.004,0.006,0.004c0.824,0.734,1.442,1.329,2.286,2.045c1.034,0.879,2.198,2.013,2.286,3.386c0.093,-1.517,-1.173,-2.761,-2.286,-3.708z" fill="#9040C9"/>
17
+ </svg>
18
+ </g>
19
+ </g>
20
+ <g filter="url(#filter_lock)">
21
+ <svg x="100%" y="9" id="heart_box">
22
+ <path d="M7,6c-0.19,-0.002,-0.377,0.052,-0.534,0.154c-0.158,0.103,-0.278,0.25,-0.346,0.42c-0.069,0.171,-0.081,0.357,-0.035,0.535c0.046,0.177,0.147,0.337,0.29,0.457v0.834c0,0.159,0.066,0.312,0.183,0.424c0.117,0.113,0.276,0.176,0.442,0.176c0.166,0,0.325,-0.063,0.442,-0.176c0.117,-0.112,0.183,-0.265,0.183,-0.424v-0.834c0.143,-0.12,0.244,-0.28,0.29,-0.457c0.046,-0.178,0.034,-0.364,-0.035,-0.535c-0.068,-0.17,-0.188,-0.317,-0.346,-0.42c-0.157,-0.102,-0.344,-0.156,-0.534,-0.154zm3.125,-2.4v-1.2c0,-0.796,-0.329,-1.559,-0.915,-2.121c-0.586,-0.563,-1.381,-0.879,-2.21,-0.879c-0.829,0,-1.624,0.316,-2.21,0.879c-0.586,0.562,-0.915,1.325,-0.915,2.121v1.2c-0.497,0,-0.974,0.19,-1.326,0.527c-0.351,0.338,-0.549,0.796,-0.549,1.273v4.2c0,0.477,0.198,0.935,0.549,1.273c0.352,0.337,0.829,0.527,1.326,0.527h6.25c0.497,0,0.974,-0.19,1.326,-0.527c0.351,-0.338,0.549,-0.796,0.549,-1.273v-4.2c0,-0.477,-0.198,-0.935,-0.549,-1.273c-0.352,-0.337,-0.829,-0.527,-1.326,-0.527zm-5,-1.2c0,-0.477,0.198,-0.935,0.549,-1.273c0.352,-0.337,0.829,-0.527,1.326,-0.527c0.497,0,0.974,0.19,1.326,0.527c0.351,0.338,0.549,0.796,0.549,1.273v1.2h-3.75v-1.2zm5.625,7.2c0,0.159,-0.066,0.312,-0.183,0.424c-0.117,0.113,-0.276,0.176,-0.442,0.176h-6.25c-0.166,0,-0.325,-0.063,-0.442,-0.176c-0.117,-0.112,-0.183,-0.265,-0.183,-0.424v-4.2c0,-0.159,0.066,-0.312,0.183,-0.424c0.117,-0.113,0.276,-0.176,0.442,-0.176h6.25c0.166,0,0.325,0.063,0.442,0.176c0.117,0.112,0.183,0.265,0.183,0.424v4.2z" fill="white"/>
23
+ </svg>
24
+ </g>
25
+ <defs>
26
+ <filter id="filter_current_level" x="64" y="4" width="21" height="21" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
27
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
28
+ <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
29
+ <feGaussianBlur stdDeviation="2" result="effect1_foregroundBlur_305_23"/>
30
+ </filter>
31
+ <filter id="filter_heart_ball" x="155" y="0" width="28" height="28" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
32
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
33
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
34
+ <feOffset/>
35
+ <feGaussianBlur stdDeviation="2"/>
36
+ <feComposite in2="hardAlpha" operator="out"/>
37
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
38
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_305_23"/>
39
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_305_23" result="shape"/>
40
+ </filter>
41
+ <filter id="filter_ball" x="159" y="4" width="20" height="21" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
42
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
43
+ <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
44
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
45
+ <feOffset dy="1"/>
46
+ <feGaussianBlur stdDeviation="1"/>
47
+ <feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
48
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0"/>
49
+ <feBlend mode="normal" in2="shape" result="effect1_innerShadow_305_23"/>
50
+ </filter>
51
+ <filter id="filter_heart" x="161.636" y="5.72727" width="14.7271" height="15.6364" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
52
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
53
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
54
+ <feOffset/>
55
+ <feGaussianBlur stdDeviation="0.5"/>
56
+ <feComposite in2="hardAlpha" operator="out"/>
57
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
58
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_305_23"/>
59
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_305_23" result="shape"/>
60
+ </filter>
61
+ <filter id="filter_lock" x="50" y="7" width="12" height="14" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
62
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
63
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
64
+ <feOffset/>
65
+ <feGaussianBlur stdDeviation="0.5"/>
66
+ <feComposite in2="hardAlpha" operator="out"/>
67
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
68
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_305_23"/>
69
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_305_23" result="shape"/>
70
+ </filter>
71
+ <linearGradient id="paint0_linear_ball" x1="163" y1="6" x2="174.2" y2="22.6" gradientUnits="userSpaceOnUse">
72
+ <stop stop-color="#946AD7"/>
73
+ <stop offset="1" stop-color="#EFABEB"/>
74
+ </linearGradient>
75
+ <linearGradient id="paint1_linear_lock" x1="100%" y1="18.4056" x2="169.002" y2="10.2845" gradientUnits="userSpaceOnUse">
76
+ <stop stop-color="#814FD6"/>
77
+ <stop offset="1" stop-color="#D679D8"/>
78
+ </linearGradient>
79
+ </defs>
80
+ </svg>
@@ -0,0 +1,21 @@
1
+ <svg width="126" height="92" viewBox="0 0 126 92" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g filter="url(#filter0_d_242_4231)">
3
+ <rect x="24" y="20" width="78" height="36" rx="4" fill="white"/>
4
+ <path d="M24 24C24 21.7909 25.7909 20 28 20H64V56H28C25.7909 56 24 54.2091 24 52V24Z" fill="#464646"/>
5
+ <path d="M51 56H37L43.2474 63.1399C43.6458 63.5952 44.3542 63.5952 44.7526 63.1399L51 56Z" fill="#464646"/>
6
+ <circle cx="44" cy="38" r="7" fill="white"/>
7
+ <path d="M43.9405 34C44.5456 34 45.0362 34.4906 45.0362 35.0957C45.0362 35.7009 44.5456 36.1915 43.9405 36.1915C43.3353 36.1915 42.8447 35.7009 42.8447 35.0957C42.8447 34.4906 43.3353 34 43.9405 34Z" fill="#464646"/>
8
+ <path d="M45.8801 41.3737C45.8801 41.7617 45.5626 42.0791 45.1746 42.0791H44.3233H43.551H42.7055C42.3175 42.0791 42 41.7617 42 41.3737V41.3575C42 40.9695 42.3175 40.6521 42.7055 40.6521H42.8455V37.8714H42.3528C42.1588 37.8714 42 37.7127 42 37.5187V37.4936C42 37.2996 42.1588 37.1409 42.3528 37.1409H43.551H44.031H44.3233C44.7113 37.1409 45.0287 37.4583 45.0287 37.8463V40.6521H45.1746C45.5626 40.6521 45.8801 40.9696 45.8801 41.3576V41.3737Z" fill="#464646"/>
9
+ </g>
10
+ <defs>
11
+ <filter id="filter0_d_242_4231" x="0" y="0" width="126" height="91.4814" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
12
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
13
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
14
+ <feOffset dy="4"/>
15
+ <feGaussianBlur stdDeviation="12"/>
16
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
17
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_242_4231"/>
18
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_242_4231" result="shape"/>
19
+ </filter>
20
+ </defs>
21
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">
2
+ <path fill="#6c6c6c" d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4
3
+ 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>
@@ -0,0 +1 @@
1
+ export * from './components';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,238 @@
1
+ const DEFAULT_LANGUAGE = 'en';
2
+ const SUPPORTED_LANGUAGES = ['en', 'zh-hk', 'it', 'fr', 'tr', 'hr'];
3
+ export const TRANSLATIONS = {
4
+ en: {
5
+ redeem: 'Redeem',
6
+ claim: 'Claim',
7
+ expireOn: 'Expire on ',
8
+ coinsToBeExpired: '${expirationPoints} coins to expire in ${expireDay} days',
9
+ coinsToBeExpiredDay: '${expirationPoints} coins to expire in ${expireDay} day',
10
+ coinsToBeExpiredHours: '${expirationPoints} coins to expire in ${expireDay} hours',
11
+ coinsToBeExpiredHour: '${expirationPoints} coins to expire in ${expireDay} hour',
12
+ coinsToBeExpiredMinutes: '${expirationPoints} coins to expire in ${expireDay} minutes',
13
+ coinsToBeExpiredMinute: '${expirationPoints} coins to expire in ${expireDay} minute',
14
+ pointsToBeExpired: '${expirationPoints} points to expire in ${expireDay} days',
15
+ pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
16
+ pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
17
+ pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
18
+ pointsToBeExpiredMinutes: '${expirationPoints} points to expire in ${expireDay} minutes',
19
+ pointsToBeExpiredMinute: '${expirationPoints} points to expire in ${expireDay} minute',
20
+ tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
21
+ spendablePoints: 'Spendable Points:',
22
+ details: 'Details',
23
+ earningRules: 'Earning Rules',
24
+ xp: 'XP',
25
+ sp: 'Coins',
26
+ termAndConditions: 'Term & Conditions',
27
+ rakebackTitle: 'Available Rakeback',
28
+ loading: 'Loading',
29
+ minutesCanClaim: 'Next Claim is available in ${minutes} minutes'
30
+ },
31
+ 'zh-hk': {
32
+ redeem: '兑奖',
33
+ claim: '返佣',
34
+ expireOn: 'Expire on ',
35
+ pointsToBeExpired: '${expirationPoints} points to expire in ${expireDay} days',
36
+ pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
37
+ pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
38
+ pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
39
+ pointsToBeExpiredMinutes: '${expirationPoints} points to expire in ${expireDay} minutes',
40
+ pointsToBeExpiredMinute: '${expirationPoints} points to expire in ${expireDay} minute',
41
+ tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
42
+ spendablePoints: 'Spendable Points:',
43
+ details: '明细',
44
+ earningRules: 'Earning Rules',
45
+ xp: 'XP',
46
+ sp: 'Coins',
47
+ termAndConditions: 'Term & Conditions',
48
+ rakebackTitle: '可用的返利',
49
+ loading: '加載中',
50
+ minutesCanClaim: '下次可領取時間為${minutes}分鐘後'
51
+ },
52
+ de: {
53
+ redeem: 'Redeem',
54
+ claim: 'Anspruch',
55
+ expireOn: 'Expire on ',
56
+ pointsToBeExpired: '${expirationPoints} points to expire in ${expireDay} days',
57
+ pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
58
+ pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
59
+ pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
60
+ pointsToBeExpiredMinutes: '${expirationPoints} points to expire in ${expireDay} minutes',
61
+ pointsToBeExpiredMinute: '${expirationPoints} points to expire in ${expireDay} minute',
62
+ tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
63
+ spendablePoints: 'Spendable Points:',
64
+ details: 'Details',
65
+ earningRules: 'Earning Rules',
66
+ xp: 'XP',
67
+ sp: 'Coins',
68
+ termAndConditions: 'Term & Conditions',
69
+ rakebackTitle: 'Verfügbarer Rakeback',
70
+ loading: 'Laden',
71
+ minutesCanClaim: 'Nächster Anspruch ist in ${minutes} Minuten verfügbar'
72
+ },
73
+ it: {
74
+ redeem: 'Redeem',
75
+ claim: 'Richiesta',
76
+ expireOn: 'Expire on ',
77
+ pointsToBeExpired: '${expirationPoints} points to expire in ${expireDay} days',
78
+ pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
79
+ pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
80
+ pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
81
+ pointsToBeExpiredMinutes: '${expirationPoints} points to expire in ${expireDay} minutes',
82
+ pointsToBeExpiredMinute: '${expirationPoints} points to expire in ${expireDay} minute',
83
+ tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
84
+ spendablePoints: 'Spendable Points:',
85
+ details: 'Details',
86
+ earningRules: 'Earning Rules',
87
+ xp: 'XP',
88
+ sp: 'Coins',
89
+ termAndConditions: 'Term & Conditions',
90
+ rakebackTitle: 'Rakeback Disponibile',
91
+ loading: 'Caricamento',
92
+ minutesCanClaim: 'La prossima richiesta sarà disponibile tra ${minutes} minuti'
93
+ },
94
+ fr: {
95
+ redeem: 'Redeem',
96
+ claim: 'Réclamer',
97
+ expireOn: 'Expire on ',
98
+ pointsToBeExpired: '${expirationPoints} points to expire in ${expireDay} days',
99
+ pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
100
+ pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
101
+ pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
102
+ pointsToBeExpiredMinutes: '${expirationPoints} points to expire in ${expireDay} minutes',
103
+ pointsToBeExpiredMinute: '${expirationPoints} points to expire in ${expireDay} minute',
104
+ tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
105
+ spendablePoints: 'Spendable Points:',
106
+ details: 'Details',
107
+ earningRules: 'Earning Rules',
108
+ xp: 'XP',
109
+ sp: 'Coins',
110
+ termAndConditions: 'Term & Conditions',
111
+ rakebackTitle: 'Rakeback Disponible',
112
+ loading: 'Chargement',
113
+ minutesCanClaim: 'La prochaine réclamation sera disponible dans ${minutes} minutes'
114
+ },
115
+ es: {
116
+ redeem: 'Redeem',
117
+ claim: 'Reclamar',
118
+ rakebackTitle: 'Rakeback Disponible',
119
+ loading: 'Cargando',
120
+ minutesCanClaim: 'La próxima reclamación estará disponible en ${minutes} minutos'
121
+ },
122
+ tr: {
123
+ redeem: 'Redeem',
124
+ claim: 'Talep',
125
+ expireOn: 'Expire on ',
126
+ pointsToBeExpired: '${expirationPoints} points to expire in ${expireDay} days',
127
+ pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
128
+ pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
129
+ pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
130
+ pointsToBeExpiredMinutes: '${expirationPoints} points to expire in ${expireDay} minutes',
131
+ pointsToBeExpiredMinute: '${expirationPoints} points to expire in ${expireDay} minute',
132
+ tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
133
+ spendablePoints: 'Spendable Points:',
134
+ details: 'Details',
135
+ earningRules: 'Earning Rules',
136
+ xp: 'XP',
137
+ sp: 'Coins',
138
+ termAndConditions: 'Term & Conditions',
139
+ rakebackTitle: 'Mevcut Rakeback',
140
+ loading: 'Yükleniyor',
141
+ minutesCanClaim: 'Sonraki talep ${minutes} dakika içinde kullanılabilir'
142
+ },
143
+ ru: {
144
+ redeem: 'Redeem',
145
+ claim: 'Требовать',
146
+ rakebackTitle: 'Доступный Рейкбек',
147
+ loading: 'Загрузка',
148
+ minutesCanClaim: 'Следующее требование будет доступно через ${minutes} минут'
149
+ },
150
+ ro: {
151
+ redeem: 'Redeem',
152
+ claim: 'Revendicare',
153
+ rakebackTitle: 'Rakeback Disponibil',
154
+ loading: 'Se încarcă',
155
+ minutesCanClaim: 'Următoarea revendicare va fi disponibilă în ${minutes} minute'
156
+ },
157
+ hr: {
158
+ redeem: 'Otkupiti',
159
+ claim: 'Zahtjev',
160
+ expireOn: 'Istječe',
161
+ pointsToBeExpired: '${expirationPoints} bodova ističe za ${expireDay} dana',
162
+ pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
163
+ pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
164
+ pointsToBeExpiredMinutes: '${expirationPoints} points to expire in ${expireDay} minutes',
165
+ pointsToBeExpiredMinute: '${expirationPoints} points to expire in ${expireDay} minute',
166
+ tipsForNextLevel: 'Trebate ${pointsToReach} da dosegnete razinu ${levelName}',
167
+ spendablePoints: 'Bodovi za potrošit:',
168
+ details: 'Detalji',
169
+ xp: 'XP',
170
+ rakebackTitle: 'Dostupan Rakeback',
171
+ loading: 'Učitavanje',
172
+ minutesCanClaim: 'Sljedeći zahtjev bit će dostupan za ${minutes} minuta'
173
+ },
174
+ hu: {
175
+ redeem: 'Redeem',
176
+ claim: 'Igény',
177
+ rakebackTitle: 'Elérhető Rakeback',
178
+ loading: 'Betöltés',
179
+ minutesCanClaim: 'A következő igény ${minutes} perc múlva lesz elérhető'
180
+ },
181
+ pl: {
182
+ redeem: 'Redeem',
183
+ claim: 'Roszczenie',
184
+ rakebackTitle: 'Dostępny Rakeback',
185
+ loading: 'Ładowanie',
186
+ minutesCanClaim: 'Następne roszczenie będzie dostępne za ${minutes} minut'
187
+ },
188
+ pt: {
189
+ redeem: 'Redeem',
190
+ claim: 'Reivindicar',
191
+ rakebackTitle: 'Rakeback Disponível',
192
+ loading: 'Carregando',
193
+ minutesCanClaim: 'Próxima reivindicação disponível em ${minutes} minutos'
194
+ },
195
+ sl: {
196
+ redeem: 'Redeem',
197
+ claim: 'Zahtevek',
198
+ rakebackTitle: 'Razpoložljiv Rakeback',
199
+ loading: 'Nalaganje',
200
+ minutesCanClaim: 'Naslednji zahtevek bo na voljo čez ${minutes} minut'
201
+ },
202
+ sr: {
203
+ redeem: 'Redeem',
204
+ claim: 'Zahtev',
205
+ rakebackTitle: 'Dostupan Rakeback',
206
+ loading: 'Učitavanje',
207
+ minutesCanClaim: 'Sledeći zahtev biće dostupan za ${minutes} minuta'
208
+ }
209
+ };
210
+ export const translate = (key, customLang) => {
211
+ const lang = customLang;
212
+ return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
213
+ };
214
+ export const translateWithParams = (key, params) => {
215
+ const lang = params['lang'];
216
+ let templateString = TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
217
+ if (!params) {
218
+ return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
219
+ }
220
+ Object.keys(params).forEach((paramName) => {
221
+ templateString = templateString.replace(new RegExp('\\$\{' + paramName + '\}', 'gm'), params[paramName]);
222
+ });
223
+ return templateString;
224
+ };
225
+ export const getTranslations = (url) => {
226
+ return new Promise((resolve) => {
227
+ fetch(url)
228
+ .then((res) => res.json())
229
+ .then((data) => {
230
+ Object.keys(data).forEach((item) => {
231
+ for (let key in data[item]) {
232
+ TRANSLATIONS[item][key] = data[item][key];
233
+ }
234
+ });
235
+ resolve(true);
236
+ });
237
+ });
238
+ };
@@ -0,0 +1,51 @@
1
+ export function updateProgressSvg(progressElementRef, percent) {
2
+ const svgElement = progressElementRef.querySelector('#total_level');
3
+ const endLockWidth = 17, pointR = 6.5;
4
+ //Total Widget of the progress
5
+ const barWidth = svgElement.getBBox().width;
6
+ //The filled width according to current progress
7
+ const levelPercent = percent > 1 ? 1 : percent;
8
+ const widthOnBar = (levelPercent * barWidth - endLockWidth) < 0 ? 0 : levelPercent * barWidth - endLockWidth;
9
+ //update bar's width, widthOnBar
10
+ const levelBar = progressElementRef.querySelector('#current_level');
11
+ //update filters, x = widthOnBar
12
+ const levelFilter = progressElementRef.querySelector('#filter_current_level');
13
+ //update circle, widthOnBar+10
14
+ const levelCircle = progressElementRef.querySelector('#circle_current_level');
15
+ svgElement.setAttribute('viewbox', `0 0 ${widthOnBar} 28`);
16
+ levelBar.setAttribute('width', `${widthOnBar}`);
17
+ levelCircle.setAttribute('cx', `${(widthOnBar < pointR ? pointR : widthOnBar)}`);
18
+ levelFilter.setAttribute('x', `${widthOnBar - 8}`);
19
+ //update lock location
20
+ const endLockElement = progressElementRef.querySelector('#lock');
21
+ // wrapper of endLock, include ball and heatfilter1_d_305_23
22
+ const filter1 = progressElementRef.querySelector('#filter_heart_ball');
23
+ // ball in endlockfilter2_i_305_23
24
+ const filter2 = progressElementRef.querySelector('#filter_ball');
25
+ // heart in endlockfilter3_d_305_23
26
+ const filter3 = progressElementRef.querySelector('#filter_heart');
27
+ //wrapper of lockfilter4_d_305_23
28
+ const filterLock = progressElementRef.querySelector('#filter_lock');
29
+ // shadow of ball paint0_linear_305_23
30
+ const paint0 = progressElementRef.querySelector('#paint0_linear_ball');
31
+ //paint in lockpaint1_linear_305_23
32
+ const paint1 = progressElementRef.querySelector('#paint1_linear_lock');
33
+ // box of lock and heart, for move position dynamically
34
+ const lockBox = progressElementRef.querySelector('#lock_box');
35
+ const heartBox = progressElementRef.querySelector('#heart_box');
36
+ const rightPaddingOfLockWidth = 10, cxOfEndLockEle = barWidth - rightPaddingOfLockWidth;
37
+ //set cx of lockElement
38
+ endLockElement.setAttribute('cx', `${cxOfEndLockEle}`);
39
+ //set cx of sub Elements
40
+ paint1.setAttribute('x1', `${cxOfEndLockEle}`);
41
+ paint1.setAttribute('x2', `${cxOfEndLockEle}`);
42
+ paint0.setAttribute('x1', `${cxOfEndLockEle - 6}`);
43
+ paint0.setAttribute('x2', `${cxOfEndLockEle - 6 + 11.2}`);
44
+ filterLock.setAttribute('x', `${cxOfEndLockEle - 6}`);
45
+ filter3.setAttribute('x', `${cxOfEndLockEle - 6 - 2}`);
46
+ filter2.setAttribute('x', `${cxOfEndLockEle - 6 - 2 - 2}`);
47
+ filter1.setAttribute('x', `${cxOfEndLockEle - 6 - 2 - 2 - 4}`);
48
+ lockBox.setAttribute('x', `${cxOfEndLockEle - 6}`);
49
+ heartBox.setAttribute('x', `${cxOfEndLockEle - 6}`);
50
+ svgElement.parentElement.style.opacity = '1';
51
+ }
@@ -0,0 +1,3 @@
1
+ const globalScripts = () => {};
2
+
3
+ export { globalScripts as g };