@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
@@ -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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;EACnB,CAAC;EACDE,UAAU,EAAE;IACVD,KAAK,EAAE,OAAO;IACd8B,UAAU,EAAE,KAAK;IACjBL,QAAQ,EAAE;EACZ,CAAC;EACDvB,UAAU,EAAE;IACViB,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,EAAE;IACPc,IAAI,EAAE,CAAC,CAAC;IACRC,eAAe,EAAE,CAAC;IAClBC,iBAAiB,EAAE,EAAE;IACrBpB,oBAAoB,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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AC;IACbO,iBAAiB,EAAE,EAAE;IACrBO,MAAM,EAAE,EAAE;IACVc,QAAQ,EAAE,EAAE;IACZvB,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBW,YAAY,EAAE,CAAC;IACff,aAAa,EAAE;EACjB,CAAC;EACDH,UAAU,EAAE;IACVwB,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBxC,KAAK,EAAE;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;A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C;EAC/BlB,SAAS,EAAE;IACTmB,KAAK,EAAE;EACT,CAAC;EACDf,eAAe,EAAE;IACfe,KAAK,EAAE,MAAM;IACbC,YAAY,EAAE,EAAE;IAChBC,QAAQ,EAAE;EACZ,CAAC;EACDf,iBAAiB,EAAE;IACjBc,YAAY,EAAE;EAChB,CAAC;EACDb,OAAO,EAAE;IACPe,eAAe,EAAE,EAAE;IACnBC,iBAAiB,EAAE,EAAE;IACrBC,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,EAAAC,IAAA,IAAAC,KAAA;AAQ/C,MAAMC,oBAAyD,GAAGA,CAAC;EAAEC,QAAQ,GAAG,IAAI;EAAEC,YAAY;EAAEC;AAAa,CAAC,KAAK;EACrH,MAAM;IAAEC;EAAE,CAAC,GAAGT,cAAc,CAAC,CAAC;EAC9B,oBACEI,KAAA,CAACT,IAAI;IAACe,KAAK,EAAEC,MAAM,CAACC,eAAgB;IAAAC,QAAA,gBAClCT,KAAA,CAACT,IAAI;MAACe,KAAK,EAAEC,MAAM,CAACG,aAAc;MAAAD,QAAA,gBAChCX,IAAA,CAACP,IAAI;QAACe,KAAK,EAAEC,MAAM,CAACI,aAAc;QAAAF,QAAA,eAChCX,IAAA,CAACL,KAAK;UACJmB,MAAM,EAAEC,OAAO,CAAC,uCAAuC,CAAE;UACzDP,KAAK,EAAE,CAACC,MAAM,CAACO,QAAQ,EAAE;YAAEC,SAAS,EAAEZ;UAAa,CAAC;QAAE,CACvD;MAAC,CACE,CAAC,eACPL,IAAA,CAACN,IAAI;QAACc,KAAK,EAAE,CAACC,MAAM,CAACS,UAAU,EAAE;UAAEC,KAAK,EAAEd;QAAa,CAAC,CAAE;QAACe,aAAa,EAAE,CAAE;QAACC,aAAa,EAAC,MAAM;QAAAV,QAAA,EAC9FJ,CAAC,CAAC,4BAA4B;MAAC,CAC5B,CAAC;IAAA,CACH,CAAC,EACNH,QAAQ,iBACPF,KAAA,CAACN,gBAAgB;MAACY,KAAK,EAAEC,MAAM,CAACa,cAAe;MAACC,OAAO,EAAEjB,YAAa;MAAAK,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Ac,EAAE;IACda,aAAa,EAAE,KAAK;IACpBD,UAAU,EAAE;EACd,CAAC;EACDV,cAAc,EAAE;IACde,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAEF,eAAerC,oBAAoB","ignoreList":[]}
|
@@ -0,0 +1,113 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
import React from 'react';
|
4
|
+
import { View, StyleSheet } from 'react-native';
|
5
|
+
import Shimmer from "./custom_shimmer.js";
|
6
|
+
import { PremiumWidgetStyles } from "../top_offers.js";
|
7
|
+
import CustomCard from "./custom_card.js";
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
9
|
+
const PremiumWidgetsLoading = ({
|
10
|
+
widgetStyle,
|
11
|
+
itemHeight
|
12
|
+
}) => {
|
13
|
+
return /*#__PURE__*/_jsxs(CustomCard, {
|
14
|
+
style: {
|
15
|
+
width: '100%',
|
16
|
+
paddingHorizontal: 16
|
17
|
+
},
|
18
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
19
|
+
style: styles.headerRow,
|
20
|
+
children: [/*#__PURE__*/_jsx(Shimmer, {
|
21
|
+
style: {
|
22
|
+
width: 120,
|
23
|
+
height: 18,
|
24
|
+
borderRadius: 4
|
25
|
+
}
|
26
|
+
}), /*#__PURE__*/_jsx(Shimmer, {
|
27
|
+
style: {
|
28
|
+
width: 105,
|
29
|
+
height: 18,
|
30
|
+
borderRadius: 4
|
31
|
+
}
|
32
|
+
})]
|
33
|
+
}), widgetStyle === PremiumWidgetStyles.list ? /*#__PURE__*/_jsx(View, {
|
34
|
+
style: styles.listContainer,
|
35
|
+
children: [...Array(4)].map((_, index) => /*#__PURE__*/_jsxs(View, {
|
36
|
+
style: styles.listTile,
|
37
|
+
children: [/*#__PURE__*/_jsx(Shimmer, {
|
38
|
+
shimmerHeight: 54,
|
39
|
+
style: {
|
40
|
+
width: 54,
|
41
|
+
height: 54,
|
42
|
+
borderRadius: 4
|
43
|
+
}
|
44
|
+
}), /*#__PURE__*/_jsxs(View, {
|
45
|
+
style: styles.titleColumn,
|
46
|
+
children: [/*#__PURE__*/_jsx(Shimmer, {
|
47
|
+
style: {
|
48
|
+
width: 130,
|
49
|
+
height: 16,
|
50
|
+
marginBottom: 2
|
51
|
+
}
|
52
|
+
}), /*#__PURE__*/_jsx(Shimmer, {
|
53
|
+
style: {
|
54
|
+
width: 65,
|
55
|
+
height: 16
|
56
|
+
}
|
57
|
+
})]
|
58
|
+
}), /*#__PURE__*/_jsx(Shimmer, {
|
59
|
+
shimmerHeight: 42,
|
60
|
+
style: {
|
61
|
+
width: 80,
|
62
|
+
height: 42,
|
63
|
+
borderRadius: 8
|
64
|
+
}
|
65
|
+
})]
|
66
|
+
}, index))
|
67
|
+
}) : /*#__PURE__*/_jsx(_Fragment, {
|
68
|
+
children: /*#__PURE__*/_jsx(Shimmer, {
|
69
|
+
style: {
|
70
|
+
width: '100%',
|
71
|
+
height: itemHeight
|
72
|
+
}
|
73
|
+
})
|
74
|
+
}), widgetStyle === PremiumWidgetStyles.sliderCards && /*#__PURE__*/_jsx(Shimmer, {
|
75
|
+
shimmerHeight: 150,
|
76
|
+
style: {
|
77
|
+
flexDirection: 'row',
|
78
|
+
height: 150
|
79
|
+
}
|
80
|
+
}), /*#__PURE__*/_jsx(Shimmer, {
|
81
|
+
shimmerHeight: 42,
|
82
|
+
style: {
|
83
|
+
flexDirection: 'row',
|
84
|
+
height: 42,
|
85
|
+
borderRadius: 21,
|
86
|
+
marginVertical: 16
|
87
|
+
}
|
88
|
+
})]
|
89
|
+
});
|
90
|
+
};
|
91
|
+
const styles = StyleSheet.create({
|
92
|
+
headerRow: {
|
93
|
+
flexDirection: 'row',
|
94
|
+
justifyContent: 'space-between',
|
95
|
+
marginTop: 12
|
96
|
+
},
|
97
|
+
listContainer: {
|
98
|
+
marginTop: 12
|
99
|
+
},
|
100
|
+
listTile: {
|
101
|
+
flexDirection: 'row',
|
102
|
+
alignItems: 'center',
|
103
|
+
paddingVertical: 10,
|
104
|
+
justifyContent: 'space-between'
|
105
|
+
},
|
106
|
+
titleColumn: {
|
107
|
+
flexDirection: 'column',
|
108
|
+
justifyContent: 'center',
|
109
|
+
marginHorizontal: 16
|
110
|
+
}
|
111
|
+
});
|
112
|
+
export default PremiumWidgetsLoading;
|
113
|
+
//# sourceMappingURL=premium_loading.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["React","View","StyleSheet","Shimmer","PremiumWidgetStyles","CustomCard","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","PremiumWidgetsLoading","widgetStyle","itemHeight","style","width","paddingHorizontal","children","styles","headerRow","height","borderRadius","list","listContainer","Array","map","_","index","listTile","shimmerHeight","titleColumn","marginBottom","sliderCards","flexDirection","marginVertical","create","justifyContent","marginTop","alignItems","paddingVertical","marginHorizontal"],"sourceRoot":"../../../../../../src","sources":["acmo/modules/dashboard/components/premium_loading.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC/C,OAAOC,OAAO,MAAM,qBAAkB;AACtC,SAASC,mBAAmB,QAAQ,kBAAe;AACnD,OAAOC,UAAU,MAAM,kBAAe;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAOvC,MAAMC,qBAA2D,GAAGA,CAAC;EACnEC,WAAW;EACXC;AACF,CAAC,KAAK;EACJ,oBACEL,KAAA,CAACJ,UAAU;IAACU,KAAK,EAAE;MACjBC,KAAK,EAAE,MAAM;MACbC,iBAAiB,EAAE;IACrB,CAAE;IAAAC,QAAA,gBACAT,KAAA,CAACR,IAAI;MAACc,KAAK,EAAEI,MAAM,CAACC,SAAU;MAAAF,QAAA,gBAC5BX,IAAA,CAACJ,OAAO;QAACY,KAAK,EAAE;UAAEC,KAAK,EAAE,GAAG;UAA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