@agg-build/ui 4.24.0 → 4.26.1
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/dist/{chunk-Q5NJCH5O.mjs → chunk-6CZNJSRL.mjs} +2 -2
- package/dist/{chunk-YYGS6S7N.mjs → chunk-7G2GTWAS.mjs} +17 -8
- package/dist/{chunk-MDCFCGA3.mjs → chunk-EJXA32MG.mjs} +1 -1
- package/dist/{chunk-HZXHDH6G.mjs → chunk-KN7JN7F5.mjs} +148 -66
- package/dist/{chunk-G4KXZ5XX.mjs → chunk-PN5HEBFC.mjs} +4 -4
- package/dist/{event-market-YBWA2HRJ.mjs → event-market-A276CAYG.mjs} +3 -3
- package/dist/events.js +16 -8
- package/dist/events.mjs +2 -2
- package/dist/index.js +165 -76
- package/dist/index.mjs +5 -5
- package/dist/pages.js +165 -76
- package/dist/pages.mjs +5 -5
- package/dist/trading.js +147 -66
- package/dist/trading.mjs +1 -1
- package/dist/types/trading/place-order/index.place-order.utils.d.mts +20 -4
- package/dist/types/trading/place-order/index.place-order.utils.d.ts +20 -4
- package/package.json +3 -3
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
MarketDetails,
|
|
5
5
|
MarketDetailsList,
|
|
6
6
|
isErrorWithStatus
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7G2GTWAS.mjs";
|
|
8
8
|
import {
|
|
9
9
|
PlaceOrder,
|
|
10
10
|
SettlementDetails,
|
|
11
11
|
useResolvedMarketClaim
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KN7JN7F5.mjs";
|
|
13
13
|
import {
|
|
14
14
|
getDisplayOutcomePrice,
|
|
15
15
|
resolveHeaderOutcomeItems,
|
|
@@ -806,6 +806,7 @@ import {
|
|
|
806
806
|
useMarketOrderbook as useMarketOrderbook2,
|
|
807
807
|
useRollingChartWindow as useRollingChartWindow2,
|
|
808
808
|
useSdkUiConfig as useSdkUiConfig4,
|
|
809
|
+
useSettlementDetailsData,
|
|
809
810
|
useVenueEvent
|
|
810
811
|
} from "@agg-build/hooks";
|
|
811
812
|
import { useEffect as useEffect2, useMemo as useMemo6, useRef as useRef2, useState as useState3 } from "react";
|
|
@@ -2389,7 +2390,7 @@ var EventListItemDetailsContent = ({
|
|
|
2389
2390
|
recurringMarkets,
|
|
2390
2391
|
sportsLiveState
|
|
2391
2392
|
}) => {
|
|
2392
|
-
var _a, _b, _c, _d, _e, _f;
|
|
2393
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
2393
2394
|
const [selectedChartType, setSelectedChartType] = useState3("line");
|
|
2394
2395
|
const [chartView, setChartView] = useState3(defaultChartView);
|
|
2395
2396
|
const lastAppliedEventSyncKeyRef = useRef2(null);
|
|
@@ -2401,10 +2402,18 @@ var EventListItemDetailsContent = ({
|
|
|
2401
2402
|
const labels = useLabels7();
|
|
2402
2403
|
const tradingContext = useEventTradingContext();
|
|
2403
2404
|
const eventSyncKey = useMemo6(() => resolveEventDetailsSyncKey(event), [event]);
|
|
2405
|
+
const { eventQuery: deferredDetailsQuery } = useSettlementDetailsData({
|
|
2406
|
+
eventId: event.id,
|
|
2407
|
+
enabled: true,
|
|
2408
|
+
needsEvent: event.detailsDeferred === true,
|
|
2409
|
+
needsMarket: false
|
|
2410
|
+
});
|
|
2411
|
+
const summaryDescription = (_b = (_a = deferredDetailsQuery.data) == null ? void 0 : _a.description) != null ? _b : event.description;
|
|
2412
|
+
const summarySettlementDiff = (_d = (_c = deferredDetailsQuery.data) == null ? void 0 : _c.settlementDiff) != null ? _d : event.settlementDiff;
|
|
2404
2413
|
const resolvedEventTradingState = useMemo6(() => {
|
|
2405
2414
|
return eventTradingState != null ? eventTradingState : resolveEventTradingState(event);
|
|
2406
2415
|
}, [event, eventTradingState]);
|
|
2407
|
-
const scopedSelectedMarket = (tradingContext == null ? void 0 : tradingContext.selectedEventId) === event.id ? (
|
|
2416
|
+
const scopedSelectedMarket = (tradingContext == null ? void 0 : tradingContext.selectedEventId) === event.id ? (_e = tradingContext.selectedMarket) != null ? _e : resolvedEventTradingState.primaryMarket : resolvedEventTradingState.primaryMarket;
|
|
2408
2417
|
const venueMarkets = useMemo6(
|
|
2409
2418
|
() => resolvedEventTradingState.displayMarkets,
|
|
2410
2419
|
[resolvedEventTradingState.displayMarkets]
|
|
@@ -2443,7 +2452,7 @@ var EventListItemDetailsContent = ({
|
|
|
2443
2452
|
bestMidpoint: void 0,
|
|
2444
2453
|
bestMidpointVenue: void 0
|
|
2445
2454
|
};
|
|
2446
|
-
const restMidpoints = (
|
|
2455
|
+
const restMidpoints = (_f = resolvedMidpointsResult.bestMidpointsByOutcomeId) != null ? _f : resolvedMidpointsResult.prices;
|
|
2447
2456
|
const bestMidpoint = resolvedMidpointsResult.bestMidpoint;
|
|
2448
2457
|
const restBestPrices = resolvedMidpointsResult.bestPrices;
|
|
2449
2458
|
const bestPrices = useMemo6(
|
|
@@ -2548,7 +2557,7 @@ var EventListItemDetailsContent = ({
|
|
|
2548
2557
|
Card,
|
|
2549
2558
|
{
|
|
2550
2559
|
className: cn("group/agg-event-details", detailsBaseCardClassName, classNames == null ? void 0 : classNames.root),
|
|
2551
|
-
"aria-label": ariaLabel != null ? ariaLabel : [resolvedTitle.title, (
|
|
2560
|
+
"aria-label": ariaLabel != null ? ariaLabel : [resolvedTitle.title, (_g = recurringMarkets == null ? void 0 : recurringMarkets.windowLabel) != null ? _g : resolvedTitle.timestampLabel].filter(Boolean).join(" "),
|
|
2552
2561
|
onClick: onClick ? () => onClick(event) : void 0,
|
|
2553
2562
|
children: [
|
|
2554
2563
|
/* @__PURE__ */ jsxs5(
|
|
@@ -2645,7 +2654,7 @@ var EventListItemDetailsContent = ({
|
|
|
2645
2654
|
{
|
|
2646
2655
|
role: "timer",
|
|
2647
2656
|
"aria-live": "off",
|
|
2648
|
-
"aria-label": (
|
|
2657
|
+
"aria-label": (_h = recurringMarkets.countdownAriaLabel) != null ? _h : void 0,
|
|
2649
2658
|
className: "flex shrink-0 items-center gap-1.5 text-agg-foreground",
|
|
2650
2659
|
children: [
|
|
2651
2660
|
/* @__PURE__ */ jsx7(
|
|
@@ -2666,7 +2675,7 @@ var EventListItemDetailsContent = ({
|
|
|
2666
2675
|
{
|
|
2667
2676
|
className: classNames == null ? void 0 : classNames.headerPills,
|
|
2668
2677
|
options: marketOptions,
|
|
2669
|
-
selectedValue: (
|
|
2678
|
+
selectedValue: (_i = scopedSelectedMarket == null ? void 0 : scopedSelectedMarket.id) != null ? _i : "",
|
|
2670
2679
|
onChange: (marketId) => {
|
|
2671
2680
|
tradingContext == null ? void 0 : tradingContext.selectMarket(marketId);
|
|
2672
2681
|
setChartView("selected");
|
|
@@ -2731,7 +2740,7 @@ var EventListItemDetailsContent = ({
|
|
|
2731
2740
|
selectedChartType,
|
|
2732
2741
|
venueInfo,
|
|
2733
2742
|
venueMarkets,
|
|
2734
|
-
selectedMarketId: (
|
|
2743
|
+
selectedMarketId: (_j = scopedSelectedMarket == null ? void 0 : scopedSelectedMarket.id) != null ? _j : null,
|
|
2735
2744
|
livePrices,
|
|
2736
2745
|
restMidpoints,
|
|
2737
2746
|
bestMidpoint,
|
|
@@ -2803,7 +2812,7 @@ var EventListItemDetailsContent = ({
|
|
|
2803
2812
|
}
|
|
2804
2813
|
)
|
|
2805
2814
|
] }),
|
|
2806
|
-
|
|
2815
|
+
summaryDescription || summarySettlementDiff ? /* @__PURE__ */ jsx7(SettlementSummary, { content: summaryDescription, settlementDiff: summarySettlementDiff }) : null
|
|
2807
2816
|
]
|
|
2808
2817
|
}
|
|
2809
2818
|
);
|
|
@@ -1193,6 +1193,7 @@ var formatChainIdLabel = (chainId) => {
|
|
|
1193
1193
|
|
|
1194
1194
|
// src/trading/place-order/index.place-order.utils.ts
|
|
1195
1195
|
import {
|
|
1196
|
+
LIMIT_PRICE_RAW_SCALE,
|
|
1196
1197
|
Venue as Venue4
|
|
1197
1198
|
} from "@agg-build/sdk";
|
|
1198
1199
|
var ATOMIC_UNITS = 1e6;
|
|
@@ -1512,13 +1513,16 @@ var getPlaceOrderBuyPayout = (quoteData) => {
|
|
|
1512
1513
|
var _a;
|
|
1513
1514
|
return (_a = quoteData.estimatedPayout) != null ? _a : quoteData.totalFilled;
|
|
1514
1515
|
};
|
|
1515
|
-
var getPlaceOrderSellProceeds = (quoteData) =>
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
);
|
|
1516
|
+
var getPlaceOrderSellProceeds = (quoteData) => {
|
|
1517
|
+
var _a;
|
|
1518
|
+
return (_a = quoteData.estimatedNetProceeds) != null ? _a : Math.max(
|
|
1519
|
+
0,
|
|
1520
|
+
quoteData.rawExecCost - quoteData.fills.reduce((sum, fill) => {
|
|
1521
|
+
var _a2, _b;
|
|
1522
|
+
return sum + ((_a2 = fill.venueFee) != null ? _a2 : 0) + ((_b = fill.builderFee) != null ? _b : 0);
|
|
1523
|
+
}, 0)
|
|
1524
|
+
);
|
|
1525
|
+
};
|
|
1522
1526
|
var getPlaceOrderQuoteValue = (quoteData, tradeSide) => tradeSide === "sell" ? getPlaceOrderSellProceeds(quoteData) : getPlaceOrderBuyPayout(quoteData);
|
|
1523
1527
|
var resolvePlaceOrderNetResult = ({
|
|
1524
1528
|
quoteData,
|
|
@@ -2874,6 +2878,38 @@ var isPercentageBelowMinimum = (value, minimumValue) => {
|
|
|
2874
2878
|
if (parsedValue === null) return false;
|
|
2875
2879
|
return parsedValue < minimumValue;
|
|
2876
2880
|
};
|
|
2881
|
+
var ceilDiv = (numerator, denominator) => {
|
|
2882
|
+
return (numerator + denominator - BigInt(1)) / denominator;
|
|
2883
|
+
};
|
|
2884
|
+
var toRaw6 = (value) => {
|
|
2885
|
+
const normalizedValue = Number.isFinite(value) ? Math.max(0, value) : 0;
|
|
2886
|
+
return Math.ceil(normalizedValue * Number(LIMIT_PRICE_RAW_SCALE)).toString();
|
|
2887
|
+
};
|
|
2888
|
+
var parseSizeStepRaw = (sizeStepRaw) => {
|
|
2889
|
+
if (!sizeStepRaw || !/^[1-9]\d*$/.test(sizeStepRaw)) return BigInt(1);
|
|
2890
|
+
return BigInt(sizeStepRaw);
|
|
2891
|
+
};
|
|
2892
|
+
var toLimitSizeRaw = ({
|
|
2893
|
+
amount,
|
|
2894
|
+
limitPriceRaw,
|
|
2895
|
+
side,
|
|
2896
|
+
sizeStepRaw
|
|
2897
|
+
}) => {
|
|
2898
|
+
const step = parseSizeStepRaw(sizeStepRaw);
|
|
2899
|
+
if (step <= BigInt(1)) {
|
|
2900
|
+
if (side === "sell") return toRaw6(amount);
|
|
2901
|
+
const spendRaw = BigInt(toRaw6(amount));
|
|
2902
|
+
const priceRaw = BigInt(limitPriceRaw);
|
|
2903
|
+
return ceilDiv(spendRaw * LIMIT_PRICE_RAW_SCALE, priceRaw).toString();
|
|
2904
|
+
}
|
|
2905
|
+
const rawSize = side === "sell" ? BigInt(toRaw6(amount)) : BigInt(toRaw6(amount)) * LIMIT_PRICE_RAW_SCALE / BigInt(limitPriceRaw);
|
|
2906
|
+
return (rawSize / step * step).toString();
|
|
2907
|
+
};
|
|
2908
|
+
var isLimitSizeBelowMinimum = (sizeRaw, minSizeRaw) => {
|
|
2909
|
+
const size = BigInt(sizeRaw);
|
|
2910
|
+
if (size <= BigInt(0)) return true;
|
|
2911
|
+
return !!minSizeRaw && /^\d+$/.test(minSizeRaw) && size < BigInt(minSizeRaw);
|
|
2912
|
+
};
|
|
2877
2913
|
|
|
2878
2914
|
// src/trading/place-order/index.place-order.execution-steps.ts
|
|
2879
2915
|
var COMPLETED_RAW_STATUSES = /* @__PURE__ */ new Set([
|
|
@@ -3924,32 +3960,21 @@ var resolvePlaceOrderPortalContainer = (triggerElement) => {
|
|
|
3924
3960
|
return (_a = triggerElement == null ? void 0 : triggerElement.closest(".agg-modal-center")) != null ? _a : void 0;
|
|
3925
3961
|
};
|
|
3926
3962
|
var LIMIT_EXPIRATION_OPTION_COUNT = 5;
|
|
3963
|
+
var LIMIT_SIZE_STEP_VENUES = /* @__PURE__ */ new Set([
|
|
3964
|
+
Venue5.tiprun,
|
|
3965
|
+
Venue5.hyperliquid,
|
|
3966
|
+
Venue5.pred,
|
|
3967
|
+
Venue5.polymarket
|
|
3968
|
+
]);
|
|
3927
3969
|
dayjs.extend(utc);
|
|
3928
3970
|
dayjs.extend(timezone);
|
|
3929
3971
|
var LIMIT_PRICE_STEP = 1e-3;
|
|
3930
3972
|
var LIMIT_PRICE_MIN = 1e-3;
|
|
3931
3973
|
var LIMIT_PRICE_MAX = 0.999;
|
|
3932
|
-
var ceilDiv = (numerator, denominator) => {
|
|
3933
|
-
return (numerator + denominator - BigInt(1)) / denominator;
|
|
3934
|
-
};
|
|
3935
|
-
var toRaw6 = (value) => {
|
|
3936
|
-
const normalizedValue = Number.isFinite(value) ? Math.max(0, value) : 0;
|
|
3937
|
-
return Math.ceil(normalizedValue * Number(LIMIT_ORDER_RAW_SCALE)).toString();
|
|
3938
|
-
};
|
|
3939
3974
|
var toLimitPriceRaw = (value) => {
|
|
3940
3975
|
const clampedValue = Math.min(LIMIT_PRICE_MAX, Math.max(LIMIT_PRICE_MIN, value));
|
|
3941
3976
|
return Math.round(clampedValue * Number(LIMIT_ORDER_RAW_SCALE)).toString();
|
|
3942
3977
|
};
|
|
3943
|
-
var toLimitSizeRaw = ({
|
|
3944
|
-
amount,
|
|
3945
|
-
limitPriceRaw,
|
|
3946
|
-
side
|
|
3947
|
-
}) => {
|
|
3948
|
-
if (side === "sell") return toRaw6(amount);
|
|
3949
|
-
const spendRaw = BigInt(toRaw6(amount));
|
|
3950
|
-
const priceRaw = BigInt(limitPriceRaw);
|
|
3951
|
-
return ceilDiv(spendRaw * LIMIT_ORDER_RAW_SCALE, priceRaw).toString();
|
|
3952
|
-
};
|
|
3953
3978
|
var formatLimitPriceLabel = (value) => {
|
|
3954
3979
|
return `${(value * 100).toLocaleString("en-US", {
|
|
3955
3980
|
minimumFractionDigits: 0,
|
|
@@ -3989,11 +4014,12 @@ var buildLimitOrderExecutionGroup = ({
|
|
|
3989
4014
|
var getLimitOrderToWinValue = ({
|
|
3990
4015
|
amount,
|
|
3991
4016
|
limitPriceRaw,
|
|
3992
|
-
side
|
|
4017
|
+
side,
|
|
4018
|
+
sizeStepRaw
|
|
3993
4019
|
}) => {
|
|
3994
4020
|
const priceRaw = BigInt(limitPriceRaw);
|
|
3995
4021
|
if (priceRaw <= BigInt(0) || priceRaw >= LIMIT_ORDER_RAW_SCALE) return 0;
|
|
3996
|
-
const sizeRaw = BigInt(toLimitSizeRaw({ amount, limitPriceRaw, side }));
|
|
4022
|
+
const sizeRaw = BigInt(toLimitSizeRaw({ amount, limitPriceRaw, side, sizeStepRaw }));
|
|
3997
4023
|
if (side === "buy") return Number(sizeRaw) / Number(LIMIT_ORDER_RAW_SCALE);
|
|
3998
4024
|
return Number(ceilDiv(priceRaw * sizeRaw, LIMIT_ORDER_RAW_SCALE)) / Number(LIMIT_ORDER_RAW_SCALE);
|
|
3999
4025
|
};
|
|
@@ -4945,7 +4971,8 @@ var PlaceOrder = ({
|
|
|
4945
4971
|
const limitVenueQuoteRequests = useMemo(
|
|
4946
4972
|
() => visibleLimitVenueOptions.map((option) => ({
|
|
4947
4973
|
venue: option.venue,
|
|
4948
|
-
venueMarketOutcomeId: option.venueMarketOutcomeId
|
|
4974
|
+
venueMarketOutcomeId: option.venueMarketOutcomeId,
|
|
4975
|
+
venueMarketId: option.venueMarketId
|
|
4949
4976
|
})),
|
|
4950
4977
|
[visibleLimitVenueOptions]
|
|
4951
4978
|
);
|
|
@@ -4977,10 +5004,83 @@ var PlaceOrder = ({
|
|
|
4977
5004
|
}
|
|
4978
5005
|
return venues;
|
|
4979
5006
|
}, [limitVenueQuotes.quotes]);
|
|
5007
|
+
const originalLimitPriceRaw = useMemo(() => toLimitPriceRaw(limitPrice), [limitPrice]);
|
|
5008
|
+
const limitPriceAdjustmentByVenue = useMemo(() => {
|
|
5009
|
+
var _a2;
|
|
5010
|
+
const adjustments = /* @__PURE__ */ new Map();
|
|
5011
|
+
for (const option of visibleLimitVenueOptions) {
|
|
5012
|
+
try {
|
|
5013
|
+
adjustments.set(
|
|
5014
|
+
option.venue,
|
|
5015
|
+
adjustLimitPriceRawToTick({
|
|
5016
|
+
limitPriceRaw: originalLimitPriceRaw,
|
|
5017
|
+
side: internalTab,
|
|
5018
|
+
tickSize: (_a2 = limitVenueQuoteByVenue.get(option.venue)) == null ? void 0 : _a2.tickSize
|
|
5019
|
+
})
|
|
5020
|
+
);
|
|
5021
|
+
} catch (e) {
|
|
5022
|
+
adjustments.set(
|
|
5023
|
+
option.venue,
|
|
5024
|
+
adjustLimitPriceRawToTick({
|
|
5025
|
+
limitPriceRaw: originalLimitPriceRaw,
|
|
5026
|
+
side: internalTab,
|
|
5027
|
+
tickSize: null
|
|
5028
|
+
})
|
|
5029
|
+
);
|
|
5030
|
+
}
|
|
5031
|
+
}
|
|
5032
|
+
return adjustments;
|
|
5033
|
+
}, [internalTab, limitVenueQuoteByVenue, originalLimitPriceRaw, visibleLimitVenueOptions]);
|
|
5034
|
+
const limitSizeRulesByVenue = useMemo(() => {
|
|
5035
|
+
var _a2, _b2;
|
|
5036
|
+
const rulesByVenue = /* @__PURE__ */ new Map();
|
|
5037
|
+
for (const quote of limitVenueQuotes.quotes) {
|
|
5038
|
+
if (!quote.sizeStepRaw && !quote.minSizeRaw) continue;
|
|
5039
|
+
rulesByVenue.set(quote.request.venue, {
|
|
5040
|
+
sizeStepRaw: (_a2 = quote.sizeStepRaw) != null ? _a2 : void 0,
|
|
5041
|
+
minSizeRaw: (_b2 = quote.minSizeRaw) != null ? _b2 : void 0
|
|
5042
|
+
});
|
|
5043
|
+
}
|
|
5044
|
+
return rulesByVenue;
|
|
5045
|
+
}, [limitVenueQuotes.quotes]);
|
|
5046
|
+
const belowMinimumLimitVenues = useMemo(() => {
|
|
5047
|
+
var _a2, _b2;
|
|
5048
|
+
const venues = /* @__PURE__ */ new Set();
|
|
5049
|
+
if (!isLimitOrder || internalAmount <= 0) return venues;
|
|
5050
|
+
for (const option of visibleLimitVenueOptions) {
|
|
5051
|
+
if (geoBlockedLimitVenues.has(option.venue) || getVenueAvailabilityState({
|
|
5052
|
+
venueId: option.venue,
|
|
5053
|
+
disabledVenues,
|
|
5054
|
+
isConfigLoading: isAppConfigLoading
|
|
5055
|
+
}) !== "available")
|
|
5056
|
+
continue;
|
|
5057
|
+
const rules = limitSizeRulesByVenue.get(option.venue);
|
|
5058
|
+
if (!(rules == null ? void 0 : rules.sizeStepRaw) && !(rules == null ? void 0 : rules.minSizeRaw)) continue;
|
|
5059
|
+
const sizeRaw = toLimitSizeRaw({
|
|
5060
|
+
amount: internalAmount,
|
|
5061
|
+
limitPriceRaw: (_b2 = (_a2 = limitPriceAdjustmentByVenue.get(option.venue)) == null ? void 0 : _a2.adjustedPriceRaw) != null ? _b2 : originalLimitPriceRaw,
|
|
5062
|
+
side: internalTab,
|
|
5063
|
+
sizeStepRaw: rules.sizeStepRaw
|
|
5064
|
+
});
|
|
5065
|
+
if (isLimitSizeBelowMinimum(sizeRaw, rules.minSizeRaw)) venues.add(option.venue);
|
|
5066
|
+
}
|
|
5067
|
+
return venues;
|
|
5068
|
+
}, [
|
|
5069
|
+
disabledVenues,
|
|
5070
|
+
geoBlockedLimitVenues,
|
|
5071
|
+
internalAmount,
|
|
5072
|
+
internalTab,
|
|
5073
|
+
isAppConfigLoading,
|
|
5074
|
+
isLimitOrder,
|
|
5075
|
+
limitPriceAdjustmentByVenue,
|
|
5076
|
+
limitSizeRulesByVenue,
|
|
5077
|
+
originalLimitPriceRaw,
|
|
5078
|
+
visibleLimitVenueOptions
|
|
5079
|
+
]);
|
|
4980
5080
|
const availableLimitVenueOptions = useMemo(() => {
|
|
4981
5081
|
return visibleLimitVenueOptions.filter((option) => {
|
|
4982
5082
|
var _a2;
|
|
4983
|
-
return !geoBlockedLimitVenues.has(option.venue) && // A limit SELL rests against shares held at that specific venue, so a
|
|
5083
|
+
return !geoBlockedLimitVenues.has(option.venue) && !belowMinimumLimitVenues.has(option.venue) && // A limit SELL rests against shares held at that specific venue, so a
|
|
4984
5084
|
// venue the user has no position on is a guaranteed 409 from the
|
|
4985
5085
|
// server's reservation check — and the automatic pick, which sorts on
|
|
4986
5086
|
// price alone, would happily choose one. Only narrow once we know
|
|
@@ -4992,6 +5092,7 @@ var PlaceOrder = ({
|
|
|
4992
5092
|
}) === "available";
|
|
4993
5093
|
});
|
|
4994
5094
|
}, [
|
|
5095
|
+
belowMinimumLimitVenues,
|
|
4995
5096
|
disabledVenues,
|
|
4996
5097
|
geoBlockedLimitVenues,
|
|
4997
5098
|
isAppConfigLoading,
|
|
@@ -5849,8 +5950,6 @@ var PlaceOrder = ({
|
|
|
5849
5950
|
const isSelectedVenueInventoryInsufficient = isSell && (selectedRouteCard == null ? void 0 : selectedRouteCard.kind) === "venue" && selectedRouteCard.insufficientInventory === true;
|
|
5850
5951
|
const isBelowClientMinimum = !isSell && hasEnteredAmount && internalAmount < MIN_BUY_ORDER_AMOUNT;
|
|
5851
5952
|
const isBelowVenueMinimumFromQuote = isQuoteBelowVenueMinimum(activeQuoteData);
|
|
5852
|
-
const isBelowMinimum = isBelowClientMinimum || isBelowVenueMinimumFromQuote;
|
|
5853
|
-
const belowMinimumMessage = isBelowClientMinimum ? tradingLabels.minimumOrderAmount(MIN_BUY_ORDER_AMOUNT) : tradingLabels.minOrderSizeViolated;
|
|
5854
5953
|
const quoteStatus = useMemo(() => {
|
|
5855
5954
|
if (!orderEligibility.canPlaceOrder) return void 0;
|
|
5856
5955
|
return resolvePlaceOrderQuoteStatus({
|
|
@@ -5977,33 +6076,6 @@ var PlaceOrder = ({
|
|
|
5977
6076
|
return averagePrice == null ? "" : tradingLabels.averagePrice(averagePrice);
|
|
5978
6077
|
}, [selectedRouteCard, tradingLabels]);
|
|
5979
6078
|
const displayedToWinValue = (_ea = selectedRouteCard == null ? void 0 : selectedRouteCard.numericValue) != null ? _ea : 0;
|
|
5980
|
-
const originalLimitPriceRaw = useMemo(() => toLimitPriceRaw(limitPrice), [limitPrice]);
|
|
5981
|
-
const limitPriceAdjustmentByVenue = useMemo(() => {
|
|
5982
|
-
var _a2;
|
|
5983
|
-
const adjustments = /* @__PURE__ */ new Map();
|
|
5984
|
-
for (const option of visibleLimitVenueOptions) {
|
|
5985
|
-
try {
|
|
5986
|
-
adjustments.set(
|
|
5987
|
-
option.venue,
|
|
5988
|
-
adjustLimitPriceRawToTick({
|
|
5989
|
-
limitPriceRaw: originalLimitPriceRaw,
|
|
5990
|
-
side: internalTab,
|
|
5991
|
-
tickSize: (_a2 = limitVenueQuoteByVenue.get(option.venue)) == null ? void 0 : _a2.tickSize
|
|
5992
|
-
})
|
|
5993
|
-
);
|
|
5994
|
-
} catch (e) {
|
|
5995
|
-
adjustments.set(
|
|
5996
|
-
option.venue,
|
|
5997
|
-
adjustLimitPriceRawToTick({
|
|
5998
|
-
limitPriceRaw: originalLimitPriceRaw,
|
|
5999
|
-
side: internalTab,
|
|
6000
|
-
tickSize: null
|
|
6001
|
-
})
|
|
6002
|
-
);
|
|
6003
|
-
}
|
|
6004
|
-
}
|
|
6005
|
-
return adjustments;
|
|
6006
|
-
}, [internalTab, limitVenueQuoteByVenue, originalLimitPriceRaw, visibleLimitVenueOptions]);
|
|
6007
6079
|
const selectedLimitPriceAdjustment = selectedLimitVenueOption ? limitPriceAdjustmentByVenue.get(selectedLimitVenueOption.venue) : void 0;
|
|
6008
6080
|
const selectedLimitPriceRaw = (_fa = selectedLimitPriceAdjustment == null ? void 0 : selectedLimitPriceAdjustment.adjustedPriceRaw) != null ? _fa : originalLimitPriceRaw;
|
|
6009
6081
|
const limitPriceAdjustmentMessage = useMemo(() => {
|
|
@@ -6024,6 +6096,8 @@ var PlaceOrder = ({
|
|
|
6024
6096
|
selectedLimitVenueOption,
|
|
6025
6097
|
tradingLabels
|
|
6026
6098
|
]);
|
|
6099
|
+
const selectedLimitSizeRules = selectedLimitVenueOption ? limitSizeRulesByVenue.get(selectedLimitVenueOption.venue) : void 0;
|
|
6100
|
+
const isLimitSizeRulesPending = isLimitOrder && selectedLimitVenueOption != null && LIMIT_SIZE_STEP_VENUES.has(selectedLimitVenueOption.venue) && limitVenueQuotes.isMetadataPending;
|
|
6027
6101
|
const limitOrderPayload = useMemo(() => {
|
|
6028
6102
|
if (!selectedLimitVenueOption || internalAmount <= 0) return null;
|
|
6029
6103
|
if (limitPriceInputError) return null;
|
|
@@ -6039,7 +6113,8 @@ var PlaceOrder = ({
|
|
|
6039
6113
|
const sizeRaw = toLimitSizeRaw({
|
|
6040
6114
|
amount: internalAmount,
|
|
6041
6115
|
limitPriceRaw,
|
|
6042
|
-
side: internalTab
|
|
6116
|
+
side: internalTab,
|
|
6117
|
+
sizeStepRaw: selectedLimitSizeRules == null ? void 0 : selectedLimitSizeRules.sizeStepRaw
|
|
6043
6118
|
});
|
|
6044
6119
|
const expiresAt = expirationDate ? serializeLimitOrderExpiration(expirationDate) : void 0;
|
|
6045
6120
|
return __spreadValues({
|
|
@@ -6058,8 +6133,12 @@ var PlaceOrder = ({
|
|
|
6058
6133
|
limitExpirationType,
|
|
6059
6134
|
limitPriceInputError,
|
|
6060
6135
|
selectedLimitVenueOption,
|
|
6061
|
-
selectedLimitPriceRaw
|
|
6136
|
+
selectedLimitPriceRaw,
|
|
6137
|
+
selectedLimitSizeRules == null ? void 0 : selectedLimitSizeRules.sizeStepRaw
|
|
6062
6138
|
]);
|
|
6139
|
+
const isLimitSizeBelowVenueMinimum = isLimitOrder && (limitOrderPayload != null && isLimitSizeBelowMinimum(limitOrderPayload.sizeRaw, selectedLimitSizeRules == null ? void 0 : selectedLimitSizeRules.minSizeRaw) || selectedLimitVenueOption == null && belowMinimumLimitVenues.size > 0);
|
|
6140
|
+
const isBelowMinimum = isBelowClientMinimum || isBelowVenueMinimumFromQuote || isLimitSizeBelowVenueMinimum;
|
|
6141
|
+
const belowMinimumMessage = isBelowClientMinimum ? tradingLabels.minimumOrderAmount(MIN_BUY_ORDER_AMOUNT) : isSell ? tradingLabels.venueMinOrderSize : tradingLabels.minOrderSizeViolated;
|
|
6063
6142
|
const resolvedLimitExpirationDraftDate = useMemo(() => {
|
|
6064
6143
|
return resolveLimitExpirationDate({
|
|
6065
6144
|
expirationType: "CUSTOM",
|
|
@@ -6103,12 +6182,13 @@ var PlaceOrder = ({
|
|
|
6103
6182
|
}, [internalTab, limitOrderPayload]);
|
|
6104
6183
|
const limitRouteCards = useMemo(() => {
|
|
6105
6184
|
return visibleLimitVenueOptions.map((option) => {
|
|
6106
|
-
var _a2, _b2, _c2, _d2;
|
|
6185
|
+
var _a2, _b2, _c2, _d2, _e2;
|
|
6107
6186
|
const effectiveLimitPriceRaw = (_b2 = (_a2 = limitPriceAdjustmentByVenue.get(option.venue)) == null ? void 0 : _a2.adjustedPriceRaw) != null ? _b2 : originalLimitPriceRaw;
|
|
6108
6187
|
const venueToWinValue = getLimitOrderToWinValue({
|
|
6109
6188
|
amount: internalAmount,
|
|
6110
6189
|
limitPriceRaw: effectiveLimitPriceRaw,
|
|
6111
|
-
side: internalTab
|
|
6190
|
+
side: internalTab,
|
|
6191
|
+
sizeStepRaw: (_c2 = limitSizeRulesByVenue.get(option.venue)) == null ? void 0 : _c2.sizeStepRaw
|
|
6112
6192
|
});
|
|
6113
6193
|
const availabilityState = getVenueAvailabilityState({
|
|
6114
6194
|
venueId: option.venue,
|
|
@@ -6116,10 +6196,10 @@ var PlaceOrder = ({
|
|
|
6116
6196
|
isConfigLoading: isAppConfigLoading
|
|
6117
6197
|
});
|
|
6118
6198
|
const isGeoBlocked = geoBlockedLimitVenues.has(option.venue);
|
|
6119
|
-
const isUnavailable = isTradingBlocked || isGeoBlocked || availabilityState !== "available";
|
|
6199
|
+
const isUnavailable = isTradingBlocked || isGeoBlocked || belowMinimumLimitVenues.has(option.venue) || availabilityState !== "available";
|
|
6120
6200
|
const currentPriceLabel = option.currentPrice == null ? "\u2014" : formatProbabilityCents(option.currentPrice, formatPrice);
|
|
6121
6201
|
const totalFees = getSmartRouteTotalFees(
|
|
6122
|
-
(
|
|
6202
|
+
(_e2 = (_d2 = limitVenueQuoteByVenue.get(option.venue)) == null ? void 0 : _d2.data) == null ? void 0 : _e2.feeBreakdown
|
|
6123
6203
|
);
|
|
6124
6204
|
const feeLabel = totalFees == null ? void 0 : formatUsd(totalFees, { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
|
6125
6205
|
return {
|
|
@@ -6138,6 +6218,7 @@ var PlaceOrder = ({
|
|
|
6138
6218
|
};
|
|
6139
6219
|
});
|
|
6140
6220
|
}, [
|
|
6221
|
+
belowMinimumLimitVenues,
|
|
6141
6222
|
disabledVenues,
|
|
6142
6223
|
formatPrice,
|
|
6143
6224
|
geoBlockedLimitVenues,
|
|
@@ -6146,6 +6227,7 @@ var PlaceOrder = ({
|
|
|
6146
6227
|
isAppConfigLoading,
|
|
6147
6228
|
isTradingBlocked,
|
|
6148
6229
|
limitPriceAdjustmentByVenue,
|
|
6230
|
+
limitSizeRulesByVenue,
|
|
6149
6231
|
limitVenueQuoteByVenue,
|
|
6150
6232
|
originalLimitPriceRaw,
|
|
6151
6233
|
tradingLabels,
|
|
@@ -6244,10 +6326,10 @@ var PlaceOrder = ({
|
|
|
6244
6326
|
const fills = (_b2 = (_a2 = selectedRouteCard.quoteData) == null ? void 0 : _a2.fills) != null ? _b2 : [];
|
|
6245
6327
|
return fills.length > 0 && fills.every((f) => geoBlockedVenuesFromWarnings.has(f.venue));
|
|
6246
6328
|
}, [selectedRouteCard, geoBlockedVenuesFromWarnings]);
|
|
6247
|
-
const shouldShowGeoBlockBanner = isTradingBlocked || selectedRouteGeoBlocked || isPrimaryVenueGeoBlocked || isLimitOrder && limitRouteCards.length > 0 && limitRouteCards.every((card) => card.isUnavailable);
|
|
6329
|
+
const shouldShowGeoBlockBanner = isTradingBlocked || selectedRouteGeoBlocked || isPrimaryVenueGeoBlocked || isLimitOrder && limitRouteCards.length > 0 && limitRouteCards.every((card) => card.isUnavailable) && limitRouteCards.some((card) => !card.venue || !belowMinimumLimitVenues.has(card.venue));
|
|
6248
6330
|
const actionLabel = `${internalTab === "buy" ? tradingLabels.buy : tradingLabels.sell} ${selectedOutcomeLabel}`.trim();
|
|
6249
|
-
const isActionDisabled = isPrimaryActionDisabled || !orderEligibility.canPlaceOrder || isActionLoading || !hasEnteredAmount || !scopedSelectedMarket || isInsufficientBalance || isBetdexBalanceUnavailable && !canExecuteBetdexQuote || isQuoteInsufficientBalance && !canExecuteBetdexQuote || isSell && isQuoteInputEditing || isSellAmountAboveAvailability || isBelowMinimum || !isLimitOrder && isQuoteLoading || isSelectedVenueInventoryInsufficient || (isLimitOrder ? !limitOrderPayload : !selectedRouteCard || !selectedRouteCard.quoteData.quoteId && !canExecuteBetdexQuote) || selectedRouteGeoBlocked || !isAuthenticated || !isLimitOrder && quoteStatus !== void 0 && !canExecuteBetdexQuote;
|
|
6250
|
-
const shouldShowSmartRouting = orderEligibility.canPlaceOrder && hasEnteredAmount && !
|
|
6331
|
+
const isActionDisabled = isPrimaryActionDisabled || !orderEligibility.canPlaceOrder || isActionLoading || !hasEnteredAmount || !scopedSelectedMarket || isInsufficientBalance || isBetdexBalanceUnavailable && !canExecuteBetdexQuote || isQuoteInsufficientBalance && !canExecuteBetdexQuote || isSell && isQuoteInputEditing || isSellAmountAboveAvailability || isBelowMinimum || isLimitSizeRulesPending || !isLimitOrder && isQuoteLoading || isSelectedVenueInventoryInsufficient || (isLimitOrder ? !limitOrderPayload : !selectedRouteCard || !selectedRouteCard.quoteData.quoteId && !canExecuteBetdexQuote) || selectedRouteGeoBlocked || !isAuthenticated || !isLimitOrder && quoteStatus !== void 0 && !canExecuteBetdexQuote;
|
|
6332
|
+
const shouldShowSmartRouting = orderEligibility.canPlaceOrder && hasEnteredAmount && !isBelowClientMinimum && !isBelowVenueMinimumFromQuote && (isLimitOrder ? limitRouteCards.length > 0 : displayedRouteCards.length > 0 || smartRoute.isFetching || smartRoute.isLoading || isSell && (venueSellQuotes.isFetching || venueSellQuotes.isLoading));
|
|
6251
6333
|
const shouldShowRouteToggle = !isLimitOrder && !isQuoteLoading && displayedRouteCards.length > PLACE_ORDER_ROUTE_COLLAPSED_CARD_COUNT;
|
|
6252
6334
|
const handleReturnToOrderForm = useCallback3(() => {
|
|
6253
6335
|
const submittedSelection = submittedSelectionRef.current;
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
EventListTabs,
|
|
9
9
|
useEventListTabs,
|
|
10
10
|
useEventListTabsHeaderOverflow
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-EJXA32MG.mjs";
|
|
12
12
|
import {
|
|
13
13
|
OPEN_ORDER_FALLBACK_THUMBNAIL_SRC,
|
|
14
14
|
OPEN_ORDER_QUERY_STATUSES,
|
|
@@ -21,13 +21,13 @@ import {
|
|
|
21
21
|
parseRawMicroValue,
|
|
22
22
|
selectOpenLimitOrders,
|
|
23
23
|
useOpenOrderCancellation
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-6CZNJSRL.mjs";
|
|
25
25
|
import {
|
|
26
26
|
DEPOSIT_MODAL_OPEN_EVENT,
|
|
27
27
|
WITHDRAW_MODAL_OPEN_EVENT,
|
|
28
28
|
formatChainIdLabel,
|
|
29
29
|
useClaimWinnings
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-KN7JN7F5.mjs";
|
|
31
31
|
import {
|
|
32
32
|
AggErrorBoundary,
|
|
33
33
|
Button,
|
|
@@ -266,7 +266,7 @@ var useHomePageModals = () => {
|
|
|
266
266
|
// src/pages/home/index.tsx
|
|
267
267
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
268
268
|
var DeferredEventMarketPage = lazy(
|
|
269
|
-
() => import("./event-market-
|
|
269
|
+
() => import("./event-market-A276CAYG.mjs").then((module) => ({ default: module.EventMarketPage }))
|
|
270
270
|
);
|
|
271
271
|
var MIN_SEARCH_LENGTH = 3;
|
|
272
272
|
var SEARCH_DEBOUNCE_MS = 300;
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
EventOpenOrdersCard,
|
|
7
7
|
formatRecurringCountdown,
|
|
8
8
|
useEventOpenOrders
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-6CZNJSRL.mjs";
|
|
10
|
+
import "./chunk-7G2GTWAS.mjs";
|
|
11
|
+
import "./chunk-KN7JN7F5.mjs";
|
|
12
12
|
import "./chunk-WOCZ4TVT.mjs";
|
|
13
13
|
import "./chunk-7ORC3TUJ.mjs";
|
|
14
14
|
import "./chunk-XZVGHKMW.mjs";
|
package/dist/events.js
CHANGED
|
@@ -13532,7 +13532,7 @@ var EventListItemDetailsContent = ({
|
|
|
13532
13532
|
recurringMarkets,
|
|
13533
13533
|
sportsLiveState
|
|
13534
13534
|
}) => {
|
|
13535
|
-
var _a, _b, _c, _d, _e, _f;
|
|
13535
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
13536
13536
|
const [selectedChartType, setSelectedChartType] = (0, import_react23.useState)("line");
|
|
13537
13537
|
const [chartView, setChartView] = (0, import_react23.useState)(defaultChartView);
|
|
13538
13538
|
const lastAppliedEventSyncKeyRef = (0, import_react23.useRef)(null);
|
|
@@ -13544,10 +13544,18 @@ var EventListItemDetailsContent = ({
|
|
|
13544
13544
|
const labels = (0, import_hooks51.useLabels)();
|
|
13545
13545
|
const tradingContext = (0, import_hooks38.useEventTradingContext)();
|
|
13546
13546
|
const eventSyncKey = (0, import_react23.useMemo)(() => resolveEventDetailsSyncKey(event), [event]);
|
|
13547
|
+
const { eventQuery: deferredDetailsQuery } = (0, import_hooks51.useSettlementDetailsData)({
|
|
13548
|
+
eventId: event.id,
|
|
13549
|
+
enabled: true,
|
|
13550
|
+
needsEvent: event.detailsDeferred === true,
|
|
13551
|
+
needsMarket: false
|
|
13552
|
+
});
|
|
13553
|
+
const summaryDescription = (_b = (_a = deferredDetailsQuery.data) == null ? void 0 : _a.description) != null ? _b : event.description;
|
|
13554
|
+
const summarySettlementDiff = (_d = (_c = deferredDetailsQuery.data) == null ? void 0 : _c.settlementDiff) != null ? _d : event.settlementDiff;
|
|
13547
13555
|
const resolvedEventTradingState = (0, import_react23.useMemo)(() => {
|
|
13548
13556
|
return eventTradingState != null ? eventTradingState : (0, import_hooks51.resolveEventTradingState)(event);
|
|
13549
13557
|
}, [event, eventTradingState]);
|
|
13550
|
-
const scopedSelectedMarket = (tradingContext == null ? void 0 : tradingContext.selectedEventId) === event.id ? (
|
|
13558
|
+
const scopedSelectedMarket = (tradingContext == null ? void 0 : tradingContext.selectedEventId) === event.id ? (_e = tradingContext.selectedMarket) != null ? _e : resolvedEventTradingState.primaryMarket : resolvedEventTradingState.primaryMarket;
|
|
13551
13559
|
const venueMarkets = (0, import_react23.useMemo)(
|
|
13552
13560
|
() => resolvedEventTradingState.displayMarkets,
|
|
13553
13561
|
[resolvedEventTradingState.displayMarkets]
|
|
@@ -13586,7 +13594,7 @@ var EventListItemDetailsContent = ({
|
|
|
13586
13594
|
bestMidpoint: void 0,
|
|
13587
13595
|
bestMidpointVenue: void 0
|
|
13588
13596
|
};
|
|
13589
|
-
const restMidpoints = (
|
|
13597
|
+
const restMidpoints = (_f = resolvedMidpointsResult.bestMidpointsByOutcomeId) != null ? _f : resolvedMidpointsResult.prices;
|
|
13590
13598
|
const bestMidpoint = resolvedMidpointsResult.bestMidpoint;
|
|
13591
13599
|
const restBestPrices = resolvedMidpointsResult.bestPrices;
|
|
13592
13600
|
const bestPrices = (0, import_react23.useMemo)(
|
|
@@ -13691,7 +13699,7 @@ var EventListItemDetailsContent = ({
|
|
|
13691
13699
|
Card,
|
|
13692
13700
|
{
|
|
13693
13701
|
className: cn("group/agg-event-details", detailsBaseCardClassName, classNames == null ? void 0 : classNames.root),
|
|
13694
|
-
"aria-label": ariaLabel != null ? ariaLabel : [resolvedTitle.title, (
|
|
13702
|
+
"aria-label": ariaLabel != null ? ariaLabel : [resolvedTitle.title, (_g = recurringMarkets == null ? void 0 : recurringMarkets.windowLabel) != null ? _g : resolvedTitle.timestampLabel].filter(Boolean).join(" "),
|
|
13695
13703
|
onClick: onClick ? () => onClick(event) : void 0,
|
|
13696
13704
|
children: [
|
|
13697
13705
|
/* @__PURE__ */ (0, import_jsx_runtime144.jsxs)(
|
|
@@ -13788,7 +13796,7 @@ var EventListItemDetailsContent = ({
|
|
|
13788
13796
|
{
|
|
13789
13797
|
role: "timer",
|
|
13790
13798
|
"aria-live": "off",
|
|
13791
|
-
"aria-label": (
|
|
13799
|
+
"aria-label": (_h = recurringMarkets.countdownAriaLabel) != null ? _h : void 0,
|
|
13792
13800
|
className: "flex shrink-0 items-center gap-1.5 text-agg-foreground",
|
|
13793
13801
|
children: [
|
|
13794
13802
|
/* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
@@ -13809,7 +13817,7 @@ var EventListItemDetailsContent = ({
|
|
|
13809
13817
|
{
|
|
13810
13818
|
className: classNames == null ? void 0 : classNames.headerPills,
|
|
13811
13819
|
options: marketOptions,
|
|
13812
|
-
selectedValue: (
|
|
13820
|
+
selectedValue: (_i = scopedSelectedMarket == null ? void 0 : scopedSelectedMarket.id) != null ? _i : "",
|
|
13813
13821
|
onChange: (marketId) => {
|
|
13814
13822
|
tradingContext == null ? void 0 : tradingContext.selectMarket(marketId);
|
|
13815
13823
|
setChartView("selected");
|
|
@@ -13874,7 +13882,7 @@ var EventListItemDetailsContent = ({
|
|
|
13874
13882
|
selectedChartType,
|
|
13875
13883
|
venueInfo,
|
|
13876
13884
|
venueMarkets,
|
|
13877
|
-
selectedMarketId: (
|
|
13885
|
+
selectedMarketId: (_j = scopedSelectedMarket == null ? void 0 : scopedSelectedMarket.id) != null ? _j : null,
|
|
13878
13886
|
livePrices,
|
|
13879
13887
|
restMidpoints,
|
|
13880
13888
|
bestMidpoint,
|
|
@@ -13946,7 +13954,7 @@ var EventListItemDetailsContent = ({
|
|
|
13946
13954
|
}
|
|
13947
13955
|
)
|
|
13948
13956
|
] }),
|
|
13949
|
-
|
|
13957
|
+
summaryDescription || summarySettlementDiff ? /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(SettlementSummary, { content: summaryDescription, settlementDiff: summarySettlementDiff }) : null
|
|
13950
13958
|
]
|
|
13951
13959
|
}
|
|
13952
13960
|
);
|
package/dist/events.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
EventListItem,
|
|
6
6
|
EventListItemV2,
|
|
7
7
|
EventListVenueStrip
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EJXA32MG.mjs";
|
|
9
9
|
import {
|
|
10
10
|
EventListItemDetails,
|
|
11
11
|
MarketDetails,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
orderbookRowLimitDefault,
|
|
21
21
|
resolveEventDetailsSyncKey,
|
|
22
22
|
useCenterOrderbookSpread
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-7G2GTWAS.mjs";
|
|
24
24
|
import {
|
|
25
25
|
formatProbabilityCents,
|
|
26
26
|
resolveOrderBookRows,
|