@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
@@ -44,19 +44,22 @@ const Tyrads = {
44
44
  showOffers: async ({
45
45
  launchMode = 3,
46
46
  route,
47
- campaignID = 0
47
+ campaignID
48
48
  } = {}) => {
49
49
  if (_reactNative.Platform.OS === 'ios') {
50
- return await TyradsSdk.showOffers(launchMode, route, campaignID);
50
+ if (campaignID == null) {
51
+ return await TyradsSdk.showOffers(launchMode, route);
52
+ }
53
+ return await TyradsSdk.showOfferDetails(launchMode, route, campaignID);
51
54
  } else {
52
- return await TyradsSdk.showOffers(route, campaignID);
55
+ if (campaignID == null) {
56
+ return await TyradsSdk.showOffers(route);
57
+ }
58
+ return await TyradsSdk.showOfferDetails(route, campaignID);
53
59
  }
54
60
  },
55
61
  topPremiumOffers: ({
56
- showMore = true,
57
- showMyOffers = true,
58
- showMyOffersEmptyView = false,
59
- viewStyle = 1,
62
+ widgetStyle,
60
63
  launchMode = 2
61
64
  } = {}) => {
62
65
  const handleNavigation = (route, campaignID) => {
@@ -75,10 +78,7 @@ const Tyrads = {
75
78
  alignItems: 'center'
76
79
  },
77
80
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_top_offers.default, {
78
- showMore: showMore,
79
- showMyOffers: showMyOffers,
80
- showMyOffersEmptyView: showMyOffersEmptyView,
81
- style: viewStyle,
81
+ widgetStyle: widgetStyle,
82
82
  onNavigate: handleNavigation
83
83
  })
84
84
  })
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_top_offers","_interopRequireDefault","_storage","_reactI18next","_i18n","_jsxRuntime","e","__esModule","default","LINKING_ERROR","Platform","select","ios","TyradsSdk","NativeModules","Proxy","get","Error","Tyrads","init","apiKey","apiSecret","encKey","data","loginUser","userId","saveData","JSON","stringify","languageCode","parse","err","showOffers","launchMode","route","campaignID","OS","topPremiumOffers","showMore","showMyOffers","showMyOffersEmptyView","viewStyle","handleNavigation","jsx","I18nextProvider","i18n","children","View","style","flex","justifyContent","alignItems","onNavigate","_default","exports"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAH,sBAAA,CAAAF,OAAA;AAA0B,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAE,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE1B;AAGA,MAAMG,aAAa,GACjB,qEAAqE,GACrEC,qBAAQ,CAACC,MAAM,CAAC;EAAEC,GAAG,EA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AAC,OAAA,CAAA9C,OAAA,GAEaU,MAAM","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_top_offers","_interopRequireDefault","_storage","_reactI18next","_i18n","_jsxRuntime","e","__esModule","default","LINKING_ERROR","Platform","select","ios","TyradsSdk","NativeModules","Proxy","get","Error","Tyrads","init","apiKey","apiSecret","encKey","data","loginUser","userId","saveData","JSON","stringify","languageCode","parse","err","showOffers","launchMode","route","campaignID","OS","showOfferDetails","topPremiumOffers","widgetStyle","handleNavigation","jsx","I18nextProvider","i18n","children","View","style","flex","justifyContent","alignItems","onNavigate","_default","exports"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAH,sBAAA,CAAAF,OAAA;AAA0B,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAE,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE1B;AAGA,MAAMG,aAAa,GACjB,qEAAqE,GACrEC,qBAAQ,CAACC,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEJ,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAMK,SAAS,GAAGC,0BAAa,CAACD,SAAS,GACrCC,0BAAa,CAACD,SAAS,GACvB,IAAIE,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACR,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAEL,MAAMS,MAAM,GAAG;EACbC,IAAI,EAAE,MAAAA,CAAOC,MAAc,EAAEC,SAAiB,EAAEC,MAAe,KAAK;IAClE,MAAMC,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AC1C;MACA,OAAO,MAAMrB,SAAS,CAACwB,gBAAgB,CAACH,KAAK,EAAEC,UAAU,CAAC;IAC5D;EACF,CAAC;EACDG,gBAAgB,EAAEA,CAAC;IACjBC,WAAW;IACXN,UAAU,GAAG;EAIf,CAAC,GAAG,CAAC,CAAC,KAAK;IACT,MAAMO,gBAAgB,GAAGA,CAACN,KAAc,EAAEC,UAA0B,KAAK;MACvEjB,MAAM,CAACc,UAAU,CAAC;QAAEE,KAAK,EAAEA,KAAK;QAAEC,UAAU,EAAEA,UAAU;QAAEF,UAAU,EAAEA;MAAU,CAAC,CAAC;IACpF,CAAC;IACD,oBACE,IAAA5B,WAAA,CAAAoC,GAAA,EAACtC,aAAA,CAAAuC,eAAe;MAACC,IAAI,EAAEA,aAAK;MAAAC,QAAA,eAC1B,IAAAvC,WAAA,CAAAoC,GAAA,EAAC3C,YAAA,CAAA+C,IAAI;QAACC,KAAK,EAAE;UAAEC,IAAI,EAAE,CAAC;UAAEC,cAAc,EAAE,QAAQ;UAAEC,UAAU,EAAE;QAAS,CAAE;QAAAL,QAAA,eACvE,IAAAvC,WAAA,CAAAoC,GAAA,EAACzC,WAAA,CAAAQ,OAAS;UACR+B,WAAW,EAAEA,WAAY;UACzBW,UAAU,EAAEV;QAAiB,CAC9B;MAAC,CACE;IAAC,CACQ,CAAC;EAEtB;AACF,CAAC;AAAC,IAAAW,QAAA,GAAAC,OAAA,CAAA5C,OAAA,GAEaU,MAAM","ignoreList":[]}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ import { Linking } from "react-native";
4
+ export async function acmoLaunchURLForce(url) {
5
+ await Linking.openURL(url);
6
+ }
7
+ export async function acmoLaunchURL(url) {
8
+ const supported = await Linking.canOpenURL(url);
9
+ if (supported) {
10
+ await Linking.openURL(url);
11
+ } else {
12
+ console.warn("Don't know how to open URI: " + url);
13
+ }
14
+ }
15
+ //# sourceMappingURL=launcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Linking","acmoLaunchURLForce","url","openURL","acmoLaunchURL","supported","canOpenURL","console","warn"],"sourceRoot":"../../../../../src","sources":["acmo/core/helpers/launcher.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,cAAc;AAEtC,OAAO,eAAeC,kBAAkBA,CAACC,GAAW,EAAE;EAClD,MAAMF,OAAO,CAACG,OAAO,CAACD,GAAG,CAAC;AAC9B;AAEA,OAAO,eAAeE,aAAaA,CAACF,GAAW,EAAE;EAC/C,MAAMG,SAAS,GAAG,MAAML,OAAO,CAACM,UAAU,CAACJ,GAAG,CAAC;EAC/C,IAAIG,SAAS,EAAE;IACb,MAAML,OAAO,CAACG,OAAO,CAACD,GAAG,CAAC;EAC5B,CAAC,MAAM;IACLK,OAAO,CAACC,IAAI,CAAC,8BAA8B,GAAGN,GAAG,CAAC;EACpD;AACF","ignoreList":[]}
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { TouchableOpacity, Text, StyleSheet, View } from 'react-native';
5
+ // import { useTranslation } from 'react-i18next';
6
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
+ const ActiveOffersButton = ({
8
+ premiumColor,
9
+ activeCount,
10
+ onPress
11
+ }) => {
12
+ // const { t } = useTranslation();
13
+ return /*#__PURE__*/_jsx(TouchableOpacity, {
14
+ style: [styles.button, {
15
+ borderColor: premiumColor
16
+ }],
17
+ onPress: () => onPress && onPress('active-offers'),
18
+ children: /*#__PURE__*/_jsxs(View, {
19
+ style: {
20
+ flexDirection: 'row',
21
+ alignItems: 'center'
22
+ },
23
+ children: [/*#__PURE__*/_jsx(Text, {
24
+ style: [styles.buttonText, {
25
+ color: premiumColor
26
+ }],
27
+ children: "Active Offers"
28
+ }), activeCount > 0 && /*#__PURE__*/_jsx(View, {
29
+ style: styles.activeCountContainer,
30
+ children: /*#__PURE__*/_jsx(Text, {
31
+ style: styles.activeCountText,
32
+ children: activeCount > 99 ? '99+' : activeCount
33
+ })
34
+ })]
35
+ })
36
+ });
37
+ };
38
+ const styles = StyleSheet.create({
39
+ button: {
40
+ borderRadius: 42,
41
+ paddingHorizontal: 16,
42
+ paddingVertical: 8,
43
+ height: 40,
44
+ justifyContent: 'center',
45
+ alignItems: 'center',
46
+ marginHorizontal: 16,
47
+ marginBottom: 16,
48
+ borderWidth: 2
49
+ },
50
+ buttonText: {
51
+ fontSize: 14,
52
+ fontWeight: 'bold'
53
+ },
54
+ activeCountContainer: {
55
+ marginLeft: 8,
56
+ width: 18,
57
+ height: 18,
58
+ backgroundColor: '#FF554A',
59
+ alignItems: 'center',
60
+ justifyContent: 'center',
61
+ borderRadius: 9
62
+ },
63
+ activeCountText: {
64
+ color: 'white',
65
+ fontSize: 10,
66
+ fontWeight: 'bold'
67
+ }
68
+ });
69
+ export default ActiveOffersButton;
70
+ //# sourceMappingURL=active_offers_button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","TouchableOpacity","Text","StyleSheet","View","jsx","_jsx","jsxs","_jsxs","ActiveOffersButton","premiumColor","activeCount","onPress","style","styles","button","borderColor","children","flexDirection","alignItems","buttonText","color","activeCountContainer","activeCountText","create","borderRadius","paddingHorizontal","paddingVertical","height","justifyContent","marginHorizontal","marginBottom","borderWidth","fontSize","fontWeight","marginLeft","width","backgroundColor"],"sourceRoot":"../../../../../../src","sources":["acmo/modules/dashboard/components/active_offers_button.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,gBAAgB,EAAEC,IAAI,EAAEC,UAAU,EAAEC,IAAI,QAAS,cAAc;AACxE;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAQA,MAAMC,kBAAkD,GAAGA,CAAC;EAAEC,YAAY;EAAEC,WAAW;EAAEC;AAAQ,CAAC,KAAK;EACrG;EACA,oBACEN,IAAA,CAACL,gBAAgB;IACfY,KAAK,EAAE,CAACC,MAAM,CAACC,MAAM,EAAE;MAAEC,WAAW,EAAEN;IA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YAAY,EAAE;EAChB,CAAC;EACDF,eAAe,EAAE;IACfF,KAAK,EAAE,OAAO;IACdY,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAEF,eAAezB,kBAAkB","ignoreList":[]}
@@ -15,21 +15,18 @@ const CustomCard = ({
15
15
  const styles = StyleSheet.create({
16
16
  card: {
17
17
  backgroundColor: 'white',
18
- borderTopLeftRadius: 20,
19
- borderTopRightRadius: 20,
20
- borderBottomLeftRadius: 14,
21
- borderBottomRightRadius: 14,
18
+ borderRadius: 16,
22
19
  paddingTop: 6,
23
20
  paddingBottom: 5,
24
21
  shadowColor: '#000',
22
+ alignSelf: 'center',
25
23
  shadowOffset: {
26
- width: 4,
27
- height: 4
24
+ width: 0,
25
+ height: 2
28
26
  },
29
- shadowOpacity: 0.2,
30
- shadowRadius: 4,
31
- elevation: 4,
32
- alignSelf: 'center'
27
+ shadowOpacity: 0.24,
28
+ shadowRadius: 3.5,
29
+ elevation: 4
33
30
  }
34
31
  });
35
32
  export default CustomCard;
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","StyleSheet","jsx","_jsx","CustomCard","children","style","styles","card","create","backgroundColor","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","paddingTop","paddingBottom","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","alignSelf"],"sourceRoot":"../../../../../../src","sources":["acmo/modules/dashboard/components/custom_card.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAA0B,OAAO;AAC7C,SAASC,IAAI,EAAEC,UAAU,QAAwB,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAOhE,MAAMC,UAAqC,GAAGA,CAAC;EAAEC,QAAQ;EAAEC;AAAM,CAAC,KAAK;EACrE,oBAAOH,IAAA,CAACH,IAAI;IAACM,KAAK,EAAE,CAACC,MAAM,CAACC,IAAI,EAAEF,KAAK,CAAE;IAAAD,QAAA,EAAEA;EAAQ,CAAO,CAAC;AAC7D,CAAC;AAED,MAAME,MAAM,GAAGN,UAAU,CAACQ,MAAM,CAAC;EAC/BD,IAAI,EAAE;IACJE,eAAe,EAAE,OAAO;IACxBC,mBAAmB,EAAE,EAAE;IACvBC,oBAAoB,EAAE,EAAE;IACxBC,sBAAsB,EAAE,EAAE;IAC1BC,uBAAuB,EAAE,EAAE;IAC3BC,UAAU,EAAE,CAAC;IACbC,aAAa,EAAE,CAAC;IAChBC,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MAAEC,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCC,aAAa,EAAE,GAAG;IAClBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE,CAAC;IACZC,SAAS,EAAE;EACb;AACF,CAAC,CAAC;AAEF,eAAepB,UAAU","ignoreList":[]}
1
+ {"version":3,"names":["React","View","StyleSheet","jsx","_jsx","CustomCard","children","style","styles","card","create","backgroundColor","borderRadius","paddingTop","paddingBottom","shadowColor","alignSelf","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation"],"sourceRoot":"../../../../../../src","sources":["acmo/modules/dashboard/components/custom_card.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAA0B,OAAO;AAC7C,SAASC,IAAI,EAAEC,UAAU,QAAwB,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAOhE,MAAMC,UAAqC,GAAGA,CAAC;EAAEC,QAAQ;EAAEC;AAAM,CAAC,KAAK;EACrE,oBAAOH,IAAA,CAACH,IAAI;IAACM,KAAK,EAAE,CAACC,MAAM,CAACC,IAAI,EAAEF,KAAK,CAAE;IAAAD,QAAA,EAAEA;EAAQ,CAAO,CAAC;AAC7D,CAAC;AAED,MAAME,MAAM,GAAGN,UAAU,CAACQ,MAAM,CAAC;EAC/BD,IAAI,EAAE;IACJE,eAAe,EAAE,OAAO;IACxBC,YAAY,EAAE,EAAE;IAChBC,UAAU,EAAE,CAAC;IACbC,aAAa,EAAE,CAAC;IAChBC,WAAW,EAAE,MAAM;IACnBC,SAAS,EAAE,QAAQ;IACnBC,YAAY,EAAE;MAAEC,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCC,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE,GAAG;IACjBC,SAAS,EAAE;EACb;AACF,CAAC,CAAC;AAEF,eAAejB,UAAU","ignoreList":[]}
@@ -0,0 +1,135 @@
1
+ "use strict";
2
+
3
+ import React, { useRef, useState, useEffect } from 'react';
4
+ import { View, Animated, StyleSheet } from 'react-native';
5
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
+ const AcmoScrollPager = ({
7
+ totalPages,
8
+ delayInMillis = 5000,
9
+ content,
10
+ viewportFraction = 0.92,
11
+ scaleFactor = 0.94,
12
+ spacing = 2,
13
+ indicatorStyle,
14
+ activeIndicatorColor = 'red',
15
+ inactiveIndicatorColor = 'lightgray'
16
+ }) => {
17
+ const scrollX = useRef(new Animated.Value(0)).current;
18
+ const scrollViewRef = useRef(null);
19
+ const [currentPage, setCurrentPage] = useState(0);
20
+ const [containerWidth, setContainerWidth] = useState(null);
21
+ const intervalRef = useRef(null);
22
+ const onContainerLayout = e => {
23
+ const {
24
+ width
25
+ } = e.nativeEvent.layout;
26
+ if (width !== containerWidth) setContainerWidth(width);
27
+ };
28
+ useEffect(() => {
29
+ if (!containerWidth) return;
30
+ const itemWidth = containerWidth * viewportFraction;
31
+ const offset = itemWidth + spacing;
32
+ intervalRef.current = setInterval(() => {
33
+ const next = (currentPage + 1) % totalPages;
34
+ setCurrentPage(next);
35
+ scrollViewRef.current.scrollTo({
36
+ x: next * offset,
37
+ animated: true
38
+ });
39
+ }, delayInMillis);
40
+ return () => {
41
+ if (intervalRef.current) clearInterval(intervalRef.current);
42
+ };
43
+ }, [containerWidth, currentPage, delayInMillis, totalPages, viewportFraction, spacing]);
44
+ const handleScroll = Animated.event([{
45
+ nativeEvent: {
46
+ contentOffset: {
47
+ x: scrollX
48
+ }
49
+ }
50
+ }], {
51
+ useNativeDriver: true,
52
+ listener: event => {
53
+ if (!containerWidth) return;
54
+ const offset = containerWidth * viewportFraction + spacing;
55
+ const index = Math.round(event.nativeEvent.contentOffset.x / offset);
56
+ setCurrentPage(index);
57
+ }
58
+ });
59
+ const renderIndicators = () => /*#__PURE__*/_jsx(View, {
60
+ style: [styles.indicatorContainer, indicatorStyle],
61
+ children: Array.from({
62
+ length: totalPages
63
+ }, (_, i) => /*#__PURE__*/_jsx(View, {
64
+ style: [styles.indicator, {
65
+ backgroundColor: i === currentPage ? activeIndicatorColor : inactiveIndicatorColor
66
+ }]
67
+ }, i))
68
+ });
69
+ if (!containerWidth) {
70
+ return /*#__PURE__*/_jsx(View, {
71
+ onLayout: onContainerLayout,
72
+ style: {
73
+ width: '100%'
74
+ }
75
+ });
76
+ }
77
+ const itemWidth = containerWidth * viewportFraction;
78
+ const itemOffset = itemWidth + spacing;
79
+ const sidePadding = (containerWidth - itemWidth - 16) / 2;
80
+ return /*#__PURE__*/_jsxs(View, {
81
+ onLayout: onContainerLayout,
82
+ style: {
83
+ width: '100%',
84
+ alignItems: 'center'
85
+ },
86
+ children: [/*#__PURE__*/_jsx(Animated.ScrollView, {
87
+ ref: scrollViewRef,
88
+ horizontal: true,
89
+ pagingEnabled: false,
90
+ snapToInterval: itemOffset,
91
+ decelerationRate: "fast",
92
+ showsHorizontalScrollIndicator: false,
93
+ scrollEventThrottle: 16,
94
+ onScroll: handleScroll,
95
+ contentContainerStyle: {
96
+ paddingHorizontal: sidePadding
97
+ },
98
+ children: Array.from({
99
+ length: totalPages
100
+ }, (_, i) => {
101
+ const inputRange = [itemOffset * (i - 1), itemOffset * i, itemOffset * (i + 1)];
102
+ const scale = scrollX.interpolate({
103
+ inputRange,
104
+ outputRange: [scaleFactor, 1, scaleFactor],
105
+ extrapolate: 'clamp'
106
+ });
107
+ return /*#__PURE__*/_jsx(Animated.View, {
108
+ style: {
109
+ width: itemWidth,
110
+ transform: [{
111
+ scale
112
+ }]
113
+ },
114
+ children: content(i)
115
+ }, i);
116
+ })
117
+ }), renderIndicators()]
118
+ });
119
+ };
120
+ const styles = StyleSheet.create({
121
+ indicatorContainer: {
122
+ flexDirection: 'row',
123
+ justifyContent: 'center',
124
+ marginTop: 6,
125
+ marginBottom: 8
126
+ },
127
+ indicator: {
128
+ width: 8,
129
+ height: 8,
130
+ borderRadius: 4,
131
+ marginHorizontal: 4
132
+ }
133
+ });
134
+ export default AcmoScrollPager;
135
+ //# sourceMappingURL=custom_scroller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useRef","useState","useEffect","View","Animated","StyleSheet","jsx","_jsx","jsxs","_jsxs","AcmoScrollPager","totalPages","delayInMillis","content","viewportFraction","scaleFactor","spacing","indicatorStyle","activeIndicatorColor","inactiveIndicatorColor","scrollX","Value","current","scrollViewRef","currentPage","setCurrentPage","containerWidth","setContainerWidth","intervalRef","onContainerLayout","e","width","nativeEvent","layout","itemWidth","offset","setInterval","next","scrollTo","x","animated","clearInterval","handleScroll","event","contentOffset","useNativeDriver","listener","index","Math","round","renderIndicators","style","styles","indicatorContainer","children","Array","from","length","_","i","indicator","backgroundColor","onLayout","itemOffset","sidePadding","alignItems","ScrollView","ref","horizontal","pagingEnabled","snapToInterval","decelerationRate","showsHorizontalScrollIndicator","scrollEventThrottle","onScroll","contentContainerStyle","paddingHorizontal","inputRange","scale","interpolate","outputRange","extrapolate","transform","create","flexDirection","justifyContent","marginTop","marginBottom","height","borderRadius","marginHorizontal"],"sourceRoot":"../../../../../../src","sources":["acmo/modules/dashboard/components/custom_scroller.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,MAAM,EAAEC,QAAQ,EAAEC,SAAS,QAAQ,OAAO;AAC1D,SACEC,IAAI,EACJC,QAAQ,EACRC,UAAU,QAIL,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAetB,MAAMC,eAAqC,GAAGA,CAA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AK,EAAEG,SAAS;YAChBgD,SAAS,EAAE,CAAC;cAAEJ;YAAM,CAAC;UACvB,CAAE;UAAAxB,QAAA,EAEDzC,OAAO,CAAC8C,CAAC;QAAC,GANNA,CAOQ,CAAC;MAEpB,CAAC;IAAC,CACiB,CAAC,EACrBT,gBAAgB,CAAC,CAAC;EAAA,CACf,CAAC;AAEX,CAAC;AAED,MAAME,MAAM,GAAG/C,UAAU,CAAC8E,MAAM,CAAC;EAC/B9B,kBAAkB,EAAE;IAClB+B,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,QAAQ;IACxBC,SAAS,EAAE,CAAC;IACZC,YAAY,EAAE;EAChB,CAAC;EACD3B,SAAS,EAAE;IACT7B,KAAK,EAAE,CAAC;IACRyD,MAAM,EAAE,CAAC;IACTC,YAAY,EAAE,CAAC;IACfC,gBAAgB,EAAE;EACpB;AACF,CAAC,CAAC;AAEF,eAAehF,eAAe","ignoreList":[]}
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+
3
+ import React, { useEffect, useRef } from 'react';
4
+ import { View, Animated, StyleSheet, Dimensions } from 'react-native';
5
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
+ const SCREEN_WIDTH = Dimensions.get('window').width;
7
+ const Shimmer = ({
8
+ width = '100%',
9
+ shimmerHeight: height = 16,
10
+ style,
11
+ duration = 1500
12
+ }) => {
13
+ const translateX = useRef(new Animated.Value(-1)).current;
14
+ useEffect(() => {
15
+ const animation = Animated.loop(Animated.timing(translateX, {
16
+ toValue: 1,
17
+ duration,
18
+ useNativeDriver: true
19
+ }));
20
+ animation.start();
21
+ return () => animation.stop();
22
+ }, [translateX, duration]);
23
+ const translateXInterpolate = translateX.interpolate({
24
+ inputRange: [-1, 1],
25
+ outputRange: [-SCREEN_WIDTH, SCREEN_WIDTH]
26
+ });
27
+ return /*#__PURE__*/_jsxs(View, {
28
+ style: [styles.container, {
29
+ width
30
+ }, style],
31
+ children: [/*#__PURE__*/_jsx(View, {
32
+ style: [styles.shimmerBackground, {
33
+ height
34
+ }]
35
+ }), /*#__PURE__*/_jsx(Animated.View, {
36
+ style: [styles.shimmerOverlay, {
37
+ width: SCREEN_WIDTH,
38
+ height,
39
+ transform: [{
40
+ translateX: translateXInterpolate
41
+ }]
42
+ }]
43
+ })]
44
+ });
45
+ };
46
+ const styles = StyleSheet.create({
47
+ container: {
48
+ overflow: 'hidden',
49
+ backgroundColor: '#e1e1e1',
50
+ borderRadius: 4
51
+ },
52
+ shimmerBackground: {
53
+ flex: 1,
54
+ backgroundColor: '#d3d3d3'
55
+ },
56
+ shimmerOverlay: {
57
+ position: 'absolute',
58
+ top: 0,
59
+ left: 0,
60
+ backgroundColor: 'rgba(255,255,255,0.5)',
61
+ opacity: 0.4,
62
+ borderRadius: 4
63
+ }
64
+ });
65
+ export default Shimmer;
66
+ //# sourceMappingURL=custom_shimmer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useEffect","useRef","View","Animated","StyleSheet","Dimensions","jsx","_jsx","jsxs","_jsxs","SCREEN_WIDTH","get","width","Shimmer","shimmerHeight","height","style","duration","translateX","Value","current","animation","loop","timing","toValue","useNativeDriver","start","stop","translateXInterpolate","interpolate","inputRange","outputRange","styles","container","children","shimmerBackground","shimmerOverlay","transform","create","overflow","backgroundColor","borderRadius","flex","position","top","left","opacity"],"sourceRoot":"../../../../../../src","sources":["acmo/modules/dashboard/components/custom_shimmer.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAChD,SAASC,IAAI,EAAEC,QAAQ,EAAEC,UAAU,EAAEC,UAAU,QAA6D,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAS3H,MAAMC,YAAY,GAAGL,UAAU,CAACM,GAAG,CAAC,QAAQ,CAAC,CAACC,KAAK;AAEnD,MAAMC,OAA+B,GAAGA,CAAC;EACvCD,KAAK,GAAG,MAAM;EACdE,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GAAG5B,UAAU,CAACkC,MAAM,CAAC;EAC/BL,SAAS,EAAE;IACTM,QAAQ,EAAE,QAAQ;IAClBC,eAAe,EAAE,SAAS;IAC1BC,YAAY,EAAE;EAChB,CAAC;EACDN,iBAAiB,EAAE;IACjBO,IAAI,EAAE,CAAC;IACPF,eAAe,EAAE;EACnB,CAAC;EACDJ,cAAc,EAAE;IACdO,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE,CAAC;IACPL,eAAe,EAAE,uBAAuB;IACxCM,OAAO,EAAE,GAAG;IACZL,YAAY,EAAE;EAChB;AACF,CAAC,CAAC;AAEF,eAAe5B,OAAO","ignoreList":[]}
@@ -0,0 +1,257 @@
1
+ "use strict";
2
+
3
+ import numeral from 'numeral';
4
+ import React, { useState } from 'react';
5
+ import { View, Text, Image, StyleSheet, TouchableOpacity, ActivityIndicator } from 'react-native';
6
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
+ const AcmoOfferCard = ({
8
+ item,
9
+ onButtonClick,
10
+ currencySaleModel,
11
+ premiumColor,
12
+ isLoading,
13
+ onTap
14
+ }) => {
15
+ const [loading, setLoading] = useState(isLoading);
16
+ const bonusMultiplier = currencySaleModel?.multiplier ?? 1;
17
+ const itemHeight = 132;
18
+ const handleClick = async () => {
19
+ if (loading) return;
20
+ setLoading(true);
21
+ await onButtonClick();
22
+ setLoading(false);
23
+ };
24
+ return /*#__PURE__*/_jsx(TouchableOpacity, {
25
+ activeOpacity: 0.9,
26
+ style: styles.container,
27
+ onPress: () => {
28
+ if (!loading && onTap) onTap();
29
+ },
30
+ children: /*#__PURE__*/_jsxs(View, {
31
+ style: styles.cardShadow,
32
+ children: [/*#__PURE__*/_jsxs(View, {
33
+ style: [styles.imageContainer, {
34
+ height: itemHeight
35
+ }],
36
+ children: [/*#__PURE__*/_jsx(Image, {
37
+ source: {
38
+ uri: item.creative.creativePacks[0]?.creatives[0]?.fileUrl || ''
39
+ },
40
+ style: styles.image
41
+ }), item.premium && /*#__PURE__*/_jsx(View, {
42
+ style: styles.diamondIcon,
43
+ children: /*#__PURE__*/_jsx(Image, {
44
+ style: {
45
+ width: 12,
46
+ height: 12,
47
+ objectFit: 'contain',
48
+ tintColor: 'white'
49
+ },
50
+ source: require('../../../../assets/images/diamond.png')
51
+ })
52
+ })]
53
+ }), /*#__PURE__*/_jsxs(View, {
54
+ style: styles.detailCard,
55
+ children: [/*#__PURE__*/_jsxs(View, {
56
+ style: styles.header,
57
+ children: [/*#__PURE__*/_jsx(Image, {
58
+ source: {
59
+ uri: item.app.thumbnail
60
+ },
61
+ style: styles.appIcon
62
+ }), /*#__PURE__*/_jsx(Text, {
63
+ style: styles.title,
64
+ children: item.app.title
65
+ }), /*#__PURE__*/_jsxs(View, {
66
+ style: styles.payoutSection,
67
+ children: [currencySaleModel?.multiplier && /*#__PURE__*/_jsx(Text, {
68
+ style: styles.strikePayout,
69
+ children: numeral(item.campaignPayout.totalPlayablePayoutConverted).format("0.00a").toUpperCase()
70
+ }), /*#__PURE__*/_jsxs(View, {
71
+ style: styles.payoutRow,
72
+ children: [/*#__PURE__*/_jsx(Image, {
73
+ source: {
74
+ uri: item.currency.adUnitCurrencyIcon
75
+ },
76
+ style: styles.currencyIcon
77
+ }), /*#__PURE__*/_jsx(Text, {
78
+ style: styles.payoutText,
79
+ children: numeral(item.campaignPayout.totalPlayablePayoutConverted * bonusMultiplier).format("0.00a").toUpperCase()
80
+ })]
81
+ })]
82
+ }), /*#__PURE__*/_jsx(TouchableOpacity, {
83
+ onPress: onTap,
84
+ disabled: loading,
85
+ children: /*#__PURE__*/_jsx(Image, {
86
+ source: require('../../../../assets/images/info_icon.png'),
87
+ style: styles.infoIcon
88
+ })
89
+ })]
90
+ }), /*#__PURE__*/_jsx(TouchableOpacity, {
91
+ style: [styles.button, loading && styles.buttonDisabled, {
92
+ backgroundColor: loading ? '#888' : premiumColor || '#1C90DF'
93
+ }],
94
+ onPress: handleClick,
95
+ disabled: loading,
96
+ children: loading ? /*#__PURE__*/_jsx(ActivityIndicator, {
97
+ color: "white"
98
+ }) : /*#__PURE__*/_jsx(Text, {
99
+ style: styles.buttonText,
100
+ children: "Play Now"
101
+ })
102
+ })]
103
+ }), currencySaleModel?.multiplier && /*#__PURE__*/_jsx(View, {
104
+ style: [styles.bonusBadge, {
105
+ backgroundColor: `${premiumColor}` || '#1C90DF'
106
+ }],
107
+ children: /*#__PURE__*/_jsxs(Text, {
108
+ style: styles.bonusText,
109
+ children: [currencySaleModel?.multiplier.toFixed(1), "x Bonus"]
110
+ })
111
+ }), currencySaleModel?.multiplier && /*#__PURE__*/_jsx(View, {
112
+ style: [styles.trianlge, {
113
+ backgroundColor: `${premiumColor}cc` || '#1C90DF'
114
+ }]
115
+ })]
116
+ })
117
+ }, item.campaignId);
118
+ };
119
+ const styles = StyleSheet.create({
120
+ container: {
121
+ margin: 16,
122
+ width: "100%"
123
+ },
124
+ cardShadow: {
125
+ borderRadius: 16,
126
+ backgroundColor: 'white',
127
+ shadowColor: 'black',
128
+ shadowOffset: {
129
+ width: 0,
130
+ height: 16
131
+ },
132
+ shadowOpacity: 0.06,
133
+ shadowRadius: 18,
134
+ elevation: 4
135
+ },
136
+ imageContainer: {
137
+ borderTopLeftRadius: 16,
138
+ borderTopRightRadius: 16,
139
+ overflow: 'hidden'
140
+ },
141
+ image: {
142
+ width: '100%',
143
+ height: '100%',
144
+ resizeMode: 'cover'
145
+ },
146
+ diamondIcon: {
147
+ position: 'absolute',
148
+ top: 16,
149
+ right: 16,
150
+ backgroundColor: '#1E2020DD',
151
+ width: 28,
152
+ height: 28,
153
+ borderRadius: 8,
154
+ justifyContent: 'center',
155
+ alignItems: 'center'
156
+ },
157
+ diamondText: {
158
+ color: 'white',
159
+ fontSize: 14
160
+ },
161
+ detailCard: {
162
+ padding: 16
163
+ },
164
+ header: {
165
+ flexDirection: 'row',
166
+ justifyContent: 'space-between',
167
+ alignItems: 'center'
168
+ },
169
+ appIcon: {
170
+ width: 38,
171
+ height: 38,
172
+ borderRadius: 8,
173
+ marginRight: 8
174
+ },
175
+ title: {
176
+ flex: 1,
177
+ fontWeight: '600',
178
+ fontSize: 14
179
+ },
180
+ payoutSection: {
181
+ alignItems: 'flex-end'
182
+ },
183
+ strikePayout: {
184
+ textDecorationLine: 'line-through',
185
+ color: '#454646',
186
+ fontSize: 12
187
+ },
188
+ payoutRow: {
189
+ flexDirection: 'row',
190
+ alignItems: 'center'
191
+ },
192
+ currencyIcon: {
193
+ width: 16,
194
+ height: 16,
195
+ marginRight: 4
196
+ },
197
+ payoutText: {
198
+ fontWeight: '700',
199
+ fontSize: 14
200
+ },
201
+ infoIcon: {
202
+ width: 16,
203
+ height: 16,
204
+ marginLeft: 8
205
+ },
206
+ button: {
207
+ marginTop: 12,
208
+ height: 42,
209
+ borderRadius: 8,
210
+ justifyContent: 'center',
211
+ alignItems: 'center'
212
+ },
213
+ buttonDisabled: {
214
+ backgroundColor: '#e0e2e7'
215
+ },
216
+ buttonText: {
217
+ color: 'white',
218
+ fontWeight: '600',
219
+ fontSize: 14
220
+ },
221
+ bonusBadge: {
222
+ position: 'absolute',
223
+ top: 16,
224
+ left: -6,
225
+ paddingVertical: 8,
226
+ paddingHorizontal: 14,
227
+ borderTopRightRadius: 100,
228
+ borderTopLeftRadius: 10,
229
+ borderBottomRightRadius: 100,
230
+ shadowColor: 'black',
231
+ shadowOffset: {
232
+ width: 0,
233
+ height: 8
234
+ },
235
+ shadowOpacity: 0.3,
236
+ shadowRadius: 10,
237
+ backgroundColor: 'transparent'
238
+ },
239
+ trianlge: {
240
+ position: 'absolute',
241
+ top: 46.6,
242
+ left: -7.4,
243
+ zIndex: -10,
244
+ width: 20,
245
+ height: 10,
246
+ transform: [{
247
+ rotate: '65deg'
248
+ }]
249
+ },
250
+ bonusText: {
251
+ color: 'white',
252
+ fontWeight: '700',
253
+ fontSize: 12
254
+ }
255
+ });
256
+ export default AcmoOfferCard;
257
+ //# sourceMappingURL=offer_card.js.map