be-components 6.9.2 → 6.9.3
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/lib/commonjs/Squares/components/BidForm.js +31 -31
- package/lib/commonjs/Squares/components/BidForm.js.map +1 -1
- package/lib/commonjs/Squares/components/OfferForm.js +53 -60
- package/lib/commonjs/Squares/components/OfferForm.js.map +1 -1
- package/lib/commonjs/Squares/components/SquareOfferCard.js +134 -121
- package/lib/commonjs/Squares/components/SquareOfferCard.js.map +1 -1
- package/lib/commonjs/Squares/components/SquareOffersCard.js +32 -6
- package/lib/commonjs/Squares/components/SquareOffersCard.js.map +1 -1
- package/lib/commonjs/Squares/components/SquaresBoard.js +16 -8
- package/lib/commonjs/Squares/components/SquaresBoard.js.map +1 -1
- package/lib/commonjs/Squares/index.js +65 -18
- package/lib/commonjs/Squares/index.js.map +1 -1
- package/lib/module/Squares/components/BidForm.js +31 -31
- package/lib/module/Squares/components/BidForm.js.map +1 -1
- package/lib/module/Squares/components/OfferForm.js +54 -61
- package/lib/module/Squares/components/OfferForm.js.map +1 -1
- package/lib/module/Squares/components/SquareOfferCard.js +123 -109
- package/lib/module/Squares/components/SquareOfferCard.js.map +1 -1
- package/lib/module/Squares/components/SquareOffersCard.js +32 -6
- package/lib/module/Squares/components/SquareOffersCard.js.map +1 -1
- package/lib/module/Squares/components/SquaresBoard.js +16 -8
- package/lib/module/Squares/components/SquaresBoard.js.map +1 -1
- package/lib/module/Squares/index.js +65 -18
- package/lib/module/Squares/index.js.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/BidForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/OfferForm.d.ts +1 -2
- package/lib/typescript/lib/commonjs/Squares/components/OfferForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/SquareOfferCard.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Squares/components/SquareOfferCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/SquareOffersCard.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Squares/components/SquareOffersCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/BidForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/OfferForm.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/OfferForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/SquareOfferCard.d.ts +5 -3
- package/lib/typescript/lib/module/Squares/components/SquareOfferCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/SquareOffersCard.d.ts +2 -1
- package/lib/typescript/lib/module/Squares/components/SquareOffersCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/index.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/BidForm.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/OfferForm.d.ts +1 -1
- package/lib/typescript/src/Squares/components/OfferForm.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/SquareOfferCard.d.ts +3 -2
- package/lib/typescript/src/Squares/components/SquareOfferCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/SquareOffersCard.d.ts +3 -2
- package/lib/typescript/src/Squares/components/SquareOffersCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/SquaresBoard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Squares/components/BidForm.tsx +23 -25
- package/src/Squares/components/OfferForm.tsx +40 -36
- package/src/Squares/components/SquareOfferCard.tsx +75 -45
- package/src/Squares/components/SquareOffersCard.tsx +13 -9
- package/src/Squares/components/SquaresBoard.tsx +14 -8
- package/src/Squares/index.tsx +77 -41
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { FlatList } from "react-native";
|
|
3
3
|
import BidToggle from "./BidToggle";
|
|
4
|
-
import { view_styles } from "../../constants/styles";
|
|
5
|
-
import Colors from "../../constants/colors";
|
|
6
4
|
import { Button, Text, View } from '../../Components/Themed';
|
|
5
|
+
import { useColors } from '../../constants/useColors';
|
|
7
6
|
const OfferForm = ({
|
|
8
7
|
player_id,
|
|
9
8
|
player_balance,
|
|
10
9
|
market_type,
|
|
11
|
-
width,
|
|
12
10
|
squares,
|
|
13
11
|
submit_ready,
|
|
14
12
|
home_abbr,
|
|
@@ -20,6 +18,7 @@ const OfferForm = ({
|
|
|
20
18
|
onClearOffers,
|
|
21
19
|
onSubmitOffer
|
|
22
20
|
}) => {
|
|
21
|
+
const Colors = useColors();
|
|
23
22
|
const cl = market_type == 'FOR_MONEY' ? '$' : 'E';
|
|
24
23
|
const total_offer_amount = draft_square_offers.reduce((a, b) => a + b.amount, 0);
|
|
25
24
|
let can_submit = player_balance && total_offer_amount < player_balance.balance ? true : false;
|
|
@@ -33,6 +32,7 @@ const OfferForm = ({
|
|
|
33
32
|
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
34
33
|
}
|
|
35
34
|
return /*#__PURE__*/React.createElement(View, {
|
|
35
|
+
transparent: true,
|
|
36
36
|
style: {
|
|
37
37
|
flex: 1,
|
|
38
38
|
flexDirection: 'row',
|
|
@@ -40,6 +40,7 @@ const OfferForm = ({
|
|
|
40
40
|
marginBottom: 8
|
|
41
41
|
}
|
|
42
42
|
}, /*#__PURE__*/React.createElement(View, {
|
|
43
|
+
transparent: true,
|
|
43
44
|
style: {
|
|
44
45
|
flex: 1
|
|
45
46
|
}
|
|
@@ -47,7 +48,9 @@ const OfferForm = ({
|
|
|
47
48
|
theme: "description"
|
|
48
49
|
}, "SQUARE: ", home_abbr, ": ", square.square_score_x, ", ", away_abbr, ": ", square.square_score_y), /*#__PURE__*/React.createElement(Text, {
|
|
49
50
|
theme: "description"
|
|
50
|
-
}, "Purchased Price: ", cl, ps.purchase_price.toFixed(2))), /*#__PURE__*/React.createElement(View,
|
|
51
|
+
}, "Purchased Price: ", cl, ps.purchase_price.toFixed(2))), /*#__PURE__*/React.createElement(View, {
|
|
52
|
+
transparent: true
|
|
53
|
+
}, /*#__PURE__*/React.createElement(BidToggle, {
|
|
51
54
|
sq_square_id: square.sq_square_id,
|
|
52
55
|
amount: data.item.amount,
|
|
53
56
|
cl: cl,
|
|
@@ -58,16 +61,18 @@ const OfferForm = ({
|
|
|
58
61
|
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
59
62
|
}
|
|
60
63
|
return /*#__PURE__*/React.createElement(View, {
|
|
64
|
+
float: true
|
|
65
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
66
|
+
type: "header",
|
|
61
67
|
style: {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
padding:
|
|
65
|
-
|
|
66
|
-
|
|
68
|
+
flexDirection: 'row',
|
|
69
|
+
alignItems: 'center',
|
|
70
|
+
padding: 10,
|
|
71
|
+
borderTopRightRadius: 8,
|
|
72
|
+
borderTopLeftRadius: 8
|
|
67
73
|
}
|
|
68
74
|
}, /*#__PURE__*/React.createElement(View, {
|
|
69
|
-
|
|
70
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
75
|
+
transparent: true,
|
|
71
76
|
style: {
|
|
72
77
|
flex: 1
|
|
73
78
|
}
|
|
@@ -84,95 +89,83 @@ const OfferForm = ({
|
|
|
84
89
|
},
|
|
85
90
|
theme: "description"
|
|
86
91
|
}, "How much are you willing to sell the selected square for?")), /*#__PURE__*/React.createElement(View, {
|
|
92
|
+
float: true,
|
|
87
93
|
style: {
|
|
88
94
|
height: 24,
|
|
89
95
|
width: 24,
|
|
90
96
|
borderRadius: 100,
|
|
91
|
-
backgroundColor: Colors.highlights.highlight200,
|
|
92
97
|
justifyContent: 'center',
|
|
93
98
|
alignItems: 'center',
|
|
94
99
|
marginLeft: 5
|
|
95
100
|
}
|
|
96
101
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
97
102
|
size: 12,
|
|
98
|
-
color: Colors.
|
|
103
|
+
color: Colors.text.h1,
|
|
99
104
|
textAlign: "center"
|
|
100
105
|
}, draft_square_offers.length))), /*#__PURE__*/React.createElement(View, {
|
|
106
|
+
transparent: true,
|
|
107
|
+
type: "body",
|
|
101
108
|
style: {
|
|
102
|
-
|
|
109
|
+
padding: 10
|
|
103
110
|
}
|
|
104
111
|
}, /*#__PURE__*/React.createElement(FlatList, {
|
|
105
112
|
data: draft_square_offers.sort((a, b) => parseInt(a.sq_player_square_id) - parseInt(b.sq_player_square_id)),
|
|
106
113
|
renderItem: renderDraftOffers,
|
|
107
114
|
keyExtractor: item => `o-${item.sq_player_square_id}`
|
|
108
115
|
}), /*#__PURE__*/React.createElement(View, {
|
|
109
|
-
|
|
116
|
+
transparent: true,
|
|
117
|
+
type: "row",
|
|
118
|
+
style: {
|
|
119
|
+
marginTop: 5
|
|
120
|
+
}
|
|
110
121
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
111
122
|
style: {
|
|
112
123
|
flex: 1
|
|
113
124
|
},
|
|
114
|
-
theme: "description"
|
|
115
|
-
}, "Total"), /*#__PURE__*/React.createElement(Text, {
|
|
116
125
|
theme: "h2"
|
|
117
|
-
},
|
|
126
|
+
}, "Total"), /*#__PURE__*/React.createElement(Text, {
|
|
127
|
+
theme: "h1"
|
|
128
|
+
}, cl, total_offer_amount.toFixed(2)))), /*#__PURE__*/React.createElement(View, {
|
|
129
|
+
type: "footer",
|
|
118
130
|
style: {
|
|
119
|
-
|
|
131
|
+
flexDirection: 'row',
|
|
132
|
+
alignItems: 'center',
|
|
133
|
+
padding: 10,
|
|
134
|
+
borderBottomRightRadius: 8,
|
|
135
|
+
borderBottomLeftRadius: 8
|
|
120
136
|
}
|
|
121
137
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
138
|
+
type: "error",
|
|
139
|
+
title: "CLEAR",
|
|
122
140
|
style: {
|
|
123
|
-
flex: 1
|
|
124
|
-
padding: 12,
|
|
125
|
-
borderRadius: 4,
|
|
126
|
-
borderWidth: 1,
|
|
127
|
-
borderColor: Colors.brand.cobalt,
|
|
128
|
-
justifyContent: 'center',
|
|
129
|
-
alignItems: 'center',
|
|
130
|
-
marginRight: 4
|
|
141
|
+
flex: 1
|
|
131
142
|
},
|
|
132
143
|
onPress: () => onClearOffers()
|
|
133
|
-
}, /*#__PURE__*/React.createElement(
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
textAlign: "center",
|
|
137
|
-
color: Colors.brand.cobalt
|
|
138
|
-
}, "Clear")), player_id ? /*#__PURE__*/React.createElement(Button, {
|
|
139
|
-
disabled: !can_submit,
|
|
144
|
+
}), player_id ? /*#__PURE__*/React.createElement(Button, {
|
|
145
|
+
disabled: !can_submit || submit_ready.is_loading,
|
|
146
|
+
loading: submit_ready.is_loading,
|
|
140
147
|
style: {
|
|
141
|
-
flex: 2
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
backgroundColor: submit_ready.is_ready ? Colors.
|
|
145
|
-
justifyContent: 'center',
|
|
146
|
-
alignItems: 'center',
|
|
147
|
-
marginLeft: 4,
|
|
148
|
-
opacity: submit_ready.is_loading || !can_submit ? 0.5 : 1
|
|
148
|
+
flex: 2,
|
|
149
|
+
opacity: submit_ready.is_loading || !can_submit ? 0.5 : 1,
|
|
150
|
+
marginLeft: 5,
|
|
151
|
+
backgroundColor: submit_ready.is_ready ? Colors.text.success : Colors.text.action
|
|
149
152
|
},
|
|
153
|
+
type: "success",
|
|
154
|
+
title: submit_ready.is_ready ? 'SUBMIT OFFER' : 'REVIEW OFFER',
|
|
150
155
|
onPress: () => onSubmitOffer()
|
|
151
|
-
}
|
|
152
|
-
size: "small",
|
|
153
|
-
color: Colors.shades.white
|
|
154
|
-
}) : /*#__PURE__*/React.createElement(Text, {
|
|
155
|
-
size: 14,
|
|
156
|
-
weight: "semibold",
|
|
157
|
-
textAlign: "center",
|
|
158
|
-
color: Colors.shades.white
|
|
159
|
-
}, submit_ready.is_ready ? 'Submit Offers' : 'Review Offers')) : /*#__PURE__*/React.createElement(Button, {
|
|
156
|
+
}) : /*#__PURE__*/React.createElement(Button, {
|
|
160
157
|
style: {
|
|
161
|
-
flex: 2
|
|
162
|
-
|
|
163
|
-
borderRadius: 4,
|
|
164
|
-
backgroundColor: Colors.highlights.highlight400,
|
|
165
|
-
justifyContent: 'center',
|
|
166
|
-
alignItems: 'center',
|
|
167
|
-
marginLeft: 4
|
|
158
|
+
flex: 2,
|
|
159
|
+
marginLeft: 5
|
|
168
160
|
},
|
|
161
|
+
type: "success",
|
|
169
162
|
onPress: () => onRequestAuthenticate()
|
|
170
163
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
171
164
|
size: 14,
|
|
172
165
|
weight: "semibold",
|
|
173
166
|
textAlign: "center",
|
|
174
|
-
color: Colors.
|
|
175
|
-
}, "Sign Up"))))
|
|
167
|
+
color: Colors.text.white
|
|
168
|
+
}, "Sign Up"))));
|
|
176
169
|
};
|
|
177
170
|
export default OfferForm;
|
|
178
171
|
//# sourceMappingURL=OfferForm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","
|
|
1
|
+
{"version":3,"names":["React","FlatList","BidToggle","Button","Text","View","useColors","OfferForm","player_id","player_balance","market_type","squares","submit_ready","home_abbr","away_abbr","player_squares","draft_square_offers","onRequestAuthenticate","onOfferAmountChange","onClearOffers","onSubmitOffer","Colors","cl","total_offer_amount","reduce","a","b","amount","can_submit","balance","renderDraftOffers","data","ps","find","psQ","sq_player_square_id","item","createElement","Fragment","square","s","sq_square_id","transparent","style","flex","flexDirection","alignItems","marginBottom","theme","square_score_x","square_score_y","purchase_price","toFixed","onAmountChange","dir","float","type","padding","borderTopRightRadius","borderTopLeftRadius","buy_sell_ind","marginTop","height","width","borderRadius","justifyContent","marginLeft","size","color","text","h1","textAlign","length","sort","parseInt","renderItem","keyExtractor","borderBottomRightRadius","borderBottomLeftRadius","title","onPress","disabled","is_loading","loading","opacity","backgroundColor","is_ready","success","action","weight","white"],"sourceRoot":"../../../../src","sources":["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CAAC;AAED,eAAenF,SAAS","ignoreList":[]}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import { View, TouchableOpacity } from 'react-native';
|
|
3
|
-
import { Text } from '../../Components';
|
|
4
|
-
import Colors from '../../constants/colors';
|
|
5
2
|
import { SquaresApi } from '../api';
|
|
6
|
-
import {
|
|
3
|
+
import { Button, Text, View } from '../../Components/Themed';
|
|
4
|
+
import { useColors } from '../../constants/useColors';
|
|
5
|
+
import { showConfirmAlert } from '../../Components/ConfirmAlert';
|
|
6
|
+
import { Image } from 'react-native';
|
|
7
7
|
const SquareOfferCard = ({
|
|
8
8
|
player_id,
|
|
9
|
+
offer_owner,
|
|
9
10
|
square,
|
|
10
11
|
player_square,
|
|
11
12
|
square_offer,
|
|
@@ -13,7 +14,9 @@ const SquareOfferCard = ({
|
|
|
13
14
|
home_abbr,
|
|
14
15
|
onRequestAuthenticate
|
|
15
16
|
}) => {
|
|
17
|
+
const Colors = useColors();
|
|
16
18
|
const [loading, setLoading] = useState(false);
|
|
19
|
+
const [hidden, setHidden] = useState(false);
|
|
17
20
|
const handleResponse = async response => {
|
|
18
21
|
if (loading) {
|
|
19
22
|
return;
|
|
@@ -30,6 +33,9 @@ const SquareOfferCard = ({
|
|
|
30
33
|
});
|
|
31
34
|
break;
|
|
32
35
|
case 'rejected':
|
|
36
|
+
if (square_offer.buy_sell_ind == 'sell') {
|
|
37
|
+
return setHidden(true);
|
|
38
|
+
}
|
|
33
39
|
await SquaresApi.offserSquare({
|
|
34
40
|
...square_offer,
|
|
35
41
|
status: 'rejected'
|
|
@@ -46,158 +52,166 @@ const SquareOfferCard = ({
|
|
|
46
52
|
}
|
|
47
53
|
setLoading(false);
|
|
48
54
|
};
|
|
55
|
+
const handleConfirmResponse = response => {
|
|
56
|
+
showConfirmAlert('Are you sure?', 'Your response is final and cannot be modified', () => handleResponse(response), () => console.log(''));
|
|
57
|
+
};
|
|
58
|
+
if (hidden) {
|
|
59
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
60
|
+
}
|
|
49
61
|
const cl = square_offer.market_type === 'FOR_MONEY' ? '$' : 'E';
|
|
50
62
|
const mine = square_offer.offerer_id == player_id ? true : false;
|
|
51
63
|
return /*#__PURE__*/React.createElement(View, {
|
|
64
|
+
float: true,
|
|
52
65
|
style: {
|
|
53
|
-
...view_styles.section,
|
|
54
66
|
minWidth: 250,
|
|
55
|
-
|
|
67
|
+
maxWidth: 275,
|
|
68
|
+
flexGrow: 1
|
|
56
69
|
}
|
|
57
70
|
}, /*#__PURE__*/React.createElement(View, {
|
|
71
|
+
type: "header",
|
|
58
72
|
style: {
|
|
59
|
-
|
|
60
|
-
|
|
73
|
+
flexDirection: 'row',
|
|
74
|
+
alignItems: 'center',
|
|
75
|
+
padding: 10,
|
|
76
|
+
borderTopRightRadius: 8,
|
|
77
|
+
borderTopLeftRadius: 8
|
|
61
78
|
}
|
|
62
|
-
}, /*#__PURE__*/React.createElement(
|
|
79
|
+
}, offer_owner ? /*#__PURE__*/React.createElement(View, {
|
|
80
|
+
float: true,
|
|
63
81
|
style: {
|
|
64
|
-
|
|
82
|
+
padding: 2,
|
|
83
|
+
marginRight: 5,
|
|
84
|
+
borderRadius: 100
|
|
85
|
+
}
|
|
86
|
+
}, /*#__PURE__*/React.createElement(Image, {
|
|
87
|
+
source: {
|
|
88
|
+
uri: offer_owner.profile_pic
|
|
89
|
+
},
|
|
90
|
+
style: {
|
|
91
|
+
height: 35,
|
|
92
|
+
width: 35,
|
|
93
|
+
borderRadius: 100
|
|
65
94
|
},
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
95
|
+
resizeMode: "cover"
|
|
96
|
+
})) : /*#__PURE__*/React.createElement(React.Fragment, null), /*#__PURE__*/React.createElement(View, {
|
|
97
|
+
transparent: true,
|
|
98
|
+
style: {
|
|
99
|
+
flex: 1
|
|
100
|
+
}
|
|
101
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
102
|
+
theme: "h1"
|
|
103
|
+
}, "Squares", square_offer.buy_sell_ind === 'sell' ? ' Sale' : ' Buy', " Offer"), square_offer.buy_sell_ind == 'sell' && mine ? /*#__PURE__*/React.createElement(Text, {
|
|
104
|
+
theme: "description"
|
|
105
|
+
}, "This is your sell offer. Other players can buy this square for the price noted below") : square_offer.buy_sell_ind == 'sell' && !mine ? /*#__PURE__*/React.createElement(Text, {
|
|
106
|
+
theme: "description"
|
|
107
|
+
}, "This is a sale offer from another user. You can buy their square for the stated price right now") : square_offer.buy_sell_ind == 'buy' && !mine ? /*#__PURE__*/React.createElement(Text, {
|
|
108
|
+
theme: "description"
|
|
109
|
+
}, "This is an offer from another user to purchase your square. Sell or reject the offer below") : /*#__PURE__*/React.createElement(Text, {
|
|
110
|
+
theme: "description"
|
|
111
|
+
}, "This is your buy offer. The owner can accept or reject your offer"))), /*#__PURE__*/React.createElement(View, {
|
|
112
|
+
transparent: true,
|
|
113
|
+
type: "body",
|
|
114
|
+
style: {
|
|
115
|
+
padding: 5,
|
|
116
|
+
flexGrow: 1
|
|
117
|
+
}
|
|
71
118
|
}, /*#__PURE__*/React.createElement(View, {
|
|
72
|
-
|
|
119
|
+
transparent: true,
|
|
120
|
+
type: "row",
|
|
121
|
+
style: {
|
|
122
|
+
padding: 5,
|
|
123
|
+
borderBottomWidth: 1,
|
|
124
|
+
borderColor: Colors.borders.light
|
|
125
|
+
}
|
|
73
126
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
74
127
|
style: {
|
|
75
128
|
flex: 1
|
|
76
129
|
},
|
|
77
|
-
theme: "
|
|
130
|
+
theme: "description"
|
|
78
131
|
}, "Square"), /*#__PURE__*/React.createElement(Text, {
|
|
79
|
-
theme: "
|
|
132
|
+
theme: "h2"
|
|
80
133
|
}, home_abbr ?? '', ": ", square.square_score_x, ", ", away_abbr ?? '', ": ", square.square_score_y)), /*#__PURE__*/React.createElement(View, {
|
|
81
|
-
|
|
134
|
+
transparent: true,
|
|
135
|
+
type: "row",
|
|
136
|
+
style: {
|
|
137
|
+
padding: 5,
|
|
138
|
+
borderBottomWidth: 1,
|
|
139
|
+
borderColor: Colors.borders.light
|
|
140
|
+
}
|
|
82
141
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
83
142
|
style: {
|
|
84
143
|
flex: 1
|
|
85
144
|
},
|
|
86
|
-
theme: "
|
|
145
|
+
theme: "description"
|
|
87
146
|
}, "Purchased For"), /*#__PURE__*/React.createElement(Text, {
|
|
88
|
-
theme: "
|
|
147
|
+
theme: "h2"
|
|
89
148
|
}, cl, player_square.purchase_price.toFixed(2))), /*#__PURE__*/React.createElement(View, {
|
|
90
|
-
|
|
149
|
+
transparent: true,
|
|
150
|
+
type: "row",
|
|
151
|
+
style: {
|
|
152
|
+
padding: 5
|
|
153
|
+
}
|
|
91
154
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
92
155
|
style: {
|
|
93
156
|
flex: 1
|
|
94
157
|
},
|
|
95
|
-
theme: "
|
|
158
|
+
theme: "description"
|
|
96
159
|
}, "Offer Amount"), /*#__PURE__*/React.createElement(Text, {
|
|
97
|
-
theme: "
|
|
160
|
+
theme: "h1",
|
|
161
|
+
color: Colors.text.success
|
|
98
162
|
}, cl, square_offer.amount.toFixed(2)))), /*#__PURE__*/React.createElement(View, {
|
|
99
|
-
|
|
100
|
-
...view_styles.section_footer,
|
|
101
|
-
backgroundColor: square_offer.buy_sell_ind == 'buy' ? Colors.brand.midnight : Colors.brand.cyan
|
|
102
|
-
}
|
|
103
|
-
}, mine ? /*#__PURE__*/React.createElement(View, {
|
|
163
|
+
type: "footer",
|
|
104
164
|
style: {
|
|
105
165
|
flexDirection: 'row',
|
|
106
166
|
alignItems: 'center',
|
|
107
|
-
borderBottomRightRadius:
|
|
108
|
-
borderBottomLeftRadius:
|
|
167
|
+
borderBottomRightRadius: 8,
|
|
168
|
+
borderBottomLeftRadius: 8,
|
|
169
|
+
padding: 10
|
|
109
170
|
}
|
|
110
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
maxWidth: 140
|
|
114
|
-
}
|
|
115
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
116
|
-
size: 12,
|
|
117
|
-
color: Colors.shades.white,
|
|
118
|
-
weight: "semibold"
|
|
119
|
-
}, "WITHDRAW OFFER?"), /*#__PURE__*/React.createElement(Text, {
|
|
120
|
-
size: 12,
|
|
121
|
-
color: Colors.shades.white,
|
|
122
|
-
weight: "regular"
|
|
123
|
-
}, "Do you wish to withdraw this offer?")), /*#__PURE__*/React.createElement(View, {
|
|
171
|
+
}, mine ? /*#__PURE__*/React.createElement(View, {
|
|
172
|
+
type: "row",
|
|
173
|
+
transparent: true,
|
|
124
174
|
style: {
|
|
125
|
-
|
|
126
|
-
alignItems: 'center',
|
|
127
|
-
paddingLeft: 10
|
|
175
|
+
flex: 1
|
|
128
176
|
}
|
|
129
|
-
}, /*#__PURE__*/React.createElement(
|
|
177
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
178
|
+
type: "error",
|
|
179
|
+
loading: loading,
|
|
180
|
+
title: "WITHDRAW",
|
|
130
181
|
style: {
|
|
131
182
|
flex: 1,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
borderRadius: 60,
|
|
135
|
-
padding: 10,
|
|
136
|
-
marginLeft: 4
|
|
183
|
+
padding: 12,
|
|
184
|
+
opacity: loading ? 0.5 : 1
|
|
137
185
|
},
|
|
138
|
-
onPress: () =>
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
textAlign: "center",
|
|
143
|
-
color: Colors.shades.white
|
|
144
|
-
}, "Withdraw")))) : /*#__PURE__*/React.createElement(View, {
|
|
186
|
+
onPress: () => handleConfirmResponse('withdrawn')
|
|
187
|
+
})) : /*#__PURE__*/React.createElement(View, {
|
|
188
|
+
type: "row",
|
|
189
|
+
transparent: true,
|
|
145
190
|
style: {
|
|
146
|
-
|
|
147
|
-
alignItems: 'center',
|
|
148
|
-
borderBottomRightRadius: 10,
|
|
149
|
-
borderBottomLeftRadius: 10
|
|
150
|
-
}
|
|
151
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
152
|
-
style: {
|
|
153
|
-
flex: 1,
|
|
154
|
-
maxWidth: 140
|
|
155
|
-
}
|
|
156
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
157
|
-
size: 12,
|
|
158
|
-
color: Colors.shades.white,
|
|
159
|
-
weight: "semibold"
|
|
160
|
-
}, "ACCEPT OFFER?"), /*#__PURE__*/React.createElement(Text, {
|
|
161
|
-
size: 12,
|
|
162
|
-
color: Colors.shades.white,
|
|
163
|
-
weight: "regular"
|
|
164
|
-
}, "Do you wish to sell your square for this offer?")), /*#__PURE__*/React.createElement(View, {
|
|
165
|
-
style: {
|
|
166
|
-
flexDirection: 'row',
|
|
167
|
-
alignItems: 'center',
|
|
168
|
-
paddingLeft: 10
|
|
191
|
+
flex: 1
|
|
169
192
|
}
|
|
170
|
-
}, /*#__PURE__*/React.createElement(
|
|
193
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
171
194
|
style: {
|
|
172
195
|
flex: 1,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
marginRight: 4,
|
|
176
|
-
backgroundColor: Colors.shades.white
|
|
196
|
+
padding: 12,
|
|
197
|
+
opacity: loading ? 0.5 : 1
|
|
177
198
|
},
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
199
|
+
type: "error",
|
|
200
|
+
loading: loading,
|
|
201
|
+
title: "DECLINE",
|
|
202
|
+
onPress: () => handleConfirmResponse('rejected')
|
|
203
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
204
|
+
type: "success",
|
|
205
|
+
loading: loading,
|
|
206
|
+
title: "ACCEPT",
|
|
185
207
|
style: {
|
|
186
208
|
flex: 1,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
padding: 10,
|
|
191
|
-
minWidth: 75,
|
|
192
|
-
marginLeft: 4
|
|
209
|
+
padding: 12,
|
|
210
|
+
marginLeft: 5,
|
|
211
|
+
opacity: loading ? 0.5 : 1
|
|
193
212
|
},
|
|
194
|
-
onPress: () =>
|
|
195
|
-
}
|
|
196
|
-
size: 12,
|
|
197
|
-
weight: "semibold",
|
|
198
|
-
textAlign: "center",
|
|
199
|
-
color: Colors.shades.white
|
|
200
|
-
}, "Decline"))))));
|
|
213
|
+
onPress: () => handleConfirmResponse('accepted')
|
|
214
|
+
}))));
|
|
201
215
|
};
|
|
202
216
|
export default SquareOfferCard;
|
|
203
217
|
//# sourceMappingURL=SquareOfferCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","
|
|
1
|
+
{"version":3,"names":["React","useState","SquaresApi","Button","Text","View","useColors","showConfirmAlert","Image","SquareOfferCard","player_id","offer_owner","square","player_square","square_offer","away_abbr","home_abbr","onRequestAuthenticate","Colors","loading","setLoading","hidden","setHidden","handleResponse","response","offserSquare","status","buy_sell_ind","handleConfirmResponse","console","log","createElement","Fragment","cl","market_type","mine","offerer_id","float","style","minWidth","maxWidth","flexGrow","type","flexDirection","alignItems","padding","borderTopRightRadius","borderTopLeftRadius","marginRight","borderRadius","source","uri","profile_pic","height","width","resizeMode","transparent","flex","theme","borderBottomWidth","borderColor","borders","light","square_score_x","square_score_y","purchase_price","toFixed","color","text","success","amount","borderBottomRightRadius","borderBottomLeftRadius","title","opacity","onPress","marginLeft"],"sourceRoot":"../../../../src","sources":["Squares/components/SquareOfferCard.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AAEvC,SAASC,UAAU,QAAQ,QAAQ;AACnC,SAASC,MAAM,EAAEC,IAAI,EAAEC,IAAI,QAAQ,yBAAyB;AAC5D,SAASC,SAAS,QAAQ,2BAA2B;AACrD,SAASC,gBAAgB,Q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