randmarcomps 1.156.0 → 1.158.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/randmarcomps.js +1098 -983
- package/dist/randmarcomps.umd.cjs +53 -33
- package/package.json +3 -3
package/dist/randmarcomps.js
CHANGED
|
@@ -125,14 +125,14 @@ var jt = React.createContext({}), Lt = React.forwardRef((e, t) => {
|
|
|
125
125
|
}, [j, Q]), React.useEffect(() => {
|
|
126
126
|
q !== void 0 && j !== q && q.length < u && j.length === u && (g == null || g(j));
|
|
127
127
|
}, [u, g, q, j]);
|
|
128
|
-
let
|
|
128
|
+
let de = Tt({ containerRef: G, inputRef: U, pushPasswordManagerStrategy: b, isFocused: Q }), ve = React.useCallback((se) => {
|
|
129
129
|
let _e = se.currentTarget.value.slice(0, u);
|
|
130
130
|
if (_e.length > 0 && H && !H.test(_e)) {
|
|
131
131
|
se.preventDefault();
|
|
132
132
|
return;
|
|
133
133
|
}
|
|
134
134
|
typeof q == "string" && _e.length < q.length && document.dispatchEvent(new Event("selectionchange")), F(_e);
|
|
135
|
-
}, [u, F, q, H]),
|
|
135
|
+
}, [u, F, q, H]), he = React.useCallback(() => {
|
|
136
136
|
var se;
|
|
137
137
|
if (U.current) {
|
|
138
138
|
let _e = Math.min(U.current.value.length, u - 1), xe = U.current.value.length;
|
|
@@ -150,7 +150,7 @@ var jt = React.createContext({}), Lt = React.forwardRef((e, t) => {
|
|
|
150
150
|
Ee.value = Me, F(Me);
|
|
151
151
|
let Fe = Math.min(Me.length, u - 1), He = Me.length;
|
|
152
152
|
Ee.setSelectionRange(Fe, He), ce(Fe), pe(He);
|
|
153
|
-
}, [u, F, H, j]), fe = React.useMemo(() => ({ position: "relative", cursor: I.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [I.disabled]), le = React.useMemo(() => ({ position: "absolute", inset: 0, width:
|
|
153
|
+
}, [u, F, H, j]), fe = React.useMemo(() => ({ position: "relative", cursor: I.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [I.disabled]), le = React.useMemo(() => ({ position: "absolute", inset: 0, width: de.willPushPWMBadge ? `calc(100% + ${de.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: de.willPushPWMBadge ? `inset(0 ${de.PWM_BADGE_SPACE_WIDTH} 0 0)` : void 0, height: "100%", display: "flex", textAlign: d, opacity: "1", color: "transparent", pointerEvents: "all", background: "transparent", caretColor: "transparent", border: "0 solid transparent", outline: "0 solid transparent", boxShadow: "none", lineHeight: "1", letterSpacing: "-.5em", fontSize: "var(--root-height)", fontFamily: "monospace", fontVariantNumeric: "tabular-nums" }), [de.PWM_BADGE_SPACE_WIDTH, de.willPushPWMBadge, d]), oe = React.useMemo(() => React.createElement("input", bt(St({ autoComplete: I.autoComplete || "one-time-code" }, I), { "data-input-otp": !0, "data-input-otp-placeholder-shown": j.length === 0 || void 0, "data-input-otp-mss": ie, "data-input-otp-mse": ue, inputMode: m, pattern: H == null ? void 0 : H.source, "aria-placeholder": p, style: le, maxLength: u, value: j, ref: U, onPaste: (se) => {
|
|
154
154
|
var _e;
|
|
155
155
|
ye(se), (_e = I.onPaste) == null || _e.call(I, se);
|
|
156
156
|
}, onChange: ve, onMouseOver: (se) => {
|
|
@@ -161,11 +161,11 @@ var jt = React.createContext({}), Lt = React.forwardRef((e, t) => {
|
|
|
161
161
|
W(!1), (_e = I.onMouseLeave) == null || _e.call(I, se);
|
|
162
162
|
}, onFocus: (se) => {
|
|
163
163
|
var _e;
|
|
164
|
-
|
|
164
|
+
he(), (_e = I.onFocus) == null || _e.call(I, se);
|
|
165
165
|
}, onBlur: (se) => {
|
|
166
166
|
var _e;
|
|
167
167
|
ee(!1), (_e = I.onBlur) == null || _e.call(I, se);
|
|
168
|
-
} })), [ve,
|
|
168
|
+
} })), [ve, he, ye, m, le, u, ue, ie, I, H == null ? void 0 : H.source, j]), te = React.useMemo(() => ({ slots: Array.from({ length: u }).map((se, _e) => {
|
|
169
169
|
var xe;
|
|
170
170
|
let Ee = Q && ie !== null && ue !== null && (ie === ue && _e === ie || _e >= ie && _e < ue), Ae = j[_e] !== void 0 ? j[_e] : null, we = j[0] !== void 0 ? null : (xe = p == null ? void 0 : p[_e]) != null ? xe : null;
|
|
171
171
|
return { char: Ae, placeholderChar: we, isActive: Ee, hasFakeCaret: Ee && Ae === null };
|
|
@@ -281,79 +281,79 @@ const createLucideIcon = (e, t) => {
|
|
|
281
281
|
* This source code is licensed under the ISC license.
|
|
282
282
|
* See the LICENSE file in the root directory of this source tree.
|
|
283
283
|
*/
|
|
284
|
-
const __iconNode$
|
|
284
|
+
const __iconNode$H = [
|
|
285
285
|
["path", { d: "M12 8V4H8", key: "hb8ula" }],
|
|
286
286
|
["rect", { width: "16", height: "12", x: "4", y: "8", rx: "2", key: "enze0r" }],
|
|
287
287
|
["path", { d: "M2 14h2", key: "vft8re" }],
|
|
288
288
|
["path", { d: "M20 14h2", key: "4cs60a" }],
|
|
289
289
|
["path", { d: "M15 13v2", key: "1xurst" }],
|
|
290
290
|
["path", { d: "M9 13v2", key: "rq6x2g" }]
|
|
291
|
-
], Bot = createLucideIcon("Bot", __iconNode$
|
|
291
|
+
], Bot = createLucideIcon("Bot", __iconNode$H);
|
|
292
292
|
/**
|
|
293
293
|
* @license lucide-react v0.479.0 - ISC
|
|
294
294
|
*
|
|
295
295
|
* This source code is licensed under the ISC license.
|
|
296
296
|
* See the LICENSE file in the root directory of this source tree.
|
|
297
297
|
*/
|
|
298
|
-
const __iconNode$
|
|
298
|
+
const __iconNode$G = [
|
|
299
299
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
300
300
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
301
301
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
302
302
|
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
303
|
-
], Calendar = createLucideIcon("Calendar", __iconNode$
|
|
303
|
+
], Calendar = createLucideIcon("Calendar", __iconNode$G);
|
|
304
304
|
/**
|
|
305
305
|
* @license lucide-react v0.479.0 - ISC
|
|
306
306
|
*
|
|
307
307
|
* This source code is licensed under the ISC license.
|
|
308
308
|
* See the LICENSE file in the root directory of this source tree.
|
|
309
309
|
*/
|
|
310
|
-
const __iconNode$
|
|
310
|
+
const __iconNode$F = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Check = createLucideIcon("Check", __iconNode$F);
|
|
311
311
|
/**
|
|
312
312
|
* @license lucide-react v0.479.0 - ISC
|
|
313
313
|
*
|
|
314
314
|
* This source code is licensed under the ISC license.
|
|
315
315
|
* See the LICENSE file in the root directory of this source tree.
|
|
316
316
|
*/
|
|
317
|
-
const __iconNode$
|
|
317
|
+
const __iconNode$E = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], ChevronDown = createLucideIcon("ChevronDown", __iconNode$E);
|
|
318
318
|
/**
|
|
319
319
|
* @license lucide-react v0.479.0 - ISC
|
|
320
320
|
*
|
|
321
321
|
* This source code is licensed under the ISC license.
|
|
322
322
|
* See the LICENSE file in the root directory of this source tree.
|
|
323
323
|
*/
|
|
324
|
-
const __iconNode$
|
|
324
|
+
const __iconNode$D = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], ChevronLeft = createLucideIcon("ChevronLeft", __iconNode$D);
|
|
325
325
|
/**
|
|
326
326
|
* @license lucide-react v0.479.0 - ISC
|
|
327
327
|
*
|
|
328
328
|
* This source code is licensed under the ISC license.
|
|
329
329
|
* See the LICENSE file in the root directory of this source tree.
|
|
330
330
|
*/
|
|
331
|
-
const __iconNode$
|
|
331
|
+
const __iconNode$C = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], ChevronRight = createLucideIcon("ChevronRight", __iconNode$C);
|
|
332
332
|
/**
|
|
333
333
|
* @license lucide-react v0.479.0 - ISC
|
|
334
334
|
*
|
|
335
335
|
* This source code is licensed under the ISC license.
|
|
336
336
|
* See the LICENSE file in the root directory of this source tree.
|
|
337
337
|
*/
|
|
338
|
-
const __iconNode$
|
|
338
|
+
const __iconNode$B = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], ChevronUp = createLucideIcon("ChevronUp", __iconNode$B);
|
|
339
339
|
/**
|
|
340
340
|
* @license lucide-react v0.479.0 - ISC
|
|
341
341
|
*
|
|
342
342
|
* This source code is licensed under the ISC license.
|
|
343
343
|
* See the LICENSE file in the root directory of this source tree.
|
|
344
344
|
*/
|
|
345
|
-
const __iconNode$
|
|
345
|
+
const __iconNode$A = [
|
|
346
346
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
347
347
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
348
348
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
349
|
-
], CircleAlert = createLucideIcon("CircleAlert", __iconNode$
|
|
349
|
+
], CircleAlert = createLucideIcon("CircleAlert", __iconNode$A);
|
|
350
350
|
/**
|
|
351
351
|
* @license lucide-react v0.479.0 - ISC
|
|
352
352
|
*
|
|
353
353
|
* This source code is licensed under the ISC license.
|
|
354
354
|
* See the LICENSE file in the root directory of this source tree.
|
|
355
355
|
*/
|
|
356
|
-
const __iconNode$
|
|
356
|
+
const __iconNode$z = [
|
|
357
357
|
["path", { d: "M10.1 2.182a10 10 0 0 1 3.8 0", key: "5ilxe3" }],
|
|
358
358
|
["path", { d: "M13.9 21.818a10 10 0 0 1-3.8 0", key: "11zvb9" }],
|
|
359
359
|
["path", { d: "M17.609 3.721a10 10 0 0 1 2.69 2.7", key: "1iw5b2" }],
|
|
@@ -362,73 +362,73 @@ const __iconNode$y = [
|
|
|
362
362
|
["path", { d: "M21.818 10.1a10 10 0 0 1 0 3.8", key: "qkgqxc" }],
|
|
363
363
|
["path", { d: "M3.721 6.391a10 10 0 0 1 2.7-2.69", key: "1mcia2" }],
|
|
364
364
|
["path", { d: "M6.391 20.279a10 10 0 0 1-2.69-2.7", key: "1fvljs" }]
|
|
365
|
-
], CircleDashed = createLucideIcon("CircleDashed", __iconNode$
|
|
365
|
+
], CircleDashed = createLucideIcon("CircleDashed", __iconNode$z);
|
|
366
366
|
/**
|
|
367
367
|
* @license lucide-react v0.479.0 - ISC
|
|
368
368
|
*
|
|
369
369
|
* This source code is licensed under the ISC license.
|
|
370
370
|
* See the LICENSE file in the root directory of this source tree.
|
|
371
371
|
*/
|
|
372
|
-
const __iconNode$
|
|
372
|
+
const __iconNode$y = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], Circle = createLucideIcon("Circle", __iconNode$y);
|
|
373
373
|
/**
|
|
374
374
|
* @license lucide-react v0.479.0 - ISC
|
|
375
375
|
*
|
|
376
376
|
* This source code is licensed under the ISC license.
|
|
377
377
|
* See the LICENSE file in the root directory of this source tree.
|
|
378
378
|
*/
|
|
379
|
-
const __iconNode$
|
|
379
|
+
const __iconNode$x = [
|
|
380
380
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
381
381
|
["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
|
|
382
|
-
], Copy = createLucideIcon("Copy", __iconNode$
|
|
382
|
+
], Copy = createLucideIcon("Copy", __iconNode$x);
|
|
383
383
|
/**
|
|
384
384
|
* @license lucide-react v0.479.0 - ISC
|
|
385
385
|
*
|
|
386
386
|
* This source code is licensed under the ISC license.
|
|
387
387
|
* See the LICENSE file in the root directory of this source tree.
|
|
388
388
|
*/
|
|
389
|
-
const __iconNode$
|
|
389
|
+
const __iconNode$w = [
|
|
390
390
|
["rect", { width: "20", height: "14", x: "2", y: "5", rx: "2", key: "ynyp8z" }],
|
|
391
391
|
["line", { x1: "2", x2: "22", y1: "10", y2: "10", key: "1b3vmo" }]
|
|
392
|
-
], CreditCard = createLucideIcon("CreditCard", __iconNode$
|
|
392
|
+
], CreditCard = createLucideIcon("CreditCard", __iconNode$w);
|
|
393
393
|
/**
|
|
394
394
|
* @license lucide-react v0.479.0 - ISC
|
|
395
395
|
*
|
|
396
396
|
* This source code is licensed under the ISC license.
|
|
397
397
|
* See the LICENSE file in the root directory of this source tree.
|
|
398
398
|
*/
|
|
399
|
-
const __iconNode$
|
|
399
|
+
const __iconNode$v = [
|
|
400
400
|
["line", { x1: "12", x2: "12", y1: "2", y2: "22", key: "7eqyqh" }],
|
|
401
401
|
["path", { d: "M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6", key: "1b0p4s" }]
|
|
402
|
-
], DollarSign = createLucideIcon("DollarSign", __iconNode$
|
|
402
|
+
], DollarSign = createLucideIcon("DollarSign", __iconNode$v);
|
|
403
403
|
/**
|
|
404
404
|
* @license lucide-react v0.479.0 - ISC
|
|
405
405
|
*
|
|
406
406
|
* This source code is licensed under the ISC license.
|
|
407
407
|
* See the LICENSE file in the root directory of this source tree.
|
|
408
408
|
*/
|
|
409
|
-
const __iconNode$
|
|
409
|
+
const __iconNode$u = [
|
|
410
410
|
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
|
|
411
411
|
["polyline", { points: "7 10 12 15 17 10", key: "2ggqvy" }],
|
|
412
412
|
["line", { x1: "12", x2: "12", y1: "15", y2: "3", key: "1vk2je" }]
|
|
413
|
-
], Download = createLucideIcon("Download", __iconNode$
|
|
413
|
+
], Download = createLucideIcon("Download", __iconNode$u);
|
|
414
414
|
/**
|
|
415
415
|
* @license lucide-react v0.479.0 - ISC
|
|
416
416
|
*
|
|
417
417
|
* This source code is licensed under the ISC license.
|
|
418
418
|
* See the LICENSE file in the root directory of this source tree.
|
|
419
419
|
*/
|
|
420
|
-
const __iconNode$
|
|
420
|
+
const __iconNode$t = [
|
|
421
421
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
422
422
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
423
423
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
424
|
-
], ExternalLink = createLucideIcon("ExternalLink", __iconNode$
|
|
424
|
+
], ExternalLink = createLucideIcon("ExternalLink", __iconNode$t);
|
|
425
425
|
/**
|
|
426
426
|
* @license lucide-react v0.479.0 - ISC
|
|
427
427
|
*
|
|
428
428
|
* This source code is licensed under the ISC license.
|
|
429
429
|
* See the LICENSE file in the root directory of this source tree.
|
|
430
430
|
*/
|
|
431
|
-
const __iconNode$
|
|
431
|
+
const __iconNode$s = [
|
|
432
432
|
[
|
|
433
433
|
"path",
|
|
434
434
|
{
|
|
@@ -437,25 +437,25 @@ const __iconNode$r = [
|
|
|
437
437
|
}
|
|
438
438
|
],
|
|
439
439
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
440
|
-
], Eye = createLucideIcon("Eye", __iconNode$
|
|
440
|
+
], Eye = createLucideIcon("Eye", __iconNode$s);
|
|
441
441
|
/**
|
|
442
442
|
* @license lucide-react v0.479.0 - ISC
|
|
443
443
|
*
|
|
444
444
|
* This source code is licensed under the ISC license.
|
|
445
445
|
* See the LICENSE file in the root directory of this source tree.
|
|
446
446
|
*/
|
|
447
|
-
const __iconNode$
|
|
447
|
+
const __iconNode$r = [
|
|
448
448
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
449
449
|
["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }],
|
|
450
450
|
["path", { d: "M2 12h20", key: "9i4pu4" }]
|
|
451
|
-
], Globe = createLucideIcon("Globe", __iconNode$
|
|
451
|
+
], Globe = createLucideIcon("Globe", __iconNode$r);
|
|
452
452
|
/**
|
|
453
453
|
* @license lucide-react v0.479.0 - ISC
|
|
454
454
|
*
|
|
455
455
|
* This source code is licensed under the ISC license.
|
|
456
456
|
* See the LICENSE file in the root directory of this source tree.
|
|
457
457
|
*/
|
|
458
|
-
const __iconNode$
|
|
458
|
+
const __iconNode$q = [
|
|
459
459
|
["path", { d: "m11 17 2 2a1 1 0 1 0 3-3", key: "efffak" }],
|
|
460
460
|
[
|
|
461
461
|
"path",
|
|
@@ -467,7 +467,19 @@ const __iconNode$p = [
|
|
|
467
467
|
["path", { d: "m21 3 1 11h-2", key: "1tisrp" }],
|
|
468
468
|
["path", { d: "M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3", key: "1uvwmv" }],
|
|
469
469
|
["path", { d: "M3 4h8", key: "1ep09j" }]
|
|
470
|
-
], Handshake = createLucideIcon("Handshake", __iconNode$
|
|
470
|
+
], Handshake = createLucideIcon("Handshake", __iconNode$q);
|
|
471
|
+
/**
|
|
472
|
+
* @license lucide-react v0.479.0 - ISC
|
|
473
|
+
*
|
|
474
|
+
* This source code is licensed under the ISC license.
|
|
475
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
476
|
+
*/
|
|
477
|
+
const __iconNode$p = [
|
|
478
|
+
["path", { d: "M10 10V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v5", key: "1p9q5i" }],
|
|
479
|
+
["path", { d: "M14 6a6 6 0 0 1 6 6v3", key: "1hnv84" }],
|
|
480
|
+
["path", { d: "M4 15v-3a6 6 0 0 1 6-6", key: "9ciidu" }],
|
|
481
|
+
["rect", { x: "2", y: "15", width: "20", height: "4", rx: "1", key: "g3x8cw" }]
|
|
482
|
+
], HardHat = createLucideIcon("HardHat", __iconNode$p);
|
|
471
483
|
/**
|
|
472
484
|
* @license lucide-react v0.479.0 - ISC
|
|
473
485
|
*
|
|
@@ -1100,7 +1112,7 @@ const fromTheme = (e) => {
|
|
|
1100
1112
|
m,
|
|
1101
1113
|
isArbitraryVariable,
|
|
1102
1114
|
isArbitraryValue
|
|
1103
|
-
], pe = () => ["", isNumber$2, isArbitraryVariableLength, isArbitraryLength],
|
|
1115
|
+
], pe = () => ["", isNumber$2, isArbitraryVariableLength, isArbitraryLength], de = () => ["solid", "dashed", "dotted", "double"], ve = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], he = () => [isNumber$2, isPercent$1, isArbitraryVariablePosition, isArbitraryPosition], ye = () => [
|
|
1104
1116
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1105
1117
|
"",
|
|
1106
1118
|
"none",
|
|
@@ -1941,7 +1953,7 @@ const fromTheme = (e) => {
|
|
|
1941
1953
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1942
1954
|
*/
|
|
1943
1955
|
"text-decoration-style": [{
|
|
1944
|
-
decoration: [...
|
|
1956
|
+
decoration: [...de(), "wavy"]
|
|
1945
1957
|
}],
|
|
1946
1958
|
/**
|
|
1947
1959
|
* Text Decoration Thickness
|
|
@@ -2337,14 +2349,14 @@ const fromTheme = (e) => {
|
|
|
2337
2349
|
* @see https://tailwindcss.com/docs/border-style
|
|
2338
2350
|
*/
|
|
2339
2351
|
"border-style": [{
|
|
2340
|
-
border: [...
|
|
2352
|
+
border: [...de(), "hidden", "none"]
|
|
2341
2353
|
}],
|
|
2342
2354
|
/**
|
|
2343
2355
|
* Divide Style
|
|
2344
2356
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
2345
2357
|
*/
|
|
2346
2358
|
"divide-style": [{
|
|
2347
|
-
divide: [...
|
|
2359
|
+
divide: [...de(), "hidden", "none"]
|
|
2348
2360
|
}],
|
|
2349
2361
|
/**
|
|
2350
2362
|
* Border Color
|
|
@@ -2421,7 +2433,7 @@ const fromTheme = (e) => {
|
|
|
2421
2433
|
* @see https://tailwindcss.com/docs/outline-style
|
|
2422
2434
|
*/
|
|
2423
2435
|
"outline-style": [{
|
|
2424
|
-
outline: [...
|
|
2436
|
+
outline: [...de(), "none", "hidden"]
|
|
2425
2437
|
}],
|
|
2426
2438
|
/**
|
|
2427
2439
|
* Outline Offset
|
|
@@ -2592,10 +2604,10 @@ const fromTheme = (e) => {
|
|
|
2592
2604
|
"mask-linear": [isNumber$2]
|
|
2593
2605
|
}],
|
|
2594
2606
|
"mask-image-linear-from-pos": [{
|
|
2595
|
-
"mask-linear-from":
|
|
2607
|
+
"mask-linear-from": he()
|
|
2596
2608
|
}],
|
|
2597
2609
|
"mask-image-linear-to-pos": [{
|
|
2598
|
-
"mask-linear-to":
|
|
2610
|
+
"mask-linear-to": he()
|
|
2599
2611
|
}],
|
|
2600
2612
|
"mask-image-linear-from-color": [{
|
|
2601
2613
|
"mask-linear-from": W()
|
|
@@ -2604,10 +2616,10 @@ const fromTheme = (e) => {
|
|
|
2604
2616
|
"mask-linear-to": W()
|
|
2605
2617
|
}],
|
|
2606
2618
|
"mask-image-t-from-pos": [{
|
|
2607
|
-
"mask-t-from":
|
|
2619
|
+
"mask-t-from": he()
|
|
2608
2620
|
}],
|
|
2609
2621
|
"mask-image-t-to-pos": [{
|
|
2610
|
-
"mask-t-to":
|
|
2622
|
+
"mask-t-to": he()
|
|
2611
2623
|
}],
|
|
2612
2624
|
"mask-image-t-from-color": [{
|
|
2613
2625
|
"mask-t-from": W()
|
|
@@ -2616,10 +2628,10 @@ const fromTheme = (e) => {
|
|
|
2616
2628
|
"mask-t-to": W()
|
|
2617
2629
|
}],
|
|
2618
2630
|
"mask-image-r-from-pos": [{
|
|
2619
|
-
"mask-r-from":
|
|
2631
|
+
"mask-r-from": he()
|
|
2620
2632
|
}],
|
|
2621
2633
|
"mask-image-r-to-pos": [{
|
|
2622
|
-
"mask-r-to":
|
|
2634
|
+
"mask-r-to": he()
|
|
2623
2635
|
}],
|
|
2624
2636
|
"mask-image-r-from-color": [{
|
|
2625
2637
|
"mask-r-from": W()
|
|
@@ -2628,10 +2640,10 @@ const fromTheme = (e) => {
|
|
|
2628
2640
|
"mask-r-to": W()
|
|
2629
2641
|
}],
|
|
2630
2642
|
"mask-image-b-from-pos": [{
|
|
2631
|
-
"mask-b-from":
|
|
2643
|
+
"mask-b-from": he()
|
|
2632
2644
|
}],
|
|
2633
2645
|
"mask-image-b-to-pos": [{
|
|
2634
|
-
"mask-b-to":
|
|
2646
|
+
"mask-b-to": he()
|
|
2635
2647
|
}],
|
|
2636
2648
|
"mask-image-b-from-color": [{
|
|
2637
2649
|
"mask-b-from": W()
|
|
@@ -2640,10 +2652,10 @@ const fromTheme = (e) => {
|
|
|
2640
2652
|
"mask-b-to": W()
|
|
2641
2653
|
}],
|
|
2642
2654
|
"mask-image-l-from-pos": [{
|
|
2643
|
-
"mask-l-from":
|
|
2655
|
+
"mask-l-from": he()
|
|
2644
2656
|
}],
|
|
2645
2657
|
"mask-image-l-to-pos": [{
|
|
2646
|
-
"mask-l-to":
|
|
2658
|
+
"mask-l-to": he()
|
|
2647
2659
|
}],
|
|
2648
2660
|
"mask-image-l-from-color": [{
|
|
2649
2661
|
"mask-l-from": W()
|
|
@@ -2652,10 +2664,10 @@ const fromTheme = (e) => {
|
|
|
2652
2664
|
"mask-l-to": W()
|
|
2653
2665
|
}],
|
|
2654
2666
|
"mask-image-x-from-pos": [{
|
|
2655
|
-
"mask-x-from":
|
|
2667
|
+
"mask-x-from": he()
|
|
2656
2668
|
}],
|
|
2657
2669
|
"mask-image-x-to-pos": [{
|
|
2658
|
-
"mask-x-to":
|
|
2670
|
+
"mask-x-to": he()
|
|
2659
2671
|
}],
|
|
2660
2672
|
"mask-image-x-from-color": [{
|
|
2661
2673
|
"mask-x-from": W()
|
|
@@ -2664,10 +2676,10 @@ const fromTheme = (e) => {
|
|
|
2664
2676
|
"mask-x-to": W()
|
|
2665
2677
|
}],
|
|
2666
2678
|
"mask-image-y-from-pos": [{
|
|
2667
|
-
"mask-y-from":
|
|
2679
|
+
"mask-y-from": he()
|
|
2668
2680
|
}],
|
|
2669
2681
|
"mask-image-y-to-pos": [{
|
|
2670
|
-
"mask-y-to":
|
|
2682
|
+
"mask-y-to": he()
|
|
2671
2683
|
}],
|
|
2672
2684
|
"mask-image-y-from-color": [{
|
|
2673
2685
|
"mask-y-from": W()
|
|
@@ -2679,10 +2691,10 @@ const fromTheme = (e) => {
|
|
|
2679
2691
|
"mask-radial": [isArbitraryVariable, isArbitraryValue]
|
|
2680
2692
|
}],
|
|
2681
2693
|
"mask-image-radial-from-pos": [{
|
|
2682
|
-
"mask-radial-from":
|
|
2694
|
+
"mask-radial-from": he()
|
|
2683
2695
|
}],
|
|
2684
2696
|
"mask-image-radial-to-pos": [{
|
|
2685
|
-
"mask-radial-to":
|
|
2697
|
+
"mask-radial-to": he()
|
|
2686
2698
|
}],
|
|
2687
2699
|
"mask-image-radial-from-color": [{
|
|
2688
2700
|
"mask-radial-from": W()
|
|
@@ -2706,10 +2718,10 @@ const fromTheme = (e) => {
|
|
|
2706
2718
|
"mask-conic": [isNumber$2]
|
|
2707
2719
|
}],
|
|
2708
2720
|
"mask-image-conic-from-pos": [{
|
|
2709
|
-
"mask-conic-from":
|
|
2721
|
+
"mask-conic-from": he()
|
|
2710
2722
|
}],
|
|
2711
2723
|
"mask-image-conic-to-pos": [{
|
|
2712
|
-
"mask-conic-to":
|
|
2724
|
+
"mask-conic-to": he()
|
|
2713
2725
|
}],
|
|
2714
2726
|
"mask-image-conic-from-color": [{
|
|
2715
2727
|
"mask-conic-from": W()
|
|
@@ -6394,7 +6406,7 @@ var ANCHOR_NAME$1 = "PopperAnchor", PopperAnchor = React.forwardRef(
|
|
|
6394
6406
|
PopperAnchor.displayName = ANCHOR_NAME$1;
|
|
6395
6407
|
var CONTENT_NAME$5 = "PopperContent", [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME$5), PopperContent = React.forwardRef(
|
|
6396
6408
|
(e, t) => {
|
|
6397
|
-
var
|
|
6409
|
+
var he, ye, fe, le, oe, te;
|
|
6398
6410
|
const {
|
|
6399
6411
|
__scopePopper: n,
|
|
6400
6412
|
side: o = "bottom",
|
|
@@ -6449,7 +6461,7 @@ var CONTENT_NAME$5 = "PopperContent", [PopperContentProvider, useContentContext]
|
|
|
6449
6461
|
useLayoutEffect2(() => {
|
|
6450
6462
|
ae && (ie == null || ie());
|
|
6451
6463
|
}, [ae, ie]);
|
|
6452
|
-
const ce = (
|
|
6464
|
+
const ce = (he = W.arrow) == null ? void 0 : he.x, ue = (ye = W.arrow) == null ? void 0 : ye.y, pe = ((fe = W.arrow) == null ? void 0 : fe.centerOffset) !== 0, [de, ve] = React.useState();
|
|
6453
6465
|
return useLayoutEffect2(() => {
|
|
6454
6466
|
I && ve(window.getComputedStyle(I).zIndex);
|
|
6455
6467
|
}, [I]), /* @__PURE__ */ jsx(
|
|
@@ -6462,7 +6474,7 @@ var CONTENT_NAME$5 = "PopperContent", [PopperContentProvider, useContentContext]
|
|
|
6462
6474
|
transform: ae ? J.transform : "translate(0, -200%)",
|
|
6463
6475
|
// keep off the page when measuring
|
|
6464
6476
|
minWidth: "max-content",
|
|
6465
|
-
zIndex:
|
|
6477
|
+
zIndex: de,
|
|
6466
6478
|
"--radix-popper-transform-origin": [
|
|
6467
6479
|
(le = W.transformOrigin) == null ? void 0 : le.x,
|
|
6468
6480
|
(oe = W.transformOrigin) == null ? void 0 : oe.y
|
|
@@ -6854,8 +6866,8 @@ var CONTENT_NAME$4 = "MenuContent", [MenuContentProvider, useMenuContentContext]
|
|
|
6854
6866
|
disableOutsideScroll: T,
|
|
6855
6867
|
...E
|
|
6856
6868
|
} = e, C = useMenuContext(CONTENT_NAME$4, n), I = useMenuRootContext(CONTENT_NAME$4, n), N = usePopperScope$2(n), O = useRovingFocusGroupScope$1(n), V = useCollection$2(n), [M, R] = React.useState(null), D = React.useRef(null), L = useComposedRefs(t, D, C.onContentChange), j = React.useRef(0), q = React.useRef(""), F = React.useRef(0), H = React.useRef(null), U = React.useRef("right"), G = React.useRef(0), J = T ? ReactRemoveScroll : React.Fragment, Z = T ? { as: Slot$1, allowPinchZoom: !0 } : void 0, ae = (Q) => {
|
|
6857
|
-
var
|
|
6858
|
-
const ee = q.current + Q, ie = V().filter((fe) => !fe.disabled), ce = document.activeElement, ue = (
|
|
6869
|
+
var he, ye;
|
|
6870
|
+
const ee = q.current + Q, ie = V().filter((fe) => !fe.disabled), ce = document.activeElement, ue = (he = ie.find((fe) => fe.ref.current === ce)) == null ? void 0 : he.textValue, pe = ie.map((fe) => fe.textValue), de = getNextMatch(pe, ee, ue), ve = (ye = ie.find((fe) => fe.textValue === de)) == null ? void 0 : ye.ref.current;
|
|
6859
6871
|
(function fe(le) {
|
|
6860
6872
|
q.current = le, window.clearTimeout(j.current), le !== "" && (j.current = window.setTimeout(() => fe(""), 1e3));
|
|
6861
6873
|
})(ee), ve && setTimeout(() => ve.focus());
|
|
@@ -6945,7 +6957,7 @@ var CONTENT_NAME$4 = "MenuContent", [MenuContentProvider, useMenuContentContext]
|
|
|
6945
6957
|
const pe = D.current;
|
|
6946
6958
|
if (Q.target !== pe || !FIRST_LAST_KEYS.includes(Q.key)) return;
|
|
6947
6959
|
Q.preventDefault();
|
|
6948
|
-
const ve = V().filter((
|
|
6960
|
+
const ve = V().filter((he) => !he.disabled).map((he) => he.ref.current);
|
|
6949
6961
|
LAST_KEYS.includes(Q.key) && ve.reverse(), focusFirst$1(ve);
|
|
6950
6962
|
}),
|
|
6951
6963
|
onBlur: composeEventHandlers(e.onBlur, (Q) => {
|
|
@@ -10257,13 +10269,13 @@ function requireReactIs_development$1() {
|
|
|
10257
10269
|
function pe(se) {
|
|
10258
10270
|
return typeof se == "object" && se !== null && se.$$typeof === e;
|
|
10259
10271
|
}
|
|
10260
|
-
function
|
|
10272
|
+
function de(se) {
|
|
10261
10273
|
return M(se) === p;
|
|
10262
10274
|
}
|
|
10263
10275
|
function ve(se) {
|
|
10264
10276
|
return M(se) === n;
|
|
10265
10277
|
}
|
|
10266
|
-
function
|
|
10278
|
+
function he(se) {
|
|
10267
10279
|
return M(se) === _;
|
|
10268
10280
|
}
|
|
10269
10281
|
function ye(se) {
|
|
@@ -10284,7 +10296,7 @@ function requireReactIs_development$1() {
|
|
|
10284
10296
|
function be(se) {
|
|
10285
10297
|
return M(se) === g;
|
|
10286
10298
|
}
|
|
10287
|
-
reactIs_development$1.ContextConsumer = R, reactIs_development$1.ContextProvider = D, reactIs_development$1.Element = L, reactIs_development$1.ForwardRef = j, reactIs_development$1.Fragment = q, reactIs_development$1.Lazy = F, reactIs_development$1.Memo = H, reactIs_development$1.Portal = U, reactIs_development$1.Profiler = G, reactIs_development$1.StrictMode = J, reactIs_development$1.Suspense = Z, reactIs_development$1.SuspenseList = ae, reactIs_development$1.isAsyncMode = ee, reactIs_development$1.isConcurrentMode = ie, reactIs_development$1.isContextConsumer = ce, reactIs_development$1.isContextProvider = ue, reactIs_development$1.isElement = pe, reactIs_development$1.isForwardRef =
|
|
10299
|
+
reactIs_development$1.ContextConsumer = R, reactIs_development$1.ContextProvider = D, reactIs_development$1.Element = L, reactIs_development$1.ForwardRef = j, reactIs_development$1.Fragment = q, reactIs_development$1.Lazy = F, reactIs_development$1.Memo = H, reactIs_development$1.Portal = U, reactIs_development$1.Profiler = G, reactIs_development$1.StrictMode = J, reactIs_development$1.Suspense = Z, reactIs_development$1.SuspenseList = ae, reactIs_development$1.isAsyncMode = ee, reactIs_development$1.isConcurrentMode = ie, reactIs_development$1.isContextConsumer = ce, reactIs_development$1.isContextProvider = ue, reactIs_development$1.isElement = pe, reactIs_development$1.isForwardRef = de, reactIs_development$1.isFragment = ve, reactIs_development$1.isLazy = he, reactIs_development$1.isMemo = ye, reactIs_development$1.isPortal = fe, reactIs_development$1.isProfiler = le, reactIs_development$1.isStrictMode = oe, reactIs_development$1.isSuspense = te, reactIs_development$1.isSuspenseList = be, reactIs_development$1.isValidElementType = V, reactIs_development$1.typeOf = M;
|
|
10288
10300
|
}()), reactIs_development$1;
|
|
10289
10301
|
}
|
|
10290
10302
|
var hasRequiredReactIs$1;
|
|
@@ -16446,7 +16458,7 @@ function formatLocale(e) {
|
|
|
16446
16458
|
}, V = {
|
|
16447
16459
|
a: ue,
|
|
16448
16460
|
A: pe,
|
|
16449
|
-
b:
|
|
16461
|
+
b: de,
|
|
16450
16462
|
B: ve,
|
|
16451
16463
|
c: null,
|
|
16452
16464
|
d: formatUTCDayOfMonth,
|
|
@@ -16460,7 +16472,7 @@ function formatLocale(e) {
|
|
|
16460
16472
|
L: formatUTCMilliseconds,
|
|
16461
16473
|
m: formatUTCMonthNumber,
|
|
16462
16474
|
M: formatUTCMinutes,
|
|
16463
|
-
p:
|
|
16475
|
+
p: he,
|
|
16464
16476
|
q: ye,
|
|
16465
16477
|
Q: formatUnixTimestamp,
|
|
16466
16478
|
s: formatUnixTimestampSeconds,
|
|
@@ -16595,13 +16607,13 @@ function formatLocale(e) {
|
|
|
16595
16607
|
function pe(fe) {
|
|
16596
16608
|
return u[fe.getUTCDay()];
|
|
16597
16609
|
}
|
|
16598
|
-
function
|
|
16610
|
+
function de(fe) {
|
|
16599
16611
|
return p[fe.getUTCMonth()];
|
|
16600
16612
|
}
|
|
16601
16613
|
function ve(fe) {
|
|
16602
16614
|
return f[fe.getUTCMonth()];
|
|
16603
16615
|
}
|
|
16604
|
-
function
|
|
16616
|
+
function he(fe) {
|
|
16605
16617
|
return l[+(fe.getUTCHours() >= 12)];
|
|
16606
16618
|
}
|
|
16607
16619
|
function ye(fe) {
|
|
@@ -19850,13 +19862,13 @@ function requireReactIs_development() {
|
|
|
19850
19862
|
function pe(te) {
|
|
19851
19863
|
return V(te) === g;
|
|
19852
19864
|
}
|
|
19853
|
-
function
|
|
19865
|
+
function de(te) {
|
|
19854
19866
|
return V(te) === o;
|
|
19855
19867
|
}
|
|
19856
19868
|
function ve(te) {
|
|
19857
19869
|
return V(te) === T;
|
|
19858
19870
|
}
|
|
19859
|
-
function
|
|
19871
|
+
function he(te) {
|
|
19860
19872
|
return V(te) === S;
|
|
19861
19873
|
}
|
|
19862
19874
|
function ye(te) {
|
|
@@ -19871,7 +19883,7 @@ function requireReactIs_development() {
|
|
|
19871
19883
|
function oe(te) {
|
|
19872
19884
|
return V(te) === b;
|
|
19873
19885
|
}
|
|
19874
|
-
reactIs_development.AsyncMode = M, reactIs_development.ConcurrentMode = R, reactIs_development.ContextConsumer = D, reactIs_development.ContextProvider = L, reactIs_development.Element = j, reactIs_development.ForwardRef = q, reactIs_development.Fragment = F, reactIs_development.Lazy = H, reactIs_development.Memo = U, reactIs_development.Portal = G, reactIs_development.Profiler = J, reactIs_development.StrictMode = Z, reactIs_development.Suspense = ae, reactIs_development.isAsyncMode = Q, reactIs_development.isConcurrentMode = ee, reactIs_development.isContextConsumer = ie, reactIs_development.isContextProvider = ce, reactIs_development.isElement = ue, reactIs_development.isForwardRef = pe, reactIs_development.isFragment =
|
|
19886
|
+
reactIs_development.AsyncMode = M, reactIs_development.ConcurrentMode = R, reactIs_development.ContextConsumer = D, reactIs_development.ContextProvider = L, reactIs_development.Element = j, reactIs_development.ForwardRef = q, reactIs_development.Fragment = F, reactIs_development.Lazy = H, reactIs_development.Memo = U, reactIs_development.Portal = G, reactIs_development.Profiler = J, reactIs_development.StrictMode = Z, reactIs_development.Suspense = ae, reactIs_development.isAsyncMode = Q, reactIs_development.isConcurrentMode = ee, reactIs_development.isContextConsumer = ie, reactIs_development.isContextProvider = ce, reactIs_development.isElement = ue, reactIs_development.isForwardRef = pe, reactIs_development.isFragment = de, reactIs_development.isLazy = ve, reactIs_development.isMemo = he, reactIs_development.isPortal = ye, reactIs_development.isProfiler = fe, reactIs_development.isStrictMode = le, reactIs_development.isSuspense = oe, reactIs_development.isValidElementType = O, reactIs_development.typeOf = V;
|
|
19875
19887
|
}()), reactIs_development;
|
|
19876
19888
|
}
|
|
19877
19889
|
var hasRequiredReactIs;
|
|
@@ -20044,33 +20056,33 @@ function requireFactoryWithTypeCheckers() {
|
|
|
20044
20056
|
function C(ee) {
|
|
20045
20057
|
if (process.env.NODE_ENV !== "production")
|
|
20046
20058
|
var ie = {}, ce = 0;
|
|
20047
|
-
function ue(
|
|
20048
|
-
if (ye = ye || _, le = le ||
|
|
20059
|
+
function ue(de, ve, he, ye, fe, le, oe) {
|
|
20060
|
+
if (ye = ye || _, le = le || he, oe !== n) {
|
|
20049
20061
|
if (p) {
|
|
20050
20062
|
var te = new Error(
|
|
20051
20063
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
20052
20064
|
);
|
|
20053
20065
|
throw te.name = "Invariant Violation", te;
|
|
20054
20066
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
20055
|
-
var be = ye + ":" +
|
|
20067
|
+
var be = ye + ":" + he;
|
|
20056
20068
|
!ie[be] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
20057
20069
|
ce < 3 && (u(
|
|
20058
20070
|
"You are manually calling a React.PropTypes validation function for the `" + le + "` prop on `" + ye + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
20059
20071
|
), ie[be] = !0, ce++);
|
|
20060
20072
|
}
|
|
20061
20073
|
}
|
|
20062
|
-
return ve[
|
|
20074
|
+
return ve[he] == null ? de ? ve[he] === null ? new E("The " + fe + " `" + le + "` is marked as required " + ("in `" + ye + "`, but its value is `null`.")) : new E("The " + fe + " `" + le + "` is marked as required in " + ("`" + ye + "`, but its value is `undefined`.")) : null : ee(ve, he, ye, fe, le);
|
|
20063
20075
|
}
|
|
20064
20076
|
var pe = ue.bind(null, !1);
|
|
20065
20077
|
return pe.isRequired = ue.bind(null, !0), pe;
|
|
20066
20078
|
}
|
|
20067
20079
|
function I(ee) {
|
|
20068
|
-
function ie(ce, ue, pe,
|
|
20080
|
+
function ie(ce, ue, pe, de, ve, he) {
|
|
20069
20081
|
var ye = ce[ue], fe = Z(ye);
|
|
20070
20082
|
if (fe !== ee) {
|
|
20071
20083
|
var le = ae(ye);
|
|
20072
20084
|
return new E(
|
|
20073
|
-
"Invalid " +
|
|
20085
|
+
"Invalid " + de + " `" + ve + "` of type " + ("`" + le + "` supplied to `" + pe + "`, expected ") + ("`" + ee + "`."),
|
|
20074
20086
|
{ expectedType: ee }
|
|
20075
20087
|
);
|
|
20076
20088
|
}
|
|
@@ -20082,16 +20094,16 @@ function requireFactoryWithTypeCheckers() {
|
|
|
20082
20094
|
return C(d);
|
|
20083
20095
|
}
|
|
20084
20096
|
function O(ee) {
|
|
20085
|
-
function ie(ce, ue, pe,
|
|
20097
|
+
function ie(ce, ue, pe, de, ve) {
|
|
20086
20098
|
if (typeof ee != "function")
|
|
20087
20099
|
return new E("Property `" + ve + "` of component `" + pe + "` has invalid PropType notation inside arrayOf.");
|
|
20088
|
-
var
|
|
20089
|
-
if (!Array.isArray(
|
|
20090
|
-
var ye = Z(
|
|
20091
|
-
return new E("Invalid " +
|
|
20100
|
+
var he = ce[ue];
|
|
20101
|
+
if (!Array.isArray(he)) {
|
|
20102
|
+
var ye = Z(he);
|
|
20103
|
+
return new E("Invalid " + de + " `" + ve + "` of type " + ("`" + ye + "` supplied to `" + pe + "`, expected an array."));
|
|
20092
20104
|
}
|
|
20093
|
-
for (var fe = 0; fe <
|
|
20094
|
-
var le = ee(
|
|
20105
|
+
for (var fe = 0; fe < he.length; fe++) {
|
|
20106
|
+
var le = ee(he, fe, pe, de, ve + "[" + fe + "]", n);
|
|
20095
20107
|
if (le instanceof Error)
|
|
20096
20108
|
return le;
|
|
20097
20109
|
}
|
|
@@ -20100,32 +20112,32 @@ function requireFactoryWithTypeCheckers() {
|
|
|
20100
20112
|
return C(ie);
|
|
20101
20113
|
}
|
|
20102
20114
|
function V() {
|
|
20103
|
-
function ee(ie, ce, ue, pe,
|
|
20115
|
+
function ee(ie, ce, ue, pe, de) {
|
|
20104
20116
|
var ve = ie[ce];
|
|
20105
20117
|
if (!f(ve)) {
|
|
20106
|
-
var
|
|
20107
|
-
return new E("Invalid " + pe + " `" +
|
|
20118
|
+
var he = Z(ve);
|
|
20119
|
+
return new E("Invalid " + pe + " `" + de + "` of type " + ("`" + he + "` supplied to `" + ue + "`, expected a single ReactElement."));
|
|
20108
20120
|
}
|
|
20109
20121
|
return null;
|
|
20110
20122
|
}
|
|
20111
20123
|
return C(ee);
|
|
20112
20124
|
}
|
|
20113
20125
|
function M() {
|
|
20114
|
-
function ee(ie, ce, ue, pe,
|
|
20126
|
+
function ee(ie, ce, ue, pe, de) {
|
|
20115
20127
|
var ve = ie[ce];
|
|
20116
20128
|
if (!e.isValidElementType(ve)) {
|
|
20117
|
-
var
|
|
20118
|
-
return new E("Invalid " + pe + " `" +
|
|
20129
|
+
var he = Z(ve);
|
|
20130
|
+
return new E("Invalid " + pe + " `" + de + "` of type " + ("`" + he + "` supplied to `" + ue + "`, expected a single ReactElement type."));
|
|
20119
20131
|
}
|
|
20120
20132
|
return null;
|
|
20121
20133
|
}
|
|
20122
20134
|
return C(ee);
|
|
20123
20135
|
}
|
|
20124
20136
|
function R(ee) {
|
|
20125
|
-
function ie(ce, ue, pe,
|
|
20137
|
+
function ie(ce, ue, pe, de, ve) {
|
|
20126
20138
|
if (!(ce[ue] instanceof ee)) {
|
|
20127
|
-
var
|
|
20128
|
-
return new E("Invalid " +
|
|
20139
|
+
var he = ee.name || _, ye = Q(ce[ue]);
|
|
20140
|
+
return new E("Invalid " + de + " `" + ve + "` of type " + ("`" + ye + "` supplied to `" + pe + "`, expected ") + ("instance of `" + he + "`."));
|
|
20129
20141
|
}
|
|
20130
20142
|
return null;
|
|
20131
20143
|
}
|
|
@@ -20136,28 +20148,28 @@ function requireFactoryWithTypeCheckers() {
|
|
|
20136
20148
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? u(
|
|
20137
20149
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
20138
20150
|
) : u("Invalid argument supplied to oneOf, expected an array.")), d;
|
|
20139
|
-
function ie(ce, ue, pe,
|
|
20140
|
-
for (var
|
|
20141
|
-
if (T(
|
|
20151
|
+
function ie(ce, ue, pe, de, ve) {
|
|
20152
|
+
for (var he = ce[ue], ye = 0; ye < ee.length; ye++)
|
|
20153
|
+
if (T(he, ee[ye]))
|
|
20142
20154
|
return null;
|
|
20143
20155
|
var fe = JSON.stringify(ee, function(oe, te) {
|
|
20144
20156
|
var be = ae(te);
|
|
20145
20157
|
return be === "symbol" ? String(te) : te;
|
|
20146
20158
|
});
|
|
20147
|
-
return new E("Invalid " +
|
|
20159
|
+
return new E("Invalid " + de + " `" + ve + "` of value `" + String(he) + "` " + ("supplied to `" + pe + "`, expected one of " + fe + "."));
|
|
20148
20160
|
}
|
|
20149
20161
|
return C(ie);
|
|
20150
20162
|
}
|
|
20151
20163
|
function L(ee) {
|
|
20152
|
-
function ie(ce, ue, pe,
|
|
20164
|
+
function ie(ce, ue, pe, de, ve) {
|
|
20153
20165
|
if (typeof ee != "function")
|
|
20154
20166
|
return new E("Property `" + ve + "` of component `" + pe + "` has invalid PropType notation inside objectOf.");
|
|
20155
|
-
var
|
|
20167
|
+
var he = ce[ue], ye = Z(he);
|
|
20156
20168
|
if (ye !== "object")
|
|
20157
|
-
return new E("Invalid " +
|
|
20158
|
-
for (var fe in
|
|
20159
|
-
if (o(
|
|
20160
|
-
var le = ee(
|
|
20169
|
+
return new E("Invalid " + de + " `" + ve + "` of type " + ("`" + ye + "` supplied to `" + pe + "`, expected an object."));
|
|
20170
|
+
for (var fe in he)
|
|
20171
|
+
if (o(he, fe)) {
|
|
20172
|
+
var le = ee(he, fe, pe, de, ve + "." + fe, n);
|
|
20161
20173
|
if (le instanceof Error)
|
|
20162
20174
|
return le;
|
|
20163
20175
|
}
|
|
@@ -20175,21 +20187,21 @@ function requireFactoryWithTypeCheckers() {
|
|
|
20175
20187
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + W(ce) + " at index " + ie + "."
|
|
20176
20188
|
), d;
|
|
20177
20189
|
}
|
|
20178
|
-
function ue(pe,
|
|
20190
|
+
function ue(pe, de, ve, he, ye) {
|
|
20179
20191
|
for (var fe = [], le = 0; le < ee.length; le++) {
|
|
20180
|
-
var oe = ee[le], te = oe(pe,
|
|
20192
|
+
var oe = ee[le], te = oe(pe, de, ve, he, ye, n);
|
|
20181
20193
|
if (te == null)
|
|
20182
20194
|
return null;
|
|
20183
20195
|
te.data && o(te.data, "expectedType") && fe.push(te.data.expectedType);
|
|
20184
20196
|
}
|
|
20185
20197
|
var be = fe.length > 0 ? ", expected one of type [" + fe.join(", ") + "]" : "";
|
|
20186
|
-
return new E("Invalid " +
|
|
20198
|
+
return new E("Invalid " + he + " `" + ye + "` supplied to " + ("`" + ve + "`" + be + "."));
|
|
20187
20199
|
}
|
|
20188
20200
|
return C(ue);
|
|
20189
20201
|
}
|
|
20190
20202
|
function q() {
|
|
20191
|
-
function ee(ie, ce, ue, pe,
|
|
20192
|
-
return G(ie[ce]) ? null : new E("Invalid " + pe + " `" +
|
|
20203
|
+
function ee(ie, ce, ue, pe, de) {
|
|
20204
|
+
return G(ie[ce]) ? null : new E("Invalid " + pe + " `" + de + "` supplied to " + ("`" + ue + "`, expected a ReactNode."));
|
|
20193
20205
|
}
|
|
20194
20206
|
return C(ee);
|
|
20195
20207
|
}
|
|
@@ -20199,15 +20211,15 @@ function requireFactoryWithTypeCheckers() {
|
|
|
20199
20211
|
);
|
|
20200
20212
|
}
|
|
20201
20213
|
function H(ee) {
|
|
20202
|
-
function ie(ce, ue, pe,
|
|
20203
|
-
var
|
|
20214
|
+
function ie(ce, ue, pe, de, ve) {
|
|
20215
|
+
var he = ce[ue], ye = Z(he);
|
|
20204
20216
|
if (ye !== "object")
|
|
20205
|
-
return new E("Invalid " +
|
|
20217
|
+
return new E("Invalid " + de + " `" + ve + "` of type `" + ye + "` " + ("supplied to `" + pe + "`, expected `object`."));
|
|
20206
20218
|
for (var fe in ee) {
|
|
20207
20219
|
var le = ee[fe];
|
|
20208
20220
|
if (typeof le != "function")
|
|
20209
|
-
return F(pe,
|
|
20210
|
-
var oe = le(
|
|
20221
|
+
return F(pe, de, ve, fe, ae(le));
|
|
20222
|
+
var oe = le(he, fe, pe, de, ve + "." + fe, n);
|
|
20211
20223
|
if (oe)
|
|
20212
20224
|
return oe;
|
|
20213
20225
|
}
|
|
@@ -20216,21 +20228,21 @@ function requireFactoryWithTypeCheckers() {
|
|
|
20216
20228
|
return C(ie);
|
|
20217
20229
|
}
|
|
20218
20230
|
function U(ee) {
|
|
20219
|
-
function ie(ce, ue, pe,
|
|
20220
|
-
var
|
|
20231
|
+
function ie(ce, ue, pe, de, ve) {
|
|
20232
|
+
var he = ce[ue], ye = Z(he);
|
|
20221
20233
|
if (ye !== "object")
|
|
20222
|
-
return new E("Invalid " +
|
|
20234
|
+
return new E("Invalid " + de + " `" + ve + "` of type `" + ye + "` " + ("supplied to `" + pe + "`, expected `object`."));
|
|
20223
20235
|
var fe = t({}, ce[ue], ee);
|
|
20224
20236
|
for (var le in fe) {
|
|
20225
20237
|
var oe = ee[le];
|
|
20226
20238
|
if (o(ee, le) && typeof oe != "function")
|
|
20227
|
-
return F(pe,
|
|
20239
|
+
return F(pe, de, ve, le, ae(oe));
|
|
20228
20240
|
if (!oe)
|
|
20229
20241
|
return new E(
|
|
20230
|
-
"Invalid " +
|
|
20242
|
+
"Invalid " + de + " `" + ve + "` key `" + le + "` supplied to `" + pe + "`.\nBad object: " + JSON.stringify(ce[ue], null, " ") + `
|
|
20231
20243
|
Valid keys: ` + JSON.stringify(Object.keys(ee), null, " ")
|
|
20232
20244
|
);
|
|
20233
|
-
var te = oe(
|
|
20245
|
+
var te = oe(he, le, pe, de, ve + "." + le, n);
|
|
20234
20246
|
if (te)
|
|
20235
20247
|
return te;
|
|
20236
20248
|
}
|
|
@@ -23263,22 +23275,22 @@ _defineProperty$d(Bar, "getComposedData", function(e) {
|
|
|
23263
23275
|
U -= ue, J += ue;
|
|
23264
23276
|
}
|
|
23265
23277
|
} else {
|
|
23266
|
-
var pe = [u.scale(F[0]), u.scale(F[1])],
|
|
23267
|
-
if (H =
|
|
23278
|
+
var pe = [u.scale(F[0]), u.scale(F[1])], de = pe[0], ve = pe[1];
|
|
23279
|
+
if (H = de, U = getCateCoordinateOfBar({
|
|
23268
23280
|
axis: d,
|
|
23269
23281
|
ticks: p,
|
|
23270
23282
|
bandSize: l,
|
|
23271
23283
|
offset: S.offset,
|
|
23272
23284
|
entry: j,
|
|
23273
23285
|
index: q
|
|
23274
|
-
}), G = ve -
|
|
23286
|
+
}), G = ve - de, J = S.size, Z = {
|
|
23275
23287
|
x: u.x,
|
|
23276
23288
|
y: U,
|
|
23277
23289
|
width: u.width,
|
|
23278
23290
|
height: J
|
|
23279
23291
|
}, Math.abs(ae) > 0 && Math.abs(G) < Math.abs(ae)) {
|
|
23280
|
-
var
|
|
23281
|
-
G +=
|
|
23292
|
+
var he = mathSign(G || ae) * (Math.abs(ae) - Math.abs(G));
|
|
23293
|
+
G += he;
|
|
23282
23294
|
}
|
|
23283
23295
|
}
|
|
23284
23296
|
return _objectSpread$a(_objectSpread$a(_objectSpread$a({}, j), {}, {
|
|
@@ -23376,8 +23388,8 @@ var formatAxisMap = function(t, n, o, l, u) {
|
|
|
23376
23388
|
var E = n[T], C = E.orientation, I = E.domain, N = E.padding, O = N === void 0 ? {} : N, V = E.mirror, M = E.reversed, R = "".concat(C).concat(V ? "Mirror" : ""), D, L, j, q, F;
|
|
23377
23389
|
if (E.type === "number" && (E.padding === "gap" || E.padding === "no-gap")) {
|
|
23378
23390
|
var H = I[1] - I[0], U = 1 / 0, G = E.categoricalDomain.sort(compareValues);
|
|
23379
|
-
if (G.forEach(function(pe,
|
|
23380
|
-
|
|
23391
|
+
if (G.forEach(function(pe, de) {
|
|
23392
|
+
de > 0 && (U = Math.min((pe || 0) - (G[de - 1] || 0), U));
|
|
23381
23393
|
}), Number.isFinite(U)) {
|
|
23382
23394
|
var J = U / H, Z = E.layout === "vertical" ? o.height : o.width;
|
|
23383
23395
|
if (E.padding === "gap" && (D = J * Z / 2), E.padding === "no-gap") {
|
|
@@ -26467,8 +26479,8 @@ var getTooltipContent = function(t, n, o, l) {
|
|
|
26467
26479
|
}, []);
|
|
26468
26480
|
else if (N === "number") {
|
|
26469
26481
|
var Q = parseErrorBarsOfAxis(q, l.filter(function(ce) {
|
|
26470
|
-
var ue, pe,
|
|
26471
|
-
return
|
|
26482
|
+
var ue, pe, de = d in ce.props ? ce.props[d] : (ue = ce.type.defaultProps) === null || ue === void 0 ? void 0 : ue[d], ve = "hide" in ce.props ? ce.props.hide : (pe = ce.type.defaultProps) === null || pe === void 0 ? void 0 : pe.hide;
|
|
26483
|
+
return de === j && (L || !ve);
|
|
26472
26484
|
}), O, u, g);
|
|
26473
26485
|
Q && (H = Q);
|
|
26474
26486
|
}
|
|
@@ -26619,7 +26631,7 @@ var getTooltipContent = function(t, n, o, l) {
|
|
|
26619
26631
|
graphicalItems: [Q],
|
|
26620
26632
|
dataStartIndex: D,
|
|
26621
26633
|
dataEndIndex: L
|
|
26622
|
-
}), ce = Q.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, Q.type.defaultProps), Q.props) : Q.props, ue = ce.dataKey, pe = ce.maxBarSize,
|
|
26634
|
+
}), ce = Q.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, Q.type.defaultProps), Q.props) : Q.props, ue = ce.dataKey, pe = ce.maxBarSize, de = ce["".concat(J, "Id")], ve = ce["".concat(Z, "Id")], he = {}, ye = p.reduce(function(Be, Me) {
|
|
26623
26635
|
var Fe, He, Le = N["".concat(Me.axisType, "Map")], Ne = ce["".concat(Me.axisType, "Id")];
|
|
26624
26636
|
Le && Le[Ne] || Me.axisType === "zAxis" || (process.env.NODE_ENV !== "production" ? invariant(!1, "Specifying a(n) ".concat(Me.axisType, "Id requires a corresponding ").concat(
|
|
26625
26637
|
Me.axisType,
|
|
@@ -26627,7 +26639,7 @@ var getTooltipContent = function(t, n, o, l) {
|
|
|
26627
26639
|
).concat((Fe = Q == null || (He = Q.type) === null || He === void 0 ? void 0 : He.displayName) !== null && Fe !== void 0 ? Fe : "")) : invariant());
|
|
26628
26640
|
var qe = Le[Ne];
|
|
26629
26641
|
return _objectSpread(_objectSpread({}, Be), {}, _defineProperty(_defineProperty({}, Me.axisType, qe), "".concat(Me.axisType, "Ticks"), getTicksOfAxis(qe)));
|
|
26630
|
-
},
|
|
26642
|
+
}, he), fe = ye[Z], le = ye["".concat(Z, "Ticks")], oe = V && V[de] && V[de].hasStack && getStackedDataOfItem(Q, V[de].stackGroups), te = getDisplayName(Q.type).indexOf("Bar") >= 0, be = getBandSizeOfAxis(fe, le), se = [], _e = ae && getBarSizeList({
|
|
26631
26643
|
barSize: j,
|
|
26632
26644
|
stackGroups: V,
|
|
26633
26645
|
totalSize: getCartesianAxisSize(ye, Z)
|
|
@@ -26870,13 +26882,13 @@ var getTooltipContent = function(t, n, o, l) {
|
|
|
26870
26882
|
var ee = _objectSpread(_objectSpread({}, ae), {}, {
|
|
26871
26883
|
x: ae.left,
|
|
26872
26884
|
y: ae.top
|
|
26873
|
-
}), ie = Math.min(U, ee.x + ee.width), ce = Math.min(G, ee.y + ee.height), ue = W[J] && W[J].value, pe = getTooltipContent(M.state, M.props.data, J),
|
|
26885
|
+
}), ie = Math.min(U, ee.x + ee.width), ce = Math.min(G, ee.y + ee.height), ue = W[J] && W[J].value, pe = getTooltipContent(M.state, M.props.data, J), de = W[J] ? {
|
|
26874
26886
|
x: L === "horizontal" ? W[J].coordinate : ie,
|
|
26875
26887
|
y: L === "horizontal" ? ce : W[J].coordinate
|
|
26876
26888
|
} : originCoordinate;
|
|
26877
26889
|
M.setState(_objectSpread(_objectSpread({}, R), {}, {
|
|
26878
26890
|
activeLabel: ue,
|
|
26879
|
-
activeCoordinate:
|
|
26891
|
+
activeCoordinate: de,
|
|
26880
26892
|
activePayload: pe,
|
|
26881
26893
|
activeTooltipIndex: J
|
|
26882
26894
|
}));
|
|
@@ -27002,7 +27014,7 @@ var getTooltipContent = function(t, n, o, l) {
|
|
|
27002
27014
|
var j = M.filterFormatItem(R, D, L);
|
|
27003
27015
|
if (!j)
|
|
27004
27016
|
return null;
|
|
27005
|
-
var q = M.getTooltipEventType(), F = M.state, H = F.isTooltipActive, U = F.tooltipAxis, G = F.activeTooltipIndex, J = F.activeLabel, Z = M.props.children, ae = findChildByType(Z, Tooltip), W = j.props, Q = W.points, ee = W.isRange, ie = W.baseLine, ce = j.item.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, j.item.type.defaultProps), j.item.props) : j.item.props, ue = ce.activeDot, pe = ce.hide,
|
|
27017
|
+
var q = M.getTooltipEventType(), F = M.state, H = F.isTooltipActive, U = F.tooltipAxis, G = F.activeTooltipIndex, J = F.activeLabel, Z = M.props.children, ae = findChildByType(Z, Tooltip), W = j.props, Q = W.points, ee = W.isRange, ie = W.baseLine, ce = j.item.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, j.item.type.defaultProps), j.item.props) : j.item.props, ue = ce.activeDot, pe = ce.hide, de = ce.activeBar, ve = ce.activeShape, he = !!(!pe && H && ae && (ue || de || ve)), ye = {};
|
|
27006
27018
|
q !== "axis" && ae && ae.props.trigger === "click" ? ye = {
|
|
27007
27019
|
onClick: combineEventHandlers(M.handleItemMouseEnter, R.props.onClick)
|
|
27008
27020
|
} : q !== "axis" && (ye = {
|
|
@@ -27013,7 +27025,7 @@ var getTooltipContent = function(t, n, o, l) {
|
|
|
27013
27025
|
function le(Me) {
|
|
27014
27026
|
return typeof U.dataKey == "function" ? U.dataKey(Me.payload) : null;
|
|
27015
27027
|
}
|
|
27016
|
-
if (
|
|
27028
|
+
if (he)
|
|
27017
27029
|
if (G >= 0) {
|
|
27018
27030
|
var oe, te;
|
|
27019
27031
|
if (U.dataKey && !U.allowDuplicatedCategory) {
|
|
@@ -27021,7 +27033,7 @@ var getTooltipContent = function(t, n, o, l) {
|
|
|
27021
27033
|
oe = findEntryInArray(Q, be, J), te = ee && ie && findEntryInArray(ie, be, J);
|
|
27022
27034
|
} else
|
|
27023
27035
|
oe = Q == null ? void 0 : Q[G], te = ee && ie && ie[G];
|
|
27024
|
-
if (ve ||
|
|
27036
|
+
if (ve || de) {
|
|
27025
27037
|
var se = R.props.activeIndex !== void 0 ? R.props.activeIndex : G;
|
|
27026
27038
|
return [/* @__PURE__ */ cloneElement(R, _objectSpread(_objectSpread(_objectSpread({}, j.props), ye), {}, {
|
|
27027
27039
|
activeIndex: se
|
|
@@ -27484,7 +27496,7 @@ var getTooltipContent = function(t, n, o, l) {
|
|
|
27484
27496
|
});
|
|
27485
27497
|
}
|
|
27486
27498
|
if (!isChildrenEqual(V, I.prevChildren)) {
|
|
27487
|
-
var ae, W, Q, ee, ie = findChildByType(V, Brush), ce = ie && (ae = (W = ie.props) === null || W === void 0 ? void 0 : W.startIndex) !== null && ae !== void 0 ? ae : q, ue = ie && (Q = (ee = ie.props) === null || ee === void 0 ? void 0 : ee.endIndex) !== null && Q !== void 0 ? Q : F, pe = ce !== q || ue !== F,
|
|
27499
|
+
var ae, W, Q, ee, ie = findChildByType(V, Brush), ce = ie && (ae = (W = ie.props) === null || W === void 0 ? void 0 : W.startIndex) !== null && ae !== void 0 ? ae : q, ue = ie && (Q = (ee = ie.props) === null || ee === void 0 ? void 0 : ee.endIndex) !== null && Q !== void 0 ? Q : F, pe = ce !== q || ue !== F, de = !isNil(O), ve = de && !pe ? I.updateId : I.updateId + 1;
|
|
27488
27500
|
return _objectSpread(_objectSpread({
|
|
27489
27501
|
updateId: ve
|
|
27490
27502
|
}, S(_objectSpread(_objectSpread({
|
|
@@ -29096,17 +29108,17 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
29096
29108
|
function _(W, Q, ee) {
|
|
29097
29109
|
return ee || ee === 0 || (ee = 1), W === 1 && Q === 1 && ee === 1 ? this : this._t(W, 0, 0, 0, 0, Q, 0, 0, 0, 0, ee, 0, 0, 0, 0, 1);
|
|
29098
29110
|
}
|
|
29099
|
-
function S(W, Q, ee, ie, ce, ue, pe,
|
|
29100
|
-
return this.props[0] = W, this.props[1] = Q, this.props[2] = ee, this.props[3] = ie, this.props[4] = ce, this.props[5] = ue, this.props[6] = pe, this.props[7] =
|
|
29111
|
+
function S(W, Q, ee, ie, ce, ue, pe, de, ve, he, ye, fe, le, oe, te, be) {
|
|
29112
|
+
return this.props[0] = W, this.props[1] = Q, this.props[2] = ee, this.props[3] = ie, this.props[4] = ce, this.props[5] = ue, this.props[6] = pe, this.props[7] = de, this.props[8] = ve, this.props[9] = he, this.props[10] = ye, this.props[11] = fe, this.props[12] = le, this.props[13] = oe, this.props[14] = te, this.props[15] = be, this;
|
|
29101
29113
|
}
|
|
29102
29114
|
function T(W, Q, ee) {
|
|
29103
29115
|
return ee = ee || 0, W !== 0 || Q !== 0 || ee !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, W, Q, ee, 1) : this;
|
|
29104
29116
|
}
|
|
29105
|
-
function E(W, Q, ee, ie, ce, ue, pe,
|
|
29117
|
+
function E(W, Q, ee, ie, ce, ue, pe, de, ve, he, ye, fe, le, oe, te, be) {
|
|
29106
29118
|
var se = this.props;
|
|
29107
|
-
if (W === 1 && Q === 0 && ee === 0 && ie === 0 && ce === 0 && ue === 1 && pe === 0 &&
|
|
29119
|
+
if (W === 1 && Q === 0 && ee === 0 && ie === 0 && ce === 0 && ue === 1 && pe === 0 && de === 0 && ve === 0 && he === 0 && ye === 1 && fe === 0) return se[12] = se[12] * W + se[15] * le, se[13] = se[13] * ue + se[15] * oe, se[14] = se[14] * ye + se[15] * te, se[15] *= be, this._identityCalculated = !1, this;
|
|
29108
29120
|
var _e = se[0], xe = se[1], Ee = se[2], Ae = se[3], we = se[4], ke = se[5], Be = se[6], Me = se[7], Fe = se[8], He = se[9], Le = se[10], Ne = se[11], qe = se[12], Ge = se[13], Je = se[14], Xe = se[15];
|
|
29109
|
-
return se[0] = _e * W + xe * ce + Ee * ve + Ae * le, se[1] = _e * Q + xe * ue + Ee *
|
|
29121
|
+
return se[0] = _e * W + xe * ce + Ee * ve + Ae * le, se[1] = _e * Q + xe * ue + Ee * he + Ae * oe, se[2] = _e * ee + xe * pe + Ee * ye + Ae * te, se[3] = _e * ie + xe * de + Ee * fe + Ae * be, se[4] = we * W + ke * ce + Be * ve + Me * le, se[5] = we * Q + ke * ue + Be * he + Me * oe, se[6] = we * ee + ke * pe + Be * ye + Me * te, se[7] = we * ie + ke * de + Be * fe + Me * be, se[8] = Fe * W + He * ce + Le * ve + Ne * le, se[9] = Fe * Q + He * ue + Le * he + Ne * oe, se[10] = Fe * ee + He * pe + Le * ye + Ne * te, se[11] = Fe * ie + He * de + Le * fe + Ne * be, se[12] = qe * W + Ge * ce + Je * ve + Xe * le, se[13] = qe * Q + Ge * ue + Je * he + Xe * oe, se[14] = qe * ee + Ge * pe + Je * ye + Xe * te, se[15] = qe * ie + Ge * de + Je * fe + Xe * be, this._identityCalculated = !1, this;
|
|
29110
29122
|
}
|
|
29111
29123
|
function C(W) {
|
|
29112
29124
|
var Q = W.props;
|
|
@@ -29144,8 +29156,8 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
29144
29156
|
return W * this.props[2] + Q * this.props[6] + ee * this.props[10] + this.props[14];
|
|
29145
29157
|
}
|
|
29146
29158
|
function j() {
|
|
29147
|
-
var W = this.props[0] * this.props[5] - this.props[1] * this.props[4], Q = this.props[5] / W, ee = -this.props[1] / W, ie = -this.props[4] / W, ce = this.props[0] / W, ue = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / W, pe = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / W,
|
|
29148
|
-
return
|
|
29159
|
+
var W = this.props[0] * this.props[5] - this.props[1] * this.props[4], Q = this.props[5] / W, ee = -this.props[1] / W, ie = -this.props[4] / W, ce = this.props[0] / W, ue = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / W, pe = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / W, de = new Matrix();
|
|
29160
|
+
return de.props[0] = Q, de.props[1] = ee, de.props[4] = ie, de.props[5] = ce, de.props[12] = ue, de.props[13] = pe, de;
|
|
29149
29161
|
}
|
|
29150
29162
|
function q(W) {
|
|
29151
29163
|
return this.getInverseMatrix().applyToPointArray(W[0], W[1], W[2] || 0);
|
|
@@ -29159,8 +29171,8 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
29159
29171
|
var ie = createTypedArray("float32", 6);
|
|
29160
29172
|
if (this.isIdentity()) ie[0] = W[0], ie[1] = W[1], ie[2] = Q[0], ie[3] = Q[1], ie[4] = ee[0], ie[5] = ee[1];
|
|
29161
29173
|
else {
|
|
29162
|
-
var ce = this.props[0], ue = this.props[1], pe = this.props[4],
|
|
29163
|
-
ie[0] = W[0] * ce + W[1] * pe + ve, ie[1] = W[0] * ue + W[1] *
|
|
29174
|
+
var ce = this.props[0], ue = this.props[1], pe = this.props[4], de = this.props[5], ve = this.props[12], he = this.props[13];
|
|
29175
|
+
ie[0] = W[0] * ce + W[1] * pe + ve, ie[1] = W[0] * ue + W[1] * de + he, ie[2] = Q[0] * ce + Q[1] * pe + ve, ie[3] = Q[0] * ue + Q[1] * de + he, ie[4] = ee[0] * ce + ee[1] * pe + ve, ie[5] = ee[0] * ue + ee[1] * de + he;
|
|
29164
29176
|
}
|
|
29165
29177
|
return ie;
|
|
29166
29178
|
}
|
|
@@ -30836,7 +30848,7 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
30836
30848
|
u = F.length, n = 0, o = 0;
|
|
30837
30849
|
var G, J, Z, ae, W, Q = 1.2 * e.finalSize * 0.714, ee = !0;
|
|
30838
30850
|
Z = R.length;
|
|
30839
|
-
var ie, ce, ue, pe,
|
|
30851
|
+
var ie, ce, ue, pe, de, ve, he, ye, fe, le, oe, te, be = -1, se = f, _e = _, xe = b, Ee = -1, Ae = "", we = this.defaultPropsArray;
|
|
30840
30852
|
if (e.j === 2 || e.j === 1) {
|
|
30841
30853
|
var ke = 0, Be = 0, Me = e.j === 2 ? -0.5 : -1, Fe = 0, He = !0;
|
|
30842
30854
|
for (l = 0; l < u; l += 1) if (F[l].n) {
|
|
@@ -30869,17 +30881,17 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
30869
30881
|
ie = F[l].an / 2 - F[l].add, L.translate(-ie, 0, 0);
|
|
30870
30882
|
} else ie = F[l].an / 2 - F[l].add, L.translate(-ie, 0, 0), L.translate(-M[0] * F[l].an * 5e-3, -M[1] * Q * 0.01, 0);
|
|
30871
30883
|
for (J = 0; J < Z; J += 1) (G = R[J].a).t.propType && (W = R[J].s.getMult(F[l].anIndexes[J], D.a[J].s.totalChars), n === 0 && e.j === 0 || (this._hasMaskedPath ? W.length ? f += G.t.v * W[0] : f += G.t.v * W : W.length ? n += G.t.v * W[0] : n += G.t.v * W));
|
|
30872
|
-
for (e.strokeWidthAnim && (ve = e.sw || 0), e.strokeColorAnim && (
|
|
30884
|
+
for (e.strokeWidthAnim && (ve = e.sw || 0), e.strokeColorAnim && (de = e.sc ? [e.sc[0], e.sc[1], e.sc[2]] : [0, 0, 0]), e.fillColorAnim && e.fc && (he = [e.fc[0], e.fc[1], e.fc[2]]), J = 0; J < Z; J += 1) (G = R[J].a).a.propType && ((W = R[J].s.getMult(F[l].anIndexes[J], D.a[J].s.totalChars)).length ? L.translate(-G.a.v[0] * W[0], -G.a.v[1] * W[1], G.a.v[2] * W[2]) : L.translate(-G.a.v[0] * W, -G.a.v[1] * W, G.a.v[2] * W));
|
|
30873
30885
|
for (J = 0; J < Z; J += 1) (G = R[J].a).s.propType && ((W = R[J].s.getMult(F[l].anIndexes[J], D.a[J].s.totalChars)).length ? L.scale(1 + (G.s.v[0] - 1) * W[0], 1 + (G.s.v[1] - 1) * W[1], 1) : L.scale(1 + (G.s.v[0] - 1) * W, 1 + (G.s.v[1] - 1) * W, 1));
|
|
30874
30886
|
for (J = 0; J < Z; J += 1) {
|
|
30875
|
-
if (G = R[J].a, W = R[J].s.getMult(F[l].anIndexes[J], D.a[J].s.totalChars), G.sk.propType && (W.length ? L.skewFromAxis(-G.sk.v * W[0], G.sa.v * W[1]) : L.skewFromAxis(-G.sk.v * W, G.sa.v * W)), G.r.propType && (W.length ? L.rotateZ(-G.r.v * W[2]) : L.rotateZ(-G.r.v * W)), G.ry.propType && (W.length ? L.rotateY(G.ry.v * W[1]) : L.rotateY(G.ry.v * W)), G.rx.propType && (W.length ? L.rotateX(G.rx.v * W[0]) : L.rotateX(G.rx.v * W)), G.o.propType && (W.length ? pe += (G.o.v * W[0] - pe) * W[0] : pe += (G.o.v * W - pe) * W), e.strokeWidthAnim && G.sw.propType && (W.length ? ve += G.sw.v * W[0] : ve += G.sw.v * W), e.strokeColorAnim && G.sc.propType) for (ye = 0; ye < 3; ye += 1) W.length ?
|
|
30887
|
+
if (G = R[J].a, W = R[J].s.getMult(F[l].anIndexes[J], D.a[J].s.totalChars), G.sk.propType && (W.length ? L.skewFromAxis(-G.sk.v * W[0], G.sa.v * W[1]) : L.skewFromAxis(-G.sk.v * W, G.sa.v * W)), G.r.propType && (W.length ? L.rotateZ(-G.r.v * W[2]) : L.rotateZ(-G.r.v * W)), G.ry.propType && (W.length ? L.rotateY(G.ry.v * W[1]) : L.rotateY(G.ry.v * W)), G.rx.propType && (W.length ? L.rotateX(G.rx.v * W[0]) : L.rotateX(G.rx.v * W)), G.o.propType && (W.length ? pe += (G.o.v * W[0] - pe) * W[0] : pe += (G.o.v * W - pe) * W), e.strokeWidthAnim && G.sw.propType && (W.length ? ve += G.sw.v * W[0] : ve += G.sw.v * W), e.strokeColorAnim && G.sc.propType) for (ye = 0; ye < 3; ye += 1) W.length ? de[ye] += (G.sc.v[ye] - de[ye]) * W[0] : de[ye] += (G.sc.v[ye] - de[ye]) * W;
|
|
30876
30888
|
if (e.fillColorAnim && e.fc) {
|
|
30877
|
-
if (G.fc.propType) for (ye = 0; ye < 3; ye += 1) W.length ?
|
|
30878
|
-
G.fh.propType && (
|
|
30889
|
+
if (G.fc.propType) for (ye = 0; ye < 3; ye += 1) W.length ? he[ye] += (G.fc.v[ye] - he[ye]) * W[0] : he[ye] += (G.fc.v[ye] - he[ye]) * W;
|
|
30890
|
+
G.fh.propType && (he = W.length ? addHueToRGB(he, G.fh.v * W[0]) : addHueToRGB(he, G.fh.v * W)), G.fs.propType && (he = W.length ? addSaturationToRGB(he, G.fs.v * W[0]) : addSaturationToRGB(he, G.fs.v * W)), G.fb.propType && (he = W.length ? addBrightnessToRGB(he, G.fb.v * W[0]) : addBrightnessToRGB(he, G.fb.v * W));
|
|
30879
30891
|
}
|
|
30880
30892
|
}
|
|
30881
30893
|
for (J = 0; J < Z; J += 1) (G = R[J].a).p.propType && (W = R[J].s.getMult(F[l].anIndexes[J], D.a[J].s.totalChars), this._hasMaskedPath ? W.length ? L.translate(0, G.p.v[1] * W[0], -G.p.v[2] * W[1]) : L.translate(0, G.p.v[1] * W, -G.p.v[2] * W) : W.length ? L.translate(G.p.v[0] * W[0], G.p.v[1] * W[1], -G.p.v[2] * W[2]) : L.translate(G.p.v[0] * W, G.p.v[1] * W, -G.p.v[2] * W));
|
|
30882
|
-
if (e.strokeWidthAnim && (fe = ve < 0 ? 0 : ve), e.strokeColorAnim && (le = "rgb(" + Math.round(255 *
|
|
30894
|
+
if (e.strokeWidthAnim && (fe = ve < 0 ? 0 : ve), e.strokeColorAnim && (le = "rgb(" + Math.round(255 * de[0]) + "," + Math.round(255 * de[1]) + "," + Math.round(255 * de[2]) + ")"), e.fillColorAnim && e.fc && (oe = "rgb(" + Math.round(255 * he[0]) + "," + Math.round(255 * he[1]) + "," + Math.round(255 * he[2]) + ")"), this._hasMaskedPath) {
|
|
30883
30895
|
if (L.translate(0, -e.ls), L.translate(0, M[1] * Q * 0.01 + o, 0), this._pathData.p.v) {
|
|
30884
30896
|
O = (p.point[1] - S.point[1]) / (p.point[0] - S.point[0]);
|
|
30885
30897
|
var Ne = 180 * Math.atan(O) / Math.PI;
|
|
@@ -40215,8 +40227,8 @@ function fetchBaseQuery({
|
|
|
40215
40227
|
}) || R;
|
|
40216
40228
|
const J = (pe) => typeof pe == "object" && (isPlainObject$1(pe) || Array.isArray(pe) || typeof pe.toJSON == "function");
|
|
40217
40229
|
if (!G.headers.has("content-type") && J(G.body) && G.headers.set("content-type", u), J(G.body) && l(G.headers) && (G.body = JSON.stringify(G.body, d)), D) {
|
|
40218
|
-
const pe = ~M.indexOf("?") ? "&" : "?",
|
|
40219
|
-
M += pe +
|
|
40230
|
+
const pe = ~M.indexOf("?") ? "&" : "?", de = o ? o(D) : new URLSearchParams(stripUndefined(D));
|
|
40231
|
+
M += pe + de;
|
|
40220
40232
|
}
|
|
40221
40233
|
M = joinUrls(e, M);
|
|
40222
40234
|
const Z = new Request(M, G);
|
|
@@ -40245,10 +40257,10 @@ function fetchBaseQuery({
|
|
|
40245
40257
|
try {
|
|
40246
40258
|
let pe;
|
|
40247
40259
|
if (await Promise.all([
|
|
40248
|
-
b(W, L).then((
|
|
40260
|
+
b(W, L).then((de) => ce = de, (de) => pe = de),
|
|
40249
40261
|
// see https://github.com/node-fetch/node-fetch/issues/665#issuecomment-538995182
|
|
40250
40262
|
// we *have* to "use up" both streams at the same time or they will stop running in node-fetch scenarios
|
|
40251
|
-
ie.text().then((
|
|
40263
|
+
ie.text().then((de) => ue = de, () => {
|
|
40252
40264
|
})
|
|
40253
40265
|
]), pe) throw pe;
|
|
40254
40266
|
} catch (pe) {
|
|
@@ -40377,7 +40389,7 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
40377
40389
|
[forceQueryFnSymbol]: F,
|
|
40378
40390
|
...H
|
|
40379
40391
|
} = {}) => (U, G) => {
|
|
40380
|
-
var
|
|
40392
|
+
var he;
|
|
40381
40393
|
const J = e({
|
|
40382
40394
|
queryArgs: D,
|
|
40383
40395
|
endpointDefinition: M,
|
|
@@ -40415,10 +40427,10 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
40415
40427
|
const {
|
|
40416
40428
|
requestId: ie,
|
|
40417
40429
|
abort: ce
|
|
40418
|
-
} = Q, ue = ee.requestId !== ie, pe = (
|
|
40430
|
+
} = Q, ue = ee.requestId !== ie, pe = (he = d.get(U)) == null ? void 0 : he[J], de = () => W(G()), ve = Object.assign(F ? (
|
|
40419
40431
|
// a query has been forced (upsertQueryData)
|
|
40420
40432
|
// -> we want to resolve it once data has been written with the data that will be written
|
|
40421
|
-
Q.then(
|
|
40433
|
+
Q.then(de)
|
|
40422
40434
|
) : ue && !pe ? (
|
|
40423
40435
|
// a query has been skipped due to a condition and we do not have any currently running query
|
|
40424
40436
|
// -> we want to resolve it immediately with the current data
|
|
@@ -40426,7 +40438,7 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
40426
40438
|
) : (
|
|
40427
40439
|
// query just started or one is already in flight
|
|
40428
40440
|
// -> wait for the running query, then resolve with data from after that
|
|
40429
|
-
Promise.all([pe, Q]).then(
|
|
40441
|
+
Promise.all([pe, Q]).then(de)
|
|
40430
40442
|
), {
|
|
40431
40443
|
arg: D,
|
|
40432
40444
|
requestId: ie,
|
|
@@ -40624,7 +40636,7 @@ function buildThunks({
|
|
|
40624
40636
|
} = Q;
|
|
40625
40637
|
try {
|
|
40626
40638
|
let pe = E(Q, "transformResponse");
|
|
40627
|
-
const
|
|
40639
|
+
const de = {
|
|
40628
40640
|
signal: H,
|
|
40629
40641
|
abort: U,
|
|
40630
40642
|
dispatch: Z,
|
|
@@ -40635,7 +40647,7 @@ function buildThunks({
|
|
|
40635
40647
|
forced: F.type === "query" ? I(F, ae()) : void 0,
|
|
40636
40648
|
queryCacheKey: F.type === "query" ? F.queryCacheKey : void 0
|
|
40637
40649
|
}, ve = F.type === "query" ? F[forceQueryFnSymbol] : void 0;
|
|
40638
|
-
let
|
|
40650
|
+
let he;
|
|
40639
40651
|
const ye = async (le, oe, te, be) => {
|
|
40640
40652
|
if (oe == null && le.pages.length)
|
|
40641
40653
|
return Promise.resolve({
|
|
@@ -40667,7 +40679,7 @@ function buildThunks({
|
|
|
40667
40679
|
"argSchema",
|
|
40668
40680
|
{}
|
|
40669
40681
|
// we don't have a meta yet, so we can't pass it
|
|
40670
|
-
)), ve ? oe = ve() : Q.query ? oe = await t(Q.query(le),
|
|
40682
|
+
)), ve ? oe = ve() : Q.query ? oe = await t(Q.query(le), de, te) : oe = await Q.queryFn(le, de, te, (Ae) => t(Ae, de, te)), typeof process < "u" && process.env.NODE_ENV === "development") {
|
|
40671
40683
|
const Ae = Q.query ? "`baseQuery`" : "`queryFn`";
|
|
40672
40684
|
let we;
|
|
40673
40685
|
if (!oe)
|
|
@@ -40726,57 +40738,57 @@ function buildThunks({
|
|
|
40726
40738
|
te = await ye(te.data, Me, oe);
|
|
40727
40739
|
}
|
|
40728
40740
|
}
|
|
40729
|
-
|
|
40741
|
+
he = te;
|
|
40730
40742
|
} else
|
|
40731
|
-
|
|
40732
|
-
return ee && !ie &&
|
|
40743
|
+
he = await fe(F.originalArgs);
|
|
40744
|
+
return ee && !ie && he.meta && (he.meta = await parseWithSchema(ee, he.meta, "metaSchema", he.meta)), J(he.data, addShouldAutoBatch({
|
|
40733
40745
|
fulfilledTimeStamp: Date.now(),
|
|
40734
|
-
baseQueryMeta:
|
|
40746
|
+
baseQueryMeta: he.meta
|
|
40735
40747
|
}));
|
|
40736
40748
|
} catch (pe) {
|
|
40737
|
-
let
|
|
40738
|
-
if (
|
|
40749
|
+
let de = pe;
|
|
40750
|
+
if (de instanceof HandledError) {
|
|
40739
40751
|
let ve = E(Q, "transformErrorResponse");
|
|
40740
40752
|
const {
|
|
40741
|
-
rawErrorResponseSchema:
|
|
40753
|
+
rawErrorResponseSchema: he,
|
|
40742
40754
|
errorResponseSchema: ye
|
|
40743
40755
|
} = Q;
|
|
40744
40756
|
let {
|
|
40745
40757
|
value: fe,
|
|
40746
40758
|
meta: le
|
|
40747
|
-
} =
|
|
40759
|
+
} = de;
|
|
40748
40760
|
try {
|
|
40749
|
-
|
|
40761
|
+
he && !ie && (fe = await parseWithSchema(he, fe, "rawErrorResponseSchema", le)), ee && !ie && (le = await parseWithSchema(ee, le, "metaSchema", le));
|
|
40750
40762
|
let oe = await ve(fe, le, F.originalArgs);
|
|
40751
40763
|
return ye && !ie && (oe = await parseWithSchema(ye, oe, "errorResponseSchema", le)), G(oe, addShouldAutoBatch({
|
|
40752
40764
|
baseQueryMeta: le
|
|
40753
40765
|
}));
|
|
40754
40766
|
} catch (oe) {
|
|
40755
|
-
|
|
40767
|
+
de = oe;
|
|
40756
40768
|
}
|
|
40757
40769
|
}
|
|
40758
40770
|
try {
|
|
40759
|
-
if (
|
|
40771
|
+
if (de instanceof NamedSchemaError) {
|
|
40760
40772
|
const ve = {
|
|
40761
40773
|
endpoint: F.endpointName,
|
|
40762
40774
|
arg: F.originalArgs,
|
|
40763
40775
|
type: F.type,
|
|
40764
40776
|
queryCacheKey: F.type === "query" ? F.queryCacheKey : void 0
|
|
40765
40777
|
};
|
|
40766
|
-
(ue = Q.onSchemaFailure) == null || ue.call(Q,
|
|
40778
|
+
(ue = Q.onSchemaFailure) == null || ue.call(Q, de, ve), f == null || f(de, ve);
|
|
40767
40779
|
const {
|
|
40768
|
-
catchSchemaFailure:
|
|
40780
|
+
catchSchemaFailure: he = p
|
|
40769
40781
|
} = Q;
|
|
40770
|
-
if (
|
|
40771
|
-
return G(de
|
|
40772
|
-
baseQueryMeta:
|
|
40782
|
+
if (he)
|
|
40783
|
+
return G(he(de, ve), addShouldAutoBatch({
|
|
40784
|
+
baseQueryMeta: de._bqMeta
|
|
40773
40785
|
}));
|
|
40774
40786
|
}
|
|
40775
40787
|
} catch (ve) {
|
|
40776
|
-
|
|
40788
|
+
de = ve;
|
|
40777
40789
|
}
|
|
40778
40790
|
throw typeof process < "u" && process.env.NODE_ENV !== "production" ? console.error(`An unhandled error occurred processing a request for the endpoint "${F.endpointName}".
|
|
40779
|
-
In the case of an unhandled error, no tags will be "provided" or "invalidated".`,
|
|
40791
|
+
In the case of an unhandled error, no tags will be "provided" or "invalidated".`, de) : console.error(de), de;
|
|
40780
40792
|
}
|
|
40781
40793
|
};
|
|
40782
40794
|
function I(F, H) {
|
|
@@ -42060,7 +42072,7 @@ var coreModuleName = /* @__PURE__ */ Symbol(), coreModule = ({
|
|
|
42060
42072
|
skipSchemaValidation: S
|
|
42061
42073
|
}, T) {
|
|
42062
42074
|
enablePatches();
|
|
42063
|
-
const E = (
|
|
42075
|
+
const E = (de) => (typeof process < "u" && process.env.NODE_ENV === "development" && (o.includes(de.type) || console.error(`Tag type '${de.type}' was used, but not specified in \`tagTypes\`!`)), de);
|
|
42064
42076
|
Object.assign(t, {
|
|
42065
42077
|
reducerPath: l,
|
|
42066
42078
|
endpoints: {},
|
|
@@ -42174,22 +42186,22 @@ var coreModuleName = /* @__PURE__ */ Symbol(), coreModule = ({
|
|
|
42174
42186
|
getRunningQueriesThunk: ue
|
|
42175
42187
|
}), {
|
|
42176
42188
|
name: coreModuleName,
|
|
42177
|
-
injectEndpoint(
|
|
42189
|
+
injectEndpoint(de, ve) {
|
|
42178
42190
|
var fe;
|
|
42179
|
-
const ye = (fe = t.endpoints)[
|
|
42191
|
+
const ye = (fe = t.endpoints)[de] ?? (fe[de] = {});
|
|
42180
42192
|
isQueryDefinition$1(ve) && safeAssign$1(ye, {
|
|
42181
|
-
name:
|
|
42182
|
-
select: O(
|
|
42183
|
-
initiate: W(
|
|
42184
|
-
}, U(R,
|
|
42185
|
-
name:
|
|
42193
|
+
name: de,
|
|
42194
|
+
select: O(de, ve),
|
|
42195
|
+
initiate: W(de, ve)
|
|
42196
|
+
}, U(R, de)), isMutationDefinition$1(ve) && safeAssign$1(ye, {
|
|
42197
|
+
name: de,
|
|
42186
42198
|
select: M(),
|
|
42187
|
-
initiate: ee(
|
|
42188
|
-
}, U(L,
|
|
42189
|
-
name:
|
|
42190
|
-
select: V(
|
|
42191
|
-
initiate: Q(
|
|
42192
|
-
}, U(R,
|
|
42199
|
+
initiate: ee(de)
|
|
42200
|
+
}, U(L, de)), isInfiniteQueryDefinition$1(ve) && safeAssign$1(ye, {
|
|
42201
|
+
name: de,
|
|
42202
|
+
select: V(de, ve),
|
|
42203
|
+
initiate: Q(de, ve)
|
|
42204
|
+
}, U(R, de));
|
|
42193
42205
|
}
|
|
42194
42206
|
};
|
|
42195
42207
|
}
|
|
@@ -42615,11 +42627,11 @@ function buildHooks({
|
|
|
42615
42627
|
initiate: U
|
|
42616
42628
|
} = e.endpoints[V], G = n(), J = useRef(void 0);
|
|
42617
42629
|
if (!J.current) {
|
|
42618
|
-
const
|
|
42619
|
-
if (process.env.NODE_ENV !== "production" && (typeof
|
|
42630
|
+
const de = G(e.internalActions.internal_getRTKQSubscriptions());
|
|
42631
|
+
if (process.env.NODE_ENV !== "production" && (typeof de != "object" || typeof (de == null ? void 0 : de.type) == "string"))
|
|
42620
42632
|
throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(37) : `Warning: Middleware for RTK-Query API at reducerPath "${e.reducerPath}" has not been added to the store.
|
|
42621
42633
|
You must add the middleware for RTK-Query to function correctly!`);
|
|
42622
|
-
J.current =
|
|
42634
|
+
J.current = de;
|
|
42623
42635
|
}
|
|
42624
42636
|
const Z = useStableQueryArgs(
|
|
42625
42637
|
j ? skipToken : M,
|
|
@@ -42646,15 +42658,15 @@ function buildHooks({
|
|
|
42646
42658
|
return m(() => {
|
|
42647
42659
|
pe && (ee.current = void 0);
|
|
42648
42660
|
}, [pe]), m(() => {
|
|
42649
|
-
var
|
|
42650
|
-
const
|
|
42661
|
+
var he;
|
|
42662
|
+
const de = ee.current;
|
|
42651
42663
|
if (typeof process < "u" && process.env.NODE_ENV === "removeMeOnCompilation" && console.log(pe), Z === skipToken) {
|
|
42652
|
-
|
|
42664
|
+
de == null || de.unsubscribe(), ee.current = void 0;
|
|
42653
42665
|
return;
|
|
42654
42666
|
}
|
|
42655
|
-
const ve = (
|
|
42656
|
-
if (!
|
|
42657
|
-
|
|
42667
|
+
const ve = (he = ee.current) == null ? void 0 : he.subscriptionOptions;
|
|
42668
|
+
if (!de || de.arg !== Z) {
|
|
42669
|
+
de == null || de.unsubscribe();
|
|
42658
42670
|
const ye = G(U(Z, {
|
|
42659
42671
|
subscriptionOptions: ae,
|
|
42660
42672
|
forceRefetch: L,
|
|
@@ -42663,7 +42675,7 @@ function buildHooks({
|
|
|
42663
42675
|
} : {}
|
|
42664
42676
|
}));
|
|
42665
42677
|
ee.current = ye;
|
|
42666
|
-
} else ae !== ve &&
|
|
42678
|
+
} else ae !== ve && de.updateSubscriptionOptions(ae);
|
|
42667
42679
|
}, [G, U, L, Z, ae, pe, Q, V]), [ee, G, U, ae];
|
|
42668
42680
|
}
|
|
42669
42681
|
function T(V, M) {
|
|
@@ -43150,9 +43162,9 @@ const emptySplitApi = createApi({
|
|
|
43150
43162
|
query: (t) => ({
|
|
43151
43163
|
url: `/V4/Partner/${t.applicationId}/Account/Feedback`,
|
|
43152
43164
|
method: "POST",
|
|
43153
|
-
body: t.body,
|
|
43154
43165
|
params: {
|
|
43155
|
-
emailAddress: t.emailAddress
|
|
43166
|
+
emailAddress: t.emailAddress,
|
|
43167
|
+
comment: t.comment
|
|
43156
43168
|
}
|
|
43157
43169
|
})
|
|
43158
43170
|
}),
|
|
@@ -43768,7 +43780,10 @@ const emptySplitApi = createApi({
|
|
|
43768
43780
|
}),
|
|
43769
43781
|
getV4ResellerByRouteResellerIdManufacturerAndManufacturerId: e.query({
|
|
43770
43782
|
query: (t) => ({
|
|
43771
|
-
url: `/V4/Reseller/${t.routeResellerId}/Manufacturer/${t.manufacturerId}
|
|
43783
|
+
url: `/V4/Reseller/${t.routeResellerId}/Manufacturer/${t.manufacturerId}`,
|
|
43784
|
+
params: {
|
|
43785
|
+
withSpecification: t.withSpecification
|
|
43786
|
+
}
|
|
43772
43787
|
})
|
|
43773
43788
|
}),
|
|
43774
43789
|
postV4ResellerByRouteResellerIdManufacturerAndManufacturerIdShopify: e.mutation({
|
|
@@ -43811,6 +43826,14 @@ const emptySplitApi = createApi({
|
|
|
43811
43826
|
}
|
|
43812
43827
|
})
|
|
43813
43828
|
}),
|
|
43829
|
+
getV4PartnerByApplicationIdManufacturers: e.query({
|
|
43830
|
+
query: (t) => ({
|
|
43831
|
+
url: `/V4/Partner/${t.applicationId}/Manufacturers`,
|
|
43832
|
+
params: {
|
|
43833
|
+
withSpecification: t.withSpecification
|
|
43834
|
+
}
|
|
43835
|
+
})
|
|
43836
|
+
}),
|
|
43814
43837
|
getV4AgencyByRouteAgencyIdManufacturers: e.query({
|
|
43815
43838
|
query: (t) => ({
|
|
43816
43839
|
url: `/V4/Agency/${t.routeAgencyId}/Manufacturers`,
|
|
@@ -44188,6 +44211,14 @@ const emptySplitApi = createApi({
|
|
|
44188
44211
|
url: `/V4/Reseller/${t.routeResellerId}/Orders/Shipments`
|
|
44189
44212
|
})
|
|
44190
44213
|
}),
|
|
44214
|
+
getV4PartnerByApplicationIdPartnerAndPartnerId: e.query({
|
|
44215
|
+
query: (t) => ({
|
|
44216
|
+
url: `/V4/Partner/${t.applicationId}/Partner/${t.partnerId}`,
|
|
44217
|
+
params: {
|
|
44218
|
+
withSpecification: t.withSpecification
|
|
44219
|
+
}
|
|
44220
|
+
})
|
|
44221
|
+
}),
|
|
44191
44222
|
putV4AgencyByRouteAgencyIdPartnerAndNewUserEmailAddress: e.mutation({
|
|
44192
44223
|
query: (t) => ({
|
|
44193
44224
|
url: `/V4/Agency/${t.routeAgencyId}/Partner/${t.newUserEmailAddress}`,
|
|
@@ -52395,7 +52426,7 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
|
|
|
52395
52426
|
/* @__PURE__ */ jsx("div", { className: "animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4" }),
|
|
52396
52427
|
/* @__PURE__ */ jsx("p", { children: "Loading API functions..." })
|
|
52397
52428
|
] }) }) });
|
|
52398
|
-
const
|
|
52429
|
+
const de = () => {
|
|
52399
52430
|
!V.trim() || !N || !H || (ae(G.length), ue(V, N, H));
|
|
52400
52431
|
}, ve = () => {
|
|
52401
52432
|
const te = {
|
|
@@ -52407,7 +52438,7 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
|
|
|
52407
52438
|
emailAddress: t,
|
|
52408
52439
|
body: te
|
|
52409
52440
|
});
|
|
52410
|
-
},
|
|
52441
|
+
}, he = () => {
|
|
52411
52442
|
j((oe) => oe.map((be) => be.partner1 !== ASSISTANT_ID && be.partner2 !== ASSISTANT_ID ? be : { ...be, messages: [] })), E();
|
|
52412
52443
|
};
|
|
52413
52444
|
return /* @__PURE__ */ jsxs("div", { className: "flex h-[85vh] overflow-hidden", children: [
|
|
@@ -52438,7 +52469,7 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
|
|
|
52438
52469
|
/* @__PURE__ */ jsx("div", { className: "flex items-center p-4 border-b", children: N[0] == ASSISTANT_ID || N[1] == ASSISTANT_ID ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
52439
52470
|
/* @__PURE__ */ jsx(Avatar, { className: "h-8 w-8 flex-shrink-0 rounded-none", children: /* @__PURE__ */ jsx(Bot, { className: "text-primary fill-white min-h-full" }) }),
|
|
52440
52471
|
/* @__PURE__ */ jsx("div", { className: "ml-3 font-medium", children: "Randmar Assistant" }),
|
|
52441
|
-
/* @__PURE__ */ jsx(Button, { variant: "ghost", size: "icon", className: "ml-auto", onClick: () =>
|
|
52472
|
+
/* @__PURE__ */ jsx(Button, { variant: "ghost", size: "icon", className: "ml-auto", onClick: () => he(), children: /* @__PURE__ */ jsx(MessageCircleX, { className: "h-5 w-5" }) }),
|
|
52442
52473
|
/* @__PURE__ */ jsx(Button, { variant: "ghost", size: "icon", className: "ml-1", confirmationDialog: { title: "Report Issue", content: "This action will send a copy of your chat to Randmar. Send it?", onConfirm: () => ve() }, children: /* @__PURE__ */ jsx(MessageSquareShare, { className: "h-5 w-5" }) })
|
|
52443
52474
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
52444
52475
|
/* @__PURE__ */ jsxs(Avatar, { className: "h-8 w-8 flex-shrink-0 rounded-none", children: [
|
|
@@ -52469,7 +52500,7 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
|
|
|
52469
52500
|
value: V,
|
|
52470
52501
|
onChange: (oe) => M(oe.target.value),
|
|
52471
52502
|
onKeyDown: (oe) => {
|
|
52472
|
-
oe.key !== "Enter" || oe.shiftKey || (oe.preventDefault(),
|
|
52503
|
+
oe.key !== "Enter" || oe.shiftKey || (oe.preventDefault(), de());
|
|
52473
52504
|
},
|
|
52474
52505
|
className: "flex-1 resize-none"
|
|
52475
52506
|
}
|
|
@@ -52481,7 +52512,7 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
|
|
|
52481
52512
|
variant: "default",
|
|
52482
52513
|
className: "ml-2 h-15 w-15",
|
|
52483
52514
|
disabled: T !== "",
|
|
52484
|
-
onClick:
|
|
52515
|
+
onClick: de,
|
|
52485
52516
|
children: /* @__PURE__ */ jsx(Send, { className: "h-6 w-6" })
|
|
52486
52517
|
}
|
|
52487
52518
|
)
|
|
@@ -52506,6 +52537,22 @@ function getActiveChatObject(e, t) {
|
|
|
52506
52537
|
function isAssistantChat(e) {
|
|
52507
52538
|
return (e == null ? void 0 : e[0]) == ASSISTANT_ID || (e == null ? void 0 : e[1]) == ASSISTANT_ID;
|
|
52508
52539
|
}
|
|
52540
|
+
function QualificationBadge({ qualification: e }) {
|
|
52541
|
+
return !e.QualificationId || e.QualificationId === "Suspended" ? null : e.QualificationId === "Do Not Sell" ? /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip$1, { children: [
|
|
52542
|
+
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsxs(Badge, { variant: "destructive", children: [
|
|
52543
|
+
/* @__PURE__ */ jsx(X, { className: "h-3 w-3 mr-1" }),
|
|
52544
|
+
"Do Not Sell"
|
|
52545
|
+
] }) }),
|
|
52546
|
+
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "Qualification" }) })
|
|
52547
|
+
] }) }) : /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip$1, { children: [
|
|
52548
|
+
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsxs(Badge, { variant: "success", children: [
|
|
52549
|
+
/* @__PURE__ */ jsx(Check, { className: "h-3 w-3 mr-1" }),
|
|
52550
|
+
e.QualificationId,
|
|
52551
|
+
e.DefaultOpportunityNumber && ` | ${e.DefaultOpportunityNumber}`
|
|
52552
|
+
] }) }),
|
|
52553
|
+
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "Qualification" }) })
|
|
52554
|
+
] }) });
|
|
52555
|
+
}
|
|
52509
52556
|
function ManufacturerCard({
|
|
52510
52557
|
manufacturer: e,
|
|
52511
52558
|
link: t,
|
|
@@ -52513,7 +52560,7 @@ function ManufacturerCard({
|
|
|
52513
52560
|
actions: o,
|
|
52514
52561
|
loading: l = !1
|
|
52515
52562
|
}) {
|
|
52516
|
-
var b;
|
|
52563
|
+
var b, _, S;
|
|
52517
52564
|
if (l || !e)
|
|
52518
52565
|
return /* @__PURE__ */ jsxs(Card, { children: [
|
|
52519
52566
|
/* @__PURE__ */ jsx(CardHeader, { className: "flex flex-row items-start justify-between space-y-0 pb-2 pt-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
@@ -52551,12 +52598,12 @@ function ManufacturerCard({
|
|
|
52551
52598
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-40" })
|
|
52552
52599
|
] })
|
|
52553
52600
|
] });
|
|
52554
|
-
const u = e.ManufacturerId || "N/A", d = e.PublicName || "N/A", f = [e.City, e.Province, e.Country].filter(Boolean), p = f.length > 0 ? f.join(", ") : "", m = ((b = e.Tags) == null ? void 0 : b.split(",").map((
|
|
52601
|
+
const u = e.ManufacturerId || "N/A", d = e.PublicName || "N/A", f = [e.City, e.Province, e.Country].filter(Boolean), p = f.length > 0 ? f.join(", ") : "", m = ((b = e.Tags) == null ? void 0 : b.split(",").map((T) => T.trim()).filter(Boolean)) || [], g = (T) => T === void 0 ? "n/a" : new Intl.NumberFormat("en-CA", {
|
|
52555
52602
|
style: "currency",
|
|
52556
52603
|
currency: "CAD",
|
|
52557
52604
|
minimumFractionDigits: 0,
|
|
52558
52605
|
maximumFractionDigits: 0
|
|
52559
|
-
}).format(
|
|
52606
|
+
}).format(T);
|
|
52560
52607
|
return /* @__PURE__ */ jsxs(Card, { className: "manufacturer-theme", children: [
|
|
52561
52608
|
/* @__PURE__ */ jsxs(CardHeader, { className: "flex flex-row items-start justify-between space-y-0 pb-2 pt-4", children: [
|
|
52562
52609
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
@@ -52583,9 +52630,18 @@ function ManufacturerCard({
|
|
|
52583
52630
|
] }),
|
|
52584
52631
|
/* @__PURE__ */ jsx(CardContent, { className: "pb-2", children: /* @__PURE__ */ jsxs("div", { className: "flex", children: [
|
|
52585
52632
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col flex-1 space-y-2", children: [
|
|
52586
|
-
(!!e.OpenToWork || m.length > 0) && /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2", children: [
|
|
52587
|
-
|
|
52588
|
-
|
|
52633
|
+
(!!((_ = e.Qualification) != null && _.QualificationId) && ((S = e.Qualification) == null ? void 0 : S.QualificationId) !== "Suspended" || !!e.OpenToWork || m.length > 0) && /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2", children: [
|
|
52634
|
+
/* @__PURE__ */ jsx(
|
|
52635
|
+
QualificationBadge,
|
|
52636
|
+
{
|
|
52637
|
+
qualification: e.Qualification ?? {}
|
|
52638
|
+
}
|
|
52639
|
+
),
|
|
52640
|
+
!!e.OpenToWork && /* @__PURE__ */ jsxs(Badge, { variant: "success", children: [
|
|
52641
|
+
/* @__PURE__ */ jsx(HardHat, { className: "h-3 w-3 mr-1" }),
|
|
52642
|
+
"Open To Work"
|
|
52643
|
+
] }),
|
|
52644
|
+
m.map((T, E) => /* @__PURE__ */ jsx(Badge, { variant: "outline", children: T }, E))
|
|
52589
52645
|
] }),
|
|
52590
52646
|
/* @__PURE__ */ jsxs("div", { className: "space-y-1 pt-2", children: [
|
|
52591
52647
|
e.Phone && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
|
|
@@ -52630,12 +52686,13 @@ function ResellerCard({
|
|
|
52630
52686
|
actions: n,
|
|
52631
52687
|
loading: o = !1
|
|
52632
52688
|
}) {
|
|
52633
|
-
|
|
52689
|
+
var m, g;
|
|
52690
|
+
const l = (b) => b === void 0 ? "n/a" : new Intl.NumberFormat("en-CA", {
|
|
52634
52691
|
style: "currency",
|
|
52635
52692
|
currency: "CAD",
|
|
52636
52693
|
minimumFractionDigits: 0,
|
|
52637
52694
|
maximumFractionDigits: 0
|
|
52638
|
-
}).format(
|
|
52695
|
+
}).format(b);
|
|
52639
52696
|
if (o || !e)
|
|
52640
52697
|
return /* @__PURE__ */ jsxs(Card, { children: [
|
|
52641
52698
|
/* @__PURE__ */ jsx(CardHeader, { className: "flex flex-row items-start justify-between space-y-0 pb-2 pt-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
@@ -52647,20 +52704,27 @@ function ResellerCard({
|
|
|
52647
52704
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-48" })
|
|
52648
52705
|
] })
|
|
52649
52706
|
] }) }),
|
|
52650
|
-
/* @__PURE__ */ jsx(CardContent, { className: "pb-2", children: /* @__PURE__ */ jsx("div", { className: "flex", children: /* @__PURE__ */
|
|
52651
|
-
/* @__PURE__ */ jsxs("div", { className: "flex
|
|
52652
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-
|
|
52653
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-
|
|
52654
|
-
|
|
52655
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
52656
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-4" }),
|
|
52657
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-40" })
|
|
52707
|
+
/* @__PURE__ */ jsx(CardContent, { className: "pb-2", children: /* @__PURE__ */ jsx("div", { className: "flex", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col flex-1 space-y-2", children: [
|
|
52708
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2", children: [
|
|
52709
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-16 rounded-full" }),
|
|
52710
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-20 rounded-full" }),
|
|
52711
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-14 rounded-full" })
|
|
52658
52712
|
] }),
|
|
52659
|
-
/* @__PURE__ */ jsxs("div", { className: "
|
|
52660
|
-
/* @__PURE__ */
|
|
52661
|
-
|
|
52713
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-1 pt-2", children: [
|
|
52714
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
52715
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-4" }),
|
|
52716
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-32" })
|
|
52717
|
+
] }),
|
|
52718
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
52719
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-4" }),
|
|
52720
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-40" })
|
|
52721
|
+
] }),
|
|
52722
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
52723
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-4" }),
|
|
52724
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-36" })
|
|
52725
|
+
] })
|
|
52662
52726
|
] })
|
|
52663
|
-
] }) }) })
|
|
52727
|
+
] }) }) }),
|
|
52664
52728
|
/* @__PURE__ */ jsxs(CardFooter, { className: "flex justify-between pt-2 gap-2", children: [
|
|
52665
52729
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-24" }),
|
|
52666
52730
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-40" })
|
|
@@ -52692,24 +52756,32 @@ function ResellerCard({
|
|
|
52692
52756
|
!!e.OnHold && e.OnHold !== 0 && /* @__PURE__ */ jsx(Badge, { variant: "warning", children: "On Hold" })
|
|
52693
52757
|
] }),
|
|
52694
52758
|
/* @__PURE__ */ jsx(CardContent, { className: "pb-2", children: /* @__PURE__ */ jsxs("div", { className: "flex", children: [
|
|
52695
|
-
/* @__PURE__ */
|
|
52696
|
-
e.
|
|
52697
|
-
|
|
52698
|
-
|
|
52699
|
-
|
|
52700
|
-
|
|
52701
|
-
|
|
52702
|
-
|
|
52703
|
-
|
|
52704
|
-
|
|
52705
|
-
|
|
52706
|
-
|
|
52707
|
-
|
|
52708
|
-
|
|
52709
|
-
|
|
52710
|
-
|
|
52759
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col flex-1 space-y-2", children: [
|
|
52760
|
+
!!((m = e.Qualification) != null && m.QualificationId) && ((g = e.Qualification) == null ? void 0 : g.QualificationId) !== "Suspended" && /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-2", children: /* @__PURE__ */ jsx(
|
|
52761
|
+
QualificationBadge,
|
|
52762
|
+
{
|
|
52763
|
+
qualification: e.Qualification ?? {}
|
|
52764
|
+
}
|
|
52765
|
+
) }),
|
|
52766
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-1 pt-2", children: [
|
|
52767
|
+
e.Phone && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
|
|
52768
|
+
/* @__PURE__ */ jsx(Phone, { className: "h-4 w-4" }),
|
|
52769
|
+
/* @__PURE__ */ jsx("span", { children: e.Phone })
|
|
52770
|
+
] }),
|
|
52771
|
+
e.PublicEmail && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
|
|
52772
|
+
/* @__PURE__ */ jsx(Mail, { className: "h-4 w-4" }),
|
|
52773
|
+
/* @__PURE__ */ jsx("span", { children: e.PublicEmail })
|
|
52774
|
+
] }),
|
|
52775
|
+
e.Website && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
|
|
52776
|
+
/* @__PURE__ */ jsx(Globe, { className: "h-4 w-4" }),
|
|
52777
|
+
/* @__PURE__ */ jsx("span", { children: e.Website })
|
|
52778
|
+
] }),
|
|
52779
|
+
e.CurrencyCode && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
|
|
52780
|
+
/* @__PURE__ */ jsx(DollarSign, { className: "h-4 w-4" }),
|
|
52781
|
+
/* @__PURE__ */ jsx("span", { children: e.CurrencyCode })
|
|
52782
|
+
] })
|
|
52711
52783
|
] })
|
|
52712
|
-
] })
|
|
52784
|
+
] }),
|
|
52713
52785
|
(e == null ? void 0 : e.SalesData) && /* @__PURE__ */ jsxs("div", { className: "border-l pl-2 ml-2 flex flex-col text-sm", children: [
|
|
52714
52786
|
/* @__PURE__ */ jsx("strong", { className: "", children: "YTD" }),
|
|
52715
52787
|
/* @__PURE__ */ jsx("p", { children: l(e == null ? void 0 : e.SalesData.SalesYearToDay) }),
|
|
@@ -53308,7 +53380,7 @@ var __create = Object.create, __getProtoOf = Object.getPrototypeOf, __defProp =
|
|
|
53308
53380
|
++z, K = ne;
|
|
53309
53381
|
}
|
|
53310
53382
|
}
|
|
53311
|
-
var
|
|
53383
|
+
var de = {
|
|
53312
53384
|
ecmaVersion: null,
|
|
53313
53385
|
sourceType: "script",
|
|
53314
53386
|
onInsertedSemicolon: null,
|
|
@@ -53329,10 +53401,10 @@ var __create = Object.create, __getProtoOf = Object.getPrototypeOf, __defProp =
|
|
|
53329
53401
|
directSourceFile: null,
|
|
53330
53402
|
preserveParens: !1
|
|
53331
53403
|
}, ve = !1;
|
|
53332
|
-
function
|
|
53404
|
+
function he(A) {
|
|
53333
53405
|
var B = {};
|
|
53334
|
-
for (var z in
|
|
53335
|
-
B[z] = A && Z(A, z) ? A[z] :
|
|
53406
|
+
for (var z in de)
|
|
53407
|
+
B[z] = A && Z(A, z) ? A[z] : de[z];
|
|
53336
53408
|
if (B.ecmaVersion === "latest" ? B.ecmaVersion = 1e8 : B.ecmaVersion == null ? (!ve && typeof console == "object" && console.warn && (ve = !0, console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
53337
53409
|
Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion = 11) : B.ecmaVersion >= 2015 && (B.ecmaVersion -= 2009), B.allowReserved == null && (B.allowReserved = B.ecmaVersion < 5), (!A || A.allowHashBang == null) && (B.allowHashBang = B.ecmaVersion >= 14), ae(B.onToken)) {
|
|
53338
53410
|
var K = B.onToken;
|
|
@@ -53358,7 +53430,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
53358
53430
|
return le | (A ? oe : 0) | (B ? te : 0);
|
|
53359
53431
|
}
|
|
53360
53432
|
var ke = 0, Be = 1, Me = 2, Fe = 3, He = 4, Le = 5, Ne = function(B, z, K) {
|
|
53361
|
-
this.options = B =
|
|
53433
|
+
this.options = B = he(B), this.sourceFile = B.sourceFile, this.keywords = Q(m[B.ecmaVersion >= 6 ? 6 : B.sourceType === "module" ? "5module" : 5]);
|
|
53362
53434
|
var ne = "";
|
|
53363
53435
|
B.allowReserved !== !0 && (ne = f[B.ecmaVersion >= 6 ? 6 : B.ecmaVersion === 5 ? 5 : 3], B.sourceType === "module" && (ne += " await")), this.reservedWords = Q(ne);
|
|
53364
53436
|
var me = (ne ? ne + " " : "") + f.strict;
|
|
@@ -55558,7 +55630,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
55558
55630
|
Ne.acorn = {
|
|
55559
55631
|
Parser: Ne,
|
|
55560
55632
|
version: xr,
|
|
55561
|
-
defaultOptions:
|
|
55633
|
+
defaultOptions: de,
|
|
55562
55634
|
Position: ce,
|
|
55563
55635
|
SourceLocation: ue,
|
|
55564
55636
|
getLineInfo: pe,
|
|
@@ -55585,7 +55657,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
55585
55657
|
function Wr(A, B) {
|
|
55586
55658
|
return Ne.tokenizer(A, B);
|
|
55587
55659
|
}
|
|
55588
|
-
n.Node = ft, n.Parser = Ne, n.Position = ce, n.SourceLocation = ue, n.TokContext = Ke, n.Token = $t, n.TokenType = C, n.defaultOptions =
|
|
55660
|
+
n.Node = ft, n.Parser = Ne, n.Position = ce, n.SourceLocation = ue, n.TokContext = Ke, n.Token = $t, n.TokenType = C, n.defaultOptions = de, n.getLineInfo = pe, n.isIdentifierChar = E, n.isIdentifierStart = T, n.isNewLine = j, n.keywordTypes = V, n.lineBreak = D, n.lineBreakG = L, n.nonASCIIwhitespace = F, n.parse = Gr, n.parseExpressionAt = zr, n.tokContexts = Ue, n.tokTypes = R, n.tokenizer = Wr, n.version = xr;
|
|
55589
55661
|
});
|
|
55590
55662
|
}), require_acorn_jsx = __commonJS((e, t) => {
|
|
55591
55663
|
var n = require_xhtml(), o = /^[\da-fA-F]+$/, l = /^\d+$/, u = /* @__PURE__ */ new WeakMap();
|
|
@@ -58863,38 +58935,123 @@ Dt = new WeakMap(), je = new WeakMap(), Ft = new WeakMap(), qt = new WeakMap(),
|
|
|
58863
58935
|
renderUnrecognized: () => null
|
|
58864
58936
|
});
|
|
58865
58937
|
var source_default = JsxParser;
|
|
58866
|
-
const
|
|
58867
|
-
|
|
58868
|
-
|
|
58869
|
-
|
|
58870
|
-
|
|
58871
|
-
return _ || (o == 0 ? "<p>Failed to generate. Reload the page.</p>" : await GetJSXFromAI(e, t, n, o - 1));
|
|
58938
|
+
const imgSizeMap = {
|
|
58939
|
+
sm: 100,
|
|
58940
|
+
md: 200,
|
|
58941
|
+
lg: 300,
|
|
58942
|
+
xl: 400
|
|
58872
58943
|
};
|
|
58873
|
-
function
|
|
58874
|
-
const
|
|
58875
|
-
|
|
58876
|
-
|
|
58877
|
-
|
|
58878
|
-
|
|
58879
|
-
|
|
58880
|
-
|
|
58881
|
-
|
|
58882
|
-
|
|
58883
|
-
|
|
58884
|
-
|
|
58885
|
-
|
|
58886
|
-
|
|
58887
|
-
|
|
58888
|
-
|
|
58889
|
-
|
|
58890
|
-
|
|
58891
|
-
|
|
58892
|
-
|
|
58893
|
-
}
|
|
58894
|
-
|
|
58895
|
-
|
|
58944
|
+
function ProductImage({ randmarSKU: e, size: t = "md", alt: n, secondaryContent: o }) {
|
|
58945
|
+
const [l, u] = React.useState(!1), [d, f] = React.useState(!1), [p, m] = React.useState(!1), [g, b] = React.useState(!1), _ = `https://api.randmar.io/Product/${e}/Video`;
|
|
58946
|
+
React.useEffect(() => {
|
|
58947
|
+
(async () => {
|
|
58948
|
+
try {
|
|
58949
|
+
const O = await (await fetch(_ + "/Exists")).json();
|
|
58950
|
+
f(O);
|
|
58951
|
+
} catch (N) {
|
|
58952
|
+
console.error("Error checking for video:", N), f(!1);
|
|
58953
|
+
}
|
|
58954
|
+
})();
|
|
58955
|
+
}, [e, _]);
|
|
58956
|
+
async function S() {
|
|
58957
|
+
if (d) {
|
|
58958
|
+
b(!0);
|
|
58959
|
+
try {
|
|
58960
|
+
const N = await (await fetch(_)).blob(), O = window.URL.createObjectURL(N), V = document.createElement("a");
|
|
58961
|
+
V.href = O, V.download = `${e || "product"}-video.mp4`, document.body.appendChild(V), V.click(), document.body.removeChild(V), window.URL.revokeObjectURL(O);
|
|
58962
|
+
} catch (I) {
|
|
58963
|
+
console.error("Error downloading video:", I);
|
|
58964
|
+
} finally {
|
|
58965
|
+
b(!1);
|
|
58966
|
+
}
|
|
58896
58967
|
}
|
|
58897
|
-
|
|
58968
|
+
}
|
|
58969
|
+
function T() {
|
|
58970
|
+
navigator.clipboard.writeText(_), m(!0), setTimeout(() => {
|
|
58971
|
+
m(!1);
|
|
58972
|
+
}, 2e3);
|
|
58973
|
+
}
|
|
58974
|
+
function E() {
|
|
58975
|
+
u(!0);
|
|
58976
|
+
}
|
|
58977
|
+
const C = imgSizeMap[t || "xl"];
|
|
58978
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
58979
|
+
/* @__PURE__ */ jsx(Dialog, { open: l, onOpenChange: u, children: /* @__PURE__ */ jsx(DialogContent, { className: "max-w-4xl p-0 overflow-hidden", children: o ? /* @__PURE__ */ jsxs("div", { className: "flex flex-row", children: [
|
|
58980
|
+
/* @__PURE__ */ jsxs(
|
|
58981
|
+
"video",
|
|
58982
|
+
{
|
|
58983
|
+
className: "w-full rounded-l-lg max-h-[720px] object-contain",
|
|
58984
|
+
controls: !0,
|
|
58985
|
+
autoPlay: !0,
|
|
58986
|
+
muted: !0,
|
|
58987
|
+
loop: !0,
|
|
58988
|
+
children: [
|
|
58989
|
+
/* @__PURE__ */ jsx("source", { src: _, type: "video/mp4" }),
|
|
58990
|
+
"Your browser does not support the video tag."
|
|
58991
|
+
]
|
|
58992
|
+
}
|
|
58993
|
+
),
|
|
58994
|
+
/* @__PURE__ */ jsx("div", { className: "flex-grow min-w-[400px] h-[70vh] p-6", children: o })
|
|
58995
|
+
] }) : /* @__PURE__ */ jsxs("div", { className: "w-full relative", children: [
|
|
58996
|
+
/* @__PURE__ */ jsxs("video", { className: "w-full max-h-[720px] object-contain", controls: !0, autoPlay: !0, children: [
|
|
58997
|
+
/* @__PURE__ */ jsx("source", { src: _, type: "video/mp4" }),
|
|
58998
|
+
"Your browser does not support the video tag."
|
|
58999
|
+
] }),
|
|
59000
|
+
/* @__PURE__ */ jsxs("div", { className: "absolute top-2 right-12 flex gap-1", children: [
|
|
59001
|
+
/* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip$1, { children: [
|
|
59002
|
+
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsx(
|
|
59003
|
+
Button,
|
|
59004
|
+
{
|
|
59005
|
+
variant: "secondary",
|
|
59006
|
+
size: "icon",
|
|
59007
|
+
onClick: T,
|
|
59008
|
+
children: p ? /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx(Copy, { className: "h-4 w-4" })
|
|
59009
|
+
}
|
|
59010
|
+
) }),
|
|
59011
|
+
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "Copy video link" }) })
|
|
59012
|
+
] }) }),
|
|
59013
|
+
/* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip$1, { children: [
|
|
59014
|
+
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsx(
|
|
59015
|
+
Button,
|
|
59016
|
+
{
|
|
59017
|
+
variant: "secondary",
|
|
59018
|
+
size: "icon",
|
|
59019
|
+
onClick: S,
|
|
59020
|
+
disabled: g,
|
|
59021
|
+
children: /* @__PURE__ */ jsx(Download, { className: "h-4 w-4" })
|
|
59022
|
+
}
|
|
59023
|
+
) }),
|
|
59024
|
+
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "Download video" }) })
|
|
59025
|
+
] }) })
|
|
59026
|
+
] })
|
|
59027
|
+
] }) }) }),
|
|
59028
|
+
/* @__PURE__ */ jsxs("div", { className: "relative w-max h-max", children: [
|
|
59029
|
+
/* @__PURE__ */ jsx(
|
|
59030
|
+
"img",
|
|
59031
|
+
{
|
|
59032
|
+
alt: n || `Product ${e}`,
|
|
59033
|
+
className: `rounded-md ${d ? "cursor-pointer" : ""}`,
|
|
59034
|
+
onClick: d ? E : void 0,
|
|
59035
|
+
src: `https://api.randmar.io/Product/${e}/Image?width=${C * 1.5}&height=${C * 1.5}`,
|
|
59036
|
+
width: C,
|
|
59037
|
+
height: C
|
|
59038
|
+
}
|
|
59039
|
+
),
|
|
59040
|
+
d && /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip$1, { children: [
|
|
59041
|
+
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsx(
|
|
59042
|
+
Button,
|
|
59043
|
+
{
|
|
59044
|
+
variant: "secondary",
|
|
59045
|
+
size: "icon",
|
|
59046
|
+
className: "absolute top-2 right-2",
|
|
59047
|
+
onClick: E,
|
|
59048
|
+
children: /* @__PURE__ */ jsx(Play, { className: "h-4 w-4" })
|
|
59049
|
+
}
|
|
59050
|
+
) }),
|
|
59051
|
+
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "Play video" }) })
|
|
59052
|
+
] }) })
|
|
59053
|
+
] })
|
|
59054
|
+
] });
|
|
58898
59055
|
}
|
|
58899
59056
|
const CountryFlag = ({ countryCode: e, className: t = "" }) => {
|
|
58900
59057
|
const [n, o] = useState(null), [l, u] = useState(!1);
|
|
@@ -58916,111 +59073,632 @@ const CountryFlag = ({ countryCode: e, className: t = "" }) => {
|
|
|
58916
59073
|
}
|
|
58917
59074
|
);
|
|
58918
59075
|
};
|
|
58919
|
-
function
|
|
58920
|
-
|
|
58921
|
-
|
|
58922
|
-
|
|
58923
|
-
|
|
58924
|
-
|
|
58925
|
-
|
|
58926
|
-
|
|
58927
|
-
|
|
58928
|
-
|
|
58929
|
-
|
|
58930
|
-
|
|
58931
|
-
|
|
58932
|
-
|
|
58933
|
-
|
|
58934
|
-
|
|
58935
|
-
|
|
58936
|
-
|
|
58937
|
-
|
|
58938
|
-
|
|
58939
|
-
|
|
58940
|
-
|
|
58941
|
-
|
|
58942
|
-
|
|
58943
|
-
|
|
58944
|
-
|
|
58945
|
-
|
|
59076
|
+
function ProductCard({
|
|
59077
|
+
item: e,
|
|
59078
|
+
addToCart: t = !1,
|
|
59079
|
+
syncToShopify: n = !1,
|
|
59080
|
+
customAction: o = /* @__PURE__ */ jsx(Fragment, {}),
|
|
59081
|
+
defaultOpportunityNumber: l = "",
|
|
59082
|
+
viewProductLink: u,
|
|
59083
|
+
addToCartAction: d,
|
|
59084
|
+
isAddToCartActionLoading: f = !1,
|
|
59085
|
+
syncToShopifyAction: p,
|
|
59086
|
+
isSyncToShopifyActionLoading: m = !1
|
|
59087
|
+
}) {
|
|
59088
|
+
var Q, ee, ie, ce, ue, pe, de, ve, he, ye, fe;
|
|
59089
|
+
const [g, b] = useState(1), [_, S] = useState(null), [T, E] = useState(0), [C, I] = useState(!1), N = ((Q = e == null ? void 0 : e.Distribution) == null ? void 0 : Q.Cost) || 0, O = ((ee = e == null ? void 0 : e.Distribution) == null ? void 0 : ee.RegularPrice) || 0, V = ((ie = e == null ? void 0 : e.Distribution) == null ? void 0 : ie.Price) || 0;
|
|
59090
|
+
useEffect(() => {
|
|
59091
|
+
b(1), S(null), E(0), I(!1);
|
|
59092
|
+
}, [e == null ? void 0 : e.RandmarSKU]);
|
|
59093
|
+
const [M, R] = useState(null), [D, L] = useState(!1);
|
|
59094
|
+
useEffect(() => {
|
|
59095
|
+
const le = async () => {
|
|
59096
|
+
if (e != null && e.ManufacturerId) {
|
|
59097
|
+
L(!0);
|
|
59098
|
+
try {
|
|
59099
|
+
const oe = await fetch(
|
|
59100
|
+
`https://api.randmar.io/V4/Partner/${e.ManufacturerId}/Account/Logo?width=60&height=40`
|
|
59101
|
+
);
|
|
59102
|
+
if (oe.ok) {
|
|
59103
|
+
const te = await oe.blob();
|
|
59104
|
+
R(URL.createObjectURL(te));
|
|
58946
59105
|
}
|
|
58947
|
-
)
|
|
58948
|
-
|
|
58949
|
-
|
|
58950
|
-
|
|
58951
|
-
|
|
58952
|
-
|
|
58953
|
-
|
|
58954
|
-
|
|
58955
|
-
|
|
58956
|
-
|
|
58957
|
-
|
|
58958
|
-
|
|
58959
|
-
|
|
58960
|
-
|
|
59106
|
+
} catch (oe) {
|
|
59107
|
+
console.error("Failed to load logo:", oe);
|
|
59108
|
+
} finally {
|
|
59109
|
+
L(!1);
|
|
59110
|
+
}
|
|
59111
|
+
}
|
|
59112
|
+
};
|
|
59113
|
+
e != null && e.ManufacturerId && le();
|
|
59114
|
+
}, [e == null ? void 0 : e.ManufacturerId]), useEffect(() => {
|
|
59115
|
+
var le;
|
|
59116
|
+
if (e && l) {
|
|
59117
|
+
const oe = (le = e.Opportunities) == null ? void 0 : le.find((te) => te.BidNumber == l);
|
|
59118
|
+
oe && S(oe);
|
|
59119
|
+
}
|
|
59120
|
+
}, [e, l]), useEffect(() => {
|
|
59121
|
+
if (!e) return;
|
|
59122
|
+
const le = _ != null && _.Price ? _.Price : V;
|
|
59123
|
+
E(O > 0 ? Math.round((O - le) / O * 100) : 0);
|
|
59124
|
+
}, [e, _, V, O]), useEffect(() => {
|
|
59125
|
+
f || b(1);
|
|
59126
|
+
}, [f]);
|
|
59127
|
+
const j = (le) => {
|
|
59128
|
+
if (le.Active !== !0) return !1;
|
|
59129
|
+
const oe = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
|
|
59130
|
+
return !(le.EndDate && le.EndDate.split("T")[0] < oe || le.StartDate && le.StartDate.split("T")[0] > oe);
|
|
59131
|
+
};
|
|
59132
|
+
if (!e)
|
|
59133
|
+
return /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsxs(CardContent, { className: "p-6", children: [
|
|
59134
|
+
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-start mb-3", children: [
|
|
59135
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-7 w-3/4" }),
|
|
59136
|
+
/* @__PURE__ */ jsx("div", { className: "h-10 w-24 flex items-center justify-end ml-4", children: /* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-24 rounded-md" }) })
|
|
59137
|
+
] }),
|
|
59138
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2 mb-4", children: [
|
|
59139
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-6 w-20 rounded-full" }),
|
|
59140
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-6 w-24 rounded-full" }),
|
|
59141
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-6 w-28 rounded-full" })
|
|
59142
|
+
] }),
|
|
59143
|
+
/* @__PURE__ */ jsxs("div", { className: "flex gap-6", children: [
|
|
59144
|
+
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-x-4 gap-y-6 flex-1", children: [
|
|
59145
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
59146
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-12 mb-1" }),
|
|
59147
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-20" })
|
|
59148
|
+
] }),
|
|
59149
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
59150
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-12 mb-1" }),
|
|
59151
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-24" })
|
|
59152
|
+
] }),
|
|
59153
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
59154
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-20 mb-1" }),
|
|
59155
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-16" })
|
|
59156
|
+
] }),
|
|
59157
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
59158
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-12 mb-1" }),
|
|
59159
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-20" })
|
|
59160
|
+
] })
|
|
59161
|
+
] }),
|
|
59162
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ jsx("div", { className: "w-60 h-40", children: /* @__PURE__ */ jsx(Skeleton, { className: "w-full h-full rounded-lg" }) }) })
|
|
59163
|
+
] }),
|
|
59164
|
+
/* @__PURE__ */ jsxs("div", { className: "flex gap-6 mt-4", children: [
|
|
59165
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-1", children: /* @__PURE__ */ jsxs("div", { className: "w-full", children: [
|
|
59166
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-24 mb-3" }),
|
|
59167
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-16 w-full rounded-md" })
|
|
59168
|
+
] }) }),
|
|
59169
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center", children: [
|
|
59170
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-32 rounded-md" }),
|
|
59171
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-24 mt-4" })
|
|
59172
|
+
] })
|
|
59173
|
+
] }),
|
|
59174
|
+
/* @__PURE__ */ jsxs("div", { className: "flex gap-6 mt-4", children: [
|
|
59175
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-start gap-1 mb-2", children: [
|
|
59176
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-32" }),
|
|
59177
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-6 w-24" })
|
|
59178
|
+
] }),
|
|
59179
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 items-center gap-2", children: [
|
|
59180
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-24 rounded-md" }),
|
|
59181
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 flex-1 rounded-md" })
|
|
59182
|
+
] })
|
|
59183
|
+
] })
|
|
59184
|
+
] }) });
|
|
59185
|
+
const q = (e == null ? void 0 : e.Opportunities) || [], F = q.length > 0, H = () => {
|
|
59186
|
+
if (g == null) {
|
|
59187
|
+
b(1);
|
|
59188
|
+
return;
|
|
59189
|
+
}
|
|
59190
|
+
g > 1 && b(g - 1);
|
|
59191
|
+
}, U = () => {
|
|
59192
|
+
if (g == null) {
|
|
59193
|
+
b(1);
|
|
59194
|
+
return;
|
|
59195
|
+
}
|
|
59196
|
+
b(g + 1);
|
|
59197
|
+
}, G = (le) => {
|
|
59198
|
+
const oe = parseInt(le.target.value, 10);
|
|
59199
|
+
if (!isNaN(oe) && oe > 0) {
|
|
59200
|
+
b(oe);
|
|
59201
|
+
return;
|
|
59202
|
+
}
|
|
59203
|
+
b(void 0);
|
|
59204
|
+
}, J = () => {
|
|
59205
|
+
(g == null || g < 1) && b(1);
|
|
59206
|
+
}, Z = ((ue = (ce = e.Distribution) == null ? void 0 : ce.Inventory) == null ? void 0 : ue.reduce((le, oe) => le + (oe.AvailableQuantity || 0), 0)) || 0, ae = (le) => {
|
|
59207
|
+
try {
|
|
59208
|
+
return new Date(le).toLocaleDateString("en-US", { year: "numeric", month: "short", day: "numeric" });
|
|
59209
|
+
} catch (oe) {
|
|
59210
|
+
return console.error(oe), le.split("T")[0] || "N/A";
|
|
59211
|
+
}
|
|
59212
|
+
}, W = () => {
|
|
59213
|
+
d && d({ quantity: g ?? 1, bidNumber: (_ == null ? void 0 : _.BidNumber) ?? null });
|
|
59214
|
+
};
|
|
59215
|
+
return /* @__PURE__ */ jsx(Card, { className: "hover:shadow-lg transition-shadow", children: /* @__PURE__ */ jsxs(CardContent, { className: "p-6", children: [
|
|
59216
|
+
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-start mb-3", children: [
|
|
59217
|
+
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-xl", children: e.Title || e.RandmarTitle }),
|
|
59218
|
+
/* @__PURE__ */ jsx("div", { className: "h-10 w-24 flex items-center justify-end ml-4", children: D ? /* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-24 rounded-md" }) : M && /* @__PURE__ */ jsx(
|
|
59219
|
+
"img",
|
|
59220
|
+
{
|
|
59221
|
+
src: M,
|
|
59222
|
+
alt: e.ManufacturerName ?? "",
|
|
59223
|
+
className: "max-h-10 max-w-24 object-contain"
|
|
59224
|
+
}
|
|
59225
|
+
) })
|
|
59226
|
+
] }),
|
|
59227
|
+
/* @__PURE__ */ jsxs("div", { className: "flex gap-6", children: [
|
|
59228
|
+
/* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
|
|
59229
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2 mb-4", children: [
|
|
59230
|
+
e.State && /* @__PURE__ */ jsxs(
|
|
59231
|
+
Badge,
|
|
58961
59232
|
{
|
|
58962
|
-
|
|
58963
|
-
|
|
58964
|
-
className: "collapse md:visible",
|
|
58965
|
-
onClick: () => setTimeout(() => {
|
|
58966
|
-
var _;
|
|
58967
|
-
return (_ = m.current) == null ? void 0 : _.focus();
|
|
58968
|
-
}, 50),
|
|
59233
|
+
variant: "outline",
|
|
59234
|
+
className: `rounded-full px-3 ${e.State === "Active" ? "bg-green-50 text-green-700 hover:bg-green-50" : "bg-red-50 text-red-700 hover:bg-red-50"}`,
|
|
58969
59235
|
children: [
|
|
58970
|
-
/* @__PURE__ */ jsx(
|
|
58971
|
-
"
|
|
59236
|
+
/* @__PURE__ */ jsx(Check, { size: "12", className: "mr-1.5" }),
|
|
59237
|
+
" ",
|
|
59238
|
+
e.State
|
|
58972
59239
|
]
|
|
58973
59240
|
}
|
|
58974
|
-
)
|
|
58975
|
-
/* @__PURE__ */
|
|
58976
|
-
|
|
58977
|
-
|
|
58978
|
-
|
|
58979
|
-
|
|
58980
|
-
|
|
58981
|
-
|
|
58982
|
-
|
|
58983
|
-
|
|
58984
|
-
|
|
58985
|
-
|
|
58986
|
-
|
|
58987
|
-
|
|
58988
|
-
|
|
58989
|
-
|
|
58990
|
-
|
|
58991
|
-
|
|
58992
|
-
|
|
58993
|
-
|
|
58994
|
-
|
|
58995
|
-
|
|
58996
|
-
|
|
58997
|
-
|
|
58998
|
-
|
|
58999
|
-
|
|
59000
|
-
|
|
59001
|
-
|
|
59002
|
-
|
|
59003
|
-
|
|
59004
|
-
|
|
59005
|
-
|
|
59006
|
-
|
|
59007
|
-
|
|
59008
|
-
|
|
59009
|
-
|
|
59010
|
-
|
|
59011
|
-
|
|
59012
|
-
|
|
59013
|
-
|
|
59014
|
-
|
|
59015
|
-
|
|
59016
|
-
|
|
59017
|
-
|
|
59018
|
-
|
|
59019
|
-
|
|
59020
|
-
|
|
59021
|
-
|
|
59022
|
-
|
|
59023
|
-
|
|
59241
|
+
),
|
|
59242
|
+
/* @__PURE__ */ jsxs(
|
|
59243
|
+
Badge,
|
|
59244
|
+
{
|
|
59245
|
+
variant: "outline",
|
|
59246
|
+
className: `rounded-full px-3 ${e.SerialNumber ? "bg-green-50 text-green-700 hover:bg-green-50" : "bg-yellow-50 text-yellow-700 hover:bg-yellow-50"}`,
|
|
59247
|
+
children: [
|
|
59248
|
+
/* @__PURE__ */ jsx(QrCode, { size: "12", className: "mr-1.5" }),
|
|
59249
|
+
" ",
|
|
59250
|
+
e.SerialNumber ? "Serialized" : "Unserialized"
|
|
59251
|
+
]
|
|
59252
|
+
}
|
|
59253
|
+
),
|
|
59254
|
+
e.TransparencyCode && /* @__PURE__ */ jsxs(Badge, { variant: "outline", className: "rounded-full px-3 bg-green-50 text-green-700 hover:bg-green-50", children: [
|
|
59255
|
+
/* @__PURE__ */ jsx(CircleDashed, { size: "12", className: "mr-1.5" }),
|
|
59256
|
+
" Transparency Code"
|
|
59257
|
+
] }),
|
|
59258
|
+
e.AvailableToBuy !== void 0 && /* @__PURE__ */ jsxs(
|
|
59259
|
+
Badge,
|
|
59260
|
+
{
|
|
59261
|
+
variant: "outline",
|
|
59262
|
+
className: `rounded-full px-3 ${e.AvailableToBuy ? "bg-green-50 text-green-700 hover:bg-green-50" : "bg-red-50 text-red-700 hover:bg-red-50"}`,
|
|
59263
|
+
children: [
|
|
59264
|
+
/* @__PURE__ */ jsx(ShoppingCart, { size: "12", className: "mr-1.5" }),
|
|
59265
|
+
" ",
|
|
59266
|
+
e.AvailableToBuy ? "Available" : "Unavailable"
|
|
59267
|
+
]
|
|
59268
|
+
}
|
|
59269
|
+
),
|
|
59270
|
+
e.ManufacturerCategory !== void 0 && /* @__PURE__ */ jsxs(
|
|
59271
|
+
Badge,
|
|
59272
|
+
{
|
|
59273
|
+
variant: "outline",
|
|
59274
|
+
className: `rounded-full px-3 ${(pe = e.ManufacturerCategory) != null && pe.QualificationRequired ? "bg-blue-50 text-blue-700 hover:bg-blue-50" : "bg-neutral-50 text-neutral-700 hover:bg-neutral-50"}`,
|
|
59275
|
+
children: [
|
|
59276
|
+
/* @__PURE__ */ jsx(ShieldCheck, { size: "12", className: "mr-1.5" }),
|
|
59277
|
+
" ",
|
|
59278
|
+
(de = e.ManufacturerCategory) != null && de.QualificationRequired ? "Qualified Only" : "Available to all"
|
|
59279
|
+
]
|
|
59280
|
+
}
|
|
59281
|
+
),
|
|
59282
|
+
e.ManufacturerId && /* @__PURE__ */ jsxs(
|
|
59283
|
+
Badge,
|
|
59284
|
+
{
|
|
59285
|
+
variant: "outline",
|
|
59286
|
+
className: `rounded-full px-3 ${e.AutoUpdate ? "bg-green-50 text-green-700 hover:bg-green-50" : "bg-red-50 text-red-700 hover:bg-red-50"}`,
|
|
59287
|
+
children: [
|
|
59288
|
+
/* @__PURE__ */ jsx(RefreshCw, { size: "12", className: "mr-1.5" }),
|
|
59289
|
+
" ",
|
|
59290
|
+
e.AutoUpdate ? `Automatic Reorder (${e.MasterCarton})` : "Manually Reorders"
|
|
59291
|
+
]
|
|
59292
|
+
}
|
|
59293
|
+
),
|
|
59294
|
+
/* @__PURE__ */ jsxs(
|
|
59295
|
+
Badge,
|
|
59296
|
+
{
|
|
59297
|
+
variant: "outline",
|
|
59298
|
+
className: `rounded-full px-3 ${e.BodyHTML && e.Title && e.MAP ? "bg-green-50 text-green-700 hover:bg-green-50" : "bg-red-50 text-red-700 hover:bg-red-50"}`,
|
|
59299
|
+
children: [
|
|
59300
|
+
/* @__PURE__ */ jsx(Store, { size: "12", className: "mr-1.5" }),
|
|
59301
|
+
" ",
|
|
59302
|
+
e.BodyHTML && e.Title && e.MAP ? "Shopify Ready" : "Not Shopify Ready"
|
|
59303
|
+
]
|
|
59304
|
+
}
|
|
59305
|
+
)
|
|
59306
|
+
] }),
|
|
59307
|
+
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-x-4 gap-y-4 flex-1", children: [
|
|
59308
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
59309
|
+
/* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: "MPN" }),
|
|
59310
|
+
/* @__PURE__ */ jsx("div", { className: "font-medium", children: e.MPN || "N/A" })
|
|
59311
|
+
] }),
|
|
59312
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
59313
|
+
/* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: "UPC" }),
|
|
59314
|
+
/* @__PURE__ */ jsx("div", { className: "font-medium", children: e.UPC || "N/A" })
|
|
59315
|
+
] }),
|
|
59316
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
59317
|
+
/* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: "Unit Weight" }),
|
|
59318
|
+
/* @__PURE__ */ jsx("div", { className: "font-medium", children: e.UnitWeight ? `${e.UnitWeight} lbs` : "N/A" })
|
|
59319
|
+
] }),
|
|
59320
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
59321
|
+
/* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: "MAP" }),
|
|
59322
|
+
/* @__PURE__ */ jsx("div", { className: "font-medium", children: e.MAP ? "$" + e.MAP.toFixed(2) : "N/A" })
|
|
59323
|
+
] }),
|
|
59324
|
+
e.CountryCodeOfOrigin && /* @__PURE__ */ jsxs("div", { children: [
|
|
59325
|
+
/* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: "Origin" }),
|
|
59326
|
+
/* @__PURE__ */ jsxs("div", { className: "font-medium flex items-center", children: [
|
|
59327
|
+
/* @__PURE__ */ jsx(
|
|
59328
|
+
CountryFlag,
|
|
59329
|
+
{
|
|
59330
|
+
countryCode: e.CountryCodeOfOrigin,
|
|
59331
|
+
className: "mr-2"
|
|
59332
|
+
}
|
|
59333
|
+
),
|
|
59334
|
+
e.CountryCodeOfOrigin
|
|
59335
|
+
] })
|
|
59336
|
+
] })
|
|
59337
|
+
] })
|
|
59338
|
+
] }),
|
|
59339
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ jsx(ProductImage, { randmarSKU: e.RandmarSKU || "", alt: e.RandmarTitle || "" }) })
|
|
59340
|
+
] }),
|
|
59341
|
+
/* @__PURE__ */ jsxs("div", { className: "flex gap-6 mt-4", children: [
|
|
59342
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-1", children: F && e.Distribution && /* @__PURE__ */ jsxs("div", { className: "w-full", children: [
|
|
59343
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center", children: "You have " + q.length + (q.length > 1 ? " opportunities" : " opportunity") + " for this product:" }),
|
|
59344
|
+
/* @__PURE__ */ jsx("div", { className: "space-y-2 max-h-[200px] overflow-y-auto p-2 mt-1", children: q.map((le, oe) => {
|
|
59345
|
+
var te;
|
|
59346
|
+
return /* @__PURE__ */ jsxs(
|
|
59347
|
+
"div",
|
|
59348
|
+
{
|
|
59349
|
+
className: `flex justify-between items-center rounded-lg transition-colors py-2 px-4 bg-purple-100 border border-muted
|
|
59350
|
+
${le.BidNumber == (_ == null ? void 0 : _.BidNumber) ? "cursor-pointer border-2 border-purple-900" : j(le) ? "hover:bg-purple-200 cursor-pointer" : "!bg-neutral-50"}
|
|
59351
|
+
`,
|
|
59352
|
+
onClick: () => {
|
|
59353
|
+
j(le) && S(
|
|
59354
|
+
le.BidNumber != (_ == null ? void 0 : _.BidNumber) ? le : null
|
|
59355
|
+
);
|
|
59356
|
+
},
|
|
59357
|
+
children: [
|
|
59358
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
|
|
59359
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium text-sm", children: le.Opportunity }),
|
|
59360
|
+
/* @__PURE__ */ jsxs("span", { className: "text-xs text-neutral-900", children: [
|
|
59361
|
+
le.BidNumber,
|
|
59362
|
+
" ",
|
|
59363
|
+
!j(le) && /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "text-xs mx-1 h-5 bg-gray-100", children: "Currently unavailable" })
|
|
59364
|
+
] })
|
|
59365
|
+
] }) }),
|
|
59366
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-end", children: [
|
|
59367
|
+
/* @__PURE__ */ jsxs("span", { className: "font-semibold", children: [
|
|
59368
|
+
"$",
|
|
59369
|
+
(te = le.Price) == null ? void 0 : te.toFixed(2)
|
|
59370
|
+
] }),
|
|
59371
|
+
le.Rebate && le.Rebate > 0 && /* @__PURE__ */ jsxs("span", { className: "text-xs text-green-600", children: [
|
|
59372
|
+
"Rebate: $",
|
|
59373
|
+
le.Rebate.toFixed(2)
|
|
59374
|
+
] }),
|
|
59375
|
+
le.EndDate && /* @__PURE__ */ jsxs("span", { className: "text-xs text-neutral-600", children: [
|
|
59376
|
+
"Ends: ",
|
|
59377
|
+
ae(le.EndDate)
|
|
59378
|
+
] })
|
|
59379
|
+
] })
|
|
59380
|
+
]
|
|
59381
|
+
},
|
|
59382
|
+
oe
|
|
59383
|
+
);
|
|
59384
|
+
}) })
|
|
59385
|
+
] }) }),
|
|
59386
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center", children: [
|
|
59387
|
+
u && /* @__PURE__ */ jsx(Link, { to: u, children: /* @__PURE__ */ jsxs(Button, { variant: "secondary", children: [
|
|
59388
|
+
/* @__PURE__ */ jsx(Eye, { className: "mr-2" }),
|
|
59389
|
+
"View Product"
|
|
59390
|
+
] }) }),
|
|
59391
|
+
((ve = e.Distribution) == null ? void 0 : ve.Inventory) && /* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsxs(Dialog, { open: C, onOpenChange: I, children: [
|
|
59392
|
+
/* @__PURE__ */ jsx(DialogTrigger, { asChild: !0, children: /* @__PURE__ */ jsxs(
|
|
59393
|
+
Button,
|
|
59394
|
+
{
|
|
59395
|
+
variant: "ghost",
|
|
59396
|
+
className: `flex items-center text-sm ${Z > 0 ? "text-green-700" : "text-red-700"}`,
|
|
59397
|
+
children: [
|
|
59398
|
+
/* @__PURE__ */ jsx(Warehouse, { size: "16", className: "mr-2" }),
|
|
59399
|
+
Z > 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
59400
|
+
Z,
|
|
59401
|
+
" in stock"
|
|
59402
|
+
] }) : /* @__PURE__ */ jsx(Fragment, { children: "Out of stock" })
|
|
59403
|
+
]
|
|
59404
|
+
}
|
|
59405
|
+
) }),
|
|
59406
|
+
/* @__PURE__ */ jsxs(DialogContent, { className: "max-w-4xl", children: [
|
|
59407
|
+
/* @__PURE__ */ jsx(DialogHeader, { children: /* @__PURE__ */ jsxs(DialogTitle, { className: "flex items-center", children: [
|
|
59408
|
+
/* @__PURE__ */ jsx(Warehouse, { className: "mr-2", size: 18 }),
|
|
59409
|
+
"Inventory Information"
|
|
59410
|
+
] }) }),
|
|
59411
|
+
/* @__PURE__ */ jsx(ProductInventoryGrid, { inventory: e.Distribution.Inventory })
|
|
59412
|
+
] })
|
|
59413
|
+
] }) })
|
|
59414
|
+
] })
|
|
59415
|
+
] }),
|
|
59416
|
+
e.Distribution && /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-end mt-4", children: [
|
|
59417
|
+
/* @__PURE__ */ jsx("div", { className: "flex-shrink-1 flex flex-col items-start gap-1", children: N > 0 ? /* @__PURE__ */ jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsxs("span", { className: "text-2xl font-bold whitespace-nowrap", children: [
|
|
59418
|
+
/* @__PURE__ */ jsx("span", { children: "Cost: $" }),
|
|
59419
|
+
N.toFixed(2),
|
|
59420
|
+
/* @__PURE__ */ jsx("span", { children: " CAD" })
|
|
59421
|
+
] }) }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
59422
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center flex-wrap", children: [
|
|
59423
|
+
/* @__PURE__ */ jsxs("span", { className: "text-2xl font-bold whitespace-nowrap", children: [
|
|
59424
|
+
/* @__PURE__ */ jsx("span", { children: "$" }),
|
|
59425
|
+
_ ? (ye = (he = e.Opportunities) == null ? void 0 : he.find((le) => le.BidNumber == _.BidNumber)) == null ? void 0 : ye.Price : V.toFixed(2),
|
|
59426
|
+
/* @__PURE__ */ jsx("span", { children: " CAD" })
|
|
59427
|
+
] }),
|
|
59428
|
+
T > 0 && /* @__PURE__ */ jsxs("span", { className: "text-muted-foreground line-through ml-2 whitespace-nowrap", children: [
|
|
59429
|
+
"$",
|
|
59430
|
+
O.toFixed(2)
|
|
59431
|
+
] })
|
|
59432
|
+
] }),
|
|
59433
|
+
T > 0 && /* @__PURE__ */ jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsxs(Badge, { variant: "outline", className: "bg-red-50 text-red-700 rounded-full px-3 whitespace-nowrap", children: [
|
|
59434
|
+
/* @__PURE__ */ jsxs("span", { children: [
|
|
59435
|
+
T,
|
|
59436
|
+
"% OFF"
|
|
59437
|
+
] }),
|
|
59438
|
+
((fe = e.InstantRebate) == null ? void 0 : fe.EndDate) && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
59439
|
+
/* @__PURE__ */ jsx("span", { className: "mx-1.5", children: "●" }),
|
|
59440
|
+
" Ends ",
|
|
59441
|
+
e.InstantRebate.EndDate.split("T")[0]
|
|
59442
|
+
] }),
|
|
59443
|
+
(_ == null ? void 0 : _.EndDate) && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
59444
|
+
/* @__PURE__ */ jsx("span", { className: "mx-1.5", children: "●" }),
|
|
59445
|
+
" Ends ",
|
|
59446
|
+
_.EndDate.split("T")[0]
|
|
59447
|
+
] })
|
|
59448
|
+
] }) })
|
|
59449
|
+
] }) }),
|
|
59450
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-shrink-0 gap-2 ml-4", children: [
|
|
59451
|
+
typeof t < "u" && t && /* @__PURE__ */ jsxs("div", { className: "flex items-center border rounded-md", children: [
|
|
59452
|
+
/* @__PURE__ */ jsx(
|
|
59453
|
+
Button,
|
|
59454
|
+
{
|
|
59455
|
+
variant: "ghost",
|
|
59456
|
+
size: "icon",
|
|
59457
|
+
className: "rounded-r-none",
|
|
59458
|
+
onClick: H,
|
|
59459
|
+
disabled: typeof g < "u" && (g <= 1 || !e.AvailableToBuy || f || !d),
|
|
59460
|
+
children: "-"
|
|
59461
|
+
}
|
|
59462
|
+
),
|
|
59463
|
+
/* @__PURE__ */ jsx(
|
|
59464
|
+
"input",
|
|
59465
|
+
{
|
|
59466
|
+
value: g,
|
|
59467
|
+
onChange: G,
|
|
59468
|
+
onBlur: J,
|
|
59469
|
+
onClick: (le) => le.currentTarget.select(),
|
|
59470
|
+
className: `w-12 text-center border-0 focus:ring-0 focus:outline-none ${!e.AvailableToBuy || f || !d ? "text-gray-400" : ""}`,
|
|
59471
|
+
disabled: !e.AvailableToBuy || f || !d
|
|
59472
|
+
}
|
|
59473
|
+
),
|
|
59474
|
+
/* @__PURE__ */ jsx(
|
|
59475
|
+
Button,
|
|
59476
|
+
{
|
|
59477
|
+
variant: "ghost",
|
|
59478
|
+
size: "icon",
|
|
59479
|
+
className: "rounded-l-none",
|
|
59480
|
+
onClick: U,
|
|
59481
|
+
disabled: !e.AvailableToBuy || f || !d,
|
|
59482
|
+
children: "+"
|
|
59483
|
+
}
|
|
59484
|
+
)
|
|
59485
|
+
] }),
|
|
59486
|
+
typeof t < "u" && t && /* @__PURE__ */ jsx(
|
|
59487
|
+
Button,
|
|
59488
|
+
{
|
|
59489
|
+
className: "gap-2 whitespace-nowrap",
|
|
59490
|
+
onClick: W,
|
|
59491
|
+
disabled: !e.AvailableToBuy || f || !d,
|
|
59492
|
+
children: f ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
59493
|
+
/* @__PURE__ */ jsx(LoaderCircle, { className: "h-4 w-4 animate-spin" }),
|
|
59494
|
+
"Adding..."
|
|
59495
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
59496
|
+
/* @__PURE__ */ jsx(ShoppingCart, { className: "mr-2" }),
|
|
59497
|
+
"Add to Cart"
|
|
59498
|
+
] })
|
|
59499
|
+
}
|
|
59500
|
+
),
|
|
59501
|
+
n && /* @__PURE__ */ jsx(
|
|
59502
|
+
Button,
|
|
59503
|
+
{
|
|
59504
|
+
className: "gap-2 whitespace-nowrap bg-green-600 hover:bg-green-700",
|
|
59505
|
+
onClick: p,
|
|
59506
|
+
disabled: m || !p,
|
|
59507
|
+
children: m ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
59508
|
+
/* @__PURE__ */ jsx(LoaderCircle, { className: "h-4 w-4 animate-spin" }),
|
|
59509
|
+
"Syncing..."
|
|
59510
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
59511
|
+
/* @__PURE__ */ jsx(ShoppingCart, { className: "mr-2" }),
|
|
59512
|
+
"Sync to Shopify"
|
|
59513
|
+
] })
|
|
59514
|
+
}
|
|
59515
|
+
),
|
|
59516
|
+
o
|
|
59517
|
+
] })
|
|
59518
|
+
] })
|
|
59519
|
+
] }) });
|
|
59520
|
+
}
|
|
59521
|
+
const complexComponents = [
|
|
59522
|
+
`----
|
|
59523
|
+
PartnerCard: For data that fits this shape:
|
|
59524
|
+
{ "ApplicationId": "19022", "PublicName": "BiOSS", "VoiceName": null, "VoiceStyle": null, "About": "example", "SceneName": "Kitchen Counter", "IsReseller": true, "IsManufacturer": true, "IsSalesAgency": false, "Socials": [ { "ApplicationId": "19022", "SocialNetwork": "Facebook", "Tag": "@bioss.ca" }, { "ApplicationId": "19022", "SocialNetwork": "Instagram", "Tag": "@bioss.ca" }, { "ApplicationId": "19022", "SocialNetwork": "LinkedIn", "Tag": "@biossinc" }, { "ApplicationId": "19022", "SocialNetwork": "Youtube", "Tag": "@biosssolutionssanitairessa4095" } ], "Manufacturer": null, "Reseller": null }
|
|
59525
|
+
Use <PartnerCard account={data}>`,
|
|
59526
|
+
`----
|
|
59527
|
+
ManufacturerCard: For data that fits this shape:
|
|
59528
|
+
{ "ManufacturerId": "19022", "Website": "https://www.example.ca", "PublicName": "BiOSS", "LastUpdatedDate": 20241217, "AutoReorderDate": -1, "AutoUpdate": false, "PublicEmail": "example@example.ca", "DefaultWeeksOfStocking": 4, "Tags": "Health & Cleaning", "CreationDate": 20220127, "PartnerPortal": "", "PartnerRegistrationLink": "", "About": "example...", "OpenToWork": false, "PublicResourcesLink": "https://drive.google.com/drive/folders/example", "CurrencyCode": "CAD", "YoutubePlaylist": "null" }
|
|
59529
|
+
Use <ManufacturerCard manufacturer={data}>`,
|
|
59530
|
+
`----
|
|
59531
|
+
ResellerCard: For data that fits this shape:
|
|
59532
|
+
{ "ResellerId": "Y8IUSIHNG", "Name": "Montmorency", "OnHold": 0, "Address1": "475 Bd De L'avenir", "Address2": "", "PublicName": "Mccormick Casey LLCC", "City": "Laval", "Province": "QC", "PostalCode": "H7N 5H9", "Country": "CA", "PriceProfile": 3, "Language": "ENG", "Website": "", "Terms": "STRIPE", "DefaultWarehouse": "MTL", "Domain": "", "AREmail": "", "POEmail": "", "ShippingProfile": "E", "ShipVia": "", "ShipViaDescription": "", "Phone": "", "Priority": "Starter", "AllowSystemIntegration": 1, "CreditLimit": 1000.000, "PriceList": "DEF", "ContactName": "", "CreationDate": 20250310.0, "LastInvoiceDate": 0.0, "PublicEmail": "", "CurrencyCode": "CAD", "AllowBackorderQuantities": true, "AllowPartialShipments": true, "FiscalYearMonthStart": 1, "About": "", "Qualifications": [], "SalesData": null }
|
|
59533
|
+
Use <ResellerCard reseller={data}>`,
|
|
59534
|
+
`----
|
|
59535
|
+
Sometimes, manufacturer and reseller data can be embed into a partner object: For example, for data that fits this shape:
|
|
59536
|
+
{ "ApplicationId": "19022", "PublicName": "BiOSS", "VoiceName": null, "VoiceStyle": null, "About": "example", "SceneName": "Kitchen Counter", "IsReseller": true, "IsManufacturer": true, "IsSalesAgency": false, "Socials": [ { "ApplicationId": "19022", "SocialNetwork": "Facebook", "Tag": "@bioss.ca" }, { "ApplicationId": "19022", "SocialNetwork": "Instagram", "Tag": "@bioss.ca" }, { "ApplicationId": "19022", "SocialNetwork": "LinkedIn", "Tag": "@biossinc" }, { "ApplicationId": "19022", "SocialNetwork": "Youtube", "Tag": "@biosssolutionssanitairessa4095" } ], "Manufacturer": { "ManufacturerId": "19022", "Website": "https://www.example.ca", "PublicName": "BiOSS", "LastUpdatedDate": 20241217, "AutoReorderDate": -1, "AutoUpdate": false, "PublicEmail": "example@example.ca", "DefaultWeeksOfStocking": 4, "Tags": "Health & Cleaning", "CreationDate": 20220127, "PartnerPortal": "", "PartnerRegistrationLink": "", "About": "example...", "OpenToWork": false, "PublicResourcesLink": "https://drive.google.com/drive/folders/example", "CurrencyCode": "CAD", "YoutubePlaylist": "null" }, "Reseller": null }
|
|
59537
|
+
Use both <PartnerCard account={data}> and <ManufacturerCard manufacturer={data.Manufacturer}>`,
|
|
59538
|
+
`----
|
|
59539
|
+
ProductCard, for data that fits this shape:
|
|
59540
|
+
{ "RandmarSKU": "3007864", "RandmarTitle": "CTTN450 COMPATIBLE TN450 TONER", "Category": "CT", "UnitWeight": 1.5500, "UPC": "628277000035", "ManufacturerName": "Balloon Brand", "ProductType": "Toners", "AutoUpdate": 1, "CreatedBy": "", "LastMaintainedDate": 20190314.0, "Title": "CTTN450 COMPATIBLE TN450 TONER", "BodyHTML": "<p>CTTN450 COMPATIBLE TN450 TONER</p>", "MAP": 17.5500, "ManufacturerId": "90200", "State": "Active", "MPN": "CTTN450", "MasterCarton": 12, "SkidQuantity": null, "SerialNumber": true, "OpportunityOnly": false, "VoiceoverCaption": "example...", "SceneName": "Top of Clouds", "Require3DScan": false, "TransparencyCode": false, "CountryCodeOfOrigin": null, "UnitLength": null, "UnitWidth": null, "UnitHeight": null, "Distribution": { "Price": 14.29, "RegularPrice": 14.29, "MAP": 17.55, "Currency": "CAD", "ExchangeRate": 1.000000000, "Inventory": [ { "RandmarSKU": "3007864", "WarehouseId": "EDM", "WarehouseType": "Fulfillment Center", "Name": "Randmar Edmonton", "City": "Edmonton", "Province": "AB", "Country": "CA", "AvailableQuantity": 7, "PurchaseOrderQuantity": 0, "BinLocation": "" }, { "RandmarSKU": "3007864", "WarehouseId": "MTL", "WarehouseType": "Fulfillment Center", "Name": "Randmar Montreal", "City": "Pierrefonds", "Province": "QC", "Country": "CA", "AvailableQuantity": 45, "PurchaseOrderQuantity": 0, "BinLocation": "C3EB" }, { "RandmarSKU": "3007864", "WarehouseId": "TOR", "WarehouseType": "Fulfillment Center", "Name": "Randmar Toronto", "City": "Mississauga", "Province": "ON", "Country": "CA", "AvailableQuantity": 15, "PurchaseOrderQuantity": 0, "BinLocation": "A6A" }, { "RandmarSKU": "3007864", "WarehouseId": "VAN", "WarehouseType": "Fulfillment Center", "Name": "Randmar Vancouver", "City": "Richmond", "Province": "BC", "Country": "CA", "AvailableQuantity": 8, "PurchaseOrderQuantity": 0, "BinLocation": "" } ] }, "ManufacturerCategory": { "ManufacturerId": "90200", "CategoryCode": "CT", "CategoryName": "Toners", "Starred": false, "AutoReorder": true, "QualificationRequired": false, "Niche": "Print" }, "InstantRebate": null, "Opportunities": null, "AvailableToBuy": true }
|
|
59541
|
+
Use <ProductCard item={data}>`
|
|
59542
|
+
], basicComponents = [
|
|
59543
|
+
"<Card> <CardHeader> <CardTitle>...</CardTitle> <CardDescription>...</CardDescription> </CardHeader> <CardContent> ... </CardContent> </Card>",
|
|
59544
|
+
"<Badge>...</Badge>",
|
|
59545
|
+
'<Tabs defaultValue="eg1"> <TabsList> <TabsTrigger value="eg1">Example1</TabsTrigger> <TabsTrigger value="eg2">Example2</TabsTrigger> </TabsList> <TabsContent value="eg1"> ... </TabsContent> <TabsContent value="eg2"> ... </TabsContent> </Tabs>',
|
|
59546
|
+
"<ScrollArea>...</ScrollArea>",
|
|
59547
|
+
"<ScrollArea orientation='horizontal'>...</ScrollArea>"
|
|
59548
|
+
], GetJSXFromAI = async (e, t, n, o = 3) => {
|
|
59549
|
+
const l = "In addition to basic html tags, You have access to these beautiful Handmade Components:", u = "You also have access to these few Shadcn UI components:", d = "Here is the data to display to the user (If a Handmade Component is a good fit for the data, use it. Otherwise, use regular html tags) (You have access to this data object in React via the data variable):", f = "Only output a single JSX code snippet. Start with <> and end with </>. All other code will be ignored, so make sure to place all CSS styles inline. Use CSS flex layouts when there is a lot of stuff to display.", p = JSON.stringify(n), m = [t, l, ...complexComponents, u, ...basicComponents, f, d, p, f].join(`\r
|
|
59550
|
+
`), _ = await new GoogleGenAI({ apiKey: e }).chats.create({
|
|
59551
|
+
model: "gemini-2.0-flash-lite"
|
|
59552
|
+
}).sendMessage({ message: m }), S = trimJSXString(_.text ?? "");
|
|
59553
|
+
return S || (o == 0 ? "<p>Failed to generate. Reload the page.</p>" : await GetJSXFromAI(e, t, n, o - 1));
|
|
59554
|
+
};
|
|
59555
|
+
function trimJSXString(e) {
|
|
59556
|
+
const t = e.indexOf("<"), n = e.lastIndexOf("</");
|
|
59557
|
+
return t === -1 || n === -1 ? "" : e.slice(t, e.indexOf(">", n) + 1);
|
|
59558
|
+
}
|
|
59559
|
+
function AiGeneratedContent(e) {
|
|
59560
|
+
const [t, n] = useState(""), { apiKey: o } = useApiKey();
|
|
59561
|
+
return useEffect(() => {
|
|
59562
|
+
if (!o || !e.prompt || !e.data) return;
|
|
59563
|
+
n("");
|
|
59564
|
+
let l = !1;
|
|
59565
|
+
return GetJSXFromAI(o, e.prompt, e.data).then((u) => {
|
|
59566
|
+
l || n(u);
|
|
59567
|
+
}), () => {
|
|
59568
|
+
l = !0;
|
|
59569
|
+
};
|
|
59570
|
+
}, [e.prompt, e.data, n, o]), t ? /* @__PURE__ */ jsx(
|
|
59571
|
+
source_default,
|
|
59572
|
+
{
|
|
59573
|
+
bindings: {
|
|
59574
|
+
data: e.data
|
|
59575
|
+
},
|
|
59576
|
+
components: {
|
|
59577
|
+
ResellerCard,
|
|
59578
|
+
ManufacturerCard,
|
|
59579
|
+
PartnerCard,
|
|
59580
|
+
ProductCard,
|
|
59581
|
+
Card,
|
|
59582
|
+
CardHeader,
|
|
59583
|
+
CardTitle,
|
|
59584
|
+
CardContent,
|
|
59585
|
+
CardDescription,
|
|
59586
|
+
Badge,
|
|
59587
|
+
Tabs,
|
|
59588
|
+
TabsList,
|
|
59589
|
+
TabsContent,
|
|
59590
|
+
TabsTrigger,
|
|
59591
|
+
ScrollArea
|
|
59592
|
+
},
|
|
59593
|
+
jsx: t
|
|
59594
|
+
}
|
|
59595
|
+
) : /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(Skeleton, { className: "h-32 w-32", children: /* @__PURE__ */ jsx(Bot, { className: "m-auto align-middle h-full" }) }) });
|
|
59596
|
+
}
|
|
59597
|
+
function GeneralDocumentCard({ document: e, loading: t = !1 }) {
|
|
59598
|
+
return t ? /* @__PURE__ */ jsx("div", { children: "loading..." }) : /* @__PURE__ */ jsxs("div", { children: [
|
|
59599
|
+
"GENERAL DOCUMENT CARD - ",
|
|
59600
|
+
e == null ? void 0 : e.OrderNumber,
|
|
59601
|
+
" for P.O. ",
|
|
59602
|
+
e == null ? void 0 : e.PONumber
|
|
59603
|
+
] });
|
|
59604
|
+
}
|
|
59605
|
+
const Navbar = forwardRef(
|
|
59606
|
+
({ routes: e, footer: t, dashboardTitle: n, withRandmarAssistant: o, chatUserName: l, chatApiKey: u }, d) => {
|
|
59607
|
+
const { appID: f } = useParams(), p = e.filter((_) => _.showInNav), m = useRef(null), g = useRef(null), b = useRef(null);
|
|
59608
|
+
return useImperativeHandle(d, () => ({
|
|
59609
|
+
setActiveChatAndSendMessage: (_, S) => {
|
|
59610
|
+
var T;
|
|
59611
|
+
return (T = b.current) == null || T.click(), setTimeout(() => {
|
|
59612
|
+
var E;
|
|
59613
|
+
(E = m.current) == null || E.focus(), g.current && g.current.setActiveChatAndSendMessage(_, S);
|
|
59614
|
+
}, 100), !0;
|
|
59615
|
+
}
|
|
59616
|
+
})), /* @__PURE__ */ jsxs(Sidebar, { className: "border-r border-sidebar-border", children: [
|
|
59617
|
+
/* @__PURE__ */ jsx(SidebarHeader, { className: "border-b border-sidebar-border px-6 h-16 justify-center bg-sidebar text-sidebar-foreground", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
59618
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx(
|
|
59619
|
+
"img",
|
|
59620
|
+
{
|
|
59621
|
+
src: "https://api.randmar.io/images/RandmarIcon.svg",
|
|
59622
|
+
alt: "Randmar Icon",
|
|
59623
|
+
className: "h-4 w-4 filter brightness-0 saturate-100 invert"
|
|
59624
|
+
}
|
|
59625
|
+
) }),
|
|
59626
|
+
/* @__PURE__ */ jsx("span", { className: "font-semibold text-lg", children: n })
|
|
59627
|
+
] }) }),
|
|
59628
|
+
/* @__PURE__ */ jsx(SidebarContent, { className: "py-4 bg-sidebar text-sidebar-foreground", children: /* @__PURE__ */ jsx(SidebarMenu, { children: p.map((_) => {
|
|
59629
|
+
const S = _.icon, T = `/${_.path.replace(":appID", f ?? "")}`;
|
|
59630
|
+
return /* @__PURE__ */ jsx(SidebarMenuItem, { children: /* @__PURE__ */ jsx(SidebarMenuButton, { asChild: !0, children: /* @__PURE__ */ jsxs(Link, { to: T, className: "transition-colors hover:bg-muted px-6", children: [
|
|
59631
|
+
S && /* @__PURE__ */ jsx(S, { className: "h-4 w-4" }),
|
|
59632
|
+
/* @__PURE__ */ jsx("span", { children: _.label })
|
|
59633
|
+
] }) }) }, _.key);
|
|
59634
|
+
}) }) }),
|
|
59635
|
+
/* @__PURE__ */ jsxs(SidebarFooter, { className: "border-t border-sidebar-border p-4 bg-sidebar-background text-sidebar-foreground", children: [
|
|
59636
|
+
o === !0 && /* @__PURE__ */ jsxs(Dialog, { children: [
|
|
59637
|
+
/* @__PURE__ */ jsx(DialogTrigger, { asChild: !0, children: /* @__PURE__ */ jsxs(
|
|
59638
|
+
Button,
|
|
59639
|
+
{
|
|
59640
|
+
ref: b,
|
|
59641
|
+
size: "lg",
|
|
59642
|
+
className: "collapse md:visible",
|
|
59643
|
+
onClick: () => setTimeout(() => {
|
|
59644
|
+
var _;
|
|
59645
|
+
return (_ = m.current) == null ? void 0 : _.focus();
|
|
59646
|
+
}, 50),
|
|
59647
|
+
children: [
|
|
59648
|
+
/* @__PURE__ */ jsx(Bot, {}),
|
|
59649
|
+
"Assistant"
|
|
59650
|
+
]
|
|
59651
|
+
}
|
|
59652
|
+
) }),
|
|
59653
|
+
/* @__PURE__ */ jsx(DialogContent, { className: "max-w-[85vw] p-0 data-[state=open]:visible data-[state=closed]:invisible", forceMount: !0, animateExit: !1, children: /* @__PURE__ */ jsx(ChatLayout, { ref: g, inputRef: m, userId: f ?? "2", userName: l ?? "Unknown user", apiKey: u ?? "" }) })
|
|
59654
|
+
] }),
|
|
59655
|
+
t
|
|
59656
|
+
] })
|
|
59657
|
+
] });
|
|
59658
|
+
}
|
|
59659
|
+
), Layout = forwardRef(({
|
|
59660
|
+
children: e,
|
|
59661
|
+
rightMenu: t,
|
|
59662
|
+
routes: n,
|
|
59663
|
+
footer: o,
|
|
59664
|
+
handleValidSearch: l,
|
|
59665
|
+
dashboardTitle: u,
|
|
59666
|
+
onSignOut: d,
|
|
59667
|
+
searchPlaceholder: f,
|
|
59668
|
+
withRandmarAssistant: p,
|
|
59669
|
+
chatUserName: m,
|
|
59670
|
+
chatApiKey: g,
|
|
59671
|
+
chatRef: b
|
|
59672
|
+
}, _) => /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(SidebarProvider, { children: /* @__PURE__ */ jsxs("div", { className: "flex grow", children: [
|
|
59673
|
+
/* @__PURE__ */ jsx(
|
|
59674
|
+
Navbar,
|
|
59675
|
+
{
|
|
59676
|
+
routes: n,
|
|
59677
|
+
footer: o,
|
|
59678
|
+
dashboardTitle: u,
|
|
59679
|
+
withRandmarAssistant: p,
|
|
59680
|
+
chatUserName: m,
|
|
59681
|
+
chatApiKey: g,
|
|
59682
|
+
ref: b
|
|
59683
|
+
}
|
|
59684
|
+
),
|
|
59685
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
|
|
59686
|
+
/* @__PURE__ */ jsx(
|
|
59687
|
+
Topbar,
|
|
59688
|
+
{
|
|
59689
|
+
ref: _,
|
|
59690
|
+
onSignOut: d,
|
|
59691
|
+
rightMenu: t,
|
|
59692
|
+
handleValidSearch: l,
|
|
59693
|
+
searchPlaceholder: f
|
|
59694
|
+
}
|
|
59695
|
+
),
|
|
59696
|
+
/* @__PURE__ */ jsx("main", { className: "flex-1 overflow-auto mt-16", children: e }),
|
|
59697
|
+
/* @__PURE__ */ jsx(Toaster, {})
|
|
59698
|
+
] })
|
|
59699
|
+
] }) }) }));
|
|
59700
|
+
Layout.displayName = "Layout";
|
|
59701
|
+
function usePrevious(e) {
|
|
59024
59702
|
const t = React.useRef({ value: e, previous: e });
|
|
59025
59703
|
return React.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
59026
59704
|
}
|
|
@@ -59222,16 +59900,16 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
59222
59900
|
avoidCollisions: C,
|
|
59223
59901
|
//
|
|
59224
59902
|
...I
|
|
59225
|
-
} = e, N = useSelectContext(CONTENT_NAME, n), [O, V] = React.useState(null), [M, R] = React.useState(null), D = useComposedRefs(t, (
|
|
59903
|
+
} = e, N = useSelectContext(CONTENT_NAME, n), [O, V] = React.useState(null), [M, R] = React.useState(null), D = useComposedRefs(t, (he) => V(he)), [L, j] = React.useState(null), [q, F] = React.useState(
|
|
59226
59904
|
null
|
|
59227
59905
|
), H = useCollection(n), [U, G] = React.useState(!1), J = React.useRef(!1);
|
|
59228
59906
|
React.useEffect(() => {
|
|
59229
59907
|
if (O) return hideOthers(O);
|
|
59230
59908
|
}, [O]), useFocusGuards();
|
|
59231
59909
|
const Z = React.useCallback(
|
|
59232
|
-
(
|
|
59910
|
+
(he) => {
|
|
59233
59911
|
const [ye, ...fe] = H().map((te) => te.ref.current), [le] = fe.slice(-1), oe = document.activeElement;
|
|
59234
|
-
for (const te of
|
|
59912
|
+
for (const te of he)
|
|
59235
59913
|
if (te === oe || (te == null || te.scrollIntoView({ block: "nearest" }), te === ye && M && (M.scrollTop = 0), te === le && M && (M.scrollTop = M.scrollHeight), te == null || te.focus(), document.activeElement !== oe)) return;
|
|
59236
59914
|
},
|
|
59237
59915
|
[H, M]
|
|
@@ -59245,42 +59923,42 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
59245
59923
|
const { onOpenChange: W, triggerPointerDownPosRef: Q } = N;
|
|
59246
59924
|
React.useEffect(() => {
|
|
59247
59925
|
if (O) {
|
|
59248
|
-
let
|
|
59926
|
+
let he = { x: 0, y: 0 };
|
|
59249
59927
|
const ye = (le) => {
|
|
59250
59928
|
var oe, te;
|
|
59251
|
-
|
|
59929
|
+
he = {
|
|
59252
59930
|
x: Math.abs(Math.round(le.pageX) - (((oe = Q.current) == null ? void 0 : oe.x) ?? 0)),
|
|
59253
59931
|
y: Math.abs(Math.round(le.pageY) - (((te = Q.current) == null ? void 0 : te.y) ?? 0))
|
|
59254
59932
|
};
|
|
59255
59933
|
}, fe = (le) => {
|
|
59256
|
-
|
|
59934
|
+
he.x <= 10 && he.y <= 10 ? le.preventDefault() : O.contains(le.target) || W(!1), document.removeEventListener("pointermove", ye), Q.current = null;
|
|
59257
59935
|
};
|
|
59258
59936
|
return Q.current !== null && (document.addEventListener("pointermove", ye), document.addEventListener("pointerup", fe, { capture: !0, once: !0 })), () => {
|
|
59259
59937
|
document.removeEventListener("pointermove", ye), document.removeEventListener("pointerup", fe, { capture: !0 });
|
|
59260
59938
|
};
|
|
59261
59939
|
}
|
|
59262
59940
|
}, [O, W, Q]), React.useEffect(() => {
|
|
59263
|
-
const
|
|
59264
|
-
return window.addEventListener("blur",
|
|
59265
|
-
window.removeEventListener("blur",
|
|
59941
|
+
const he = () => W(!1);
|
|
59942
|
+
return window.addEventListener("blur", he), window.addEventListener("resize", he), () => {
|
|
59943
|
+
window.removeEventListener("blur", he), window.removeEventListener("resize", he);
|
|
59266
59944
|
};
|
|
59267
59945
|
}, [W]);
|
|
59268
|
-
const [ee, ie] = useTypeaheadSearch((
|
|
59269
|
-
const ye = H().filter((oe) => !oe.disabled), fe = ye.find((oe) => oe.ref.current === document.activeElement), le = findNextItem(ye,
|
|
59946
|
+
const [ee, ie] = useTypeaheadSearch((he) => {
|
|
59947
|
+
const ye = H().filter((oe) => !oe.disabled), fe = ye.find((oe) => oe.ref.current === document.activeElement), le = findNextItem(ye, he, fe);
|
|
59270
59948
|
le && setTimeout(() => le.ref.current.focus());
|
|
59271
59949
|
}), ce = React.useCallback(
|
|
59272
|
-
(
|
|
59950
|
+
(he, ye, fe) => {
|
|
59273
59951
|
const le = !J.current && !fe;
|
|
59274
|
-
(N.value !== void 0 && N.value === ye || le) && (j(
|
|
59952
|
+
(N.value !== void 0 && N.value === ye || le) && (j(he), le && (J.current = !0));
|
|
59275
59953
|
},
|
|
59276
59954
|
[N.value]
|
|
59277
59955
|
), ue = React.useCallback(() => O == null ? void 0 : O.focus(), [O]), pe = React.useCallback(
|
|
59278
|
-
(
|
|
59956
|
+
(he, ye, fe) => {
|
|
59279
59957
|
const le = !J.current && !fe;
|
|
59280
|
-
(N.value !== void 0 && N.value === ye || le) && F(
|
|
59958
|
+
(N.value !== void 0 && N.value === ye || le) && F(he);
|
|
59281
59959
|
},
|
|
59282
59960
|
[N.value]
|
|
59283
|
-
),
|
|
59961
|
+
), de = o === "popper" ? SelectPopperPosition : SelectItemAlignedPosition, ve = de === SelectPopperPosition ? {
|
|
59284
59962
|
side: f,
|
|
59285
59963
|
sideOffset: p,
|
|
59286
59964
|
align: m,
|
|
@@ -59313,12 +59991,12 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
59313
59991
|
{
|
|
59314
59992
|
asChild: !0,
|
|
59315
59993
|
trapped: N.open,
|
|
59316
|
-
onMountAutoFocus: (
|
|
59317
|
-
|
|
59994
|
+
onMountAutoFocus: (he) => {
|
|
59995
|
+
he.preventDefault();
|
|
59318
59996
|
},
|
|
59319
|
-
onUnmountAutoFocus: composeEventHandlers(l, (
|
|
59997
|
+
onUnmountAutoFocus: composeEventHandlers(l, (he) => {
|
|
59320
59998
|
var ye;
|
|
59321
|
-
(ye = N.trigger) == null || ye.focus({ preventScroll: !0 }),
|
|
59999
|
+
(ye = N.trigger) == null || ye.focus({ preventScroll: !0 }), he.preventDefault();
|
|
59322
60000
|
}),
|
|
59323
60001
|
children: /* @__PURE__ */ jsx(
|
|
59324
60002
|
DismissableLayer,
|
|
@@ -59327,16 +60005,16 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
59327
60005
|
disableOutsidePointerEvents: !0,
|
|
59328
60006
|
onEscapeKeyDown: u,
|
|
59329
60007
|
onPointerDownOutside: d,
|
|
59330
|
-
onFocusOutside: (
|
|
60008
|
+
onFocusOutside: (he) => he.preventDefault(),
|
|
59331
60009
|
onDismiss: () => N.onOpenChange(!1),
|
|
59332
60010
|
children: /* @__PURE__ */ jsx(
|
|
59333
|
-
|
|
60011
|
+
de,
|
|
59334
60012
|
{
|
|
59335
60013
|
role: "listbox",
|
|
59336
60014
|
id: N.contentId,
|
|
59337
60015
|
"data-state": N.open ? "open" : "closed",
|
|
59338
60016
|
dir: N.dir,
|
|
59339
|
-
onContextMenu: (
|
|
60017
|
+
onContextMenu: (he) => he.preventDefault(),
|
|
59340
60018
|
...I,
|
|
59341
60019
|
...ve,
|
|
59342
60020
|
onPlaced: () => G(!0),
|
|
@@ -59349,15 +60027,15 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
59349
60027
|
outline: "none",
|
|
59350
60028
|
...I.style
|
|
59351
60029
|
},
|
|
59352
|
-
onKeyDown: composeEventHandlers(I.onKeyDown, (
|
|
59353
|
-
const ye =
|
|
59354
|
-
if (
|
|
60030
|
+
onKeyDown: composeEventHandlers(I.onKeyDown, (he) => {
|
|
60031
|
+
const ye = he.ctrlKey || he.altKey || he.metaKey;
|
|
60032
|
+
if (he.key === "Tab" && he.preventDefault(), !ye && he.key.length === 1 && ie(he.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(he.key)) {
|
|
59355
60033
|
let le = H().filter((oe) => !oe.disabled).map((oe) => oe.ref.current);
|
|
59356
|
-
if (["ArrowUp", "End"].includes(
|
|
59357
|
-
const oe =
|
|
60034
|
+
if (["ArrowUp", "End"].includes(he.key) && (le = le.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(he.key)) {
|
|
60035
|
+
const oe = he.target, te = le.indexOf(oe);
|
|
59358
60036
|
le = le.slice(te + 1);
|
|
59359
60037
|
}
|
|
59360
|
-
setTimeout(() => Z(le)),
|
|
60038
|
+
setTimeout(() => Z(le)), he.preventDefault();
|
|
59361
60039
|
}
|
|
59362
60040
|
})
|
|
59363
60041
|
}
|
|
@@ -59393,12 +60071,12 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
|
|
|
59393
60071
|
]);
|
|
59394
60072
|
f.style.minWidth = se + "px", f.style.right = Ee + "px";
|
|
59395
60073
|
}
|
|
59396
|
-
const F = _(), H = window.innerHeight - CONTENT_MARGIN * 2, U = E.scrollHeight, G = window.getComputedStyle(m), J = parseInt(G.borderTopWidth, 10), Z = parseInt(G.paddingTop, 10), ae = parseInt(G.borderBottomWidth, 10), W = parseInt(G.paddingBottom, 10), Q = J + Z + U + W + ae, ee = Math.min(C.offsetHeight * 5, Q), ie = window.getComputedStyle(E), ce = parseInt(ie.paddingTop, 10), ue = parseInt(ie.paddingBottom, 10), pe = D.top + D.height / 2 - CONTENT_MARGIN,
|
|
60074
|
+
const F = _(), H = window.innerHeight - CONTENT_MARGIN * 2, U = E.scrollHeight, G = window.getComputedStyle(m), J = parseInt(G.borderTopWidth, 10), Z = parseInt(G.paddingTop, 10), ae = parseInt(G.borderBottomWidth, 10), W = parseInt(G.paddingBottom, 10), Q = J + Z + U + W + ae, ee = Math.min(C.offsetHeight * 5, Q), ie = window.getComputedStyle(E), ce = parseInt(ie.paddingTop, 10), ue = parseInt(ie.paddingBottom, 10), pe = D.top + D.height / 2 - CONTENT_MARGIN, de = H - pe, ve = C.offsetHeight / 2, he = C.offsetTop + ve, ye = J + Z + he, fe = Q - ye;
|
|
59397
60075
|
if (ye <= pe) {
|
|
59398
60076
|
const oe = F.length > 0 && C === F[F.length - 1].ref.current;
|
|
59399
60077
|
f.style.bottom = "0px";
|
|
59400
60078
|
const te = m.clientHeight - E.offsetTop - E.offsetHeight, be = Math.max(
|
|
59401
|
-
|
|
60079
|
+
de,
|
|
59402
60080
|
ve + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
59403
60081
|
(oe ? ue : 0) + te + ae
|
|
59404
60082
|
), se = ye + be;
|
|
@@ -60259,569 +60937,6 @@ function ManufacturerReorderingCard({
|
|
|
60259
60937
|
] }) })
|
|
60260
60938
|
] });
|
|
60261
60939
|
}
|
|
60262
|
-
const imgSizeMap = {
|
|
60263
|
-
sm: 100,
|
|
60264
|
-
md: 200,
|
|
60265
|
-
lg: 300,
|
|
60266
|
-
xl: 400
|
|
60267
|
-
};
|
|
60268
|
-
function ProductImage({ randmarSKU: e, size: t = "md", alt: n, secondaryContent: o }) {
|
|
60269
|
-
const [l, u] = React.useState(!1), [d, f] = React.useState(!1), [p, m] = React.useState(!1), [g, b] = React.useState(!1), _ = `https://api.randmar.io/Product/${e}/Video`;
|
|
60270
|
-
React.useEffect(() => {
|
|
60271
|
-
(async () => {
|
|
60272
|
-
try {
|
|
60273
|
-
const O = await (await fetch(_ + "/Exists")).json();
|
|
60274
|
-
f(O);
|
|
60275
|
-
} catch (N) {
|
|
60276
|
-
console.error("Error checking for video:", N), f(!1);
|
|
60277
|
-
}
|
|
60278
|
-
})();
|
|
60279
|
-
}, [e, _]);
|
|
60280
|
-
async function S() {
|
|
60281
|
-
if (d) {
|
|
60282
|
-
b(!0);
|
|
60283
|
-
try {
|
|
60284
|
-
const N = await (await fetch(_)).blob(), O = window.URL.createObjectURL(N), V = document.createElement("a");
|
|
60285
|
-
V.href = O, V.download = `${e || "product"}-video.mp4`, document.body.appendChild(V), V.click(), document.body.removeChild(V), window.URL.revokeObjectURL(O);
|
|
60286
|
-
} catch (I) {
|
|
60287
|
-
console.error("Error downloading video:", I);
|
|
60288
|
-
} finally {
|
|
60289
|
-
b(!1);
|
|
60290
|
-
}
|
|
60291
|
-
}
|
|
60292
|
-
}
|
|
60293
|
-
function T() {
|
|
60294
|
-
navigator.clipboard.writeText(_), m(!0), setTimeout(() => {
|
|
60295
|
-
m(!1);
|
|
60296
|
-
}, 2e3);
|
|
60297
|
-
}
|
|
60298
|
-
function E() {
|
|
60299
|
-
u(!0);
|
|
60300
|
-
}
|
|
60301
|
-
const C = imgSizeMap[t || "xl"];
|
|
60302
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
60303
|
-
/* @__PURE__ */ jsx(Dialog, { open: l, onOpenChange: u, children: /* @__PURE__ */ jsx(DialogContent, { className: "max-w-4xl p-0 overflow-hidden", children: o ? /* @__PURE__ */ jsxs("div", { className: "flex flex-row", children: [
|
|
60304
|
-
/* @__PURE__ */ jsxs(
|
|
60305
|
-
"video",
|
|
60306
|
-
{
|
|
60307
|
-
className: "w-full rounded-l-lg max-h-[720px] object-contain",
|
|
60308
|
-
controls: !0,
|
|
60309
|
-
autoPlay: !0,
|
|
60310
|
-
muted: !0,
|
|
60311
|
-
loop: !0,
|
|
60312
|
-
children: [
|
|
60313
|
-
/* @__PURE__ */ jsx("source", { src: _, type: "video/mp4" }),
|
|
60314
|
-
"Your browser does not support the video tag."
|
|
60315
|
-
]
|
|
60316
|
-
}
|
|
60317
|
-
),
|
|
60318
|
-
/* @__PURE__ */ jsx("div", { className: "flex-grow min-w-[400px] h-[70vh] p-6", children: o })
|
|
60319
|
-
] }) : /* @__PURE__ */ jsxs("div", { className: "w-full relative", children: [
|
|
60320
|
-
/* @__PURE__ */ jsxs("video", { className: "w-full max-h-[720px] object-contain", controls: !0, autoPlay: !0, children: [
|
|
60321
|
-
/* @__PURE__ */ jsx("source", { src: _, type: "video/mp4" }),
|
|
60322
|
-
"Your browser does not support the video tag."
|
|
60323
|
-
] }),
|
|
60324
|
-
/* @__PURE__ */ jsxs("div", { className: "absolute top-2 right-12 flex gap-1", children: [
|
|
60325
|
-
/* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip$1, { children: [
|
|
60326
|
-
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsx(
|
|
60327
|
-
Button,
|
|
60328
|
-
{
|
|
60329
|
-
variant: "secondary",
|
|
60330
|
-
size: "icon",
|
|
60331
|
-
onClick: T,
|
|
60332
|
-
children: p ? /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx(Copy, { className: "h-4 w-4" })
|
|
60333
|
-
}
|
|
60334
|
-
) }),
|
|
60335
|
-
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "Copy video link" }) })
|
|
60336
|
-
] }) }),
|
|
60337
|
-
/* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip$1, { children: [
|
|
60338
|
-
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsx(
|
|
60339
|
-
Button,
|
|
60340
|
-
{
|
|
60341
|
-
variant: "secondary",
|
|
60342
|
-
size: "icon",
|
|
60343
|
-
onClick: S,
|
|
60344
|
-
disabled: g,
|
|
60345
|
-
children: /* @__PURE__ */ jsx(Download, { className: "h-4 w-4" })
|
|
60346
|
-
}
|
|
60347
|
-
) }),
|
|
60348
|
-
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "Download video" }) })
|
|
60349
|
-
] }) })
|
|
60350
|
-
] })
|
|
60351
|
-
] }) }) }),
|
|
60352
|
-
/* @__PURE__ */ jsxs("div", { className: "relative w-max h-max", children: [
|
|
60353
|
-
/* @__PURE__ */ jsx(
|
|
60354
|
-
"img",
|
|
60355
|
-
{
|
|
60356
|
-
alt: n || `Product ${e}`,
|
|
60357
|
-
className: `rounded-md ${d ? "cursor-pointer" : ""}`,
|
|
60358
|
-
onClick: d ? E : void 0,
|
|
60359
|
-
src: `https://api.randmar.io/Product/${e}/Image?width=${C * 1.5}&height=${C * 1.5}`,
|
|
60360
|
-
width: C,
|
|
60361
|
-
height: C
|
|
60362
|
-
}
|
|
60363
|
-
),
|
|
60364
|
-
d && /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip$1, { children: [
|
|
60365
|
-
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsx(
|
|
60366
|
-
Button,
|
|
60367
|
-
{
|
|
60368
|
-
variant: "secondary",
|
|
60369
|
-
size: "icon",
|
|
60370
|
-
className: "absolute top-2 right-2",
|
|
60371
|
-
onClick: E,
|
|
60372
|
-
children: /* @__PURE__ */ jsx(Play, { className: "h-4 w-4" })
|
|
60373
|
-
}
|
|
60374
|
-
) }),
|
|
60375
|
-
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "Play video" }) })
|
|
60376
|
-
] }) })
|
|
60377
|
-
] })
|
|
60378
|
-
] });
|
|
60379
|
-
}
|
|
60380
|
-
function ProductCard({
|
|
60381
|
-
item: e,
|
|
60382
|
-
addToCart: t = !1,
|
|
60383
|
-
syncToShopify: n = !1,
|
|
60384
|
-
customAction: o = /* @__PURE__ */ jsx(Fragment, {}),
|
|
60385
|
-
defaultOpportunityNumber: l = "",
|
|
60386
|
-
viewProductLink: u,
|
|
60387
|
-
addToCartAction: d,
|
|
60388
|
-
isAddToCartActionLoading: f = !1,
|
|
60389
|
-
syncToShopifyAction: p,
|
|
60390
|
-
isSyncToShopifyActionLoading: m = !1
|
|
60391
|
-
}) {
|
|
60392
|
-
var Q, ee, ie, ce, ue, pe, he, ve, de, ye, fe;
|
|
60393
|
-
const [g, b] = useState(1), [_, S] = useState(null), [T, E] = useState(0), [C, I] = useState(!1), N = ((Q = e == null ? void 0 : e.Distribution) == null ? void 0 : Q.Cost) || 0, O = ((ee = e == null ? void 0 : e.Distribution) == null ? void 0 : ee.RegularPrice) || 0, V = ((ie = e == null ? void 0 : e.Distribution) == null ? void 0 : ie.Price) || 0;
|
|
60394
|
-
useEffect(() => {
|
|
60395
|
-
b(1), S(null), E(0), I(!1);
|
|
60396
|
-
}, [e == null ? void 0 : e.RandmarSKU]);
|
|
60397
|
-
const [M, R] = useState(null), [D, L] = useState(!1);
|
|
60398
|
-
useEffect(() => {
|
|
60399
|
-
const le = async () => {
|
|
60400
|
-
if (e != null && e.ManufacturerId) {
|
|
60401
|
-
L(!0);
|
|
60402
|
-
try {
|
|
60403
|
-
const oe = await fetch(
|
|
60404
|
-
`https://api.randmar.io/V4/Partner/${e.ManufacturerId}/Account/Logo?width=60&height=40`
|
|
60405
|
-
);
|
|
60406
|
-
if (oe.ok) {
|
|
60407
|
-
const te = await oe.blob();
|
|
60408
|
-
R(URL.createObjectURL(te));
|
|
60409
|
-
}
|
|
60410
|
-
} catch (oe) {
|
|
60411
|
-
console.error("Failed to load logo:", oe);
|
|
60412
|
-
} finally {
|
|
60413
|
-
L(!1);
|
|
60414
|
-
}
|
|
60415
|
-
}
|
|
60416
|
-
};
|
|
60417
|
-
e != null && e.ManufacturerId && le();
|
|
60418
|
-
}, [e == null ? void 0 : e.ManufacturerId]), useEffect(() => {
|
|
60419
|
-
var le;
|
|
60420
|
-
if (e && l) {
|
|
60421
|
-
const oe = (le = e.Opportunities) == null ? void 0 : le.find((te) => te.BidNumber == l);
|
|
60422
|
-
oe && S(oe);
|
|
60423
|
-
}
|
|
60424
|
-
}, [e, l]), useEffect(() => {
|
|
60425
|
-
if (!e) return;
|
|
60426
|
-
const le = _ != null && _.Price ? _.Price : V;
|
|
60427
|
-
E(O > 0 ? Math.round((O - le) / O * 100) : 0);
|
|
60428
|
-
}, [e, _, V, O]), useEffect(() => {
|
|
60429
|
-
f || b(1);
|
|
60430
|
-
}, [f]);
|
|
60431
|
-
const j = (le) => {
|
|
60432
|
-
if (le.Active !== !0) return !1;
|
|
60433
|
-
const oe = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
|
|
60434
|
-
return !(le.EndDate && le.EndDate.split("T")[0] < oe || le.StartDate && le.StartDate.split("T")[0] > oe);
|
|
60435
|
-
};
|
|
60436
|
-
if (!e)
|
|
60437
|
-
return /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsxs(CardContent, { className: "p-6", children: [
|
|
60438
|
-
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-start mb-3", children: [
|
|
60439
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-7 w-3/4" }),
|
|
60440
|
-
/* @__PURE__ */ jsx("div", { className: "h-10 w-24 flex items-center justify-end ml-4", children: /* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-24 rounded-md" }) })
|
|
60441
|
-
] }),
|
|
60442
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2 mb-4", children: [
|
|
60443
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-6 w-20 rounded-full" }),
|
|
60444
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-6 w-24 rounded-full" }),
|
|
60445
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-6 w-28 rounded-full" })
|
|
60446
|
-
] }),
|
|
60447
|
-
/* @__PURE__ */ jsxs("div", { className: "flex gap-6", children: [
|
|
60448
|
-
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-x-4 gap-y-6 flex-1", children: [
|
|
60449
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
60450
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-12 mb-1" }),
|
|
60451
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-20" })
|
|
60452
|
-
] }),
|
|
60453
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
60454
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-12 mb-1" }),
|
|
60455
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-24" })
|
|
60456
|
-
] }),
|
|
60457
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
60458
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-20 mb-1" }),
|
|
60459
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-16" })
|
|
60460
|
-
] }),
|
|
60461
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
60462
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-12 mb-1" }),
|
|
60463
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-20" })
|
|
60464
|
-
] })
|
|
60465
|
-
] }),
|
|
60466
|
-
/* @__PURE__ */ jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ jsx("div", { className: "w-60 h-40", children: /* @__PURE__ */ jsx(Skeleton, { className: "w-full h-full rounded-lg" }) }) })
|
|
60467
|
-
] }),
|
|
60468
|
-
/* @__PURE__ */ jsxs("div", { className: "flex gap-6 mt-4", children: [
|
|
60469
|
-
/* @__PURE__ */ jsx("div", { className: "flex flex-1", children: /* @__PURE__ */ jsxs("div", { className: "w-full", children: [
|
|
60470
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-24 mb-3" }),
|
|
60471
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-16 w-full rounded-md" })
|
|
60472
|
-
] }) }),
|
|
60473
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center", children: [
|
|
60474
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-32 rounded-md" }),
|
|
60475
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-24 mt-4" })
|
|
60476
|
-
] })
|
|
60477
|
-
] }),
|
|
60478
|
-
/* @__PURE__ */ jsxs("div", { className: "flex gap-6 mt-4", children: [
|
|
60479
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-start gap-1 mb-2", children: [
|
|
60480
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-32" }),
|
|
60481
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-6 w-24" })
|
|
60482
|
-
] }),
|
|
60483
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 items-center gap-2", children: [
|
|
60484
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-24 rounded-md" }),
|
|
60485
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 flex-1 rounded-md" })
|
|
60486
|
-
] })
|
|
60487
|
-
] })
|
|
60488
|
-
] }) });
|
|
60489
|
-
const q = (e == null ? void 0 : e.Opportunities) || [], F = q.length > 0, H = () => {
|
|
60490
|
-
if (g == null) {
|
|
60491
|
-
b(1);
|
|
60492
|
-
return;
|
|
60493
|
-
}
|
|
60494
|
-
g > 1 && b(g - 1);
|
|
60495
|
-
}, U = () => {
|
|
60496
|
-
if (g == null) {
|
|
60497
|
-
b(1);
|
|
60498
|
-
return;
|
|
60499
|
-
}
|
|
60500
|
-
b(g + 1);
|
|
60501
|
-
}, G = (le) => {
|
|
60502
|
-
const oe = parseInt(le.target.value, 10);
|
|
60503
|
-
if (!isNaN(oe) && oe > 0) {
|
|
60504
|
-
b(oe);
|
|
60505
|
-
return;
|
|
60506
|
-
}
|
|
60507
|
-
b(void 0);
|
|
60508
|
-
}, J = () => {
|
|
60509
|
-
(g == null || g < 1) && b(1);
|
|
60510
|
-
}, Z = ((ue = (ce = e.Distribution) == null ? void 0 : ce.Inventory) == null ? void 0 : ue.reduce((le, oe) => le + (oe.AvailableQuantity || 0), 0)) || 0, ae = (le) => {
|
|
60511
|
-
try {
|
|
60512
|
-
return new Date(le).toLocaleDateString("en-US", { year: "numeric", month: "short", day: "numeric" });
|
|
60513
|
-
} catch (oe) {
|
|
60514
|
-
return console.error(oe), le.split("T")[0] || "N/A";
|
|
60515
|
-
}
|
|
60516
|
-
}, W = () => {
|
|
60517
|
-
d && d({ quantity: g ?? 1, bidNumber: (_ == null ? void 0 : _.BidNumber) ?? null });
|
|
60518
|
-
};
|
|
60519
|
-
return /* @__PURE__ */ jsx(Card, { className: "hover:shadow-lg transition-shadow", children: /* @__PURE__ */ jsxs(CardContent, { className: "p-6", children: [
|
|
60520
|
-
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-start mb-3", children: [
|
|
60521
|
-
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-xl", children: e.Title || e.RandmarTitle }),
|
|
60522
|
-
/* @__PURE__ */ jsx("div", { className: "h-10 w-24 flex items-center justify-end ml-4", children: D ? /* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-24 rounded-md" }) : M && /* @__PURE__ */ jsx(
|
|
60523
|
-
"img",
|
|
60524
|
-
{
|
|
60525
|
-
src: M,
|
|
60526
|
-
alt: e.ManufacturerName ?? "",
|
|
60527
|
-
className: "max-h-10 max-w-24 object-contain"
|
|
60528
|
-
}
|
|
60529
|
-
) })
|
|
60530
|
-
] }),
|
|
60531
|
-
/* @__PURE__ */ jsxs("div", { className: "flex gap-6", children: [
|
|
60532
|
-
/* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
|
|
60533
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2 mb-4", children: [
|
|
60534
|
-
e.State && /* @__PURE__ */ jsxs(
|
|
60535
|
-
Badge,
|
|
60536
|
-
{
|
|
60537
|
-
variant: "outline",
|
|
60538
|
-
className: `rounded-full px-3 ${e.State === "Active" ? "bg-green-50 text-green-700 hover:bg-green-50" : "bg-red-50 text-red-700 hover:bg-red-50"}`,
|
|
60539
|
-
children: [
|
|
60540
|
-
/* @__PURE__ */ jsx(Check, { size: "12", className: "mr-1.5" }),
|
|
60541
|
-
" ",
|
|
60542
|
-
e.State
|
|
60543
|
-
]
|
|
60544
|
-
}
|
|
60545
|
-
),
|
|
60546
|
-
/* @__PURE__ */ jsxs(
|
|
60547
|
-
Badge,
|
|
60548
|
-
{
|
|
60549
|
-
variant: "outline",
|
|
60550
|
-
className: `rounded-full px-3 ${e.SerialNumber ? "bg-green-50 text-green-700 hover:bg-green-50" : "bg-yellow-50 text-yellow-700 hover:bg-yellow-50"}`,
|
|
60551
|
-
children: [
|
|
60552
|
-
/* @__PURE__ */ jsx(QrCode, { size: "12", className: "mr-1.5" }),
|
|
60553
|
-
" ",
|
|
60554
|
-
e.SerialNumber ? "Serialized" : "Unserialized"
|
|
60555
|
-
]
|
|
60556
|
-
}
|
|
60557
|
-
),
|
|
60558
|
-
e.TransparencyCode && /* @__PURE__ */ jsxs(Badge, { variant: "outline", className: "rounded-full px-3 bg-green-50 text-green-700 hover:bg-green-50", children: [
|
|
60559
|
-
/* @__PURE__ */ jsx(CircleDashed, { size: "12", className: "mr-1.5" }),
|
|
60560
|
-
" Transparency Code"
|
|
60561
|
-
] }),
|
|
60562
|
-
e.AvailableToBuy !== void 0 && /* @__PURE__ */ jsxs(
|
|
60563
|
-
Badge,
|
|
60564
|
-
{
|
|
60565
|
-
variant: "outline",
|
|
60566
|
-
className: `rounded-full px-3 ${e.AvailableToBuy ? "bg-green-50 text-green-700 hover:bg-green-50" : "bg-red-50 text-red-700 hover:bg-red-50"}`,
|
|
60567
|
-
children: [
|
|
60568
|
-
/* @__PURE__ */ jsx(ShoppingCart, { size: "12", className: "mr-1.5" }),
|
|
60569
|
-
" ",
|
|
60570
|
-
e.AvailableToBuy ? "Available" : "Unavailable"
|
|
60571
|
-
]
|
|
60572
|
-
}
|
|
60573
|
-
),
|
|
60574
|
-
e.ManufacturerCategory !== void 0 && /* @__PURE__ */ jsxs(
|
|
60575
|
-
Badge,
|
|
60576
|
-
{
|
|
60577
|
-
variant: "outline",
|
|
60578
|
-
className: `rounded-full px-3 ${(pe = e.ManufacturerCategory) != null && pe.QualificationRequired ? "bg-blue-50 text-blue-700 hover:bg-blue-50" : "bg-neutral-50 text-neutral-700 hover:bg-neutral-50"}`,
|
|
60579
|
-
children: [
|
|
60580
|
-
/* @__PURE__ */ jsx(ShieldCheck, { size: "12", className: "mr-1.5" }),
|
|
60581
|
-
" ",
|
|
60582
|
-
(he = e.ManufacturerCategory) != null && he.QualificationRequired ? "Qualified Only" : "Available to all"
|
|
60583
|
-
]
|
|
60584
|
-
}
|
|
60585
|
-
),
|
|
60586
|
-
e.ManufacturerId && /* @__PURE__ */ jsxs(
|
|
60587
|
-
Badge,
|
|
60588
|
-
{
|
|
60589
|
-
variant: "outline",
|
|
60590
|
-
className: `rounded-full px-3 ${e.AutoUpdate ? "bg-green-50 text-green-700 hover:bg-green-50" : "bg-red-50 text-red-700 hover:bg-red-50"}`,
|
|
60591
|
-
children: [
|
|
60592
|
-
/* @__PURE__ */ jsx(RefreshCw, { size: "12", className: "mr-1.5" }),
|
|
60593
|
-
" ",
|
|
60594
|
-
e.AutoUpdate ? `Automatic Reorder (${e.MasterCarton})` : "Manually Reorders"
|
|
60595
|
-
]
|
|
60596
|
-
}
|
|
60597
|
-
),
|
|
60598
|
-
/* @__PURE__ */ jsxs(
|
|
60599
|
-
Badge,
|
|
60600
|
-
{
|
|
60601
|
-
variant: "outline",
|
|
60602
|
-
className: `rounded-full px-3 ${e.BodyHTML && e.Title && e.MAP ? "bg-green-50 text-green-700 hover:bg-green-50" : "bg-red-50 text-red-700 hover:bg-red-50"}`,
|
|
60603
|
-
children: [
|
|
60604
|
-
/* @__PURE__ */ jsx(Store, { size: "12", className: "mr-1.5" }),
|
|
60605
|
-
" ",
|
|
60606
|
-
e.BodyHTML && e.Title && e.MAP ? "Shopify Ready" : "Not Shopify Ready"
|
|
60607
|
-
]
|
|
60608
|
-
}
|
|
60609
|
-
)
|
|
60610
|
-
] }),
|
|
60611
|
-
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-x-4 gap-y-4 flex-1", children: [
|
|
60612
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
60613
|
-
/* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: "MPN" }),
|
|
60614
|
-
/* @__PURE__ */ jsx("div", { className: "font-medium", children: e.MPN || "N/A" })
|
|
60615
|
-
] }),
|
|
60616
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
60617
|
-
/* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: "UPC" }),
|
|
60618
|
-
/* @__PURE__ */ jsx("div", { className: "font-medium", children: e.UPC || "N/A" })
|
|
60619
|
-
] }),
|
|
60620
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
60621
|
-
/* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: "Unit Weight" }),
|
|
60622
|
-
/* @__PURE__ */ jsx("div", { className: "font-medium", children: e.UnitWeight ? `${e.UnitWeight} lbs` : "N/A" })
|
|
60623
|
-
] }),
|
|
60624
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
60625
|
-
/* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: "MAP" }),
|
|
60626
|
-
/* @__PURE__ */ jsx("div", { className: "font-medium", children: e.MAP ? "$" + e.MAP.toFixed(2) : "N/A" })
|
|
60627
|
-
] }),
|
|
60628
|
-
e.CountryCodeOfOrigin && /* @__PURE__ */ jsxs("div", { children: [
|
|
60629
|
-
/* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: "Origin" }),
|
|
60630
|
-
/* @__PURE__ */ jsxs("div", { className: "font-medium flex items-center", children: [
|
|
60631
|
-
/* @__PURE__ */ jsx(
|
|
60632
|
-
CountryFlag,
|
|
60633
|
-
{
|
|
60634
|
-
countryCode: e.CountryCodeOfOrigin,
|
|
60635
|
-
className: "mr-2"
|
|
60636
|
-
}
|
|
60637
|
-
),
|
|
60638
|
-
e.CountryCodeOfOrigin
|
|
60639
|
-
] })
|
|
60640
|
-
] })
|
|
60641
|
-
] })
|
|
60642
|
-
] }),
|
|
60643
|
-
/* @__PURE__ */ jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ jsx(ProductImage, { randmarSKU: e.RandmarSKU || "", alt: e.RandmarTitle || "" }) })
|
|
60644
|
-
] }),
|
|
60645
|
-
/* @__PURE__ */ jsxs("div", { className: "flex gap-6 mt-4", children: [
|
|
60646
|
-
/* @__PURE__ */ jsx("div", { className: "flex flex-1", children: F && e.Distribution && /* @__PURE__ */ jsxs("div", { className: "w-full", children: [
|
|
60647
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center", children: "You have " + q.length + (q.length > 1 ? " opportunities" : " opportunity") + " for this product:" }),
|
|
60648
|
-
/* @__PURE__ */ jsx("div", { className: "space-y-2 max-h-[200px] overflow-y-auto p-2 mt-1", children: q.map((le, oe) => {
|
|
60649
|
-
var te;
|
|
60650
|
-
return /* @__PURE__ */ jsxs(
|
|
60651
|
-
"div",
|
|
60652
|
-
{
|
|
60653
|
-
className: `flex justify-between items-center rounded-lg transition-colors py-2 px-4 bg-purple-100 border border-muted
|
|
60654
|
-
${le.BidNumber == (_ == null ? void 0 : _.BidNumber) ? "cursor-pointer border-2 border-purple-900" : j(le) ? "hover:bg-purple-200 cursor-pointer" : "!bg-neutral-50"}
|
|
60655
|
-
`,
|
|
60656
|
-
onClick: () => {
|
|
60657
|
-
j(le) && S(
|
|
60658
|
-
le.BidNumber != (_ == null ? void 0 : _.BidNumber) ? le : null
|
|
60659
|
-
);
|
|
60660
|
-
},
|
|
60661
|
-
children: [
|
|
60662
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
|
|
60663
|
-
/* @__PURE__ */ jsx("span", { className: "font-medium text-sm", children: le.Opportunity }),
|
|
60664
|
-
/* @__PURE__ */ jsxs("span", { className: "text-xs text-neutral-900", children: [
|
|
60665
|
-
le.BidNumber,
|
|
60666
|
-
" ",
|
|
60667
|
-
!j(le) && /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "text-xs mx-1 h-5 bg-gray-100", children: "Currently unavailable" })
|
|
60668
|
-
] })
|
|
60669
|
-
] }) }),
|
|
60670
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-end", children: [
|
|
60671
|
-
/* @__PURE__ */ jsxs("span", { className: "font-semibold", children: [
|
|
60672
|
-
"$",
|
|
60673
|
-
(te = le.Price) == null ? void 0 : te.toFixed(2)
|
|
60674
|
-
] }),
|
|
60675
|
-
le.Rebate && le.Rebate > 0 && /* @__PURE__ */ jsxs("span", { className: "text-xs text-green-600", children: [
|
|
60676
|
-
"Rebate: $",
|
|
60677
|
-
le.Rebate.toFixed(2)
|
|
60678
|
-
] }),
|
|
60679
|
-
le.EndDate && /* @__PURE__ */ jsxs("span", { className: "text-xs text-neutral-600", children: [
|
|
60680
|
-
"Ends: ",
|
|
60681
|
-
ae(le.EndDate)
|
|
60682
|
-
] })
|
|
60683
|
-
] })
|
|
60684
|
-
]
|
|
60685
|
-
},
|
|
60686
|
-
oe
|
|
60687
|
-
);
|
|
60688
|
-
}) })
|
|
60689
|
-
] }) }),
|
|
60690
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center", children: [
|
|
60691
|
-
u && /* @__PURE__ */ jsx(Link, { to: u, children: /* @__PURE__ */ jsxs(Button, { variant: "secondary", children: [
|
|
60692
|
-
/* @__PURE__ */ jsx(Eye, { className: "mr-2" }),
|
|
60693
|
-
"View Product"
|
|
60694
|
-
] }) }),
|
|
60695
|
-
((ve = e.Distribution) == null ? void 0 : ve.Inventory) && /* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsxs(Dialog, { open: C, onOpenChange: I, children: [
|
|
60696
|
-
/* @__PURE__ */ jsx(DialogTrigger, { asChild: !0, children: /* @__PURE__ */ jsxs(
|
|
60697
|
-
Button,
|
|
60698
|
-
{
|
|
60699
|
-
variant: "ghost",
|
|
60700
|
-
className: `flex items-center text-sm ${Z > 0 ? "text-green-700" : "text-red-700"}`,
|
|
60701
|
-
children: [
|
|
60702
|
-
/* @__PURE__ */ jsx(Warehouse, { size: "16", className: "mr-2" }),
|
|
60703
|
-
Z > 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
60704
|
-
Z,
|
|
60705
|
-
" in stock"
|
|
60706
|
-
] }) : /* @__PURE__ */ jsx(Fragment, { children: "Out of stock" })
|
|
60707
|
-
]
|
|
60708
|
-
}
|
|
60709
|
-
) }),
|
|
60710
|
-
/* @__PURE__ */ jsxs(DialogContent, { className: "max-w-4xl", children: [
|
|
60711
|
-
/* @__PURE__ */ jsx(DialogHeader, { children: /* @__PURE__ */ jsxs(DialogTitle, { className: "flex items-center", children: [
|
|
60712
|
-
/* @__PURE__ */ jsx(Warehouse, { className: "mr-2", size: 18 }),
|
|
60713
|
-
"Inventory Information"
|
|
60714
|
-
] }) }),
|
|
60715
|
-
/* @__PURE__ */ jsx(ProductInventoryGrid, { inventory: e.Distribution.Inventory })
|
|
60716
|
-
] })
|
|
60717
|
-
] }) })
|
|
60718
|
-
] })
|
|
60719
|
-
] }),
|
|
60720
|
-
e.Distribution && /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-end mt-4", children: [
|
|
60721
|
-
/* @__PURE__ */ jsx("div", { className: "flex-shrink-1 flex flex-col items-start gap-1", children: N > 0 ? /* @__PURE__ */ jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsxs("span", { className: "text-2xl font-bold whitespace-nowrap", children: [
|
|
60722
|
-
/* @__PURE__ */ jsx("span", { children: "Cost: $" }),
|
|
60723
|
-
N.toFixed(2),
|
|
60724
|
-
/* @__PURE__ */ jsx("span", { children: " CAD" })
|
|
60725
|
-
] }) }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
60726
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center flex-wrap", children: [
|
|
60727
|
-
/* @__PURE__ */ jsxs("span", { className: "text-2xl font-bold whitespace-nowrap", children: [
|
|
60728
|
-
/* @__PURE__ */ jsx("span", { children: "$" }),
|
|
60729
|
-
_ ? (ye = (de = e.Opportunities) == null ? void 0 : de.find((le) => le.BidNumber == _.BidNumber)) == null ? void 0 : ye.Price : V.toFixed(2),
|
|
60730
|
-
/* @__PURE__ */ jsx("span", { children: " CAD" })
|
|
60731
|
-
] }),
|
|
60732
|
-
T > 0 && /* @__PURE__ */ jsxs("span", { className: "text-muted-foreground line-through ml-2 whitespace-nowrap", children: [
|
|
60733
|
-
"$",
|
|
60734
|
-
O.toFixed(2)
|
|
60735
|
-
] })
|
|
60736
|
-
] }),
|
|
60737
|
-
T > 0 && /* @__PURE__ */ jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsxs(Badge, { variant: "outline", className: "bg-red-50 text-red-700 rounded-full px-3 whitespace-nowrap", children: [
|
|
60738
|
-
/* @__PURE__ */ jsxs("span", { children: [
|
|
60739
|
-
T,
|
|
60740
|
-
"% OFF"
|
|
60741
|
-
] }),
|
|
60742
|
-
((fe = e.InstantRebate) == null ? void 0 : fe.EndDate) && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
60743
|
-
/* @__PURE__ */ jsx("span", { className: "mx-1.5", children: "●" }),
|
|
60744
|
-
" Ends ",
|
|
60745
|
-
e.InstantRebate.EndDate.split("T")[0]
|
|
60746
|
-
] }),
|
|
60747
|
-
(_ == null ? void 0 : _.EndDate) && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
60748
|
-
/* @__PURE__ */ jsx("span", { className: "mx-1.5", children: "●" }),
|
|
60749
|
-
" Ends ",
|
|
60750
|
-
_.EndDate.split("T")[0]
|
|
60751
|
-
] })
|
|
60752
|
-
] }) })
|
|
60753
|
-
] }) }),
|
|
60754
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-shrink-0 gap-2 ml-4", children: [
|
|
60755
|
-
typeof t < "u" && t && /* @__PURE__ */ jsxs("div", { className: "flex items-center border rounded-md", children: [
|
|
60756
|
-
/* @__PURE__ */ jsx(
|
|
60757
|
-
Button,
|
|
60758
|
-
{
|
|
60759
|
-
variant: "ghost",
|
|
60760
|
-
size: "icon",
|
|
60761
|
-
className: "rounded-r-none",
|
|
60762
|
-
onClick: H,
|
|
60763
|
-
disabled: typeof g < "u" && (g <= 1 || !e.AvailableToBuy || f || !d),
|
|
60764
|
-
children: "-"
|
|
60765
|
-
}
|
|
60766
|
-
),
|
|
60767
|
-
/* @__PURE__ */ jsx(
|
|
60768
|
-
"input",
|
|
60769
|
-
{
|
|
60770
|
-
value: g,
|
|
60771
|
-
onChange: G,
|
|
60772
|
-
onBlur: J,
|
|
60773
|
-
onClick: (le) => le.currentTarget.select(),
|
|
60774
|
-
className: `w-12 text-center border-0 focus:ring-0 focus:outline-none ${!e.AvailableToBuy || f || !d ? "text-gray-400" : ""}`,
|
|
60775
|
-
disabled: !e.AvailableToBuy || f || !d
|
|
60776
|
-
}
|
|
60777
|
-
),
|
|
60778
|
-
/* @__PURE__ */ jsx(
|
|
60779
|
-
Button,
|
|
60780
|
-
{
|
|
60781
|
-
variant: "ghost",
|
|
60782
|
-
size: "icon",
|
|
60783
|
-
className: "rounded-l-none",
|
|
60784
|
-
onClick: U,
|
|
60785
|
-
disabled: !e.AvailableToBuy || f || !d,
|
|
60786
|
-
children: "+"
|
|
60787
|
-
}
|
|
60788
|
-
)
|
|
60789
|
-
] }),
|
|
60790
|
-
typeof t < "u" && t && /* @__PURE__ */ jsx(
|
|
60791
|
-
Button,
|
|
60792
|
-
{
|
|
60793
|
-
className: "gap-2 whitespace-nowrap",
|
|
60794
|
-
onClick: W,
|
|
60795
|
-
disabled: !e.AvailableToBuy || f || !d,
|
|
60796
|
-
children: f ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
60797
|
-
/* @__PURE__ */ jsx(LoaderCircle, { className: "h-4 w-4 animate-spin" }),
|
|
60798
|
-
"Adding..."
|
|
60799
|
-
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
60800
|
-
/* @__PURE__ */ jsx(ShoppingCart, { className: "mr-2" }),
|
|
60801
|
-
"Add to Cart"
|
|
60802
|
-
] })
|
|
60803
|
-
}
|
|
60804
|
-
),
|
|
60805
|
-
n && /* @__PURE__ */ jsx(
|
|
60806
|
-
Button,
|
|
60807
|
-
{
|
|
60808
|
-
className: "gap-2 whitespace-nowrap bg-green-600 hover:bg-green-700",
|
|
60809
|
-
onClick: p,
|
|
60810
|
-
disabled: m || !p,
|
|
60811
|
-
children: m ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
60812
|
-
/* @__PURE__ */ jsx(LoaderCircle, { className: "h-4 w-4 animate-spin" }),
|
|
60813
|
-
"Syncing..."
|
|
60814
|
-
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
60815
|
-
/* @__PURE__ */ jsx(ShoppingCart, { className: "mr-2" }),
|
|
60816
|
-
"Sync to Shopify"
|
|
60817
|
-
] })
|
|
60818
|
-
}
|
|
60819
|
-
),
|
|
60820
|
-
o
|
|
60821
|
-
] })
|
|
60822
|
-
] })
|
|
60823
|
-
] }) });
|
|
60824
|
-
}
|
|
60825
60940
|
function ResellerBillingOverviewCard({ reseller: e, actions: t, loading: n = !1 }) {
|
|
60826
60941
|
return n || !e ? /* @__PURE__ */ jsx(ResellerBillingOverviewSkeleton, {}) : /* @__PURE__ */ jsx(ResellerBillingOverviewData, { reseller: e, actions: t });
|
|
60827
60942
|
}
|