@loafmarkets/ui 0.1.11 → 0.1.12
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/index.js +289 -1629
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +271 -1614
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -3
- package/src/assets/Loaf-logo-Banner.png +0 -0
package/dist/index.js
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var React5 = require('react');
|
|
4
4
|
var reactSlot = require('@radix-ui/react-slot');
|
|
5
5
|
var classVarianceAuthority = require('class-variance-authority');
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var tailwindMerge = require('tailwind-merge');
|
|
8
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
|
+
var styled6 = require('styled-components');
|
|
9
10
|
var lucideReact = require('lucide-react');
|
|
10
11
|
var LightweightCharts = require('lightweight-charts');
|
|
11
12
|
|
|
13
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
|
|
12
15
|
function _interopNamespace(e) {
|
|
13
16
|
if (e && e.__esModule) return e;
|
|
14
17
|
var n = Object.create(null);
|
|
@@ -27,9 +30,11 @@ function _interopNamespace(e) {
|
|
|
27
30
|
return Object.freeze(n);
|
|
28
31
|
}
|
|
29
32
|
|
|
30
|
-
var
|
|
33
|
+
var React5__namespace = /*#__PURE__*/_interopNamespace(React5);
|
|
34
|
+
var styled6__default = /*#__PURE__*/_interopDefault(styled6);
|
|
31
35
|
var LightweightCharts__namespace = /*#__PURE__*/_interopNamespace(LightweightCharts);
|
|
32
36
|
|
|
37
|
+
// src/components/button.tsx
|
|
33
38
|
function cn(...inputs) {
|
|
34
39
|
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
35
40
|
}
|
|
@@ -67,7 +72,7 @@ var buttonVariants = classVarianceAuthority.cva(
|
|
|
67
72
|
}
|
|
68
73
|
}
|
|
69
74
|
);
|
|
70
|
-
var Button =
|
|
75
|
+
var Button = React5__namespace.forwardRef(
|
|
71
76
|
({ className, variant, size, radius, asChild = false, ...props }, ref) => {
|
|
72
77
|
const Comp = asChild ? reactSlot.Slot : "button";
|
|
73
78
|
const coercedRadius = radius ?? (variant === "onboarding" || variant === "onboardingOutline" ? "square" : void 0);
|
|
@@ -106,11 +111,11 @@ var badgeVariants = classVarianceAuthority.cva(
|
|
|
106
111
|
}
|
|
107
112
|
}
|
|
108
113
|
);
|
|
109
|
-
var Badge =
|
|
114
|
+
var Badge = React5__namespace.forwardRef(
|
|
110
115
|
({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("span", { ref, className: cn(badgeVariants({ variant, size }), className), ...props })
|
|
111
116
|
);
|
|
112
117
|
Badge.displayName = "Badge";
|
|
113
|
-
var Card =
|
|
118
|
+
var Card = React5__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
114
119
|
"div",
|
|
115
120
|
{
|
|
116
121
|
ref,
|
|
@@ -122,11 +127,11 @@ var Card = o__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
122
127
|
}
|
|
123
128
|
));
|
|
124
129
|
Card.displayName = "Card";
|
|
125
|
-
var CardHeader =
|
|
130
|
+
var CardHeader = React5__namespace.forwardRef(
|
|
126
131
|
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("flex flex-col space-y-1.5 p-6", className), ...props })
|
|
127
132
|
);
|
|
128
133
|
CardHeader.displayName = "CardHeader";
|
|
129
|
-
var CardTitle =
|
|
134
|
+
var CardTitle = React5__namespace.forwardRef(
|
|
130
135
|
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
131
136
|
"h3",
|
|
132
137
|
{
|
|
@@ -137,15 +142,15 @@ var CardTitle = o__namespace.forwardRef(
|
|
|
137
142
|
)
|
|
138
143
|
);
|
|
139
144
|
CardTitle.displayName = "CardTitle";
|
|
140
|
-
var CardDescription =
|
|
145
|
+
var CardDescription = React5__namespace.forwardRef(
|
|
141
146
|
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("p", { ref, className: cn("text-sm text-slate-500", className), ...props })
|
|
142
147
|
);
|
|
143
148
|
CardDescription.displayName = "CardDescription";
|
|
144
|
-
var CardContent =
|
|
149
|
+
var CardContent = React5__namespace.forwardRef(
|
|
145
150
|
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("px-6 pb-6 pt-2 text-sm text-slate-600", className), ...props })
|
|
146
151
|
);
|
|
147
152
|
CardContent.displayName = "CardContent";
|
|
148
|
-
var CardFooter =
|
|
153
|
+
var CardFooter = React5__namespace.forwardRef(
|
|
149
154
|
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("flex items-center border-t border-slate-100 px-6 py-4", className), ...props })
|
|
150
155
|
);
|
|
151
156
|
CardFooter.displayName = "CardFooter";
|
|
@@ -163,7 +168,7 @@ var defaultFormatSignedCurrency = (value) => {
|
|
|
163
168
|
const sign = value >= 0 ? "+" : "-";
|
|
164
169
|
return `${sign}${defaultFormatCurrency(Math.abs(value))}`;
|
|
165
170
|
};
|
|
166
|
-
var PortfolioSummary =
|
|
171
|
+
var PortfolioSummary = React5__namespace.forwardRef(
|
|
167
172
|
({
|
|
168
173
|
availableCash,
|
|
169
174
|
portfolioValue,
|
|
@@ -236,12 +241,12 @@ var PortfolioSummary = o__namespace.forwardRef(
|
|
|
236
241
|
}
|
|
237
242
|
);
|
|
238
243
|
PortfolioSummary.displayName = "PortfolioSummary";
|
|
239
|
-
var clamp = (
|
|
240
|
-
var fmt0 = (
|
|
244
|
+
var clamp = (v, min, max) => Math.min(max, Math.max(min, v));
|
|
245
|
+
var fmt0 = (v) => Math.abs(v).toLocaleString(void 0, { maximumFractionDigits: 0 });
|
|
241
246
|
var normalizeLevels = (levels = []) => levels.filter((level) => Number.isFinite(level.price) && level.price > 0 && Number.isFinite(level.amount) && level.amount > 0);
|
|
242
247
|
var estimateMarketBuyFromUsd = (levels = [], usdAmount) => {
|
|
243
248
|
if (!Number.isFinite(usdAmount) || usdAmount <= 0) return { tokens: 0, value: 0, avgPrice: null };
|
|
244
|
-
const asks = normalizeLevels(levels).sort((
|
|
249
|
+
const asks = normalizeLevels(levels).sort((a, b) => a.price - b.price);
|
|
245
250
|
let remainingUsd = usdAmount;
|
|
246
251
|
let tokensFilled = 0;
|
|
247
252
|
let spent = 0;
|
|
@@ -262,7 +267,7 @@ var estimateMarketBuyFromUsd = (levels = [], usdAmount) => {
|
|
|
262
267
|
};
|
|
263
268
|
var estimateMarketBuyFromTokens = (levels = [], tokenAmount) => {
|
|
264
269
|
if (!Number.isFinite(tokenAmount) || tokenAmount <= 0) return { tokens: 0, value: 0, avgPrice: null };
|
|
265
|
-
const asks = normalizeLevels(levels).sort((
|
|
270
|
+
const asks = normalizeLevels(levels).sort((a, b) => a.price - b.price);
|
|
266
271
|
let remainingTokens = tokenAmount;
|
|
267
272
|
let tokensFilled = 0;
|
|
268
273
|
let spent = 0;
|
|
@@ -281,7 +286,7 @@ var estimateMarketBuyFromTokens = (levels = [], tokenAmount) => {
|
|
|
281
286
|
};
|
|
282
287
|
var estimateMarketSellFromTokens = (levels = [], tokenAmount) => {
|
|
283
288
|
if (!Number.isFinite(tokenAmount) || tokenAmount <= 0) return { tokens: 0, value: 0, avgPrice: null };
|
|
284
|
-
const bids = normalizeLevels(levels).sort((
|
|
289
|
+
const bids = normalizeLevels(levels).sort((a, b) => b.price - a.price);
|
|
285
290
|
let remainingTokens = tokenAmount;
|
|
286
291
|
let tokensFilled = 0;
|
|
287
292
|
let received = 0;
|
|
@@ -313,31 +318,31 @@ function HousePositionSlider({
|
|
|
313
318
|
className,
|
|
314
319
|
...props
|
|
315
320
|
}) {
|
|
316
|
-
const [orderMode, setOrderMode] =
|
|
317
|
-
const [buyTrackingMode, setBuyTrackingMode] =
|
|
318
|
-
const [deltaDollars, setDeltaDollars] =
|
|
319
|
-
const [deltaTokensBuy, setDeltaTokensBuy] =
|
|
320
|
-
const [deltaTokensSell, setDeltaTokensSell] =
|
|
321
|
-
const [isDragging, setIsDragging] =
|
|
322
|
-
const [visualTargetPct, setVisualTargetPct] =
|
|
323
|
-
const [orderType, setOrderType] =
|
|
324
|
-
const [limitPrice, setLimitPrice] =
|
|
325
|
-
const [limitPriceInput, setLimitPriceInput] =
|
|
326
|
-
const [limitPriceDirty, setLimitPriceDirty] =
|
|
327
|
-
const [ownershipInput, setOwnershipInput] =
|
|
328
|
-
const [tokenAmountInput, setTokenAmountInput] =
|
|
329
|
-
const houseRef =
|
|
321
|
+
const [orderMode, setOrderMode] = React5__namespace.useState("none");
|
|
322
|
+
const [buyTrackingMode, setBuyTrackingMode] = React5__namespace.useState("dollars");
|
|
323
|
+
const [deltaDollars, setDeltaDollars] = React5__namespace.useState(0);
|
|
324
|
+
const [deltaTokensBuy, setDeltaTokensBuy] = React5__namespace.useState(0);
|
|
325
|
+
const [deltaTokensSell, setDeltaTokensSell] = React5__namespace.useState(0);
|
|
326
|
+
const [isDragging, setIsDragging] = React5__namespace.useState(false);
|
|
327
|
+
const [visualTargetPct, setVisualTargetPct] = React5__namespace.useState(null);
|
|
328
|
+
const [orderType, setOrderType] = React5__namespace.useState(defaultOrderType);
|
|
329
|
+
const [limitPrice, setLimitPrice] = React5__namespace.useState(currentPrice);
|
|
330
|
+
const [limitPriceInput, setLimitPriceInput] = React5__namespace.useState(currentPrice.toFixed(2));
|
|
331
|
+
const [limitPriceDirty, setLimitPriceDirty] = React5__namespace.useState(false);
|
|
332
|
+
const [ownershipInput, setOwnershipInput] = React5__namespace.useState("");
|
|
333
|
+
const [tokenAmountInput, setTokenAmountInput] = React5__namespace.useState("");
|
|
334
|
+
const houseRef = React5__namespace.useRef(null);
|
|
330
335
|
const asks = orderbook?.asks ?? [];
|
|
331
336
|
const bids = orderbook?.bids ?? [];
|
|
332
|
-
|
|
337
|
+
React5__namespace.useEffect(() => {
|
|
333
338
|
if (orderType !== "limit") return;
|
|
334
339
|
if (limitPriceDirty) return;
|
|
335
340
|
setLimitPrice(currentPrice);
|
|
336
341
|
setLimitPriceInput(currentPrice.toFixed(2));
|
|
337
342
|
}, [currentPrice, limitPriceDirty, orderType]);
|
|
338
343
|
const effectivePrice = orderType === "limit" ? limitPrice : currentPrice;
|
|
339
|
-
const pendingBuyValue = pendingOrders.filter((
|
|
340
|
-
const pendingSellTokens = pendingOrders.filter((
|
|
344
|
+
const pendingBuyValue = pendingOrders.filter((o) => o.type === "buy").reduce((s, o) => s + o.value, 0);
|
|
345
|
+
const pendingSellTokens = pendingOrders.filter((o) => o.type === "sell").reduce((s, o) => s + Math.abs(o.tokens), 0);
|
|
341
346
|
const effectiveAvailableCash = Math.max(0, availableCash - pendingBuyValue);
|
|
342
347
|
const effectiveTokensHeld = Math.max(0, tokensHeld - pendingSellTokens);
|
|
343
348
|
const holdingsValue = tokensHeld * effectivePrice;
|
|
@@ -404,7 +409,7 @@ function HousePositionSlider({
|
|
|
404
409
|
const impliedDisplayTargetOwnership = clamp(targetOwnership + ownershipShift, 0, 100);
|
|
405
410
|
const displayTargetOwnership = visualTargetPct ?? impliedDisplayTargetOwnership;
|
|
406
411
|
const estFeeTokens = Math.abs(deltaValue) * 5e-3 / (effectivePrice || 1);
|
|
407
|
-
const resetOrder =
|
|
412
|
+
const resetOrder = React5__namespace.useCallback(() => {
|
|
408
413
|
setOrderMode("none");
|
|
409
414
|
setBuyTrackingMode("dollars");
|
|
410
415
|
setDeltaDollars(0);
|
|
@@ -412,7 +417,7 @@ function HousePositionSlider({
|
|
|
412
417
|
setDeltaTokensSell(0);
|
|
413
418
|
setVisualTargetPct(null);
|
|
414
419
|
}, []);
|
|
415
|
-
const updateOrderFromTargetValue =
|
|
420
|
+
const updateOrderFromTargetValue = React5__namespace.useCallback(
|
|
416
421
|
(newTargetValue) => {
|
|
417
422
|
const newDeltaValue = newTargetValue - holdingsValue;
|
|
418
423
|
if (newDeltaValue > 0) {
|
|
@@ -436,7 +441,7 @@ function HousePositionSlider({
|
|
|
436
441
|
},
|
|
437
442
|
[effectiveAvailableCash, effectivePrice, effectiveTokensHeld, holdingsValue, resetOrder, tokensHeld]
|
|
438
443
|
);
|
|
439
|
-
const updateOrderFromOwnership =
|
|
444
|
+
const updateOrderFromOwnership = React5__namespace.useCallback(
|
|
440
445
|
(newOwnershipPercent) => {
|
|
441
446
|
const nextOwnership = clamp(newOwnershipPercent, 0, 100);
|
|
442
447
|
const newTargetTokens = nextOwnership / 100 * totalTokens;
|
|
@@ -445,7 +450,7 @@ function HousePositionSlider({
|
|
|
445
450
|
},
|
|
446
451
|
[effectivePrice, totalTokens, updateOrderFromTargetValue]
|
|
447
452
|
);
|
|
448
|
-
const updateOrderFromTokenAmount =
|
|
453
|
+
const updateOrderFromTokenAmount = React5__namespace.useCallback(
|
|
449
454
|
(tokenAmountSigned) => {
|
|
450
455
|
if (tokenAmountSigned > 0) {
|
|
451
456
|
const maxTokens = effectiveAvailableCash / (effectivePrice || 1);
|
|
@@ -468,7 +473,7 @@ function HousePositionSlider({
|
|
|
468
473
|
},
|
|
469
474
|
[effectiveAvailableCash, effectivePrice, effectiveTokensHeld, resetOrder]
|
|
470
475
|
);
|
|
471
|
-
const updateOrderFromSlider =
|
|
476
|
+
const updateOrderFromSlider = React5__namespace.useCallback(
|
|
472
477
|
(pct) => {
|
|
473
478
|
const normalized = (pct - 50) / 50;
|
|
474
479
|
const magnitude = Math.min(Math.abs(normalized), 1);
|
|
@@ -512,12 +517,12 @@ function HousePositionSlider({
|
|
|
512
517
|
},
|
|
513
518
|
[effectiveAvailableCash, effectiveTokensHeld, resetOrder]
|
|
514
519
|
);
|
|
515
|
-
const handleDragAtClientY =
|
|
520
|
+
const handleDragAtClientY = React5__namespace.useCallback(
|
|
516
521
|
(clientY) => {
|
|
517
522
|
if (!houseRef.current) return;
|
|
518
523
|
const rect = houseRef.current.getBoundingClientRect();
|
|
519
|
-
const
|
|
520
|
-
const pct = clamp(100 -
|
|
524
|
+
const y = clientY - rect.top;
|
|
525
|
+
const pct = clamp(100 - y / rect.height * 100, 0, 100);
|
|
521
526
|
updateOrderFromSlider(pct);
|
|
522
527
|
},
|
|
523
528
|
[updateOrderFromSlider]
|
|
@@ -552,9 +557,9 @@ function HousePositionSlider({
|
|
|
552
557
|
const handleCancel = () => {
|
|
553
558
|
resetOrder();
|
|
554
559
|
};
|
|
555
|
-
const handleOrderTypeSelection = (
|
|
556
|
-
setOrderType(
|
|
557
|
-
if (
|
|
560
|
+
const handleOrderTypeSelection = (next) => {
|
|
561
|
+
setOrderType(next);
|
|
562
|
+
if (next === "limit") {
|
|
558
563
|
setLimitPriceDirty(false);
|
|
559
564
|
setLimitPrice(currentPrice);
|
|
560
565
|
setLimitPriceInput(currentPrice.toFixed(2));
|
|
@@ -810,8 +815,8 @@ function HousePositionSlider({
|
|
|
810
815
|
] })
|
|
811
816
|
] });
|
|
812
817
|
}
|
|
813
|
-
var clamp2 = (
|
|
814
|
-
var fmt02 = (
|
|
818
|
+
var clamp2 = (v, min, max) => Math.min(max, Math.max(min, v));
|
|
819
|
+
var fmt02 = (v) => Math.abs(v).toLocaleString(void 0, { maximumFractionDigits: 0 });
|
|
815
820
|
var styles = {
|
|
816
821
|
// SliderContainer @media (max-width: 1024px)
|
|
817
822
|
sliderContainer: {
|
|
@@ -1028,18 +1033,18 @@ function HousePositionSliderMobile({
|
|
|
1028
1033
|
className,
|
|
1029
1034
|
...props
|
|
1030
1035
|
}) {
|
|
1031
|
-
const [orderMode, setOrderMode] =
|
|
1032
|
-
const [deltaDollars, setDeltaDollars] =
|
|
1033
|
-
const [deltaTokensSell, setDeltaTokensSell] =
|
|
1034
|
-
const [deltaTokensBuy, setDeltaTokensBuy] =
|
|
1035
|
-
const [buyTrackingMode, setBuyTrackingMode] =
|
|
1036
|
-
const [orderType, setOrderType] =
|
|
1037
|
-
const [limitPrice, setLimitPrice] =
|
|
1038
|
-
const [limitPriceInput, setLimitPriceInput] =
|
|
1039
|
-
const [limitPriceDirty, setLimitPriceDirty] =
|
|
1040
|
-
const [tokenAmountInput, setTokenAmountInput] =
|
|
1041
|
-
const houseRef =
|
|
1042
|
-
|
|
1036
|
+
const [orderMode, setOrderMode] = React5__namespace.useState("none");
|
|
1037
|
+
const [deltaDollars, setDeltaDollars] = React5__namespace.useState(0);
|
|
1038
|
+
const [deltaTokensSell, setDeltaTokensSell] = React5__namespace.useState(0);
|
|
1039
|
+
const [deltaTokensBuy, setDeltaTokensBuy] = React5__namespace.useState(0);
|
|
1040
|
+
const [buyTrackingMode, setBuyTrackingMode] = React5__namespace.useState("dollars");
|
|
1041
|
+
const [orderType, setOrderType] = React5__namespace.useState(defaultOrderType);
|
|
1042
|
+
const [limitPrice, setLimitPrice] = React5__namespace.useState(currentPrice);
|
|
1043
|
+
const [limitPriceInput, setLimitPriceInput] = React5__namespace.useState(currentPrice.toFixed(2));
|
|
1044
|
+
const [limitPriceDirty, setLimitPriceDirty] = React5__namespace.useState(false);
|
|
1045
|
+
const [tokenAmountInput, setTokenAmountInput] = React5__namespace.useState("");
|
|
1046
|
+
const houseRef = React5__namespace.useRef(null);
|
|
1047
|
+
React5__namespace.useEffect(() => {
|
|
1043
1048
|
if (orderType !== "limit") return;
|
|
1044
1049
|
if (limitPriceDirty) return;
|
|
1045
1050
|
setLimitPrice(currentPrice);
|
|
@@ -1081,7 +1086,7 @@ function HousePositionSliderMobile({
|
|
|
1081
1086
|
const hasChange = orderMode !== "none" && (Math.abs(deltaTokens) > 1e-3 || Math.abs(deltaValue) > 0.01);
|
|
1082
1087
|
const targetOwnership = totalTokens > 0 ? targetTokens / totalTokens * 100 : 0;
|
|
1083
1088
|
const estFeeTokens = effectivePrice > 0 ? Math.abs(deltaValue) * 5e-3 / effectivePrice : 0;
|
|
1084
|
-
const updateOrderFromTargetValue =
|
|
1089
|
+
const updateOrderFromTargetValue = React5__namespace.useCallback(
|
|
1085
1090
|
(newTargetValue) => {
|
|
1086
1091
|
const newDeltaValue = newTargetValue - holdingsValue;
|
|
1087
1092
|
if (newDeltaValue > 0.01) {
|
|
@@ -1109,7 +1114,7 @@ function HousePositionSliderMobile({
|
|
|
1109
1114
|
},
|
|
1110
1115
|
[holdingsValue, availableCash, effectivePrice, tokensHeld]
|
|
1111
1116
|
);
|
|
1112
|
-
const updateOrderFromTokenAmount =
|
|
1117
|
+
const updateOrderFromTokenAmount = React5__namespace.useCallback(
|
|
1113
1118
|
(tokenAmount) => {
|
|
1114
1119
|
if (tokenAmount > 0) {
|
|
1115
1120
|
const maxTokens = effectivePrice > 0 ? availableCash / effectivePrice : 0;
|
|
@@ -1136,21 +1141,21 @@ function HousePositionSliderMobile({
|
|
|
1136
1141
|
},
|
|
1137
1142
|
[effectivePrice, availableCash, tokensHeld]
|
|
1138
1143
|
);
|
|
1139
|
-
const handleMarkerClick =
|
|
1144
|
+
const handleMarkerClick = React5__namespace.useCallback(
|
|
1140
1145
|
(pct) => {
|
|
1141
1146
|
const newTargetValue = pct / 100 * totalCapacity;
|
|
1142
1147
|
updateOrderFromTargetValue(newTargetValue);
|
|
1143
1148
|
},
|
|
1144
1149
|
[totalCapacity, updateOrderFromTargetValue]
|
|
1145
1150
|
);
|
|
1146
|
-
const onMouseDown =
|
|
1151
|
+
const onMouseDown = React5__namespace.useCallback(
|
|
1147
1152
|
(e) => {
|
|
1148
1153
|
e.preventDefault();
|
|
1149
1154
|
const move = (ev) => {
|
|
1150
1155
|
if (!houseRef.current) return;
|
|
1151
1156
|
const rect = houseRef.current.getBoundingClientRect();
|
|
1152
|
-
const
|
|
1153
|
-
const pct = clamp2(100 -
|
|
1157
|
+
const y = ev.clientY - rect.top;
|
|
1158
|
+
const pct = clamp2(100 - y / rect.height * 100, 0, 100);
|
|
1154
1159
|
const newTargetValue = pct / 100 * totalCapacity;
|
|
1155
1160
|
updateOrderFromTargetValue(newTargetValue);
|
|
1156
1161
|
};
|
|
@@ -1163,7 +1168,7 @@ function HousePositionSliderMobile({
|
|
|
1163
1168
|
},
|
|
1164
1169
|
[totalCapacity, updateOrderFromTargetValue]
|
|
1165
1170
|
);
|
|
1166
|
-
const onTouchStart =
|
|
1171
|
+
const onTouchStart = React5__namespace.useCallback(
|
|
1167
1172
|
(e) => {
|
|
1168
1173
|
e.preventDefault();
|
|
1169
1174
|
e.stopPropagation();
|
|
@@ -1173,8 +1178,8 @@ function HousePositionSliderMobile({
|
|
|
1173
1178
|
if (!houseRef.current) return;
|
|
1174
1179
|
const rect = houseRef.current.getBoundingClientRect();
|
|
1175
1180
|
const touch = ev.touches[0];
|
|
1176
|
-
const
|
|
1177
|
-
const pct = clamp2(100 -
|
|
1181
|
+
const y = touch.clientY - rect.top;
|
|
1182
|
+
const pct = clamp2(100 - y / rect.height * 100, 0, 100);
|
|
1178
1183
|
const newTargetValue = pct / 100 * totalCapacity;
|
|
1179
1184
|
updateOrderFromTargetValue(newTargetValue);
|
|
1180
1185
|
};
|
|
@@ -1550,1353 +1555,9 @@ function HousePositionSliderMobile({
|
|
|
1550
1555
|
);
|
|
1551
1556
|
}
|
|
1552
1557
|
|
|
1553
|
-
// ../../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
|
|
1554
|
-
var __assign = function() {
|
|
1555
|
-
__assign = Object.assign || function __assign2(t) {
|
|
1556
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
1557
|
-
s = arguments[i];
|
|
1558
|
-
for (var p2 in s) if (Object.prototype.hasOwnProperty.call(s, p2)) t[p2] = s[p2];
|
|
1559
|
-
}
|
|
1560
|
-
return t;
|
|
1561
|
-
};
|
|
1562
|
-
return __assign.apply(this, arguments);
|
|
1563
|
-
};
|
|
1564
|
-
function __spreadArray(to, from2, pack) {
|
|
1565
|
-
if (pack || arguments.length === 2) for (var i = 0, l2 = from2.length, ar; i < l2; i++) {
|
|
1566
|
-
if (ar || !(i in from2)) {
|
|
1567
|
-
if (!ar) ar = Array.prototype.slice.call(from2, 0, i);
|
|
1568
|
-
ar[i] = from2[i];
|
|
1569
|
-
}
|
|
1570
|
-
}
|
|
1571
|
-
return to.concat(ar || Array.prototype.slice.call(from2));
|
|
1572
|
-
}
|
|
1573
|
-
|
|
1574
|
-
// ../../../node_modules/.pnpm/@emotion+memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
|
|
1575
|
-
function memoize(fn) {
|
|
1576
|
-
var cache = /* @__PURE__ */ Object.create(null);
|
|
1577
|
-
return function(arg) {
|
|
1578
|
-
if (cache[arg] === void 0) cache[arg] = fn(arg);
|
|
1579
|
-
return cache[arg];
|
|
1580
|
-
};
|
|
1581
|
-
}
|
|
1582
|
-
|
|
1583
|
-
// ../../../node_modules/.pnpm/@emotion+is-prop-valid@1.4.0/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js
|
|
1584
|
-
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
|
|
1585
|
-
var isPropValid = /* @__PURE__ */ memoize(
|
|
1586
|
-
function(prop) {
|
|
1587
|
-
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
|
|
1588
|
-
}
|
|
1589
|
-
/* Z+1 */
|
|
1590
|
-
);
|
|
1591
|
-
|
|
1592
|
-
// ../../../node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Enum.js
|
|
1593
|
-
var MS = "-ms-";
|
|
1594
|
-
var MOZ = "-moz-";
|
|
1595
|
-
var WEBKIT = "-webkit-";
|
|
1596
|
-
var COMMENT = "comm";
|
|
1597
|
-
var RULESET = "rule";
|
|
1598
|
-
var DECLARATION = "decl";
|
|
1599
|
-
var IMPORT = "@import";
|
|
1600
|
-
var NAMESPACE = "@namespace";
|
|
1601
|
-
var KEYFRAMES = "@keyframes";
|
|
1602
|
-
var LAYER = "@layer";
|
|
1603
|
-
|
|
1604
|
-
// ../../../node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Utility.js
|
|
1605
|
-
var abs = Math.abs;
|
|
1606
|
-
var from = String.fromCharCode;
|
|
1607
|
-
var assign = Object.assign;
|
|
1608
|
-
function hash(value, length2) {
|
|
1609
|
-
return charat(value, 0) ^ 45 ? (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
|
|
1610
|
-
}
|
|
1611
|
-
function trim(value) {
|
|
1612
|
-
return value.trim();
|
|
1613
|
-
}
|
|
1614
|
-
function match(value, pattern) {
|
|
1615
|
-
return (value = pattern.exec(value)) ? value[0] : value;
|
|
1616
|
-
}
|
|
1617
|
-
function replace(value, pattern, replacement) {
|
|
1618
|
-
return value.replace(pattern, replacement);
|
|
1619
|
-
}
|
|
1620
|
-
function indexof(value, search, position2) {
|
|
1621
|
-
return value.indexOf(search, position2);
|
|
1622
|
-
}
|
|
1623
|
-
function charat(value, index) {
|
|
1624
|
-
return value.charCodeAt(index) | 0;
|
|
1625
|
-
}
|
|
1626
|
-
function substr(value, begin, end) {
|
|
1627
|
-
return value.slice(begin, end);
|
|
1628
|
-
}
|
|
1629
|
-
function strlen(value) {
|
|
1630
|
-
return value.length;
|
|
1631
|
-
}
|
|
1632
|
-
function sizeof(value) {
|
|
1633
|
-
return value.length;
|
|
1634
|
-
}
|
|
1635
|
-
function append(value, array) {
|
|
1636
|
-
return array.push(value), value;
|
|
1637
|
-
}
|
|
1638
|
-
function combine(array, callback) {
|
|
1639
|
-
return array.map(callback).join("");
|
|
1640
|
-
}
|
|
1641
|
-
function filter(array, pattern) {
|
|
1642
|
-
return array.filter(function(value) {
|
|
1643
|
-
return !match(value, pattern);
|
|
1644
|
-
});
|
|
1645
|
-
}
|
|
1646
|
-
|
|
1647
|
-
// ../../../node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Tokenizer.js
|
|
1648
|
-
var line = 1;
|
|
1649
|
-
var column = 1;
|
|
1650
|
-
var length = 0;
|
|
1651
|
-
var position = 0;
|
|
1652
|
-
var character = 0;
|
|
1653
|
-
var characters = "";
|
|
1654
|
-
function node(value, root, parent, type, props, children, length2, siblings) {
|
|
1655
|
-
return { value, root, parent, type, props, children, line, column, length: length2, return: "", siblings };
|
|
1656
|
-
}
|
|
1657
|
-
function copy(root, props) {
|
|
1658
|
-
return assign(node("", null, null, "", null, null, 0, root.siblings), root, { length: -root.length }, props);
|
|
1659
|
-
}
|
|
1660
|
-
function lift(root) {
|
|
1661
|
-
while (root.root)
|
|
1662
|
-
root = copy(root.root, { children: [root] });
|
|
1663
|
-
append(root, root.siblings);
|
|
1664
|
-
}
|
|
1665
|
-
function char() {
|
|
1666
|
-
return character;
|
|
1667
|
-
}
|
|
1668
|
-
function prev() {
|
|
1669
|
-
character = position > 0 ? charat(characters, --position) : 0;
|
|
1670
|
-
if (column--, character === 10)
|
|
1671
|
-
column = 1, line--;
|
|
1672
|
-
return character;
|
|
1673
|
-
}
|
|
1674
|
-
function next() {
|
|
1675
|
-
character = position < length ? charat(characters, position++) : 0;
|
|
1676
|
-
if (column++, character === 10)
|
|
1677
|
-
column = 1, line++;
|
|
1678
|
-
return character;
|
|
1679
|
-
}
|
|
1680
|
-
function peek() {
|
|
1681
|
-
return charat(characters, position);
|
|
1682
|
-
}
|
|
1683
|
-
function caret() {
|
|
1684
|
-
return position;
|
|
1685
|
-
}
|
|
1686
|
-
function slice(begin, end) {
|
|
1687
|
-
return substr(characters, begin, end);
|
|
1688
|
-
}
|
|
1689
|
-
function token(type) {
|
|
1690
|
-
switch (type) {
|
|
1691
|
-
// \0 \t \n \r \s whitespace token
|
|
1692
|
-
case 0:
|
|
1693
|
-
case 9:
|
|
1694
|
-
case 10:
|
|
1695
|
-
case 13:
|
|
1696
|
-
case 32:
|
|
1697
|
-
return 5;
|
|
1698
|
-
// ! + , / > @ ~ isolate token
|
|
1699
|
-
case 33:
|
|
1700
|
-
case 43:
|
|
1701
|
-
case 44:
|
|
1702
|
-
case 47:
|
|
1703
|
-
case 62:
|
|
1704
|
-
case 64:
|
|
1705
|
-
case 126:
|
|
1706
|
-
// ; { } breakpoint token
|
|
1707
|
-
case 59:
|
|
1708
|
-
case 123:
|
|
1709
|
-
case 125:
|
|
1710
|
-
return 4;
|
|
1711
|
-
// : accompanied token
|
|
1712
|
-
case 58:
|
|
1713
|
-
return 3;
|
|
1714
|
-
// " ' ( [ opening delimit token
|
|
1715
|
-
case 34:
|
|
1716
|
-
case 39:
|
|
1717
|
-
case 40:
|
|
1718
|
-
case 91:
|
|
1719
|
-
return 2;
|
|
1720
|
-
// ) ] closing delimit token
|
|
1721
|
-
case 41:
|
|
1722
|
-
case 93:
|
|
1723
|
-
return 1;
|
|
1724
|
-
}
|
|
1725
|
-
return 0;
|
|
1726
|
-
}
|
|
1727
|
-
function alloc(value) {
|
|
1728
|
-
return line = column = 1, length = strlen(characters = value), position = 0, [];
|
|
1729
|
-
}
|
|
1730
|
-
function dealloc(value) {
|
|
1731
|
-
return characters = "", value;
|
|
1732
|
-
}
|
|
1733
|
-
function delimit(type) {
|
|
1734
|
-
return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
|
|
1735
|
-
}
|
|
1736
|
-
function whitespace(type) {
|
|
1737
|
-
while (character = peek())
|
|
1738
|
-
if (character < 33)
|
|
1739
|
-
next();
|
|
1740
|
-
else
|
|
1741
|
-
break;
|
|
1742
|
-
return token(type) > 2 || token(character) > 3 ? "" : " ";
|
|
1743
|
-
}
|
|
1744
|
-
function escaping(index, count) {
|
|
1745
|
-
while (--count && next())
|
|
1746
|
-
if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97)
|
|
1747
|
-
break;
|
|
1748
|
-
return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
|
|
1749
|
-
}
|
|
1750
|
-
function delimiter(type) {
|
|
1751
|
-
while (next())
|
|
1752
|
-
switch (character) {
|
|
1753
|
-
// ] ) " '
|
|
1754
|
-
case type:
|
|
1755
|
-
return position;
|
|
1756
|
-
// " '
|
|
1757
|
-
case 34:
|
|
1758
|
-
case 39:
|
|
1759
|
-
if (type !== 34 && type !== 39)
|
|
1760
|
-
delimiter(character);
|
|
1761
|
-
break;
|
|
1762
|
-
// (
|
|
1763
|
-
case 40:
|
|
1764
|
-
if (type === 41)
|
|
1765
|
-
delimiter(type);
|
|
1766
|
-
break;
|
|
1767
|
-
// \
|
|
1768
|
-
case 92:
|
|
1769
|
-
next();
|
|
1770
|
-
break;
|
|
1771
|
-
}
|
|
1772
|
-
return position;
|
|
1773
|
-
}
|
|
1774
|
-
function commenter(type, index) {
|
|
1775
|
-
while (next())
|
|
1776
|
-
if (type + character === 47 + 10)
|
|
1777
|
-
break;
|
|
1778
|
-
else if (type + character === 42 + 42 && peek() === 47)
|
|
1779
|
-
break;
|
|
1780
|
-
return "/*" + slice(index, position - 1) + "*" + from(type === 47 ? type : next());
|
|
1781
|
-
}
|
|
1782
|
-
function identifier(index) {
|
|
1783
|
-
while (!token(peek()))
|
|
1784
|
-
next();
|
|
1785
|
-
return slice(index, position);
|
|
1786
|
-
}
|
|
1787
|
-
|
|
1788
|
-
// ../../../node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Parser.js
|
|
1789
|
-
function compile(value) {
|
|
1790
|
-
return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value));
|
|
1791
|
-
}
|
|
1792
|
-
function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
|
|
1793
|
-
var index = 0;
|
|
1794
|
-
var offset = 0;
|
|
1795
|
-
var length2 = pseudo;
|
|
1796
|
-
var atrule = 0;
|
|
1797
|
-
var property = 0;
|
|
1798
|
-
var previous = 0;
|
|
1799
|
-
var variable = 1;
|
|
1800
|
-
var scanning = 1;
|
|
1801
|
-
var ampersand = 1;
|
|
1802
|
-
var character2 = 0;
|
|
1803
|
-
var type = "";
|
|
1804
|
-
var props = rules;
|
|
1805
|
-
var children = rulesets;
|
|
1806
|
-
var reference = rule;
|
|
1807
|
-
var characters2 = type;
|
|
1808
|
-
while (scanning)
|
|
1809
|
-
switch (previous = character2, character2 = next()) {
|
|
1810
|
-
// (
|
|
1811
|
-
case 40:
|
|
1812
|
-
if (previous != 108 && charat(characters2, length2 - 1) == 58) {
|
|
1813
|
-
if (indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f", abs(index ? points[index - 1] : 0)) != -1)
|
|
1814
|
-
ampersand = -1;
|
|
1815
|
-
break;
|
|
1816
|
-
}
|
|
1817
|
-
// " ' [
|
|
1818
|
-
case 34:
|
|
1819
|
-
case 39:
|
|
1820
|
-
case 91:
|
|
1821
|
-
characters2 += delimit(character2);
|
|
1822
|
-
break;
|
|
1823
|
-
// \t \n \r \s
|
|
1824
|
-
case 9:
|
|
1825
|
-
case 10:
|
|
1826
|
-
case 13:
|
|
1827
|
-
case 32:
|
|
1828
|
-
characters2 += whitespace(previous);
|
|
1829
|
-
break;
|
|
1830
|
-
// \
|
|
1831
|
-
case 92:
|
|
1832
|
-
characters2 += escaping(caret() - 1, 7);
|
|
1833
|
-
continue;
|
|
1834
|
-
// /
|
|
1835
|
-
case 47:
|
|
1836
|
-
switch (peek()) {
|
|
1837
|
-
case 42:
|
|
1838
|
-
case 47:
|
|
1839
|
-
append(comment(commenter(next(), caret()), root, parent, declarations), declarations);
|
|
1840
|
-
if ((token(previous || 1) == 5 || token(peek() || 1) == 5) && strlen(characters2) && substr(characters2, -1, void 0) !== " ") characters2 += " ";
|
|
1841
|
-
break;
|
|
1842
|
-
default:
|
|
1843
|
-
characters2 += "/";
|
|
1844
|
-
}
|
|
1845
|
-
break;
|
|
1846
|
-
// {
|
|
1847
|
-
case 123 * variable:
|
|
1848
|
-
points[index++] = strlen(characters2) * ampersand;
|
|
1849
|
-
// } ; \0
|
|
1850
|
-
case 125 * variable:
|
|
1851
|
-
case 59:
|
|
1852
|
-
case 0:
|
|
1853
|
-
switch (character2) {
|
|
1854
|
-
// \0 }
|
|
1855
|
-
case 0:
|
|
1856
|
-
case 125:
|
|
1857
|
-
scanning = 0;
|
|
1858
|
-
// ;
|
|
1859
|
-
case 59 + offset:
|
|
1860
|
-
if (ampersand == -1) characters2 = replace(characters2, /\f/g, "");
|
|
1861
|
-
if (property > 0 && (strlen(characters2) - length2 || variable === 0 && previous === 47))
|
|
1862
|
-
append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1, declarations) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2, declarations), declarations);
|
|
1863
|
-
break;
|
|
1864
|
-
// @ ;
|
|
1865
|
-
case 59:
|
|
1866
|
-
characters2 += ";";
|
|
1867
|
-
// { rule/at-rule
|
|
1868
|
-
default:
|
|
1869
|
-
append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props = [], children = [], length2, rulesets), rulesets);
|
|
1870
|
-
if (character2 === 123)
|
|
1871
|
-
if (offset === 0)
|
|
1872
|
-
parse(characters2, root, reference, reference, props, rulesets, length2, points, children);
|
|
1873
|
-
else {
|
|
1874
|
-
switch (atrule) {
|
|
1875
|
-
// c(ontainer)
|
|
1876
|
-
case 99:
|
|
1877
|
-
if (charat(characters2, 3) === 110) break;
|
|
1878
|
-
// l(ayer)
|
|
1879
|
-
case 108:
|
|
1880
|
-
if (charat(characters2, 2) === 97) break;
|
|
1881
|
-
default:
|
|
1882
|
-
offset = 0;
|
|
1883
|
-
// d(ocument) m(edia) s(upports)
|
|
1884
|
-
case 100:
|
|
1885
|
-
case 109:
|
|
1886
|
-
case 115:
|
|
1887
|
-
}
|
|
1888
|
-
if (offset) parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length2, children), children), rules, children, length2, points, rule ? props : children);
|
|
1889
|
-
else parse(characters2, reference, reference, reference, [""], children, 0, points, children);
|
|
1890
|
-
}
|
|
1891
|
-
}
|
|
1892
|
-
index = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo;
|
|
1893
|
-
break;
|
|
1894
|
-
// :
|
|
1895
|
-
case 58:
|
|
1896
|
-
length2 = 1 + strlen(characters2), property = previous;
|
|
1897
|
-
default:
|
|
1898
|
-
if (variable < 1) {
|
|
1899
|
-
if (character2 == 123)
|
|
1900
|
-
--variable;
|
|
1901
|
-
else if (character2 == 125 && variable++ == 0 && prev() == 125)
|
|
1902
|
-
continue;
|
|
1903
|
-
}
|
|
1904
|
-
switch (characters2 += from(character2), character2 * variable) {
|
|
1905
|
-
// &
|
|
1906
|
-
case 38:
|
|
1907
|
-
ampersand = offset > 0 ? 1 : (characters2 += "\f", -1);
|
|
1908
|
-
break;
|
|
1909
|
-
// ,
|
|
1910
|
-
case 44:
|
|
1911
|
-
points[index++] = (strlen(characters2) - 1) * ampersand, ampersand = 1;
|
|
1912
|
-
break;
|
|
1913
|
-
// @
|
|
1914
|
-
case 64:
|
|
1915
|
-
if (peek() === 45)
|
|
1916
|
-
characters2 += delimit(next());
|
|
1917
|
-
atrule = peek(), offset = length2 = strlen(type = characters2 += identifier(caret())), character2++;
|
|
1918
|
-
break;
|
|
1919
|
-
// -
|
|
1920
|
-
case 45:
|
|
1921
|
-
if (previous === 45 && strlen(characters2) == 2)
|
|
1922
|
-
variable = 0;
|
|
1923
|
-
}
|
|
1924
|
-
}
|
|
1925
|
-
return rulesets;
|
|
1926
|
-
}
|
|
1927
|
-
function ruleset(value, root, parent, index, offset, rules, points, type, props, children, length2, siblings) {
|
|
1928
|
-
var post = offset - 1;
|
|
1929
|
-
var rule = offset === 0 ? rules : [""];
|
|
1930
|
-
var size = sizeof(rule);
|
|
1931
|
-
for (var i = 0, j2 = 0, k2 = 0; i < index; ++i)
|
|
1932
|
-
for (var x2 = 0, y2 = substr(value, post + 1, post = abs(j2 = points[i])), z2 = value; x2 < size; ++x2)
|
|
1933
|
-
if (z2 = trim(j2 > 0 ? rule[x2] + " " + y2 : replace(y2, /&\f/g, rule[x2])))
|
|
1934
|
-
props[k2++] = z2;
|
|
1935
|
-
return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length2, siblings);
|
|
1936
|
-
}
|
|
1937
|
-
function comment(value, root, parent, siblings) {
|
|
1938
|
-
return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0, siblings);
|
|
1939
|
-
}
|
|
1940
|
-
function declaration(value, root, parent, length2, siblings) {
|
|
1941
|
-
return node(value, root, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2, siblings);
|
|
1942
|
-
}
|
|
1943
|
-
|
|
1944
|
-
// ../../../node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Prefixer.js
|
|
1945
|
-
function prefix(value, length2, children) {
|
|
1946
|
-
switch (hash(value, length2)) {
|
|
1947
|
-
// color-adjust
|
|
1948
|
-
case 5103:
|
|
1949
|
-
return WEBKIT + "print-" + value + value;
|
|
1950
|
-
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
1951
|
-
case 5737:
|
|
1952
|
-
case 4201:
|
|
1953
|
-
case 3177:
|
|
1954
|
-
case 3433:
|
|
1955
|
-
case 1641:
|
|
1956
|
-
case 4457:
|
|
1957
|
-
case 2921:
|
|
1958
|
-
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
1959
|
-
case 5572:
|
|
1960
|
-
case 6356:
|
|
1961
|
-
case 5844:
|
|
1962
|
-
case 3191:
|
|
1963
|
-
case 6645:
|
|
1964
|
-
case 3005:
|
|
1965
|
-
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
1966
|
-
case 4215:
|
|
1967
|
-
case 6389:
|
|
1968
|
-
case 5109:
|
|
1969
|
-
case 5365:
|
|
1970
|
-
case 5621:
|
|
1971
|
-
case 3829:
|
|
1972
|
-
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position
|
|
1973
|
-
case 6391:
|
|
1974
|
-
case 5879:
|
|
1975
|
-
case 5623:
|
|
1976
|
-
case 6135:
|
|
1977
|
-
case 4599:
|
|
1978
|
-
return WEBKIT + value + value;
|
|
1979
|
-
// mask-composite
|
|
1980
|
-
case 4855:
|
|
1981
|
-
return WEBKIT + value.replace("add", "source-over").replace("substract", "source-out").replace("intersect", "source-in").replace("exclude", "xor") + value;
|
|
1982
|
-
// tab-size
|
|
1983
|
-
case 4789:
|
|
1984
|
-
return MOZ + value + value;
|
|
1985
|
-
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
1986
|
-
case 5349:
|
|
1987
|
-
case 4246:
|
|
1988
|
-
case 4810:
|
|
1989
|
-
case 6968:
|
|
1990
|
-
case 2756:
|
|
1991
|
-
return WEBKIT + value + MOZ + value + MS + value + value;
|
|
1992
|
-
// writing-mode
|
|
1993
|
-
case 5936:
|
|
1994
|
-
switch (charat(value, length2 + 11)) {
|
|
1995
|
-
// vertical-l(r)
|
|
1996
|
-
case 114:
|
|
1997
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
|
|
1998
|
-
// vertical-r(l)
|
|
1999
|
-
case 108:
|
|
2000
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
|
|
2001
|
-
// horizontal(-)tb
|
|
2002
|
-
case 45:
|
|
2003
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
|
|
2004
|
-
}
|
|
2005
|
-
// flex, flex-direction, scroll-snap-type, writing-mode
|
|
2006
|
-
case 6828:
|
|
2007
|
-
case 4268:
|
|
2008
|
-
case 2903:
|
|
2009
|
-
return WEBKIT + value + MS + value + value;
|
|
2010
|
-
// order
|
|
2011
|
-
case 6165:
|
|
2012
|
-
return WEBKIT + value + MS + "flex-" + value + value;
|
|
2013
|
-
// align-items
|
|
2014
|
-
case 5187:
|
|
2015
|
-
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
|
|
2016
|
-
// align-self
|
|
2017
|
-
case 5443:
|
|
2018
|
-
return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/g, "") + (!match(value, /flex-|baseline/) ? MS + "grid-row-" + replace(value, /flex-|-self/g, "") : "") + value;
|
|
2019
|
-
// align-content
|
|
2020
|
-
case 4675:
|
|
2021
|
-
return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/g, "") + value;
|
|
2022
|
-
// flex-shrink
|
|
2023
|
-
case 5548:
|
|
2024
|
-
return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
|
|
2025
|
-
// flex-basis
|
|
2026
|
-
case 5292:
|
|
2027
|
-
return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
|
|
2028
|
-
// flex-grow
|
|
2029
|
-
case 6060:
|
|
2030
|
-
return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
|
|
2031
|
-
// transition
|
|
2032
|
-
case 4554:
|
|
2033
|
-
return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
|
|
2034
|
-
// cursor
|
|
2035
|
-
case 6187:
|
|
2036
|
-
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
|
|
2037
|
-
// background, background-image
|
|
2038
|
-
case 5495:
|
|
2039
|
-
case 3959:
|
|
2040
|
-
return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
|
|
2041
|
-
// justify-content
|
|
2042
|
-
case 4968:
|
|
2043
|
-
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /space-between/, "justify") + WEBKIT + value + value;
|
|
2044
|
-
// justify-self
|
|
2045
|
-
case 4200:
|
|
2046
|
-
if (!match(value, /flex-|baseline/)) return MS + "grid-column-align" + substr(value, length2) + value;
|
|
2047
|
-
break;
|
|
2048
|
-
// grid-template-(columns|rows)
|
|
2049
|
-
case 2592:
|
|
2050
|
-
case 3360:
|
|
2051
|
-
return MS + replace(value, "template-", "") + value;
|
|
2052
|
-
// grid-(row|column)-start
|
|
2053
|
-
case 4384:
|
|
2054
|
-
case 3616:
|
|
2055
|
-
if (children && children.some(function(element, index) {
|
|
2056
|
-
return length2 = index, match(element.props, /grid-\w+-end/);
|
|
2057
|
-
})) {
|
|
2058
|
-
return ~indexof(value + (children = children[length2].value), "span", 0) ? value : MS + replace(value, "-start", "") + value + MS + "grid-row-span:" + (~indexof(children, "span", 0) ? match(children, /\d+/) : +match(children, /\d+/) - +match(value, /\d+/)) + ";";
|
|
2059
|
-
}
|
|
2060
|
-
return MS + replace(value, "-start", "") + value;
|
|
2061
|
-
// grid-(row|column)-end
|
|
2062
|
-
case 4896:
|
|
2063
|
-
case 4128:
|
|
2064
|
-
return children && children.some(function(element) {
|
|
2065
|
-
return match(element.props, /grid-\w+-start/);
|
|
2066
|
-
}) ? value : MS + replace(replace(value, "-end", "-span"), "span ", "") + value;
|
|
2067
|
-
// (margin|padding)-inline-(start|end)
|
|
2068
|
-
case 4095:
|
|
2069
|
-
case 3583:
|
|
2070
|
-
case 4068:
|
|
2071
|
-
case 2532:
|
|
2072
|
-
return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
|
|
2073
|
-
// (min|max)?(width|height|inline-size|block-size)
|
|
2074
|
-
case 8116:
|
|
2075
|
-
case 7059:
|
|
2076
|
-
case 5753:
|
|
2077
|
-
case 5535:
|
|
2078
|
-
case 5445:
|
|
2079
|
-
case 5701:
|
|
2080
|
-
case 4933:
|
|
2081
|
-
case 4677:
|
|
2082
|
-
case 5533:
|
|
2083
|
-
case 5789:
|
|
2084
|
-
case 5021:
|
|
2085
|
-
case 4765:
|
|
2086
|
-
if (strlen(value) - 1 - length2 > 6)
|
|
2087
|
-
switch (charat(value, length2 + 1)) {
|
|
2088
|
-
// (m)ax-content, (m)in-content
|
|
2089
|
-
case 109:
|
|
2090
|
-
if (charat(value, length2 + 4) !== 45)
|
|
2091
|
-
break;
|
|
2092
|
-
// (f)ill-available, (f)it-content
|
|
2093
|
-
case 102:
|
|
2094
|
-
return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value;
|
|
2095
|
-
// (s)tretch
|
|
2096
|
-
case 115:
|
|
2097
|
-
return ~indexof(value, "stretch", 0) ? prefix(replace(value, "stretch", "fill-available"), length2, children) + value : value;
|
|
2098
|
-
}
|
|
2099
|
-
break;
|
|
2100
|
-
// grid-(column|row)
|
|
2101
|
-
case 5152:
|
|
2102
|
-
case 5920:
|
|
2103
|
-
return replace(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(_2, a2, b2, c2, d2, e, f2) {
|
|
2104
|
-
return MS + a2 + ":" + b2 + f2 + (c2 ? MS + a2 + "-span:" + (d2 ? e : +e - +b2) + f2 : "") + value;
|
|
2105
|
-
});
|
|
2106
|
-
// position: sticky
|
|
2107
|
-
case 4949:
|
|
2108
|
-
if (charat(value, length2 + 6) === 121)
|
|
2109
|
-
return replace(value, ":", ":" + WEBKIT) + value;
|
|
2110
|
-
break;
|
|
2111
|
-
// display: (flex|inline-flex|grid|inline-grid)
|
|
2112
|
-
case 6444:
|
|
2113
|
-
switch (charat(value, charat(value, 14) === 45 ? 18 : 11)) {
|
|
2114
|
-
// (inline-)?fle(x)
|
|
2115
|
-
case 120:
|
|
2116
|
-
return replace(value, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
|
|
2117
|
-
// (inline-)?gri(d)
|
|
2118
|
-
case 100:
|
|
2119
|
-
return replace(value, ":", ":" + MS) + value;
|
|
2120
|
-
}
|
|
2121
|
-
break;
|
|
2122
|
-
// scroll-margin, scroll-margin-(top|right|bottom|left)
|
|
2123
|
-
case 5719:
|
|
2124
|
-
case 2647:
|
|
2125
|
-
case 2135:
|
|
2126
|
-
case 3927:
|
|
2127
|
-
case 2391:
|
|
2128
|
-
return replace(value, "scroll-", "scroll-snap-") + value;
|
|
2129
|
-
}
|
|
2130
|
-
return value;
|
|
2131
|
-
}
|
|
2132
|
-
|
|
2133
|
-
// ../../../node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Serializer.js
|
|
2134
|
-
function serialize(children, callback) {
|
|
2135
|
-
var output = "";
|
|
2136
|
-
for (var i = 0; i < children.length; i++)
|
|
2137
|
-
output += callback(children[i], i, children, callback) || "";
|
|
2138
|
-
return output;
|
|
2139
|
-
}
|
|
2140
|
-
function stringify(element, index, children, callback) {
|
|
2141
|
-
switch (element.type) {
|
|
2142
|
-
case LAYER:
|
|
2143
|
-
if (element.children.length) break;
|
|
2144
|
-
case IMPORT:
|
|
2145
|
-
case NAMESPACE:
|
|
2146
|
-
case DECLARATION:
|
|
2147
|
-
return element.return = element.return || element.value;
|
|
2148
|
-
case COMMENT:
|
|
2149
|
-
return "";
|
|
2150
|
-
case KEYFRAMES:
|
|
2151
|
-
return element.return = element.value + "{" + serialize(element.children, callback) + "}";
|
|
2152
|
-
case RULESET:
|
|
2153
|
-
if (!strlen(element.value = element.props.join(","))) return "";
|
|
2154
|
-
}
|
|
2155
|
-
return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : "";
|
|
2156
|
-
}
|
|
2157
|
-
|
|
2158
|
-
// ../../../node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Middleware.js
|
|
2159
|
-
function middleware(collection) {
|
|
2160
|
-
var length2 = sizeof(collection);
|
|
2161
|
-
return function(element, index, children, callback) {
|
|
2162
|
-
var output = "";
|
|
2163
|
-
for (var i = 0; i < length2; i++)
|
|
2164
|
-
output += collection[i](element, index, children, callback) || "";
|
|
2165
|
-
return output;
|
|
2166
|
-
};
|
|
2167
|
-
}
|
|
2168
|
-
function rulesheet(callback) {
|
|
2169
|
-
return function(element) {
|
|
2170
|
-
if (!element.root) {
|
|
2171
|
-
if (element = element.return)
|
|
2172
|
-
callback(element);
|
|
2173
|
-
}
|
|
2174
|
-
};
|
|
2175
|
-
}
|
|
2176
|
-
function prefixer(element, index, children, callback) {
|
|
2177
|
-
if (element.length > -1) {
|
|
2178
|
-
if (!element.return)
|
|
2179
|
-
switch (element.type) {
|
|
2180
|
-
case DECLARATION:
|
|
2181
|
-
element.return = prefix(element.value, element.length, children);
|
|
2182
|
-
return;
|
|
2183
|
-
case KEYFRAMES:
|
|
2184
|
-
return serialize([copy(element, { value: replace(element.value, "@", "@" + WEBKIT) })], callback);
|
|
2185
|
-
case RULESET:
|
|
2186
|
-
if (element.length)
|
|
2187
|
-
return combine(children = element.props, function(value) {
|
|
2188
|
-
switch (match(value, callback = /(::plac\w+|:read-\w+)/)) {
|
|
2189
|
-
// :read-(only|write)
|
|
2190
|
-
case ":read-only":
|
|
2191
|
-
case ":read-write":
|
|
2192
|
-
lift(copy(element, { props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")] }));
|
|
2193
|
-
lift(copy(element, { props: [value] }));
|
|
2194
|
-
assign(element, { props: filter(children, callback) });
|
|
2195
|
-
break;
|
|
2196
|
-
// :placeholder
|
|
2197
|
-
case "::placeholder":
|
|
2198
|
-
lift(copy(element, { props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")] }));
|
|
2199
|
-
lift(copy(element, { props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")] }));
|
|
2200
|
-
lift(copy(element, { props: [replace(value, /:(plac\w+)/, MS + "input-$1")] }));
|
|
2201
|
-
lift(copy(element, { props: [value] }));
|
|
2202
|
-
assign(element, { props: filter(children, callback) });
|
|
2203
|
-
break;
|
|
2204
|
-
}
|
|
2205
|
-
return "";
|
|
2206
|
-
});
|
|
2207
|
-
}
|
|
2208
|
-
}
|
|
2209
|
-
}
|
|
2210
|
-
|
|
2211
|
-
// ../../../node_modules/.pnpm/@emotion+unitless@0.10.0/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
|
|
2212
|
-
var unitlessKeys = {
|
|
2213
|
-
animationIterationCount: 1,
|
|
2214
|
-
aspectRatio: 1,
|
|
2215
|
-
borderImageOutset: 1,
|
|
2216
|
-
borderImageSlice: 1,
|
|
2217
|
-
borderImageWidth: 1,
|
|
2218
|
-
boxFlex: 1,
|
|
2219
|
-
boxFlexGroup: 1,
|
|
2220
|
-
boxOrdinalGroup: 1,
|
|
2221
|
-
columnCount: 1,
|
|
2222
|
-
columns: 1,
|
|
2223
|
-
flex: 1,
|
|
2224
|
-
flexGrow: 1,
|
|
2225
|
-
flexPositive: 1,
|
|
2226
|
-
flexShrink: 1,
|
|
2227
|
-
flexNegative: 1,
|
|
2228
|
-
flexOrder: 1,
|
|
2229
|
-
gridRow: 1,
|
|
2230
|
-
gridRowEnd: 1,
|
|
2231
|
-
gridRowSpan: 1,
|
|
2232
|
-
gridRowStart: 1,
|
|
2233
|
-
gridColumn: 1,
|
|
2234
|
-
gridColumnEnd: 1,
|
|
2235
|
-
gridColumnSpan: 1,
|
|
2236
|
-
gridColumnStart: 1,
|
|
2237
|
-
msGridRow: 1,
|
|
2238
|
-
msGridRowSpan: 1,
|
|
2239
|
-
msGridColumn: 1,
|
|
2240
|
-
msGridColumnSpan: 1,
|
|
2241
|
-
fontWeight: 1,
|
|
2242
|
-
lineHeight: 1,
|
|
2243
|
-
opacity: 1,
|
|
2244
|
-
order: 1,
|
|
2245
|
-
orphans: 1,
|
|
2246
|
-
scale: 1,
|
|
2247
|
-
tabSize: 1,
|
|
2248
|
-
widows: 1,
|
|
2249
|
-
zIndex: 1,
|
|
2250
|
-
zoom: 1,
|
|
2251
|
-
WebkitLineClamp: 1,
|
|
2252
|
-
// SVG-related properties
|
|
2253
|
-
fillOpacity: 1,
|
|
2254
|
-
floodOpacity: 1,
|
|
2255
|
-
stopOpacity: 1,
|
|
2256
|
-
strokeDasharray: 1,
|
|
2257
|
-
strokeDashoffset: 1,
|
|
2258
|
-
strokeMiterlimit: 1,
|
|
2259
|
-
strokeOpacity: 1,
|
|
2260
|
-
strokeWidth: 1
|
|
2261
|
-
};
|
|
2262
|
-
|
|
2263
|
-
// ../../../node_modules/.pnpm/styled-components@6.3.6_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/styled-components/dist/styled-components.esm.js
|
|
2264
|
-
var a = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled";
|
|
2265
|
-
var c = "active";
|
|
2266
|
-
var u = "data-styled-version";
|
|
2267
|
-
var l = "6.3.6";
|
|
2268
|
-
var p = "/*!sc*/\n";
|
|
2269
|
-
var d = "undefined" != typeof window && "undefined" != typeof document;
|
|
2270
|
-
var h = void 0 === o__namespace.default.createContext;
|
|
2271
|
-
var f = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : "production" !== process.env.NODE_ENV);
|
|
2272
|
-
var y = /invalid hook call/i;
|
|
2273
|
-
var v = /* @__PURE__ */ new Set();
|
|
2274
|
-
var g = function(t, n) {
|
|
2275
|
-
if ("production" !== process.env.NODE_ENV) {
|
|
2276
|
-
if (h) return;
|
|
2277
|
-
var r2 = n ? ' with the id of "'.concat(n, '"') : "", s = "The component ".concat(t).concat(r2, " has been created dynamically.\n") + "You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n", i = console.error;
|
|
2278
|
-
try {
|
|
2279
|
-
var a2 = true;
|
|
2280
|
-
console.error = function(t2) {
|
|
2281
|
-
for (var n2 = [], o2 = 1; o2 < arguments.length; o2++) n2[o2 - 1] = arguments[o2];
|
|
2282
|
-
y.test(t2) ? (a2 = false, v.delete(s)) : i.apply(void 0, __spreadArray([t2], n2, false));
|
|
2283
|
-
}, "function" == typeof o__namespace.default.useState && o__namespace.default.useState(null), a2 && !v.has(s) && (console.warn(s), v.add(s));
|
|
2284
|
-
} catch (e) {
|
|
2285
|
-
y.test(e.message) && v.delete(s);
|
|
2286
|
-
} finally {
|
|
2287
|
-
console.error = i;
|
|
2288
|
-
}
|
|
2289
|
-
}
|
|
2290
|
-
};
|
|
2291
|
-
var S = Object.freeze([]);
|
|
2292
|
-
var w = Object.freeze({});
|
|
2293
|
-
function b(e, t, n) {
|
|
2294
|
-
return void 0 === n && (n = w), e.theme !== n.theme && e.theme || t || n.theme;
|
|
2295
|
-
}
|
|
2296
|
-
var C = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "blockquote", "body", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "menu", "meter", "nav", "object", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "slot", "small", "span", "strong", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "switch", "symbol", "text", "textPath", "tspan", "use"]);
|
|
2297
|
-
var E = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g;
|
|
2298
|
-
var N = /(^-|-$)/g;
|
|
2299
|
-
function A(e) {
|
|
2300
|
-
return e.replace(E, "-").replace(N, "");
|
|
2301
|
-
}
|
|
2302
|
-
var P = /(a)(d)/gi;
|
|
2303
|
-
var _ = function(e) {
|
|
2304
|
-
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
2305
|
-
};
|
|
2306
|
-
function I(e) {
|
|
2307
|
-
var t, n = "";
|
|
2308
|
-
for (t = Math.abs(e); t > 52; t = t / 52 | 0) n = _(t % 52) + n;
|
|
2309
|
-
return (_(t % 52) + n).replace(P, "$1-$2");
|
|
2310
|
-
}
|
|
2311
|
-
var O;
|
|
2312
|
-
var D = function(e, t) {
|
|
2313
|
-
for (var n = t.length; n; ) e = 33 * e ^ t.charCodeAt(--n);
|
|
2314
|
-
return e;
|
|
2315
|
-
};
|
|
2316
|
-
var T = function(e) {
|
|
2317
|
-
return D(5381, e);
|
|
2318
|
-
};
|
|
2319
|
-
function x(e) {
|
|
2320
|
-
return I(T(e) >>> 0);
|
|
2321
|
-
}
|
|
2322
|
-
function R(e) {
|
|
2323
|
-
return "production" !== process.env.NODE_ENV && "string" == typeof e && e || e.displayName || e.name || "Component";
|
|
2324
|
-
}
|
|
2325
|
-
function j(e) {
|
|
2326
|
-
return "string" == typeof e && ("production" === process.env.NODE_ENV || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
2327
|
-
}
|
|
2328
|
-
var k = "function" == typeof Symbol && Symbol.for;
|
|
2329
|
-
var M = k ? Symbol.for("react.memo") : 60115;
|
|
2330
|
-
var V = k ? Symbol.for("react.forward_ref") : 60112;
|
|
2331
|
-
var F = { childContextTypes: true, contextType: true, contextTypes: true, defaultProps: true, displayName: true, getDefaultProps: true, getDerivedStateFromError: true, getDerivedStateFromProps: true, mixins: true, propTypes: true, type: true };
|
|
2332
|
-
var B = { name: true, length: true, prototype: true, caller: true, callee: true, arguments: true, arity: true };
|
|
2333
|
-
var L = { $$typeof: true, compare: true, defaultProps: true, displayName: true, propTypes: true, type: true };
|
|
2334
|
-
var z = ((O = {})[V] = { $$typeof: true, render: true, defaultProps: true, displayName: true, propTypes: true }, O[M] = L, O);
|
|
2335
|
-
function G(e) {
|
|
2336
|
-
return ("type" in (t = e) && t.type.$$typeof) === M ? L : "$$typeof" in e ? z[e.$$typeof] : F;
|
|
2337
|
-
var t;
|
|
2338
|
-
}
|
|
2339
|
-
var $ = Object.defineProperty;
|
|
2340
|
-
var Y = Object.getOwnPropertyNames;
|
|
2341
|
-
var W = Object.getOwnPropertySymbols;
|
|
2342
|
-
var q = Object.getOwnPropertyDescriptor;
|
|
2343
|
-
var H = Object.getPrototypeOf;
|
|
2344
|
-
var U = Object.prototype;
|
|
2345
|
-
function J(e, t, n) {
|
|
2346
|
-
if ("string" != typeof t) {
|
|
2347
|
-
if (U) {
|
|
2348
|
-
var o2 = H(t);
|
|
2349
|
-
o2 && o2 !== U && J(e, o2, n);
|
|
2350
|
-
}
|
|
2351
|
-
var r2 = Y(t);
|
|
2352
|
-
W && (r2 = r2.concat(W(t)));
|
|
2353
|
-
for (var s = G(e), i = G(t), a2 = 0; a2 < r2.length; ++a2) {
|
|
2354
|
-
var c2 = r2[a2];
|
|
2355
|
-
if (!(c2 in B || n && n[c2] || i && c2 in i || s && c2 in s)) {
|
|
2356
|
-
var u2 = q(t, c2);
|
|
2357
|
-
try {
|
|
2358
|
-
$(e, c2, u2);
|
|
2359
|
-
} catch (e2) {
|
|
2360
|
-
}
|
|
2361
|
-
}
|
|
2362
|
-
}
|
|
2363
|
-
}
|
|
2364
|
-
return e;
|
|
2365
|
-
}
|
|
2366
|
-
function X(e) {
|
|
2367
|
-
return "function" == typeof e;
|
|
2368
|
-
}
|
|
2369
|
-
function Z(e) {
|
|
2370
|
-
return "object" == typeof e && "styledComponentId" in e;
|
|
2371
|
-
}
|
|
2372
|
-
function K(e, t) {
|
|
2373
|
-
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
2374
|
-
}
|
|
2375
|
-
function Q(e, t) {
|
|
2376
|
-
if (0 === e.length) return "";
|
|
2377
|
-
for (var n = e[0], o2 = 1; o2 < e.length; o2++) n += e[o2];
|
|
2378
|
-
return n;
|
|
2379
|
-
}
|
|
2380
|
-
function ee(e) {
|
|
2381
|
-
return null !== e && "object" == typeof e && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
2382
|
-
}
|
|
2383
|
-
function te(e, t, n) {
|
|
2384
|
-
if (void 0 === n && (n = false), !n && !ee(e) && !Array.isArray(e)) return t;
|
|
2385
|
-
if (Array.isArray(t)) for (var o2 = 0; o2 < t.length; o2++) e[o2] = te(e[o2], t[o2]);
|
|
2386
|
-
else if (ee(t)) for (var o2 in t) e[o2] = te(e[o2], t[o2]);
|
|
2387
|
-
return e;
|
|
2388
|
-
}
|
|
2389
|
-
function ne(e, t) {
|
|
2390
|
-
Object.defineProperty(e, "toString", { value: t });
|
|
2391
|
-
}
|
|
2392
|
-
var oe = "production" !== process.env.NODE_ENV ? { 1: "Cannot create styled-component for component: %s.\n\n", 2: "Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n", 3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n", 4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n", 5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n", 6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n", 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: 'ThemeProvider: Please make your "theme" prop an object.\n\n', 9: "Missing document `<head>`\n\n", 10: "Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n", 11: "_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n", 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: "%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n", 14: 'ThemeProvider: "theme" prop is required.\n\n', 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n", 17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n", 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
|
|
2393
|
-
function re() {
|
|
2394
|
-
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
|
|
2395
|
-
for (var n = e[0], o2 = [], r2 = 1, s = e.length; r2 < s; r2 += 1) o2.push(e[r2]);
|
|
2396
|
-
return o2.forEach(function(e2) {
|
|
2397
|
-
n = n.replace(/%[a-z]/, e2);
|
|
2398
|
-
}), n;
|
|
2399
|
-
}
|
|
2400
|
-
function se(t) {
|
|
2401
|
-
for (var n = [], o2 = 1; o2 < arguments.length; o2++) n[o2 - 1] = arguments[o2];
|
|
2402
|
-
return "production" === process.env.NODE_ENV ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t, " for more information.").concat(n.length > 0 ? " Args: ".concat(n.join(", ")) : "")) : new Error(re.apply(void 0, __spreadArray([oe[t]], n, false)).trim());
|
|
2403
|
-
}
|
|
2404
|
-
var ie = function() {
|
|
2405
|
-
function e(e2) {
|
|
2406
|
-
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e2;
|
|
2407
|
-
}
|
|
2408
|
-
return e.prototype.indexOfGroup = function(e2) {
|
|
2409
|
-
for (var t = 0, n = 0; n < e2; n++) t += this.groupSizes[n];
|
|
2410
|
-
return t;
|
|
2411
|
-
}, e.prototype.insertRules = function(e2, t) {
|
|
2412
|
-
if (e2 >= this.groupSizes.length) {
|
|
2413
|
-
for (var n = this.groupSizes, o2 = n.length, r2 = o2; e2 >= r2; ) if ((r2 <<= 1) < 0) throw se(16, "".concat(e2));
|
|
2414
|
-
this.groupSizes = new Uint32Array(r2), this.groupSizes.set(n), this.length = r2;
|
|
2415
|
-
for (var s = o2; s < r2; s++) this.groupSizes[s] = 0;
|
|
2416
|
-
}
|
|
2417
|
-
for (var i = this.indexOfGroup(e2 + 1), a2 = (s = 0, t.length); s < a2; s++) this.tag.insertRule(i, t[s]) && (this.groupSizes[e2]++, i++);
|
|
2418
|
-
}, e.prototype.clearGroup = function(e2) {
|
|
2419
|
-
if (e2 < this.length) {
|
|
2420
|
-
var t = this.groupSizes[e2], n = this.indexOfGroup(e2), o2 = n + t;
|
|
2421
|
-
this.groupSizes[e2] = 0;
|
|
2422
|
-
for (var r2 = n; r2 < o2; r2++) this.tag.deleteRule(n);
|
|
2423
|
-
}
|
|
2424
|
-
}, e.prototype.getGroup = function(e2) {
|
|
2425
|
-
var t = "";
|
|
2426
|
-
if (e2 >= this.length || 0 === this.groupSizes[e2]) return t;
|
|
2427
|
-
for (var n = this.groupSizes[e2], o2 = this.indexOfGroup(e2), r2 = o2 + n, s = o2; s < r2; s++) t += "".concat(this.tag.getRule(s)).concat(p);
|
|
2428
|
-
return t;
|
|
2429
|
-
}, e;
|
|
2430
|
-
}();
|
|
2431
|
-
var ae = 1 << 30;
|
|
2432
|
-
var ce = /* @__PURE__ */ new Map();
|
|
2433
|
-
var ue = /* @__PURE__ */ new Map();
|
|
2434
|
-
var le = 1;
|
|
2435
|
-
var pe = function(e) {
|
|
2436
|
-
if (ce.has(e)) return ce.get(e);
|
|
2437
|
-
for (; ue.has(le); ) le++;
|
|
2438
|
-
var t = le++;
|
|
2439
|
-
if ("production" !== process.env.NODE_ENV && ((0 | t) < 0 || t > ae)) throw se(16, "".concat(t));
|
|
2440
|
-
return ce.set(e, t), ue.set(t, e), t;
|
|
2441
|
-
};
|
|
2442
|
-
var de = function(e, t) {
|
|
2443
|
-
le = t + 1, ce.set(e, t), ue.set(t, e);
|
|
2444
|
-
};
|
|
2445
|
-
var he = "style[".concat(a, "][").concat(u, '="').concat(l, '"]');
|
|
2446
|
-
var fe = new RegExp("^".concat(a, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'));
|
|
2447
|
-
var me = function(e, t, n) {
|
|
2448
|
-
for (var o2, r2 = n.split(","), s = 0, i = r2.length; s < i; s++) (o2 = r2[s]) && e.registerName(t, o2);
|
|
2449
|
-
};
|
|
2450
|
-
var ye = function(e, t) {
|
|
2451
|
-
for (var n, o2 = (null !== (n = t.textContent) && void 0 !== n ? n : "").split(p), r2 = [], s = 0, i = o2.length; s < i; s++) {
|
|
2452
|
-
var a2 = o2[s].trim();
|
|
2453
|
-
if (a2) {
|
|
2454
|
-
var c2 = a2.match(fe);
|
|
2455
|
-
if (c2) {
|
|
2456
|
-
var u2 = 0 | parseInt(c2[1], 10), l2 = c2[2];
|
|
2457
|
-
0 !== u2 && (de(l2, u2), me(e, l2, c2[3]), e.getTag().insertRules(u2, r2)), r2.length = 0;
|
|
2458
|
-
} else r2.push(a2);
|
|
2459
|
-
}
|
|
2460
|
-
}
|
|
2461
|
-
};
|
|
2462
|
-
var ve = function(e) {
|
|
2463
|
-
for (var t = document.querySelectorAll(he), n = 0, o2 = t.length; n < o2; n++) {
|
|
2464
|
-
var r2 = t[n];
|
|
2465
|
-
r2 && r2.getAttribute(a) !== c && (ye(e, r2), r2.parentNode && r2.parentNode.removeChild(r2));
|
|
2466
|
-
}
|
|
2467
|
-
};
|
|
2468
|
-
function ge() {
|
|
2469
|
-
return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null;
|
|
2470
|
-
}
|
|
2471
|
-
var Se = function(e) {
|
|
2472
|
-
var t = document.head, n = e || t, o2 = document.createElement("style"), r2 = function(e2) {
|
|
2473
|
-
var t2 = Array.from(e2.querySelectorAll("style[".concat(a, "]")));
|
|
2474
|
-
return t2[t2.length - 1];
|
|
2475
|
-
}(n), s = void 0 !== r2 ? r2.nextSibling : null;
|
|
2476
|
-
o2.setAttribute(a, c), o2.setAttribute(u, l);
|
|
2477
|
-
var i = ge();
|
|
2478
|
-
return i && o2.setAttribute("nonce", i), n.insertBefore(o2, s), o2;
|
|
2479
|
-
};
|
|
2480
|
-
var we = function() {
|
|
2481
|
-
function e(e2) {
|
|
2482
|
-
this.element = Se(e2), this.element.appendChild(document.createTextNode("")), this.sheet = function(e3) {
|
|
2483
|
-
if (e3.sheet) return e3.sheet;
|
|
2484
|
-
for (var t = document.styleSheets, n = 0, o2 = t.length; n < o2; n++) {
|
|
2485
|
-
var r2 = t[n];
|
|
2486
|
-
if (r2.ownerNode === e3) return r2;
|
|
2487
|
-
}
|
|
2488
|
-
throw se(17);
|
|
2489
|
-
}(this.element), this.length = 0;
|
|
2490
|
-
}
|
|
2491
|
-
return e.prototype.insertRule = function(e2, t) {
|
|
2492
|
-
try {
|
|
2493
|
-
return this.sheet.insertRule(t, e2), this.length++, true;
|
|
2494
|
-
} catch (e3) {
|
|
2495
|
-
return false;
|
|
2496
|
-
}
|
|
2497
|
-
}, e.prototype.deleteRule = function(e2) {
|
|
2498
|
-
this.sheet.deleteRule(e2), this.length--;
|
|
2499
|
-
}, e.prototype.getRule = function(e2) {
|
|
2500
|
-
var t = this.sheet.cssRules[e2];
|
|
2501
|
-
return t && t.cssText ? t.cssText : "";
|
|
2502
|
-
}, e;
|
|
2503
|
-
}();
|
|
2504
|
-
var be = function() {
|
|
2505
|
-
function e(e2) {
|
|
2506
|
-
this.element = Se(e2), this.nodes = this.element.childNodes, this.length = 0;
|
|
2507
|
-
}
|
|
2508
|
-
return e.prototype.insertRule = function(e2, t) {
|
|
2509
|
-
if (e2 <= this.length && e2 >= 0) {
|
|
2510
|
-
var n = document.createTextNode(t);
|
|
2511
|
-
return this.element.insertBefore(n, this.nodes[e2] || null), this.length++, true;
|
|
2512
|
-
}
|
|
2513
|
-
return false;
|
|
2514
|
-
}, e.prototype.deleteRule = function(e2) {
|
|
2515
|
-
this.element.removeChild(this.nodes[e2]), this.length--;
|
|
2516
|
-
}, e.prototype.getRule = function(e2) {
|
|
2517
|
-
return e2 < this.length ? this.nodes[e2].textContent : "";
|
|
2518
|
-
}, e;
|
|
2519
|
-
}();
|
|
2520
|
-
var Ce = function() {
|
|
2521
|
-
function e(e2) {
|
|
2522
|
-
this.rules = [], this.length = 0;
|
|
2523
|
-
}
|
|
2524
|
-
return e.prototype.insertRule = function(e2, t) {
|
|
2525
|
-
return e2 <= this.length && (this.rules.splice(e2, 0, t), this.length++, true);
|
|
2526
|
-
}, e.prototype.deleteRule = function(e2) {
|
|
2527
|
-
this.rules.splice(e2, 1), this.length--;
|
|
2528
|
-
}, e.prototype.getRule = function(e2) {
|
|
2529
|
-
return e2 < this.length ? this.rules[e2] : "";
|
|
2530
|
-
}, e;
|
|
2531
|
-
}();
|
|
2532
|
-
var Ee = d;
|
|
2533
|
-
var Ne = { isServer: !d, useCSSOMInjection: !f };
|
|
2534
|
-
var Ae = function() {
|
|
2535
|
-
function e(e2, n, o2) {
|
|
2536
|
-
void 0 === e2 && (e2 = w), void 0 === n && (n = {});
|
|
2537
|
-
var r2 = this;
|
|
2538
|
-
this.options = __assign(__assign({}, Ne), e2), this.gs = n, this.names = new Map(o2), this.server = !!e2.isServer, !this.server && d && Ee && (Ee = false, ve(this)), ne(this, function() {
|
|
2539
|
-
return function(e3) {
|
|
2540
|
-
for (var t = e3.getTag(), n2 = t.length, o3 = "", r3 = function(n3) {
|
|
2541
|
-
var r4 = function(e4) {
|
|
2542
|
-
return ue.get(e4);
|
|
2543
|
-
}(n3);
|
|
2544
|
-
if (void 0 === r4) return "continue";
|
|
2545
|
-
var s2 = e3.names.get(r4), i = t.getGroup(n3);
|
|
2546
|
-
if (void 0 === s2 || !s2.size || 0 === i.length) return "continue";
|
|
2547
|
-
var c2 = "".concat(a, ".g").concat(n3, '[id="').concat(r4, '"]'), u2 = "";
|
|
2548
|
-
void 0 !== s2 && s2.forEach(function(e4) {
|
|
2549
|
-
e4.length > 0 && (u2 += "".concat(e4, ","));
|
|
2550
|
-
}), o3 += "".concat(i).concat(c2, '{content:"').concat(u2, '"}').concat(p);
|
|
2551
|
-
}, s = 0; s < n2; s++) r3(s);
|
|
2552
|
-
return o3;
|
|
2553
|
-
}(r2);
|
|
2554
|
-
});
|
|
2555
|
-
}
|
|
2556
|
-
return e.registerId = function(e2) {
|
|
2557
|
-
return pe(e2);
|
|
2558
|
-
}, e.prototype.rehydrate = function() {
|
|
2559
|
-
!this.server && d && ve(this);
|
|
2560
|
-
}, e.prototype.reconstructWithOptions = function(n, o2) {
|
|
2561
|
-
return void 0 === o2 && (o2 = true), new e(__assign(__assign({}, this.options), n), this.gs, o2 && this.names || void 0);
|
|
2562
|
-
}, e.prototype.allocateGSInstance = function(e2) {
|
|
2563
|
-
return this.gs[e2] = (this.gs[e2] || 0) + 1;
|
|
2564
|
-
}, e.prototype.getTag = function() {
|
|
2565
|
-
return this.tag || (this.tag = (e2 = function(e3) {
|
|
2566
|
-
var t = e3.useCSSOMInjection, n = e3.target;
|
|
2567
|
-
return e3.isServer ? new Ce(n) : t ? new we(n) : new be(n);
|
|
2568
|
-
}(this.options), new ie(e2)));
|
|
2569
|
-
var e2;
|
|
2570
|
-
}, e.prototype.hasNameForId = function(e2, t) {
|
|
2571
|
-
return this.names.has(e2) && this.names.get(e2).has(t);
|
|
2572
|
-
}, e.prototype.registerName = function(e2, t) {
|
|
2573
|
-
if (pe(e2), this.names.has(e2)) this.names.get(e2).add(t);
|
|
2574
|
-
else {
|
|
2575
|
-
var n = /* @__PURE__ */ new Set();
|
|
2576
|
-
n.add(t), this.names.set(e2, n);
|
|
2577
|
-
}
|
|
2578
|
-
}, e.prototype.insertRules = function(e2, t, n) {
|
|
2579
|
-
this.registerName(e2, t), this.getTag().insertRules(pe(e2), n);
|
|
2580
|
-
}, e.prototype.clearNames = function(e2) {
|
|
2581
|
-
this.names.has(e2) && this.names.get(e2).clear();
|
|
2582
|
-
}, e.prototype.clearRules = function(e2) {
|
|
2583
|
-
this.getTag().clearGroup(pe(e2)), this.clearNames(e2);
|
|
2584
|
-
}, e.prototype.clearTag = function() {
|
|
2585
|
-
this.tag = void 0;
|
|
2586
|
-
}, e;
|
|
2587
|
-
}();
|
|
2588
|
-
var Pe = /&/g;
|
|
2589
|
-
var _e = 47;
|
|
2590
|
-
function Ie(e) {
|
|
2591
|
-
if (-1 === e.indexOf("}")) return false;
|
|
2592
|
-
for (var t = e.length, n = 0, o2 = 0, r2 = false, s = 0; s < t; s++) {
|
|
2593
|
-
var i = e.charCodeAt(s);
|
|
2594
|
-
if (0 !== o2 || r2 || i !== _e || 42 !== e.charCodeAt(s + 1)) if (r2) 42 === i && e.charCodeAt(s + 1) === _e && (r2 = false, s++);
|
|
2595
|
-
else if (34 !== i && 39 !== i || 0 !== s && 92 === e.charCodeAt(s - 1)) {
|
|
2596
|
-
if (0 === o2) {
|
|
2597
|
-
if (123 === i) n++;
|
|
2598
|
-
else if (125 === i && --n < 0) return true;
|
|
2599
|
-
}
|
|
2600
|
-
} else 0 === o2 ? o2 = i : o2 === i && (o2 = 0);
|
|
2601
|
-
else r2 = true, s++;
|
|
2602
|
-
}
|
|
2603
|
-
return 0 !== n || 0 !== o2;
|
|
2604
|
-
}
|
|
2605
|
-
function Oe(e, t) {
|
|
2606
|
-
return e.map(function(e2) {
|
|
2607
|
-
return "rule" === e2.type && (e2.value = "".concat(t, " ").concat(e2.value), e2.value = e2.value.replaceAll(",", ",".concat(t, " ")), e2.props = e2.props.map(function(e3) {
|
|
2608
|
-
return "".concat(t, " ").concat(e3);
|
|
2609
|
-
})), Array.isArray(e2.children) && "@keyframes" !== e2.type && (e2.children = Oe(e2.children, t)), e2;
|
|
2610
|
-
});
|
|
2611
|
-
}
|
|
2612
|
-
function De(e) {
|
|
2613
|
-
var t, n, o2, r2 = w , i = r2.options, a2 = void 0 === i ? w : i, c2 = r2.plugins, u2 = void 0 === c2 ? S : c2, l2 = function(e2, o3, r3) {
|
|
2614
|
-
return r3.startsWith(n) && r3.endsWith(n) && r3.replaceAll(n, "").length > 0 ? ".".concat(t) : e2;
|
|
2615
|
-
}, p2 = u2.slice();
|
|
2616
|
-
p2.push(function(e2) {
|
|
2617
|
-
e2.type === RULESET && e2.value.includes("&") && (e2.props[0] = e2.props[0].replace(Pe, n).replace(o2, l2));
|
|
2618
|
-
}), a2.prefix && p2.push(prefixer), p2.push(stringify);
|
|
2619
|
-
var d2 = function(e2, r3, i2, c3) {
|
|
2620
|
-
void 0 === r3 && (r3 = ""), void 0 === i2 && (i2 = ""), void 0 === c3 && (c3 = "&"), t = c3, n = r3, o2 = new RegExp("\\".concat(n, "\\b"), "g");
|
|
2621
|
-
var u3 = function(e3) {
|
|
2622
|
-
if (!Ie(e3)) return e3;
|
|
2623
|
-
for (var t2 = e3.length, n2 = "", o3 = 0, r4 = 0, s = 0, i3 = false, a3 = 0; a3 < t2; a3++) {
|
|
2624
|
-
var c4 = e3.charCodeAt(a3);
|
|
2625
|
-
if (0 !== s || i3 || c4 !== _e || 42 !== e3.charCodeAt(a3 + 1)) if (i3) 42 === c4 && e3.charCodeAt(a3 + 1) === _e && (i3 = false, a3++);
|
|
2626
|
-
else if (34 !== c4 && 39 !== c4 || 0 !== a3 && 92 === e3.charCodeAt(a3 - 1)) {
|
|
2627
|
-
if (0 === s) if (123 === c4) r4++;
|
|
2628
|
-
else if (125 === c4) {
|
|
2629
|
-
if (--r4 < 0) {
|
|
2630
|
-
for (var u4 = a3 + 1; u4 < t2; ) {
|
|
2631
|
-
var l4 = e3.charCodeAt(u4);
|
|
2632
|
-
if (59 === l4 || 10 === l4) break;
|
|
2633
|
-
u4++;
|
|
2634
|
-
}
|
|
2635
|
-
u4 < t2 && 59 === e3.charCodeAt(u4) && u4++, r4 = 0, a3 = u4 - 1, o3 = u4;
|
|
2636
|
-
continue;
|
|
2637
|
-
}
|
|
2638
|
-
0 === r4 && (n2 += e3.substring(o3, a3 + 1), o3 = a3 + 1);
|
|
2639
|
-
} else 59 === c4 && 0 === r4 && (n2 += e3.substring(o3, a3 + 1), o3 = a3 + 1);
|
|
2640
|
-
} else 0 === s ? s = c4 : s === c4 && (s = 0);
|
|
2641
|
-
else i3 = true, a3++;
|
|
2642
|
-
}
|
|
2643
|
-
if (o3 < t2) {
|
|
2644
|
-
var p3 = e3.substring(o3);
|
|
2645
|
-
Ie(p3) || (n2 += p3);
|
|
2646
|
-
}
|
|
2647
|
-
return n2;
|
|
2648
|
-
}(function(e3) {
|
|
2649
|
-
if (-1 === e3.indexOf("//")) return e3;
|
|
2650
|
-
for (var t2 = e3.length, n2 = [], o3 = 0, r4 = 0, s = 0, i3 = 0; r4 < t2; ) {
|
|
2651
|
-
var a3 = e3.charCodeAt(r4);
|
|
2652
|
-
if (34 !== a3 && 39 !== a3 || 0 !== r4 && 92 === e3.charCodeAt(r4 - 1)) if (0 === s) if (40 === a3 && r4 >= 3 && 108 == (32 | e3.charCodeAt(r4 - 1)) && 114 == (32 | e3.charCodeAt(r4 - 2)) && 117 == (32 | e3.charCodeAt(r4 - 3))) i3 = 1, r4++;
|
|
2653
|
-
else if (i3 > 0) 41 === a3 ? i3-- : 40 === a3 && i3++, r4++;
|
|
2654
|
-
else if (a3 === _e && r4 + 1 < t2 && e3.charCodeAt(r4 + 1) === _e) {
|
|
2655
|
-
for (r4 > o3 && n2.push(e3.substring(o3, r4)); r4 < t2 && 10 !== e3.charCodeAt(r4); ) r4++;
|
|
2656
|
-
o3 = r4;
|
|
2657
|
-
} else r4++;
|
|
2658
|
-
else r4++;
|
|
2659
|
-
else 0 === s ? s = a3 : s === a3 && (s = 0), r4++;
|
|
2660
|
-
}
|
|
2661
|
-
return 0 === o3 ? e3 : (o3 < t2 && n2.push(e3.substring(o3)), n2.join(""));
|
|
2662
|
-
}(e2)), l3 = compile(i2 || r3 ? "".concat(i2, " ").concat(r3, " { ").concat(u3, " }") : u3);
|
|
2663
|
-
a2.namespace && (l3 = Oe(l3, a2.namespace));
|
|
2664
|
-
var d3 = [];
|
|
2665
|
-
return serialize(l3, middleware(p2.concat(rulesheet(function(e3) {
|
|
2666
|
-
return d3.push(e3);
|
|
2667
|
-
})))), d3;
|
|
2668
|
-
};
|
|
2669
|
-
return d2.hash = u2.length ? u2.reduce(function(e2, t2) {
|
|
2670
|
-
return t2.name || se(15), D(e2, t2.name);
|
|
2671
|
-
}, 5381).toString() : "", d2;
|
|
2672
|
-
}
|
|
2673
|
-
var Te = new Ae();
|
|
2674
|
-
var xe = De();
|
|
2675
|
-
var Re = { shouldForwardProp: void 0, styleSheet: Te, stylis: xe };
|
|
2676
|
-
var je = h ? { Provider: function(e) {
|
|
2677
|
-
return e.children;
|
|
2678
|
-
}, Consumer: function(e) {
|
|
2679
|
-
return (0, e.children)(Re);
|
|
2680
|
-
} } : o__namespace.default.createContext(Re);
|
|
2681
|
-
je.Consumer;
|
|
2682
|
-
h ? { } : o__namespace.default.createContext(void 0);
|
|
2683
|
-
function Ve() {
|
|
2684
|
-
return !h && o__namespace.default.useContext ? o__namespace.default.useContext(je) : Re;
|
|
2685
|
-
}
|
|
2686
|
-
var Be = function() {
|
|
2687
|
-
function e(e2, t) {
|
|
2688
|
-
var n = this;
|
|
2689
|
-
this.inject = function(e3, t2) {
|
|
2690
|
-
void 0 === t2 && (t2 = xe);
|
|
2691
|
-
var o2 = n.name + t2.hash;
|
|
2692
|
-
e3.hasNameForId(n.id, o2) || e3.insertRules(n.id, o2, t2(n.rules, o2, "@keyframes"));
|
|
2693
|
-
}, this.name = e2, this.id = "sc-keyframes-".concat(e2), this.rules = t, ne(this, function() {
|
|
2694
|
-
throw se(12, String(n.name));
|
|
2695
|
-
});
|
|
2696
|
-
}
|
|
2697
|
-
return e.prototype.getName = function(e2) {
|
|
2698
|
-
return void 0 === e2 && (e2 = xe), this.name + e2.hash;
|
|
2699
|
-
}, e;
|
|
2700
|
-
}();
|
|
2701
|
-
function Le(e, t) {
|
|
2702
|
-
return null == t || "boolean" == typeof t || "" === t ? "" : "number" != typeof t || 0 === t || e in unitlessKeys || e.startsWith("--") ? String(t).trim() : "".concat(t, "px");
|
|
2703
|
-
}
|
|
2704
|
-
var ze = function(e) {
|
|
2705
|
-
return e >= "A" && e <= "Z";
|
|
2706
|
-
};
|
|
2707
|
-
function Ge(e) {
|
|
2708
|
-
for (var t = "", n = 0; n < e.length; n++) {
|
|
2709
|
-
var o2 = e[n];
|
|
2710
|
-
if (1 === n && "-" === o2 && "-" === e[0]) return e;
|
|
2711
|
-
ze(o2) ? t += "-" + o2.toLowerCase() : t += o2;
|
|
2712
|
-
}
|
|
2713
|
-
return t.startsWith("ms-") ? "-" + t : t;
|
|
2714
|
-
}
|
|
2715
|
-
var $e = function(e) {
|
|
2716
|
-
return null == e || false === e || "" === e;
|
|
2717
|
-
};
|
|
2718
|
-
var Ye = function(t) {
|
|
2719
|
-
var n = [];
|
|
2720
|
-
for (var o2 in t) {
|
|
2721
|
-
var r2 = t[o2];
|
|
2722
|
-
t.hasOwnProperty(o2) && !$e(r2) && (Array.isArray(r2) && r2.isCss || X(r2) ? n.push("".concat(Ge(o2), ":"), r2, ";") : ee(r2) ? n.push.apply(n, __spreadArray(__spreadArray(["".concat(o2, " {")], Ye(r2), false), ["}"], false)) : n.push("".concat(Ge(o2), ": ").concat(Le(o2, r2), ";")));
|
|
2723
|
-
}
|
|
2724
|
-
return n;
|
|
2725
|
-
};
|
|
2726
|
-
function We(e, t, n, o2) {
|
|
2727
|
-
if ($e(e)) return [];
|
|
2728
|
-
if (Z(e)) return [".".concat(e.styledComponentId)];
|
|
2729
|
-
if (X(e)) {
|
|
2730
|
-
if (!X(s = e) || s.prototype && s.prototype.isReactComponent || !t) return [e];
|
|
2731
|
-
var r2 = e(t);
|
|
2732
|
-
return "production" === process.env.NODE_ENV || "object" != typeof r2 || Array.isArray(r2) || r2 instanceof Be || ee(r2) || null === r2 || console.error("".concat(R(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), We(r2, t, n, o2);
|
|
2733
|
-
}
|
|
2734
|
-
var s;
|
|
2735
|
-
return e instanceof Be ? n ? (e.inject(n, o2), [e.getName(o2)]) : [e] : ee(e) ? Ye(e) : Array.isArray(e) ? Array.prototype.concat.apply(S, e.map(function(e2) {
|
|
2736
|
-
return We(e2, t, n, o2);
|
|
2737
|
-
})) : [e.toString()];
|
|
2738
|
-
}
|
|
2739
|
-
function qe(e) {
|
|
2740
|
-
for (var t = 0; t < e.length; t += 1) {
|
|
2741
|
-
var n = e[t];
|
|
2742
|
-
if (X(n) && !Z(n)) return false;
|
|
2743
|
-
}
|
|
2744
|
-
return true;
|
|
2745
|
-
}
|
|
2746
|
-
var He = T(l);
|
|
2747
|
-
var Ue = function() {
|
|
2748
|
-
function e(e2, t, n) {
|
|
2749
|
-
this.rules = e2, this.staticRulesId = "", this.isStatic = "production" === process.env.NODE_ENV && (void 0 === n || n.isStatic) && qe(e2), this.componentId = t, this.baseHash = D(He, t), this.baseStyle = n, Ae.registerId(t);
|
|
2750
|
-
}
|
|
2751
|
-
return e.prototype.generateAndInjectStyles = function(e2, t, n) {
|
|
2752
|
-
var o2 = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e2, t, n).className : "";
|
|
2753
|
-
if (this.isStatic && !n.hash) if (this.staticRulesId && t.hasNameForId(this.componentId, this.staticRulesId)) o2 = K(o2, this.staticRulesId);
|
|
2754
|
-
else {
|
|
2755
|
-
var r2 = Q(We(this.rules, e2, t, n)), s = I(D(this.baseHash, r2) >>> 0);
|
|
2756
|
-
if (!t.hasNameForId(this.componentId, s)) {
|
|
2757
|
-
var i = n(r2, ".".concat(s), void 0, this.componentId);
|
|
2758
|
-
t.insertRules(this.componentId, s, i);
|
|
2759
|
-
}
|
|
2760
|
-
o2 = K(o2, s), this.staticRulesId = s;
|
|
2761
|
-
}
|
|
2762
|
-
else {
|
|
2763
|
-
for (var a2 = D(this.baseHash, n.hash), c2 = "", u2 = 0; u2 < this.rules.length; u2++) {
|
|
2764
|
-
var l2 = this.rules[u2];
|
|
2765
|
-
if ("string" == typeof l2) c2 += l2, "production" !== process.env.NODE_ENV && (a2 = D(a2, l2));
|
|
2766
|
-
else if (l2) {
|
|
2767
|
-
var p2 = Q(We(l2, e2, t, n));
|
|
2768
|
-
a2 = D(a2, p2 + u2), c2 += p2;
|
|
2769
|
-
}
|
|
2770
|
-
}
|
|
2771
|
-
if (c2) {
|
|
2772
|
-
var d2 = I(a2 >>> 0);
|
|
2773
|
-
if (!t.hasNameForId(this.componentId, d2)) {
|
|
2774
|
-
var h2 = n(c2, ".".concat(d2), void 0, this.componentId);
|
|
2775
|
-
t.insertRules(this.componentId, d2, h2);
|
|
2776
|
-
}
|
|
2777
|
-
o2 = K(o2, d2);
|
|
2778
|
-
}
|
|
2779
|
-
}
|
|
2780
|
-
return { className: o2, css: "undefined" == typeof window ? t.getTag().getGroup(pe(this.componentId)) : "" };
|
|
2781
|
-
}, e;
|
|
2782
|
-
}();
|
|
2783
|
-
var Je = h ? { Provider: function(e) {
|
|
2784
|
-
return e.children;
|
|
2785
|
-
}, Consumer: function(e) {
|
|
2786
|
-
return (0, e.children)(void 0);
|
|
2787
|
-
} } : o__namespace.default.createContext(void 0);
|
|
2788
|
-
Je.Consumer;
|
|
2789
|
-
var Qe = {};
|
|
2790
|
-
var et = /* @__PURE__ */ new Set();
|
|
2791
|
-
function tt(e, s, i) {
|
|
2792
|
-
var a2 = Z(e), c2 = e, u2 = !j(e), p2 = s.attrs, d2 = void 0 === p2 ? S : p2, f2 = s.componentId, m = void 0 === f2 ? function(e2, t) {
|
|
2793
|
-
var n = "string" != typeof e2 ? "sc" : A(e2);
|
|
2794
|
-
Qe[n] = (Qe[n] || 0) + 1;
|
|
2795
|
-
var o2 = "".concat(n, "-").concat(x(l + n + Qe[n]));
|
|
2796
|
-
return t ? "".concat(t, "-").concat(o2) : o2;
|
|
2797
|
-
}(s.displayName, s.parentComponentId) : f2, y2 = s.displayName, v2 = void 0 === y2 ? function(e2) {
|
|
2798
|
-
return j(e2) ? "styled.".concat(e2) : "Styled(".concat(R(e2), ")");
|
|
2799
|
-
}(e) : y2, E2 = s.displayName && s.componentId ? "".concat(A(s.displayName), "-").concat(s.componentId) : s.componentId || m, N2 = a2 && c2.attrs ? c2.attrs.concat(d2).filter(Boolean) : d2, P2 = s.shouldForwardProp;
|
|
2800
|
-
if (a2 && c2.shouldForwardProp) {
|
|
2801
|
-
var _2 = c2.shouldForwardProp;
|
|
2802
|
-
if (s.shouldForwardProp) {
|
|
2803
|
-
var I2 = s.shouldForwardProp;
|
|
2804
|
-
P2 = function(e2, t) {
|
|
2805
|
-
return _2(e2, t) && I2(e2, t);
|
|
2806
|
-
};
|
|
2807
|
-
} else P2 = _2;
|
|
2808
|
-
}
|
|
2809
|
-
var O2 = new Ue(i, E2, a2 ? c2.componentStyle : void 0);
|
|
2810
|
-
function D2(e2, s2) {
|
|
2811
|
-
return function(e3, s3, i2) {
|
|
2812
|
-
var a3 = e3.attrs, c3 = e3.componentStyle, u3 = e3.defaultProps, l2 = e3.foldedComponentIds, p3 = e3.styledComponentId, d3 = e3.target, f3 = o__namespace.default.useContext ? o__namespace.default.useContext(Je) : void 0, m2 = Ve(), y3 = e3.shouldForwardProp || m2.shouldForwardProp;
|
|
2813
|
-
"production" !== process.env.NODE_ENV && o__namespace.default.useDebugValue && o__namespace.default.useDebugValue(p3);
|
|
2814
|
-
var v3 = b(s3, f3, u3) || w, g2 = function(e4, n, o2) {
|
|
2815
|
-
for (var r2, s4 = __assign(__assign({}, n), { className: void 0, theme: o2 }), i3 = 0; i3 < e4.length; i3 += 1) {
|
|
2816
|
-
var a4 = X(r2 = e4[i3]) ? r2(s4) : r2;
|
|
2817
|
-
for (var c4 in a4) "className" === c4 ? s4.className = K(s4.className, a4[c4]) : "style" === c4 ? s4.style = __assign(__assign({}, s4.style), a4[c4]) : s4[c4] = a4[c4];
|
|
2818
|
-
}
|
|
2819
|
-
return "className" in n && "string" == typeof n.className && (s4.className = K(s4.className, n.className)), s4;
|
|
2820
|
-
}(a3, s3, v3), S2 = g2.as || d3, E3 = {};
|
|
2821
|
-
for (var N3 in g2) void 0 === g2[N3] || "$" === N3[0] || "as" === N3 || "theme" === N3 && g2.theme === v3 || ("forwardedAs" === N3 ? E3.as = g2.forwardedAs : y3 && !y3(N3, S2) || (E3[N3] = g2[N3], y3 || "development" !== process.env.NODE_ENV || isPropValid(N3) || et.has(N3) || !C.has(S2) || (et.add(N3), console.warn('styled-components: it looks like an unknown prop "'.concat(N3, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
2822
|
-
var A2 = function(e4, t) {
|
|
2823
|
-
var n = Ve(), r2 = e4.generateAndInjectStyles(t, n.styleSheet, n.stylis);
|
|
2824
|
-
return "production" !== process.env.NODE_ENV && o__namespace.default.useDebugValue && o__namespace.default.useDebugValue(r2.className), r2;
|
|
2825
|
-
}(c3, g2), P3 = A2.className, _3 = A2.css;
|
|
2826
|
-
"production" !== process.env.NODE_ENV && e3.warnTooManyClasses && e3.warnTooManyClasses(P3);
|
|
2827
|
-
var I3 = K(l2, p3);
|
|
2828
|
-
P3 && (I3 += " " + P3), g2.className && (I3 += " " + g2.className), E3[j(S2) && !C.has(S2) ? "class" : "className"] = I3, i2 && (E3.ref = i2);
|
|
2829
|
-
var O3 = o.createElement(S2, E3);
|
|
2830
|
-
return h && _3 ? o__namespace.default.createElement(o__namespace.default.Fragment, null, o__namespace.default.createElement("style", { precedence: "styled-components", href: "sc-".concat(p3, "-").concat(P3), children: _3 }), O3) : O3;
|
|
2831
|
-
}(T2, e2, s2);
|
|
2832
|
-
}
|
|
2833
|
-
D2.displayName = v2;
|
|
2834
|
-
var T2 = o__namespace.default.forwardRef(D2);
|
|
2835
|
-
return T2.attrs = N2, T2.componentStyle = O2, T2.displayName = v2, T2.shouldForwardProp = P2, T2.foldedComponentIds = a2 ? K(c2.foldedComponentIds, c2.styledComponentId) : "", T2.styledComponentId = E2, T2.target = a2 ? c2.target : e, Object.defineProperty(T2, "defaultProps", { get: function() {
|
|
2836
|
-
return this._foldedDefaultProps;
|
|
2837
|
-
}, set: function(e2) {
|
|
2838
|
-
this._foldedDefaultProps = a2 ? function(e3) {
|
|
2839
|
-
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
2840
|
-
for (var o2 = 0, r2 = t; o2 < r2.length; o2++) te(e3, r2[o2], true);
|
|
2841
|
-
return e3;
|
|
2842
|
-
}({}, c2.defaultProps, e2) : e2;
|
|
2843
|
-
} }), "production" !== process.env.NODE_ENV && (g(v2, E2), T2.warnTooManyClasses = /* @__PURE__ */ function(e2, t) {
|
|
2844
|
-
var n = {}, o2 = false;
|
|
2845
|
-
return function(r2) {
|
|
2846
|
-
if (!o2 && (n[r2] = true, Object.keys(n).length >= 200)) {
|
|
2847
|
-
var s2 = t ? ' with the id of "'.concat(t, '"') : "";
|
|
2848
|
-
console.warn("Over ".concat(200, " classes were generated for component ").concat(e2).concat(s2, ".\n") + "Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"), o2 = true, n = {};
|
|
2849
|
-
}
|
|
2850
|
-
};
|
|
2851
|
-
}(v2, E2)), ne(T2, function() {
|
|
2852
|
-
return ".".concat(T2.styledComponentId);
|
|
2853
|
-
}), u2 && J(T2, e, { attrs: true, componentStyle: true, displayName: true, foldedComponentIds: true, shouldForwardProp: true, styledComponentId: true, target: true }), T2;
|
|
2854
|
-
}
|
|
2855
|
-
function nt(e, t) {
|
|
2856
|
-
for (var n = [e[0]], o2 = 0, r2 = t.length; o2 < r2; o2 += 1) n.push(t[o2], e[o2 + 1]);
|
|
2857
|
-
return n;
|
|
2858
|
-
}
|
|
2859
|
-
var ot = function(e) {
|
|
2860
|
-
return Object.assign(e, { isCss: true });
|
|
2861
|
-
};
|
|
2862
|
-
function rt(t) {
|
|
2863
|
-
for (var n = [], o2 = 1; o2 < arguments.length; o2++) n[o2 - 1] = arguments[o2];
|
|
2864
|
-
if (X(t) || ee(t)) return ot(We(nt(S, __spreadArray([t], n, true))));
|
|
2865
|
-
var r2 = t;
|
|
2866
|
-
return 0 === n.length && 1 === r2.length && "string" == typeof r2[0] ? We(r2) : ot(We(nt(r2, n)));
|
|
2867
|
-
}
|
|
2868
|
-
function st(n, o2, r2) {
|
|
2869
|
-
if (void 0 === r2 && (r2 = w), !o2) throw se(1, o2);
|
|
2870
|
-
var s = function(t) {
|
|
2871
|
-
for (var s2 = [], i = 1; i < arguments.length; i++) s2[i - 1] = arguments[i];
|
|
2872
|
-
return n(o2, r2, rt.apply(void 0, __spreadArray([t], s2, false)));
|
|
2873
|
-
};
|
|
2874
|
-
return s.attrs = function(e) {
|
|
2875
|
-
return st(n, o2, __assign(__assign({}, r2), { attrs: Array.prototype.concat(r2.attrs, e).filter(Boolean) }));
|
|
2876
|
-
}, s.withConfig = function(e) {
|
|
2877
|
-
return st(n, o2, __assign(__assign({}, r2), e));
|
|
2878
|
-
}, s;
|
|
2879
|
-
}
|
|
2880
|
-
var it = function(e) {
|
|
2881
|
-
return st(tt, e);
|
|
2882
|
-
};
|
|
2883
|
-
var at = it;
|
|
2884
|
-
C.forEach(function(e) {
|
|
2885
|
-
at[e] = it(e);
|
|
2886
|
-
});
|
|
2887
|
-
function lt(t) {
|
|
2888
|
-
for (var n = [], o2 = 1; o2 < arguments.length; o2++) n[o2 - 1] = arguments[o2];
|
|
2889
|
-
"production" !== process.env.NODE_ENV && "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
|
|
2890
|
-
var r2 = Q(rt.apply(void 0, __spreadArray([t], n, false))), s = x(r2);
|
|
2891
|
-
return new Be(s, r2);
|
|
2892
|
-
}
|
|
2893
|
-
"production" !== process.env.NODE_ENV && "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");
|
|
2894
|
-
var mt = "__sc-".concat(a, "__");
|
|
2895
|
-
"production" !== process.env.NODE_ENV && "test" !== process.env.NODE_ENV && "undefined" != typeof window && (window[mt] || (window[mt] = 0), 1 === window[mt] && console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info."), window[mt] += 1);
|
|
2896
|
-
|
|
2897
1558
|
// src/assets/Loaf-logo-Banner.png
|
|
2898
1559
|
var Loaf_logo_Banner_default = "./Loaf-logo-Banner-DYV62HAW.png";
|
|
2899
|
-
var pulse =
|
|
1560
|
+
var pulse = styled6.keyframes`
|
|
2900
1561
|
0%, 100% {
|
|
2901
1562
|
opacity: 0.45;
|
|
2902
1563
|
transform: scale(1);
|
|
@@ -2906,7 +1567,7 @@ var pulse = lt`
|
|
|
2906
1567
|
transform: scale(1.08);
|
|
2907
1568
|
}
|
|
2908
1569
|
`;
|
|
2909
|
-
var shimmer =
|
|
1570
|
+
var shimmer = styled6.keyframes`
|
|
2910
1571
|
0% {
|
|
2911
1572
|
background-position: -100% 0;
|
|
2912
1573
|
}
|
|
@@ -2914,7 +1575,7 @@ var shimmer = lt`
|
|
|
2914
1575
|
background-position: 200% 0;
|
|
2915
1576
|
}
|
|
2916
1577
|
`;
|
|
2917
|
-
var LogoContainer =
|
|
1578
|
+
var LogoContainer = styled6__default.default.span`
|
|
2918
1579
|
display: inline-flex;
|
|
2919
1580
|
align-items: center;
|
|
2920
1581
|
gap: 0.35rem;
|
|
@@ -2933,7 +1594,7 @@ var LogoContainer = at.span`
|
|
|
2933
1594
|
transition: all 0.3s ease;
|
|
2934
1595
|
line-height: 1.4;
|
|
2935
1596
|
|
|
2936
|
-
${({ $isGlowing }) => $isGlowing ?
|
|
1597
|
+
${({ $isGlowing }) => $isGlowing ? styled6.css`
|
|
2937
1598
|
border-color: rgba(240, 185, 11, 1);
|
|
2938
1599
|
box-shadow:
|
|
2939
1600
|
0 0 25px rgba(240, 185, 11, 0.8),
|
|
@@ -2999,7 +1660,7 @@ var LogoContainer = at.span`
|
|
|
2999
1660
|
pointer-events: none;
|
|
3000
1661
|
}
|
|
3001
1662
|
`;
|
|
3002
|
-
var IconWrapper =
|
|
1663
|
+
var IconWrapper = styled6__default.default.span`
|
|
3003
1664
|
display: flex;
|
|
3004
1665
|
align-items: center;
|
|
3005
1666
|
justify-content: center;
|
|
@@ -3012,7 +1673,7 @@ var IconWrapper = at.span`
|
|
|
3012
1673
|
height: 14px;
|
|
3013
1674
|
}
|
|
3014
1675
|
`;
|
|
3015
|
-
var IconCircle =
|
|
1676
|
+
var IconCircle = styled6__default.default.span`
|
|
3016
1677
|
position: absolute;
|
|
3017
1678
|
width: ${({ size }) => size}px;
|
|
3018
1679
|
height: ${({ size }) => size}px;
|
|
@@ -3023,7 +1684,7 @@ var IconCircle = at.span`
|
|
|
3023
1684
|
transform-origin: center;
|
|
3024
1685
|
will-change: transform, opacity;
|
|
3025
1686
|
`;
|
|
3026
|
-
var IconCore =
|
|
1687
|
+
var IconCore = styled6__default.default.span`
|
|
3027
1688
|
width: 5px;
|
|
3028
1689
|
height: 5px;
|
|
3029
1690
|
background: linear-gradient(135deg, #0ecb81 0%, #2ecc71 100%);
|
|
@@ -3032,14 +1693,14 @@ var IconCore = at.span`
|
|
|
3032
1693
|
position: relative;
|
|
3033
1694
|
z-index: 1;
|
|
3034
1695
|
`;
|
|
3035
|
-
var LogoText =
|
|
1696
|
+
var LogoText = styled6__default.default.span`
|
|
3036
1697
|
display: inline-flex;
|
|
3037
1698
|
align-items: center;
|
|
3038
1699
|
gap: 0.2rem;
|
|
3039
1700
|
position: relative;
|
|
3040
1701
|
z-index: 1;
|
|
3041
1702
|
`;
|
|
3042
|
-
var LoafLogoImage =
|
|
1703
|
+
var LoafLogoImage = styled6__default.default.img`
|
|
3043
1704
|
height: 20px;
|
|
3044
1705
|
position: relative;
|
|
3045
1706
|
z-index: 1;
|
|
@@ -3048,7 +1709,7 @@ var LoafLogoImage = at.img`
|
|
|
3048
1709
|
height: 18px;
|
|
3049
1710
|
}
|
|
3050
1711
|
`;
|
|
3051
|
-
var LiquidityText =
|
|
1712
|
+
var LiquidityText = styled6__default.default.span`
|
|
3052
1713
|
font-size: 0.65rem;
|
|
3053
1714
|
font-weight: 400;
|
|
3054
1715
|
background: linear-gradient(135deg, #f0b90b 0%, #ffd700 50%, #f0b90b 100%);
|
|
@@ -3065,7 +1726,7 @@ var LiquidityText = at.span`
|
|
|
3065
1726
|
letter-spacing: 0.1px;
|
|
3066
1727
|
}
|
|
3067
1728
|
`;
|
|
3068
|
-
var LoafLiquidityBadge =
|
|
1729
|
+
var LoafLiquidityBadge = React5__namespace.forwardRef(
|
|
3069
1730
|
({ className, isGlowing, onClick, children, ...props }, ref) => {
|
|
3070
1731
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3071
1732
|
LogoContainer,
|
|
@@ -3094,8 +1755,8 @@ var LoafLiquidityBadge = o__namespace.forwardRef(
|
|
|
3094
1755
|
);
|
|
3095
1756
|
LoafLiquidityBadge.displayName = "LoafLiquidityBadge";
|
|
3096
1757
|
function useViewportCompact(breakpoint) {
|
|
3097
|
-
const [isCompact, setIsCompact] =
|
|
3098
|
-
|
|
1758
|
+
const [isCompact, setIsCompact] = React5__namespace.useState(false);
|
|
1759
|
+
React5__namespace.useEffect(() => {
|
|
3099
1760
|
if (typeof window === "undefined") return;
|
|
3100
1761
|
const check = () => setIsCompact(window.innerWidth <= breakpoint);
|
|
3101
1762
|
check();
|
|
@@ -3144,7 +1805,7 @@ var DEPTH_ROW_HEIGHT_PX = 34;
|
|
|
3144
1805
|
var COMPACT_ROWS_VISIBLE = 5;
|
|
3145
1806
|
var COMPACT_ROW_HEIGHT_PX = 30;
|
|
3146
1807
|
var COMPACT_BREAKPOINT_PX = 1024;
|
|
3147
|
-
var Orderbook =
|
|
1808
|
+
var Orderbook = React5__namespace.forwardRef(
|
|
3148
1809
|
({
|
|
3149
1810
|
asks,
|
|
3150
1811
|
bids,
|
|
@@ -3162,20 +1823,20 @@ var Orderbook = o__namespace.forwardRef(
|
|
|
3162
1823
|
className,
|
|
3163
1824
|
...props
|
|
3164
1825
|
}, ref) => {
|
|
3165
|
-
const [tab, setTab] =
|
|
3166
|
-
const [tradeFilter, setTradeFilter] =
|
|
1826
|
+
const [tab, setTab] = React5__namespace.useState(defaultTab);
|
|
1827
|
+
const [tradeFilter, setTradeFilter] = React5__namespace.useState("all");
|
|
3167
1828
|
const viewportCompact = useViewportCompact(COMPACT_BREAKPOINT_PX);
|
|
3168
|
-
|
|
1829
|
+
React5__namespace.useEffect(() => {
|
|
3169
1830
|
setTab(defaultTab);
|
|
3170
1831
|
}, [defaultTab]);
|
|
3171
|
-
const handleTab = (
|
|
3172
|
-
setTab(
|
|
3173
|
-
onTabChange?.(
|
|
1832
|
+
const handleTab = (next) => {
|
|
1833
|
+
setTab(next);
|
|
1834
|
+
onTabChange?.(next);
|
|
3174
1835
|
};
|
|
3175
1836
|
const isCompact = variant === "compact" || variant === "auto" && viewportCompact;
|
|
3176
1837
|
const sectionHeight = isCompact ? COMPACT_ROWS_VISIBLE * COMPACT_ROW_HEIGHT_PX : LEVEL_ROWS_VISIBLE * DEPTH_ROW_HEIGHT_PX;
|
|
3177
|
-
const maxAskDepth = Math.max(1, ...asks.map((
|
|
3178
|
-
const maxBidDepth = Math.max(1, ...bids.map((
|
|
1838
|
+
const maxAskDepth = Math.max(1, ...asks.map((l) => l.depth ?? l.amount));
|
|
1839
|
+
const maxBidDepth = Math.max(1, ...bids.map((l) => l.depth ?? l.amount));
|
|
3179
1840
|
const midClass = midChangePercent == null ? "text-white" : midChangePercent >= 0 ? "text-[#0ecb81]" : "text-[#f6465d]";
|
|
3180
1841
|
const tradeFiltered = trades.filter((t) => tradeFilter === "all" || t.type === tradeFilter);
|
|
3181
1842
|
const layoutProps = {
|
|
@@ -3347,17 +2008,17 @@ function DesktopOrderbookLayout({
|
|
|
3347
2008
|
{
|
|
3348
2009
|
className: "divide-y divide-white/5 overflow-y-auto",
|
|
3349
2010
|
style: { height: `${sectionHeight}px`, scrollbarGutter: "stable" },
|
|
3350
|
-
children: asks.map((
|
|
2011
|
+
children: asks.map((l, idx) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3351
2012
|
DepthRow,
|
|
3352
2013
|
{
|
|
3353
2014
|
side: "ask",
|
|
3354
|
-
price:
|
|
3355
|
-
amount:
|
|
3356
|
-
depthPct: (
|
|
2015
|
+
price: l.price,
|
|
2016
|
+
amount: l.amount,
|
|
2017
|
+
depthPct: (l.depth ?? l.amount) / maxAskDepth * 100,
|
|
3357
2018
|
precision,
|
|
3358
2019
|
amountPrecision
|
|
3359
2020
|
},
|
|
3360
|
-
`ask-${idx}-${
|
|
2021
|
+
`ask-${idx}-${l.price}-${l.amount}`
|
|
3361
2022
|
))
|
|
3362
2023
|
}
|
|
3363
2024
|
),
|
|
@@ -3378,17 +2039,17 @@ function DesktopOrderbookLayout({
|
|
|
3378
2039
|
{
|
|
3379
2040
|
className: "divide-y divide-white/5 overflow-y-auto",
|
|
3380
2041
|
style: { height: `${sectionHeight}px`, scrollbarGutter: "stable" },
|
|
3381
|
-
children: bids.map((
|
|
2042
|
+
children: bids.map((l, idx) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3382
2043
|
DepthRow,
|
|
3383
2044
|
{
|
|
3384
2045
|
side: "bid",
|
|
3385
|
-
price:
|
|
3386
|
-
amount:
|
|
3387
|
-
depthPct: (
|
|
2046
|
+
price: l.price,
|
|
2047
|
+
amount: l.amount,
|
|
2048
|
+
depthPct: (l.depth ?? l.amount) / maxBidDepth * 100,
|
|
3388
2049
|
precision,
|
|
3389
2050
|
amountPrecision
|
|
3390
2051
|
},
|
|
3391
|
-
`bid-${idx}-${
|
|
2052
|
+
`bid-${idx}-${l.price}-${l.amount}`
|
|
3392
2053
|
))
|
|
3393
2054
|
}
|
|
3394
2055
|
)
|
|
@@ -3416,8 +2077,8 @@ function MobileOrderbookLayout({
|
|
|
3416
2077
|
midClass,
|
|
3417
2078
|
sectionHeight
|
|
3418
2079
|
}) {
|
|
3419
|
-
const visibleAsks =
|
|
3420
|
-
const visibleBids =
|
|
2080
|
+
const visibleAsks = React5__namespace.useMemo(() => asks.slice(0, COMPACT_ROWS_VISIBLE), [asks]);
|
|
2081
|
+
const visibleBids = React5__namespace.useMemo(() => bids.slice(0, COMPACT_ROWS_VISIBLE), [bids]);
|
|
3421
2082
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3422
2083
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-3 pt-2", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
3423
2084
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
@@ -3452,18 +2113,18 @@ function MobileOrderbookLayout({
|
|
|
3452
2113
|
}
|
|
3453
2114
|
)
|
|
3454
2115
|
] }),
|
|
3455
|
-
tab === "trades" ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-1 text-[0.6rem] text-white/70", children: ["all", "buy", "sell"].map((
|
|
2116
|
+
tab === "trades" ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-1 text-[0.6rem] text-white/70", children: ["all", "buy", "sell"].map((filter) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3456
2117
|
"button",
|
|
3457
2118
|
{
|
|
3458
2119
|
type: "button",
|
|
3459
|
-
onClick: () => setTradeFilter(
|
|
2120
|
+
onClick: () => setTradeFilter(filter),
|
|
3460
2121
|
className: cn(
|
|
3461
2122
|
"rounded-md border border-white/15 px-2 py-1",
|
|
3462
|
-
tradeFilter ===
|
|
2123
|
+
tradeFilter === filter ? "bg-white/15 text-white" : "hover:bg-white/10"
|
|
3463
2124
|
),
|
|
3464
|
-
children:
|
|
2125
|
+
children: filter === "all" ? "All" : filter === "buy" ? "Buy" : "Sell"
|
|
3465
2126
|
},
|
|
3466
|
-
|
|
2127
|
+
filter
|
|
3467
2128
|
)) }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "hidden text-xs text-white/70 sm:flex", children: rightHeader })
|
|
3468
2129
|
] }) }),
|
|
3469
2130
|
tab === "orderbook" ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-1 flex-col overflow-hidden px-3 pb-2", children: [
|
|
@@ -3486,17 +2147,17 @@ function MobileOrderbookLayout({
|
|
|
3486
2147
|
]
|
|
3487
2148
|
}
|
|
3488
2149
|
),
|
|
3489
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { display: "flex", flexDirection: "column" }, children: visibleAsks.map((
|
|
2150
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { display: "flex", flexDirection: "column" }, children: visibleAsks.map((l, idx) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3490
2151
|
MobileDepthRow,
|
|
3491
2152
|
{
|
|
3492
2153
|
side: "ask",
|
|
3493
|
-
price:
|
|
3494
|
-
amount:
|
|
3495
|
-
depthPct: (
|
|
2154
|
+
price: l.price,
|
|
2155
|
+
amount: l.amount,
|
|
2156
|
+
depthPct: (l.depth ?? l.amount) / maxAskDepth * 100,
|
|
3496
2157
|
precision,
|
|
3497
2158
|
amountPrecision
|
|
3498
2159
|
},
|
|
3499
|
-
`mobile-ask-${idx}-${
|
|
2160
|
+
`mobile-ask-${idx}-${l.price}-${l.amount}`
|
|
3500
2161
|
)) }),
|
|
3501
2162
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3502
2163
|
"div",
|
|
@@ -3530,17 +2191,17 @@ function MobileOrderbookLayout({
|
|
|
3530
2191
|
]
|
|
3531
2192
|
}
|
|
3532
2193
|
),
|
|
3533
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { display: "flex", flexDirection: "column" }, children: visibleBids.map((
|
|
2194
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { display: "flex", flexDirection: "column" }, children: visibleBids.map((l, idx) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3534
2195
|
MobileDepthRow,
|
|
3535
2196
|
{
|
|
3536
2197
|
side: "bid",
|
|
3537
|
-
price:
|
|
3538
|
-
amount:
|
|
3539
|
-
depthPct: (
|
|
2198
|
+
price: l.price,
|
|
2199
|
+
amount: l.amount,
|
|
2200
|
+
depthPct: (l.depth ?? l.amount) / maxBidDepth * 100,
|
|
3540
2201
|
precision,
|
|
3541
2202
|
amountPrecision
|
|
3542
2203
|
},
|
|
3543
|
-
`mobile-bid-${idx}-${
|
|
2204
|
+
`mobile-bid-${idx}-${l.price}-${l.amount}`
|
|
3544
2205
|
)) })
|
|
3545
2206
|
] }) : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-1 flex-col overflow-hidden px-3 pb-2", children: [
|
|
3546
2207
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -3622,7 +2283,7 @@ function MobileDepthRow({
|
|
|
3622
2283
|
}
|
|
3623
2284
|
);
|
|
3624
2285
|
}
|
|
3625
|
-
var PropertyTour =
|
|
2286
|
+
var PropertyTour = React5__namespace.forwardRef(
|
|
3626
2287
|
({
|
|
3627
2288
|
className,
|
|
3628
2289
|
title,
|
|
@@ -3635,13 +2296,13 @@ var PropertyTour = o__namespace.forwardRef(
|
|
|
3635
2296
|
playsInline = true,
|
|
3636
2297
|
...props
|
|
3637
2298
|
}, ref) => {
|
|
3638
|
-
const videoRef =
|
|
3639
|
-
|
|
2299
|
+
const videoRef = React5__namespace.useRef(null);
|
|
2300
|
+
React5__namespace.useEffect(() => {
|
|
3640
2301
|
const video = videoRef.current;
|
|
3641
2302
|
if (!video) return;
|
|
3642
2303
|
const handleFullscreenChange = () => {
|
|
3643
|
-
const
|
|
3644
|
-
const isFullscreen = !!(
|
|
2304
|
+
const d = document;
|
|
2305
|
+
const isFullscreen = !!(d.fullscreenElement || d.webkitFullscreenElement || d.mozFullScreenElement || d.msFullscreenElement);
|
|
3645
2306
|
if (isFullscreen) {
|
|
3646
2307
|
video.style.objectFit = "contain";
|
|
3647
2308
|
video.style.width = "100vw";
|
|
@@ -3759,7 +2420,7 @@ var formatDate = (value) => {
|
|
|
3759
2420
|
year: "numeric"
|
|
3760
2421
|
});
|
|
3761
2422
|
};
|
|
3762
|
-
var PropertyNewsUpdates =
|
|
2423
|
+
var PropertyNewsUpdates = React5__namespace.forwardRef(
|
|
3763
2424
|
({
|
|
3764
2425
|
className,
|
|
3765
2426
|
heading = "Property News & Headlines",
|
|
@@ -3769,14 +2430,14 @@ var PropertyNewsUpdates = o__namespace.forwardRef(
|
|
|
3769
2430
|
highlightFirst = true,
|
|
3770
2431
|
...props
|
|
3771
2432
|
}, ref) => {
|
|
3772
|
-
const [page, setPage] =
|
|
3773
|
-
|
|
2433
|
+
const [page, setPage] = React5__namespace.useState(0);
|
|
2434
|
+
React5__namespace.useEffect(() => {
|
|
3774
2435
|
ensureAnimationsInjected();
|
|
3775
2436
|
}, []);
|
|
3776
2437
|
const hasItems = Array.isArray(items) && items.length > 0;
|
|
3777
|
-
const totalPages =
|
|
3778
|
-
|
|
3779
|
-
setPage((
|
|
2438
|
+
const totalPages = React5__namespace.useMemo(() => hasItems ? Math.max(1, Math.ceil(items.length / ITEMS_PER_PAGE)) : 1, [hasItems, items.length]);
|
|
2439
|
+
React5__namespace.useEffect(() => {
|
|
2440
|
+
setPage((prev) => Math.min(prev, totalPages - 1));
|
|
3780
2441
|
}, [totalPages]);
|
|
3781
2442
|
const paginatedItems = hasItems ? items.slice(page * ITEMS_PER_PAGE, page * ITEMS_PER_PAGE + ITEMS_PER_PAGE) : [];
|
|
3782
2443
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -3888,7 +2549,7 @@ var PropertyNewsUpdates = o__namespace.forwardRef(
|
|
|
3888
2549
|
"button",
|
|
3889
2550
|
{
|
|
3890
2551
|
type: "button",
|
|
3891
|
-
onClick: () => setPage((
|
|
2552
|
+
onClick: () => setPage((prev) => Math.max(0, prev - 1)),
|
|
3892
2553
|
disabled: page === 0,
|
|
3893
2554
|
className: cn(
|
|
3894
2555
|
"rounded-full border border-white/15 px-3 py-1 uppercase tracking-[0.2em]",
|
|
@@ -3907,7 +2568,7 @@ var PropertyNewsUpdates = o__namespace.forwardRef(
|
|
|
3907
2568
|
"button",
|
|
3908
2569
|
{
|
|
3909
2570
|
type: "button",
|
|
3910
|
-
onClick: () => setPage((
|
|
2571
|
+
onClick: () => setPage((prev) => Math.min(totalPages - 1, prev + 1)),
|
|
3911
2572
|
disabled: page >= totalPages - 1,
|
|
3912
2573
|
className: cn(
|
|
3913
2574
|
"rounded-full border border-white/15 px-3 py-1 uppercase tracking-[0.2em]",
|
|
@@ -3929,7 +2590,7 @@ var defaultFormat = (value) => new Intl.NumberFormat("en-US", {
|
|
|
3929
2590
|
notation: value >= 1e5 ? "compact" : "standard",
|
|
3930
2591
|
maximumFractionDigits: value >= 1e3 ? 0 : 2
|
|
3931
2592
|
}).format(value);
|
|
3932
|
-
var TradingSlider =
|
|
2593
|
+
var TradingSlider = React5__namespace.forwardRef(
|
|
3933
2594
|
({
|
|
3934
2595
|
label = "Trade size",
|
|
3935
2596
|
helperText = "Drag to pick the desired notional.",
|
|
@@ -3947,7 +2608,7 @@ var TradingSlider = o__namespace.forwardRef(
|
|
|
3947
2608
|
...rest
|
|
3948
2609
|
}, ref) => {
|
|
3949
2610
|
const isControlled = value !== void 0;
|
|
3950
|
-
const [internalValue, setInternalValue] =
|
|
2611
|
+
const [internalValue, setInternalValue] = React5__namespace.useState(
|
|
3951
2612
|
defaultValue ?? (typeof min === "number" ? min : 0)
|
|
3952
2613
|
);
|
|
3953
2614
|
const currentValue = isControlled ? Number(value) : internalValue;
|
|
@@ -3955,11 +2616,11 @@ var TradingSlider = o__namespace.forwardRef(
|
|
|
3955
2616
|
const parsedMax = Number(max ?? 100);
|
|
3956
2617
|
const percent = (currentValue - parsedMin) / (parsedMax - parsedMin || 1) * 100;
|
|
3957
2618
|
const handleChange = (event) => {
|
|
3958
|
-
const
|
|
2619
|
+
const next = Number(event.target.value);
|
|
3959
2620
|
if (!isControlled) {
|
|
3960
|
-
setInternalValue(
|
|
2621
|
+
setInternalValue(next);
|
|
3961
2622
|
}
|
|
3962
|
-
onValueChange?.(
|
|
2623
|
+
onValueChange?.(next, event);
|
|
3963
2624
|
};
|
|
3964
2625
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("rounded-3xl border border-slate-200 bg-white p-6 shadow-sm", className), children: [
|
|
3965
2626
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-end justify-between gap-4", children: [
|
|
@@ -4009,7 +2670,7 @@ var TradingSlider = o__namespace.forwardRef(
|
|
|
4009
2670
|
}
|
|
4010
2671
|
);
|
|
4011
2672
|
TradingSlider.displayName = "TradingSlider";
|
|
4012
|
-
var MobileToggleContainer =
|
|
2673
|
+
var MobileToggleContainer = styled6__default.default.div`
|
|
4013
2674
|
display: none;
|
|
4014
2675
|
|
|
4015
2676
|
@media (max-width: 1024px) {
|
|
@@ -4027,7 +2688,7 @@ var MobileToggleContainer = at.div`
|
|
|
4027
2688
|
box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
|
|
4028
2689
|
}
|
|
4029
2690
|
`;
|
|
4030
|
-
var MobileToggleButton =
|
|
2691
|
+
var MobileToggleButton = styled6__default.default.button`
|
|
4031
2692
|
flex: 1;
|
|
4032
2693
|
padding: 0.75rem;
|
|
4033
2694
|
background-color: ${(props) => props.active ? "var(--color-accent)" : "transparent"};
|
|
@@ -4050,7 +2711,7 @@ var MobileToggleButton = at.button`
|
|
|
4050
2711
|
padding: 0.6rem 0.5rem;
|
|
4051
2712
|
}
|
|
4052
2713
|
`;
|
|
4053
|
-
var MobileTradeNav =
|
|
2714
|
+
var MobileTradeNav = React5__namespace.forwardRef(
|
|
4054
2715
|
({ className, items, activeId, onChange, ...props }, ref) => {
|
|
4055
2716
|
return /* @__PURE__ */ jsxRuntime.jsx(MobileToggleContainer, { ref, className: cn(className), ...props, children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4056
2717
|
MobileToggleButton,
|
|
@@ -4364,7 +3025,7 @@ function TradeConfirmationModal({
|
|
|
4364
3025
|
] })
|
|
4365
3026
|
] }) });
|
|
4366
3027
|
}
|
|
4367
|
-
var pulse2 =
|
|
3028
|
+
var pulse2 = styled6.keyframes`
|
|
4368
3029
|
0%, 100% {
|
|
4369
3030
|
opacity: 0.45;
|
|
4370
3031
|
transform: scale(1);
|
|
@@ -4374,7 +3035,7 @@ var pulse2 = lt`
|
|
|
4374
3035
|
transform: scale(1.08);
|
|
4375
3036
|
}
|
|
4376
3037
|
`;
|
|
4377
|
-
var shimmer2 =
|
|
3038
|
+
var shimmer2 = styled6.keyframes`
|
|
4378
3039
|
0% {
|
|
4379
3040
|
background-position: -100% 0;
|
|
4380
3041
|
}
|
|
@@ -4382,7 +3043,7 @@ var shimmer2 = lt`
|
|
|
4382
3043
|
background-position: 200% 0;
|
|
4383
3044
|
}
|
|
4384
3045
|
`;
|
|
4385
|
-
var LogoContainer2 =
|
|
3046
|
+
var LogoContainer2 = styled6__default.default.span`
|
|
4386
3047
|
display: inline-flex;
|
|
4387
3048
|
align-items: center;
|
|
4388
3049
|
gap: 0.35rem;
|
|
@@ -4477,7 +3138,7 @@ var LogoContainer2 = at.span`
|
|
|
4477
3138
|
pointer-events: none;
|
|
4478
3139
|
}
|
|
4479
3140
|
`;
|
|
4480
|
-
var IconWrapper2 =
|
|
3141
|
+
var IconWrapper2 = styled6__default.default.div`
|
|
4481
3142
|
display: flex;
|
|
4482
3143
|
align-items: center;
|
|
4483
3144
|
justify-content: center;
|
|
@@ -4495,7 +3156,7 @@ var IconWrapper2 = at.div`
|
|
|
4495
3156
|
height: 14px;
|
|
4496
3157
|
}
|
|
4497
3158
|
`;
|
|
4498
|
-
var IconCircle2 =
|
|
3159
|
+
var IconCircle2 = styled6__default.default.div`
|
|
4499
3160
|
position: absolute;
|
|
4500
3161
|
width: ${(props) => props.$size}px;
|
|
4501
3162
|
height: ${(props) => props.$size}px;
|
|
@@ -4506,7 +3167,7 @@ var IconCircle2 = at.div`
|
|
|
4506
3167
|
transform-origin: center;
|
|
4507
3168
|
will-change: transform, opacity;
|
|
4508
3169
|
`;
|
|
4509
|
-
var IconCore2 =
|
|
3170
|
+
var IconCore2 = styled6__default.default.div`
|
|
4510
3171
|
width: 5px;
|
|
4511
3172
|
height: 5px;
|
|
4512
3173
|
background: linear-gradient(135deg, #0ecb81 0%, #2ecc71 100%);
|
|
@@ -4515,7 +3176,7 @@ var IconCore2 = at.div`
|
|
|
4515
3176
|
position: relative;
|
|
4516
3177
|
z-index: 1;
|
|
4517
3178
|
`;
|
|
4518
|
-
var LogoText2 =
|
|
3179
|
+
var LogoText2 = styled6__default.default.span`
|
|
4519
3180
|
display: inline-flex;
|
|
4520
3181
|
align-items: center;
|
|
4521
3182
|
gap: 0.2rem;
|
|
@@ -4523,7 +3184,7 @@ var LogoText2 = at.span`
|
|
|
4523
3184
|
z-index: 1;
|
|
4524
3185
|
vertical-align: middle;
|
|
4525
3186
|
`;
|
|
4526
|
-
var LoafLogoImage2 =
|
|
3187
|
+
var LoafLogoImage2 = styled6__default.default.img`
|
|
4527
3188
|
height: 20px;
|
|
4528
3189
|
position: relative;
|
|
4529
3190
|
z-index: 1;
|
|
@@ -4536,7 +3197,7 @@ var LoafLogoImage2 = at.img`
|
|
|
4536
3197
|
height: 18px;
|
|
4537
3198
|
}
|
|
4538
3199
|
`;
|
|
4539
|
-
var LiquidityText2 =
|
|
3200
|
+
var LiquidityText2 = styled6__default.default.span`
|
|
4540
3201
|
font-size: 0.65rem;
|
|
4541
3202
|
font-weight: 400;
|
|
4542
3203
|
background: linear-gradient(135deg, #f0b90b 0%, #ffd700 50%, #f0b90b 100%);
|
|
@@ -4701,7 +3362,7 @@ var formatPercent = (value, fractionDigits = 2) => {
|
|
|
4701
3362
|
if (value == null || Number.isNaN(value)) return "\u2014";
|
|
4702
3363
|
return `${value.toFixed(fractionDigits)}%`;
|
|
4703
3364
|
};
|
|
4704
|
-
var YourOrders =
|
|
3365
|
+
var YourOrders = React5__namespace.forwardRef(
|
|
4705
3366
|
({
|
|
4706
3367
|
className,
|
|
4707
3368
|
title,
|
|
@@ -4713,10 +3374,10 @@ var YourOrders = o__namespace.forwardRef(
|
|
|
4713
3374
|
renderTabContent,
|
|
4714
3375
|
...props
|
|
4715
3376
|
}, ref) => {
|
|
4716
|
-
const [internalActiveTab, setInternalActiveTab] =
|
|
4717
|
-
const [page, setPage] =
|
|
3377
|
+
const [internalActiveTab, setInternalActiveTab] = React5__namespace.useState(tabs?.[0]?.id ?? "portfolio");
|
|
3378
|
+
const [page, setPage] = React5__namespace.useState(0);
|
|
4718
3379
|
const effectiveActiveTabId = activeTabId ?? internalActiveTab;
|
|
4719
|
-
|
|
3380
|
+
React5__namespace.useEffect(() => {
|
|
4720
3381
|
setPage(0);
|
|
4721
3382
|
}, [effectiveActiveTabId]);
|
|
4722
3383
|
const handleTabChange = (tabId) => {
|
|
@@ -5066,7 +3727,7 @@ var getPriceScaleOptions = (data) => {
|
|
|
5066
3727
|
borderColor: "rgba(230, 200, 126, 0.25)",
|
|
5067
3728
|
textColor: "rgba(230, 200, 126, 0.7)"
|
|
5068
3729
|
};
|
|
5069
|
-
const prices = data.flatMap((
|
|
3730
|
+
const prices = data.flatMap((d) => [d.open, d.high, d.low, d.close]);
|
|
5070
3731
|
const minPrice = Math.min(...prices);
|
|
5071
3732
|
const maxPrice = Math.max(...prices);
|
|
5072
3733
|
const priceRange = maxPrice - minPrice;
|
|
@@ -5101,7 +3762,7 @@ function createCandlestickSeries(chart, options) {
|
|
|
5101
3762
|
}
|
|
5102
3763
|
throw new Error("Candlestick series API is not available in the current lightweight-charts version.");
|
|
5103
3764
|
}
|
|
5104
|
-
var PriceChart =
|
|
3765
|
+
var PriceChart = React5__namespace.forwardRef(
|
|
5105
3766
|
({
|
|
5106
3767
|
className,
|
|
5107
3768
|
title = "Price Chart",
|
|
@@ -5115,18 +3776,18 @@ var PriceChart = o__namespace.forwardRef(
|
|
|
5115
3776
|
height = 301.52,
|
|
5116
3777
|
...props
|
|
5117
3778
|
}, ref) => {
|
|
5118
|
-
const containerRef =
|
|
5119
|
-
const chartRef =
|
|
5120
|
-
const seriesRef =
|
|
5121
|
-
const priceLineRef =
|
|
5122
|
-
const [hoveredRange, setHoveredRange] =
|
|
5123
|
-
const [dropdownOpen, setDropdownOpen] =
|
|
5124
|
-
const dropdownRef =
|
|
5125
|
-
const isAutoScrollRef =
|
|
3779
|
+
const containerRef = React5__namespace.useRef(null);
|
|
3780
|
+
const chartRef = React5__namespace.useRef(null);
|
|
3781
|
+
const seriesRef = React5__namespace.useRef(null);
|
|
3782
|
+
const priceLineRef = React5__namespace.useRef(null);
|
|
3783
|
+
const [hoveredRange, setHoveredRange] = React5__namespace.useState(null);
|
|
3784
|
+
const [dropdownOpen, setDropdownOpen] = React5__namespace.useState(false);
|
|
3785
|
+
const dropdownRef = React5__namespace.useRef(null);
|
|
3786
|
+
const isAutoScrollRef = React5__namespace.useRef(true);
|
|
5126
3787
|
const visibleRanges = ranges.slice(0, VISIBLE_RANGE_COUNT);
|
|
5127
3788
|
const dropdownRanges = ranges.slice(VISIBLE_RANGE_COUNT);
|
|
5128
3789
|
const selectedInDropdown = dropdownRanges.includes(selectedRange);
|
|
5129
|
-
|
|
3790
|
+
React5__namespace.useEffect(() => {
|
|
5130
3791
|
const handleClickOutside = (e) => {
|
|
5131
3792
|
if (dropdownRef.current && !dropdownRef.current.contains(e.target)) {
|
|
5132
3793
|
setDropdownOpen(false);
|
|
@@ -5135,25 +3796,25 @@ var PriceChart = o__namespace.forwardRef(
|
|
|
5135
3796
|
document.addEventListener("mousedown", handleClickOutside);
|
|
5136
3797
|
return () => document.removeEventListener("mousedown", handleClickOutside);
|
|
5137
3798
|
}, []);
|
|
5138
|
-
const resolvedPrice =
|
|
3799
|
+
const resolvedPrice = React5__namespace.useMemo(() => {
|
|
5139
3800
|
if (price != null) return price;
|
|
5140
3801
|
const last = data.at(-1);
|
|
5141
3802
|
return last?.close;
|
|
5142
3803
|
}, [data, price]);
|
|
5143
|
-
const inferredChangePercent =
|
|
3804
|
+
const inferredChangePercent = React5__namespace.useMemo(() => {
|
|
5144
3805
|
if (changePercent != null) return changePercent;
|
|
5145
3806
|
const first = data[0]?.open;
|
|
5146
3807
|
const last = data.at(-1)?.close;
|
|
5147
3808
|
if (first == null || last == null || first === 0) return void 0;
|
|
5148
3809
|
return (last - first) / first * 100;
|
|
5149
3810
|
}, [changePercent, data]);
|
|
5150
|
-
const dollarChange =
|
|
3811
|
+
const dollarChange = React5__namespace.useMemo(() => {
|
|
5151
3812
|
const first = data[0]?.open;
|
|
5152
3813
|
const last = data.at(-1)?.close;
|
|
5153
3814
|
if (first == null || last == null) return void 0;
|
|
5154
3815
|
return last - first;
|
|
5155
3816
|
}, [data]);
|
|
5156
|
-
|
|
3817
|
+
React5__namespace.useEffect(() => {
|
|
5157
3818
|
const el = containerRef.current;
|
|
5158
3819
|
if (!el) return;
|
|
5159
3820
|
const chart = LightweightCharts__namespace.createChart(el, {
|
|
@@ -5185,8 +3846,8 @@ var PriceChart = o__namespace.forwardRef(
|
|
|
5185
3846
|
seriesRef.current = series;
|
|
5186
3847
|
const handleVisibleRangeChange = () => {
|
|
5187
3848
|
const timeScale2 = chart.timeScale();
|
|
5188
|
-
const
|
|
5189
|
-
const atRightEdge =
|
|
3849
|
+
const position = timeScale2.scrollPosition();
|
|
3850
|
+
const atRightEdge = position <= 0.01;
|
|
5190
3851
|
isAutoScrollRef.current = atRightEdge;
|
|
5191
3852
|
};
|
|
5192
3853
|
const timeScale = chart.timeScale();
|
|
@@ -5198,7 +3859,7 @@ var PriceChart = o__namespace.forwardRef(
|
|
|
5198
3859
|
chart.remove();
|
|
5199
3860
|
};
|
|
5200
3861
|
}, []);
|
|
5201
|
-
|
|
3862
|
+
React5__namespace.useEffect(() => {
|
|
5202
3863
|
const chart = chartRef.current;
|
|
5203
3864
|
if (!chart) return;
|
|
5204
3865
|
const effectiveRange = selectedRange ?? ranges?.[0] ?? "1D";
|
|
@@ -5206,7 +3867,7 @@ var PriceChart = o__namespace.forwardRef(
|
|
|
5206
3867
|
timeScale: getTimeScaleOptions(effectiveRange)
|
|
5207
3868
|
});
|
|
5208
3869
|
}, [selectedRange, ranges]);
|
|
5209
|
-
|
|
3870
|
+
React5__namespace.useEffect(() => {
|
|
5210
3871
|
const chart = chartRef.current;
|
|
5211
3872
|
const series = seriesRef.current;
|
|
5212
3873
|
if (!chart || !series) return;
|
|
@@ -5264,9 +3925,9 @@ var PriceChart = o__namespace.forwardRef(
|
|
|
5264
3925
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full flex-col gap-3 md:w-auto", children: [
|
|
5265
3926
|
/* @__PURE__ */ jsxRuntime.jsx(CardTitle, { className: "m-0 text-[1.1rem] font-semibold text-white", children: title }),
|
|
5266
3927
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
5267
|
-
visibleRanges.map((
|
|
5268
|
-
const active =
|
|
5269
|
-
const hovered = hoveredRange ===
|
|
3928
|
+
visibleRanges.map((r) => {
|
|
3929
|
+
const active = r === selectedRange;
|
|
3930
|
+
const hovered = hoveredRange === r;
|
|
5270
3931
|
const style = {
|
|
5271
3932
|
...btnBaseStyle,
|
|
5272
3933
|
...hovered ? btnHoverStyle : null,
|
|
@@ -5276,16 +3937,16 @@ var PriceChart = o__namespace.forwardRef(
|
|
|
5276
3937
|
"button",
|
|
5277
3938
|
{
|
|
5278
3939
|
type: "button",
|
|
5279
|
-
onClick: () => onRangeChange?.(
|
|
5280
|
-
onMouseEnter: () => setHoveredRange(
|
|
5281
|
-
onMouseLeave: () => setHoveredRange((
|
|
3940
|
+
onClick: () => onRangeChange?.(r),
|
|
3941
|
+
onMouseEnter: () => setHoveredRange(r),
|
|
3942
|
+
onMouseLeave: () => setHoveredRange((prev) => prev === r ? null : prev),
|
|
5282
3943
|
style,
|
|
5283
3944
|
className: cn(
|
|
5284
3945
|
"rounded border px-3 py-1 text-[0.85rem] font-medium transition-all duration-200"
|
|
5285
3946
|
),
|
|
5286
|
-
children:
|
|
3947
|
+
children: r
|
|
5287
3948
|
},
|
|
5288
|
-
|
|
3949
|
+
r
|
|
5289
3950
|
);
|
|
5290
3951
|
}),
|
|
5291
3952
|
selectedInDropdown && selectedRange ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -5308,9 +3969,9 @@ var PriceChart = o__namespace.forwardRef(
|
|
|
5308
3969
|
"button",
|
|
5309
3970
|
{
|
|
5310
3971
|
type: "button",
|
|
5311
|
-
onClick: () => setDropdownOpen((
|
|
3972
|
+
onClick: () => setDropdownOpen((prev) => !prev),
|
|
5312
3973
|
onMouseEnter: () => setHoveredRange("__dropdown__"),
|
|
5313
|
-
onMouseLeave: () => setHoveredRange((
|
|
3974
|
+
onMouseLeave: () => setHoveredRange((prev) => prev === "__dropdown__" ? null : prev),
|
|
5314
3975
|
style: {
|
|
5315
3976
|
...btnBaseStyle,
|
|
5316
3977
|
...hoveredRange === "__dropdown__" ? btnHoverStyle : null
|
|
@@ -5333,23 +3994,23 @@ var PriceChart = o__namespace.forwardRef(
|
|
|
5333
3994
|
]
|
|
5334
3995
|
}
|
|
5335
3996
|
),
|
|
5336
|
-
dropdownOpen && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute left-0 top-full z-50 mt-1 min-w-[80px] rounded border border-white/10 bg-black/90 py-1 backdrop-blur-md", children: dropdownRanges.map((
|
|
5337
|
-
const active =
|
|
3997
|
+
dropdownOpen && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute left-0 top-full z-50 mt-1 min-w-[80px] rounded border border-white/10 bg-black/90 py-1 backdrop-blur-md", children: dropdownRanges.map((r) => {
|
|
3998
|
+
const active = r === selectedRange;
|
|
5338
3999
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5339
4000
|
"button",
|
|
5340
4001
|
{
|
|
5341
4002
|
type: "button",
|
|
5342
4003
|
onClick: () => {
|
|
5343
|
-
onRangeChange?.(
|
|
4004
|
+
onRangeChange?.(r);
|
|
5344
4005
|
setDropdownOpen(false);
|
|
5345
4006
|
},
|
|
5346
4007
|
className: cn(
|
|
5347
4008
|
"block w-full px-3 py-1.5 text-left text-[0.85rem] font-medium transition-colors hover:bg-white/10",
|
|
5348
4009
|
active ? "bg-[#e6c87e]/20 text-[#e6c87e]" : "text-white/70"
|
|
5349
4010
|
),
|
|
5350
|
-
children:
|
|
4011
|
+
children: r
|
|
5351
4012
|
},
|
|
5352
|
-
|
|
4013
|
+
r
|
|
5353
4014
|
);
|
|
5354
4015
|
}) })
|
|
5355
4016
|
] })
|
|
@@ -5411,7 +4072,7 @@ var formatPrice3 = (value, currencySymbol) => {
|
|
|
5411
4072
|
maximumFractionDigits: 3
|
|
5412
4073
|
})}`;
|
|
5413
4074
|
};
|
|
5414
|
-
var PropertyHeroHeader =
|
|
4075
|
+
var PropertyHeroHeader = React5__namespace.forwardRef(
|
|
5415
4076
|
({
|
|
5416
4077
|
className,
|
|
5417
4078
|
imageUrl,
|
|
@@ -5432,8 +4093,8 @@ var PropertyHeroHeader = o__namespace.forwardRef(
|
|
|
5432
4093
|
const isPositive = changePercent == null ? void 0 : changePercent >= 0;
|
|
5433
4094
|
const accentColor = "#e6c87e";
|
|
5434
4095
|
const tradeHoverColor = "#f5dd9a";
|
|
5435
|
-
const [isTradeInteracting, setIsTradeInteracting] =
|
|
5436
|
-
const [isOfferInteracting, setIsOfferInteracting] =
|
|
4096
|
+
const [isTradeInteracting, setIsTradeInteracting] = React5__namespace.useState(false);
|
|
4097
|
+
const [isOfferInteracting, setIsOfferInteracting] = React5__namespace.useState(false);
|
|
5437
4098
|
const hasAmenities = beds != null || baths != null || cars != null || propertyTypeLabel != null;
|
|
5438
4099
|
const headingStyle = {
|
|
5439
4100
|
fontSize: "clamp(1.6rem, 4vw, 2.5rem)",
|
|
@@ -5598,7 +4259,7 @@ var PropertyHeroHeader = o__namespace.forwardRef(
|
|
|
5598
4259
|
}
|
|
5599
4260
|
);
|
|
5600
4261
|
PropertyHeroHeader.displayName = "PropertyHeroHeader";
|
|
5601
|
-
var OuterWrapper =
|
|
4262
|
+
var OuterWrapper = styled6__default.default.div`
|
|
5602
4263
|
width: 100%;
|
|
5603
4264
|
max-width: 1200px;
|
|
5604
4265
|
margin: 0 auto;
|
|
@@ -5606,7 +4267,7 @@ var OuterWrapper = at.div`
|
|
|
5606
4267
|
flex-direction: column;
|
|
5607
4268
|
gap: 0.5rem;
|
|
5608
4269
|
`;
|
|
5609
|
-
var HeroContainer =
|
|
4270
|
+
var HeroContainer = styled6__default.default.div`
|
|
5610
4271
|
position: relative;
|
|
5611
4272
|
width: 100%;
|
|
5612
4273
|
height: 500px;
|
|
@@ -5638,7 +4299,7 @@ var HeroContainer = at.div`
|
|
|
5638
4299
|
height: 200px;
|
|
5639
4300
|
}
|
|
5640
4301
|
`;
|
|
5641
|
-
var MobileAmenities =
|
|
4302
|
+
var MobileAmenities = styled6__default.default.div`
|
|
5642
4303
|
display: none;
|
|
5643
4304
|
align-items: center;
|
|
5644
4305
|
justify-content: space-between;
|
|
@@ -5655,7 +4316,7 @@ var MobileAmenities = at.div`
|
|
|
5655
4316
|
flex-wrap: wrap;
|
|
5656
4317
|
}
|
|
5657
4318
|
`;
|
|
5658
|
-
var MobileAmenity =
|
|
4319
|
+
var MobileAmenity = styled6__default.default.span`
|
|
5659
4320
|
display: inline-flex;
|
|
5660
4321
|
align-items: center;
|
|
5661
4322
|
gap: 0.35rem;
|
|
@@ -5664,7 +4325,7 @@ var MobileAmenity = at.span`
|
|
|
5664
4325
|
background: rgba(255, 255, 255, 0.08);
|
|
5665
4326
|
font-weight: 500;
|
|
5666
4327
|
`;
|
|
5667
|
-
var HeroImage =
|
|
4328
|
+
var HeroImage = styled6__default.default.img`
|
|
5668
4329
|
position: absolute;
|
|
5669
4330
|
inset: 0;
|
|
5670
4331
|
width: 100%;
|
|
@@ -5676,13 +4337,13 @@ var HeroImage = at.img`
|
|
|
5676
4337
|
min-width: 110%;
|
|
5677
4338
|
transition: transform 0.5s ease-out;
|
|
5678
4339
|
`;
|
|
5679
|
-
var HeroGradient =
|
|
4340
|
+
var HeroGradient = styled6__default.default.div`
|
|
5680
4341
|
position: absolute;
|
|
5681
4342
|
inset: 0;
|
|
5682
4343
|
z-index: 1;
|
|
5683
4344
|
background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.75) 100%);
|
|
5684
4345
|
`;
|
|
5685
|
-
var ActionButtons =
|
|
4346
|
+
var ActionButtons = styled6__default.default.div`
|
|
5686
4347
|
display: flex;
|
|
5687
4348
|
flex-wrap: wrap;
|
|
5688
4349
|
align-items: center;
|
|
@@ -5697,7 +4358,7 @@ var ActionButtons = at.div`
|
|
|
5697
4358
|
display: none;
|
|
5698
4359
|
}
|
|
5699
4360
|
`;
|
|
5700
|
-
var InfoCard =
|
|
4361
|
+
var InfoCard = styled6__default.default.div`
|
|
5701
4362
|
display: inline-block;
|
|
5702
4363
|
width: fit-content;
|
|
5703
4364
|
max-width: 70%;
|
|
@@ -5722,7 +4383,7 @@ var InfoCard = at.div`
|
|
|
5722
4383
|
max-width: 95%;
|
|
5723
4384
|
}
|
|
5724
4385
|
`;
|
|
5725
|
-
var InfoRow =
|
|
4386
|
+
var InfoRow = styled6__default.default.div`
|
|
5726
4387
|
display: grid;
|
|
5727
4388
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
5728
4389
|
align-items: center;
|
|
@@ -5733,7 +4394,7 @@ var InfoRow = at.div`
|
|
|
5733
4394
|
gap: 0.5rem;
|
|
5734
4395
|
}
|
|
5735
4396
|
`;
|
|
5736
|
-
var LocationText =
|
|
4397
|
+
var LocationText = styled6__default.default.span`
|
|
5737
4398
|
font-size: clamp(1rem, 2.6vw, 1.25rem);
|
|
5738
4399
|
color: rgba(255, 255, 255, 0.9);
|
|
5739
4400
|
font-weight: 500;
|
|
@@ -5741,7 +4402,7 @@ var LocationText = at.span`
|
|
|
5741
4402
|
text-overflow: ellipsis;
|
|
5742
4403
|
white-space: nowrap;
|
|
5743
4404
|
`;
|
|
5744
|
-
var PriceBlock =
|
|
4405
|
+
var PriceBlock = styled6__default.default.span`
|
|
5745
4406
|
display: flex;
|
|
5746
4407
|
align-items: center;
|
|
5747
4408
|
font-size: clamp(1rem, 2.2vw, 1.25rem);
|
|
@@ -5787,11 +4448,11 @@ var Header = ({
|
|
|
5787
4448
|
onOrdersNavigate,
|
|
5788
4449
|
onWalletNavigate
|
|
5789
4450
|
}) => {
|
|
5790
|
-
const [isUserMenuOpen, setIsUserMenuOpen] =
|
|
5791
|
-
const [isMobileMenuOpen, setIsMobileMenuOpen] =
|
|
5792
|
-
const [isMoreMenuOpen, setIsMoreMenuOpen] =
|
|
5793
|
-
const [showLoginPopup, setShowLoginPopup] =
|
|
5794
|
-
|
|
4451
|
+
const [isUserMenuOpen, setIsUserMenuOpen] = React5.useState(false);
|
|
4452
|
+
const [isMobileMenuOpen, setIsMobileMenuOpen] = React5.useState(false);
|
|
4453
|
+
const [isMoreMenuOpen, setIsMoreMenuOpen] = React5.useState(false);
|
|
4454
|
+
const [showLoginPopup, setShowLoginPopup] = React5.useState(false);
|
|
4455
|
+
React5.useEffect(() => {
|
|
5795
4456
|
const handleClickOutside = (event) => {
|
|
5796
4457
|
const target = event.target;
|
|
5797
4458
|
if (!target) return;
|
|
@@ -5888,8 +4549,8 @@ var Header = ({
|
|
|
5888
4549
|
parsed.searchParams.set(authReturnParam, nextUrl);
|
|
5889
4550
|
finalUrl = parsed.toString();
|
|
5890
4551
|
} catch {
|
|
5891
|
-
const
|
|
5892
|
-
finalUrl = `${authLoginUrl}${
|
|
4552
|
+
const delimiter = authLoginUrl.includes("?") ? "&" : "?";
|
|
4553
|
+
finalUrl = `${authLoginUrl}${delimiter}${encodeURIComponent(authReturnParam)}=${encodeURIComponent(nextUrl)}`;
|
|
5893
4554
|
}
|
|
5894
4555
|
}
|
|
5895
4556
|
if (typeof window !== "undefined") {
|
|
@@ -6128,7 +4789,7 @@ var Header = ({
|
|
|
6128
4789
|
] });
|
|
6129
4790
|
};
|
|
6130
4791
|
Header.displayName = "Header";
|
|
6131
|
-
var Overlay =
|
|
4792
|
+
var Overlay = styled6__default.default.div`
|
|
6132
4793
|
display: ${(props) => props.$isOpen ? "block" : "none"};
|
|
6133
4794
|
position: fixed;
|
|
6134
4795
|
top: 0;
|
|
@@ -6139,7 +4800,7 @@ var Overlay = at.div`
|
|
|
6139
4800
|
backdrop-filter: blur(3px);
|
|
6140
4801
|
z-index: 999;
|
|
6141
4802
|
`;
|
|
6142
|
-
var MobileOnlyButton =
|
|
4803
|
+
var MobileOnlyButton = styled6__default.default.button.attrs({ type: "button" })`
|
|
6143
4804
|
display: none;
|
|
6144
4805
|
background-color: ${(props) => props.$isOpen ? "rgba(240, 185, 11, 0.2)" : "#f0b90b"};
|
|
6145
4806
|
color: ${(props) => props.$isOpen ? "#ffffff" : "#0b0e11"};
|
|
@@ -6170,7 +4831,7 @@ var MobileOnlyButton = at.button.attrs({ type: "button" })`
|
|
|
6170
4831
|
display: flex;
|
|
6171
4832
|
}
|
|
6172
4833
|
`;
|
|
6173
|
-
var HeaderContainer =
|
|
4834
|
+
var HeaderContainer = styled6__default.default.header`
|
|
6174
4835
|
display: flex;
|
|
6175
4836
|
justify-content: space-between;
|
|
6176
4837
|
align-items: center;
|
|
@@ -6190,7 +4851,7 @@ var HeaderContainer = at.header`
|
|
|
6190
4851
|
padding: 0 1rem;
|
|
6191
4852
|
}
|
|
6192
4853
|
`;
|
|
6193
|
-
var Logo =
|
|
4854
|
+
var Logo = styled6__default.default.div`
|
|
6194
4855
|
display: flex;
|
|
6195
4856
|
align-items: center;
|
|
6196
4857
|
margin-right: 24px;
|
|
@@ -6211,11 +4872,11 @@ var Logo = at.div`
|
|
|
6211
4872
|
}
|
|
6212
4873
|
}
|
|
6213
4874
|
`;
|
|
6214
|
-
var LogoLink =
|
|
4875
|
+
var LogoLink = styled6__default.default.a`
|
|
6215
4876
|
display: inline-flex;
|
|
6216
4877
|
align-items: center;
|
|
6217
4878
|
`;
|
|
6218
|
-
var Nav =
|
|
4879
|
+
var Nav = styled6__default.default.nav`
|
|
6219
4880
|
display: flex;
|
|
6220
4881
|
flex-direction: column;
|
|
6221
4882
|
|
|
@@ -6265,7 +4926,7 @@ var Nav = at.nav`
|
|
|
6265
4926
|
}
|
|
6266
4927
|
}
|
|
6267
4928
|
`;
|
|
6268
|
-
var NavLink =
|
|
4929
|
+
var NavLink = styled6__default.default.a`
|
|
6269
4930
|
margin: 0 12px;
|
|
6270
4931
|
color: #eaecef;
|
|
6271
4932
|
font-weight: 500;
|
|
@@ -6324,7 +4985,7 @@ var NavLink = at.a`
|
|
|
6324
4985
|
}
|
|
6325
4986
|
}
|
|
6326
4987
|
`;
|
|
6327
|
-
var Button2 =
|
|
4988
|
+
var Button2 = styled6__default.default.button.attrs({ type: "button" })`
|
|
6328
4989
|
padding: 0.5rem 1rem;
|
|
6329
4990
|
border-radius: 6px;
|
|
6330
4991
|
font-weight: 500;
|
|
@@ -6362,7 +5023,7 @@ var Button2 = at.button.attrs({ type: "button" })`
|
|
|
6362
5023
|
margin-left: 0.5rem;
|
|
6363
5024
|
}
|
|
6364
5025
|
`;
|
|
6365
|
-
var UserMenu =
|
|
5026
|
+
var UserMenu = styled6__default.default.div`
|
|
6366
5027
|
position: relative;
|
|
6367
5028
|
margin-left: 0.75rem;
|
|
6368
5029
|
height: 56px;
|
|
@@ -6373,7 +5034,7 @@ var UserMenu = at.div`
|
|
|
6373
5034
|
margin-left: auto;
|
|
6374
5035
|
}
|
|
6375
5036
|
`;
|
|
6376
|
-
var UserButton =
|
|
5037
|
+
var UserButton = styled6__default.default.button.attrs({ type: "button" })`
|
|
6377
5038
|
display: flex;
|
|
6378
5039
|
align-items: center;
|
|
6379
5040
|
background: transparent;
|
|
@@ -6398,7 +5059,7 @@ var UserButton = at.button.attrs({ type: "button" })`
|
|
|
6398
5059
|
transform: ${(props) => props.isOpen ? "rotate(180deg)" : "rotate(0)"};
|
|
6399
5060
|
}
|
|
6400
5061
|
`;
|
|
6401
|
-
var DropdownMenu =
|
|
5062
|
+
var DropdownMenu = styled6__default.default.div`
|
|
6402
5063
|
position: absolute;
|
|
6403
5064
|
top: 100%;
|
|
6404
5065
|
left: 0;
|
|
@@ -6424,7 +5085,7 @@ var DropdownMenu = at.div`
|
|
|
6424
5085
|
display: block;
|
|
6425
5086
|
}
|
|
6426
5087
|
`;
|
|
6427
|
-
var MenuItem =
|
|
5088
|
+
var MenuItem = styled6__default.default.div`
|
|
6428
5089
|
padding: 0.75rem 1.25rem;
|
|
6429
5090
|
cursor: pointer;
|
|
6430
5091
|
transition: all 0.2s ease;
|
|
@@ -6444,7 +5105,7 @@ var MenuItem = at.div`
|
|
|
6444
5105
|
color: #f6465d;
|
|
6445
5106
|
}
|
|
6446
5107
|
`;
|
|
6447
|
-
var MobileMenuHeader =
|
|
5108
|
+
var MobileMenuHeader = styled6__default.default.div`
|
|
6448
5109
|
display: flex;
|
|
6449
5110
|
justify-content: flex-end;
|
|
6450
5111
|
align-items: center;
|
|
@@ -6453,7 +5114,7 @@ var MobileMenuHeader = at.div`
|
|
|
6453
5114
|
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
6454
5115
|
background: rgba(0, 0, 0, 0.2);
|
|
6455
5116
|
`;
|
|
6456
|
-
var MobileMenuClose =
|
|
5117
|
+
var MobileMenuClose = styled6__default.default.button.attrs({ type: "button" })`
|
|
6457
5118
|
background: none;
|
|
6458
5119
|
border: none;
|
|
6459
5120
|
color: #eaecef;
|
|
@@ -6464,7 +5125,7 @@ var MobileMenuClose = at.button.attrs({ type: "button" })`
|
|
|
6464
5125
|
align-items: center;
|
|
6465
5126
|
justify-content: center;
|
|
6466
5127
|
`;
|
|
6467
|
-
var SearchBar =
|
|
5128
|
+
var SearchBar = styled6__default.default.div`
|
|
6468
5129
|
display: flex;
|
|
6469
5130
|
align-items: center;
|
|
6470
5131
|
background: rgba(255, 255, 255, 0.03);
|
|
@@ -6500,7 +5161,7 @@ var SearchBar = at.div`
|
|
|
6500
5161
|
}
|
|
6501
5162
|
}
|
|
6502
5163
|
`;
|
|
6503
|
-
var MobileNavItem =
|
|
5164
|
+
var MobileNavItem = styled6__default.default.div`
|
|
6504
5165
|
display: flex;
|
|
6505
5166
|
align-items: center;
|
|
6506
5167
|
padding: 14px 20px;
|
|
@@ -6518,10 +5179,10 @@ var MobileNavItem = at.div`
|
|
|
6518
5179
|
padding-left: 24px;
|
|
6519
5180
|
}
|
|
6520
5181
|
`;
|
|
6521
|
-
var PropertySubheader =
|
|
5182
|
+
var PropertySubheader = React5__namespace.forwardRef(
|
|
6522
5183
|
({ className, tabs, activeTabId, onTabChange, actions, ...props }, ref) => {
|
|
6523
|
-
const tabsContainerRef =
|
|
6524
|
-
|
|
5184
|
+
const tabsContainerRef = React5__namespace.useRef(null);
|
|
5185
|
+
React5__namespace.useEffect(() => {
|
|
6525
5186
|
const container = tabsContainerRef.current;
|
|
6526
5187
|
if (!container) return;
|
|
6527
5188
|
const isMobile = window.innerWidth <= 768;
|
|
@@ -6658,14 +5319,14 @@ var LoginPopup = ({
|
|
|
6658
5319
|
logoAlt = DEFAULT_LOGO_ALT,
|
|
6659
5320
|
autoCloseOnAuth = true
|
|
6660
5321
|
}) => {
|
|
6661
|
-
const [view, setView] =
|
|
6662
|
-
const [email, setEmail] =
|
|
6663
|
-
const [handle, setHandle] =
|
|
6664
|
-
const [otp, setOtp] =
|
|
6665
|
-
const [error, setError] =
|
|
6666
|
-
const [loading, setLoading] =
|
|
6667
|
-
const [isSignUp, setIsSignUp] =
|
|
6668
|
-
|
|
5322
|
+
const [view, setView] = React5.useState("main");
|
|
5323
|
+
const [email, setEmail] = React5.useState("");
|
|
5324
|
+
const [handle, setHandle] = React5.useState("");
|
|
5325
|
+
const [otp, setOtp] = React5.useState(Array(OTP_INPUT_LENGTH).fill(""));
|
|
5326
|
+
const [error, setError] = React5.useState("");
|
|
5327
|
+
const [loading, setLoading] = React5.useState(false);
|
|
5328
|
+
const [isSignUp, setIsSignUp] = React5.useState(false);
|
|
5329
|
+
React5.useEffect(() => {
|
|
6669
5330
|
if (!autoCloseOnAuth) {
|
|
6670
5331
|
return;
|
|
6671
5332
|
}
|
|
@@ -6711,12 +5372,11 @@ var LoginPopup = ({
|
|
|
6711
5372
|
setLoading(false);
|
|
6712
5373
|
return;
|
|
6713
5374
|
}
|
|
6714
|
-
setView("otp");
|
|
6715
|
-
setOtp(Array(OTP_INPUT_LENGTH).fill(""));
|
|
6716
5375
|
try {
|
|
6717
5376
|
await onSendEmailCode({ email, isSignUp, handle: normalizedHandle ?? null });
|
|
5377
|
+
setView("otp");
|
|
5378
|
+
setOtp(Array(OTP_INPUT_LENGTH).fill(""));
|
|
6718
5379
|
} catch (err) {
|
|
6719
|
-
setView("email");
|
|
6720
5380
|
setError(err instanceof Error ? err.message : "Failed to send verification code");
|
|
6721
5381
|
} finally {
|
|
6722
5382
|
setLoading(false);
|
|
@@ -6932,7 +5592,7 @@ var LoginPopup = ({
|
|
|
6932
5592
|
}
|
|
6933
5593
|
return null;
|
|
6934
5594
|
};
|
|
6935
|
-
var Overlay2 =
|
|
5595
|
+
var Overlay2 = styled6__default.default.div`
|
|
6936
5596
|
position: fixed;
|
|
6937
5597
|
top: 0;
|
|
6938
5598
|
left: 0;
|
|
@@ -6955,7 +5615,7 @@ var Overlay2 = at.div`
|
|
|
6955
5615
|
}
|
|
6956
5616
|
}
|
|
6957
5617
|
`;
|
|
6958
|
-
var PopupContainer =
|
|
5618
|
+
var PopupContainer = styled6__default.default.div`
|
|
6959
5619
|
background-color: var(--color-background, #0a0a0a);
|
|
6960
5620
|
border: 1px solid rgba(230, 198, 86, 0.3);
|
|
6961
5621
|
border-radius: var(--border-radius, 12px);
|
|
@@ -6982,7 +5642,7 @@ var PopupContainer = at.div`
|
|
|
6982
5642
|
max-width: 90%;
|
|
6983
5643
|
}
|
|
6984
5644
|
`;
|
|
6985
|
-
var CloseButton =
|
|
5645
|
+
var CloseButton = styled6__default.default.button`
|
|
6986
5646
|
position: absolute;
|
|
6987
5647
|
top: 1rem;
|
|
6988
5648
|
right: 1rem;
|
|
@@ -7001,7 +5661,7 @@ var CloseButton = at.button`
|
|
|
7001
5661
|
color: var(--color-accent, #e6c656);
|
|
7002
5662
|
}
|
|
7003
5663
|
`;
|
|
7004
|
-
var Title =
|
|
5664
|
+
var Title = styled6__default.default.h2`
|
|
7005
5665
|
font-size: 1.75rem;
|
|
7006
5666
|
font-weight: 600;
|
|
7007
5667
|
color: var(--color-text, #eaecef);
|
|
@@ -7013,21 +5673,21 @@ var Title = at.h2`
|
|
|
7013
5673
|
justify-content: center;
|
|
7014
5674
|
gap: 1rem;
|
|
7015
5675
|
`;
|
|
7016
|
-
var LogoContainer3 =
|
|
5676
|
+
var LogoContainer3 = styled6__default.default.div`
|
|
7017
5677
|
display: flex;
|
|
7018
5678
|
justify-content: center;
|
|
7019
5679
|
margin-bottom: 0.5rem;
|
|
7020
5680
|
`;
|
|
7021
|
-
var LogoImage =
|
|
5681
|
+
var LogoImage = styled6__default.default.img`
|
|
7022
5682
|
height: 60px;
|
|
7023
5683
|
`;
|
|
7024
|
-
var ButtonsContainer =
|
|
5684
|
+
var ButtonsContainer = styled6__default.default.div`
|
|
7025
5685
|
display: flex;
|
|
7026
5686
|
flex-direction: column;
|
|
7027
5687
|
gap: 1rem;
|
|
7028
5688
|
margin-bottom: 1.5rem;
|
|
7029
5689
|
`;
|
|
7030
|
-
var LoginButton =
|
|
5690
|
+
var LoginButton = styled6__default.default.button`
|
|
7031
5691
|
display: flex;
|
|
7032
5692
|
align-items: center;
|
|
7033
5693
|
justify-content: center;
|
|
@@ -7053,7 +5713,7 @@ var LoginButton = at.button`
|
|
|
7053
5713
|
color: var(--color-accent, #e6c656);
|
|
7054
5714
|
}
|
|
7055
5715
|
`;
|
|
7056
|
-
var Divider =
|
|
5716
|
+
var Divider = styled6__default.default.div`
|
|
7057
5717
|
display: flex;
|
|
7058
5718
|
align-items: center;
|
|
7059
5719
|
margin: 1.5rem 0;
|
|
@@ -7066,13 +5726,13 @@ var Divider = at.div`
|
|
|
7066
5726
|
background-color: rgba(230, 198, 86, 0.2);
|
|
7067
5727
|
}
|
|
7068
5728
|
`;
|
|
7069
|
-
var InfoText =
|
|
5729
|
+
var InfoText = styled6__default.default.p`
|
|
7070
5730
|
color: var(--color-text-secondary, #848e9c);
|
|
7071
5731
|
font-size: 0.875rem;
|
|
7072
5732
|
text-align: center;
|
|
7073
5733
|
line-height: 1.5;
|
|
7074
5734
|
`;
|
|
7075
|
-
var AnnotationContainer =
|
|
5735
|
+
var AnnotationContainer = styled6__default.default.div`
|
|
7076
5736
|
display: flex;
|
|
7077
5737
|
flex-direction: column;
|
|
7078
5738
|
gap: 0.75rem;
|
|
@@ -7080,7 +5740,7 @@ var AnnotationContainer = at.div`
|
|
|
7080
5740
|
padding-top: 1.5rem;
|
|
7081
5741
|
border-top: 1px solid rgba(230, 198, 86, 0.2);
|
|
7082
5742
|
`;
|
|
7083
|
-
var Annotation =
|
|
5743
|
+
var Annotation = styled6__default.default.div`
|
|
7084
5744
|
display: flex;
|
|
7085
5745
|
align-items: flex-start;
|
|
7086
5746
|
gap: 1rem;
|
|
@@ -7095,22 +5755,22 @@ var Annotation = at.div`
|
|
|
7095
5755
|
color: var(--color-accent, #e6c656);
|
|
7096
5756
|
}
|
|
7097
5757
|
`;
|
|
7098
|
-
var AnnotationText =
|
|
5758
|
+
var AnnotationText = styled6__default.default.span`
|
|
7099
5759
|
flex: 1;
|
|
7100
5760
|
line-height: 1.4;
|
|
7101
5761
|
`;
|
|
7102
|
-
var AnnotationLabel =
|
|
5762
|
+
var AnnotationLabel = styled6__default.default.span`
|
|
7103
5763
|
color: var(--color-text, #eaecef);
|
|
7104
5764
|
font-weight: 500;
|
|
7105
5765
|
margin-right: 0.25rem;
|
|
7106
5766
|
`;
|
|
7107
|
-
var EmailFormContainer =
|
|
5767
|
+
var EmailFormContainer = styled6__default.default.div`
|
|
7108
5768
|
display: flex;
|
|
7109
5769
|
flex-direction: column;
|
|
7110
5770
|
gap: 1rem;
|
|
7111
5771
|
margin-bottom: 1.5rem;
|
|
7112
5772
|
`;
|
|
7113
|
-
var EmailInput =
|
|
5773
|
+
var EmailInput = styled6__default.default.input`
|
|
7114
5774
|
width: 100%;
|
|
7115
5775
|
padding: 1rem 1.25rem;
|
|
7116
5776
|
background-color: var(--color-background-light, #1a1a1a);
|
|
@@ -7129,12 +5789,12 @@ var EmailInput = at.input`
|
|
|
7129
5789
|
color: var(--color-text-secondary, #848e9c);
|
|
7130
5790
|
}
|
|
7131
5791
|
`;
|
|
7132
|
-
var OTPContainer =
|
|
5792
|
+
var OTPContainer = styled6__default.default.div`
|
|
7133
5793
|
display: flex;
|
|
7134
5794
|
gap: 0.5rem;
|
|
7135
5795
|
justify-content: center;
|
|
7136
5796
|
`;
|
|
7137
|
-
var OTPInput =
|
|
5797
|
+
var OTPInput = styled6__default.default.input`
|
|
7138
5798
|
width: 48px;
|
|
7139
5799
|
height: 56px;
|
|
7140
5800
|
text-align: center;
|
|
@@ -7152,7 +5812,7 @@ var OTPInput = at.input`
|
|
|
7152
5812
|
box-shadow: 0 0 0 2px rgba(230, 198, 86, 0.2);
|
|
7153
5813
|
}
|
|
7154
5814
|
`;
|
|
7155
|
-
var SubmitButton =
|
|
5815
|
+
var SubmitButton = styled6__default.default.button`
|
|
7156
5816
|
width: 100%;
|
|
7157
5817
|
padding: 1rem;
|
|
7158
5818
|
background-color: var(--color-accent, #e6c656);
|
|
@@ -7175,7 +5835,7 @@ var SubmitButton = at.button`
|
|
|
7175
5835
|
cursor: not-allowed;
|
|
7176
5836
|
}
|
|
7177
5837
|
`;
|
|
7178
|
-
var BackButton =
|
|
5838
|
+
var BackButton = styled6__default.default.button`
|
|
7179
5839
|
background: none;
|
|
7180
5840
|
border: none;
|
|
7181
5841
|
color: var(--color-text-secondary, #848e9c);
|
|
@@ -7190,15 +5850,15 @@ var BackButton = at.button`
|
|
|
7190
5850
|
color: var(--color-accent, #e6c656);
|
|
7191
5851
|
}
|
|
7192
5852
|
`;
|
|
7193
|
-
var StatusMessage =
|
|
5853
|
+
var StatusMessage = styled6__default.default.p`
|
|
7194
5854
|
color: ${(props) => props.$error ? "#f6465d" : "#0ecb81"};
|
|
7195
5855
|
font-size: 0.875rem;
|
|
7196
5856
|
text-align: center;
|
|
7197
5857
|
margin-top: 0.5rem;
|
|
7198
5858
|
`;
|
|
7199
5859
|
var MiniLiveFeed = () => {
|
|
7200
|
-
const [purchases, setPurchases] =
|
|
7201
|
-
|
|
5860
|
+
const [purchases, setPurchases] = React5.useState([]);
|
|
5861
|
+
React5.useEffect(() => {
|
|
7202
5862
|
const handles = [
|
|
7203
5863
|
"Landlord",
|
|
7204
5864
|
"PropertyKing",
|
|
@@ -7258,7 +5918,7 @@ var MiniLiveFeed = () => {
|
|
|
7258
5918
|
const initial = Array.from({ length: 5 }, generatePurchase);
|
|
7259
5919
|
setPurchases(initial);
|
|
7260
5920
|
const interval = setInterval(() => {
|
|
7261
|
-
setPurchases((
|
|
5921
|
+
setPurchases((prev) => [generatePurchase(), ...prev.slice(0, 5)]);
|
|
7262
5922
|
}, 2e3 + Math.random() * 2e3);
|
|
7263
5923
|
return () => clearInterval(interval);
|
|
7264
5924
|
}, []);
|
|
@@ -7374,7 +6034,7 @@ var MiniLiveFeed = () => {
|
|
|
7374
6034
|
);
|
|
7375
6035
|
};
|
|
7376
6036
|
LoginPopup.displayName = "LoginPopup";
|
|
7377
|
-
var PropertyCompareBar =
|
|
6037
|
+
var PropertyCompareBar = React5__namespace.forwardRef(
|
|
7378
6038
|
({
|
|
7379
6039
|
className,
|
|
7380
6040
|
addresses,
|
|
@@ -7385,7 +6045,7 @@ var PropertyCompareBar = o__namespace.forwardRef(
|
|
|
7385
6045
|
price,
|
|
7386
6046
|
...props
|
|
7387
6047
|
}, ref) => {
|
|
7388
|
-
const normalizedAddresses =
|
|
6048
|
+
const normalizedAddresses = React5__namespace.useMemo(() => {
|
|
7389
6049
|
return addresses.map(
|
|
7390
6050
|
(option) => typeof option === "string" ? { id: option, label: option } : option
|
|
7391
6051
|
);
|
|
@@ -7393,11 +6053,11 @@ var PropertyCompareBar = o__namespace.forwardRef(
|
|
|
7393
6053
|
const hasAddresses = normalizedAddresses.length > 0;
|
|
7394
6054
|
const firstAddressId = normalizedAddresses[0]?.id;
|
|
7395
6055
|
const isControlled = selectedAddressId !== void 0;
|
|
7396
|
-
const [internalSelectedId, setInternalSelectedId] =
|
|
6056
|
+
const [internalSelectedId, setInternalSelectedId] = React5__namespace.useState(
|
|
7397
6057
|
() => isControlled ? void 0 : firstAddressId
|
|
7398
6058
|
);
|
|
7399
6059
|
const resolvedSelectedId = isControlled ? selectedAddressId : internalSelectedId;
|
|
7400
|
-
|
|
6060
|
+
React5__namespace.useEffect(() => {
|
|
7401
6061
|
if (!isControlled) {
|
|
7402
6062
|
setInternalSelectedId((current) => {
|
|
7403
6063
|
if (current != null && normalizedAddresses.some((option) => option.id === current)) {
|
|
@@ -7408,9 +6068,9 @@ var PropertyCompareBar = o__namespace.forwardRef(
|
|
|
7408
6068
|
}
|
|
7409
6069
|
}, [firstAddressId, isControlled, normalizedAddresses]);
|
|
7410
6070
|
const selectedOption = normalizedAddresses.find((option) => option.id === resolvedSelectedId) ?? normalizedAddresses[0];
|
|
7411
|
-
const [isDropdownOpen, setIsDropdownOpen] =
|
|
7412
|
-
const dropdownRef =
|
|
7413
|
-
|
|
6071
|
+
const [isDropdownOpen, setIsDropdownOpen] = React5__namespace.useState(false);
|
|
6072
|
+
const dropdownRef = React5__namespace.useRef(null);
|
|
6073
|
+
React5__namespace.useEffect(() => {
|
|
7414
6074
|
if (!isDropdownOpen) return;
|
|
7415
6075
|
const handleClick = (event) => {
|
|
7416
6076
|
if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {
|
|
@@ -7480,7 +6140,7 @@ var PropertyCompareBar = o__namespace.forwardRef(
|
|
|
7480
6140
|
formattedPropertyChange ? /* @__PURE__ */ jsxRuntime.jsx(PropertyValueChange, { $isPositive: propertyValue?.change != null ? propertyValue.change >= 0 : void 0, children: formattedPropertyChange }) : null
|
|
7481
6141
|
] }) : null;
|
|
7482
6142
|
return /* @__PURE__ */ jsxRuntime.jsxs(PropertySelectorContainer, { ref, className, $variant: propertyValueVariant, ...props, children: [
|
|
7483
|
-
/* @__PURE__ */ jsxRuntime.jsxs(PropertySelector, { ref: dropdownRef, onClick: () => hasAddresses && setIsDropdownOpen((
|
|
6143
|
+
/* @__PURE__ */ jsxRuntime.jsxs(PropertySelector, { ref: dropdownRef, onClick: () => hasAddresses && setIsDropdownOpen((prev) => !prev), children: [
|
|
7484
6144
|
/* @__PURE__ */ jsxRuntime.jsxs(PropertyAddress, { children: [
|
|
7485
6145
|
selectedOption ? selectedOption.label : hasAddresses ? "Select address" : "No addresses available",
|
|
7486
6146
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -7517,7 +6177,7 @@ var PropertyCompareBar = o__namespace.forwardRef(
|
|
|
7517
6177
|
}
|
|
7518
6178
|
);
|
|
7519
6179
|
PropertyCompareBar.displayName = "PropertyCompareBar";
|
|
7520
|
-
var PropertySelectorContainer =
|
|
6180
|
+
var PropertySelectorContainer = styled6__default.default.div`
|
|
7521
6181
|
display: flex;
|
|
7522
6182
|
align-items: center;
|
|
7523
6183
|
justify-content: space-between;
|
|
@@ -7544,7 +6204,7 @@ var PropertySelectorContainer = at.div`
|
|
|
7544
6204
|
@media (max-width: 600px) {
|
|
7545
6205
|
width: 100%;
|
|
7546
6206
|
|
|
7547
|
-
${({ $variant }) => $variant === "pill" ?
|
|
6207
|
+
${({ $variant }) => $variant === "pill" ? styled6.css`
|
|
7548
6208
|
display: grid;
|
|
7549
6209
|
grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1fr);
|
|
7550
6210
|
gap: 0.35rem;
|
|
@@ -7563,7 +6223,7 @@ var PropertySelectorContainer = at.div`
|
|
|
7563
6223
|
justify-self: end;
|
|
7564
6224
|
text-align: right;
|
|
7565
6225
|
}
|
|
7566
|
-
` :
|
|
6226
|
+
` : styled6.css`
|
|
7567
6227
|
flex-direction: row;
|
|
7568
6228
|
align-items: center;
|
|
7569
6229
|
justify-content: space-between;
|
|
@@ -7571,7 +6231,7 @@ var PropertySelectorContainer = at.div`
|
|
|
7571
6231
|
`};
|
|
7572
6232
|
}
|
|
7573
6233
|
`;
|
|
7574
|
-
var PropertySelector =
|
|
6234
|
+
var PropertySelector = styled6__default.default.div`
|
|
7575
6235
|
position: relative;
|
|
7576
6236
|
display: flex;
|
|
7577
6237
|
align-items: center;
|
|
@@ -7585,7 +6245,7 @@ var PropertySelector = at.div`
|
|
|
7585
6245
|
}
|
|
7586
6246
|
}
|
|
7587
6247
|
`;
|
|
7588
|
-
var PropertyAddress =
|
|
6248
|
+
var PropertyAddress = styled6__default.default.div`
|
|
7589
6249
|
font-size: 1.125rem;
|
|
7590
6250
|
font-weight: 600;
|
|
7591
6251
|
display: flex;
|
|
@@ -7606,7 +6266,7 @@ var PropertyAddress = at.div`
|
|
|
7606
6266
|
white-space: normal;
|
|
7607
6267
|
}
|
|
7608
6268
|
`;
|
|
7609
|
-
var PropertySelectorDropdown =
|
|
6269
|
+
var PropertySelectorDropdown = styled6__default.default.div`
|
|
7610
6270
|
position: absolute;
|
|
7611
6271
|
top: 100%;
|
|
7612
6272
|
left: 0;
|
|
@@ -7619,7 +6279,7 @@ var PropertySelectorDropdown = at.div`
|
|
|
7619
6279
|
overflow: hidden;
|
|
7620
6280
|
display: ${(props) => props.$isOpen ? "block" : "none"};
|
|
7621
6281
|
`;
|
|
7622
|
-
var PropertySelectorOption =
|
|
6282
|
+
var PropertySelectorOption = styled6__default.default.div`
|
|
7623
6283
|
padding: 0.75rem 1rem;
|
|
7624
6284
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
7625
6285
|
cursor: pointer;
|
|
@@ -7633,17 +6293,17 @@ var PropertySelectorOption = at.div`
|
|
|
7633
6293
|
border-bottom: none;
|
|
7634
6294
|
}
|
|
7635
6295
|
`;
|
|
7636
|
-
var PropertySelectorName =
|
|
6296
|
+
var PropertySelectorName = styled6__default.default.div`
|
|
7637
6297
|
font-weight: 600;
|
|
7638
6298
|
`;
|
|
7639
|
-
var PropertyValueBlock =
|
|
6299
|
+
var PropertyValueBlock = styled6__default.default.div`
|
|
7640
6300
|
display: flex;
|
|
7641
6301
|
align-items: center;
|
|
7642
6302
|
gap: 0.5rem;
|
|
7643
6303
|
margin-left: 1rem;
|
|
7644
6304
|
white-space: nowrap;
|
|
7645
6305
|
|
|
7646
|
-
${({ $variant }) => $variant === "card" &&
|
|
6306
|
+
${({ $variant }) => $variant === "card" && styled6.css`
|
|
7647
6307
|
margin-left: auto;
|
|
7648
6308
|
flex-direction: row;
|
|
7649
6309
|
align-items: center;
|
|
@@ -7670,7 +6330,7 @@ var PropertyValueBlock = at.div`
|
|
|
7670
6330
|
}
|
|
7671
6331
|
`}
|
|
7672
6332
|
|
|
7673
|
-
${({ $variant }) => $variant === "pill" &&
|
|
6333
|
+
${({ $variant }) => $variant === "pill" && styled6.css`
|
|
7674
6334
|
margin-left: auto;
|
|
7675
6335
|
margin-right: 1rem;
|
|
7676
6336
|
background: #191919;
|
|
@@ -7704,7 +6364,7 @@ var PropertyValueBlock = at.div`
|
|
|
7704
6364
|
white-space: normal;
|
|
7705
6365
|
}
|
|
7706
6366
|
`;
|
|
7707
|
-
var PropertyValueLabel =
|
|
6367
|
+
var PropertyValueLabel = styled6__default.default.span`
|
|
7708
6368
|
font-size: 0.7rem;
|
|
7709
6369
|
color: var(--color-text-secondary, rgba(255, 255, 255, 0.6));
|
|
7710
6370
|
text-transform: uppercase;
|
|
@@ -7715,7 +6375,7 @@ var PropertyValueLabel = at.span`
|
|
|
7715
6375
|
letter-spacing: 0.4px;
|
|
7716
6376
|
}
|
|
7717
6377
|
`;
|
|
7718
|
-
var PropertyValueAmount =
|
|
6378
|
+
var PropertyValueAmount = styled6__default.default.span`
|
|
7719
6379
|
font-size: 1.1rem;
|
|
7720
6380
|
font-weight: 600;
|
|
7721
6381
|
color: #fff;
|
|
@@ -7724,7 +6384,7 @@ var PropertyValueAmount = at.span`
|
|
|
7724
6384
|
font-size: 0.95rem;
|
|
7725
6385
|
}
|
|
7726
6386
|
`;
|
|
7727
|
-
var PropertyValueChange =
|
|
6387
|
+
var PropertyValueChange = styled6__default.default.span`
|
|
7728
6388
|
font-size: 0.75rem;
|
|
7729
6389
|
font-weight: 500;
|
|
7730
6390
|
color: ${(props) => props.$isPositive == null ? "var(--color-text-secondary, rgba(255, 255, 255, 0.6))" : props.$isPositive ? "var(--color-positive, #0ecb81)" : "var(--color-negative, #f6465d)"};
|
|
@@ -7733,10 +6393,10 @@ var PropertyValueChange = at.span`
|
|
|
7733
6393
|
font-size: 0.65rem;
|
|
7734
6394
|
}
|
|
7735
6395
|
`;
|
|
7736
|
-
var PriceBlock2 =
|
|
6396
|
+
var PriceBlock2 = styled6__default.default.div`
|
|
7737
6397
|
display: none;
|
|
7738
6398
|
|
|
7739
|
-
${({ $variant }) => $variant === "pill" &&
|
|
6399
|
+
${({ $variant }) => $variant === "pill" && styled6.css`
|
|
7740
6400
|
@media (max-width: 600px) {
|
|
7741
6401
|
display: flex;
|
|
7742
6402
|
flex: none;
|
|
@@ -7748,13 +6408,13 @@ var PriceBlock2 = at.div`
|
|
|
7748
6408
|
}
|
|
7749
6409
|
`}
|
|
7750
6410
|
`;
|
|
7751
|
-
var PriceAmount =
|
|
6411
|
+
var PriceAmount = styled6__default.default.span`
|
|
7752
6412
|
font-size: 1.6rem;
|
|
7753
6413
|
font-weight: 600;
|
|
7754
6414
|
color: #fff;
|
|
7755
6415
|
letter-spacing: 0.2px;
|
|
7756
6416
|
`;
|
|
7757
|
-
var PriceChange =
|
|
6417
|
+
var PriceChange = styled6__default.default.span`
|
|
7758
6418
|
font-size: 0.85rem;
|
|
7759
6419
|
font-weight: 500;
|
|
7760
6420
|
display: inline-flex;
|