@tyrads.com/tyrads-sdk 3.0.0-beta.0 → 3.1.0-beta.0

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 (225) hide show
  1. package/android/build.gradle +1 -1
  2. package/android/src/main/java/com/tyradssdk/TyradsSdkModule.kt +21 -4
  3. package/ios/Tyrads/InitModel.swift +3 -0
  4. package/ios/Tyrads/Tyrads.swift +106 -191
  5. package/ios/Tyrads/WebViewController.swift +171 -0
  6. package/ios/Tyrads/helpers/device_details.swift +58 -0
  7. package/ios/TyradsSdk.mm +7 -1
  8. package/ios/TyradsSdk.swift +42 -27
  9. package/lib/commonjs/acmo/core/helpers/launcher.js +20 -0
  10. package/lib/commonjs/acmo/core/helpers/launcher.js.map +1 -0
  11. package/lib/commonjs/acmo/modules/dashboard/components/active_offers_button.js +76 -0
  12. package/lib/commonjs/acmo/modules/dashboard/components/active_offers_button.js.map +1 -0
  13. package/lib/commonjs/acmo/modules/dashboard/components/custom_card.js +7 -10
  14. package/lib/commonjs/acmo/modules/dashboard/components/custom_card.js.map +1 -1
  15. package/lib/commonjs/acmo/modules/dashboard/components/custom_scroller.js +141 -0
  16. package/lib/commonjs/acmo/modules/dashboard/components/custom_scroller.js.map +1 -0
  17. package/lib/commonjs/acmo/{core/marquee.js → modules/dashboard/components/custom_shimmer.js} +46 -34
  18. package/lib/commonjs/acmo/modules/dashboard/components/custom_shimmer.js.map +1 -0
  19. package/lib/commonjs/acmo/modules/dashboard/components/offer_card.js +264 -0
  20. package/lib/commonjs/acmo/modules/dashboard/components/offer_card.js.map +1 -0
  21. package/lib/commonjs/acmo/modules/dashboard/components/offer_list_item.js +197 -0
  22. package/lib/commonjs/acmo/modules/dashboard/components/offer_list_item.js.map +1 -0
  23. package/lib/commonjs/acmo/modules/dashboard/components/premium_empty_widget.js +83 -0
  24. package/lib/commonjs/acmo/modules/dashboard/components/premium_empty_widget.js.map +1 -0
  25. package/lib/commonjs/acmo/modules/dashboard/components/premium_header.js +12 -10
  26. package/lib/commonjs/acmo/modules/dashboard/components/premium_header.js.map +1 -1
  27. package/lib/commonjs/acmo/modules/dashboard/components/premium_loading.js +118 -0
  28. package/lib/commonjs/acmo/modules/dashboard/components/premium_loading.js.map +1 -0
  29. package/lib/commonjs/acmo/modules/dashboard/repository.js +108 -32
  30. package/lib/commonjs/acmo/modules/dashboard/repository.js.map +1 -1
  31. package/lib/commonjs/acmo/modules/dashboard/top_offers.js +70 -63
  32. package/lib/commonjs/acmo/modules/dashboard/top_offers.js.map +1 -1
  33. package/lib/commonjs/assets/images/angle_up.png +0 -0
  34. package/lib/commonjs/assets/images/diamond.png +0 -0
  35. package/lib/commonjs/assets/images/info.png +0 -0
  36. package/lib/commonjs/assets/images/info_icon.png +0 -0
  37. package/lib/commonjs/assets/images/premium-emptybg.jpeg +0 -0
  38. package/lib/commonjs/assets/images/rank_1.png +0 -0
  39. package/lib/commonjs/assets/images/rank_2.png +0 -0
  40. package/lib/commonjs/assets/images/rank_3.png +0 -0
  41. package/lib/commonjs/assets/images/rank_4.png +0 -0
  42. package/lib/commonjs/assets/images/rank_5.png +0 -0
  43. package/lib/commonjs/index.js +11 -11
  44. package/lib/commonjs/index.js.map +1 -1
  45. package/lib/module/acmo/core/helpers/launcher.js +15 -0
  46. package/lib/module/acmo/core/helpers/launcher.js.map +1 -0
  47. package/lib/module/acmo/modules/dashboard/components/active_offers_button.js +70 -0
  48. package/lib/module/acmo/modules/dashboard/components/active_offers_button.js.map +1 -0
  49. package/lib/module/acmo/modules/dashboard/components/custom_card.js +7 -10
  50. package/lib/module/acmo/modules/dashboard/components/custom_card.js.map +1 -1
  51. package/lib/module/acmo/modules/dashboard/components/custom_scroller.js +135 -0
  52. package/lib/module/acmo/modules/dashboard/components/custom_scroller.js.map +1 -0
  53. package/lib/module/acmo/modules/dashboard/components/custom_shimmer.js +66 -0
  54. package/lib/module/acmo/modules/dashboard/components/custom_shimmer.js.map +1 -0
  55. package/lib/module/acmo/modules/dashboard/components/offer_card.js +257 -0
  56. package/lib/module/acmo/modules/dashboard/components/offer_card.js.map +1 -0
  57. package/lib/module/acmo/modules/dashboard/components/offer_list_item.js +191 -0
  58. package/lib/module/acmo/modules/dashboard/components/offer_list_item.js.map +1 -0
  59. package/lib/module/acmo/modules/dashboard/components/premium_empty_widget.js +78 -0
  60. package/lib/module/acmo/modules/dashboard/components/premium_empty_widget.js.map +1 -0
  61. package/lib/module/acmo/modules/dashboard/components/premium_header.js +12 -10
  62. package/lib/module/acmo/modules/dashboard/components/premium_header.js.map +1 -1
  63. package/lib/module/acmo/modules/dashboard/components/premium_loading.js +113 -0
  64. package/lib/module/acmo/modules/dashboard/components/premium_loading.js.map +1 -0
  65. package/lib/module/acmo/modules/dashboard/repository.js +105 -30
  66. package/lib/module/acmo/modules/dashboard/repository.js.map +1 -1
  67. package/lib/module/acmo/modules/dashboard/top_offers.js +71 -64
  68. package/lib/module/acmo/modules/dashboard/top_offers.js.map +1 -1
  69. package/lib/module/assets/images/angle_up.png +0 -0
  70. package/lib/module/assets/images/diamond.png +0 -0
  71. package/lib/module/assets/images/info.png +0 -0
  72. package/lib/module/assets/images/info_icon.png +0 -0
  73. package/lib/module/assets/images/premium-emptybg.jpeg +0 -0
  74. package/lib/module/assets/images/rank_1.png +0 -0
  75. package/lib/module/assets/images/rank_2.png +0 -0
  76. package/lib/module/assets/images/rank_3.png +0 -0
  77. package/lib/module/assets/images/rank_4.png +0 -0
  78. package/lib/module/assets/images/rank_5.png +0 -0
  79. package/lib/module/index.js +11 -11
  80. package/lib/module/index.js.map +1 -1
  81. package/lib/typescript/commonjs/src/acmo/core/helpers/launcher.d.ts +3 -0
  82. package/lib/typescript/commonjs/src/acmo/core/helpers/launcher.d.ts.map +1 -0
  83. package/lib/typescript/commonjs/src/acmo/core/storage/storage.d.ts.map +1 -1
  84. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/active_offers_button.d.ts +9 -0
  85. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/active_offers_button.d.ts.map +1 -0
  86. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_card.d.ts.map +1 -1
  87. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_scroller.d.ts +17 -0
  88. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_scroller.d.ts.map +1 -0
  89. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_shimmer.d.ts +11 -0
  90. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_shimmer.d.ts.map +1 -0
  91. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_card.d.ts +12 -0
  92. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_card.d.ts.map +1 -0
  93. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_list_item.d.ts +15 -0
  94. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_list_item.d.ts.map +1 -0
  95. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_empty_widget.d.ts +7 -0
  96. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_empty_widget.d.ts.map +1 -0
  97. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_loading.d.ts +9 -0
  98. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_loading.d.ts.map +1 -0
  99. package/lib/typescript/commonjs/src/acmo/modules/dashboard/repository.d.ts +2 -1
  100. package/lib/typescript/commonjs/src/acmo/modules/dashboard/repository.d.ts.map +1 -1
  101. package/lib/typescript/commonjs/src/acmo/modules/dashboard/top_offers.d.ts +8 -7
  102. package/lib/typescript/commonjs/src/acmo/modules/dashboard/top_offers.d.ts.map +1 -1
  103. package/lib/typescript/commonjs/src/index.d.ts +4 -6
  104. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  105. package/lib/typescript/module/src/acmo/core/helpers/launcher.d.ts +3 -0
  106. package/lib/typescript/module/src/acmo/core/helpers/launcher.d.ts.map +1 -0
  107. package/lib/typescript/module/src/acmo/core/storage/storage.d.ts.map +1 -1
  108. package/lib/typescript/module/src/acmo/modules/dashboard/components/active_offers_button.d.ts +9 -0
  109. package/lib/typescript/module/src/acmo/modules/dashboard/components/active_offers_button.d.ts.map +1 -0
  110. package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_card.d.ts.map +1 -1
  111. package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_scroller.d.ts +17 -0
  112. package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_scroller.d.ts.map +1 -0
  113. package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_shimmer.d.ts +11 -0
  114. package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_shimmer.d.ts.map +1 -0
  115. package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_card.d.ts +12 -0
  116. package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_card.d.ts.map +1 -0
  117. package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_list_item.d.ts +15 -0
  118. package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_list_item.d.ts.map +1 -0
  119. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_empty_widget.d.ts +7 -0
  120. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_empty_widget.d.ts.map +1 -0
  121. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_loading.d.ts +9 -0
  122. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_loading.d.ts.map +1 -0
  123. package/lib/typescript/module/src/acmo/modules/dashboard/repository.d.ts +2 -1
  124. package/lib/typescript/module/src/acmo/modules/dashboard/repository.d.ts.map +1 -1
  125. package/lib/typescript/module/src/acmo/modules/dashboard/top_offers.d.ts +8 -7
  126. package/lib/typescript/module/src/acmo/modules/dashboard/top_offers.d.ts.map +1 -1
  127. package/lib/typescript/module/src/index.d.ts +4 -6
  128. package/lib/typescript/module/src/index.d.ts.map +1 -1
  129. package/package.json +3 -2
  130. package/readme.md +8 -8
  131. package/src/acmo/core/helpers/launcher.ts +14 -0
  132. package/src/acmo/core/types/types.d.ts +11 -13
  133. package/src/acmo/modules/dashboard/components/active_offers_button.tsx +61 -0
  134. package/src/acmo/modules/dashboard/components/custom_card.tsx +5 -8
  135. package/src/acmo/modules/dashboard/components/custom_scroller.tsx +164 -0
  136. package/src/acmo/modules/dashboard/components/custom_shimmer.tsx +75 -0
  137. package/src/acmo/modules/dashboard/components/offer_card.tsx +248 -0
  138. package/src/acmo/modules/dashboard/components/offer_list_item.tsx +225 -0
  139. package/src/acmo/modules/dashboard/components/premium_empty_widget.tsx +76 -0
  140. package/src/acmo/modules/dashboard/components/premium_header.tsx +8 -8
  141. package/src/acmo/modules/dashboard/components/premium_loading.tsx +78 -0
  142. package/src/acmo/modules/dashboard/repository.ts +121 -46
  143. package/src/acmo/modules/dashboard/top_offers.tsx +89 -52
  144. package/src/assets/images/angle_up.png +0 -0
  145. package/src/assets/images/diamond.png +0 -0
  146. package/src/assets/images/info.png +0 -0
  147. package/src/assets/images/info_icon.png +0 -0
  148. package/src/assets/images/premium-emptybg.jpeg +0 -0
  149. package/src/assets/images/rank_1.png +0 -0
  150. package/src/assets/images/rank_2.png +0 -0
  151. package/src/assets/images/rank_3.png +0 -0
  152. package/src/assets/images/rank_4.png +0 -0
  153. package/src/assets/images/rank_5.png +0 -0
  154. package/src/index.tsx +15 -18
  155. package/lib/commonjs/acmo/core/marquee.js.map +0 -1
  156. package/lib/commonjs/acmo/modules/dashboard/components/auto_scroller.js +0 -87
  157. package/lib/commonjs/acmo/modules/dashboard/components/auto_scroller.js.map +0 -1
  158. package/lib/commonjs/acmo/modules/dashboard/components/my_games_button.js +0 -48
  159. package/lib/commonjs/acmo/modules/dashboard/components/my_games_button.js.map +0 -1
  160. package/lib/commonjs/acmo/modules/dashboard/components/offer_info_section.js +0 -158
  161. package/lib/commonjs/acmo/modules/dashboard/components/offer_info_section.js.map +0 -1
  162. package/lib/commonjs/acmo/modules/dashboard/components/premium_option_1.js +0 -180
  163. package/lib/commonjs/acmo/modules/dashboard/components/premium_option_1.js.map +0 -1
  164. package/lib/commonjs/acmo/modules/dashboard/components/premium_option_2.js +0 -102
  165. package/lib/commonjs/acmo/modules/dashboard/components/premium_option_2.js.map +0 -1
  166. package/lib/commonjs/acmo/modules/dashboard/components/premium_option_3.js +0 -41
  167. package/lib/commonjs/acmo/modules/dashboard/components/premium_option_3.js.map +0 -1
  168. package/lib/commonjs/acmo/modules/dashboard/components/premium_option_4.js +0 -214
  169. package/lib/commonjs/acmo/modules/dashboard/components/premium_option_4.js.map +0 -1
  170. package/lib/module/acmo/core/marquee.js +0 -54
  171. package/lib/module/acmo/core/marquee.js.map +0 -1
  172. package/lib/module/acmo/modules/dashboard/components/auto_scroller.js +0 -81
  173. package/lib/module/acmo/modules/dashboard/components/auto_scroller.js.map +0 -1
  174. package/lib/module/acmo/modules/dashboard/components/my_games_button.js +0 -43
  175. package/lib/module/acmo/modules/dashboard/components/my_games_button.js.map +0 -1
  176. package/lib/module/acmo/modules/dashboard/components/offer_info_section.js +0 -153
  177. package/lib/module/acmo/modules/dashboard/components/offer_info_section.js.map +0 -1
  178. package/lib/module/acmo/modules/dashboard/components/premium_option_1.js +0 -174
  179. package/lib/module/acmo/modules/dashboard/components/premium_option_1.js.map +0 -1
  180. package/lib/module/acmo/modules/dashboard/components/premium_option_2.js +0 -97
  181. package/lib/module/acmo/modules/dashboard/components/premium_option_2.js.map +0 -1
  182. package/lib/module/acmo/modules/dashboard/components/premium_option_3.js +0 -36
  183. package/lib/module/acmo/modules/dashboard/components/premium_option_3.js.map +0 -1
  184. package/lib/module/acmo/modules/dashboard/components/premium_option_4.js +0 -209
  185. package/lib/module/acmo/modules/dashboard/components/premium_option_4.js.map +0 -1
  186. package/lib/typescript/commonjs/src/acmo/core/marquee.d.ts +0 -11
  187. package/lib/typescript/commonjs/src/acmo/core/marquee.d.ts.map +0 -1
  188. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/auto_scroller.d.ts +0 -10
  189. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/auto_scroller.d.ts.map +0 -1
  190. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/my_games_button.d.ts +0 -8
  191. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/my_games_button.d.ts.map +0 -1
  192. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_info_section.d.ts +0 -11
  193. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_info_section.d.ts.map +0 -1
  194. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_1.d.ts +0 -9
  195. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_1.d.ts.map +0 -1
  196. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_2.d.ts +0 -9
  197. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_2.d.ts.map +0 -1
  198. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_3.d.ts +0 -9
  199. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_3.d.ts.map +0 -1
  200. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_4.d.ts +0 -9
  201. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_4.d.ts.map +0 -1
  202. package/lib/typescript/module/src/acmo/core/marquee.d.ts +0 -11
  203. package/lib/typescript/module/src/acmo/core/marquee.d.ts.map +0 -1
  204. package/lib/typescript/module/src/acmo/modules/dashboard/components/auto_scroller.d.ts +0 -10
  205. package/lib/typescript/module/src/acmo/modules/dashboard/components/auto_scroller.d.ts.map +0 -1
  206. package/lib/typescript/module/src/acmo/modules/dashboard/components/my_games_button.d.ts +0 -8
  207. package/lib/typescript/module/src/acmo/modules/dashboard/components/my_games_button.d.ts.map +0 -1
  208. package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_info_section.d.ts +0 -11
  209. package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_info_section.d.ts.map +0 -1
  210. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_1.d.ts +0 -9
  211. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_1.d.ts.map +0 -1
  212. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_2.d.ts +0 -9
  213. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_2.d.ts.map +0 -1
  214. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_3.d.ts +0 -9
  215. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_3.d.ts.map +0 -1
  216. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_4.d.ts +0 -9
  217. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_4.d.ts.map +0 -1
  218. package/src/acmo/core/marquee.tsx +0 -62
  219. package/src/acmo/modules/dashboard/components/auto_scroller.tsx +0 -85
  220. package/src/acmo/modules/dashboard/components/my_games_button.tsx +0 -40
  221. package/src/acmo/modules/dashboard/components/offer_info_section.tsx +0 -139
  222. package/src/acmo/modules/dashboard/components/premium_option_1.tsx +0 -163
  223. package/src/acmo/modules/dashboard/components/premium_option_2.tsx +0 -100
  224. package/src/acmo/modules/dashboard/components/premium_option_3.tsx +0 -42
  225. package/src/acmo/modules/dashboard/components/premium_option_4.tsx +0 -185
@@ -1,102 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _reactNative = require("react-native");
9
- var _auto_scroller = _interopRequireDefault(require("./auto_scroller.js"));
10
- var _offer_info_section = _interopRequireDefault(require("./offer_info_section.js"));
11
- var _jsxRuntime = require("react/jsx-runtime");
12
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
- const {
14
- width
15
- } = _reactNative.Dimensions.get('window');
16
- const PremiumOption2 = ({
17
- data,
18
- onCampaignPress,
19
- premiumColor
20
- }) => {
21
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_auto_scroller.default, {
22
- totalPages: data.length,
23
- premiumColor: premiumColor,
24
- content: page => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
25
- onPress: () => onCampaignPress && onCampaignPress(data[page]?.campaignId ?? 0),
26
- activeOpacity: 0.8,
27
- children: data[page] && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
28
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(OfferBanner, {
29
- details: data[page],
30
- index: page,
31
- premiumColor: premiumColor
32
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_offer_info_section.default, {
33
- details: data[page],
34
- premiumColor: premiumColor,
35
- onButtonPress: () => onCampaignPress && onCampaignPress(data[page]?.campaignId ?? 0)
36
- })]
37
- })
38
- }, page)
39
- });
40
- };
41
- const OfferBanner = ({
42
- details,
43
- index,
44
- premiumColor
45
- }) => {
46
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
47
- style: styles.bannerContainer,
48
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
49
- style: styles.bannerImage,
50
- source: {
51
- uri: details.fileUrl
52
- },
53
- resizeMode: "cover"
54
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
55
- style: styles.starContainer,
56
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
57
- source: require('../../../../assets/images/premium_star.png'),
58
- style: [styles.starIcon, {
59
- tintColor: premiumColor || '#1C90DF'
60
- }]
61
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
62
- style: styles.index,
63
- numberOfLines: 1,
64
- ellipsizeMode: "tail",
65
- children: index + 1
66
- })]
67
- })]
68
- });
69
- };
70
- const styles = _reactNative.StyleSheet.create({
71
- bannerContainer: {
72
- width: width,
73
- height: 180
74
- },
75
- bannerImage: {
76
- flex: 1
77
- },
78
- starContainer: {
79
- position: 'absolute',
80
- top: 10,
81
- left: 10,
82
- backgroundColor: 'rgba(0,0,0,0)'
83
- },
84
- starIcon: {
85
- width: 30,
86
- height: 30
87
- },
88
- index: {
89
- position: 'absolute',
90
- top: 0,
91
- left: 0,
92
- right: 0,
93
- bottom: 0,
94
- textAlign: 'center',
95
- textAlignVertical: 'center',
96
- color: 'white',
97
- fontSize: 14,
98
- fontWeight: 'bold'
99
- }
100
- });
101
- var _default = exports.default = PremiumOption2;
102
- //# sourceMappingURL=premium_option_2.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_auto_scroller","_offer_info_section","_jsxRuntime","e","__esModule","default","width","Dimensions","get","PremiumOption2","data","onCampaignPress","premiumColor","jsx","totalPages","length","content","page","TouchableOpacity","onPress","campaignId","activeOpacity","children","jsxs","Fragment","OfferBanner","details","index","onButtonPress","View","style","styles","bannerContainer","Image","bannerImage","source","uri","fileUrl","resizeMode","starContainer","starIcon","tintColor","Text","numberOfLines","ellipsizeMode","StyleSheet","create","height","flex","position","top","left","backgroundColor","right","bottom","textAlign","textAlignVertical","color","fontSize","fontWeight","_default","exports"],"sourceRoot":"../../../../../../src","sources":["acmo/modules/dashboard/components/premium_option_2.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAQA,IAAAE,cAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,mBAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAAoD,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEpD,MAAM;EAAEG;AAAM,CAAC,GAAGC,uBAAU,CAACC,GAAG,CAAC,QAAQ,CAAC;AAQ1C,MAAMC,cAA6C,GAAGA,CAAC;EAAEC,IAAI;EAAEC,eAAe;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MAAM,EAAE,CAAC;IACTC,SAAS,EAAE,QAAQ;IACnBC,iBAAiB,EAAE,QAAQ;IAC3BC,KAAK,EAAE,OAAO;IACdC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAxD,OAAA,GAEYI,cAAc","ignoreList":[]}
@@ -1,41 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _reactNative = require("react-native");
9
- var _auto_scroller = _interopRequireDefault(require("./auto_scroller.js"));
10
- var _offer_info_section = _interopRequireDefault(require("./offer_info_section.js"));
11
- var _jsxRuntime = require("react/jsx-runtime");
12
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
- const PremiumOption3 = ({
14
- data,
15
- onCampaignPress,
16
- premiumColor
17
- }) => {
18
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_auto_scroller.default, {
19
- totalPages: data.length,
20
- premiumColor: premiumColor,
21
- content: page => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
22
- style: {
23
- flex: 1
24
- },
25
- activeOpacity: 0.8,
26
- onPress: () => onCampaignPress && onCampaignPress(data[page]?.campaignId ?? 0),
27
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
28
- children: data[page] && /*#__PURE__*/(0, _jsxRuntime.jsx)(_offer_info_section.default, {
29
- details: data[page],
30
- premiumColor: premiumColor,
31
- style: {
32
- paddingVertical: 23
33
- },
34
- onButtonPress: () => onCampaignPress && onCampaignPress(data[page]?.campaignId ?? 0)
35
- })
36
- })
37
- }, page)
38
- });
39
- };
40
- var _default = exports.default = PremiumOption3;
41
- //# sourceMappingURL=premium_option_3.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_auto_scroller","_offer_info_section","_jsxRuntime","e","__esModule","default","PremiumOption3","data","onCampaignPress","premiumColor","jsx","totalPages","length","content","page","TouchableOpacity","style","flex","activeOpacity","onPress","campaignId","children","View","details","paddingVertical","onButtonPress","_default","exports"],"sourceRoot":"../../../../../../src","sources":["acmo/modules/dashboard/components/premium_option_3.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,mBAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAAoD,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAQpD,MAAMG,cAA6C,GAAGA,CAAC;EAAEC,IAAI;EAAEC,eAAe;EAAEC;AAAa,CAAC,KAAK;EACjG,oBACE,IAAAP,WAAA,CAAAQ,GAAA,EAACV,cAAA,CAAAK,OAA6B;IAC5BM,UAAU,EAAEJ,IAAI,CAACK,MAAO;IACxBH,YAAY,EAAEA,YAAa;IAC3BI,OAAO,EAAGC,IAAI,iBACZ,IAAAZ,WAAA,CAAAQ,GAAA,EAACX,YAAA,CAAAgB,gBAAgB;MAEfC,KAAK,EAAE;QAAEC,IAAI,EAAE;MAAE,CAAE;MACnBC,aAAa,EAAE,GAAI;MACnBC,OAAO,EAAEA,CAAA,KAAMX,eAAe,IAAIA,eAAe,CAACD,IAAI,CAACO,IAAI,CAAC,EAAEM,UAAU,IAAI,CAAC,CAAE;MAAAC,QAAA,eAE/E,IAAAnB,WAAA,CAAAQ,GAAA,EAACX,YAAA,CAAAuB,IAAI;QAAAD,QAAA,EAEDd,IAAI,CAACO,IAAI,CAAC,iBACR,IAAAZ,WAAA,CAAAQ,GAAA,EAACT,mBAAA,CAAAI,OAAgB;UACfkB,OAAO,EAAEhB,IAAI,CAACO,IAAI,CAAE;UACpBL,YAAY,EAAEA,YAAa;UAC3BO,KAAK,EAAE;YAAEQ,eAAe,EAAE;UAAG,CAAE;UAC/BC,aAAa,EAAEA,CAAA,KAAMjB,eAAe,IAAIA,eAAe,CAACD,IAAI,CAACO,IAAI,CAAC,EAAEM,UAAU,IAAI,CAAC;QAAE,CACtF;MACF,CAEC;IAAC,GAhBFN,IAiBW;EAClB,CACH,CAAC;AAEN,CAAC;AAAC,IAAAY,QAAA,GAAAC,OAAA,CAAAtB,OAAA,GAEaC,cAAc","ignoreList":[]}
@@ -1,214 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _reactNative = require("react-native");
9
- var _auto_scroller = _interopRequireDefault(require("./auto_scroller.js"));
10
- var _numeral = _interopRequireDefault(require("numeral"));
11
- var _reactI18next = require("react-i18next");
12
- var _jsxRuntime = require("react/jsx-runtime");
13
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
- const {
15
- width
16
- } = _reactNative.Dimensions.get('window');
17
- const PremiumOption4 = ({
18
- data,
19
- onCampaignPress,
20
- premiumColor
21
- }) => {
22
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_auto_scroller.default, {
23
- totalPages: data.length,
24
- premiumColor: premiumColor,
25
- content: page => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
26
- children: data[page] && /*#__PURE__*/(0, _jsxRuntime.jsx)(OfferBanner, {
27
- details: data[page],
28
- index: page,
29
- premiumColor: premiumColor,
30
- onCampaignPress: onCampaignPress
31
- })
32
- }, page)
33
- });
34
- };
35
- const OfferBanner = ({
36
- details,
37
- index,
38
- onCampaignPress,
39
- premiumColor
40
- }) => {
41
- const {
42
- t
43
- } = (0, _reactI18next.useTranslation)();
44
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
45
- style: styles.outerContainer,
46
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
47
- style: styles.bannerContainer,
48
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
49
- style: styles.bannerImage,
50
- source: {
51
- uri: details.fileUrl
52
- },
53
- resizeMode: "cover"
54
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
55
- style: styles.starContainer,
56
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
57
- source: require('../../../../assets/images/premium_star.png'),
58
- style: [styles.starIcon, {
59
- tintColor: premiumColor || '#1C90DF'
60
- }]
61
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
62
- style: styles.index,
63
- numberOfLines: 1,
64
- ellipsizeMode: "tail",
65
- children: index + 1
66
- })]
67
- })]
68
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
69
- style: styles.titleContainer,
70
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
71
- style: {
72
- flexDirection: 'row',
73
- flex: 8,
74
- width: '70%'
75
- },
76
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
77
- style: styles.gameIcon,
78
- source: {
79
- uri: details.thumbnail
80
- },
81
- resizeMode: "cover"
82
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
83
- style: {
84
- marginLeft: 10
85
- },
86
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
87
- style: styles.titleText,
88
- children: details.title
89
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
90
- style: styles.rewardDetails,
91
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
92
- source: {
93
- uri: details.currency.adUnitCurrencyIcon
94
- },
95
- resizeMode: "contain",
96
- style: styles.coinIcon
97
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
98
- style: styles.points,
99
- children: (0, _numeral.default)(details.points).format("0.00a").toUpperCase()
100
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
101
- style: styles.points,
102
- children: ['', details.currency.adUnitCurrencyName]
103
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
104
- style: styles.rewards,
105
- children: [' ', details.rewards, " ", t('dashboard.rewards', {
106
- count: details.rewards
107
- })]
108
- })]
109
- })]
110
- })]
111
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
112
- onPress: () => onCampaignPress && onCampaignPress(details.campaignId),
113
- style: [styles.playButton, {
114
- backgroundColor: premiumColor || '#1C90DF'
115
- }],
116
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
117
- style: styles.playButtonText,
118
- children: t('dashboard.play_button')
119
- })
120
- })]
121
- })]
122
- });
123
- };
124
- const styles = _reactNative.StyleSheet.create({
125
- outerContainer: {},
126
- bannerContainer: {
127
- width: width,
128
- height: 190
129
- },
130
- bannerImage: {
131
- flex: 1,
132
- borderRadius: 8
133
- },
134
- starContainer: {
135
- position: 'absolute',
136
- top: 10,
137
- left: 10,
138
- backgroundColor: 'rgba(0,0,0,0)'
139
- },
140
- starIcon: {
141
- width: 30,
142
- height: 30
143
- },
144
- index: {
145
- position: 'absolute',
146
- top: 0,
147
- left: 0,
148
- right: 0,
149
- bottom: 0,
150
- textAlign: 'center',
151
- textAlignVertical: 'center',
152
- color: 'white',
153
- fontSize: 14,
154
- fontWeight: 'bold'
155
- },
156
- titleContainer: {
157
- flex: 1,
158
- width: '91.5%',
159
- flexDirection: 'row',
160
- justifyContent: 'space-between',
161
- alignItems: 'center',
162
- padding: 8,
163
- backgroundColor: 'rgba(0,0,0,0.5)',
164
- position: 'absolute',
165
- bottom: 0,
166
- left: 0,
167
- right: 0
168
- },
169
- titleText: {
170
- color: 'white',
171
- fontSize: 14,
172
- fontWeight: 'bold',
173
- marginBottom: 4
174
- },
175
- gameIcon: {
176
- width: 35,
177
- height: 35,
178
- borderRadius: 8
179
- },
180
- coinIcon: {
181
- width: 16,
182
- height: 16
183
- },
184
- points: {
185
- fontSize: 12,
186
- marginLeft: 4,
187
- fontWeight: 'bold',
188
- color: 'white'
189
- },
190
- rewardDetails: {
191
- flexDirection: 'row',
192
- alignItems: 'center'
193
- },
194
- rewards: {
195
- fontSize: 10,
196
- fontStyle: 'italic',
197
- color: 'lightgray'
198
- },
199
- playButton: {
200
- paddingHorizontal: 12,
201
- paddingVertical: 2,
202
- height: 31,
203
- borderRadius: 8,
204
- alignItems: 'center',
205
- justifyContent: 'center'
206
- },
207
- playButtonText: {
208
- fontSize: 16,
209
- fontWeight: 'bold',
210
- color: 'white'
211
- }
212
- });
213
- var _default = exports.default = PremiumOption4;
214
- //# sourceMappingURL=premium_option_4.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_auto_scroller","_numeral","_reactI18next","_jsxRuntime","e","__esModule","default","width","Dimensions","get","PremiumOption4","data","onCampaignPress","premiumColor","jsx","totalPages","length","content","page","View","children","OfferBanner","details","index","t","useTranslation","jsxs","style","styles","outerContainer","bannerContainer","Image","bannerImage","source","uri","fileUrl","resizeMode","starContainer","starIcon","tintColor","Text","numberOfLines","ellipsizeMode","titleContainer","flexDirection","flex","gameIcon","thumbnail","marginLeft","titleText","title","rewardDetails","currency","adUnitCurrencyIcon","coinIcon","points","numeral","format","toUpperCase","adUnitCurrencyName","rewards","count","TouchableOpacity","onPress","campaignId","playButton","backgroundColor","playButtonText","StyleSheet","create","height","borderRadius","position","top","left","right","bottom","textAlign","textAlignVertical","color","fontSize","fontWeight","justifyContent","alignItems","padding","marginBottom","fontStyle","paddingHorizontal","paddingVertical","_default","exports"],"sourceRoot":"../../../../../../src","sources":["acmo/modules/dashboard/components/premium_option_4.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAA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AE;IACrBC,eAAe,EAAE,CAAC;IAClBlB,MAAM,EAAE,EAAE;IACVC,YAAY,EAAE,CAAC;IACfY,UAAU,EAAE,QAAQ;IACpBD,cAAc,EAAE;EAClB,CAAC;EACDf,cAAc,EAAE;IACda,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,MAAM;IAClBF,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAAC,IAAAU,QAAA,GAAAC,OAAA,CAAApF,OAAA,GAEYI,cAAc","ignoreList":[]}
@@ -1,54 +0,0 @@
1
- "use strict";
2
-
3
- import React, { useEffect, useRef } from 'react';
4
- import { Animated, View, StyleSheet, Dimensions } from 'react-native';
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- const MarqueeText = ({
7
- text,
8
- speed = 15,
9
- repeat = 100,
10
- style
11
- }) => {
12
- const translateX = useRef(new Animated.Value(0)).current;
13
- useEffect(() => {
14
- const textWidth = text.length * 4;
15
- const screenWidth = Dimensions.get('window').width;
16
- const animation = Animated.loop(Animated.sequence([Animated.timing(translateX, {
17
- toValue: -textWidth,
18
- duration: (textWidth + screenWidth) * speed,
19
- useNativeDriver: true
20
- }), Animated.timing(translateX, {
21
- toValue: screenWidth,
22
- duration: 0,
23
- useNativeDriver: true
24
- })]), {
25
- iterations: repeat
26
- });
27
- animation.start();
28
- return () => animation.stop();
29
- }, [text, speed, repeat, translateX]);
30
- return /*#__PURE__*/_jsx(View, {
31
- style: styles.container,
32
- children: /*#__PURE__*/_jsx(Animated.Text, {
33
- numberOfLines: 1,
34
- style: [styles.text, style, {
35
- transform: [{
36
- translateX
37
- }]
38
- }],
39
- children: text
40
- })
41
- });
42
- };
43
- const styles = StyleSheet.create({
44
- container: {
45
- overflow: 'hidden',
46
- width: '100%'
47
- },
48
- text: {
49
- fontSize: 16,
50
- fontWeight: 'bold'
51
- }
52
- });
53
- export default MarqueeText;
54
- //# sourceMappingURL=marquee.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","useEffect","useRef","Animated","View","StyleSheet","Dimensions","jsx","_jsx","MarqueeText","text","speed","repeat","style","translateX","Value","current","textWidth","length","screenWidth","get","width","animation","loop","sequence","timing","toValue","duration","useNativeDriver","iterations","start","stop","styles","container","children","Text","numberOfLines","transform","create","overflow","fontSize","fontWeight"],"sourceRoot":"../../../../src","sources":["acmo/core/marquee.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAChD,SAASC,QAAQ,EAAEC,IAAI,EAAEC,UAAU,EAAEC,UAAU,QAAwB,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAStF,MAAMC,WAAuC,GAAGA,CAAC;EAAEC,IAAI;EAAEC,KAAK,GAAG,EAAE;EAAEC,MAAM,GAAG,GAAG;EAAEC;AAAM,CAAC,KAAK;EAC7F,MAAMC,UAAU,GAAGZ,MAAM,CAAC,IAAIC,QAAQ,CAACY,KAAK,CAAC,CAAC,CAAC,CAAC,CAACC,OAAO;EAExDf,SAAS,CAAC,MAAM;IACd,MAAMgB,SAAS,GAAGP,IAAI,CAACQ,MAAM,GAAG,CAAC;IACjC,MAAMC,WAAW,GAAGb,UAAU,CAACc,GAAG,CAAC,QAAQ,CAAC,CAACC,KAAK;IAElD,MAAMC,SAAS,GAAGnB,QAAQ,CAACoB,IAAI,CAC7BpB,QAAQ,CAACqB,QAAQ,CAAC,CAChBrB,QAAQ,CAACsB,MAAM,CAACX,UAAU,EAAE;MAC1BY,OAAO,EAAE,CAACT,SAAS;MACnBU,QAAQ,EAAE,CAACV,SAAS,GAAGE,WAAW,IAAIR,KAAK;MAC3CiB,eAAe,EAAE;IACnB,CAAC,CAAC,EACFzB,QAAQ,CAACsB,MAAM,CAACX,UAAU,EAAE;MAC1BY,OAAO,EAAEP,WAAW;MACpBQ,QAAQ,EAAE,CAAC;MACXC,eAAe,EAAE;IACnB,CAAC,CAAC,CACH,CAAC,EACF;MAAEC,UAAU,EAAEjB;IAAO,CACvB,CAAC;IAEDU,SAAS,CAACQ,KAAK,CAAC,CAAC;IAEjB,OAAO,MAAMR,SAAS,CAACS,IAAI,CAAC,CAAC;EAC/B,CAAC,EAAE,CAACrB,IAAI,EAAEC,KAAK,EAAEC,MAAM,EAAEE,UAAU,CAAC,CAAC;EAErC,oBACEN,IAAA,CAACJ,IAAI;IAACS,KAAK,EAAEmB,MAAM,CAACC,SAAU;IAAAC,QAAA,eAC5B1B,IAAA,CAACL,QAAQ,CAACgC,IAAI;MACZC,aAAa,EAAE,CAAE;MACjBvB,KAAK,EAAE,CAACmB,MAAM,CAACtB,IAAI,EAAEG,KAAK,EAAE;QAAEwB,SAAS,EAAE,CAAC;UAAEvB;QAAW,CAAC;MAAE,CAAC,CAAE;MAAAoB,QAAA,EAE5DxB;IAAI,CACQ;EAAC,CACZ,CAAC;AAEX,CAAC;AAED,MAAMsB,MAAM,GAAG3B,UAAU,CAACiC,MAAM,CAAC;EAC/BL,SAAS,EAAE;IACTM,QAAQ,EAAE,QAAQ;IAClBlB,KAAK,EAAE;EACT,CAAC;EACDX,IAAI,EAAE;IACJ8B,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAEF,eAAehC,WAAW","ignoreList":[]}
@@ -1,81 +0,0 @@
1
- "use strict";
2
-
3
- import React, { useRef, useState, useEffect } from 'react';
4
- import { View, ScrollView, StyleSheet, Dimensions } from 'react-native';
5
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
- const {
7
- width
8
- } = Dimensions.get('window');
9
- const AutoScrollPagerWithIndicators = ({
10
- totalPages,
11
- delayInMillis = 5000,
12
- premiumColor,
13
- content
14
- }) => {
15
- const [currentPage, setCurrentPage] = useState(0);
16
- const scrollViewRef = useRef(null);
17
- useEffect(() => {
18
- const intervalId = setInterval(() => {
19
- const nextBanner = (currentPage + 1) % totalPages;
20
- setCurrentPage(nextBanner);
21
- scrollViewRef.current?.scrollTo({
22
- x: nextBanner * width,
23
- animated: true
24
- });
25
- }, delayInMillis);
26
- return () => clearInterval(intervalId);
27
- }, [currentPage, totalPages, delayInMillis]);
28
- useEffect(() => {
29
- scrollViewRef.current?.scrollTo({
30
- x: currentPage * width,
31
- animated: false
32
- });
33
- }, [currentPage]);
34
- const renderIndicators = () => {
35
- const indicators = [];
36
- for (let i = 0; i < totalPages; i++) {
37
- indicators.push(/*#__PURE__*/_jsx(View, {
38
- style: [styles.indicator, {
39
- backgroundColor: currentPage === i ? premiumColor || '#1C90DF' : 'lightgray'
40
- }]
41
- }, i));
42
- }
43
- return /*#__PURE__*/_jsx(View, {
44
- style: styles.indicatorContainer,
45
- children: indicators
46
- });
47
- };
48
- return /*#__PURE__*/_jsxs(View, {
49
- style: styles.container,
50
- children: [/*#__PURE__*/_jsx(ScrollView, {
51
- ref: scrollViewRef,
52
- horizontal: true,
53
- pagingEnabled: true,
54
- showsHorizontalScrollIndicator: true,
55
- scrollEnabled: false,
56
- contentContainerStyle: {
57
- width: totalPages * width
58
- },
59
- children: Array.from({
60
- length: totalPages
61
- }, (_, i) => content(i))
62
- }), renderIndicators()]
63
- });
64
- };
65
- const styles = StyleSheet.create({
66
- container: {
67
- alignItems: 'center'
68
- },
69
- indicatorContainer: {
70
- flexDirection: 'row',
71
- marginTop: 10
72
- },
73
- indicator: {
74
- width: 8,
75
- height: 8,
76
- borderRadius: 4,
77
- marginHorizontal: 2
78
- }
79
- });
80
- export default AutoScrollPagerWithIndicators;
81
- //# sourceMappingURL=auto_scroller.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","useRef","useState","useEffect","View","ScrollView","StyleSheet","Dimensions","jsx","_jsx","jsxs","_jsxs","width","get","AutoScrollPagerWithIndicators","totalPages","delayInMillis","premiumColor","content","currentPage","setCurrentPage","scrollViewRef","intervalId","setInterval","nextBanner","current","scrollTo","x","animated","clearInterval","renderIndicators","indicators","i","push","style","styles","indicator","backgroundColor","indicatorContainer","children","container","ref","horizontal","pagingEnabled","showsHorizontalScrollIndicator","scrollEnabled","contentContainerStyle","Array","from","length","_","create","alignItems","flexDirection","marginTop","height","borderRadius","marginHorizontal"],"sourceRoot":"../../../../../../src","sources":["acmo/modules/dashboard/components/auto_scroller.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,MAAM,EAAEC,QAAQ,EAAEC,SAAS,QAAQ,OAAO;AAC1D,SAASC,IAAI,EAAEC,UAAU,EAAEC,UAAU,EAAEC,UAAU,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAExE,MAAM;EAAEC;AAAM,CAAC,GAAGL,UAAU,CAACM,GAAG,CAAC,QAAQ,CAAC;AAS1C,MAAMC,6BAA2E,GAAGA,CAAC;EACnFC,UAAU;EACVC,aAAa,GAAG,IAAI;EACpBC,YAAY;EACZC;AACF,CAAC,KAAK;EACJ,MAAM,CAACC,WAAW,EAAEC,cAAc,CAAC,GAAGlB,QAAQ,CAAC,CAAC,CAAC;EACjD,MAAMmB,aAAa,GAAGpB,MAAM,CAAa,IAAI,CAAC;EAE9CE,SAAS,CAAC,MAAM;IACd,MAAMmB,UAAU,GAAGC,WAAW,CAAC,MAAM;MACnC,MAAMC,UAAU,GAAG,CAACL,WAAW,GAAG,CAAC,IAAIJ,UAAU;MACjDK,cAAc,CAACI,UAAU,CAAC;MAC1BH,aAAa,CAACI,OAAO,EAAEC,QAAQ,CAAC;QAAEC,CAAC,EAAEH,UAAU,GAAGZ,KAAK;QAAEgB,QAAQ,EAAE;MAAK,CAAC,CAAC;IAC5E,CAAC,EAAEZ,aAAa,CAAC;IAEjB,OAAO,MAAMa,aAAa,CAACP,UAAU,CAAC;EACxC,CAAC,EAAE,CAACH,WAAW,EAAEJ,UAAU,EAAEC,aAAa,CAAC,CAAC;EAE5Cb,SAAS,CAAC,MAAM;IACdkB,aAAa,CAACI,OAAO,EAAEC,QAAQ,CAAC;MAAEC,CAAC,EAAER,WAAW,GAAGP,KAAK;MAAEgB,QAAQ,EAAE;IAAM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,EAAE;EACb,CAAC;EACDlB,SAAS,EAAE;IACTxB,KAAK,EAAE,CAAC;IACR2C,MAAM,EAAE,CAAC;IACTC,YAAY,EAAE,CAAC;IACfC,gBAAgB,EAAE;EACpB;AACF,CAAC,CAAC;AAEF,eAAe3C,6BAA6B","ignoreList":[]}
@@ -1,43 +0,0 @@
1
- "use strict";
2
-
3
- import React from 'react';
4
- import { TouchableOpacity, Text, StyleSheet } from 'react-native';
5
- import { useTranslation } from 'react-i18next';
6
- import { jsx as _jsx } from "react/jsx-runtime";
7
- const MyGamesButton = ({
8
- premiumColor,
9
- onPress
10
- }) => {
11
- const {
12
- t
13
- } = useTranslation();
14
- return /*#__PURE__*/_jsx(TouchableOpacity, {
15
- style: [styles.button, {
16
- backgroundColor: premiumColor || '#1C90DF'
17
- }],
18
- onPress: () => onPress && onPress('campaigns-activated'),
19
- children: /*#__PURE__*/_jsx(Text, {
20
- style: styles.buttonText,
21
- children: t('dashboard.my_games')
22
- })
23
- });
24
- };
25
- const styles = StyleSheet.create({
26
- button: {
27
- borderRadius: 8,
28
- paddingHorizontal: 16,
29
- paddingVertical: 8,
30
- height: 40,
31
- justifyContent: 'center',
32
- alignItems: 'center',
33
- marginHorizontal: 16,
34
- marginBottom: 16
35
- },
36
- buttonText: {
37
- color: 'white',
38
- fontSize: 16,
39
- fontWeight: 'bold'
40
- }
41
- });
42
- export default MyGamesButton;
43
- //# sourceMappingURL=my_games_button.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","TouchableOpacity","Text","StyleSheet","useTranslation","jsx","_jsx","MyGamesButton","premiumColor","onPress","t","style","styles","button","backgroundColor","children","buttonText","create","borderRadius","paddingHorizontal","paddingVertical","height","justifyContent","alignItems","marginHorizontal","marginBottom","color","fontSize","fontWeight"],"sourceRoot":"../../../../../../src","sources":["acmo/modules/dashboard/components/my_games_button.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,gBAAgB,EAAEC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AACjE,SAASC,cAAc,QAAQ,eAAe;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAO/C,MAAMC,aAA2C,GAAGA,CAAC;EAAEC,YAAY;EAAGC;AAAO,CAAC,KAAK;EACjF,MAAM;IAAEC;EAAE,CAAC,GAAGN,cAAc,CAAC,CAAC;EAC9B,oBACEE,IAAA,CAACL,gBAAgB;IACfU,KAAK,EAAE,CAACC,MAAM,CAACC,MAAM,EAAE;MAAEC,eAAe,EAAEN,YAAY,IAAI;IAAU,CAAC,CAAE;IACvEC,OAAO,EAAEA,CAAA,KAAMA,OAAO,IAAIA,OAAO,CAAC,qBAAqB,CAAE;IAAAM,QAAA,eAEzDT,IAAA,CAACJ,IAAI;MAACS,KAAK,EAAEC,MAAM,CAACI,UAAW;MAAAD,QAAA,EAAEL,CAAC,CAAC,oBAAoB;IAAC,CAAO;EAAC,CAChD,CAAC;AAEvB,CAAC;AAED,MAAME,MAAM,GAAGT,UAAU,CAACc,MAAM,CAAC;EAC/BJ,MAAM,EAAE;IACNK,YAAY,EAAE,CAAC;IACfC,iBAAiB,EAAE,EAAE;IACrBC,eAAe,EAAE,CAAC;IAClBC,MAAM,EAAE,EAAE;IACVC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBC,gBAAgB,EAAE,EAAE;IACpBC,YAAY,EAAE;EAChB,CAAC;EACDT,UAAU,EAAE;IACVU,KAAK,EAAE,OAAO;IACdC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAEF,eAAerB,aAAa","ignoreList":[]}