@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.
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/tyradssdk/TyradsSdkModule.kt +21 -4
- package/ios/Tyrads/InitModel.swift +3 -0
- package/ios/Tyrads/Tyrads.swift +106 -191
- package/ios/Tyrads/WebViewController.swift +171 -0
- package/ios/Tyrads/helpers/device_details.swift +58 -0
- package/ios/TyradsSdk.mm +7 -1
- package/ios/TyradsSdk.swift +42 -27
- package/lib/commonjs/acmo/core/helpers/launcher.js +20 -0
- package/lib/commonjs/acmo/core/helpers/launcher.js.map +1 -0
- package/lib/commonjs/acmo/modules/dashboard/components/active_offers_button.js +76 -0
- package/lib/commonjs/acmo/modules/dashboard/components/active_offers_button.js.map +1 -0
- package/lib/commonjs/acmo/modules/dashboard/components/custom_card.js +7 -10
- package/lib/commonjs/acmo/modules/dashboard/components/custom_card.js.map +1 -1
- package/lib/commonjs/acmo/modules/dashboard/components/custom_scroller.js +141 -0
- package/lib/commonjs/acmo/modules/dashboard/components/custom_scroller.js.map +1 -0
- package/lib/commonjs/acmo/{core/marquee.js → modules/dashboard/components/custom_shimmer.js} +46 -34
- package/lib/commonjs/acmo/modules/dashboard/components/custom_shimmer.js.map +1 -0
- package/lib/commonjs/acmo/modules/dashboard/components/offer_card.js +264 -0
- package/lib/commonjs/acmo/modules/dashboard/components/offer_card.js.map +1 -0
- package/lib/commonjs/acmo/modules/dashboard/components/offer_list_item.js +197 -0
- package/lib/commonjs/acmo/modules/dashboard/components/offer_list_item.js.map +1 -0
- package/lib/commonjs/acmo/modules/dashboard/components/premium_empty_widget.js +83 -0
- package/lib/commonjs/acmo/modules/dashboard/components/premium_empty_widget.js.map +1 -0
- package/lib/commonjs/acmo/modules/dashboard/components/premium_header.js +12 -10
- package/lib/commonjs/acmo/modules/dashboard/components/premium_header.js.map +1 -1
- package/lib/commonjs/acmo/modules/dashboard/components/premium_loading.js +118 -0
- package/lib/commonjs/acmo/modules/dashboard/components/premium_loading.js.map +1 -0
- package/lib/commonjs/acmo/modules/dashboard/repository.js +108 -32
- package/lib/commonjs/acmo/modules/dashboard/repository.js.map +1 -1
- package/lib/commonjs/acmo/modules/dashboard/top_offers.js +70 -63
- package/lib/commonjs/acmo/modules/dashboard/top_offers.js.map +1 -1
- package/lib/commonjs/assets/images/angle_up.png +0 -0
- package/lib/commonjs/assets/images/diamond.png +0 -0
- package/lib/commonjs/assets/images/info.png +0 -0
- package/lib/commonjs/assets/images/info_icon.png +0 -0
- package/lib/commonjs/assets/images/premium-emptybg.jpeg +0 -0
- package/lib/commonjs/assets/images/rank_1.png +0 -0
- package/lib/commonjs/assets/images/rank_2.png +0 -0
- package/lib/commonjs/assets/images/rank_3.png +0 -0
- package/lib/commonjs/assets/images/rank_4.png +0 -0
- package/lib/commonjs/assets/images/rank_5.png +0 -0
- package/lib/commonjs/index.js +11 -11
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/acmo/core/helpers/launcher.js +15 -0
- package/lib/module/acmo/core/helpers/launcher.js.map +1 -0
- package/lib/module/acmo/modules/dashboard/components/active_offers_button.js +70 -0
- package/lib/module/acmo/modules/dashboard/components/active_offers_button.js.map +1 -0
- package/lib/module/acmo/modules/dashboard/components/custom_card.js +7 -10
- package/lib/module/acmo/modules/dashboard/components/custom_card.js.map +1 -1
- package/lib/module/acmo/modules/dashboard/components/custom_scroller.js +135 -0
- package/lib/module/acmo/modules/dashboard/components/custom_scroller.js.map +1 -0
- package/lib/module/acmo/modules/dashboard/components/custom_shimmer.js +66 -0
- package/lib/module/acmo/modules/dashboard/components/custom_shimmer.js.map +1 -0
- package/lib/module/acmo/modules/dashboard/components/offer_card.js +257 -0
- package/lib/module/acmo/modules/dashboard/components/offer_card.js.map +1 -0
- package/lib/module/acmo/modules/dashboard/components/offer_list_item.js +191 -0
- package/lib/module/acmo/modules/dashboard/components/offer_list_item.js.map +1 -0
- package/lib/module/acmo/modules/dashboard/components/premium_empty_widget.js +78 -0
- package/lib/module/acmo/modules/dashboard/components/premium_empty_widget.js.map +1 -0
- package/lib/module/acmo/modules/dashboard/components/premium_header.js +12 -10
- package/lib/module/acmo/modules/dashboard/components/premium_header.js.map +1 -1
- package/lib/module/acmo/modules/dashboard/components/premium_loading.js +113 -0
- package/lib/module/acmo/modules/dashboard/components/premium_loading.js.map +1 -0
- package/lib/module/acmo/modules/dashboard/repository.js +105 -30
- package/lib/module/acmo/modules/dashboard/repository.js.map +1 -1
- package/lib/module/acmo/modules/dashboard/top_offers.js +71 -64
- package/lib/module/acmo/modules/dashboard/top_offers.js.map +1 -1
- package/lib/module/assets/images/angle_up.png +0 -0
- package/lib/module/assets/images/diamond.png +0 -0
- package/lib/module/assets/images/info.png +0 -0
- package/lib/module/assets/images/info_icon.png +0 -0
- package/lib/module/assets/images/premium-emptybg.jpeg +0 -0
- package/lib/module/assets/images/rank_1.png +0 -0
- package/lib/module/assets/images/rank_2.png +0 -0
- package/lib/module/assets/images/rank_3.png +0 -0
- package/lib/module/assets/images/rank_4.png +0 -0
- package/lib/module/assets/images/rank_5.png +0 -0
- package/lib/module/index.js +11 -11
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/commonjs/src/acmo/core/helpers/launcher.d.ts +3 -0
- package/lib/typescript/commonjs/src/acmo/core/helpers/launcher.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/core/storage/storage.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/active_offers_button.d.ts +9 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/active_offers_button.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_card.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_scroller.d.ts +17 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_scroller.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_shimmer.d.ts +11 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_shimmer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_card.d.ts +12 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_card.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_list_item.d.ts +15 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_list_item.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_empty_widget.d.ts +7 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_empty_widget.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_loading.d.ts +9 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_loading.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/repository.d.ts +2 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/repository.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/top_offers.d.ts +8 -7
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/top_offers.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +4 -6
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/acmo/core/helpers/launcher.d.ts +3 -0
- package/lib/typescript/module/src/acmo/core/helpers/launcher.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/core/storage/storage.d.ts.map +1 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/components/active_offers_button.d.ts +9 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/active_offers_button.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_card.d.ts.map +1 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_scroller.d.ts +17 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_scroller.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_shimmer.d.ts +11 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_shimmer.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_card.d.ts +12 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_card.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_list_item.d.ts +15 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_list_item.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_empty_widget.d.ts +7 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_empty_widget.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_loading.d.ts +9 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_loading.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/repository.d.ts +2 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/repository.d.ts.map +1 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/top_offers.d.ts +8 -7
- package/lib/typescript/module/src/acmo/modules/dashboard/top_offers.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +4 -6
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/package.json +3 -2
- package/readme.md +8 -8
- package/src/acmo/core/helpers/launcher.ts +14 -0
- package/src/acmo/core/types/types.d.ts +11 -13
- package/src/acmo/modules/dashboard/components/active_offers_button.tsx +61 -0
- package/src/acmo/modules/dashboard/components/custom_card.tsx +5 -8
- package/src/acmo/modules/dashboard/components/custom_scroller.tsx +164 -0
- package/src/acmo/modules/dashboard/components/custom_shimmer.tsx +75 -0
- package/src/acmo/modules/dashboard/components/offer_card.tsx +248 -0
- package/src/acmo/modules/dashboard/components/offer_list_item.tsx +225 -0
- package/src/acmo/modules/dashboard/components/premium_empty_widget.tsx +76 -0
- package/src/acmo/modules/dashboard/components/premium_header.tsx +8 -8
- package/src/acmo/modules/dashboard/components/premium_loading.tsx +78 -0
- package/src/acmo/modules/dashboard/repository.ts +121 -46
- package/src/acmo/modules/dashboard/top_offers.tsx +89 -52
- package/src/assets/images/angle_up.png +0 -0
- package/src/assets/images/diamond.png +0 -0
- package/src/assets/images/info.png +0 -0
- package/src/assets/images/info_icon.png +0 -0
- package/src/assets/images/premium-emptybg.jpeg +0 -0
- package/src/assets/images/rank_1.png +0 -0
- package/src/assets/images/rank_2.png +0 -0
- package/src/assets/images/rank_3.png +0 -0
- package/src/assets/images/rank_4.png +0 -0
- package/src/assets/images/rank_5.png +0 -0
- package/src/index.tsx +15 -18
- package/lib/commonjs/acmo/core/marquee.js.map +0 -1
- package/lib/commonjs/acmo/modules/dashboard/components/auto_scroller.js +0 -87
- package/lib/commonjs/acmo/modules/dashboard/components/auto_scroller.js.map +0 -1
- package/lib/commonjs/acmo/modules/dashboard/components/my_games_button.js +0 -48
- package/lib/commonjs/acmo/modules/dashboard/components/my_games_button.js.map +0 -1
- package/lib/commonjs/acmo/modules/dashboard/components/offer_info_section.js +0 -158
- package/lib/commonjs/acmo/modules/dashboard/components/offer_info_section.js.map +0 -1
- package/lib/commonjs/acmo/modules/dashboard/components/premium_option_1.js +0 -180
- package/lib/commonjs/acmo/modules/dashboard/components/premium_option_1.js.map +0 -1
- package/lib/commonjs/acmo/modules/dashboard/components/premium_option_2.js +0 -102
- package/lib/commonjs/acmo/modules/dashboard/components/premium_option_2.js.map +0 -1
- package/lib/commonjs/acmo/modules/dashboard/components/premium_option_3.js +0 -41
- package/lib/commonjs/acmo/modules/dashboard/components/premium_option_3.js.map +0 -1
- package/lib/commonjs/acmo/modules/dashboard/components/premium_option_4.js +0 -214
- package/lib/commonjs/acmo/modules/dashboard/components/premium_option_4.js.map +0 -1
- package/lib/module/acmo/core/marquee.js +0 -54
- package/lib/module/acmo/core/marquee.js.map +0 -1
- package/lib/module/acmo/modules/dashboard/components/auto_scroller.js +0 -81
- package/lib/module/acmo/modules/dashboard/components/auto_scroller.js.map +0 -1
- package/lib/module/acmo/modules/dashboard/components/my_games_button.js +0 -43
- package/lib/module/acmo/modules/dashboard/components/my_games_button.js.map +0 -1
- package/lib/module/acmo/modules/dashboard/components/offer_info_section.js +0 -153
- package/lib/module/acmo/modules/dashboard/components/offer_info_section.js.map +0 -1
- package/lib/module/acmo/modules/dashboard/components/premium_option_1.js +0 -174
- package/lib/module/acmo/modules/dashboard/components/premium_option_1.js.map +0 -1
- package/lib/module/acmo/modules/dashboard/components/premium_option_2.js +0 -97
- package/lib/module/acmo/modules/dashboard/components/premium_option_2.js.map +0 -1
- package/lib/module/acmo/modules/dashboard/components/premium_option_3.js +0 -36
- package/lib/module/acmo/modules/dashboard/components/premium_option_3.js.map +0 -1
- package/lib/module/acmo/modules/dashboard/components/premium_option_4.js +0 -209
- package/lib/module/acmo/modules/dashboard/components/premium_option_4.js.map +0 -1
- package/lib/typescript/commonjs/src/acmo/core/marquee.d.ts +0 -11
- package/lib/typescript/commonjs/src/acmo/core/marquee.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/auto_scroller.d.ts +0 -10
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/auto_scroller.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/my_games_button.d.ts +0 -8
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/my_games_button.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_info_section.d.ts +0 -11
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_info_section.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_1.d.ts +0 -9
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_1.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_2.d.ts +0 -9
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_2.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_3.d.ts +0 -9
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_3.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_4.d.ts +0 -9
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_4.d.ts.map +0 -1
- package/lib/typescript/module/src/acmo/core/marquee.d.ts +0 -11
- package/lib/typescript/module/src/acmo/core/marquee.d.ts.map +0 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/components/auto_scroller.d.ts +0 -10
- package/lib/typescript/module/src/acmo/modules/dashboard/components/auto_scroller.d.ts.map +0 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/components/my_games_button.d.ts +0 -8
- package/lib/typescript/module/src/acmo/modules/dashboard/components/my_games_button.d.ts.map +0 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_info_section.d.ts +0 -11
- package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_info_section.d.ts.map +0 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_1.d.ts +0 -9
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_1.d.ts.map +0 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_2.d.ts +0 -9
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_2.d.ts.map +0 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_3.d.ts +0 -9
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_3.d.ts.map +0 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_4.d.ts +0 -9
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_4.d.ts.map +0 -1
- package/src/acmo/core/marquee.tsx +0 -62
- package/src/acmo/modules/dashboard/components/auto_scroller.tsx +0 -85
- package/src/acmo/modules/dashboard/components/my_games_button.tsx +0 -40
- package/src/acmo/modules/dashboard/components/offer_info_section.tsx +0 -139
- package/src/acmo/modules/dashboard/components/premium_option_1.tsx +0 -163
- package/src/acmo/modules/dashboard/components/premium_option_2.tsx +0 -100
- package/src/acmo/modules/dashboard/components/premium_option_3.tsx +0 -42
- package/src/acmo/modules/dashboard/components/premium_option_4.tsx +0 -185
@@ -1,153 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
import React from 'react';
|
4
|
-
import { Dimensions, Image, StyleSheet, Text, TouchableOpacity, View } from "react-native";
|
5
|
-
import numeral from 'numeral';
|
6
|
-
import TextTicker from "react-native-text-ticker";
|
7
|
-
import { useTranslation } from "react-i18next";
|
8
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
9
|
-
const {
|
10
|
-
width
|
11
|
-
} = Dimensions.get('window');
|
12
|
-
const OfferInfoSection = ({
|
13
|
-
details,
|
14
|
-
premiumColor,
|
15
|
-
style,
|
16
|
-
onButtonPress
|
17
|
-
}) => {
|
18
|
-
const {
|
19
|
-
t
|
20
|
-
} = useTranslation();
|
21
|
-
return /*#__PURE__*/_jsx(View, {
|
22
|
-
style: [styles.infoContainer, style, {
|
23
|
-
backgroundColor: premiumColor || '#1C90DF'
|
24
|
-
}],
|
25
|
-
children: /*#__PURE__*/_jsxs(View, {
|
26
|
-
style: styles.infoRow,
|
27
|
-
children: [/*#__PURE__*/_jsxs(View, {
|
28
|
-
style: styles.leftInfo,
|
29
|
-
children: [/*#__PURE__*/_jsx(Image, {
|
30
|
-
style: styles.gameIcon,
|
31
|
-
source: {
|
32
|
-
uri: details.thumbnail
|
33
|
-
},
|
34
|
-
resizeMode: "cover"
|
35
|
-
}), /*#__PURE__*/_jsxs(View, {
|
36
|
-
style: styles.gameDetails,
|
37
|
-
children: [details.title.length > 20 ? /*#__PURE__*/_jsx(View, {
|
38
|
-
style: {
|
39
|
-
overflow: 'hidden'
|
40
|
-
},
|
41
|
-
children: /*#__PURE__*/_jsx(TextTicker, {
|
42
|
-
style: styles.gameTitle,
|
43
|
-
duration: 3000,
|
44
|
-
loop: true,
|
45
|
-
bounce: true,
|
46
|
-
repeatSpacer: 50,
|
47
|
-
marqueeDelay: 1000,
|
48
|
-
children: details.title
|
49
|
-
})
|
50
|
-
}) : /*#__PURE__*/_jsx(Text, {
|
51
|
-
style: styles.gameTitle,
|
52
|
-
numberOfLines: 1,
|
53
|
-
ellipsizeMode: "tail",
|
54
|
-
children: details.title
|
55
|
-
}), /*#__PURE__*/_jsxs(View, {
|
56
|
-
style: styles.rewardDetails,
|
57
|
-
children: [/*#__PURE__*/_jsx(Image, {
|
58
|
-
source: {
|
59
|
-
uri: details.currency.adUnitCurrencyIcon
|
60
|
-
},
|
61
|
-
resizeMode: "contain",
|
62
|
-
style: styles.coinIcon
|
63
|
-
}), /*#__PURE__*/_jsx(Text, {
|
64
|
-
style: styles.points,
|
65
|
-
children: numeral(details.points).format("0.00a").toUpperCase()
|
66
|
-
}), /*#__PURE__*/_jsxs(Text, {
|
67
|
-
style: styles.points,
|
68
|
-
children: ['', details.currency.adUnitCurrencyName]
|
69
|
-
}), /*#__PURE__*/_jsxs(Text, {
|
70
|
-
style: styles.rewards,
|
71
|
-
children: [' ', details.rewards, " ", t('dashboard.rewards', {
|
72
|
-
count: details.rewards
|
73
|
-
})]
|
74
|
-
})]
|
75
|
-
})]
|
76
|
-
})]
|
77
|
-
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
78
|
-
onPress: onButtonPress,
|
79
|
-
style: styles.playButton,
|
80
|
-
children: /*#__PURE__*/_jsx(Text, {
|
81
|
-
style: [styles.playButtonText, {
|
82
|
-
color: premiumColor || '#1C90DF'
|
83
|
-
}],
|
84
|
-
children: t('dashboard.play_button')
|
85
|
-
})
|
86
|
-
})]
|
87
|
-
})
|
88
|
-
});
|
89
|
-
};
|
90
|
-
const styles = StyleSheet.create({
|
91
|
-
infoContainer: {
|
92
|
-
width: width,
|
93
|
-
paddingVertical: 8,
|
94
|
-
paddingHorizontal: 16
|
95
|
-
},
|
96
|
-
infoRow: {
|
97
|
-
flexDirection: 'row',
|
98
|
-
justifyContent: 'space-between',
|
99
|
-
alignItems: 'center',
|
100
|
-
width: '90%'
|
101
|
-
},
|
102
|
-
leftInfo: {
|
103
|
-
flexDirection: 'row',
|
104
|
-
alignItems: 'center',
|
105
|
-
width: '68%'
|
106
|
-
},
|
107
|
-
gameIcon: {
|
108
|
-
width: 50,
|
109
|
-
height: 50,
|
110
|
-
borderRadius: 8
|
111
|
-
},
|
112
|
-
gameDetails: {
|
113
|
-
marginLeft: 10
|
114
|
-
},
|
115
|
-
gameTitle: {
|
116
|
-
color: 'white',
|
117
|
-
fontSize: 14,
|
118
|
-
marginBottom: 4
|
119
|
-
},
|
120
|
-
rewardDetails: {
|
121
|
-
flexDirection: 'row',
|
122
|
-
marginTop: 4
|
123
|
-
},
|
124
|
-
coinIcon: {
|
125
|
-
width: 18,
|
126
|
-
height: 18
|
127
|
-
},
|
128
|
-
points: {
|
129
|
-
color: 'white',
|
130
|
-
fontSize: 12,
|
131
|
-
marginLeft: 4
|
132
|
-
},
|
133
|
-
rewards: {
|
134
|
-
color: 'lightgrey',
|
135
|
-
fontSize: 11,
|
136
|
-
fontStyle: 'italic'
|
137
|
-
},
|
138
|
-
playButton: {
|
139
|
-
paddingHorizontal: 12,
|
140
|
-
paddingVertical: 2,
|
141
|
-
height: 30,
|
142
|
-
borderRadius: 8,
|
143
|
-
backgroundColor: 'white',
|
144
|
-
alignItems: 'center',
|
145
|
-
justifyContent: 'center'
|
146
|
-
},
|
147
|
-
playButtonText: {
|
148
|
-
fontSize: 14,
|
149
|
-
fontWeight: 'bold'
|
150
|
-
}
|
151
|
-
});
|
152
|
-
export default OfferInfoSection;
|
153
|
-
//# sourceMappingURL=offer_info_section.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["React","Dimensions","Image","StyleSheet","Text","TouchableOpacity","View","numeral","TextTicker","useTranslation","jsx","_jsx","jsxs","_jsxs","width","get","OfferInfoSection","details","premiumColor","style","onButtonPress","t","styles","infoContainer","backgroundColor","children","infoRow","leftInfo","gameIcon","source","uri","thumbnail","resizeMode","gameDetails","title","length","overflow","gameTitle","duration","loop","bounce","repeatSpacer","marqueeDelay","numberOfLines","ellipsizeMode","rewardDetails","currency","adUnitCurrencyIcon","coinIcon","points","format","toUpperCase","adUnitCurrencyName","rewards","count","onPress","playButton","playButtonText","color","create","paddingVertical","paddingHorizontal","flexDirection","justifyContent","alignItems","height","borderRadius","marginLeft","fontSize","marginBottom","marginTop","fontStyle","fontWeight"],"sourceRoot":"../../../../../../src","sources":["acmo/modules/dashboard/components/offer_info_section.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,KAAK,EAAEC,UAAU,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,IAAI,QAAwB,cAAc;AAC1G,OAAOC,OAAO,MAAM,SAAS;AAC7B,OAAOC,UAAU,MAAM,0BAA0B;AACjD,SAASC,cAAc,QAAQ,eAAe;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE/C,MAAM;EAAEC;AAAM,CAAC,GAAGb,UAAU,CAACc,GAAG,CAAC,QAAQ,CAAC;AAS1C,MAAMC,gBAAiD,GAAGA,CAAC;EAAEC,OAAO;EAAEC,YAAY;EAAEC,KAAK;EAAEC;AAAc,CAAC,KAAK;EAC7G,MAAM;IAAEC;EAAE,CAAC,GAAGZ,cAAc,CAAC,CAAC;EAE9B,oBACEE,IAAA,CAACL,IAAI;IAACa,KAAK,EAAE,CAACG,MAAM,CAACC,aAAa,EAAEJ,KAAK,EAAE;MAAEK,eAAe,EAAEN,YAAY,IAAI;IAAU,CAAC,CAAE;IAAAO,QAAA,eACzFZ,KAAA,CAACP,IAAI;MAACa,KAAK,EAAEG,MAAM,CAACI,OAAQ;MAAAD,QAA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IACpBlD,KAAK,EAAE;EACT,CAAC;EACDc,QAAQ,EAAE;IACRd,KAAK,EAAE,EAAE;IACTmD,MAAM,EAAE,EAAE;IACVC,YAAY,EAAE;EAChB,CAAC;EACDjC,WAAW,EAAE;IACXkC,UAAU,EAAE;EACd,CAAC;EACD9B,SAAS,EAAE;IACTqB,KAAK,EAAE,OAAO;IACdU,QAAQ,EAAE,EAAE;IACZC,YAAY,EAAE;EAChB,CAAC;EACDxB,aAAa,EAAE;IACbiB,aAAa,EAAE,KAAK;IACpBQ,SAAS,EAAE;EACb,CAAC;EACDtB,QAAQ,EAAE;IACRlC,KAAK,EAAE,EAAE;IACTmD,MAAM,EAAE;EACV,CAAC;EACDhB,MAAM,EAAE;IACNS,KAAK,EAAE,OAAO;IACdU,QAAQ,EAAE,EAAE;IACZD,UAAU,EAAE;EACd,CAAC;EACDd,OAAO,EAAE;IACPK,KAAK,EAAE,WAAW;IAClBU,QAAQ,EAAE,EAAE;IACZG,SAAS,EAAE;EACb,CAAC;EACDf,UAAU,EAAE;IACVK,iBAAiB,EAAE,EAAE;IACrBD,eAAe,EAAE,CAAC;IAClBK,MAAM,EAAE,EAAE;IACVC,YAAY,EAAE,CAAC;IACf1C,eAAe,EAAE,OAAO;IACxBwC,UAAU,EAAE,QAAQ;IACpBD,cAAc,EAAE;EAClB,CAAC;EACDN,cAAc,EAAE;IACdW,QAAQ,EAAE,EAAE;IACZI,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAEF,eAAexD,gBAAgB","ignoreList":[]}
|
@@ -1,174 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
import React from 'react';
|
4
|
-
import numeral from 'numeral';
|
5
|
-
import { View, Text, Image, TouchableOpacity, StyleSheet } from 'react-native';
|
6
|
-
// import TextTicker from 'react-native-text-ticker';
|
7
|
-
import { useTranslation } from 'react-i18next';
|
8
|
-
import MarqueeText from "../../../core/marquee.js";
|
9
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
10
|
-
const PremiumOption1 = ({
|
11
|
-
data,
|
12
|
-
onCampaignPress,
|
13
|
-
premiumColor
|
14
|
-
}) => {
|
15
|
-
const {
|
16
|
-
t
|
17
|
-
} = useTranslation();
|
18
|
-
console.log("Prmium Color", premiumColor);
|
19
|
-
return /*#__PURE__*/_jsx(View, {
|
20
|
-
children: data.map((item, index) => /*#__PURE__*/_jsxs(TouchableOpacity, {
|
21
|
-
onPress: () => onCampaignPress && onCampaignPress(item.campaignId),
|
22
|
-
style: styles.itemContainer,
|
23
|
-
activeOpacity: 0.75,
|
24
|
-
children: [/*#__PURE__*/_jsxs(View, {
|
25
|
-
style: {
|
26
|
-
flexDirection: 'row',
|
27
|
-
flex: 8,
|
28
|
-
marginRight: 10
|
29
|
-
},
|
30
|
-
children: [/*#__PURE__*/_jsx(Image, {
|
31
|
-
source: {
|
32
|
-
uri: item.thumbnail
|
33
|
-
},
|
34
|
-
style: styles.thumbnail
|
35
|
-
}), /*#__PURE__*/_jsxs(View, {
|
36
|
-
style: styles.infoContainer,
|
37
|
-
children: [/*#__PURE__*/_jsx(View, {
|
38
|
-
style: {
|
39
|
-
width: '100%'
|
40
|
-
},
|
41
|
-
children: item.title.length > 25 ? /*#__PURE__*/_jsx(View, {
|
42
|
-
style: {
|
43
|
-
overflow: 'hidden'
|
44
|
-
},
|
45
|
-
children: /*#__PURE__*/_jsx(MarqueeText, {
|
46
|
-
text: item.title,
|
47
|
-
speed: 15,
|
48
|
-
repeat: 100,
|
49
|
-
style: styles.titleText
|
50
|
-
})
|
51
|
-
}) : /*#__PURE__*/_jsx(Text, {
|
52
|
-
numberOfLines: 1,
|
53
|
-
style: styles.titleText,
|
54
|
-
children: item.title
|
55
|
-
})
|
56
|
-
}), /*#__PURE__*/_jsxs(View, {
|
57
|
-
style: styles.infoRow,
|
58
|
-
children: [/*#__PURE__*/_jsx(View, {
|
59
|
-
style: [styles.rankContainer, {
|
60
|
-
backgroundColor: premiumColor || '#1C90DF'
|
61
|
-
}],
|
62
|
-
children: /*#__PURE__*/_jsx(Text, {
|
63
|
-
numberOfLines: 1,
|
64
|
-
style: styles.rankText,
|
65
|
-
adjustsFontSizeToFit: true,
|
66
|
-
children: t('dashboard.top_ranking', {
|
67
|
-
number: index + 1
|
68
|
-
})
|
69
|
-
})
|
70
|
-
}), /*#__PURE__*/_jsxs(View, {
|
71
|
-
style: styles.rewardDetails,
|
72
|
-
children: [/*#__PURE__*/_jsx(Image, {
|
73
|
-
source: {
|
74
|
-
uri: item.currency.adUnitCurrencyIcon
|
75
|
-
},
|
76
|
-
resizeMode: "contain",
|
77
|
-
style: styles.coinIcon
|
78
|
-
}), /*#__PURE__*/_jsx(Text, {
|
79
|
-
style: styles.points,
|
80
|
-
children: numeral(item.points).format("0.00a").toUpperCase()
|
81
|
-
}), /*#__PURE__*/_jsxs(Text, {
|
82
|
-
style: styles.points,
|
83
|
-
children: ['', item.currency.adUnitCurrencyName]
|
84
|
-
})]
|
85
|
-
})]
|
86
|
-
})]
|
87
|
-
})]
|
88
|
-
}), /*#__PURE__*/_jsx(View, {
|
89
|
-
style: [styles.playButton, {
|
90
|
-
backgroundColor: premiumColor || '#1C90DF'
|
91
|
-
}],
|
92
|
-
children: /*#__PURE__*/_jsx(Text, {
|
93
|
-
style: styles.playButtonText,
|
94
|
-
children: t('dashboard.play_button')
|
95
|
-
})
|
96
|
-
})]
|
97
|
-
}, index))
|
98
|
-
});
|
99
|
-
};
|
100
|
-
const styles = StyleSheet.create({
|
101
|
-
itemContainer: {
|
102
|
-
flexDirection: 'row',
|
103
|
-
flex: 1,
|
104
|
-
width: '100%',
|
105
|
-
justifyContent: 'space-between',
|
106
|
-
alignItems: 'center',
|
107
|
-
paddingHorizontal: 16,
|
108
|
-
paddingVertical: 8
|
109
|
-
},
|
110
|
-
thumbnail: {
|
111
|
-
height: 40,
|
112
|
-
width: 40,
|
113
|
-
borderRadius: 10
|
114
|
-
},
|
115
|
-
infoContainer: {
|
116
|
-
marginLeft: 8
|
117
|
-
},
|
118
|
-
titleText: {
|
119
|
-
fontSize: 14,
|
120
|
-
fontWeight: 'bold'
|
121
|
-
},
|
122
|
-
infoRow: {
|
123
|
-
flexDirection: 'row',
|
124
|
-
alignItems: 'center',
|
125
|
-
alignContent: 'center'
|
126
|
-
},
|
127
|
-
rankContainer: {
|
128
|
-
marginTop: 4,
|
129
|
-
borderRadius: 12,
|
130
|
-
paddingHorizontal: 4,
|
131
|
-
paddingVertical: 2,
|
132
|
-
width: 43,
|
133
|
-
alignItems: 'center'
|
134
|
-
},
|
135
|
-
rankText: {
|
136
|
-
fontSize: 10,
|
137
|
-
color: 'white',
|
138
|
-
fontWeight: 'bold'
|
139
|
-
},
|
140
|
-
rewardDetails: {
|
141
|
-
flexDirection: 'row',
|
142
|
-
alignItems: 'center',
|
143
|
-
marginTop: 4,
|
144
|
-
left: 4
|
145
|
-
},
|
146
|
-
coinIcon: {
|
147
|
-
width: 14,
|
148
|
-
height: 14
|
149
|
-
},
|
150
|
-
points: {
|
151
|
-
fontSize: 13,
|
152
|
-
marginLeft: 4,
|
153
|
-
fontWeight: '500'
|
154
|
-
},
|
155
|
-
rewards: {
|
156
|
-
fontSize: 10,
|
157
|
-
fontStyle: 'italic'
|
158
|
-
},
|
159
|
-
playButton: {
|
160
|
-
paddingHorizontal: 12,
|
161
|
-
paddingVertical: 5,
|
162
|
-
height: 30,
|
163
|
-
borderRadius: 8,
|
164
|
-
alignItems: 'center',
|
165
|
-
justifyContent: 'center'
|
166
|
-
},
|
167
|
-
playButtonText: {
|
168
|
-
fontSize: 14,
|
169
|
-
fontWeight: 'bold',
|
170
|
-
color: 'white'
|
171
|
-
}
|
172
|
-
});
|
173
|
-
export default PremiumOption1;
|
174
|
-
//# sourceMappingURL=premium_option_1.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["React","numeral","View","Text","Image","TouchableOpacity","StyleSheet","useTranslation","MarqueeText","jsx","_jsx","jsxs","_jsxs","PremiumOption1","data","onCampaignPress","premiumColor","t","console","log","children","map","item","index","onPress","campaignId","style","styles","itemContainer","activeOpacity","flexDirection","flex","marginRight","source","uri","thumbnail","infoContainer","width","title","length","overflow","text","speed","repeat","titleText","numberOfLines","infoRow","rankContainer","backgroundColor","rankText","adjustsFontSizeToFit","number","rewardDetails","currency","adUnitCurrencyIcon","resizeMode","coinIcon","points","format","toUpperCase","adUnitCurrencyName","playButton","playButtonText","create","justifyContent","alignItems","paddingHorizontal","paddingVertical","height","borderRadius","marginLeft","fontSize","fontWeight","alignContent","marginTop","color","left","rewards","fontStyle"],"sourceRoot":"../../../../../../src","sources":["acmo/modules/dashboard/components/premium_option_1.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,OAAO,MAAM,SAAS;AAC7B,SACEC,IAAI,EACJC,IAAI,EACJC,KAAK,EACLC,gBAAgB,EAChBC,UAAU,QACL,cAAc;AACrB;AACA,SAASC,cAAc,QAAQ,eAAe;AAC9C,OAAOC,WAAW,MAAM,0BAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAQhD,MAAMC,cAA6C,GAAGA,CAAC;EAAEC,IAAI;EAAEC,eAAe;EAAEC;AAAa,CAAC,KAAK;EACjG,MAAM;IAAEC;EAAE,CAAC,GAAGV,cAAc,CAAC,CAAC;EAC9BW,OAAO,CAACC,GAAG,CAAC,cAAc,EAAEH,YAAY,CAAC;EAEzC,oBACEN,IAAA,CAACR,IAAI;IAAAkB,QAAA,EACFN,IAAI,CAACO,GAAG,CAAC,CAACC,IAAI,EAAEC,KAAK,kBACpBX,KAAA,CAACP,gBAAgB;MAEfmB,OAAO,EAAEA,CAAA,KAAMT,eAAe,IAAIA,eAAe,CAACO,IAAI,CAACG,UAAU,CAAE;MACnEC,KAAK,EAAEC,MAAM,CAACC,aAAc;MAC5BC,aAAa,EAAE,IAAK;MAAAT,QAAA,gBAEpBR,KAAA,CAACV,IAAI;QAACwB,K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rBC,eAAe,EAAE,CAAC;IAClBC,MAAM,EAAE,EAAE;IACVC,YAAY,EAAE,CAAC;IACfJ,UAAU,EAAE,QAAQ;IACpBD,cAAc,EAAE;EAClB,CAAC;EACDF,cAAc,EAAE;IACdS,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,MAAM;IAClBG,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAEF,eAAe9D,cAAc","ignoreList":[]}
|
@@ -1,97 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
import React from 'react';
|
4
|
-
import { View, Text, Image, StyleSheet, Dimensions, TouchableOpacity } from 'react-native';
|
5
|
-
import AutoScrollPagerWithIndicators from "./auto_scroller.js";
|
6
|
-
import OfferInfoSection from "./offer_info_section.js";
|
7
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
8
|
-
const {
|
9
|
-
width
|
10
|
-
} = Dimensions.get('window');
|
11
|
-
const PremiumOption2 = ({
|
12
|
-
data,
|
13
|
-
onCampaignPress,
|
14
|
-
premiumColor
|
15
|
-
}) => {
|
16
|
-
return /*#__PURE__*/_jsx(AutoScrollPagerWithIndicators, {
|
17
|
-
totalPages: data.length,
|
18
|
-
premiumColor: premiumColor,
|
19
|
-
content: page => /*#__PURE__*/_jsx(TouchableOpacity, {
|
20
|
-
onPress: () => onCampaignPress && onCampaignPress(data[page]?.campaignId ?? 0),
|
21
|
-
activeOpacity: 0.8,
|
22
|
-
children: data[page] && /*#__PURE__*/_jsxs(_Fragment, {
|
23
|
-
children: [/*#__PURE__*/_jsx(OfferBanner, {
|
24
|
-
details: data[page],
|
25
|
-
index: page,
|
26
|
-
premiumColor: premiumColor
|
27
|
-
}), /*#__PURE__*/_jsx(OfferInfoSection, {
|
28
|
-
details: data[page],
|
29
|
-
premiumColor: premiumColor,
|
30
|
-
onButtonPress: () => onCampaignPress && onCampaignPress(data[page]?.campaignId ?? 0)
|
31
|
-
})]
|
32
|
-
})
|
33
|
-
}, page)
|
34
|
-
});
|
35
|
-
};
|
36
|
-
const OfferBanner = ({
|
37
|
-
details,
|
38
|
-
index,
|
39
|
-
premiumColor
|
40
|
-
}) => {
|
41
|
-
return /*#__PURE__*/_jsxs(View, {
|
42
|
-
style: styles.bannerContainer,
|
43
|
-
children: [/*#__PURE__*/_jsx(Image, {
|
44
|
-
style: styles.bannerImage,
|
45
|
-
source: {
|
46
|
-
uri: details.fileUrl
|
47
|
-
},
|
48
|
-
resizeMode: "cover"
|
49
|
-
}), /*#__PURE__*/_jsxs(View, {
|
50
|
-
style: styles.starContainer,
|
51
|
-
children: [/*#__PURE__*/_jsx(Image, {
|
52
|
-
source: require('../../../../assets/images/premium_star.png'),
|
53
|
-
style: [styles.starIcon, {
|
54
|
-
tintColor: premiumColor || '#1C90DF'
|
55
|
-
}]
|
56
|
-
}), /*#__PURE__*/_jsx(Text, {
|
57
|
-
style: styles.index,
|
58
|
-
numberOfLines: 1,
|
59
|
-
ellipsizeMode: "tail",
|
60
|
-
children: index + 1
|
61
|
-
})]
|
62
|
-
})]
|
63
|
-
});
|
64
|
-
};
|
65
|
-
const styles = StyleSheet.create({
|
66
|
-
bannerContainer: {
|
67
|
-
width: width,
|
68
|
-
height: 180
|
69
|
-
},
|
70
|
-
bannerImage: {
|
71
|
-
flex: 1
|
72
|
-
},
|
73
|
-
starContainer: {
|
74
|
-
position: 'absolute',
|
75
|
-
top: 10,
|
76
|
-
left: 10,
|
77
|
-
backgroundColor: 'rgba(0,0,0,0)'
|
78
|
-
},
|
79
|
-
starIcon: {
|
80
|
-
width: 30,
|
81
|
-
height: 30
|
82
|
-
},
|
83
|
-
index: {
|
84
|
-
position: 'absolute',
|
85
|
-
top: 0,
|
86
|
-
left: 0,
|
87
|
-
right: 0,
|
88
|
-
bottom: 0,
|
89
|
-
textAlign: 'center',
|
90
|
-
textAlignVertical: 'center',
|
91
|
-
color: 'white',
|
92
|
-
fontSize: 14,
|
93
|
-
fontWeight: 'bold'
|
94
|
-
}
|
95
|
-
});
|
96
|
-
export default PremiumOption2;
|
97
|
-
//# sourceMappingURL=premium_option_2.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["React","View","Text","Image","StyleSheet","Dimensions","TouchableOpacity","AutoScrollPagerWithIndicators","OfferInfoSection","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","width","get","PremiumOption2","data","onCampaignPress","premiumColor","totalPages","length","content","page","onPress","campaignId","activeOpacity","children","OfferBanner","details","index","onButtonPress","style","styles","bannerContainer","bannerImage","source","uri","fileUrl","resizeMode","starContainer","require","starIcon","tintColor","numberOfLines","ellipsizeMode","create","height","flex","position","top","left","backgroundColor","right","bottom","textAlign","textAlignVertical","color","fontSize","fontWeight"],"sourceRoot":"../../../../../../src","sources":["acmo/modules/dashboard/components/premium_option_2.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,IAAI,EACJC,IAAI,EACJC,KAAK,EACLC,UAAU,EACVC,UAAU,EACVC,gBAAgB,QACX,cAAc;AACrB,OAAOC,6BAA6B,MAAM,oBAAiB;AAC3D,OAAOC,gBAAgB,MAAM,yBAAsB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA,EAAAC,IAAA,IAAAC,KAAA;AAEpD,MAAM;EAAEC;AAAM,CAAC,GAAGV,UAAU,CAACW,GAAG,CAAC,QAAQ,CAAC;AAQ1C,MAAMC,cAA6C,GAAGA,CAAC;EAAEC,IAAI;EAAEC,eAAe;EAAEC;AAAa,CAAC,KAAK;EACjG,oBACEV,IAAA,CAACH,6BAA6B;IAC5Bc,UAAU,EAAEH,IAAI,CAACI,MAAO;IACxBF,YAAY,EAAEA,YAAa;IAC3BG,OAAO,EAAGC,IAAI,iBACZd,IAAA,CAACJ,gBAAgB;MAEfmB,OAAO,EAAEA,CAAA,KAAMN,eAAe,IAAIA,eAAe,CAACD,IAAI,CAACM,IAAI,CAAC,EAAEE,UAAU,IA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AE;QAACC,aAAa,EAAC,MAAM;QAAAlB,QAAA,EAC9DG,KAAK,GAAG;MAAC,CACN,CAAC;IAAA,CACH,CAAC;EAAA,CACH,CAAC;AAEX,CAAC;AAED,MAAMG,MAAM,GAAG9B,UAAU,CAAC2C,MAAM,CAAC;EAC/BZ,eAAe,EAAE;IACfpB,KAAK,EAAEA,KAAK;IACZiC,MAAM,EAAE;EACV,CAAC;EACDZ,WAAW,EAAE;IACXa,IAAI,EAAE;EACR,CAAC;EACDR,aAAa,EAAE;IACbS,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,EAAE;IACPC,IAAI,EAAE,EAAE;IACRC,eAAe,EAAE;EACnB,CAAC;EACDV,QAAQ,EAAE;IACR5B,KAAK,EAAE,EAAE;IACTiC,MAAM,EAAE;EACV,CAAC;EACDjB,KAAK,EAAE;IACLmB,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE,CAAC;IACPE,KAAK,EAAE,CAAC;IACRC,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;AAEF,eAAe3C,cAAc","ignoreList":[]}
|
@@ -1,36 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
import React from 'react';
|
4
|
-
import { TouchableOpacity, View } from 'react-native';
|
5
|
-
import AutoScrollPagerWithIndicators from "./auto_scroller.js";
|
6
|
-
import OfferInfoSection from "./offer_info_section.js";
|
7
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
8
|
-
const PremiumOption3 = ({
|
9
|
-
data,
|
10
|
-
onCampaignPress,
|
11
|
-
premiumColor
|
12
|
-
}) => {
|
13
|
-
return /*#__PURE__*/_jsx(AutoScrollPagerWithIndicators, {
|
14
|
-
totalPages: data.length,
|
15
|
-
premiumColor: premiumColor,
|
16
|
-
content: page => /*#__PURE__*/_jsx(TouchableOpacity, {
|
17
|
-
style: {
|
18
|
-
flex: 1
|
19
|
-
},
|
20
|
-
activeOpacity: 0.8,
|
21
|
-
onPress: () => onCampaignPress && onCampaignPress(data[page]?.campaignId ?? 0),
|
22
|
-
children: /*#__PURE__*/_jsx(View, {
|
23
|
-
children: data[page] && /*#__PURE__*/_jsx(OfferInfoSection, {
|
24
|
-
details: data[page],
|
25
|
-
premiumColor: premiumColor,
|
26
|
-
style: {
|
27
|
-
paddingVertical: 23
|
28
|
-
},
|
29
|
-
onButtonPress: () => onCampaignPress && onCampaignPress(data[page]?.campaignId ?? 0)
|
30
|
-
})
|
31
|
-
})
|
32
|
-
}, page)
|
33
|
-
});
|
34
|
-
};
|
35
|
-
export default PremiumOption3;
|
36
|
-
//# sourceMappingURL=premium_option_3.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["React","TouchableOpacity","View","AutoScrollPagerWithIndicators","OfferInfoSection","jsx","_jsx","PremiumOption3","data","onCampaignPress","premiumColor","totalPages","length","content","page","style","flex","activeOpacity","onPress","campaignId","children","details","paddingVertical","onButtonPress"],"sourceRoot":"../../../../../../src","sources":["acmo/modules/dashboard/components/premium_option_3.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,gBAAgB,EAAEC,IAAI,QAAS,cAAc;AACtD,OAAOC,6BAA6B,MAAM,oBAAiB;AAC3D,OAAOC,gBAAgB,MAAM,yBAAsB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAQpD,MAAMC,cAA6C,GAAGA,CAAC;EAAEC,IAAI;EAAEC,eAAe;EAAEC;AAAa,CAAC,KAAK;EACjG,oBACEJ,IAAA,CAACH,6BAA6B;IAC5BQ,UAAU,EAAEH,IAAI,CAACI,MAAO;IACxBF,YAAY,EAAEA,YAAa;IAC3BG,OAAO,EAAGC,IAAI,iBACZR,IAAA,CAACL,gBAAgB;MAEfc,KAAK,EAAE;QAAEC,IAAI,EAAE;MAAE,CAAE;MACnBC,aAAa,EAAE,GAAI;MACnBC,OAAO,EAAEA,CAAA,KAAMT,eAAe,IAAIA,eAAe,CAACD,IAAI,CAACM,IAAI,CAAC,EAAEK,UAAU,IAAI,CAAC,CAAE;MAAAC,QAAA,eAE/Ed,IAAA,CAACJ,IAAI;QAAAkB,QAAA,EAEDZ,IAAI,CAACM,IAAI,CAAC,iBACRR,IAAA,CAACF,gBAAgB;UACfiB,OAAO,EAAEb,IAAI,CAACM,IAAI,CAAE;UACpBJ,YAAY,EAAEA,YAAa;UAC3BK,KAAK,EAAE;YAAEO,eAAe,EAAE;UAAG,CAAE;UAC/BC,aAAa,EAAEA,CAAA,KAAMd,eAAe,IAAIA,eAAe,CAACD,IAAI,CAACM,IAAI,CAAC,EAAEK,UAAU,IAAI,CAAC;QAAE,CACtF;MACF,CAEC;IAAC,GAhBFL,IAiBW;EAClB,CACH,CAAC;AAEN,CAAC;AAED,eAAeP,cAAc","ignoreList":[]}
|