be-components 3.2.5 → 3.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/lib/commonjs/Components/Button.js +1 -3
  2. package/lib/commonjs/Components/Button.js.map +1 -1
  3. package/lib/commonjs/Components/Toggle.js +91 -0
  4. package/lib/commonjs/Components/Toggle.js.map +1 -0
  5. package/lib/commonjs/MarketComponents/api/index.js +76 -1
  6. package/lib/commonjs/MarketComponents/api/index.js.map +1 -1
  7. package/lib/commonjs/MarketComponents/components/ExternalPriceComparison.js +300 -0
  8. package/lib/commonjs/MarketComponents/components/ExternalPriceComparison.js.map +1 -0
  9. package/lib/commonjs/MarketComponents/index.js +2 -0
  10. package/lib/commonjs/MarketComponents/index.js.map +1 -1
  11. package/lib/module/Components/Button.js +1 -3
  12. package/lib/module/Components/Button.js.map +1 -1
  13. package/lib/module/Components/Toggle.js +82 -0
  14. package/lib/module/Components/Toggle.js.map +1 -0
  15. package/lib/module/MarketComponents/api/index.js +76 -1
  16. package/lib/module/MarketComponents/api/index.js.map +1 -1
  17. package/lib/module/MarketComponents/components/ExternalPriceComparison.js +291 -0
  18. package/lib/module/MarketComponents/components/ExternalPriceComparison.js.map +1 -0
  19. package/lib/module/MarketComponents/index.js +2 -0
  20. package/lib/module/MarketComponents/index.js.map +1 -1
  21. package/lib/typescript/lib/commonjs/Components/Button.d.ts.map +1 -1
  22. package/lib/typescript/lib/commonjs/Components/Toggle.d.ts +15 -0
  23. package/lib/typescript/lib/commonjs/Components/Toggle.d.ts.map +1 -0
  24. package/lib/typescript/lib/commonjs/MarketComponents/api/index.d.ts +6 -0
  25. package/lib/typescript/lib/commonjs/MarketComponents/api/index.d.ts.map +1 -1
  26. package/lib/typescript/lib/commonjs/MarketComponents/components/ExternalPriceComparison.d.ts +15 -0
  27. package/lib/typescript/lib/commonjs/MarketComponents/components/ExternalPriceComparison.d.ts.map +1 -0
  28. package/lib/typescript/lib/commonjs/MarketComponents/index.d.ts +1 -0
  29. package/lib/typescript/lib/module/Components/Button.d.ts.map +1 -1
  30. package/lib/typescript/lib/module/Components/Spring.d.ts +1 -1
  31. package/lib/typescript/lib/module/Components/Toggle.d.ts +16 -0
  32. package/lib/typescript/lib/module/Components/Toggle.d.ts.map +1 -0
  33. package/lib/typescript/lib/module/MarketComponents/api/index.d.ts +6 -0
  34. package/lib/typescript/lib/module/MarketComponents/api/index.d.ts.map +1 -1
  35. package/lib/typescript/lib/module/MarketComponents/components/ExternalPriceComparison.d.ts +16 -0
  36. package/lib/typescript/lib/module/MarketComponents/components/ExternalPriceComparison.d.ts.map +1 -0
  37. package/lib/typescript/lib/module/MarketComponents/index.d.ts +2 -0
  38. package/lib/typescript/lib/module/MarketComponents/index.d.ts.map +1 -1
  39. package/lib/typescript/src/Components/Toggle.d.ts +19 -0
  40. package/lib/typescript/src/Components/Toggle.d.ts.map +1 -0
  41. package/lib/typescript/src/MarketComponents/api/index.d.ts +8 -2
  42. package/lib/typescript/src/MarketComponents/api/index.d.ts.map +1 -1
  43. package/lib/typescript/src/MarketComponents/components/ExternalPriceComparison.d.ts +16 -0
  44. package/lib/typescript/src/MarketComponents/components/ExternalPriceComparison.d.ts.map +1 -0
  45. package/lib/typescript/src/MarketComponents/index.d.ts +12 -0
  46. package/lib/typescript/src/MarketComponents/index.d.ts.map +1 -1
  47. package/package.json +1 -1
  48. package/src/Components/Button.tsx +2 -2
  49. package/src/Components/Toggle.tsx +78 -0
  50. package/src/MarketComponents/api/index.ts +61 -3
  51. package/src/MarketComponents/components/ExternalPriceComparison.tsx +211 -0
  52. package/src/MarketComponents/index.tsx +2 -0
@@ -0,0 +1,291 @@
1
+ import React, { useEffect, useState } from 'react';
2
+ import { ActivityIndicator, FlatList, View } from 'react-native';
3
+ import { Button, Text } from '../../Components';
4
+ import Colors from '../../constants/colors';
5
+ import { MarketComponentApi, MarketComponentHelpers } from '../api';
6
+ import Toggle from '../../Components/Toggle';
7
+ import moment from 'moment-mini';
8
+ import { view_styles } from '../../constants/styles';
9
+ const ExternalPriceComparison = ({
10
+ price_key,
11
+ contest_id,
12
+ contest_type,
13
+ maxHeight,
14
+ market_id,
15
+ participant_id,
16
+ participant_type,
17
+ external_name,
18
+ init_side,
19
+ onClose
20
+ }) => {
21
+ const [module_data, setModuleData] = useState({
22
+ loading: false,
23
+ selected_side: '',
24
+ trades: [],
25
+ external_prices: []
26
+ });
27
+ const {
28
+ loading,
29
+ event,
30
+ athlete,
31
+ team,
32
+ market,
33
+ selected_side,
34
+ tournament,
35
+ match,
36
+ trades,
37
+ external_prices
38
+ } = module_data;
39
+ useEffect(() => {
40
+ MarketComponentApi.setEnvironment();
41
+ if (!price_key || !contest_id) {
42
+ return;
43
+ }
44
+ getData();
45
+ }, [price_key]);
46
+ const getData = async () => {
47
+ setModuleData({
48
+ ...module_data,
49
+ loading: true
50
+ });
51
+ const prices = await MarketComponentApi.getExternalPrices(contest_type, contest_id, market_id, undefined, participant_id, participant_type, external_name);
52
+ const ts = await MarketComponentApi.getLatestTradesByEvents(contest_type, [contest_id]);
53
+ let market_ts = ts.filter(lt => lt.market_id == market_id && lt.market_type == 'FOR_MONEY');
54
+ let a = undefined;
55
+ let tm = undefined;
56
+ if (participant_id) {
57
+ market_ts = market_ts.filter(lt => lt.side_id == participant_id);
58
+ if (participant_type == 'athlete') {
59
+ let as = await MarketComponentApi.getAthletesByIds([participant_id]);
60
+ a = as[0];
61
+ }
62
+ if (participant_type == 'team') {
63
+ let tms = await MarketComponentApi.getTeamsByIds([participant_id]);
64
+ tm = tms[0];
65
+ }
66
+ }
67
+ const markets = await MarketComponentApi.getMarkets();
68
+ const mk = markets.find(m => m.market_id == market_id);
69
+ let e = undefined;
70
+ let t = undefined;
71
+ let m = undefined;
72
+ if (contest_type == 'team') {
73
+ let es = await MarketComponentApi.getEventsByEventIds([contest_id]);
74
+ e = es[0];
75
+ }
76
+ if (contest_type == 'tournament') {
77
+ let ts = await MarketComponentApi.getTournamentsByTournamentIds([contest_id]);
78
+ t = ts[0];
79
+ }
80
+ if (contest_type == 'match') {
81
+ let ms = await MarketComponentApi.getMatchesByMatchIds([contest_id]);
82
+ m = ms[0];
83
+ }
84
+ setModuleData({
85
+ ...module_data,
86
+ loading: false,
87
+ athlete: a,
88
+ team: tm,
89
+ external_prices: prices,
90
+ event: e,
91
+ tournament: t,
92
+ trades: market_ts,
93
+ match: m,
94
+ market: mk,
95
+ selected_side: init_side ?? mk?.trade_side ?? ''
96
+ });
97
+ };
98
+ const renderPrices = data => {
99
+ if (!market) {
100
+ return /*#__PURE__*/React.createElement(React.Fragment, null);
101
+ }
102
+ return /*#__PURE__*/React.createElement(View, {
103
+ style: {
104
+ ...view_styles.body_row
105
+ }
106
+ }, /*#__PURE__*/React.createElement(View, {
107
+ style: {
108
+ flex: 1
109
+ }
110
+ }, /*#__PURE__*/React.createElement(Text, {
111
+ theme: "header_2"
112
+ }, data.item.external_name), /*#__PURE__*/React.createElement(Text, {
113
+ style: {
114
+ marginTop: 3
115
+ },
116
+ size: 10,
117
+ color: Colors.brand.slate,
118
+ weight: "regular"
119
+ }, (data.item.vig_pct * 100).toFixed(2), "% Vig")), /*#__PURE__*/React.createElement(View, {
120
+ style: {
121
+ alignItems: 'flex-end'
122
+ }
123
+ }, /*#__PURE__*/React.createElement(Text, {
124
+ theme: "header_2"
125
+ }, market.var_1_required ? `${MarketComponentHelpers.getVar1Label(market, data.item.var_1)} ` : '', MarketComponentHelpers.getOddsLabel(data.item.odds)), /*#__PURE__*/React.createElement(Text, {
126
+ style: {
127
+ marginTop: 3
128
+ },
129
+ size: 10,
130
+ color: Colors.brand.slate,
131
+ weight: "regular"
132
+ }, "As of: ", moment(data.item.last_update_datetime).fromNow())));
133
+ };
134
+ const {
135
+ o_side_label,
136
+ trade_side_label
137
+ } = MarketComponentHelpers.getExternalPriceDetails(contest_type, market, event, tournament, match);
138
+ let visible_prices = external_prices.filter(p => p.side == selected_side).sort((a, b) => a.external_name.localeCompare(b.external_name));
139
+ const consensus_price = visible_prices.find(p => p.external_name.toLowerCase() == 'consensus');
140
+ visible_prices = visible_prices.filter(p => p.external_name.toLowerCase() != 'consensus');
141
+ const latest_trade = trades.find(t => t.side == selected_side);
142
+ return /*#__PURE__*/React.createElement(View, {
143
+ style: {
144
+ ...view_styles.section,
145
+ maxHeight
146
+ }
147
+ }, /*#__PURE__*/React.createElement(View, {
148
+ style: {
149
+ ...view_styles.section_header
150
+ }
151
+ }, /*#__PURE__*/React.createElement(View, {
152
+ style: {
153
+ flexGrow: 1
154
+ }
155
+ }, /*#__PURE__*/React.createElement(Text, {
156
+ theme: "header"
157
+ }, "External Price Comparison"), market ? /*#__PURE__*/React.createElement(Text, {
158
+ theme: "body",
159
+ style: {
160
+ marginTop: 3
161
+ }
162
+ }, athlete ? `${athlete.abbr_name} ` : team ? `${team.abbr} ` : '', market.type == 'Stat' ? market.stat_label : market.type) : /*#__PURE__*/React.createElement(React.Fragment, null)), /*#__PURE__*/React.createElement(View, {
163
+ style: {
164
+ flexDirection: 'row'
165
+ }
166
+ }, /*#__PURE__*/React.createElement(Button, {
167
+ title: "X",
168
+ padding: 10,
169
+ backgroundColor: Colors.shades.shade100,
170
+ onPress: () => onClose()
171
+ }))), /*#__PURE__*/React.createElement(View, {
172
+ style: {
173
+ ...view_styles.section_body
174
+ }
175
+ }, loading ? /*#__PURE__*/React.createElement(ActivityIndicator, {
176
+ size: "large",
177
+ color: Colors.brand.midnight,
178
+ style: {
179
+ padding: 20,
180
+ alignSelf: 'center'
181
+ }
182
+ }) : /*#__PURE__*/React.createElement(React.Fragment, null), market ? /*#__PURE__*/React.createElement(Toggle, {
183
+ background_color: Colors.shades.shade100,
184
+ options: [{
185
+ key: market.side_options.find(so => so.side != market.trade_side)?.side ?? '',
186
+ label: o_side_label
187
+ }, {
188
+ key: market.trade_side,
189
+ label: trade_side_label
190
+ }],
191
+ onSelectOption: option => setModuleData({
192
+ ...module_data,
193
+ selected_side: option
194
+ }),
195
+ selected_option: selected_side
196
+ }) : /*#__PURE__*/React.createElement(React.Fragment, null), /*#__PURE__*/React.createElement(View, {
197
+ nativeID: "header_trades",
198
+ style: {
199
+ paddingTop: 20,
200
+ borderBottomWidth: 1,
201
+ borderColor: Colors.shades.shade600,
202
+ paddingBottom: 10
203
+ }
204
+ }, latest_trade && market ? /*#__PURE__*/React.createElement(View, {
205
+ style: {
206
+ ...view_styles.body_row
207
+ }
208
+ }, /*#__PURE__*/React.createElement(View, {
209
+ style: {
210
+ flex: 1
211
+ }
212
+ }, /*#__PURE__*/React.createElement(Text, {
213
+ theme: "header"
214
+ }, "BettorEdge"), /*#__PURE__*/React.createElement(Text, {
215
+ style: {
216
+ marginTop: 3
217
+ },
218
+ size: 10,
219
+ color: Colors.brand.slate,
220
+ weight: "regular"
221
+ }, 0, "% Vig")), /*#__PURE__*/React.createElement(View, {
222
+ style: {
223
+ alignItems: 'flex-end'
224
+ }
225
+ }, /*#__PURE__*/React.createElement(Text, {
226
+ theme: "header_2"
227
+ }, market.var_1_required ? `${MarketComponentHelpers.getVar1Label(market, latest_trade.var_1)} ` : '', MarketComponentHelpers.getOddsLabel(latest_trade.odds)), /*#__PURE__*/React.createElement(Text, {
228
+ style: {
229
+ marginTop: 3
230
+ },
231
+ size: 10,
232
+ color: Colors.brand.slate,
233
+ weight: "regular"
234
+ }, "Traded: ", moment(latest_trade.last_update_datetime).fromNow()))) : /*#__PURE__*/React.createElement(React.Fragment, null), consensus_price && market ? /*#__PURE__*/React.createElement(View, {
235
+ style: {
236
+ ...view_styles.body_row
237
+ }
238
+ }, /*#__PURE__*/React.createElement(View, {
239
+ style: {
240
+ flex: 1
241
+ }
242
+ }, /*#__PURE__*/React.createElement(Text, {
243
+ theme: "header_2"
244
+ }, "Consensus"), /*#__PURE__*/React.createElement(Text, {
245
+ style: {
246
+ marginTop: 3
247
+ },
248
+ size: 10,
249
+ color: Colors.brand.slate,
250
+ weight: "regular"
251
+ }, (consensus_price.vig_pct * 100).toFixed(2), "% Vig")), /*#__PURE__*/React.createElement(View, {
252
+ style: {
253
+ alignItems: 'flex-end'
254
+ }
255
+ }, /*#__PURE__*/React.createElement(Text, {
256
+ theme: "header_2"
257
+ }, market.var_1_required ? `${MarketComponentHelpers.getVar1Label(market, consensus_price.var_1)} ` : '', MarketComponentHelpers.getOddsLabel(consensus_price.odds)), /*#__PURE__*/React.createElement(Text, {
258
+ style: {
259
+ marginTop: 3
260
+ },
261
+ size: 10,
262
+ color: Colors.brand.slate,
263
+ weight: "regular"
264
+ }, "As of: ", moment(consensus_price.last_update_datetime).fromNow()))) : /*#__PURE__*/React.createElement(React.Fragment, null)), /*#__PURE__*/React.createElement(View, {
265
+ style: {
266
+ marginTop: 10
267
+ }
268
+ }, /*#__PURE__*/React.createElement(FlatList, {
269
+ data: visible_prices,
270
+ renderItem: renderPrices,
271
+ keyExtractor: item => item.external_price_id.toString()
272
+ }))), /*#__PURE__*/React.createElement(View, {
273
+ style: {
274
+ ...view_styles.section_footer
275
+ }
276
+ }, /*#__PURE__*/React.createElement(Button, {
277
+ title: "CLOSE",
278
+ backgroundColor: Colors.shades.white,
279
+ style: {
280
+ flex: 1
281
+ },
282
+ borderWidth: 1,
283
+ borderRadius: 4,
284
+ padding: 12,
285
+ onPress: () => onClose(),
286
+ borderColor: Colors.brand.electric,
287
+ title_color: Colors.brand.electric
288
+ })));
289
+ };
290
+ export default ExternalPriceComparison;
291
+ //# sourceMappingURL=ExternalPriceComparison.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useEffect","useState","ActivityIndicator","FlatList","View","Button","Text","Colors","MarketComponentApi","MarketComponentHelpers","Toggle","moment","view_styles","ExternalPriceComparison","price_key","contest_id","contest_type","maxHeight","market_id","participant_id","participant_type","external_name","init_side","onClose","module_data","setModuleData","loading","selected_side","trades","external_prices","event","athlete","team","market","tournament","match","setEnvironment","getData","prices","getExternalPrices","undefined","ts","getLatestTradesByEvents","market_ts","filter","lt","market_type","a","tm","side_id","as","getAthletesByIds","tms","getTeamsByIds","markets","getMarkets","mk","find","m","e","t","es","getEventsByEventIds","getTournamentsByTournamentIds","ms","getMatchesByMatchIds","trade_side","renderPrices","data","createElement","Fragment","style","body_row","flex","theme","item","marginTop","size","color","brand","slate","weight","vig_pct","toFixed","alignItems","var_1_required","getVar1Label","var_1","getOddsLabel","odds","last_update_datetime","fromNow","o_side_label","trade_side_label","getExternalPriceDetails","visible_prices","p","side","sort","b","localeCompare","consensus_price","toLowerCase","latest_trade","section","section_header","flexGrow","abbr_name","abbr","type","stat_label","flexDirection","title","padding","backgroundColor","shades","shade100","onPress","section_body","midnight","alignSelf","background_color","options","key","side_options","so","label","onSelectOption","option","selected_option","nativeID","paddingTop","borderBottomWidth","borderColor","shade600","paddingBottom","renderItem","keyExtractor","external_price_id","toString","section_footer","white","borderWidth","borderRadius","electric","title_color"],"sourceRoot":"../../../../src","sources":["MarketComponents/components/ExternalPriceComparison.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAClD,SAASC,iBAAiB,EAAEC,QAAQ,EAAEC,IAAI,QAAQ,cAAc;AAChE,SAASC,MAAM,EAAEC,IAAI,QAAQ,kBAAkB;AAC/C,OAAOC,MAAM,MAAM,wBAAwB;AAE3C,SAASC,kBAAkB,EAAEC,sBAAsB,QAAQ,QAAQ;AACnE,OAAOC,MAAM,MAAM,yBAAyB;AAC5C,OAAOC,MAAM,MAAM,aAAa;AAChC,SAASC,WAAW,QAAQ,wBAAwB;AAgBpD,MAAMC,uBAAuB,GAAGA,CAAC;EAAEC,SAAS;EAAEC,UAAU;EAAEC,YAAY;EAAEC,SAAS;EAAEC,SAAS;EAAEC,cAAc;EAAEC,gBAAgB;EAAEC,aAAa;EAAEC,SAAS;EAAEC;AAAqC,CAAC,KAAK;EACjM,MAAM,CAAEC,WAAW,EAAEC,aAAa,CAAE,GAAGxB,QAAQ,CAW5C;IACCyB,OAAO,EAAC,KAAK;IACbC,aAAa,EAAE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B,CAAC,CAACC,OAAO,CAAC,CAAQ,CACvJ,CACJ,CAAC,gBACN5F,KAAA,CAAAsE,aAAA,CAAAtE,KAAA,CAAAuE,QAAA,MAAI,CACH,CAAC,eACPvE,KAAA,CAAAsE,aAAA,CAACjE,IAAI;IAACmE,KAAK,EAAE;MAAEK,SAAS,EAAC;IAAG;EAAE,gBAC1B7E,KAAA,CAAAsE,aAAA,CAAClE,QAAQ;IACLiE,IAAI,EAAE2B,cAAe;IACrByC,UAAU,EAAErE,YAAa;IACzBsE,YAAY,EAAG9D,IAAI,IAAKA,IAAI,CAAC+D,iBAAiB,CAACC,QAAQ,CAAC;EAAE,CAC7D,CACC,CACJ,CAAC,eACP5I,KAAA,CAAAsE,aAAA,CAACjE,IAAI;IAACmE,KAAK,EAAE;MAAE,GAAG3D,WAAW,CAACgI;IAAe;EAAE,gBAC3C7I,KAAA,CAAAsE,aAAA,CAAChE,MAAM;IACH2G,KAAK,EAAC,OAAO;IACbE,eAAe,EAAE3G,MAAM,CAAC4G,MAAM,CAAC0B,KAAM;IACrCtE,KAAK,EAAE;MAAEE,IAAI,EAAC;IAAE,CAAE;IAClBqE,WAAW,EAAE,CAAE;IACfC,YAAY,EAAE,CAAE;IAChB9B,OAAO,EAAE,EAAG;IACZI,OAAO,EAAEA,CAAA,KAAM9F,OAAO,CAAC,CAAE;IACzB8G,WAAW,EAAE9H,MAAM,CAACwE,KAAK,CAACiE,QAAS;IACnCC,WAAW,EAAE1I,MAAM,CAACwE,KAAK,CAACiE;EAAS,CACtC,CACC,CAEJ,CAAC;AAEf,CAAC;AAED,eAAenI,uBAAuB","ignoreList":[]}
@@ -11,6 +11,7 @@ import OrderBookChart from './components/OrderBookChart';
11
11
  import BestAvailableOrderCard from './components/BestAvailableOrderCard';
12
12
  import OrderBookCard from './components/OrderBook';
13
13
  import MyOrderList from './components/MyOrderList';
14
+ import ExternalPriceComparison from './components/ExternalPriceComparison';
14
15
  export default {
15
16
  TeamEventMarket,
16
17
  TeamTournamentMarket,
@@ -21,6 +22,7 @@ export default {
21
22
  OrderBookChart,
22
23
  AthleteTournamentMarket,
23
24
  TeamEventList,
25
+ ExternalPriceComparison,
24
26
  TournamentMarket,
25
27
  MatchMarket,
26
28
  TournamentList,
@@ -1 +1 @@
1
- {"version":3,"names":["TeamEventMarket","AthleteMarket","EventMarket","AthleteTournamentMarket","TeamEventList","TournamentMarket","MatchMarket","TournamentList","TeamTournamentMarket","OrderBookChart","BestAvailableOrderCard","OrderBookCard","MyOrderList"],"sourceRoot":"../../../src","sources":["MarketComponents/index.tsx"],"mappings":"AAAA,OAAOA,eAAe,MAAM,8BAA8B;AAC1D,OAAOC,aAAa,MAAM,4BAA4B;AACtD,OAAOC,WAAW,MAAM,0BAA0B;AAClD,OAAOC,uBAAuB,MAAM,sCAAsC;AAC1E,OAAOC,aAAa,MAAM,4BAA4B;AACtD,OAAOC,gBAAgB,MAAM,+BAA+B;AAC5D,OAAOC,WAAW,MAAM,0BAA0B;AAClD,OAAOC,cAAc,MAAM,6BAA6B;AACxD,OAAOC,oBAAoB,MAAM,mCAAmC;AACpE,OAAOC,cAAc,MAAM,6BAA6B;AACxD,OAAOC,sBAAsB,MAAM,qCAAqC;AACxE,OAAOC,aAAa,MAAM,wBAAwB;AAClD,OAAOC,WAAW,MAAM,0BAA0B;AAElD,eAAe;EACXZ,eAAe;EACfQ,oBAAoB;EACpBP,aAAa;EACbS,sBAAsB;EACtBR,WAAW;EACXS,aAAa;EACbF,cAAc;EACdN,uBAAuB;EACvBC,aAAa;EACbC,gBAAgB;EAChBC,WAAW;EACXC,cAAc;EACdK;AACJ,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["TeamEventMarket","AthleteMarket","EventMarket","AthleteTournamentMarket","TeamEventList","TournamentMarket","MatchMarket","TournamentList","TeamTournamentMarket","OrderBookChart","BestAvailableOrderCard","OrderBookCard","MyOrderList","ExternalPriceComparison"],"sourceRoot":"../../../src","sources":["MarketComponents/index.tsx"],"mappings":"AAAA,OAAOA,eAAe,MAAM,8BAA8B;AAC1D,OAAOC,aAAa,MAAM,4BAA4B;AACtD,OAAOC,WAAW,MAAM,0BAA0B;AAClD,OAAOC,uBAAuB,MAAM,sCAAsC;AAC1E,OAAOC,aAAa,MAAM,4BAA4B;AACtD,OAAOC,gBAAgB,MAAM,+BAA+B;AAC5D,OAAOC,WAAW,MAAM,0BAA0B;AAClD,OAAOC,cAAc,MAAM,6BAA6B;AACxD,OAAOC,oBAAoB,MAAM,mCAAmC;AACpE,OAAOC,cAAc,MAAM,6BAA6B;AACxD,OAAOC,sBAAsB,MAAM,qCAAqC;AACxE,OAAOC,aAAa,MAAM,wBAAwB;AAClD,OAAOC,WAAW,MAAM,0BAA0B;AAClD,OAAOC,uBAAuB,MAAM,sCAAsC;AAE1E,eAAe;EACXb,eAAe;EACfQ,oBAAoB;EACpBP,aAAa;EACbS,sBAAsB;EACtBR,WAAW;EACXS,aAAa;EACbF,cAAc;EACdN,uBAAuB;EACvBC,aAAa;EACbS,uBAAuB;EACvBR,gBAAgB;EAChBC,WAAW;EACXC,cAAc;EACdK;AACJ,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../commonjs/Components/Button.js"],"names":[],"mappings":";;AAWA;;;;;;;;;;;;;;;;QAgFC"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../commonjs/Components/Button.js"],"names":[],"mappings":";;AAWA;;;;;;;;;;;;;;;;QA8EC"}
@@ -0,0 +1,15 @@
1
+ export const __esModule: boolean;
2
+ export default Toggle;
3
+ declare function Toggle({ options, background_color, active_title_color, toggle_padding, border_radius, inactive_title_color, inactive_toggle_color, active_toggle_color, selected_option, onSelectOption }: {
4
+ options: any;
5
+ background_color: any;
6
+ active_title_color: any;
7
+ toggle_padding: any;
8
+ border_radius: any;
9
+ inactive_title_color: any;
10
+ inactive_toggle_color: any;
11
+ active_toggle_color: any;
12
+ selected_option: any;
13
+ onSelectOption: any;
14
+ }): any;
15
+ //# sourceMappingURL=Toggle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../../../commonjs/Components/Toggle.js"],"names":[],"mappings":";;AAaA;;;;;;;;;;;QAgEC"}
@@ -3,6 +3,7 @@ export namespace MarketComponentApi {
3
3
  function setEnvironment(): void;
4
4
  function getMarkets(): Promise<any>;
5
5
  function getLatestTradesByEvents(event_type: any, event_ids: any): Promise<any>;
6
+ function getExternalPrices(contest_type: any, contest_id: any, market_id: any, side: any, participant_id: any, participant_type: any, external_name: any): Promise<any>;
6
7
  function getMyAction(): Promise<any>;
7
8
  function getMyHistory(player_id: any, range: any): Promise<any>;
8
9
  function getEventsByEventIds(event_ids: any): Promise<any>;
@@ -47,5 +48,10 @@ export namespace MarketComponentHelpers {
47
48
  function getOrderTitleForTeamEvent(order: any, market: any, event: any, athlete: any, exotic: any): string | undefined;
48
49
  function getOrderTitleForTournament(order: any, market: any, tournament: any, athlete: any, team: any): any;
49
50
  function getOrderTitleForMatch(order: any, market: any, match: any, athlete: any, team: any): any;
51
+ function getExternalPriceDetails(contest_type: any, market: any, event: any, tournament: any, match: any): {
52
+ contest_title: string;
53
+ o_side_label: string;
54
+ trade_side_label: string;
55
+ };
50
56
  }
51
57
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commonjs/MarketComponents/api/index.js"],"names":[],"mappings":";;IAekB,gCAMf;IACW,oCAQX;IACwB,gFAcxB;IACY,qCAQZ;IACa,gEAQb;IACoB,2DAapB;IACqB,4DAarB;IACiB,0DAajB;IAC8B,0EAa9B;IACc,oDAad;IACW,oCAOX;IACuB,gDAQvB;IACoB,yDAQpB;IACsB,4DAOtB;IACuB,kEAQvB;IACa,oDAYb;IACe,uDAOf;IACuB,+DASvB;;;IAGY;;;MAOZ;IACa,kEAcb;IACa,wDASb;IACgC,mEAehC;IACqB;;;kBAiCrB;IACU,kCA0BV;IACgB;;;MAYhB;IACoB;;;kBA4CpB;IACoB,kEAepB;IACyB,4EAezB;IACoB,kEAepB;IACmB,6CAWnB;IAC0B,uHAkC1B;IAC2B,4GAkC3B;IACsB,kGAkCtB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commonjs/MarketComponents/api/index.js"],"names":[],"mappings":";;IAekB,gCAMf;IACW,oCAQX;IACwB,gFAcxB;IACkB,wKAiBlB;IACY,qCAQZ;IACa,gEAQb;IACoB,2DAapB;IACqB,4DAarB;IACiB,0DAajB;IAC8B,0EAa9B;IACc,oDAad;IACW,oCAOX;IACuB,gDAQvB;IACoB,yDAQpB;IACsB,4DAOtB;IACuB,kEAQvB;IACa,oDAYb;IACe,uDAOf;IACuB,+DAQvB;;;IAGY;;;MAOZ;IACa,kEAcb;IACa,wDASb;IACgC,mEAehC;IACqB;;;kBAiCrB;IACU,kCA0BV;IACgB;;;MAYhB;IACoB;;;kBA4CpB;IACoB,kEAepB;IACyB,4EAezB;IACoB,kEAepB;IACmB,6CAWnB;IAC0B,uHAkC1B;IAC2B,4GAkC3B;IACsB,kGAkCtB;IACwB;;;;MAyDxB"}
@@ -0,0 +1,15 @@
1
+ export const __esModule: boolean;
2
+ export default ExternalPriceComparison;
3
+ declare function ExternalPriceComparison({ price_key, contest_id, contest_type, maxHeight, market_id, participant_id, participant_type, external_name, init_side, onClose }: {
4
+ price_key: any;
5
+ contest_id: any;
6
+ contest_type: any;
7
+ maxHeight: any;
8
+ market_id: any;
9
+ participant_id: any;
10
+ participant_type: any;
11
+ external_name: any;
12
+ init_side: any;
13
+ onClose: any;
14
+ }): any;
15
+ //# sourceMappingURL=ExternalPriceComparison.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExternalPriceComparison.d.ts","sourceRoot":"","sources":["../../../../../commonjs/MarketComponents/components/ExternalPriceComparison.js"],"names":[],"mappings":";;AAiBA;;;;;;;;;;;QAwRC"}
@@ -9,6 +9,7 @@ declare namespace _default {
9
9
  let OrderBookChart: any;
10
10
  let AthleteTournamentMarket: any;
11
11
  let TeamEventList: any;
12
+ let ExternalPriceComparison: any;
12
13
  let TournamentMarket: any;
13
14
  let MatchMarket: any;
14
15
  let TournamentList: any;
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../module/Components/Button.js"],"names":[],"mappings":";AAIA;;;;;;;;;;;;;;;;6GAgFC;qBAnFgE,cAAc;kBAD7D,OAAO"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../module/Components/Button.js"],"names":[],"mappings":";AAIA;;;;;;;;;;;;;;;;6GA8EC;qBAjFgE,cAAc;kBAD7D,OAAO"}
@@ -882,7 +882,6 @@ declare function SpringView({ style, children, from, to, slide, onResolve }: {
882
882
  autoFocus?: boolean | undefined;
883
883
  onSelect?: React.ReactEventHandler<HTMLDivElement> | undefined;
884
884
  onSubmit?: React.FormEventHandler<HTMLDivElement> | undefined;
885
- content?: string | undefined;
886
885
  onError?: React.ReactEventHandler<HTMLDivElement> | undefined;
887
886
  onLoad?: React.ReactEventHandler<HTMLDivElement> | undefined;
888
887
  onLoadStart?: React.ReactEventHandler<HTMLDivElement> | undefined;
@@ -1097,6 +1096,7 @@ declare function SpringView({ style, children, from, to, slide, onResolve }: {
1097
1096
  translate?: "yes" | "no" | undefined;
1098
1097
  radioGroup?: string | undefined;
1099
1098
  about?: string | undefined;
1099
+ content?: string | undefined;
1100
1100
  datatype?: string | undefined;
1101
1101
  inlist?: any;
1102
1102
  prefix?: string | undefined;
@@ -0,0 +1,16 @@
1
+ export default Toggle;
2
+ declare function Toggle({ options, background_color, active_title_color, toggle_padding, border_radius, inactive_title_color, inactive_toggle_color, active_toggle_color, selected_option, onSelectOption }: {
3
+ options: any;
4
+ background_color: any;
5
+ active_title_color: any;
6
+ toggle_padding: any;
7
+ border_radius: any;
8
+ inactive_title_color: any;
9
+ inactive_toggle_color: any;
10
+ active_toggle_color: any;
11
+ selected_option: any;
12
+ onSelectOption: any;
13
+ }): React.CElement<import("react-native").ViewProps, View>;
14
+ import { View } from "react-native";
15
+ import React from "react";
16
+ //# sourceMappingURL=Toggle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../../../module/Components/Toggle.js"],"names":[],"mappings":";AAIA;;;;;;;;;;;2DAgEC;qBAnE4D,cAAc;kBAD3C,OAAO"}
@@ -2,6 +2,7 @@ export namespace MarketComponentApi {
2
2
  function setEnvironment(): void;
3
3
  function getMarkets(): Promise<any>;
4
4
  function getLatestTradesByEvents(event_type: any, event_ids: any): Promise<any>;
5
+ function getExternalPrices(contest_type: any, contest_id: any, market_id: any, side: any, participant_id: any, participant_type: any, external_name: any): Promise<any>;
5
6
  function getMyAction(): Promise<any>;
6
7
  function getMyHistory(player_id: any, range: any): Promise<any>;
7
8
  function getEventsByEventIds(event_ids: any): Promise<any>;
@@ -46,5 +47,10 @@ export namespace MarketComponentHelpers {
46
47
  function getOrderTitleForTeamEvent(order: any, market: any, event: any, athlete: any, exotic: any): string | undefined;
47
48
  function getOrderTitleForTournament(order: any, market: any, tournament: any, athlete: any, team: any): any;
48
49
  function getOrderTitleForMatch(order: any, market: any, match: any, athlete: any, team: any): any;
50
+ function getExternalPriceDetails(contest_type: any, market: any, event: any, tournament: any, match: any): {
51
+ contest_title: string;
52
+ o_side_label: string;
53
+ trade_side_label: string;
54
+ };
49
55
  }
50
56
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../module/MarketComponents/api/index.js"],"names":[],"mappings":";IASkB,gCAMf;IACW,oCAQX;IACwB,gFAcxB;IACY,qCAQZ;IACa,gEAQb;IACoB,2DAapB;IACqB,4DAarB;IACiB,0DAajB;IAC8B,0EAa9B;IACc,oDAad;IACW,oCAOX;IACuB,gDAQvB;IACoB,yDAQpB;IACsB,4DAOtB;IACuB,kEAQvB;IACa,oDAYb;IACe,uDAOf;IACuB,+DASvB;;;IAGY;;;MAOZ;IACa,kEAcb;IACa,wDASb;IACgC,mEAehC;IACqB;;;kBAiCrB;IACU,kCA0BV;IACgB;;;MAYhB;IACoB;;;kBA4CpB;IACoB,kEAepB;IACyB,4EAezB;IACoB,kEAepB;IACmB,6CAWnB;IAC0B,uHAkC1B;IAC2B,4GAkC3B;IACsB,kGAkCtB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../module/MarketComponents/api/index.js"],"names":[],"mappings":";IASkB,gCAMf;IACW,oCAQX;IACwB,gFAcxB;IACkB,wKAiBlB;IACY,qCAQZ;IACa,gEAQb;IACoB,2DAapB;IACqB,4DAarB;IACiB,0DAajB;IAC8B,0EAa9B;IACc,oDAad;IACW,oCAOX;IACuB,gDAQvB;IACoB,yDAQpB;IACsB,4DAOtB;IACuB,kEAQvB;IACa,oDAYb;IACe,uDAOf;IACuB,+DAQvB;;;IAGY;;;MAOZ;IACa,kEAcb;IACa,wDASb;IACgC,mEAehC;IACqB;;;kBAiCrB;IACU,kCA0BV;IACgB;;;MAYhB;IACoB;;;kBA4CpB;IACoB,kEAepB;IACyB,4EAezB;IACoB,kEAepB;IACmB,6CAWnB;IAC0B,uHAkC1B;IAC2B,4GAkC3B;IACsB,kGAkCtB;IACwB;;;;MAyDxB"}
@@ -0,0 +1,16 @@
1
+ export default ExternalPriceComparison;
2
+ declare function ExternalPriceComparison({ price_key, contest_id, contest_type, maxHeight, market_id, participant_id, participant_type, external_name, init_side, onClose }: {
3
+ price_key: any;
4
+ contest_id: any;
5
+ contest_type: any;
6
+ maxHeight: any;
7
+ market_id: any;
8
+ participant_id: any;
9
+ participant_type: any;
10
+ external_name: any;
11
+ init_side: any;
12
+ onClose: any;
13
+ }): React.CElement<import("react-native").ViewProps, View>;
14
+ import { View } from 'react-native';
15
+ import React from 'react';
16
+ //# sourceMappingURL=ExternalPriceComparison.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExternalPriceComparison.d.ts","sourceRoot":"","sources":["../../../../../module/MarketComponents/components/ExternalPriceComparison.js"],"names":[],"mappings":";AAQA;;;;;;;;;;;2DAwRC;qBA/RiD,cAAc;kBADrB,OAAO"}
@@ -8,6 +8,7 @@ declare namespace _default {
8
8
  export { OrderBookChart };
9
9
  export { AthleteTournamentMarket };
10
10
  export { TeamEventList };
11
+ export { ExternalPriceComparison };
11
12
  export { TournamentMarket };
12
13
  export { MatchMarket };
13
14
  export { TournamentList };
@@ -23,6 +24,7 @@ import OrderBookCard from './components/OrderBook';
23
24
  import OrderBookChart from './components/OrderBookChart';
24
25
  import AthleteTournamentMarket from './components/AthleteTournamentMarket';
25
26
  import TeamEventList from './components/TeamEventList';
27
+ import ExternalPriceComparison from './components/ExternalPriceComparison';
26
28
  import TournamentMarket from './components/TournamentMarket';
27
29
  import MatchMarket from './components/MatchMarket';
28
30
  import TournamentList from './components/TournamentList';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../module/MarketComponents/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;4BAA4B,8BAA8B;iCAQzB,mCAAmC;0BAP1C,4BAA4B;mCASnB,qCAAqC;wBARhD,0BAA0B;0BASxB,wBAAwB;2BAFvB,6BAA6B;oCANpB,sCAAsC;0BAChD,4BAA4B;6BACzB,+BAA+B;wBACpC,0BAA0B;2BACvB,6BAA6B;wBAKhC,0BAA0B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../module/MarketComponents/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;4BAA4B,8BAA8B;iCAQzB,mCAAmC;0BAP1C,4BAA4B;mCASnB,qCAAqC;wBARhD,0BAA0B;0BASxB,wBAAwB;2BAFvB,6BAA6B;oCANpB,sCAAsC;0BAChD,4BAA4B;oCASlB,sCAAsC;6BAR7C,+BAA+B;wBACpC,0BAA0B;2BACvB,6BAA6B;wBAKhC,0BAA0B"}
@@ -0,0 +1,19 @@
1
+ import React from "react";
2
+ type ToggleProps = {
3
+ options: {
4
+ key: string;
5
+ label: string;
6
+ }[];
7
+ background_color?: string;
8
+ toggle_padding?: number;
9
+ border_radius?: number;
10
+ active_toggle_color?: string;
11
+ inactive_toggle_color?: string;
12
+ inactive_title_color?: string;
13
+ active_title_color?: string;
14
+ selected_option?: string;
15
+ onSelectOption: (key: string) => void;
16
+ };
17
+ declare const Toggle: ({ options, background_color, active_title_color, toggle_padding, border_radius, inactive_title_color, inactive_toggle_color, active_toggle_color, selected_option, onSelectOption }: ToggleProps) => React.JSX.Element;
18
+ export default Toggle;
19
+ //# sourceMappingURL=Toggle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../../../src/Components/Toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAMvC,KAAK,WAAW,GAAG;IACf,OAAO,EAAE;QAAC,GAAG,EAAC,MAAM,CAAC;QAAC,KAAK,EAAC,MAAM,CAAA;KAAC,EAAE,CAAC;IACtC,gBAAgB,CAAC,EAAC,MAAM,CAAC;IACzB,cAAc,CAAC,EAAC,MAAM,CAAC;IACvB,aAAa,CAAC,EAAC,MAAM,CAAC;IACtB,mBAAmB,CAAC,EAAC,MAAM,CAAC;IAC5B,qBAAqB,CAAC,EAAC,MAAM,CAAC;IAC9B,oBAAoB,CAAC,EAAC,MAAM,CAAC;IAC7B,kBAAkB,CAAC,EAAC,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,EAAC,CAAC,GAAG,EAAC,MAAM,KAAK,IAAI,CAAA;CACtC,CAAA;AACD,QAAA,MAAM,MAAM,wLAAwL,WAAW,sBAoD9M,CAAA;AAOD,eAAe,MAAM,CAAA"}
@@ -1,9 +1,10 @@
1
- import type { AthleteProps, BestAvailableResponseProps, ContestStatProps, EventOrderStatProps, EventProps, LeagueProps, MarketProps, MarketSideOptionProps, MatchProps, OrderProps, PodcastProps, TeamProps, TournamentProps } from "../../types";
1
+ import type { AthleteProps, BestAvailableResponseProps, ContestStatProps, EventOrderStatProps, EventProps, ExternalPriceProps, LeagueProps, MarketProps, MarketSideOptionProps, MatchProps, OrderProps, PodcastProps, TeamProps, TournamentProps, TradeProps } from "../../types";
2
2
  export { MarketComponentApi, MarketComponentHelpers };
3
3
  declare const MarketComponentApi: {
4
4
  setEnvironment: () => void;
5
5
  getMarkets: () => Promise<MarketProps[]>;
6
- getLatestTradesByEvents: (event_type: string, event_ids: string[]) => Promise<any>;
6
+ getLatestTradesByEvents: (event_type: string, event_ids: string[]) => Promise<TradeProps[]>;
7
+ getExternalPrices: (contest_type: string, contest_id: string, market_id: string, side?: string, participant_id?: string, participant_type?: string, external_name?: string) => Promise<ExternalPriceProps[]>;
7
8
  getMyAction: () => Promise<OrderProps[]>;
8
9
  getMyHistory: (player_id: string, range: number) => Promise<OrderProps[]>;
9
10
  getEventsByEventIds: (event_ids: string[]) => Promise<EventProps[]>;
@@ -48,5 +49,10 @@ declare const MarketComponentHelpers: {
48
49
  getOrderTitleForTeamEvent: (order: OrderProps, market: MarketProps, event: EventProps, athlete?: AthleteProps, exotic?: any) => string | undefined;
49
50
  getOrderTitleForTournament: (order: OrderProps, market: MarketProps, tournament: TournamentProps, athlete?: AthleteProps, team?: TeamProps) => string | undefined;
50
51
  getOrderTitleForMatch: (order: OrderProps, market: MarketProps, match: MatchProps, athlete?: AthleteProps, team?: TeamProps) => string | undefined;
52
+ getExternalPriceDetails: (contest_type: string, market?: MarketProps, event?: EventProps, tournament?: TournamentProps, match?: MatchProps) => {
53
+ contest_title: string;
54
+ o_side_label: string;
55
+ trade_side_label: string;
56
+ };
51
57
  };
52
58
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/MarketComponents/api/index.ts"],"names":[],"mappings":"AAEA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AAa,eAAe,YAAW,YAAY,SAAQ,SAAS,KAAE,MAAM,GAAG,SAAS;mCAuB3H,UAAU,UAAS,WAAW,SAAQ,UAAU,YAAW,YAAY,SAAQ,SAAS,KAAE,MAAM,GAAG,SAAS;4CAuBpG,MAAM,WAAU,WAAW,UAAS,UAAU,eAAc,eAAe,UAAS,UAAU;;;;;CAwCxI,CAAA"}
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ type ExternalPriceComparisonProps = {
3
+ price_key: string;
4
+ contest_id: string;
5
+ contest_type: string;
6
+ market_id: string;
7
+ maxHeight?: number;
8
+ participant_type?: string;
9
+ external_name?: string;
10
+ participant_id?: string;
11
+ init_side?: string;
12
+ onClose: () => void;
13
+ };
14
+ declare const ExternalPriceComparison: ({ price_key, contest_id, contest_type, maxHeight, market_id, participant_id, participant_type, external_name, init_side, onClose }: ExternalPriceComparisonProps) => React.JSX.Element;
15
+ export default ExternalPriceComparison;
16
+ //# sourceMappingURL=ExternalPriceComparison.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExternalPriceComparison.d.ts","sourceRoot":"","sources":["../../../../../src/MarketComponents/components/ExternalPriceComparison.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAUnD,KAAK,4BAA4B,GAAG;IAChC,SAAS,EAAC,MAAM,CAAC;IACjB,UAAU,EAAC,MAAM,CAAC;IAClB,YAAY,EAAC,MAAM,CAAC;IACpB,SAAS,EAAC,MAAM,CAAC;IACjB,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAC,MAAM,CAAC;IACzB,aAAa,CAAC,EAAC,MAAM,CAAC;IACtB,cAAc,CAAC,EAAC,MAAM,CAAC;IACvB,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,OAAO,EAAC,MAAM,IAAI,CAAA;CACrB,CAAA;AAGD,QAAA,MAAM,uBAAuB,uIAAuI,4BAA4B,sBAwL/L,CAAA;AAED,eAAe,uBAAuB,CAAA"}
@@ -176,6 +176,18 @@ declare const _default: {
176
176
  onTradeLongPress?: (trade: import("../types").TradeProps) => void;
177
177
  onViewAdditionalMarkets?: (event_id: string, event_type: string) => void;
178
178
  }) => import("react").JSX.Element;
179
+ ExternalPriceComparison: ({ price_key, contest_id, contest_type, maxHeight, market_id, participant_id, participant_type, external_name, init_side, onClose }: {
180
+ price_key: string;
181
+ contest_id: string;
182
+ contest_type: string;
183
+ market_id: string;
184
+ maxHeight?: number;
185
+ participant_type?: string;
186
+ external_name?: string;
187
+ participant_id?: string;
188
+ init_side?: string;
189
+ onClose: () => void;
190
+ }) => import("react").JSX.Element;
179
191
  TournamentMarket: ({ tournament, wrap_markets, width, market_selector_location, hide_match_liquidity, show_grades, hide_participant_liquidity, league, markets, latest_trades, hide_liquidity, best_available_orders, event_order_stats, match_available_orders, match_latest_trades, match_order_stats, activate_loading, onView, onTradeLongPress, onViewAdditionalMarkets, onOrder, onActivate, onShare }: {
180
192
  tournament: import("../types").TournamentProps;
181
193
  league?: import("../types").LeagueProps;