@tyrads.com/tyrads-sdk 2.0.1 → 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/gradle.properties +1 -1
- package/android/src/main/java/com/tyradssdk/TyradsSdkModule.kt +27 -6
- package/ios/Tyrads/AcmoConfig.swift +3 -3
- package/ios/Tyrads/InitModel.swift +5 -2
- package/ios/Tyrads/Tyrads.swift +117 -186
- package/ios/Tyrads/WebViewController.swift +171 -0
- package/ios/Tyrads/helpers/aes_encryptor.swift +81 -0
- package/ios/Tyrads/helpers/device_details.swift +58 -0
- package/ios/TyradsSdk.mm +10 -2
- package/ios/TyradsSdk.swift +44 -29
- 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 +15 -16
- 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 +15 -16
- 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 +6 -8
- 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 +6 -8
- 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 +19 -23
- package/android/src/main/java/com/tyradssdk/TyradsSdkComposeViewManager.kt +0 -112
- 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 -181
- 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 -176
- 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 -156
- 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
@@ -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
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["numeral","React","useState","View","Text","Image","StyleSheet","TouchableOpacity","ActivityIndicator","jsx","_jsx","jsxs","_jsxs","AcmoOfferCard","item","onButtonClick","currencySaleModel","premiumColor","isLoading","onTap","loading","setLoading","bonusMultiplier","multiplier","itemHeight","handleClick","activeOpacity","style","styles","container","onPress","children","cardShadow","imageContainer","height","source","uri","creative","creativePacks","creatives","fileUrl","image","premium","diamondIcon","width","objectFit","tintColor","require","detailCard","header","app","thumbnail","appIcon","title","payoutSection","strikePayout","campaignPayout","totalPlayablePayoutConverted","format","toUpperCase","payoutRow","currency","adUnitCurrencyIcon","currencyIcon","payoutText","disabled","infoIcon","button","buttonDisabled","backgroundColor","color","buttonText","bonusBadge","bonusText","toFixed","trianlge","campaignId","create","margin","borderRadius","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","borderTopLeftRadius","borderTopRightRadius","overflow","resizeMode","position","top","right","justifyContent","alignItems","diamondText","fontSize","padding","flexDirection","marginRight","flex","fontWeight","textDecorationLine","marginLeft","marginTop","left","paddingVertical","paddingHorizontal","borderBottomRightRadius","zIndex","transform","rotate"],"sourceRoot":"../../../../../../src","sources":["acmo/modules/dashboard/components/offer_card.tsx"],"mappings":";;AAAA,OAAOA,OAAO,MAAM,SAAS;AAC7B,OAAOC,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SACEC,IAAI,EACJC,IAAI,EACJC,KAAK,EACLC,UAAU,EACVC,gBAAgB,EAChBC,iBAAiB,QACZ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAYtB,MAAMC,aAA8B,GAAGA,CAAC;EACtCC,IAAI;EACJC,aAAa;EACbC,iBAAiB;EACjBC,YAAY;EACZC,SAAS;EACTC;AACF,CAAC,KAAK;EACJ,MAAM,CAACC,OAAO,EAAEC,UAAU,CAAC,GAAGnB,QAAQ,CAAUgB,SAAS,CAAC;EAC1D,MAAMI,eAAe,GAAGN,iBAAiB,EAAE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AoB,EAAE,GAAG;IACzBD,mBAAmB,EAAE,EAAE;IACvBsB,uBAAuB,EAAE,GAAG;IAC5B3B,WAAW,EAAE,OAAO;IACpBC,YAAY,EAAE;MAAErC,KAAK,EAAE,CAAC;MAAEV,MAAM,EAAE;IAAE,CAAC;IACrCgD,aAAa,EAAE,GAAG;IAClBC,YAAY,EAAE,EAAE;IAChBd,eAAe,EAAE;EACnB,CAAC;EACDM,QAAQ,EAAE;IACRc,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,IAAI;IACTc,IAAI,EAAE,CAAC,GAAG;IACVI,MAAM,EAAE,CAAC,EAAE;IACXhE,KAAK,EAAE,EAAE;IACTV,MAAM,EAAE,EAAE;IACV2E,SAAS,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAQ,CAAC;EACjC,CAAC;EACDrC,SAAS,EAAE;IACTH,KAAK,EAAE,OAAO;IACd8B,UAAU,EAAE,KAAK;IACjBL,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC;AAEF,eAAelF,aAAa","ignoreList":[]}
|
@@ -0,0 +1,191 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
import React from 'react';
|
4
|
+
import { View, Text, TouchableOpacity, Image, StyleSheet, ActivityIndicator } from 'react-native';
|
5
|
+
import numeral from 'numeral';
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
7
|
+
const rankIcons = [require('../../../../assets/images/rank_1.png'), require('../../../../assets/images/rank_2.png'), require('../../../../assets/images/rank_3.png'), require('../../../../assets/images/rank_4.png'), require('../../../../assets/images/rank_5.png')];
|
8
|
+
export const AcmoOfferListItem = ({
|
9
|
+
offer,
|
10
|
+
currencySales,
|
11
|
+
onButtonTap,
|
12
|
+
onPress,
|
13
|
+
index,
|
14
|
+
colorPremium,
|
15
|
+
colorPremiumFg,
|
16
|
+
loadingIndex,
|
17
|
+
setLoadingIndex
|
18
|
+
}) => {
|
19
|
+
const bonusMultiplier = currencySales?.multiplier ?? 1;
|
20
|
+
const isLoading = loadingIndex === index;
|
21
|
+
const anyLoading = loadingIndex != null;
|
22
|
+
return /*#__PURE__*/_jsx(TouchableOpacity, {
|
23
|
+
disabled: anyLoading,
|
24
|
+
onPress: onPress,
|
25
|
+
style: styles.itemContainer,
|
26
|
+
activeOpacity: 0.75,
|
27
|
+
children: /*#__PURE__*/_jsxs(View, {
|
28
|
+
style: styles.container,
|
29
|
+
children: [/*#__PURE__*/_jsx(Image, {
|
30
|
+
source: rankIcons[index],
|
31
|
+
style: styles.rankIcon
|
32
|
+
}), /*#__PURE__*/_jsx(Image, {
|
33
|
+
source: {
|
34
|
+
uri: offer.app.thumbnail
|
35
|
+
},
|
36
|
+
style: styles.icon
|
37
|
+
}), /*#__PURE__*/_jsxs(View, {
|
38
|
+
style: styles.details,
|
39
|
+
children: [currencySales && /*#__PURE__*/_jsx(View, {
|
40
|
+
style: [styles.bonusBadge, {
|
41
|
+
backgroundColor: `${colorPremium}20`
|
42
|
+
}],
|
43
|
+
children: /*#__PURE__*/_jsxs(Text, {
|
44
|
+
style: [styles.bonusText, {
|
45
|
+
color: colorPremium
|
46
|
+
}],
|
47
|
+
children: [bonusMultiplier, "x BONUS"]
|
48
|
+
})
|
49
|
+
}), /*#__PURE__*/_jsx(Text, {
|
50
|
+
numberOfLines: 1,
|
51
|
+
style: styles.title,
|
52
|
+
ellipsizeMode: "tail",
|
53
|
+
children: offer.app.title
|
54
|
+
}), /*#__PURE__*/_jsxs(View, {
|
55
|
+
style: styles.payoutRow,
|
56
|
+
children: [currencySales && /*#__PURE__*/_jsx(Text, {
|
57
|
+
style: styles.strikeText,
|
58
|
+
children: numeral(offer.campaignPayout.totalPlayablePayoutConverted).format('0.00a')
|
59
|
+
}), /*#__PURE__*/_jsx(Image, {
|
60
|
+
source: {
|
61
|
+
uri: offer.currency.adUnitCurrencyIcon
|
62
|
+
},
|
63
|
+
style: styles.currencyIcon
|
64
|
+
}), /*#__PURE__*/_jsx(Text, {
|
65
|
+
style: styles.payoutText,
|
66
|
+
children: numeral(offer.campaignPayout.totalPlayablePayoutConverted * bonusMultiplier).format('0.00a')
|
67
|
+
})]
|
68
|
+
})]
|
69
|
+
}), /*#__PURE__*/_jsxs(TouchableOpacity, {
|
70
|
+
disabled: anyLoading,
|
71
|
+
style: [styles.button, {
|
72
|
+
backgroundColor: anyLoading ? '#e0e2e7' : colorPremium
|
73
|
+
}],
|
74
|
+
onPress: async () => {
|
75
|
+
setLoadingIndex(index);
|
76
|
+
await onButtonTap();
|
77
|
+
setLoadingIndex(null);
|
78
|
+
},
|
79
|
+
children: [isLoading ? /*#__PURE__*/_jsx(ActivityIndicator, {
|
80
|
+
size: "small",
|
81
|
+
color: "#a3a9b6"
|
82
|
+
}) : null, /*#__PURE__*/_jsx(Text, {
|
83
|
+
style: [styles.buttonText, {
|
84
|
+
color: anyLoading ? '#a3a9b6' : colorPremiumFg ?? '#fff',
|
85
|
+
marginLeft: isLoading ? 8 : 0
|
86
|
+
}],
|
87
|
+
children: "Play"
|
88
|
+
})]
|
89
|
+
})]
|
90
|
+
})
|
91
|
+
});
|
92
|
+
};
|
93
|
+
const styles = StyleSheet.create({
|
94
|
+
itemContainer: {
|
95
|
+
flexDirection: 'row',
|
96
|
+
flex: 1,
|
97
|
+
width: '100%',
|
98
|
+
justifyContent: 'space-between',
|
99
|
+
alignItems: 'center',
|
100
|
+
paddingHorizontal: 16,
|
101
|
+
paddingVertical: 8
|
102
|
+
},
|
103
|
+
container: {
|
104
|
+
flexDirection: 'row',
|
105
|
+
marginVertical: 2,
|
106
|
+
paddingHorizontal: 0,
|
107
|
+
width: '100%',
|
108
|
+
position: 'relative'
|
109
|
+
},
|
110
|
+
rankIcon: {
|
111
|
+
position: 'absolute',
|
112
|
+
zIndex: 99,
|
113
|
+
left: -10,
|
114
|
+
top: -8,
|
115
|
+
width: 24,
|
116
|
+
height: 24,
|
117
|
+
resizeMode: 'contain'
|
118
|
+
},
|
119
|
+
row: {
|
120
|
+
flexDirection: 'row',
|
121
|
+
alignItems: 'center',
|
122
|
+
backgroundColor: '#fff',
|
123
|
+
borderRadius: 8,
|
124
|
+
padding: 10,
|
125
|
+
elevation: 2
|
126
|
+
},
|
127
|
+
icon: {
|
128
|
+
width: 54,
|
129
|
+
height: 54,
|
130
|
+
borderRadius: 4,
|
131
|
+
marginRight: 10
|
132
|
+
},
|
133
|
+
details: {
|
134
|
+
flex: 1,
|
135
|
+
justifyContent: 'center'
|
136
|
+
},
|
137
|
+
bonusBadge: {
|
138
|
+
alignSelf: 'flex-start',
|
139
|
+
paddingHorizontal: 8,
|
140
|
+
paddingVertical: 2,
|
141
|
+
borderRadius: 16,
|
142
|
+
marginBottom: 4
|
143
|
+
},
|
144
|
+
bonusText: {
|
145
|
+
fontSize: 10,
|
146
|
+
fontWeight: '700'
|
147
|
+
},
|
148
|
+
title: {
|
149
|
+
fontSize: 12,
|
150
|
+
fontWeight: '500',
|
151
|
+
marginBottom: 4,
|
152
|
+
color: '#323434'
|
153
|
+
},
|
154
|
+
payoutRow: {
|
155
|
+
flexDirection: 'row',
|
156
|
+
alignItems: 'center',
|
157
|
+
gap: 10
|
158
|
+
},
|
159
|
+
strikeText: {
|
160
|
+
fontSize: 12,
|
161
|
+
textDecorationLine: 'line-through',
|
162
|
+
color: '#323434',
|
163
|
+
fontWeight: '300'
|
164
|
+
},
|
165
|
+
currencyIcon: {
|
166
|
+
width: 14,
|
167
|
+
height: 14,
|
168
|
+
marginHorizontal: 4
|
169
|
+
},
|
170
|
+
payoutText: {
|
171
|
+
fontSize: 12,
|
172
|
+
fontWeight: '700',
|
173
|
+
color: '#323434'
|
174
|
+
},
|
175
|
+
button: {
|
176
|
+
marginLeft: 4,
|
177
|
+
paddingHorizontal: 12,
|
178
|
+
height: 42,
|
179
|
+
minWidth: 75,
|
180
|
+
justifyContent: 'center',
|
181
|
+
alignItems: 'center',
|
182
|
+
borderRadius: 8,
|
183
|
+
flexDirection: 'row'
|
184
|
+
},
|
185
|
+
buttonText: {
|
186
|
+
fontSize: 14,
|
187
|
+
fontWeight: '600',
|
188
|
+
color: '#fff'
|
189
|
+
}
|
190
|
+
});
|
191
|
+
//# sourceMappingURL=offer_list_item.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["React","View","Text","TouchableOpacity","Image","StyleSheet","ActivityIndicator","numeral","jsx","_jsx","jsxs","_jsxs","rankIcons","require","AcmoOfferListItem","offer","currencySales","onButtonTap","onPress","index","colorPremium","colorPremiumFg","loadingIndex","setLoadingIndex","bonusMultiplier","multiplier","isLoading","anyLoading","disabled","style","styles","itemContainer","activeOpacity","children","container","source","rankIcon","uri","app","thumbnail","icon","details","bonusBadge","backgroundColor","bonusText","color","numberOfLines","title","ellipsizeMode","payoutRow","strikeText","campaignPayout","totalPlayablePayoutConverted","format","currency","adUnitCurrencyIcon","currencyIcon","payoutText","button","size","buttonText","marginLeft","create","flexDirection","flex","width","justifyContent","alignItems","paddingHorizontal","paddingVertical","marginVertical","position","zIndex","left","top","height","resizeMode","row","borderRadius","padding","elevation","marginRight","alignSelf","marginBottom","fontSize","fontWeight","gap","textDecorationLine","marginHorizontal","minWidth"],"sourceRoot":"../../../../../../src","sources":["acmo/modules/dashboard/components/offer_list_item.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,IAAI,EACJC,IAAI,EACJC,gBAAgB,EAChBC,KAAK,EACLC,UAAU,EACVC,iBAAiB,QACZ,cAAc;AACrB,OAAOC,OAAO,MAAM,SAAS;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAgB9B,MAAMC,SAAS,GAAG,CAChBC,OAAO,CAAC,sCAAsC,CAAC,EAC/CA,OAAO,CAAC,sCAAsC,CAAC,EAC/CA,OAAO,CAAC,sCAAsC,CAAC,EAC/CA,OAAO,CAAC,sCAAsC,CAAC,EAC/CA,OAAO,CAAC,sCAAsC,CAAC,CAChD;AAED,OAAO,MAAMC,iBAAkC,GA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EACT;AACF,CAAC,CAAC","ignoreList":[]}
|
@@ -0,0 +1,78 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
import React from 'react';
|
4
|
+
import { View, Text, TouchableOpacity, StyleSheet, ImageBackground } from 'react-native';
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
6
|
+
const PremiumEmptyView = ({
|
7
|
+
onContinue,
|
8
|
+
colorPremium
|
9
|
+
}) => {
|
10
|
+
return /*#__PURE__*/_jsx(View, {
|
11
|
+
style: styles.container,
|
12
|
+
children: /*#__PURE__*/_jsx(ImageBackground, {
|
13
|
+
source: require('../../../../assets/images/premium-emptybg.jpeg'),
|
14
|
+
style: styles.backgroundImage,
|
15
|
+
imageStyle: styles.imageBorderRadius,
|
16
|
+
children: /*#__PURE__*/_jsxs(View, {
|
17
|
+
style: styles.content,
|
18
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
19
|
+
style: [styles.title, {
|
20
|
+
color: 'white',
|
21
|
+
fontFamily: 'Poppins_600SemiBold'
|
22
|
+
}],
|
23
|
+
children: 'Keep Playing!\nExciting Rewards Await!'
|
24
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
25
|
+
style: [styles.button, {
|
26
|
+
backgroundColor: 'white'
|
27
|
+
}],
|
28
|
+
onPress: onContinue,
|
29
|
+
activeOpacity: 0.8,
|
30
|
+
children: /*#__PURE__*/_jsx(Text, {
|
31
|
+
style: [styles.buttonText, {
|
32
|
+
color: colorPremium ?? '#1C90DF',
|
33
|
+
fontWeight: 'bold',
|
34
|
+
fontSize: 12
|
35
|
+
}],
|
36
|
+
children: "Continue Playing"
|
37
|
+
})
|
38
|
+
})]
|
39
|
+
})
|
40
|
+
})
|
41
|
+
});
|
42
|
+
};
|
43
|
+
const styles = StyleSheet.create({
|
44
|
+
container: {
|
45
|
+
width: '100%'
|
46
|
+
},
|
47
|
+
backgroundImage: {
|
48
|
+
width: '100%',
|
49
|
+
borderRadius: 16,
|
50
|
+
overflow: 'hidden'
|
51
|
+
},
|
52
|
+
imageBorderRadius: {
|
53
|
+
borderRadius: 16
|
54
|
+
},
|
55
|
+
content: {
|
56
|
+
paddingVertical: 22,
|
57
|
+
paddingHorizontal: 30,
|
58
|
+
justifyContent: 'center',
|
59
|
+
alignItems: 'center'
|
60
|
+
},
|
61
|
+
title: {
|
62
|
+
textAlign: 'center',
|
63
|
+
fontWeight: '600',
|
64
|
+
marginBottom: 16
|
65
|
+
},
|
66
|
+
button: {
|
67
|
+
minWidth: '100%',
|
68
|
+
height: 34,
|
69
|
+
borderRadius: 8,
|
70
|
+
justifyContent: 'center',
|
71
|
+
alignItems: 'center'
|
72
|
+
},
|
73
|
+
buttonText: {
|
74
|
+
fontWeight: '600'
|
75
|
+
}
|
76
|
+
});
|
77
|
+
export default PremiumEmptyView;
|
78
|
+
//# sourceMappingURL=premium_empty_widget.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["React","View","Text","TouchableOpacity","StyleSheet","ImageBackground","jsx","_jsx","jsxs","_jsxs","PremiumEmptyView","onContinue","colorPremium","style","styles","container","children","source","require","backgroundImage","imageStyle","imageBorderRadius","content","title","color","fontFamily","button","backgroundColor","onPress","activeOpacity","buttonText","fontWeight","fontSize","create","width","borderRadius","overflow","paddingVertical","paddingHorizontal","justifyContent","alignItems","textAlign","marginBottom","minWidth","height"],"sourceRoot":"../../../../../../src","sources":["acmo/modules/dashboard/components/premium_empty_widget.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,UAAU,EAAEC,eAAe,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEzF,MAAMC,gBAA6E,GAAGA,CAAC;EAAEC,UAAU;EAAEC;AAAY,CAAC,KAAK;EAErH,oBACEL,IAAA,CAACN,IAAI;IAACY,KAAK,EAAEC,MAAM,C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rBC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd,CAAC;EACDjB,KAAK,EAAE;IACLkB,SAAS,EAAE,QAAQ;IACnBV,UAAU,EAAE,KAAK;IACjBW,YAAY,EAAE;EAChB,CAAC;EACDhB,MAAM,EAAE;IACNiB,QAAQ,EAAE,MAAM;IAChBC,MAAM,EAAE,EAAE;IACVT,YAAY,EAAE,CAAC;IACfI,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd,CAAC;EACDV,UAAU,EAAE;IACVC,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAEF,eAAerB,gBAAgB","ignoreList":[]}
|
@@ -17,19 +17,18 @@ const PremiumHeaderSection = ({
|
|
17
17
|
children: [/*#__PURE__*/_jsxs(View, {
|
18
18
|
style: styles.leftContainer,
|
19
19
|
children: [/*#__PURE__*/_jsx(View, {
|
20
|
-
style:
|
21
|
-
backgroundColor: premiumColor || '#1C90DF'
|
22
|
-
}],
|
20
|
+
style: styles.starContainer,
|
23
21
|
children: /*#__PURE__*/_jsx(Image, {
|
24
|
-
source: require('../../../../assets/images/
|
22
|
+
source: require('../../../../assets/images/diamond.png'),
|
25
23
|
style: [styles.starIcon, {
|
26
|
-
tintColor:
|
24
|
+
tintColor: premiumColor
|
27
25
|
}]
|
28
26
|
})
|
29
27
|
}), /*#__PURE__*/_jsx(Text, {
|
30
|
-
style: styles.headerText,
|
28
|
+
style: [styles.headerText, {
|
29
|
+
color: premiumColor
|
30
|
+
}],
|
31
31
|
numberOfLines: 1,
|
32
|
-
adjustsFontSizeToFit: true,
|
33
32
|
ellipsizeMode: "tail",
|
34
33
|
children: t('dashboard.suggested_offers')
|
35
34
|
})]
|
@@ -43,8 +42,11 @@ const PremiumHeaderSection = ({
|
|
43
42
|
numberOfLines: 1,
|
44
43
|
children: t('dashboard.more_offers')
|
45
44
|
}), /*#__PURE__*/_jsx(Image, {
|
46
|
-
source: require('../../../../assets/images/
|
45
|
+
source: require('../../../../assets/images/angle_up.png'),
|
47
46
|
style: {
|
47
|
+
transform: [{
|
48
|
+
rotate: '90deg'
|
49
|
+
}],
|
48
50
|
width: 11,
|
49
51
|
height: 11,
|
50
52
|
objectFit: 'contain',
|
@@ -68,7 +70,7 @@ const styles = StyleSheet.create({
|
|
68
70
|
justifyContent: 'space-between',
|
69
71
|
alignItems: 'center',
|
70
72
|
paddingHorizontal: 16,
|
71
|
-
|
73
|
+
paddingTop: 10
|
72
74
|
},
|
73
75
|
leftContainer: {
|
74
76
|
flexDirection: 'row',
|
@@ -81,7 +83,7 @@ const styles = StyleSheet.create({
|
|
81
83
|
},
|
82
84
|
headerText: {
|
83
85
|
marginLeft: 8,
|
84
|
-
fontSize:
|
86
|
+
fontSize: 14,
|
85
87
|
fontWeight: 'bold',
|
86
88
|
flex: 1
|
87
89
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["React","View","Text","Image","TouchableOpacity","StyleSheet","useTranslation","jsx","_jsx","jsxs","_jsxs","PremiumHeaderSection","showMore","premiumColor","onShowOffers","t","style","styles","headerContainer","children","leftContainer","starContainer","
|
1
|
+
{"version":3,"names":["React","View","Text","Image","TouchableOpacity","StyleSheet","useTranslation","jsx","_jsx","jsxs","_jsxs","PremiumHeaderSection","showMore","premiumColor","onShowOffers","t","style","styles","headerContainer","children","leftContainer","starContainer","source","require","starIcon","tintColor","headerText","color","numberOfLines","ellipsizeMode","rightContainer","onPress","moreOffersText","transform","rotate","width","height","objectFit","marginLeft","create","borderRadius","justifyContent","alignItems","flexDirection","paddingHorizontal","paddingTop","flex","fontSize","fontWeight"],"sourceRoot":"../../../../../../src","sources":["acmo/modules/dashboard/components/premium_header.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC,KAAK,EAAEC,gBAAgB,EAAEC,UAAU,QAAQ,cAAc;AAC9E,SAASC,cAAc,QAAQ,eAAe;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAA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