@flamingo-stack/openframe-frontend-core 0.0.741 → 0.0.742
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-BV5WZVOP.cjs → chunk-32Q7K5OP.cjs} +254 -254
- package/dist/{chunk-I6UE6YVM.cjs → chunk-3LW43GIJ.cjs} +6 -6
- package/dist/{chunk-VA7OMDZO.cjs → chunk-4FWURR3W.cjs} +50 -50
- package/dist/{chunk-EKGL5K5K.cjs → chunk-4LDU32OB.cjs} +17 -17
- package/dist/{chunk-IK2RJUEA.cjs → chunk-4PKORVOX.cjs} +724 -724
- package/dist/{chunk-4XL4YEZM.cjs → chunk-54EA4RLX.cjs} +8 -8
- package/dist/{chunk-YXKB5WRE.cjs → chunk-5MH6BRPY.cjs} +36 -36
- package/dist/{chunk-PQ2M7P2U.cjs → chunk-5TCIRWHL.cjs} +9 -9
- package/dist/{chunk-7ZFCR7UY.cjs → chunk-ABLUMGCI.cjs} +3 -3
- package/dist/{chunk-PX7FY655.cjs → chunk-ASMNNSUQ.cjs} +3 -3
- package/dist/{chunk-HF7Z2E4W.cjs → chunk-BI3XBCQX.cjs} +2 -2
- package/dist/{chunk-SA7LDEVJ.cjs → chunk-CSJO7ZGN.cjs} +3 -3
- package/dist/{chunk-VOX4E6AX.cjs → chunk-DGFDBPO7.cjs} +7 -5
- package/dist/{chunk-YQ37ZCD2.cjs → chunk-DNFSMVXJ.cjs} +16 -16
- package/dist/{chunk-B3XBJCOD.cjs → chunk-H3UA7UY5.cjs} +7 -7
- package/dist/{chunk-JFS6TZDX.cjs → chunk-HDBY2URA.cjs} +64 -64
- package/dist/{chunk-QEUGYHFB.cjs → chunk-HIRVNBX5.cjs} +20 -20
- package/dist/{chunk-ZJPDGVA6.cjs → chunk-ISJXKKYW.cjs} +28 -28
- package/dist/{chunk-FICJS5OA.cjs → chunk-KTPR66EE.cjs} +4 -4
- package/dist/{chunk-FQN6STIM.cjs → chunk-L34TKFTS.cjs} +20 -20
- package/dist/{chunk-AAFW4STC.cjs → chunk-LU7TD6QS.cjs} +5 -5
- package/dist/{chunk-3HPB4H4C.cjs → chunk-NTGIQP7O.cjs} +7 -7
- package/dist/{chunk-WBANGORJ.cjs → chunk-OBODY7F3.cjs} +3 -3
- package/dist/{chunk-GABDE3FM.cjs → chunk-OWGLRE74.cjs} +19 -19
- package/dist/{chunk-CWRVTQUO.cjs → chunk-PS6T65KA.cjs} +101 -101
- package/dist/{chunk-IFS4AH77.cjs → chunk-QYLIHZKZ.cjs} +10 -10
- package/dist/{chunk-GVTDVS5U.cjs → chunk-R34JD6NP.cjs} +3 -3
- package/dist/{chunk-LZ6NOVXX.cjs → chunk-R6SCSV2I.cjs} +103 -103
- package/dist/{chunk-XJ36TEGE.cjs → chunk-T433HSL6.cjs} +47 -47
- package/dist/{chunk-DSVNFRY5.cjs → chunk-U2O5YQRP.cjs} +38 -38
- package/dist/{chunk-O67V3HJR.cjs → chunk-URVIPSAJ.cjs} +24 -24
- package/dist/{chunk-HYBMADYO.cjs → chunk-UWHCRIQQ.cjs} +22 -22
- package/dist/{chunk-GSWQZX23.cjs → chunk-UY6A6TEY.cjs} +2 -2
- package/dist/{chunk-ITPEFCQ2.cjs → chunk-UZLRSFGG.cjs} +32 -32
- package/dist/{chunk-DUVOQHQI.cjs → chunk-W2RM764D.cjs} +7 -7
- package/dist/{chunk-NTJE6SM6.cjs → chunk-WI2OTGKC.cjs} +2 -2
- package/dist/{chunk-SFY4UYPY.cjs → chunk-WIHHA54J.cjs} +44 -44
- package/dist/{chunk-YRE3O65E.cjs → chunk-XAA5EZ5T.cjs} +12 -12
- package/dist/{chunk-KLI4OSRA.cjs → chunk-YQGDXH3M.cjs} +2 -2
- package/dist/{chunk-ZYOS7LVQ.cjs → chunk-Z2DQYKZA.cjs} +89 -89
- package/dist/{chunk-5SVOGLNK.cjs → chunk-ZIFYSLIM.cjs} +6 -6
- package/dist/{cloud-tenants-MVJK52I2.cjs → cloud-tenants-6ICAL3HO.cjs} +24 -24
- package/dist/components/case-studies/index.cjs +37 -37
- package/dist/components/chat/index.cjs +17 -17
- package/dist/components/contact/index.cjs +25 -25
- package/dist/components/docs/index.cjs +28 -28
- package/dist/components/embeds/index.cjs +25 -25
- package/dist/components/faq/index.cjs +26 -26
- package/dist/components/features/index.cjs +24 -24
- package/dist/components/help-center-pages/index.cjs +144 -144
- package/dist/components/index.cjs +85 -85
- package/dist/components/meeting-scheduler/index.cjs +74 -74
- package/dist/components/navigation/index.cjs +27 -27
- package/dist/components/onboarding-guides/index.cjs +27 -27
- package/dist/components/product-demo/index.cjs +9 -9
- package/dist/components/related-content/index.cjs +12 -12
- package/dist/components/tickets/index.cjs +30 -30
- package/dist/components/ui/index.cjs +24 -24
- package/dist/{devices-W3S7Q2PG.cjs → devices-OFP2IBKN.cjs} +25 -25
- package/dist/{embeddable-chat-6JKKFQEB.cjs → embeddable-chat-4C22MGNC.cjs} +92 -92
- package/dist/hooks/index.cjs +10 -10
- package/dist/index.cjs +30 -30
- package/dist/{knowledge-AIYQ4FC3.cjs → knowledge-KKBCSNUA.cjs} +25 -25
- package/dist/{logs-7SHJ2ARE.cjs → logs-X2GRNO57.cjs} +32 -32
- package/dist/{policies-EIZJ5SUP.cjs → policies-35BXKB6P.cjs} +28 -28
- package/dist/{remote-session-BZMNE6D2.cjs → remote-session-N4PJB5FW.cjs} +10 -10
- package/dist/{scripts-J2FWC7E4.cjs → scripts-KQYVQOLU.cjs} +31 -31
- package/dist/{software-update-QAMNASVF.cjs → software-update-ED33WSKT.cjs} +28 -28
- package/dist/{tickets-board-CEDHD3KB.cjs → tickets-board-O753S4ZB.cjs} +14 -14
- package/dist/utils/embed-authed-fetch.d.ts +33 -0
- package/dist/utils/embed-authed-fetch.d.ts.map +1 -1
- package/dist/utils/embed-authed-fetch.js +3 -1
- package/dist/utils/index.cjs +3 -1
- package/dist/{video-file-player-ZH2ILAPO.cjs → video-file-player-QZ3YOLHO.cjs} +2 -2
- package/package.json +1 -1
- package/src/utils/embed-authed-fetch.ts +42 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkURVIPSAJcjs = require('./chunk-URVIPSAJ.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -17,7 +17,7 @@ var _chunkO67V3HJRcjs = require('./chunk-O67V3HJR.cjs');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkNTGIQP7Ocjs = require('./chunk-NTGIQP7O.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -35,7 +35,7 @@ var _chunk3HPB4H4Ccjs = require('./chunk-3HPB4H4C.cjs');
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunkU2O5YQRPcjs = require('./chunk-U2O5YQRP.cjs');
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
var _chunkDEY6XXGOcjs = require('./chunk-DEY6XXGO.cjs');
|
|
@@ -51,18 +51,18 @@ var _chunkDEY6XXGOcjs = require('./chunk-DEY6XXGO.cjs');
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
var
|
|
54
|
+
var _chunk4FWURR3Wcjs = require('./chunk-4FWURR3W.cjs');
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
var
|
|
58
|
+
var _chunkLU7TD6QScjs = require('./chunk-LU7TD6QS.cjs');
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
var _chunkA6P6DHEZcjs = require('./chunk-A6P6DHEZ.cjs');
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
var
|
|
65
|
+
var _chunkYQGDXH3Mcjs = require('./chunk-YQGDXH3M.cjs');
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -109,7 +109,7 @@ var _chunkYUMFVQINcjs = require('./chunk-YUMFVQIN.cjs');
|
|
|
109
109
|
|
|
110
110
|
|
|
111
111
|
|
|
112
|
-
var
|
|
112
|
+
var _chunkPS6T65KAcjs = require('./chunk-PS6T65KA.cjs');
|
|
113
113
|
|
|
114
114
|
|
|
115
115
|
|
|
@@ -132,7 +132,7 @@ var _chunkCWRVTQUOcjs = require('./chunk-CWRVTQUO.cjs');
|
|
|
132
132
|
|
|
133
133
|
|
|
134
134
|
|
|
135
|
-
var
|
|
135
|
+
var _chunk32Q7K5OPcjs = require('./chunk-32Q7K5OP.cjs');
|
|
136
136
|
|
|
137
137
|
|
|
138
138
|
|
|
@@ -145,7 +145,7 @@ var _chunkBV5WZVOPcjs = require('./chunk-BV5WZVOP.cjs');
|
|
|
145
145
|
|
|
146
146
|
|
|
147
147
|
|
|
148
|
-
var
|
|
148
|
+
var _chunkOWGLRE74cjs = require('./chunk-OWGLRE74.cjs');
|
|
149
149
|
|
|
150
150
|
|
|
151
151
|
|
|
@@ -157,7 +157,7 @@ var _chunkGABDE3FMcjs = require('./chunk-GABDE3FM.cjs');
|
|
|
157
157
|
|
|
158
158
|
|
|
159
159
|
|
|
160
|
-
var
|
|
160
|
+
var _chunk5TCIRWHLcjs = require('./chunk-5TCIRWHL.cjs');
|
|
161
161
|
|
|
162
162
|
|
|
163
163
|
|
|
@@ -447,15 +447,15 @@ var _chunkXIBCMGBWcjs = require('./chunk-XIBCMGBW.cjs');
|
|
|
447
447
|
|
|
448
448
|
|
|
449
449
|
|
|
450
|
-
var
|
|
450
|
+
var _chunkW2RM764Dcjs = require('./chunk-W2RM764D.cjs');
|
|
451
451
|
|
|
452
452
|
|
|
453
453
|
|
|
454
454
|
|
|
455
|
-
var
|
|
455
|
+
var _chunkCSJO7ZGNcjs = require('./chunk-CSJO7ZGN.cjs');
|
|
456
456
|
|
|
457
457
|
|
|
458
|
-
var
|
|
458
|
+
var _chunkWI2OTGKCcjs = require('./chunk-WI2OTGKC.cjs');
|
|
459
459
|
|
|
460
460
|
|
|
461
461
|
var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
@@ -484,7 +484,7 @@ var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
|
484
484
|
|
|
485
485
|
|
|
486
486
|
|
|
487
|
-
var
|
|
487
|
+
var _chunk5MH6BRPYcjs = require('./chunk-5MH6BRPY.cjs');
|
|
488
488
|
|
|
489
489
|
|
|
490
490
|
|
|
@@ -492,14 +492,14 @@ var _chunkYXKB5WREcjs = require('./chunk-YXKB5WRE.cjs');
|
|
|
492
492
|
|
|
493
493
|
|
|
494
494
|
|
|
495
|
-
var
|
|
495
|
+
var _chunkQYLIHZKZcjs = require('./chunk-QYLIHZKZ.cjs');
|
|
496
496
|
|
|
497
497
|
|
|
498
498
|
|
|
499
499
|
var _chunk63N4FN5Vcjs = require('./chunk-63N4FN5V.cjs');
|
|
500
500
|
|
|
501
501
|
|
|
502
|
-
var
|
|
502
|
+
var _chunkUY6A6TEYcjs = require('./chunk-UY6A6TEY.cjs');
|
|
503
503
|
|
|
504
504
|
|
|
505
505
|
|
|
@@ -511,7 +511,7 @@ var _chunkGSWQZX23cjs = require('./chunk-GSWQZX23.cjs');
|
|
|
511
511
|
|
|
512
512
|
|
|
513
513
|
|
|
514
|
-
var
|
|
514
|
+
var _chunkABLUMGCIcjs = require('./chunk-ABLUMGCI.cjs');
|
|
515
515
|
|
|
516
516
|
|
|
517
517
|
var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
@@ -526,7 +526,7 @@ var _chunkCW3ML76Ucjs = require('./chunk-CW3ML76U.cjs');
|
|
|
526
526
|
|
|
527
527
|
|
|
528
528
|
|
|
529
|
-
var
|
|
529
|
+
var _chunkR34JD6NPcjs = require('./chunk-R34JD6NP.cjs');
|
|
530
530
|
|
|
531
531
|
|
|
532
532
|
|
|
@@ -535,10 +535,10 @@ var _chunkGVTDVS5Ucjs = require('./chunk-GVTDVS5U.cjs');
|
|
|
535
535
|
|
|
536
536
|
|
|
537
537
|
|
|
538
|
-
var
|
|
538
|
+
var _chunkKTPR66EEcjs = require('./chunk-KTPR66EE.cjs');
|
|
539
539
|
|
|
540
540
|
|
|
541
|
-
var
|
|
541
|
+
var _chunkDGFDBPO7cjs = require('./chunk-DGFDBPO7.cjs');
|
|
542
542
|
|
|
543
543
|
|
|
544
544
|
|
|
@@ -657,7 +657,7 @@ function ThemeProvider({ children, ...overrides }) {
|
|
|
657
657
|
var useTheme = _nextthemes.useTheme;
|
|
658
658
|
function useThemeToggle() {
|
|
659
659
|
const { resolvedTheme, theme, setTheme } = useTheme();
|
|
660
|
-
const mounted =
|
|
660
|
+
const mounted = _chunk32Q7K5OPcjs.useIsHydrated.call(void 0, );
|
|
661
661
|
const active = mounted ? resolvedTheme === "light" || theme === "light" ? "light" : "dark" : DEFAULT_THEME;
|
|
662
662
|
const setOdsTheme = _react.useCallback.call(void 0, (next) => setTheme(next), [setTheme]);
|
|
663
663
|
const toggle = _react.useCallback.call(void 0, () => setTheme(active === "dark" ? "light" : "dark"), [active, setTheme]);
|
|
@@ -794,7 +794,7 @@ function AnnouncementBarView({
|
|
|
794
794
|
style
|
|
795
795
|
}) {
|
|
796
796
|
const handleContentClick = onContentClick ? () => {
|
|
797
|
-
if (!window.matchMedia(
|
|
797
|
+
if (!window.matchMedia(_chunkKTPR66EEcjs.breakpoints.md).matches) onContentClick();
|
|
798
798
|
} : void 0;
|
|
799
799
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex min-h-11 w-full max-w-full items-center", className), style, children: [
|
|
800
800
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -865,7 +865,7 @@ function TimezoneSelect({
|
|
|
865
865
|
}) {
|
|
866
866
|
const options = _react.useMemo.call(void 0, () => timezoneOptions(value), [value]);
|
|
867
867
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
868
|
-
|
|
868
|
+
_chunkU2O5YQRPcjs.Autocomplete,
|
|
869
869
|
{
|
|
870
870
|
className,
|
|
871
871
|
value: value || null,
|
|
@@ -1045,7 +1045,7 @@ var _reactpopover = require('@radix-ui/react-popover'); var Popover = _interopRe
|
|
|
1045
1045
|
|
|
1046
1046
|
var _reactdaypicker = require('react-day-picker');
|
|
1047
1047
|
|
|
1048
|
-
var defaultFormatDate = (date) =>
|
|
1048
|
+
var defaultFormatDate = (date) => _chunkABLUMGCIcjs.formatDateWithTimezone.call(void 0, date, _chunkABLUMGCIcjs.VIEWER_TIMEZONE, "numeric");
|
|
1049
1049
|
var formatDateRange = (range, formatFn) => {
|
|
1050
1050
|
if (!_optionalChain([range, 'optionalAccess', _5 => _5.from])) return "";
|
|
1051
1051
|
if (!range.to) return formatFn(range.from);
|
|
@@ -1081,7 +1081,7 @@ function DatePickerCalendar({
|
|
|
1081
1081
|
onMonthChange
|
|
1082
1082
|
}) {
|
|
1083
1083
|
const today = /* @__PURE__ */ new Date();
|
|
1084
|
-
const isMdUp = _nullishCoalesce(
|
|
1084
|
+
const isMdUp = _nullishCoalesce(_chunkKTPR66EEcjs.useMdUp.call(void 0, ), () => ( true));
|
|
1085
1085
|
const monthsToShow = isMdUp ? numberOfMonths : 1;
|
|
1086
1086
|
const [draftRange, setDraftRange] = _react.useState.call(void 0,
|
|
1087
1087
|
mode === "range" ? selected : void 0
|
|
@@ -1246,7 +1246,7 @@ function DatePickerCalendar({
|
|
|
1246
1246
|
};
|
|
1247
1247
|
const handlePreviousMonth = () => shiftMonth(-1);
|
|
1248
1248
|
const handleNextMonth = () => shiftMonth(1);
|
|
1249
|
-
const formatMonthYear = (date) =>
|
|
1249
|
+
const formatMonthYear = (date) => _chunkABLUMGCIcjs.formatDateWithTimezone.call(void 0, date, _chunkABLUMGCIcjs.VIEWER_TIMEZONE, "monthYear");
|
|
1250
1250
|
const getSecondMonth = (date) => {
|
|
1251
1251
|
const next = new Date(date);
|
|
1252
1252
|
next.setMonth(next.getMonth() + 1);
|
|
@@ -1683,20 +1683,20 @@ function DatePickerInput(props) {
|
|
|
1683
1683
|
) })
|
|
1684
1684
|
] }),
|
|
1685
1685
|
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1", children: [
|
|
1686
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1687
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1688
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1686
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkU2O5YQRPcjs.Select, { value: hour, onValueChange: handleHourChange, disabled, children: [
|
|
1687
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectTrigger, { className: _chunk3ATAYP36cjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectValue, { placeholder: "HH" }) }),
|
|
1688
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectContent, { children: hourOptions.map((h) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: h, children: h }, h)) })
|
|
1689
1689
|
] }),
|
|
1690
1690
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h4", children: ":" }),
|
|
1691
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1692
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1693
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1691
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkU2O5YQRPcjs.Select, { value: minute, onValueChange: handleMinuteChange, disabled, children: [
|
|
1692
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectTrigger, { className: _chunk3ATAYP36cjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectValue, { placeholder: "MM" }) }),
|
|
1693
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectContent, { children: minuteOptions.map((m) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: m, children: m }, m)) })
|
|
1694
1694
|
] }),
|
|
1695
|
-
!use24HourFormat && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1696
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1697
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1698
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1699
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1695
|
+
!use24HourFormat && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkU2O5YQRPcjs.Select, { value: period, onValueChange: (val) => handlePeriodChange(val), disabled, children: [
|
|
1696
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectTrigger, { className: _chunk3ATAYP36cjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectValue, { placeholder: "AM" }) }),
|
|
1697
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkU2O5YQRPcjs.SelectContent, { children: [
|
|
1698
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: "AM", children: "AM" }),
|
|
1699
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: "PM", children: "PM" })
|
|
1700
1700
|
] })
|
|
1701
1701
|
] })
|
|
1702
1702
|
] })
|
|
@@ -1838,9 +1838,9 @@ function DatePickerInputSimple(props) {
|
|
|
1838
1838
|
}
|
|
1839
1839
|
) })
|
|
1840
1840
|
] }),
|
|
1841
|
-
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1842
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1843
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1841
|
+
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkU2O5YQRPcjs.Select, { value: timeValue, onValueChange: handleTimeChange, disabled, children: [
|
|
1842
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectTrigger, { className: _chunk3ATAYP36cjs.cn.call(void 0, timeSelectTriggerStyles, "flex-1"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectValue, { placeholder: "Select time", children: timeDisplayLabel || "Select time" }) }),
|
|
1843
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectContent, { children: timeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
1844
1844
|
] })
|
|
1845
1845
|
] });
|
|
1846
1846
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHTRILBJDcjs.FieldWrapper, { label, error, errorSlot: "error" in props, className, children: content });
|
|
@@ -1859,14 +1859,14 @@ function DateFilterPanel({
|
|
|
1859
1859
|
className
|
|
1860
1860
|
}) {
|
|
1861
1861
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex flex-col gap-4", className), children: [
|
|
1862
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1863
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1862
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkU2O5YQRPcjs.Select, { value: sort, onValueChange: (value) => onSortChange(value), children: [
|
|
1863
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectTrigger, { className: "gap-2", "aria-label": "Sort direction", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
1864
1864
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ArrowUpDown, { className: "size-6 shrink-0 text-ods-text-secondary" }),
|
|
1865
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1865
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectValue, {}) })
|
|
1866
1866
|
] }) }),
|
|
1867
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1868
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1869
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1867
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkU2O5YQRPcjs.SelectContent, { children: [
|
|
1868
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: "asc", children: ascLabel }),
|
|
1869
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: "desc", children: descLabel })
|
|
1870
1870
|
] })
|
|
1871
1871
|
] }),
|
|
1872
1872
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2143,7 +2143,7 @@ function Value({ value, depth }) {
|
|
|
2143
2143
|
}
|
|
2144
2144
|
if (typeof value === "string") {
|
|
2145
2145
|
if (ISO_DATE.test(value)) {
|
|
2146
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: value, className: "text-ods-text-secondary", children:
|
|
2146
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: value, className: "text-ods-text-secondary", children: _chunkOWGLRE74cjs.formatRelativeTime.call(void 0, value) });
|
|
2147
2147
|
}
|
|
2148
2148
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-pre-wrap text-ods-text-primary", children: value });
|
|
2149
2149
|
}
|
|
@@ -2209,7 +2209,7 @@ var ProgressBar = ({
|
|
|
2209
2209
|
mobileHeight = 8,
|
|
2210
2210
|
inverted = false
|
|
2211
2211
|
}) => {
|
|
2212
|
-
const isMdUp = _nullishCoalesce(
|
|
2212
|
+
const isMdUp = _nullishCoalesce(_chunkR34JD6NPcjs.useContentMdUp.call(void 0, ), () => ( true));
|
|
2213
2213
|
const effectiveSegmentWidth = isMdUp ? segmentWidth : mobileSegmentWidth;
|
|
2214
2214
|
const effectiveHeight = isMdUp ? height : mobileHeight;
|
|
2215
2215
|
const containerRef = _react.useRef.call(void 0, null);
|
|
@@ -2325,7 +2325,7 @@ function InfoCardFooter({ footer }) {
|
|
|
2325
2325
|
] });
|
|
2326
2326
|
}
|
|
2327
2327
|
function InfoCardValueRow({ label, value, showLabel, copyable, icon, copyAriaLabel }) {
|
|
2328
|
-
const { copy, copied } =
|
|
2328
|
+
const { copy, copied } = _chunk4FWURR3Wcjs.useCopyToClipboard.call(void 0, );
|
|
2329
2329
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-6 w-full items-center gap-[var(--spacing-system-xs)] self-stretch", children: [
|
|
2330
2330
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-primary text-h4", children: showLabel ? label : "" }),
|
|
2331
2331
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-px flex-1 bg-ods-divider" }),
|
|
@@ -2565,7 +2565,7 @@ function CompactAssigneeDropdown({
|
|
|
2565
2565
|
value: o.value,
|
|
2566
2566
|
label: o.label,
|
|
2567
2567
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2568
|
-
|
|
2568
|
+
_chunkABLUMGCIcjs.SquareAvatar,
|
|
2569
2569
|
{
|
|
2570
2570
|
src: o.imageUrl,
|
|
2571
2571
|
alt: o.label,
|
|
@@ -2599,8 +2599,8 @@ function CompactAssigneeDropdown({
|
|
|
2599
2599
|
"shrink-0 rounded-full focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-focus",
|
|
2600
2600
|
className
|
|
2601
2601
|
),
|
|
2602
|
-
children: currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2603
|
-
|
|
2602
|
+
children: currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkURVIPSAJcjs.DeletedUserAvatar, { size: "sm", accessibleLabel: `Deleted user: ${currentAssignee.name || currentAssignee.id}` }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2603
|
+
_chunkABLUMGCIcjs.SquareAvatar,
|
|
2604
2604
|
{
|
|
2605
2605
|
src: currentAssignee.avatarSrc,
|
|
2606
2606
|
alt: currentAssignee.name,
|
|
@@ -2648,7 +2648,7 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
2648
2648
|
const opt = option;
|
|
2649
2649
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center gap-[var(--spacing-system-sf)]", children: [
|
|
2650
2650
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2651
|
-
|
|
2651
|
+
_chunkABLUMGCIcjs.SquareAvatar,
|
|
2652
2652
|
{
|
|
2653
2653
|
src: opt.imageUrl,
|
|
2654
2654
|
alt: opt.label,
|
|
@@ -2664,7 +2664,7 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
2664
2664
|
if (isEditing) {
|
|
2665
2665
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "min-w-0", className), children: [
|
|
2666
2666
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2667
|
-
|
|
2667
|
+
_chunkU2O5YQRPcjs.Autocomplete,
|
|
2668
2668
|
{
|
|
2669
2669
|
options,
|
|
2670
2670
|
value: _nullishCoalesce(_optionalChain([currentAssignee, 'optionalAccess', _35 => _35.id]), () => ( null)),
|
|
@@ -2676,14 +2676,14 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
2676
2676
|
loading: isLoading,
|
|
2677
2677
|
showChevron: false,
|
|
2678
2678
|
startAdornment: hasAssignee ? currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2679
|
-
|
|
2679
|
+
_chunkURVIPSAJcjs.DeletedUserAvatar,
|
|
2680
2680
|
{
|
|
2681
2681
|
size: "sm",
|
|
2682
2682
|
className: "h-6 w-6",
|
|
2683
2683
|
accessibleLabel: `Deleted user: ${currentAssignee.name || currentAssignee.id}`
|
|
2684
2684
|
}
|
|
2685
2685
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2686
|
-
|
|
2686
|
+
_chunkABLUMGCIcjs.SquareAvatar,
|
|
2687
2687
|
{
|
|
2688
2688
|
src: currentAssignee.avatarSrc,
|
|
2689
2689
|
alt: currentAssignee.name,
|
|
@@ -2702,13 +2702,13 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
2702
2702
|
if (hasAssignee) {
|
|
2703
2703
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", className), children: [
|
|
2704
2704
|
currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2705
|
-
|
|
2705
|
+
_chunkURVIPSAJcjs.DeletedUserAvatar,
|
|
2706
2706
|
{
|
|
2707
2707
|
size: "md",
|
|
2708
2708
|
accessibleLabel: `Deleted user: ${currentAssignee.name || currentAssignee.id}`
|
|
2709
2709
|
}
|
|
2710
2710
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2711
|
-
|
|
2711
|
+
_chunkABLUMGCIcjs.SquareAvatar,
|
|
2712
2712
|
{
|
|
2713
2713
|
src: currentAssignee.avatarSrc,
|
|
2714
2714
|
alt: currentAssignee.name,
|
|
@@ -2782,7 +2782,7 @@ function TextValue({ value }) {
|
|
|
2782
2782
|
}
|
|
2783
2783
|
) : onClick ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick, title: text, className: interactiveClass, children: text }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h4", title: text, children: text }),
|
|
2784
2784
|
hasImage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2785
|
-
|
|
2785
|
+
_chunkABLUMGCIcjs.SquareAvatar,
|
|
2786
2786
|
{
|
|
2787
2787
|
src: imageSrc,
|
|
2788
2788
|
alt: text,
|
|
@@ -2802,7 +2802,7 @@ function RowValue({ value }) {
|
|
|
2802
2802
|
}
|
|
2803
2803
|
case "status": {
|
|
2804
2804
|
const { type: _type, ...props } = value;
|
|
2805
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2805
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWGLRE74cjs.TicketStatusTag, { ...props });
|
|
2806
2806
|
}
|
|
2807
2807
|
case "custom":
|
|
2808
2808
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: value.content });
|
|
@@ -2900,7 +2900,7 @@ function MediaTypeSelector({
|
|
|
2900
2900
|
// changed) and cost an extra render pass on every change to say what the
|
|
2901
2901
|
// prop already said.
|
|
2902
2902
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2903
|
-
|
|
2903
|
+
_chunkU2O5YQRPcjs.Select,
|
|
2904
2904
|
{
|
|
2905
2905
|
value: value || void 0,
|
|
2906
2906
|
onValueChange: (next) => {
|
|
@@ -2910,8 +2910,8 @@ function MediaTypeSelector({
|
|
|
2910
2910
|
disabled,
|
|
2911
2911
|
defaultValue: value,
|
|
2912
2912
|
children: [
|
|
2913
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2914
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2913
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectTrigger, { className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectValue, { placeholder }) }),
|
|
2914
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectContent, { children: mediaTypeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: option.value, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
2915
2915
|
option.icon,
|
|
2916
2916
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: option.label })
|
|
2917
2917
|
] }) }, option.value)) })
|
|
@@ -3720,7 +3720,7 @@ function TagsManager({
|
|
|
3720
3720
|
}
|
|
3721
3721
|
),
|
|
3722
3722
|
selectedTags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3723
|
-
|
|
3723
|
+
_chunkABLUMGCIcjs.Tag,
|
|
3724
3724
|
{
|
|
3725
3725
|
label: tag.name,
|
|
3726
3726
|
variant: "outline",
|
|
@@ -4207,7 +4207,7 @@ var DialogContent = _react.forwardRef.call(void 0, ({ className, children, ...pr
|
|
|
4207
4207
|
),
|
|
4208
4208
|
...props,
|
|
4209
4209
|
children: [
|
|
4210
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid min-h-0 gap-[var(--spacing-system-mf)] overflow-y-auto", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4210
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid min-h-0 gap-[var(--spacing-system-mf)] overflow-y-auto", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkR34JD6NPcjs.ViewportBreakpoints, { children }) }),
|
|
4211
4211
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
4212
4212
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.X, { className: "h-4 w-4" }),
|
|
4213
4213
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: "Close" })
|
|
@@ -4265,10 +4265,10 @@ function useConfirm() {
|
|
|
4265
4265
|
},
|
|
4266
4266
|
[]
|
|
4267
4267
|
);
|
|
4268
|
-
const dialog = pending ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4269
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4270
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4271
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4268
|
+
const dialog = pending ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5TCIRWHLcjs.Modal, { isOpen: open, onClose: () => decide(false), children: [
|
|
4269
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5TCIRWHLcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5TCIRWHLcjs.ModalTitle, { children: pending.title }) }),
|
|
4270
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5TCIRWHLcjs.ModalContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: pending.body }) }),
|
|
4271
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5TCIRWHLcjs.ModalFooter, { children: [
|
|
4272
4272
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { variant: "outline", onClick: () => decide(false), children: "Cancel" }),
|
|
4273
4273
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { variant: "destructive", onClick: () => decide(true), children: "Confirm" })
|
|
4274
4274
|
] })
|
|
@@ -4322,14 +4322,14 @@ function AdminFormDrawer({
|
|
|
4322
4322
|
else onClose();
|
|
4323
4323
|
};
|
|
4324
4324
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4325
|
-
|
|
4325
|
+
_chunkNTGIQP7Ocjs.Drawer,
|
|
4326
4326
|
{
|
|
4327
4327
|
open: isOpen,
|
|
4328
4328
|
onOpenChange: (open) => {
|
|
4329
4329
|
if (!open) requestClose();
|
|
4330
4330
|
},
|
|
4331
4331
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4332
|
-
|
|
4332
|
+
_chunkNTGIQP7Ocjs.DrawerContent,
|
|
4333
4333
|
{
|
|
4334
4334
|
side: "right",
|
|
4335
4335
|
resizable: true,
|
|
@@ -4338,15 +4338,15 @@ function AdminFormDrawer({
|
|
|
4338
4338
|
storageKey,
|
|
4339
4339
|
panelClassName: "max-md:w-[calc(100vw-1rem)]",
|
|
4340
4340
|
children: [
|
|
4341
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4342
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4343
|
-
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4341
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNTGIQP7Ocjs.DrawerHeader, { children: [
|
|
4342
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNTGIQP7Ocjs.DrawerTitle, { children: title }),
|
|
4343
|
+
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNTGIQP7Ocjs.DrawerDescription, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: subtitle }) })
|
|
4344
4344
|
] }),
|
|
4345
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4345
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNTGIQP7Ocjs.DrawerBody, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4346
4346
|
"form",
|
|
4347
4347
|
{
|
|
4348
4348
|
id: formId,
|
|
4349
|
-
...
|
|
4349
|
+
..._chunkPS6T65KAcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
4350
4350
|
className: "flex flex-col gap-[var(--spacing-system-lf)]",
|
|
4351
4351
|
onSubmit: (e) => {
|
|
4352
4352
|
e.preventDefault();
|
|
@@ -4447,16 +4447,16 @@ function AdminFormModal({
|
|
|
4447
4447
|
body: "Your edits have not been saved. Close and discard them?"
|
|
4448
4448
|
});
|
|
4449
4449
|
if (!isOpen) return null;
|
|
4450
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4451
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4452
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4450
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5TCIRWHLcjs.Modal, { isOpen: true, onClose: guardedClose, size: effectiveSize, children: [
|
|
4451
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5TCIRWHLcjs.ModalHeader, { children: [
|
|
4452
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5TCIRWHLcjs.ModalTitle, { children: title }),
|
|
4453
4453
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-ods-text-secondary text-h6", children: subtitle })
|
|
4454
4454
|
] }),
|
|
4455
4455
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4456
4456
|
"form",
|
|
4457
4457
|
{
|
|
4458
4458
|
id: formId,
|
|
4459
|
-
...
|
|
4459
|
+
..._chunkPS6T65KAcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
4460
4460
|
className: "flex min-h-0 flex-1 flex-col",
|
|
4461
4461
|
onSubmit: (e) => {
|
|
4462
4462
|
e.preventDefault();
|
|
@@ -4474,7 +4474,7 @@ function AdminFormModal({
|
|
|
4474
4474
|
// a shrink-to-fit flex item pinned to the left of a 1400px panel).
|
|
4475
4475
|
// The placeholder owns its own layout and mirrors the column count so
|
|
4476
4476
|
// the modal doesn't visibly re-flow when the entity lands.
|
|
4477
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4477
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5TCIRWHLcjs.ModalContent, { children: loadingContent ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-busy": "true", children: loadingContent }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4478
4478
|
"div",
|
|
4479
4479
|
{
|
|
4480
4480
|
"aria-busy": "true",
|
|
@@ -4495,12 +4495,12 @@ function AdminFormModal({
|
|
|
4495
4495
|
]
|
|
4496
4496
|
}
|
|
4497
4497
|
) })
|
|
4498
|
-
) : twoColumn ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4498
|
+
) : twoColumn ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5TCIRWHLcjs.ModalTwoColumn, { left: leftColumn, right: rightColumn }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5TCIRWHLcjs.ModalContent, { className: contentClassName, children }),
|
|
4499
4499
|
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { role: "alert", className: "shrink-0 text-ods-error text-h6", children: error })
|
|
4500
4500
|
]
|
|
4501
4501
|
}
|
|
4502
4502
|
),
|
|
4503
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4503
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5TCIRWHLcjs.ModalFooter, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center justify-between gap-[var(--spacing-system-xsf)]", children: [
|
|
4504
4504
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: footerExtras }),
|
|
4505
4505
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
4506
4506
|
footerStatus,
|
|
@@ -4582,7 +4582,7 @@ var SheetContent = _react.forwardRef.call(void 0,
|
|
|
4582
4582
|
({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SheetPortal, { children: [
|
|
4583
4583
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetOverlay, {}),
|
|
4584
4584
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SheetPrimitive.Content, { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, sheetVariants({ side }), className), ...props, children: [
|
|
4585
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4585
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkR34JD6NPcjs.ViewportBreakpoints, { children }),
|
|
4586
4586
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
4587
4587
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.X, { className: "h-4 w-4" }),
|
|
4588
4588
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: "Close" })
|
|
@@ -5220,7 +5220,7 @@ var TabBar = _react.memo.call(void 0, function TabBarImpl({
|
|
|
5220
5220
|
// as tall as its neighbours at every breakpoint. No hover shade:
|
|
5221
5221
|
// the tab is the target, and the cursor passes through to it.
|
|
5222
5222
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5223
|
-
|
|
5223
|
+
_chunkABLUMGCIcjs.Tag,
|
|
5224
5224
|
{
|
|
5225
5225
|
as: "span",
|
|
5226
5226
|
"aria-hidden": true,
|
|
@@ -5465,7 +5465,7 @@ function FadePreview({
|
|
|
5465
5465
|
setCollapsedFor(resetKey);
|
|
5466
5466
|
setExpanded(false);
|
|
5467
5467
|
}
|
|
5468
|
-
|
|
5468
|
+
_chunkDGFDBPO7cjs.useIsomorphicLayoutEffect.call(void 0, () => {
|
|
5469
5469
|
const el = contentRef.current;
|
|
5470
5470
|
if (!el) return;
|
|
5471
5471
|
if (!fixed) {
|
|
@@ -5732,7 +5732,7 @@ function EmbedViewerFrame({
|
|
|
5732
5732
|
const controllerRef = _react.useRef.call(void 0, null);
|
|
5733
5733
|
_react.useEffect.call(void 0, () => {
|
|
5734
5734
|
if (!fullscreenControl) return void 0;
|
|
5735
|
-
const controller = new (0,
|
|
5735
|
+
const controller = new (0, _chunkPS6T65KAcjs.FullscreenSwitchController)({
|
|
5736
5736
|
target: () => frameRef.current,
|
|
5737
5737
|
onFullscreenChange: setIsFullscreen
|
|
5738
5738
|
});
|
|
@@ -5826,9 +5826,9 @@ var KIND_HEADING = {
|
|
|
5826
5826
|
design: "Claude Design"
|
|
5827
5827
|
};
|
|
5828
5828
|
function ClaudeEmbed({ url, kind = "artifact", title, height, loading = "lazy" }) {
|
|
5829
|
-
const { src: mirrorSrc, status } =
|
|
5829
|
+
const { src: mirrorSrc, status } = _chunk4FWURR3Wcjs.useClaudeMirrorSrc.call(void 0, url);
|
|
5830
5830
|
const isProbing = status === "probing";
|
|
5831
|
-
const embedUrl = isProbing ? null : _nullishCoalesce(mirrorSrc, () => (
|
|
5831
|
+
const embedUrl = isProbing ? null : _nullishCoalesce(mirrorSrc, () => ( _chunkW2RM764Dcjs.toClaudeEmbedUrl.call(void 0, url)));
|
|
5832
5832
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5833
5833
|
EmbedViewerFrame,
|
|
5834
5834
|
{
|
|
@@ -5903,12 +5903,12 @@ function SlidesViewToggle({ view, onChange }) {
|
|
|
5903
5903
|
}
|
|
5904
5904
|
function FigmaEmbed({ url, title, height, loading = "lazy" }) {
|
|
5905
5905
|
const [view, setView] = _react.useState.call(void 0, "present");
|
|
5906
|
-
const isSlides = url ?
|
|
5907
|
-
const embedSrc = url ?
|
|
5906
|
+
const isSlides = url ? _chunkW2RM764Dcjs.isFigmaSlidesUrl.call(void 0, url) : false;
|
|
5907
|
+
const embedSrc = url ? _chunkW2RM764Dcjs.toFigmaEmbedUrl.call(void 0, url, { slidesView: view }) : null;
|
|
5908
5908
|
const originalUrl = (() => {
|
|
5909
5909
|
if (!url) return null;
|
|
5910
5910
|
try {
|
|
5911
|
-
const parsed = new URL(
|
|
5911
|
+
const parsed = new URL(_chunkW2RM764Dcjs.toFigmaOriginalUrl.call(void 0, url));
|
|
5912
5912
|
const host = parsed.hostname.toLowerCase();
|
|
5913
5913
|
const okHost = host === "figma.com" || host.endsWith(".figma.com");
|
|
5914
5914
|
const okProtocol = parsed.protocol === "https:" || parsed.protocol === "http:";
|
|
@@ -6682,7 +6682,7 @@ var MediaCarousel = _react.memo.call(void 0, function MediaCarouselImpl({
|
|
|
6682
6682
|
};
|
|
6683
6683
|
const displayImageSrc = (url) => transformImageSrc ? transformImageSrc(url) : url;
|
|
6684
6684
|
const renderVideo = (item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6685
|
-
|
|
6685
|
+
_chunk5MH6BRPYcjs.Video,
|
|
6686
6686
|
{
|
|
6687
6687
|
url: item.src,
|
|
6688
6688
|
poster: item.poster ? displayImageSrc(item.poster) : void 0,
|
|
@@ -7114,7 +7114,7 @@ function RedditEmbedClient({ url, maxWidth = 700 }) {
|
|
|
7114
7114
|
width: m.width,
|
|
7115
7115
|
height: m.height
|
|
7116
7116
|
}));
|
|
7117
|
-
const formatNumber =
|
|
7117
|
+
const formatNumber = _chunkABLUMGCIcjs.formatLargeNumber;
|
|
7118
7118
|
const truncateText = (text, maxLength = 600) => {
|
|
7119
7119
|
if (text.length <= maxLength) return text;
|
|
7120
7120
|
return text.slice(0, maxLength) + "...";
|
|
@@ -7406,7 +7406,7 @@ function buildRichEmbedOverrides({
|
|
|
7406
7406
|
ogEndpointPath,
|
|
7407
7407
|
textSizes
|
|
7408
7408
|
}) {
|
|
7409
|
-
const standard =
|
|
7409
|
+
const standard = _chunk32Q7K5OPcjs.buildStandardLeafRenderers.call(void 0, { textSizes });
|
|
7410
7410
|
return {
|
|
7411
7411
|
// Fence-language embeds (```youtube-embed etc.); everything else
|
|
7412
7412
|
// (mermaid, highlighted blocks, inline code) falls through to `standard`.
|
|
@@ -7416,7 +7416,7 @@ function buildRichEmbedOverrides({
|
|
|
7416
7416
|
const language = match ? match[1] : "";
|
|
7417
7417
|
const fenceText = () => String(children).replace(/\n$/, "").trim();
|
|
7418
7418
|
if (language === "youtube-embed") {
|
|
7419
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7419
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5MH6BRPYcjs.Video, { kind: "youtube", url: fenceText() });
|
|
7420
7420
|
}
|
|
7421
7421
|
if (language === "reddit-embed") {
|
|
7422
7422
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RedditEmbedClient, { url: fenceText() });
|
|
@@ -7457,7 +7457,7 @@ function buildRichEmbedOverrides({
|
|
|
7457
7457
|
"data-figma-url": figmaUrl
|
|
7458
7458
|
} = divProps;
|
|
7459
7459
|
if (className === "youtube-embed" && videoId) {
|
|
7460
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7460
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5MH6BRPYcjs.Video, { kind: "youtube", url: videoId });
|
|
7461
7461
|
}
|
|
7462
7462
|
if (className === "reddit-embed" && postUrl) {
|
|
7463
7463
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RedditEmbedClient, { url: postUrl });
|
|
@@ -7542,14 +7542,14 @@ function buildRichEmbedOverrides({
|
|
|
7542
7542
|
// rich-markdown runtime (Supabase optimization on the hub, identity
|
|
7543
7543
|
// elsewhere). Guard against empty `![]()`.
|
|
7544
7544
|
img: ({ src, alt }) => {
|
|
7545
|
-
if (!
|
|
7545
|
+
if (!_chunk32Q7K5OPcjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7546
7546
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownImage, { src: src.trim(), alt });
|
|
7547
7547
|
},
|
|
7548
7548
|
// Raw <video> tags in stored content (blog publisher injection) route
|
|
7549
7549
|
// to the <Video> SSOT (MuxPlayer) so HLS manifests play everywhere.
|
|
7550
7550
|
video: ({ src, poster, className }) => {
|
|
7551
|
-
if (!
|
|
7552
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `overflow-hidden ${className || "my-8 w-full rounded-lg"}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7551
|
+
if (!_chunk32Q7K5OPcjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7552
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `overflow-hidden ${className || "my-8 w-full rounded-lg"}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5MH6BRPYcjs.Video, { kind: "file", url: src.trim(), poster: typeof poster === "string" ? poster : void 0 }) }) });
|
|
7553
7553
|
}
|
|
7554
7554
|
};
|
|
7555
7555
|
}
|
|
@@ -7657,7 +7657,7 @@ var processShortcodes = (content) => {
|
|
|
7657
7657
|
try {
|
|
7658
7658
|
const urlObj = new URL(url);
|
|
7659
7659
|
const hostname = urlObj.hostname.toLowerCase();
|
|
7660
|
-
const hostIs = (domain) =>
|
|
7660
|
+
const hostIs = (domain) => _chunkPS6T65KAcjs.hostMatches.call(void 0, hostname, domain);
|
|
7661
7661
|
const isYouTubeVideo = hostIs("youtube.com") && urlObj.searchParams.has("v") || hostIs("youtu.be");
|
|
7662
7662
|
if (isYouTubeVideo || hostIs("reddit.com") || hostIs("twitter.com") || hostIs("x.com") || hostIs("figma.com")) {
|
|
7663
7663
|
return match;
|
|
@@ -7732,13 +7732,13 @@ var RichMarkdownInner = ({
|
|
|
7732
7732
|
},
|
|
7733
7733
|
[resolveLinkEndpointUrl, resolveSource]
|
|
7734
7734
|
);
|
|
7735
|
-
const textSizes = _react.useMemo.call(void 0, () =>
|
|
7735
|
+
const textSizes = _react.useMemo.call(void 0, () => _chunk32Q7K5OPcjs.resolveTextSizeConfig.call(void 0, "article"), []);
|
|
7736
7736
|
const componentOverrides = _react.useMemo.call(void 0,
|
|
7737
7737
|
() => buildRichEmbedOverrides({ ogApiBaseUrl, ogEndpointPath, textSizes }),
|
|
7738
7738
|
[ogApiBaseUrl, ogEndpointPath, textSizes]
|
|
7739
7739
|
);
|
|
7740
7740
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7741
|
-
|
|
7741
|
+
_chunk32Q7K5OPcjs.MarkdownEngine,
|
|
7742
7742
|
{
|
|
7743
7743
|
content,
|
|
7744
7744
|
className,
|
|
@@ -7760,7 +7760,7 @@ var RichMarkdownRendererImpl = ({
|
|
|
7760
7760
|
className = "",
|
|
7761
7761
|
sectionIds,
|
|
7762
7762
|
onInternalLinkClick,
|
|
7763
|
-
brokenLinks =
|
|
7763
|
+
brokenLinks = _chunk32Q7K5OPcjs.NO_BROKEN_LINKS,
|
|
7764
7764
|
currentPath,
|
|
7765
7765
|
resolveSource = "openframe-docs",
|
|
7766
7766
|
resolveLinkEndpointUrl = "/api/docs/resolve-link",
|
|
@@ -8718,7 +8718,7 @@ function FilterModal({
|
|
|
8718
8718
|
const dateDefaultSort = _nullishCoalesce(_optionalChain([dateFilter, 'optionalAccess', _146 => _146.defaultSort]), () => ( "desc"));
|
|
8719
8719
|
const [draftDateSort, setDraftDateSort] = _react.useState.call(void 0, _nullishCoalesce(_optionalChain([dateFilter, 'optionalAccess', _147 => _147.sort]), () => ( dateDefaultSort)));
|
|
8720
8720
|
const [draftDateRange, setDraftDateRange] = _react.useState.call(void 0, _optionalChain([dateFilter, 'optionalAccess', _148 => _148.range]));
|
|
8721
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateFade } =
|
|
8721
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunk32Q7K5OPcjs.useScrollFade.call(void 0, );
|
|
8722
8722
|
const seedKey = `${JSON.stringify(currentFilters)}|${JSON.stringify(_nullishCoalesce(selectedTags, () => ( [])))}`;
|
|
8723
8723
|
const seedSourceRef = _react.useRef.call(void 0, { currentFilters, selectedTags, dateFilter, dateDefaultSort });
|
|
8724
8724
|
_react.useEffect.call(void 0, () => {
|
|
@@ -8764,15 +8764,15 @@ function FilterModal({
|
|
|
8764
8764
|
const hasTagFilter = !!tagFilterKeys && tagFilterKeys.length > 0 && !!onTagsChange;
|
|
8765
8765
|
const isEmpty = !isLoading && !hasSort && !hasFilterGroups && !hasTagFilter && !dateFilter;
|
|
8766
8766
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8767
|
-
|
|
8767
|
+
_chunk5TCIRWHLcjs.Modal,
|
|
8768
8768
|
{
|
|
8769
8769
|
isOpen,
|
|
8770
8770
|
onClose,
|
|
8771
8771
|
className: _chunk3ATAYP36cjs.cn.call(void 0, "max-h-[90vh] max-w-none md:max-w-[min(42rem,calc(100vw-2rem))]", className),
|
|
8772
8772
|
children: [
|
|
8773
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8773
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5TCIRWHLcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5TCIRWHLcjs.ModalTitle, { children: title }) }),
|
|
8774
8774
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8775
|
-
|
|
8775
|
+
_chunk5TCIRWHLcjs.ModalContent,
|
|
8776
8776
|
{
|
|
8777
8777
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
8778
8778
|
"flex min-h-0 flex-1 flex-col",
|
|
@@ -8864,12 +8864,12 @@ function FilterModal({
|
|
|
8864
8864
|
] })
|
|
8865
8865
|
}
|
|
8866
8866
|
),
|
|
8867
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8868
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8867
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop }),
|
|
8868
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom })
|
|
8869
8869
|
] })
|
|
8870
8870
|
}
|
|
8871
8871
|
),
|
|
8872
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8872
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5TCIRWHLcjs.ModalFooter, { children: [
|
|
8873
8873
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { variant: "outline", className: "h-11 flex-1", onClick: handleReset, children: resetButtonText }),
|
|
8874
8874
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { variant: "accent", className: "h-11 flex-1", onClick: handleApply, children: applyButtonText })
|
|
8875
8875
|
] })
|
|
@@ -8931,7 +8931,7 @@ function renderAdvancedPageContainer({
|
|
|
8931
8931
|
};
|
|
8932
8932
|
const renderActions = () => {
|
|
8933
8933
|
if (!actions || actions.length === 0) return null;
|
|
8934
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8934
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.PageActions, { variant: getActionsVariant(), actions, menuActions });
|
|
8935
8935
|
};
|
|
8936
8936
|
const needsBottomPadding = actions && actions.length > 0 && getActionsVariant() === "primary-buttons";
|
|
8937
8937
|
const paddingClasses = {
|
|
@@ -8954,14 +8954,14 @@ function renderAdvancedPageContainer({
|
|
|
8954
8954
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-end justify-between gap-4 content-md:flex-col content-md:items-start content-md:justify-start content-lg:flex-row content-lg:items-end content-lg:justify-between", children: [
|
|
8955
8955
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
8956
8956
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8957
|
-
|
|
8957
|
+
_chunkU2O5YQRPcjs.BackButton,
|
|
8958
8958
|
{
|
|
8959
8959
|
onClick: backButton.onClick,
|
|
8960
8960
|
label: backButton.label,
|
|
8961
8961
|
className: "hidden content-md:inline-flex"
|
|
8962
8962
|
}
|
|
8963
8963
|
),
|
|
8964
|
-
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOF336YWGcjs.PageTitle, { className: "text-ods-text-primary text-h2", children:
|
|
8964
|
+
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOF336YWGcjs.PageTitle, { className: "text-ods-text-primary text-h2", children: _chunk5MH6BRPYcjs.accentSentenceMarks.call(void 0, title) }),
|
|
8965
8965
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-ods-text-secondary text-h6", children: subtitle })
|
|
8966
8966
|
] }),
|
|
8967
8967
|
(headerActions || actions) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 items-center gap-2", children: [
|
|
@@ -8974,14 +8974,14 @@ function renderAdvancedPageContainer({
|
|
|
8974
8974
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between gap-4 content-md:flex-col content-md:items-start content-md:justify-start content-lg:flex-row content-lg:items-center content-lg:justify-between", children: [
|
|
8975
8975
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
8976
8976
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8977
|
-
|
|
8977
|
+
_chunkU2O5YQRPcjs.BackButton,
|
|
8978
8978
|
{
|
|
8979
8979
|
onClick: backButton.onClick,
|
|
8980
8980
|
label: backButton.label,
|
|
8981
8981
|
className: "hidden content-md:inline-flex"
|
|
8982
8982
|
}
|
|
8983
8983
|
),
|
|
8984
|
-
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOF336YWGcjs.PageTitle, { className: "text-ods-text-primary text-h2", children:
|
|
8984
|
+
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOF336YWGcjs.PageTitle, { className: "text-ods-text-primary text-h2", children: _chunk5MH6BRPYcjs.accentSentenceMarks.call(void 0, title) }),
|
|
8985
8985
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-ods-text-secondary text-h6", children: subtitle })
|
|
8986
8986
|
] }),
|
|
8987
8987
|
(headerActions || actions) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 items-center gap-3", children: [
|
|
@@ -8994,14 +8994,14 @@ function renderAdvancedPageContainer({
|
|
|
8994
8994
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-end justify-between gap-4 content-md:flex-col content-md:items-start content-md:justify-start content-lg:flex-row content-lg:items-end content-lg:justify-between", children: [
|
|
8995
8995
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
8996
8996
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8997
|
-
|
|
8997
|
+
_chunkU2O5YQRPcjs.BackButton,
|
|
8998
8998
|
{
|
|
8999
8999
|
onClick: backButton.onClick,
|
|
9000
9000
|
label: backButton.label,
|
|
9001
9001
|
className: "hidden content-md:inline-flex"
|
|
9002
9002
|
}
|
|
9003
9003
|
),
|
|
9004
|
-
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOF336YWGcjs.PageTitle, { className: "text-ods-text-primary text-h2", children:
|
|
9004
|
+
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOF336YWGcjs.PageTitle, { className: "text-ods-text-primary text-h2", children: _chunk5MH6BRPYcjs.accentSentenceMarks.call(void 0, title) })
|
|
9005
9005
|
] }),
|
|
9006
9006
|
(headerActions || actions) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 items-center gap-4", children: [
|
|
9007
9007
|
headerActions,
|
|
@@ -9011,7 +9011,7 @@ function renderAdvancedPageContainer({
|
|
|
9011
9011
|
}
|
|
9012
9012
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between gap-4 content-md:flex-col content-md:items-start content-md:justify-start content-lg:flex-row content-lg:items-center content-lg:justify-between", children: [
|
|
9013
9013
|
(title || subtitle) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
9014
|
-
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOF336YWGcjs.PageTitle, { className: "text-ods-text-primary text-h2", children:
|
|
9014
|
+
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOF336YWGcjs.PageTitle, { className: "text-ods-text-primary text-h2", children: _chunk5MH6BRPYcjs.accentSentenceMarks.call(void 0, title) }),
|
|
9015
9015
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-ods-text-secondary text-h6", children: subtitle })
|
|
9016
9016
|
] }),
|
|
9017
9017
|
(headerActions || actions) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 items-center gap-3", children: [
|
|
@@ -9082,7 +9082,7 @@ function ListPageLayout({
|
|
|
9082
9082
|
}) {
|
|
9083
9083
|
const [mobileFilterOpen, setMobileFilterOpen] = _react.useState.call(void 0, false);
|
|
9084
9084
|
const [localSearchValue, setLocalSearchValue] = _react.useState.call(void 0, searchValue);
|
|
9085
|
-
const debouncedSearchValue =
|
|
9085
|
+
const debouncedSearchValue = _chunkCSJO7ZGNcjs.useDebounce.call(void 0, localSearchValue, 500);
|
|
9086
9086
|
const [syncedSearchValue, setSyncedSearchValue] = _react.useState.call(void 0, searchValue);
|
|
9087
9087
|
if (syncedSearchValue !== searchValue) {
|
|
9088
9088
|
setSyncedSearchValue(searchValue);
|
|
@@ -9344,7 +9344,7 @@ var BenefitCardGrid = ({ children, className = "", columns = 2 }) => {
|
|
|
9344
9344
|
|
|
9345
9345
|
|
|
9346
9346
|
function PlatformBrowseButton({ item }) {
|
|
9347
|
-
const linkProps =
|
|
9347
|
+
const linkProps = _chunk32Q7K5OPcjs.useNavLinkViaRuntime.call(void 0, { href: item.link, targetPlatform: item.targetPlatform });
|
|
9348
9348
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2QMBXGMQcjs.Button, { variant: "outline", linkProps, rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-4 w-4" }), children: [
|
|
9349
9349
|
"Browse ",
|
|
9350
9350
|
item.buttonText
|
|
@@ -9647,7 +9647,7 @@ function DashboardInfoCard({
|
|
|
9647
9647
|
const asTag = percentageDisplay === "tag" || percentageDisplay === "auto" && (progressVariant === "warning" || progressVariant === "error");
|
|
9648
9648
|
if (asTag) {
|
|
9649
9649
|
const tagVariant = progressVariant === "warning" || progressVariant === "error" ? progressVariant : progressVariant === "success" ? "success" : "grey";
|
|
9650
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9650
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABLUMGCIcjs.Tag, { variant: tagVariant, label: `${percentage}%` });
|
|
9651
9651
|
}
|
|
9652
9652
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: [
|
|
9653
9653
|
"(",
|
|
@@ -9705,7 +9705,7 @@ function DashboardInfoCard({
|
|
|
9705
9705
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunk3ATAYP36cjs.cn.call(void 0, "truncate text-ods-text-primary text-h3 content-md:text-h2", valueClassName), children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "block h-[1lh] w-24 animate-pulse rounded bg-ods-border" }) : formattedValue }),
|
|
9706
9706
|
subValue && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: subValue }),
|
|
9707
9707
|
renderPercentage(),
|
|
9708
|
-
tooltip && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9708
|
+
tooltip && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABLUMGCIcjs.FloatingTooltip, { content: tooltip, side: "top", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "cursor-help text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFO6DOP6Mcjs.QuestionCircleIcon, { size: 20 }) }) })
|
|
9709
9709
|
] }),
|
|
9710
9710
|
caption && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "line-clamp-2 min-h-[2lh] text-ods-text-secondary text-h6", children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "block h-[1lh] w-32 animate-pulse rounded bg-ods-border" }) : caption })
|
|
9711
9711
|
] }),
|
|
@@ -9792,10 +9792,10 @@ var OSTypeBadge = ({
|
|
|
9792
9792
|
if (!osType) {
|
|
9793
9793
|
return labelOnly ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3ATAYP36cjs.cn.call(void 0, "text-ods-text-secondary", className), children: "Unknown" }) : null;
|
|
9794
9794
|
}
|
|
9795
|
-
const normalized =
|
|
9795
|
+
const normalized = _chunkPS6T65KAcjs.normalizeOSType.call(void 0, osType);
|
|
9796
9796
|
if (!normalized && !labelOnly) return null;
|
|
9797
|
-
const label =
|
|
9798
|
-
const IconComponent =
|
|
9797
|
+
const label = _chunkPS6T65KAcjs.getOSLabel.call(void 0, osType);
|
|
9798
|
+
const IconComponent = _chunkPS6T65KAcjs.getOSIcon.call(void 0, osType);
|
|
9799
9799
|
if (iconOnly && IconComponent) {
|
|
9800
9800
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: _chunk3ATAYP36cjs.cn.call(void 0, iconSize, "text-ods-text-secondary", className) });
|
|
9801
9801
|
}
|
|
@@ -9832,7 +9832,7 @@ function DeviceCard({
|
|
|
9832
9832
|
}) {
|
|
9833
9833
|
const formatLastSeen = (lastSeen) => {
|
|
9834
9834
|
if (!lastSeen) return null;
|
|
9835
|
-
return
|
|
9835
|
+
return _chunkABLUMGCIcjs.formatDateTimeYmd.call(void 0, lastSeen, null) || null;
|
|
9836
9836
|
};
|
|
9837
9837
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9838
9838
|
"div",
|
|
@@ -9891,7 +9891,7 @@ function DeviceCard({
|
|
|
9891
9891
|
] }),
|
|
9892
9892
|
(statusTag || device.lastSeen) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-2", children: [
|
|
9893
9893
|
statusTag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9894
|
-
|
|
9894
|
+
_chunkABLUMGCIcjs.Tag,
|
|
9895
9895
|
{
|
|
9896
9896
|
variant: statusTag.variant,
|
|
9897
9897
|
icon: statusTag.icon,
|
|
@@ -9905,7 +9905,7 @@ function DeviceCard({
|
|
|
9905
9905
|
formatLastSeen(device.lastSeen)
|
|
9906
9906
|
] })
|
|
9907
9907
|
] }),
|
|
9908
|
-
device.tags && device.tags.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-wrap items-center gap-2", children: device.tags.map((tag, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9908
|
+
device.tags && device.tags.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-wrap items-center gap-2", children: device.tags.map((tag, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABLUMGCIcjs.Tag, { variant: "outline", label: tag }, index)) })
|
|
9909
9909
|
]
|
|
9910
9910
|
}
|
|
9911
9911
|
);
|
|
@@ -9944,7 +9944,7 @@ function DataAttribution({ icon, source, lastUpdated, action }) {
|
|
|
9944
9944
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator3, {}),
|
|
9945
9945
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
|
|
9946
9946
|
"Last updated: ",
|
|
9947
|
-
lastUpdated ?
|
|
9947
|
+
lastUpdated ? _chunkABLUMGCIcjs.formatDate.call(void 0, lastUpdated) : "Never"
|
|
9948
9948
|
] }),
|
|
9949
9949
|
action ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex content-sm:pl-[var(--spacing-system-xs)]", children: action }) : null
|
|
9950
9950
|
] });
|
|
@@ -10027,7 +10027,7 @@ function ComplianceLogo({
|
|
|
10027
10027
|
fallback = null,
|
|
10028
10028
|
className
|
|
10029
10029
|
}) {
|
|
10030
|
-
const standard =
|
|
10030
|
+
const standard = _chunkPS6T65KAcjs.complianceStandardForName.call(void 0, ...names);
|
|
10031
10031
|
if (!standard) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: fallback });
|
|
10032
10032
|
const Official = standard.logo ? COMPLIANCE_LOGOS[standard.logo] : null;
|
|
10033
10033
|
return Official ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10108,7 +10108,7 @@ function FeatureCardGrid({
|
|
|
10108
10108
|
if (allCardsHaveNoBorders) {
|
|
10109
10109
|
finalCardClassName = "bg-transparent p-0 overflow-visible border-0 shadow-none rounded-none";
|
|
10110
10110
|
}
|
|
10111
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10111
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5MH6BRPYcjs.Card, { className: `${finalCardClassName} ${className}`, children: Array.from({ length: rows }, (_, rowIndex) => {
|
|
10112
10112
|
const startIndex = rowIndex * itemsPerRow;
|
|
10113
10113
|
const rowItems = items.slice(startIndex, startIndex + itemsPerRow);
|
|
10114
10114
|
const isLastRow = rowIndex === rows - 1;
|
|
@@ -10142,7 +10142,7 @@ function FeatureCardGrid({
|
|
|
10142
10142
|
item.icon && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start justify-between", children: [
|
|
10143
10143
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, item.icon, { size: 80, color: item.iconColor }),
|
|
10144
10144
|
item.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10145
|
-
|
|
10145
|
+
_chunk5MH6BRPYcjs.StatusBadge,
|
|
10146
10146
|
{
|
|
10147
10147
|
text: item.badge.text,
|
|
10148
10148
|
variant: item.badge.variant || "card",
|
|
@@ -10151,7 +10151,7 @@ function FeatureCardGrid({
|
|
|
10151
10151
|
)
|
|
10152
10152
|
] }),
|
|
10153
10153
|
!item.icon && item.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-start justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10154
|
-
|
|
10154
|
+
_chunk5MH6BRPYcjs.StatusBadge,
|
|
10155
10155
|
{
|
|
10156
10156
|
text: item.badge.text,
|
|
10157
10157
|
variant: item.badge.variant || "card",
|
|
@@ -10307,7 +10307,7 @@ function FeatureList({
|
|
|
10307
10307
|
|
|
10308
10308
|
function SourceTooltip({ intro, sources, note, iconClassName, triggerAnchorProps }) {
|
|
10309
10309
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10310
|
-
|
|
10310
|
+
_chunkABLUMGCIcjs.FloatingTooltip,
|
|
10311
10311
|
{
|
|
10312
10312
|
as: "span",
|
|
10313
10313
|
side: "top",
|
|
@@ -10712,7 +10712,7 @@ function OrganizationCard({
|
|
|
10712
10712
|
}
|
|
10713
10713
|
),
|
|
10714
10714
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start gap-3", children: [
|
|
10715
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10715
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.EntityImage, { src: fetchedImageUrl || organization.imageUrl, alt: organization.name }),
|
|
10716
10716
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center py-2", children: [
|
|
10717
10717
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "truncate text-ods-text-primary transition-colors text-h3", title: organization.name, children: organization.name }),
|
|
10718
10718
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10762,8 +10762,8 @@ function ServiceCard({ title, subtitle, icon, tag, rows, className }) {
|
|
|
10762
10762
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-4", children: [
|
|
10763
10763
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-md border border-ods-border bg-ods-bg", children: resolvedIcon }),
|
|
10764
10764
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0", children: [
|
|
10765
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10766
|
-
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10765
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { variant: "h3", children: title }),
|
|
10766
|
+
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { variant: "h6", tone: "secondary", children: subtitle })
|
|
10767
10767
|
] })
|
|
10768
10768
|
] }),
|
|
10769
10769
|
tag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "self-start whitespace-nowrap rounded-full border border-ods-border bg-ods-bg px-3 py-1 font-semibold text-ods-text-primary text-h6", children: tag.label })
|
|
@@ -10773,8 +10773,8 @@ function ServiceCard({ title, subtitle, icon, tag, rows, className }) {
|
|
|
10773
10773
|
}
|
|
10774
10774
|
function ServiceCardRowItem({ row }) {
|
|
10775
10775
|
const [revealed, setRevealed] = _react.useState.call(void 0, false);
|
|
10776
|
-
const { copy, copied } =
|
|
10777
|
-
const { ref: valueRef, isTruncated: valueTruncated } =
|
|
10776
|
+
const { copy, copied } = _chunk4FWURR3Wcjs.useCopyToClipboard.call(void 0, );
|
|
10777
|
+
const { ref: valueRef, isTruncated: valueTruncated } = _chunkKTPR66EEcjs.useIsTruncated.call(void 0, row.value);
|
|
10778
10778
|
const actions = _react.useMemo.call(void 0,
|
|
10779
10779
|
() => ({ copy: true, open: !!row.href, reveal: !!row.isSecret, ...row.actions }),
|
|
10780
10780
|
[row]
|
|
@@ -10796,7 +10796,7 @@ function ServiceCardRowItem({ row }) {
|
|
|
10796
10796
|
),
|
|
10797
10797
|
children: [
|
|
10798
10798
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10799
|
-
|
|
10799
|
+
_chunkABLUMGCIcjs.FloatingTooltip,
|
|
10800
10800
|
{
|
|
10801
10801
|
content: row.value,
|
|
10802
10802
|
side: "top",
|
|
@@ -10894,17 +10894,17 @@ function PersonCell({
|
|
|
10894
10894
|
const displayName = name || fallbackName;
|
|
10895
10895
|
const scale = PERSON_CELL_SIZE[size];
|
|
10896
10896
|
const row = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `group/person-cell flex min-w-0 items-center ${scale.gap}`, children: [
|
|
10897
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10897
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABLUMGCIcjs.SquareAvatar, { size: scale.avatar, src: _nullishCoalesce(avatarUrl, () => ( void 0)), alt: displayName, fallback: displayName }),
|
|
10898
10898
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
10899
10899
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10900
|
-
|
|
10900
|
+
_chunkU2O5YQRPcjs.TruncateText,
|
|
10901
10901
|
{
|
|
10902
10902
|
variant: scale.primary,
|
|
10903
10903
|
className: onClick ? "text-ods-accent group-hover/person-cell:underline" : void 0,
|
|
10904
10904
|
children: displayName
|
|
10905
10905
|
}
|
|
10906
10906
|
),
|
|
10907
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10907
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { variant: "h6", tone: "secondary", children: secondary === void 0 ? "\xA0" : secondary || "\xB7" })
|
|
10908
10908
|
] })
|
|
10909
10909
|
] });
|
|
10910
10910
|
if (!onClick) return row;
|
|
@@ -10934,9 +10934,9 @@ function PeopleCell({ people, fallbackName = "Unassigned" }) {
|
|
|
10934
10934
|
);
|
|
10935
10935
|
}
|
|
10936
10936
|
const fullNames = people.map((p) => p.name || "Unknown").join(", ");
|
|
10937
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10937
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABLUMGCIcjs.FloatingTooltip, { content: fullNames, triggerClassName: "min-w-0 max-w-full", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
10938
10938
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-hidden": true, className: "shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10939
|
-
|
|
10939
|
+
_chunkUY6A6TEYcjs.AvatarStack,
|
|
10940
10940
|
{
|
|
10941
10941
|
size: "sm",
|
|
10942
10942
|
slots: PEOPLE_CELL_STACK_SLOTS,
|
|
@@ -10944,7 +10944,7 @@ function PeopleCell({ people, fallbackName = "Unassigned" }) {
|
|
|
10944
10944
|
}
|
|
10945
10945
|
) }),
|
|
10946
10946
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "line-clamp-2 min-w-0 flex-1 break-words text-ods-text-primary text-h6", children: [
|
|
10947
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": true, children: people.map((p) =>
|
|
10947
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": true, children: people.map((p) => _chunkABLUMGCIcjs.personFirstName.call(void 0, p.name, "Unknown")).join(" & ") }),
|
|
10948
10948
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: fullNames })
|
|
10949
10949
|
] })
|
|
10950
10950
|
] }) });
|
|
@@ -11587,7 +11587,7 @@ function TableHeader({
|
|
|
11587
11587
|
}
|
|
11588
11588
|
return sortDirection === "asc" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHI3EKZZZcjs.Arrow01UpIcon, { className: "h-4 w-4 text-ods-accent" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWIEQOCRcjs.Arrow01DownIcon, { className: "h-4 w-4 text-ods-accent" });
|
|
11589
11589
|
};
|
|
11590
|
-
const isLgUp = _nullishCoalesce(
|
|
11590
|
+
const isLgUp = _nullishCoalesce(_chunkR34JD6NPcjs.useContentLgUp.call(void 0, ), () => ( false));
|
|
11591
11591
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
11592
11592
|
"div",
|
|
11593
11593
|
{
|
|
@@ -11644,7 +11644,7 @@ function TableHeader({
|
|
|
11644
11644
|
onFilterChange
|
|
11645
11645
|
}
|
|
11646
11646
|
),
|
|
11647
|
-
column.hint ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11647
|
+
column.hint ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPS6T65KAcjs.InfoHint, { label: column.label, children: column.hint }) : null
|
|
11648
11648
|
] })
|
|
11649
11649
|
) : (
|
|
11650
11650
|
/* Non-filterable column — regular label with optional sort */
|
|
@@ -11670,7 +11670,7 @@ function TableHeader({
|
|
|
11670
11670
|
hint exists, so a hint-less header keeps its DOM. */
|
|
11671
11671
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
11672
11672
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TABLE_HEADER_LABEL_CLASS, children: column.label }),
|
|
11673
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11673
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPS6T65KAcjs.InfoHint, { label: column.label, children: column.hint })
|
|
11674
11674
|
] })
|
|
11675
11675
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TABLE_HEADER_LABEL_CLASS, children: column.label }),
|
|
11676
11676
|
getSortIcon(column)
|
|
@@ -12195,7 +12195,7 @@ function Table({
|
|
|
12195
12195
|
}
|
|
12196
12196
|
),
|
|
12197
12197
|
!infiniteScroll && pagePagination && !cursorPagination && data.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "mt-2 border-t border-ods-border pt-3", paginationClassName), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12198
|
-
|
|
12198
|
+
_chunkYQGDXH3Mcjs.Pagination,
|
|
12199
12199
|
{
|
|
12200
12200
|
currentPage: pagePagination.currentPage,
|
|
12201
12201
|
totalPages: pagePagination.totalPages,
|
|
@@ -12228,7 +12228,7 @@ function TableDescriptionCell({ text, className, maxLines = 3 }) {
|
|
|
12228
12228
|
|
|
12229
12229
|
// src/components/ui/table/table-timestamp-cell.tsx
|
|
12230
12230
|
|
|
12231
|
-
var formatLocalTimestamp = (date) =>
|
|
12231
|
+
var formatLocalTimestamp = (date) => _chunkABLUMGCIcjs.formatDateWithTimezone.call(void 0, date, _chunkABLUMGCIcjs.VIEWER_TIMEZONE, "localeDateTime", { viewerLocale: true });
|
|
12232
12232
|
function formatTimestampValue(timestamp) {
|
|
12233
12233
|
if (timestamp instanceof Date) {
|
|
12234
12234
|
return formatLocalTimestamp(timestamp);
|
|
@@ -12455,7 +12455,7 @@ function QueryReportTable({
|
|
|
12455
12455
|
onThumbPointerMove,
|
|
12456
12456
|
onThumbPointerUp,
|
|
12457
12457
|
onThumbPointerCancel
|
|
12458
|
-
} =
|
|
12458
|
+
} = _chunkLU7TD6QScjs.useHorizontalScrollbar.call(void 0, );
|
|
12459
12459
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex w-full flex-col", isCompact ? "gap-0" : "gap-[var(--spacing-system-l)]", className), children: [
|
|
12460
12460
|
!isCompact && (title || headerActions || showExport && data.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-end justify-between pt-[var(--spacing-system-l)]", children: [
|
|
12461
12461
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-ods-text-primary text-h2", children: title }),
|
|
@@ -12696,7 +12696,7 @@ function DataTableBody({
|
|
|
12696
12696
|
const hasRows = rows.length > 0;
|
|
12697
12697
|
const loadMore = useDataTableLoadMoreStore();
|
|
12698
12698
|
const loadMoreRows = _react.useSyncExternalStore.call(void 0, loadMore.subscribe, loadMore.getSkeletonRows, getNoRows);
|
|
12699
|
-
|
|
12699
|
+
_chunkDGFDBPO7cjs.useIsomorphicLayoutEffect.call(void 0, () => hasRows ? loadMore.registerRowsBody() : void 0, [loadMore, hasRows]);
|
|
12700
12700
|
const skeletonRowClassName = typeof rowClassName === "string" ? rowClassName : void 0;
|
|
12701
12701
|
if (loading && !hasRows) {
|
|
12702
12702
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, ROW_STACK_CLASSES, className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -13011,7 +13011,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13011
13011
|
// child of the cell.
|
|
13012
13012
|
_optionalChain([meta, 'optionalAccess', _234 => _234.hint]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13013
13013
|
filterTrigger,
|
|
13014
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13014
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPS6T65KAcjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
13015
13015
|
] }) : filterTrigger
|
|
13016
13016
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13017
13017
|
"div",
|
|
@@ -13036,7 +13036,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13036
13036
|
// centred on the row.
|
|
13037
13037
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13038
13038
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
13039
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13039
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPS6T65KAcjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
13040
13040
|
] })
|
|
13041
13041
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
13042
13042
|
canSort && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortIcon, { sorted: sortDir })
|
|
@@ -13094,7 +13094,7 @@ function DataTableInfiniteFooter({
|
|
|
13094
13094
|
const loadMore = useDataTableLoadMoreStore();
|
|
13095
13095
|
const bodyDrawsRows = _react.useSyncExternalStore.call(void 0, loadMore.subscribe, loadMore.getHasRowsBody, getNoBody);
|
|
13096
13096
|
const requestedRows = isFetchingNextPage ? skeletonRows : 0;
|
|
13097
|
-
|
|
13097
|
+
_chunkDGFDBPO7cjs.useIsomorphicLayoutEffect.call(void 0, () => {
|
|
13098
13098
|
loadMore.setSkeletonRows(requestedRows);
|
|
13099
13099
|
return () => loadMore.setSkeletonRows(0);
|
|
13100
13100
|
}, [loadMore, requestedRows]);
|
|
@@ -13255,7 +13255,7 @@ function PhoneInput({
|
|
|
13255
13255
|
placeholder = "Phone Number (optional)",
|
|
13256
13256
|
onKeyDown
|
|
13257
13257
|
}) {
|
|
13258
|
-
const { priority, others } = _react.useMemo.call(void 0, () =>
|
|
13258
|
+
const { priority, others } = _react.useMemo.call(void 0, () => _chunkPS6T65KAcjs.getCountryPhoneData.call(void 0, ), []);
|
|
13259
13259
|
const selectedCountry = _react.useMemo.call(void 0,
|
|
13260
13260
|
() => [...priority, ...others].find((c) => c.code === countryCode),
|
|
13261
13261
|
[countryCode, priority, others]
|
|
@@ -13270,7 +13270,7 @@ function PhoneInput({
|
|
|
13270
13270
|
_optionalChain([onValidationChange, 'optionalCall', _247 => _247(false)]);
|
|
13271
13271
|
return;
|
|
13272
13272
|
}
|
|
13273
|
-
const invalid = !
|
|
13273
|
+
const invalid = !_chunkPS6T65KAcjs.validatePhoneNumber.call(void 0, phone, countryCode);
|
|
13274
13274
|
setIsInvalid(invalid);
|
|
13275
13275
|
_optionalChain([onValidationChange, 'optionalCall', _248 => _248(invalid)]);
|
|
13276
13276
|
},
|
|
@@ -13290,7 +13290,7 @@ function PhoneInput({
|
|
|
13290
13290
|
}, []);
|
|
13291
13291
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 gap-2", children: [
|
|
13292
13292
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13293
|
-
|
|
13293
|
+
_chunkU2O5YQRPcjs.Select,
|
|
13294
13294
|
{
|
|
13295
13295
|
value: countryCode,
|
|
13296
13296
|
onValueChange: (val) => {
|
|
@@ -13301,14 +13301,14 @@ function PhoneInput({
|
|
|
13301
13301
|
},
|
|
13302
13302
|
disabled,
|
|
13303
13303
|
children: [
|
|
13304
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13304
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectTrigger, { className: "w-[130px] shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectValue, { children: selectedCountry && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-1.5", children: [
|
|
13305
13305
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: selectedCountry.flag }),
|
|
13306
13306
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: selectedCountry.dialCode })
|
|
13307
13307
|
] }) }) }),
|
|
13308
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13309
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13310
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13311
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13308
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkU2O5YQRPcjs.SelectContent, { className: "max-h-[300px] !w-[280px]", children: [
|
|
13309
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectGroup, { children: priority.map((country) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CountryOption, { country }, country.code)) }),
|
|
13310
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectSeparator, {}),
|
|
13311
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectGroup, { children: others.map((country) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CountryOption, { country }, country.code)) })
|
|
13312
13312
|
] })
|
|
13313
13313
|
]
|
|
13314
13314
|
}
|
|
@@ -13340,7 +13340,7 @@ function PhoneInput({
|
|
|
13340
13340
|
] });
|
|
13341
13341
|
}
|
|
13342
13342
|
function CountryOption({ country }) {
|
|
13343
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13343
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: country.code, textValue: country.name, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-2", children: [
|
|
13344
13344
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0", children: country.flag }),
|
|
13345
13345
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary", children: country.dialCode }),
|
|
13346
13346
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-block max-w-[140px] overflow-hidden text-ellipsis whitespace-nowrap", children: country.name })
|
|
@@ -13415,7 +13415,7 @@ function SearchInput({
|
|
|
13415
13415
|
}) {
|
|
13416
13416
|
const [internalValue, setInternalValue] = _react.useState.call(void 0, defaultValue);
|
|
13417
13417
|
const currentValue = onChange ? _nullishCoalesce(value, () => ( "")) : internalValue;
|
|
13418
|
-
const debouncedValue =
|
|
13418
|
+
const debouncedValue = _chunkCSJO7ZGNcjs.useDebounce.call(void 0, currentValue, debounceMs);
|
|
13419
13419
|
const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
|
|
13420
13420
|
const [highlightedIndex, setHighlightedIndex] = _react.useState.call(void 0, -1);
|
|
13421
13421
|
const keyboardPadding = _chunkA6P6DHEZcjs.useKeyboardCollisionPadding.call(void 0, );
|
|
@@ -13450,7 +13450,7 @@ function SearchInput({
|
|
|
13450
13450
|
document.addEventListener("mousedown", handleClick);
|
|
13451
13451
|
return () => document.removeEventListener("mousedown", handleClick);
|
|
13452
13452
|
}, [showHiddenTags]);
|
|
13453
|
-
|
|
13453
|
+
_chunkDGFDBPO7cjs.useIsomorphicLayoutEffect.call(void 0, () => {
|
|
13454
13454
|
const popup = hiddenTagsPopupRef.current;
|
|
13455
13455
|
const badge = badgeRef.current;
|
|
13456
13456
|
if (!popup || !badge) return;
|
|
@@ -13623,7 +13623,7 @@ function SearchInput({
|
|
|
13623
13623
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex-shrink-0 text-ods-text-secondary transition-colors duration-200 group-has-[:focus]:text-ods-accent [&_svg]:size-4 content-md:[&_svg]:size-6", children: startAdornment !== void 0 ? startAdornment : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ74QE57Tcjs.SearchIcon, {}) }),
|
|
13624
13624
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: middleRef, className: "flex min-w-0 flex-1 items-center gap-2 overflow-hidden", children: [
|
|
13625
13625
|
visibleChips.map((chip) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13626
|
-
|
|
13626
|
+
_chunkABLUMGCIcjs.Tag,
|
|
13627
13627
|
{
|
|
13628
13628
|
variant: chipVariantToTagVariant(chip.variant),
|
|
13629
13629
|
label: chip.label,
|
|
@@ -13719,7 +13719,7 @@ function SearchInput({
|
|
|
13719
13719
|
)
|
|
13720
13720
|
] }),
|
|
13721
13721
|
showHiddenTags && hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13722
|
-
|
|
13722
|
+
_chunkU2O5YQRPcjs.HiddenTagsPopup,
|
|
13723
13723
|
{
|
|
13724
13724
|
ref: hiddenTagsPopupRef,
|
|
13725
13725
|
items: hiddenChips.map((chip) => ({ label: chip.label, value: chip.id })),
|
|
@@ -13739,7 +13739,7 @@ function SearchInput({
|
|
|
13739
13739
|
}
|
|
13740
13740
|
),
|
|
13741
13741
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: measureRef, "aria-hidden": "true", className: "pointer-events-none fixed -left-[9999px] top-0 flex gap-2", children: filterChips.map((chip) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13742
|
-
|
|
13742
|
+
_chunkABLUMGCIcjs.Tag,
|
|
13743
13743
|
{
|
|
13744
13744
|
variant: chipVariantToTagVariant(chip.variant),
|
|
13745
13745
|
label: chip.label,
|
|
@@ -13901,7 +13901,7 @@ function TagSearchInput({
|
|
|
13901
13901
|
document.addEventListener("mousedown", handleClick);
|
|
13902
13902
|
return () => document.removeEventListener("mousedown", handleClick);
|
|
13903
13903
|
}, [showHiddenTags]);
|
|
13904
|
-
|
|
13904
|
+
_chunkDGFDBPO7cjs.useIsomorphicLayoutEffect.call(void 0, () => {
|
|
13905
13905
|
const popup = hiddenTagsPopupRef.current;
|
|
13906
13906
|
const badge = badgeRef.current;
|
|
13907
13907
|
if (!popup || !badge) return;
|
|
@@ -13952,7 +13952,7 @@ function TagSearchInput({
|
|
|
13952
13952
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex shrink-0 items-center pl-3", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ74QE57Tcjs.SearchIcon, { className: "size-4 text-ods-text-secondary content-md:size-6" }) }),
|
|
13953
13953
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: middleRef, className: "flex min-w-0 flex-1 items-center gap-2 overflow-hidden px-2", children: [
|
|
13954
13954
|
visibleTags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13955
|
-
|
|
13955
|
+
_chunkABLUMGCIcjs.Tag,
|
|
13956
13956
|
{
|
|
13957
13957
|
variant: "outline",
|
|
13958
13958
|
label: renderTag ? renderTag(tag) : tag.label,
|
|
@@ -14013,7 +14013,7 @@ function TagSearchInput({
|
|
|
14013
14013
|
}
|
|
14014
14014
|
),
|
|
14015
14015
|
showHiddenTags && hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14016
|
-
|
|
14016
|
+
_chunkU2O5YQRPcjs.HiddenTagsPopup,
|
|
14017
14017
|
{
|
|
14018
14018
|
ref: hiddenTagsPopupRef,
|
|
14019
14019
|
items: hiddenTags,
|
|
@@ -14040,7 +14040,7 @@ function TagSearchInput({
|
|
|
14040
14040
|
"aria-hidden": "true",
|
|
14041
14041
|
className: "pointer-events-none invisible absolute left-0 top-0 -z-10 flex gap-2",
|
|
14042
14042
|
children: tags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14043
|
-
|
|
14043
|
+
_chunkABLUMGCIcjs.Tag,
|
|
14044
14044
|
{
|
|
14045
14045
|
variant: "outline",
|
|
14046
14046
|
label: renderTag ? renderTag(tag) : tag.label,
|
|
@@ -14197,7 +14197,7 @@ function MarkdownEditor({
|
|
|
14197
14197
|
setUploadProgress(`Uploading ${file.name}...`);
|
|
14198
14198
|
try {
|
|
14199
14199
|
const url = await onUploadFile(file);
|
|
14200
|
-
const isImage =
|
|
14200
|
+
const isImage = _chunk5MH6BRPYcjs.fileMediaType.call(void 0, file) === "image";
|
|
14201
14201
|
const markdown = isImage ? `` : `[${file.name}](${url})`;
|
|
14202
14202
|
insertTextAtCursor(markdown);
|
|
14203
14203
|
_optionalChain([onFileUploaded, 'optionalCall', _299 => _299(url, file.name)]);
|
|
@@ -14327,7 +14327,7 @@ function MarkdownEditor({
|
|
|
14327
14327
|
type: "file",
|
|
14328
14328
|
className: "hidden",
|
|
14329
14329
|
onChange: handleFileInputChange,
|
|
14330
|
-
accept: `${
|
|
14330
|
+
accept: `${_chunk5MH6BRPYcjs.IMAGE_FILE_ACCEPT},.pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.zip,.txt`
|
|
14331
14331
|
}
|
|
14332
14332
|
),
|
|
14333
14333
|
!MDEditor && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-64 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "h-8 w-8 animate-spin" }) }),
|
|
@@ -14727,7 +14727,7 @@ function matchesAccept2(file, accept) {
|
|
|
14727
14727
|
return patterns.some((pattern) => {
|
|
14728
14728
|
if (pattern.startsWith(".")) return fileName.endsWith(pattern);
|
|
14729
14729
|
if (pattern.endsWith("/*"))
|
|
14730
|
-
return fileType.startsWith(pattern.slice(0, -1)) ||
|
|
14730
|
+
return fileType.startsWith(pattern.slice(0, -1)) || _chunk5MH6BRPYcjs.fileMediaType.call(void 0, file) === pattern.slice(0, -2);
|
|
14731
14731
|
return fileType === pattern;
|
|
14732
14732
|
});
|
|
14733
14733
|
}
|
|
@@ -14735,7 +14735,7 @@ function ImageUploader({
|
|
|
14735
14735
|
value,
|
|
14736
14736
|
onChange,
|
|
14737
14737
|
onRemove,
|
|
14738
|
-
accept =
|
|
14738
|
+
accept = _chunk5MH6BRPYcjs.IMAGE_FILE_ACCEPT,
|
|
14739
14739
|
maxSize = DEFAULT_MAX_SIZE,
|
|
14740
14740
|
label = "Cover Image",
|
|
14741
14741
|
description = "(Click Here or Drag and Drop)",
|
|
@@ -14755,7 +14755,7 @@ function ImageUploader({
|
|
|
14755
14755
|
const [pressed, setPressed] = _react.useState.call(void 0, false);
|
|
14756
14756
|
const [validationError, setValidationError] = _react.useState.call(void 0, null);
|
|
14757
14757
|
const interactive = !disabled && !loading;
|
|
14758
|
-
const resolvedValue =
|
|
14758
|
+
const resolvedValue = _chunkKTPR66EEcjs.useAuthedImageSrc.call(void 0, value);
|
|
14759
14759
|
const hasImage = Boolean(value);
|
|
14760
14760
|
const displayError = error || validationError || void 0;
|
|
14761
14761
|
const resolvedHint = hint === void 0 ? `Max. size: ${formatSize(maxSize)}` : hint;
|
|
@@ -14972,13 +14972,13 @@ function ColorPresetSelect({
|
|
|
14972
14972
|
...presets.map((p) => ({
|
|
14973
14973
|
id: p.key,
|
|
14974
14974
|
label: p.label,
|
|
14975
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14975
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWGLRE74cjs.ColorSwatch, { color: p.color }),
|
|
14976
14976
|
onClick: () => onChange({ color: p.color, preset: p.key })
|
|
14977
14977
|
})),
|
|
14978
14978
|
{
|
|
14979
14979
|
id: CUSTOM_PRESET_KEY,
|
|
14980
14980
|
label: "Custom",
|
|
14981
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14981
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWGLRE74cjs.ColorSwatch, { color: isCustom ? value : DEFAULT_CUSTOM_STATUS_COLOR }),
|
|
14982
14982
|
onClick: () => onChange({ color: value, preset: void 0 })
|
|
14983
14983
|
}
|
|
14984
14984
|
]
|
|
@@ -14995,7 +14995,7 @@ function ColorPresetSelect({
|
|
|
14995
14995
|
{
|
|
14996
14996
|
disabled,
|
|
14997
14997
|
"aria-label": `Color: ${displayLabel}`,
|
|
14998
|
-
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14998
|
+
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWGLRE74cjs.ColorSwatch, { color: displayColor }),
|
|
14999
14999
|
selectedLabel: displayLabel,
|
|
15000
15000
|
endIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TriggerChevron, {}),
|
|
15001
15001
|
className: _chunk3ATAYP36cjs.cn.call(void 0, "group", className)
|
|
@@ -15016,7 +15016,7 @@ function HexInputs({ value, onChange }) {
|
|
|
15016
15016
|
}
|
|
15017
15017
|
const commit = () => {
|
|
15018
15018
|
const candidate = (draft.startsWith("#") ? draft : `#${draft}`).toLowerCase();
|
|
15019
|
-
if (
|
|
15019
|
+
if (_chunkQYLIHZKZcjs.HEX_PATTERN.test(candidate)) onChange(candidate);
|
|
15020
15020
|
else setDraft(value);
|
|
15021
15021
|
};
|
|
15022
15022
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -15080,12 +15080,12 @@ function ChannelInput({
|
|
|
15080
15080
|
);
|
|
15081
15081
|
}
|
|
15082
15082
|
function RgbInputs({ value, onChange }) {
|
|
15083
|
-
const rgb = _nullishCoalesce(
|
|
15083
|
+
const rgb = _nullishCoalesce(_chunkQYLIHZKZcjs.hexToRgb.call(void 0, value), () => ( { r: 0, g: 0, b: 0 }));
|
|
15084
15084
|
const update = (next) => {
|
|
15085
15085
|
const r = _nullishCoalesce(next.r, () => ( rgb.r));
|
|
15086
15086
|
const g = _nullishCoalesce(next.g, () => ( rgb.g));
|
|
15087
15087
|
const b = _nullishCoalesce(next.b, () => ( rgb.b));
|
|
15088
|
-
onChange(
|
|
15088
|
+
onChange(_chunkQYLIHZKZcjs.rgbToHex.call(void 0, r, g, b));
|
|
15089
15089
|
};
|
|
15090
15090
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
15091
15091
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChannelInput, { value: rgb.r, min: 0, max: 255, ariaLabel: "Red", onCommit: (r) => update({ r }) }),
|
|
@@ -15094,14 +15094,14 @@ function RgbInputs({ value, onChange }) {
|
|
|
15094
15094
|
] });
|
|
15095
15095
|
}
|
|
15096
15096
|
function HslInputs({ value, onChange }) {
|
|
15097
|
-
const rgb = _nullishCoalesce(
|
|
15098
|
-
const hsl =
|
|
15097
|
+
const rgb = _nullishCoalesce(_chunkQYLIHZKZcjs.hexToRgb.call(void 0, value), () => ( { r: 0, g: 0, b: 0 }));
|
|
15098
|
+
const hsl = _chunkQYLIHZKZcjs.rgbToHsl.call(void 0, rgb.r, rgb.g, rgb.b);
|
|
15099
15099
|
const update = (next) => {
|
|
15100
15100
|
const h = _nullishCoalesce(next.h, () => ( hsl.h));
|
|
15101
15101
|
const s = _nullishCoalesce(next.s, () => ( hsl.s));
|
|
15102
15102
|
const l = _nullishCoalesce(next.l, () => ( hsl.l));
|
|
15103
|
-
const out =
|
|
15104
|
-
onChange(
|
|
15103
|
+
const out = _chunkQYLIHZKZcjs.hslToRgb.call(void 0, h, s, l);
|
|
15104
|
+
onChange(_chunkQYLIHZKZcjs.rgbToHex.call(void 0, out.r, out.g, out.b));
|
|
15105
15105
|
};
|
|
15106
15106
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
15107
15107
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChannelInput, { value: hsl.h, min: 0, max: 360, ariaLabel: "Hue", onCommit: (h) => update({ h }) }),
|
|
@@ -15127,7 +15127,7 @@ function ColorPickerInput({ value, onChange, disabled, className }) {
|
|
|
15127
15127
|
{
|
|
15128
15128
|
disabled,
|
|
15129
15129
|
"aria-label": "Pick custom color",
|
|
15130
|
-
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15130
|
+
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWGLRE74cjs.ColorSwatch, { color: value }),
|
|
15131
15131
|
selectedLabel: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase", children: value }),
|
|
15132
15132
|
endIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TriggerChevron, {}),
|
|
15133
15133
|
className: _chunk3ATAYP36cjs.cn.call(void 0, "group", className)
|
|
@@ -15191,7 +15191,7 @@ function TicketStatusConfigRow({
|
|
|
15191
15191
|
isDragging,
|
|
15192
15192
|
moveButtons
|
|
15193
15193
|
}) {
|
|
15194
|
-
const dragAndDropEnabled =
|
|
15194
|
+
const dragAndDropEnabled = _chunkLU7TD6QScjs.useDragAndDropEnabled.call(void 0, );
|
|
15195
15195
|
const nameInputId = _react.useId.call(void 0, );
|
|
15196
15196
|
const isSystem = variant === "system";
|
|
15197
15197
|
const isCustomColor = !isSystem && presetKey === void 0;
|
|
@@ -15200,7 +15200,7 @@ function TicketStatusConfigRow({
|
|
|
15200
15200
|
const previewVariant = _nullishCoalesce(systemTagVariant, () => ( (isSystem ? void 0 : "primary")));
|
|
15201
15201
|
const fieldRowOffset = "mt-[calc(var(--font-line-space-h4-body)+0.25rem)]";
|
|
15202
15202
|
const chip = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15203
|
-
|
|
15203
|
+
_chunkOWGLRE74cjs.TicketStatusTag,
|
|
15204
15204
|
{
|
|
15205
15205
|
status: statusKey,
|
|
15206
15206
|
label: name || " ",
|
|
@@ -15307,7 +15307,7 @@ function TicketStatusConfigRow({
|
|
|
15307
15307
|
),
|
|
15308
15308
|
children: [
|
|
15309
15309
|
!isSystem && moveButtons,
|
|
15310
|
-
isSystem ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-11 justify-center content-md:w-12", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15310
|
+
isSystem ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-11 justify-center content-md:w-12", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkURVIPSAJcjs.TouchFriendlyTooltip, { content: systemTooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15311
15311
|
"button",
|
|
15312
15312
|
{
|
|
15313
15313
|
type: "button",
|
|
@@ -15315,7 +15315,7 @@ function TicketStatusConfigRow({
|
|
|
15315
15315
|
className: "flex size-6 items-center justify-center text-ods-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-ods-focus",
|
|
15316
15316
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRHC2FRVEcjs.InfoCircleIcon, { size: 24 })
|
|
15317
15317
|
}
|
|
15318
|
-
) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15318
|
+
) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkURVIPSAJcjs.TouchFriendlyTooltip, { content: deleteDisabled ? deleteDisabledReason : void 0, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15319
15319
|
_chunk2QMBXGMQcjs.Button,
|
|
15320
15320
|
{
|
|
15321
15321
|
type: "button",
|
|
@@ -15352,7 +15352,7 @@ function formatTestRunDuration(ms) {
|
|
|
15352
15352
|
var RESULT_COLUMN_MIN_WIDTH = 176;
|
|
15353
15353
|
var SKELETON_COLUMNS = 6;
|
|
15354
15354
|
function TestResultsSkeleton() {
|
|
15355
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15355
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.ScrollShadow, { axis: "horizontal", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-max min-w-full flex-col", children: [
|
|
15356
15356
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-mf)] px-[var(--spacing-system-mf)]", children: Array.from({ length: SKELETON_COLUMNS }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-[160px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-4 w-3/4 animate-pulse rounded-sm bg-ods-bg-surface" }) }, `skeleton-header-${i}`)) }),
|
|
15357
15357
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "animate-pulse overflow-hidden rounded-[6px] border border-ods-border bg-ods-card", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[66px] items-center gap-[var(--spacing-system-mf)] px-[var(--spacing-system-mf)] content-md:h-[78px]", children: Array.from({ length: SKELETON_COLUMNS }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-[160px] shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-5 w-3/4 rounded-sm bg-ods-bg-surface" }) }, `skeleton-cell-${i}`)) }) })
|
|
15358
15358
|
] }) });
|
|
@@ -15387,13 +15387,13 @@ function TestResultsTable({ rows, loading }) {
|
|
|
15387
15387
|
if (loading) {
|
|
15388
15388
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TestResultsSkeleton, {});
|
|
15389
15389
|
}
|
|
15390
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15390
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.ScrollShadow, { axis: "horizontal", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { minWidth: Math.max(1, columnKeys.length) * RESULT_COLUMN_MIN_WIDTH }, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DataTable, { table, children: [
|
|
15391
15391
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTable.Header, { className: "flex flex-col" }),
|
|
15392
15392
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTable.Body, { loading: false })
|
|
15393
15393
|
] }) }) });
|
|
15394
15394
|
}
|
|
15395
15395
|
function TestRunErrorBanner({ error, className }) {
|
|
15396
|
-
const { copy } =
|
|
15396
|
+
const { copy } = _chunk4FWURR3Wcjs.useCopyToClipboard.call(void 0, { successDescription: "Error message copied to clipboard" });
|
|
15397
15397
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
15398
15398
|
"div",
|
|
15399
15399
|
{
|
|
@@ -15449,7 +15449,7 @@ var TEST_RUN_STATUS_TAGS = {
|
|
|
15449
15449
|
function TestRunStatusStat({ status, className }) {
|
|
15450
15450
|
const tag = status === "idle" ? null : TEST_RUN_STATUS_TAGS[status];
|
|
15451
15451
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex min-w-0 flex-col items-start justify-center gap-[var(--spacing-system-xxs)]", className), children: [
|
|
15452
|
-
tag ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15452
|
+
tag ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABLUMGCIcjs.Tag, { label: tag.label, variant: tag.variant, className: "pointer-events-none" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h4", children: "-" }),
|
|
15453
15453
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: "Status" })
|
|
15454
15454
|
] });
|
|
15455
15455
|
}
|
|
@@ -15493,7 +15493,7 @@ function useTestRunState(campaign) {
|
|
|
15493
15493
|
const stopReason = _nullishCoalesce(campaign.stopReason, () => ( "completed"));
|
|
15494
15494
|
const status = isActive ? "running" : hasRun && isFinished ? stopReason === "completed" ? firstError ? "error" : "success" : stopReason : "idle";
|
|
15495
15495
|
const showTiming = hasRun && campaign.startedAt !== null && (campaign.isRunning || isFinished);
|
|
15496
|
-
const startedLabel = showTiming && campaign.startedAt ?
|
|
15496
|
+
const startedLabel = showTiming && campaign.startedAt ? _chunk5TCIRWHLcjs.formatTime.call(void 0, campaign.startedAt) : "00:00 PM";
|
|
15497
15497
|
const durationLabel = showTiming ? formatTestRunDuration(durationMs) : "00:00:00";
|
|
15498
15498
|
const displayRows = _react.useMemo.call(void 0,
|
|
15499
15499
|
() => campaign.results.map(
|
|
@@ -15532,7 +15532,7 @@ function TicketAttachmentsList({ attachments, className, size = "default" }) {
|
|
|
15532
15532
|
),
|
|
15533
15533
|
children: [
|
|
15534
15534
|
attachment.thumbnailSrc ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15535
|
-
|
|
15535
|
+
_chunkABLUMGCIcjs.SquareAvatar,
|
|
15536
15536
|
{
|
|
15537
15537
|
src: attachment.thumbnailSrc,
|
|
15538
15538
|
alt: attachment.fileName,
|
|
@@ -15625,7 +15625,7 @@ function TicketNoteCard({ note, onEdit, onDelete, className }) {
|
|
|
15625
15625
|
};
|
|
15626
15626
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex items-start gap-4 rounded-[6px] p-3", "border border-ods-border bg-ods-card", className), children: [
|
|
15627
15627
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15628
|
-
|
|
15628
|
+
_chunkABLUMGCIcjs.SquareAvatar,
|
|
15629
15629
|
{
|
|
15630
15630
|
src: note.authorAvatar,
|
|
15631
15631
|
alt: note.authorName,
|
|
@@ -15801,7 +15801,7 @@ function TicketInfoSection({
|
|
|
15801
15801
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-2 items-center gap-4 border-b border-ods-border bg-ods-card px-4 py-3 content-lg:grid-cols-[1fr_1fr_1fr_auto]", children: [
|
|
15802
15802
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
15803
15803
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15804
|
-
|
|
15804
|
+
_chunkABLUMGCIcjs.SquareAvatar,
|
|
15805
15805
|
{
|
|
15806
15806
|
src: _optionalChain([organization, 'optionalAccess', _335 => _335.imageSrc]),
|
|
15807
15807
|
alt: _optionalChain([organization, 'optionalAccess', _336 => _336.name]),
|
|
@@ -15831,7 +15831,7 @@ function TicketInfoSection({
|
|
|
15831
15831
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: _optionalChain([device, 'optionalAccess', _339 => _339.name]) || "Unassigned", label: "Device", icon: _optionalChain([device, 'optionalAccess', _340 => _340.icon]), onClick: _optionalChain([device, 'optionalAccess', _341 => _341.onClick]) }),
|
|
15832
15832
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-4", children: [
|
|
15833
15833
|
(status || statusLabel) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15834
|
-
|
|
15834
|
+
_chunkOWGLRE74cjs.TicketStatusTag,
|
|
15835
15835
|
{
|
|
15836
15836
|
status: _nullishCoalesce(status, () => ( "")),
|
|
15837
15837
|
label: statusLabel,
|
|
@@ -15870,9 +15870,9 @@ function TicketInfoSection({
|
|
|
15870
15870
|
expanded && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
15871
15871
|
createdAt && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid grid-cols-2 items-center gap-4 border-b border-ods-border bg-ods-bg px-4 py-3", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: createdAt, label: "Created" }) }),
|
|
15872
15872
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-4 border-b border-ods-border bg-ods-bg p-4", children: [
|
|
15873
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15873
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.SimpleMarkdownRenderer, { content: description }),
|
|
15874
15874
|
attachments && attachments.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Attachments", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketAttachmentsList, { attachments }) }),
|
|
15875
|
-
tags && tags.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Tags", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-wrap gap-2", children: tags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15875
|
+
tags && tags.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Tags", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-wrap gap-2", children: tags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABLUMGCIcjs.Tag, { label: tag, variant: "outline", className: "max-w-full" }, tag)) }) }),
|
|
15876
15876
|
(notes || onAddNote) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Notes", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15877
15877
|
TicketNotesSection,
|
|
15878
15878
|
{
|
|
@@ -15895,8 +15895,8 @@ function renderTicketStatusOption(option, isSelected) {
|
|
|
15895
15895
|
const { label, color } = option;
|
|
15896
15896
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center justify-between gap-[var(--spacing-system-xs)]", children: [
|
|
15897
15897
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
15898
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15899
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15898
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWGLRE74cjs.ColorSwatch, { color }),
|
|
15899
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { className: "text-inherit", children: label }) })
|
|
15900
15900
|
] }),
|
|
15901
15901
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
15902
15902
|
] });
|
|
@@ -15905,8 +15905,8 @@ function renderTicketAssigneeOption(option, isSelected) {
|
|
|
15905
15905
|
const { label, imageUrl } = option;
|
|
15906
15906
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center justify-between gap-[var(--spacing-system-xs)]", children: [
|
|
15907
15907
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
15908
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15909
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15908
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABLUMGCIcjs.SquareAvatar, { src: imageUrl, alt: label, fallback: label, size: "sm", variant: "round" }),
|
|
15909
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { className: "text-inherit", children: label }) })
|
|
15910
15910
|
] }),
|
|
15911
15911
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
15912
15912
|
] });
|
|
@@ -15940,9 +15940,9 @@ function TakeOverTicketModal({
|
|
|
15940
15940
|
if (!selectedStatusId || !assigneeId || isPending) return;
|
|
15941
15941
|
onConfirm({ statusId: selectedStatusId, assigneeId });
|
|
15942
15942
|
};
|
|
15943
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
15943
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5TCIRWHLcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
15944
15944
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
15945
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15945
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5TCIRWHLcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5TCIRWHLcjs.ModalTitle, { children: "Take Over Ticket" }) }),
|
|
15946
15946
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
15947
15947
|
"The ticket ",
|
|
15948
15948
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-accent", children: ticketRef }),
|
|
@@ -15950,19 +15950,19 @@ function TakeOverTicketModal({
|
|
|
15950
15950
|
] }),
|
|
15951
15951
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)] md:flex-row", children: [
|
|
15952
15952
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15953
|
-
|
|
15953
|
+
_chunkU2O5YQRPcjs.Autocomplete,
|
|
15954
15954
|
{
|
|
15955
15955
|
label: "Status",
|
|
15956
15956
|
options: statusOptions,
|
|
15957
15957
|
value: selectedStatusId,
|
|
15958
15958
|
onChange: setStatusId,
|
|
15959
15959
|
placeholder: "Select Status",
|
|
15960
|
-
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15960
|
+
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWGLRE74cjs.ColorSwatch, { color: selectedStatus.color }) : void 0,
|
|
15961
15961
|
renderOption: renderTicketStatusOption
|
|
15962
15962
|
}
|
|
15963
15963
|
) }),
|
|
15964
15964
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15965
|
-
|
|
15965
|
+
_chunkU2O5YQRPcjs.Autocomplete,
|
|
15966
15966
|
{
|
|
15967
15967
|
label: "Assigned",
|
|
15968
15968
|
options: assigneeOptions,
|
|
@@ -15971,7 +15971,7 @@ function TakeOverTicketModal({
|
|
|
15971
15971
|
placeholder: "Select Technician",
|
|
15972
15972
|
loading: assigneesLoading,
|
|
15973
15973
|
startAdornment: selectedAssignee ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15974
|
-
|
|
15974
|
+
_chunkABLUMGCIcjs.SquareAvatar,
|
|
15975
15975
|
{
|
|
15976
15976
|
src: selectedAssignee.imageUrl,
|
|
15977
15977
|
alt: selectedAssignee.label,
|
|
@@ -15984,7 +15984,7 @@ function TakeOverTicketModal({
|
|
|
15984
15984
|
}
|
|
15985
15985
|
) })
|
|
15986
15986
|
] }),
|
|
15987
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
15987
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5TCIRWHLcjs.ModalFooter, { children: [
|
|
15988
15988
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
15989
15989
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
15990
15990
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -16043,9 +16043,9 @@ function ReopenTicketModal({
|
|
|
16043
16043
|
reason: trimmedReason ? trimmedReason.slice(0, REASON_MAX_LENGTH) : null
|
|
16044
16044
|
});
|
|
16045
16045
|
};
|
|
16046
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16046
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5TCIRWHLcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
16047
16047
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
16048
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16048
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5TCIRWHLcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5TCIRWHLcjs.ModalTitle, { children: "Reopen Ticket" }) }),
|
|
16049
16049
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
16050
16050
|
"The ticket ",
|
|
16051
16051
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-accent", children: ticketRef }),
|
|
@@ -16053,19 +16053,19 @@ function ReopenTicketModal({
|
|
|
16053
16053
|
] }),
|
|
16054
16054
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)] md:flex-row", children: [
|
|
16055
16055
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16056
|
-
|
|
16056
|
+
_chunkU2O5YQRPcjs.Autocomplete,
|
|
16057
16057
|
{
|
|
16058
16058
|
label: "Status",
|
|
16059
16059
|
options: statusOptions,
|
|
16060
16060
|
value: selectedStatusId,
|
|
16061
16061
|
onChange: setStatusId,
|
|
16062
16062
|
placeholder: "Select Status",
|
|
16063
|
-
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16063
|
+
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWGLRE74cjs.ColorSwatch, { color: selectedStatus.color }) : void 0,
|
|
16064
16064
|
renderOption: renderTicketStatusOption
|
|
16065
16065
|
}
|
|
16066
16066
|
) }),
|
|
16067
16067
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16068
|
-
|
|
16068
|
+
_chunkU2O5YQRPcjs.Autocomplete,
|
|
16069
16069
|
{
|
|
16070
16070
|
label: "Assigned",
|
|
16071
16071
|
options: assigneeOptions,
|
|
@@ -16074,7 +16074,7 @@ function ReopenTicketModal({
|
|
|
16074
16074
|
placeholder: "Select Technician",
|
|
16075
16075
|
loading: assigneesLoading,
|
|
16076
16076
|
startAdornment: selectedAssignee ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16077
|
-
|
|
16077
|
+
_chunkABLUMGCIcjs.SquareAvatar,
|
|
16078
16078
|
{
|
|
16079
16079
|
src: selectedAssignee.imageUrl,
|
|
16080
16080
|
alt: selectedAssignee.label,
|
|
@@ -16098,7 +16098,7 @@ function ReopenTicketModal({
|
|
|
16098
16098
|
disabled: isPending
|
|
16099
16099
|
}
|
|
16100
16100
|
) }),
|
|
16101
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16101
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5TCIRWHLcjs.ModalFooter, { children: [
|
|
16102
16102
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
16103
16103
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
16104
16104
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -16147,9 +16147,9 @@ function ReopenTicketRequestModal({
|
|
|
16147
16147
|
...showHandoffOption ? { handoffToTechnician: handoff } : {}
|
|
16148
16148
|
});
|
|
16149
16149
|
};
|
|
16150
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16150
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5TCIRWHLcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
16151
16151
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
16152
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16152
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5TCIRWHLcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5TCIRWHLcjs.ModalTitle, { children: "Reopen Ticket" }) }),
|
|
16153
16153
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: "This ticket will be reopened and the AI assistant will continue helping you." }),
|
|
16154
16154
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16155
16155
|
Textarea,
|
|
@@ -16173,7 +16173,7 @@ function ReopenTicketRequestModal({
|
|
|
16173
16173
|
disabled: isPending
|
|
16174
16174
|
}
|
|
16175
16175
|
),
|
|
16176
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16176
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5TCIRWHLcjs.ModalFooter, { children: [
|
|
16177
16177
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1", children: "Cancel" }),
|
|
16178
16178
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { type: "button", variant: "accent", onClick: handleConfirm, loading: isPending, className: "flex-1", children: "Reopen Ticket" })
|
|
16179
16179
|
] })
|
|
@@ -16330,7 +16330,7 @@ function PhotoWall({ images, columns = 2, speed = 24, fadeColor, className, load
|
|
|
16330
16330
|
gap: COLUMN_GAP_PX
|
|
16331
16331
|
};
|
|
16332
16332
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: rootRef, "aria-hidden": "true", className: _chunk3ATAYP36cjs.cn.call(void 0, "grid overflow-hidden", className), style: gridStyle, children: columnsToDraw ? columnsToDraw.map((column, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16333
|
-
|
|
16333
|
+
_chunk32Q7K5OPcjs.MarqueeWall,
|
|
16334
16334
|
{
|
|
16335
16335
|
axis: "y",
|
|
16336
16336
|
reverse: index % 2 === 1,
|
|
@@ -16433,7 +16433,7 @@ function LazyMount({
|
|
|
16433
16433
|
// src/components/ui/app-window-frame.tsx
|
|
16434
16434
|
|
|
16435
16435
|
function AppWindowFrame({ title, children, footer, agent, className, bodyClassName }) {
|
|
16436
|
-
const tint =
|
|
16436
|
+
const tint = _chunkQYLIHZKZcjs.useAgentTint.call(void 0, agent);
|
|
16437
16437
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16438
16438
|
"div",
|
|
16439
16439
|
{
|
|
@@ -16579,7 +16579,7 @@ function PhoneFrame({ dateLabel, timeLabel, children, className }) {
|
|
|
16579
16579
|
"div",
|
|
16580
16580
|
{
|
|
16581
16581
|
className: _chunk3ATAYP36cjs.cn.call(void 0, "h-[617px] w-[299px] shrink-0 rounded-[48px] border border-ods-border bg-black p-2.5", className),
|
|
16582
|
-
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "relative flex h-full flex-col overflow-hidden rounded-[38px]",
|
|
16582
|
+
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "relative flex h-full flex-col overflow-hidden rounded-[38px]", _chunkU2O5YQRPcjs.DEVICE_WALLPAPER_CLASS), children: [
|
|
16583
16583
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16584
16584
|
"div",
|
|
16585
16585
|
{
|
|
@@ -16745,7 +16745,7 @@ var TRIAL_TERM_ICONS = {
|
|
|
16745
16745
|
};
|
|
16746
16746
|
var DEFAULT_TRIAL_TERMS = ["cancel", "length", "noContract"];
|
|
16747
16747
|
function trialBenefits(trialDays, terms = DEFAULT_TRIAL_TERMS) {
|
|
16748
|
-
const labels =
|
|
16748
|
+
const labels = _chunkPS6T65KAcjs.trialLabels.call(void 0, trialDays);
|
|
16749
16749
|
return terms.flatMap((term) => {
|
|
16750
16750
|
const label = labels[term];
|
|
16751
16751
|
return label ? [{ icon: TRIAL_TERM_ICONS[term], label }] : [];
|
|
@@ -16829,7 +16829,7 @@ function AnalyzingState({ label, className }) {
|
|
|
16829
16829
|
}) }),
|
|
16830
16830
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1.5 text-center text-ods-text-secondary text-h4", children: [
|
|
16831
16831
|
label,
|
|
16832
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16832
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5TCIRWHLcjs.ChatTypingIndicator, { "aria-hidden": true, size: "sm", dotClassName: "bg-ods-text-secondary motion-reduce:animate-none" })
|
|
16833
16833
|
] })
|
|
16834
16834
|
] });
|
|
16835
16835
|
}
|
|
@@ -16843,7 +16843,7 @@ var INCIDENT_TONE = {
|
|
|
16843
16843
|
approved: "success"
|
|
16844
16844
|
};
|
|
16845
16845
|
function IncidentStatusLine({ status, label, className }) {
|
|
16846
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16846
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWGLRE74cjs.StatusLine, { tone: INCIDENT_TONE[status], label, className });
|
|
16847
16847
|
}
|
|
16848
16848
|
function SourceTag({ children }) {
|
|
16849
16849
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex shrink-0 rounded-md border border-ods-border px-2 py-1 text-ods-text-secondary text-h5", children });
|
|
@@ -16959,8 +16959,8 @@ function SnapCarousel({
|
|
|
16959
16959
|
}) {
|
|
16960
16960
|
const trackRef = _react.useRef.call(void 0, null);
|
|
16961
16961
|
const [index, setIndex] = _react.useState.call(void 0, 0);
|
|
16962
|
-
const { ref: viewRef, inView } =
|
|
16963
|
-
const auto =
|
|
16962
|
+
const { ref: viewRef, inView } = _chunkCSJO7ZGNcjs.useInView.call(void 0, { threshold: 0.5 });
|
|
16963
|
+
const auto = _chunkCSJO7ZGNcjs.useAutoplay.call(void 0, inView);
|
|
16964
16964
|
const count = items.length;
|
|
16965
16965
|
const slideStep = _react.useCallback.call(void 0, () => {
|
|
16966
16966
|
const first = _optionalChain([trackRef, 'access', _352 => _352.current, 'optionalAccess', _353 => _353.firstElementChild]);
|
|
@@ -16991,7 +16991,7 @@ function SnapCarousel({
|
|
|
16991
16991
|
}, [count, slideStep]);
|
|
16992
16992
|
const canAutoAdvance = autoAdvanceMs > 0 && count > 1;
|
|
16993
16993
|
const playing = auto.playing && canAutoAdvance;
|
|
16994
|
-
const ranMs =
|
|
16994
|
+
const ranMs = _chunk4FWURR3Wcjs.useResumableTimeout.call(void 0, {
|
|
16995
16995
|
running: playing,
|
|
16996
16996
|
durationMs: autoAdvanceMs,
|
|
16997
16997
|
resetKey: index,
|
|
@@ -17352,10 +17352,10 @@ function AccountDetailsFields({
|
|
|
17352
17352
|
onKeyDown,
|
|
17353
17353
|
layout = "stacked"
|
|
17354
17354
|
}) {
|
|
17355
|
-
const firstNameErr =
|
|
17356
|
-
const lastNameErr =
|
|
17357
|
-
const passwordErr =
|
|
17358
|
-
const confirmErr =
|
|
17355
|
+
const firstNameErr = _chunk4FWURR3Wcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _354 => _354.firstName]), firstName);
|
|
17356
|
+
const lastNameErr = _chunk4FWURR3Wcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _355 => _355.lastName]), lastName);
|
|
17357
|
+
const passwordErr = _chunk4FWURR3Wcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _356 => _356.password]), password);
|
|
17358
|
+
const confirmErr = _chunk4FWURR3Wcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _357 => _357.confirmPassword]), confirmPassword);
|
|
17359
17359
|
const names = [
|
|
17360
17360
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17361
17361
|
_chunkHTRILBJDcjs.Input,
|
|
@@ -17573,16 +17573,16 @@ function LabeledDivider({ label }) {
|
|
|
17573
17573
|
var PROVIDER_META = {
|
|
17574
17574
|
openframe: {
|
|
17575
17575
|
name: "OpenFrame",
|
|
17576
|
-
Icon:
|
|
17576
|
+
Icon: _chunkKTPR66EEcjs.requireIcon.call(void 0, {
|
|
17577
17577
|
set: "OpenframeLogoIcon",
|
|
17578
17578
|
color: "var(--color-text-primary)",
|
|
17579
17579
|
secondaryColor: "var(--color-accent-primary)",
|
|
17580
17580
|
ownColor: true
|
|
17581
17581
|
})
|
|
17582
17582
|
},
|
|
17583
|
-
google: { name: "Google", Icon:
|
|
17584
|
-
microsoft: { name: "Microsoft", Icon:
|
|
17585
|
-
apple: { name: "Apple", Icon:
|
|
17583
|
+
google: { name: "Google", Icon: _chunkKTPR66EEcjs.requireIcon.call(void 0, { set: "GoogleLogoIcon" }) },
|
|
17584
|
+
microsoft: { name: "Microsoft", Icon: _chunkKTPR66EEcjs.requireIcon.call(void 0, { set: "MicrosoftLogoIcon" }) },
|
|
17585
|
+
apple: { name: "Apple", Icon: _chunkKTPR66EEcjs.requireIcon.call(void 0, { set: "AppleLogoIcon" }) }
|
|
17586
17586
|
};
|
|
17587
17587
|
function SsoProviderButtons({
|
|
17588
17588
|
providers,
|
|
@@ -17654,7 +17654,7 @@ function CompleteAccountForm({
|
|
|
17654
17654
|
),
|
|
17655
17655
|
children: [
|
|
17656
17656
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
17657
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
17657
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunk5MH6BRPYcjs.accentSentenceMarks.call(void 0, title) }),
|
|
17658
17658
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
17659
17659
|
] }),
|
|
17660
17660
|
ssoProviders && ssoProviders.length > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -17785,9 +17785,9 @@ function CreateOrganizationForm({
|
|
|
17785
17785
|
}) {
|
|
17786
17786
|
const hasSso = !!ssoProviders && ssoProviders.length > 0;
|
|
17787
17787
|
const fieldsDisabled = disabled || loading;
|
|
17788
|
-
const emailErr =
|
|
17789
|
-
const orgNameErr =
|
|
17790
|
-
const domainErr =
|
|
17788
|
+
const emailErr = _chunk4FWURR3Wcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _359 => _359.email]), _nullishCoalesce(email, () => ( "")));
|
|
17789
|
+
const orgNameErr = _chunk4FWURR3Wcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _360 => _360.organizationName]), organizationName);
|
|
17790
|
+
const domainErr = _chunk4FWURR3Wcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _361 => _361.domain]), domain);
|
|
17791
17791
|
const handleKeyDown = (event) => {
|
|
17792
17792
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
17793
17793
|
onSubmit();
|
|
@@ -17802,7 +17802,7 @@ function CreateOrganizationForm({
|
|
|
17802
17802
|
),
|
|
17803
17803
|
children: [
|
|
17804
17804
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
17805
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
17805
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunk5MH6BRPYcjs.accentSentenceMarks.call(void 0, title) }),
|
|
17806
17806
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
17807
17807
|
] }),
|
|
17808
17808
|
email === void 0 ? null : emailReadOnly ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHTRILBJDcjs.Input, { type: "email", label: emailReadOnlyLabel, value: email, readOnly: true, disabled: true }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -17943,7 +17943,7 @@ function InviteLinkInvalidModal({
|
|
|
17943
17943
|
),
|
|
17944
17944
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full max-w-[600px] flex-col gap-[var(--spacing-system-l)] rounded-md border border-ods-border bg-ods-card p-[var(--spacing-system-xl)]", children: [
|
|
17945
17945
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-mf)]", children: [
|
|
17946
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "flex-1 tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
17946
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "flex-1 tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunk5MH6BRPYcjs.accentSentenceMarks.call(void 0, title) }),
|
|
17947
17947
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17948
17948
|
"button",
|
|
17949
17949
|
{
|
|
@@ -18003,7 +18003,7 @@ function LoginForm({
|
|
|
18003
18003
|
className
|
|
18004
18004
|
}) {
|
|
18005
18005
|
const fieldDisabled = disabled || loading;
|
|
18006
|
-
const emailErr =
|
|
18006
|
+
const emailErr = _chunk4FWURR3Wcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _368 => _368.email]), email);
|
|
18007
18007
|
const handleKeyDown = (event) => {
|
|
18008
18008
|
if (event.key !== "Enter" || fieldDisabled || submitDisabled) return;
|
|
18009
18009
|
_optionalChain([onSubmitClick, 'optionalCall', _369 => _369()]);
|
|
@@ -18017,7 +18017,7 @@ function LoginForm({
|
|
|
18017
18017
|
),
|
|
18018
18018
|
children: [
|
|
18019
18019
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
18020
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
18020
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunk5MH6BRPYcjs.accentSentenceMarks.call(void 0, title) }),
|
|
18021
18021
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
18022
18022
|
] }),
|
|
18023
18023
|
ssoProviders.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -18112,7 +18112,7 @@ function NoAccountNotice({
|
|
|
18112
18112
|
),
|
|
18113
18113
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full max-w-[600px] flex-col gap-[var(--spacing-system-l)] rounded-md border border-ods-border bg-ods-card p-[var(--spacing-system-xl)]", children: [
|
|
18114
18114
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
18115
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
18115
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunk5MH6BRPYcjs.accentSentenceMarks.call(void 0, title) }),
|
|
18116
18116
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: description })
|
|
18117
18117
|
] }),
|
|
18118
18118
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { type: "button", variant: "outline", fullWidth: true, onClick: onBackToLogin, children: backLabel })
|
|
@@ -18145,8 +18145,8 @@ function OpenFrameSsoLoginForm({
|
|
|
18145
18145
|
className
|
|
18146
18146
|
}) {
|
|
18147
18147
|
const fieldsDisabled = disabled || loading;
|
|
18148
|
-
const emailErr =
|
|
18149
|
-
const passwordErr =
|
|
18148
|
+
const emailErr = _chunk4FWURR3Wcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _372 => _372.email]), email);
|
|
18149
|
+
const passwordErr = _chunk4FWURR3Wcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _373 => _373.password]), password);
|
|
18150
18150
|
const handleKeyDown = (event) => {
|
|
18151
18151
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
18152
18152
|
onSubmit();
|
|
@@ -18161,7 +18161,7 @@ function OpenFrameSsoLoginForm({
|
|
|
18161
18161
|
),
|
|
18162
18162
|
children: [
|
|
18163
18163
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
18164
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
18164
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunk5MH6BRPYcjs.accentSentenceMarks.call(void 0, title) }),
|
|
18165
18165
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
18166
18166
|
] }),
|
|
18167
18167
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -18251,7 +18251,7 @@ function OpenFrameSsoSignUpForm({
|
|
|
18251
18251
|
className
|
|
18252
18252
|
}) {
|
|
18253
18253
|
const fieldsDisabled = disabled || loading;
|
|
18254
|
-
const emailErr =
|
|
18254
|
+
const emailErr = _chunk4FWURR3Wcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _374 => _374.email]), email);
|
|
18255
18255
|
const handleKeyDown = (event) => {
|
|
18256
18256
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
18257
18257
|
onSubmit();
|
|
@@ -18266,7 +18266,7 @@ function OpenFrameSsoSignUpForm({
|
|
|
18266
18266
|
),
|
|
18267
18267
|
children: [
|
|
18268
18268
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
18269
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
18269
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunk5MH6BRPYcjs.accentSentenceMarks.call(void 0, title) }),
|
|
18270
18270
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
18271
18271
|
] }),
|
|
18272
18272
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -18356,8 +18356,8 @@ function PasswordResetForm({
|
|
|
18356
18356
|
className
|
|
18357
18357
|
}) {
|
|
18358
18358
|
const fieldsDisabled = disabled || loading;
|
|
18359
|
-
const passwordErr =
|
|
18360
|
-
const confirmErr =
|
|
18359
|
+
const passwordErr = _chunk4FWURR3Wcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _375 => _375.password]), password);
|
|
18360
|
+
const confirmErr = _chunk4FWURR3Wcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _376 => _376.confirmPassword]), confirmPassword);
|
|
18361
18361
|
const handleKeyDown = (event) => {
|
|
18362
18362
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
18363
18363
|
onSubmit();
|
|
@@ -18372,7 +18372,7 @@ function PasswordResetForm({
|
|
|
18372
18372
|
),
|
|
18373
18373
|
children: [
|
|
18374
18374
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
18375
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
18375
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunk5MH6BRPYcjs.accentSentenceMarks.call(void 0, title) }),
|
|
18376
18376
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
18377
18377
|
] }),
|
|
18378
18378
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -18489,12 +18489,12 @@ function SsoJoinForm({
|
|
|
18489
18489
|
),
|
|
18490
18490
|
children: [
|
|
18491
18491
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
18492
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
18492
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunk5MH6BRPYcjs.accentSentenceMarks.call(void 0, title) }),
|
|
18493
18493
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
18494
18494
|
] }),
|
|
18495
18495
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-s)] rounded-md border border-ods-border bg-ods-bg p-[var(--spacing-system-m)]", children: [
|
|
18496
18496
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18497
|
-
|
|
18497
|
+
_chunkABLUMGCIcjs.SquareAvatar,
|
|
18498
18498
|
{
|
|
18499
18499
|
size: "lg",
|
|
18500
18500
|
variant: "round",
|
|
@@ -18508,7 +18508,7 @@ function SsoJoinForm({
|
|
|
18508
18508
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h4", children: displayName }),
|
|
18509
18509
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: organizationName })
|
|
18510
18510
|
] }),
|
|
18511
|
-
roles.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex shrink-0 items-center gap-[var(--spacing-system-xs)]", children: roles.map((role) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18511
|
+
roles.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex shrink-0 items-center gap-[var(--spacing-system-xs)]", children: roles.map((role) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABLUMGCIcjs.Tag, { variant: "grey", label: role }, role)) })
|
|
18512
18512
|
] }),
|
|
18513
18513
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18514
18514
|
CheckboxBlock,
|
|
@@ -18597,7 +18597,7 @@ function ProviderButton({ provider, onClick, disabled = false, loading = false }
|
|
|
18597
18597
|
disabled: disabled || isLoading,
|
|
18598
18598
|
variant: "outline",
|
|
18599
18599
|
size: "default",
|
|
18600
|
-
leftIcon: isLoading ? null : _react.createElement.call(void 0,
|
|
18600
|
+
leftIcon: isLoading ? null : _react.createElement.call(void 0, _chunkKTPR66EEcjs.requireIcon.call(void 0, config.icon), { className: "h-5 w-5" }),
|
|
18601
18601
|
className: `h-[56px] w-full !font-bold !text-h6 hover:bg-ods-bg-hover content-md:!w-full ${isLoading ? "cursor-wait" : "cursor-pointer"} `,
|
|
18602
18602
|
"aria-label": config.displayName,
|
|
18603
18603
|
children: isLoading ? "Signing in..." : config.displayName
|
|
@@ -18751,7 +18751,7 @@ function ChangelogManager({
|
|
|
18751
18751
|
),
|
|
18752
18752
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: hasContent ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-primary text-h6", children: entry.title }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "italic text-ods-text-secondary text-h6", children: "New entry (click to edit)" }) }),
|
|
18753
18753
|
tagOptions && tagLabelOf(entry.tag) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18754
|
-
|
|
18754
|
+
_chunk5MH6BRPYcjs.StatusBadge,
|
|
18755
18755
|
{
|
|
18756
18756
|
variant: "button",
|
|
18757
18757
|
singleLine: true,
|
|
@@ -18815,9 +18815,9 @@ function ChangelogManager({
|
|
|
18815
18815
|
] }),
|
|
18816
18816
|
tagOptions && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-1", children: [
|
|
18817
18817
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK6VWTUCHcjs.Label, { className: "text-ods-text-secondary", children: tagLabel }),
|
|
18818
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
18819
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18820
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18818
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkU2O5YQRPcjs.Select, { value: _nullishCoalesce(entry.tag, () => ( "")), onValueChange: (value) => updateEntry(index, "tag", value), children: [
|
|
18819
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectTrigger, { className: "bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectValue, { placeholder: tagLabel }) }),
|
|
18820
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectContent, { children: tagOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
18821
18821
|
] })
|
|
18822
18822
|
] })
|
|
18823
18823
|
] })
|
|
@@ -19014,7 +19014,7 @@ function EntityTagBadges({ tags, basePath, max, className }) {
|
|
|
19014
19014
|
const label = (tag.name || "").toUpperCase();
|
|
19015
19015
|
if (basePath && tag.slug) {
|
|
19016
19016
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _link2.default, { href: `${basePath}?tags=${tag.slug}`, className: "inline-flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19017
|
-
|
|
19017
|
+
_chunk5MH6BRPYcjs.StatusBadge,
|
|
19018
19018
|
{
|
|
19019
19019
|
text: label,
|
|
19020
19020
|
variant: "card",
|
|
@@ -19022,9 +19022,9 @@ function EntityTagBadges({ tags, basePath, max, className }) {
|
|
|
19022
19022
|
}
|
|
19023
19023
|
) }, key);
|
|
19024
19024
|
}
|
|
19025
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19025
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5MH6BRPYcjs.StatusBadge, { text: label, variant: "card", className: BADGE_CLASS }, key);
|
|
19026
19026
|
}),
|
|
19027
|
-
overflow > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19027
|
+
overflow > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5MH6BRPYcjs.StatusBadge, { text: `+${overflow}`, variant: "card", className: `${BADGE_CLASS} text-ods-text-secondary` })
|
|
19028
19028
|
] });
|
|
19029
19029
|
}
|
|
19030
19030
|
|
|
@@ -19120,7 +19120,7 @@ var SectionButton = ({
|
|
|
19120
19120
|
}
|
|
19121
19121
|
),
|
|
19122
19122
|
section.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19123
|
-
|
|
19123
|
+
_chunk5MH6BRPYcjs.StatusBadge,
|
|
19124
19124
|
{
|
|
19125
19125
|
text: section.badge.text,
|
|
19126
19126
|
variant: section.badge.variant || "button",
|
|
@@ -19139,7 +19139,7 @@ var SectionButton = ({
|
|
|
19139
19139
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-wrap items-start gap-2", children: [
|
|
19140
19140
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3ATAYP36cjs.cn.call(void 0, titleClasses, "text-h3"), style: { textAlign: "left" }, children: section.title }),
|
|
19141
19141
|
section.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19142
|
-
|
|
19142
|
+
_chunk5MH6BRPYcjs.StatusBadge,
|
|
19143
19143
|
{
|
|
19144
19144
|
text: section.badge.text,
|
|
19145
19145
|
variant: section.badge.variant || "button",
|
|
@@ -19882,7 +19882,7 @@ var FiltersDropdown = ({
|
|
|
19882
19882
|
window.addEventListener("resize", calculateOptimalPlacement);
|
|
19883
19883
|
return () => window.removeEventListener("resize", calculateOptimalPlacement);
|
|
19884
19884
|
}, [isOpen, isMobile, placement]);
|
|
19885
|
-
|
|
19885
|
+
_chunkDGFDBPO7cjs.useIsomorphicLayoutEffect.call(void 0, () => {
|
|
19886
19886
|
const dropdown = dropdownRef.current;
|
|
19887
19887
|
if (!dropdown) return;
|
|
19888
19888
|
if (!isMobile) {
|
|
@@ -20212,15 +20212,15 @@ function useLoading() {
|
|
|
20212
20212
|
|
|
20213
20213
|
|
|
20214
20214
|
function isAlreadyThere(file, existing) {
|
|
20215
|
-
const key =
|
|
20215
|
+
const key = _chunk5MH6BRPYcjs.mediaNameKey.call(void 0, file.name);
|
|
20216
20216
|
if (!key) return false;
|
|
20217
20217
|
return existing.some(
|
|
20218
|
-
(item) => (item.title ?
|
|
20218
|
+
(item) => (item.title ? _chunk5MH6BRPYcjs.mediaNameKey.call(void 0, item.title) === key : false) || (item.media_url ? _chunk5MH6BRPYcjs.mediaNameKey.call(void 0, item.media_url) === key : false)
|
|
20219
20219
|
);
|
|
20220
20220
|
}
|
|
20221
20221
|
var isFileDrag = (event) => Array.from(event.dataTransfer.types).includes("Files");
|
|
20222
|
-
var isVideoItem = (item) =>
|
|
20223
|
-
var MEDIA_KIND_ACCEPT = { image:
|
|
20222
|
+
var isVideoItem = (item) => _chunk5MH6BRPYcjs.isVideoMedia.call(void 0, item) || item.media_type === "demo";
|
|
20223
|
+
var MEDIA_KIND_ACCEPT = { image: _chunk5MH6BRPYcjs.IMAGE_FILE_ACCEPT, video: "video/*", both: _chunk5MH6BRPYcjs.MEDIA_FILE_ACCEPT };
|
|
20224
20224
|
var MEDIA_KIND_COPY = {
|
|
20225
20225
|
image: { noun: "pictures", refusal: "Not a picture" },
|
|
20226
20226
|
video: { noun: "videos", refusal: "Not a video" },
|
|
@@ -20244,12 +20244,12 @@ function useMediaIntake({ existing, onUpload, onUploaded, kinds = "both" }) {
|
|
|
20244
20244
|
const seen = /* @__PURE__ */ new Set();
|
|
20245
20245
|
const accepted = [];
|
|
20246
20246
|
for (const file of files) {
|
|
20247
|
-
const mediaType =
|
|
20247
|
+
const mediaType = _chunk5MH6BRPYcjs.fileMediaType.call(void 0, file);
|
|
20248
20248
|
if (!mediaType || kinds !== "both" && mediaType !== kinds) {
|
|
20249
20249
|
unsupported.push(file.name);
|
|
20250
20250
|
continue;
|
|
20251
20251
|
}
|
|
20252
|
-
const contentKey = await
|
|
20252
|
+
const contentKey = await _chunk5MH6BRPYcjs.fileContentKey.call(void 0, file).catch(() => `${file.name}:${file.size}`);
|
|
20253
20253
|
if (seen.has(contentKey) || isAlreadyThere(file, existingRef.current)) {
|
|
20254
20254
|
duplicates.push(file.name);
|
|
20255
20255
|
continue;
|
|
@@ -20430,7 +20430,7 @@ function MediaGalleryManager({
|
|
|
20430
20430
|
className: _chunk3ATAYP36cjs.cn.call(void 0, "grid grid-cols-1 gap-4 content-md:grid-cols-2", columns === 3 && "content-lg:grid-cols-3"),
|
|
20431
20431
|
children: [
|
|
20432
20432
|
media.map((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
20433
|
-
|
|
20433
|
+
_chunk5MH6BRPYcjs.Card,
|
|
20434
20434
|
{
|
|
20435
20435
|
className: "group relative border-ods-border transition-colors hover:border-ods-accent/30",
|
|
20436
20436
|
draggable: true,
|
|
@@ -20455,7 +20455,7 @@ function MediaGalleryManager({
|
|
|
20455
20455
|
) }),
|
|
20456
20456
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative aspect-video overflow-hidden rounded-lg bg-ods-bg", children: isVideoItem(item) ? (
|
|
20457
20457
|
// <Video> SSOT (MuxPlayer): plays Mux HLS and MP4 alike; fit="cover" crops to the cell.
|
|
20458
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20458
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5MH6BRPYcjs.Video, { kind: "file", url: item.media_url, fit: "cover", className: "h-full w-full" })
|
|
20459
20459
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20460
20460
|
_chunkHOTM4UM6cjs.next_image_default,
|
|
20461
20461
|
{
|
|
@@ -20470,17 +20470,17 @@ function MediaGalleryManager({
|
|
|
20470
20470
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
20471
20471
|
isVideoItem(item) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Video, { className: "h-5 w-5 text-ods-text-secondary" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Image, { className: "h-5 w-5 text-ods-text-secondary" }),
|
|
20472
20472
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
20473
|
-
|
|
20473
|
+
_chunkU2O5YQRPcjs.Select,
|
|
20474
20474
|
{
|
|
20475
20475
|
value: item.media_type,
|
|
20476
20476
|
onValueChange: (value) => update(index, { media_type: value }),
|
|
20477
20477
|
children: [
|
|
20478
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20479
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
20480
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20481
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20482
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20483
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20478
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectTrigger, { className: "h-8 bg-ods-bg text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectValue, {}) }),
|
|
20479
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkU2O5YQRPcjs.SelectContent, { className: "bg-ods-card", children: [
|
|
20480
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: "image", children: "Image" }),
|
|
20481
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: "video", children: "Video" }),
|
|
20482
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: "screenshot", children: "Screenshot" }),
|
|
20483
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: "demo", children: "Demo" })
|
|
20484
20484
|
] })
|
|
20485
20485
|
]
|
|
20486
20486
|
}
|
|
@@ -20507,7 +20507,7 @@ function MediaGalleryManager({
|
|
|
20507
20507
|
},
|
|
20508
20508
|
_nullishCoalesce(item.id, () => ( `${item.media_url}-${index}`))
|
|
20509
20509
|
)),
|
|
20510
|
-
pending.map((name, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
20510
|
+
pending.map((name, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5MH6BRPYcjs.Card, { className: "border-ods-border", "aria-busy": "true", children: [
|
|
20511
20511
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex aspect-video items-center justify-center rounded-lg bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "h-8 w-8 animate-spin text-ods-accent" }) }),
|
|
20512
20512
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate p-3 text-ods-text-secondary text-h6", children: name })
|
|
20513
20513
|
] }, `pending-${name}-${index}`))
|
|
@@ -20562,60 +20562,60 @@ function CardSkeleton({
|
|
|
20562
20562
|
function VendorCardContent({ showMetadata }) {
|
|
20563
20563
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-3 p-4", children: [
|
|
20564
20564
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start gap-3", children: [
|
|
20565
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[60px] w-[60px] flex-shrink-0 items-center justify-center rounded-lg border border-ods-border bg-ods-bg p-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20565
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[60px] w-[60px] flex-shrink-0 items-center justify-center rounded-lg border border-ods-border bg-ods-bg p-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.MediaSkeleton.Avatar, { size: "sm", className: "h-11 w-11" }) }),
|
|
20566
20566
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center space-y-1 py-2", children: [
|
|
20567
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20568
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20567
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Subheading, { className: "w-3/4" }),
|
|
20568
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "w-1/2" })
|
|
20569
20569
|
] })
|
|
20570
20570
|
] }),
|
|
20571
20571
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-full items-center overflow-hidden", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "w-full space-y-1", children: [
|
|
20572
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20573
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20572
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-full" }),
|
|
20573
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-2/3" })
|
|
20574
20574
|
] }) }),
|
|
20575
20575
|
showMetadata && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center justify-between gap-2", children: [
|
|
20576
20576
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-shrink items-center gap-3 content-md:gap-4", children: [
|
|
20577
20577
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-shrink-0 items-center gap-1", children: [
|
|
20578
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20579
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20578
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.MediaSkeleton.Icon, { size: "sm", className: "h-5 w-5" }),
|
|
20579
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "w-8" })
|
|
20580
20580
|
] }),
|
|
20581
20581
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-shrink-0 items-center gap-1", children: [
|
|
20582
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20583
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20582
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.MediaSkeleton.Icon, { size: "sm", className: "h-5 w-5" }),
|
|
20583
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "w-10" })
|
|
20584
20584
|
] })
|
|
20585
20585
|
] }),
|
|
20586
20586
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-shrink-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1.5 rounded border border-ods-border bg-ods-bg px-2.5 py-1.5", children: [
|
|
20587
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-sm bg-ods-border", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20588
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20587
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-sm bg-ods-border", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.MediaSkeleton.Icon, { size: "sm", className: "h-2.5 w-2.5" }) }),
|
|
20588
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "w-16" })
|
|
20589
20589
|
] }) })
|
|
20590
20590
|
] })
|
|
20591
20591
|
] });
|
|
20592
20592
|
}
|
|
20593
20593
|
function BlogCardContent({ showActions, showMetadata }) {
|
|
20594
20594
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
20595
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "blog-card-image-container relative aspect-[1200/630] w-full overflow-hidden bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20595
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "blog-card-image-container relative aspect-[1200/630] w-full overflow-hidden bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.MediaSkeleton.CardImage, {}) }),
|
|
20596
20596
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-grow flex-col p-4", children: [
|
|
20597
20597
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mb-3 flex min-h-[50.4px] items-center content-md:min-h-[56px] content-lg:min-h-[61.6px]", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "w-full space-y-1", children: [
|
|
20598
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20599
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20598
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Subheading, { className: "w-full" }),
|
|
20599
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Subheading, { className: "w-3/4" })
|
|
20600
20600
|
] }) }),
|
|
20601
20601
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mb-3 flex h-[28px] items-center gap-2", children: [
|
|
20602
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20603
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20602
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.InteractiveSkeleton.Chip, { className: "w-16" }),
|
|
20603
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.InteractiveSkeleton.Chip, { className: "w-12" })
|
|
20604
20604
|
] }),
|
|
20605
20605
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mb-3 flex min-h-[42px] items-center content-md:min-h-[45px] content-lg:min-h-[48px]", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "w-full space-y-1", children: [
|
|
20606
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20607
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20606
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-full" }),
|
|
20607
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-1/2" })
|
|
20608
20608
|
] }) }),
|
|
20609
|
-
showActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20609
|
+
showActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.InteractiveSkeleton.Button, { className: "h-8 w-24" }) }),
|
|
20610
20610
|
showMetadata && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-auto", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between gap-4 border-t border-ods-border pt-4", children: [
|
|
20611
20611
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
20612
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20613
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20612
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.MediaSkeleton.Avatar, { size: "sm" }),
|
|
20613
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "w-16" })
|
|
20614
20614
|
] }),
|
|
20615
20615
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 items-center gap-3 text-ods-text-muted", children: [
|
|
20616
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20616
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "w-12" }),
|
|
20617
20617
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-1 w-1 rounded-full bg-ods-skeleton" }),
|
|
20618
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20618
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "w-16" })
|
|
20619
20619
|
] })
|
|
20620
20620
|
] }) })
|
|
20621
20621
|
] })
|
|
@@ -20623,35 +20623,35 @@ function BlogCardContent({ showActions, showMetadata }) {
|
|
|
20623
20623
|
}
|
|
20624
20624
|
function CategoryCardContent() {
|
|
20625
20625
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4 p-4 content-md:p-6", children: [
|
|
20626
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex gap-2 content-md:gap-3", children: Array.from({ length: 6 }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20626
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex gap-2 content-md:gap-3", children: Array.from({ length: 6 }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.MediaSkeleton.Icon, { size: "lg", className: "flex-shrink-0" }, index)) }),
|
|
20627
20627
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
20628
20628
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-1", children: [
|
|
20629
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20630
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20629
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Subheading, { className: "w-3/4" }),
|
|
20630
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "w-1/2" })
|
|
20631
20631
|
] }),
|
|
20632
20632
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start justify-between gap-4 content-md:items-end content-md:gap-6", children: [
|
|
20633
20633
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 space-y-2", children: [
|
|
20634
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20635
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20634
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-full" }),
|
|
20635
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-2/3" })
|
|
20636
20636
|
] }),
|
|
20637
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20637
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.InteractiveSkeleton.Button, { className: "h-10 w-10 flex-shrink-0 content-md:h-12 content-md:w-12" })
|
|
20638
20638
|
] })
|
|
20639
20639
|
] })
|
|
20640
20640
|
] });
|
|
20641
20641
|
}
|
|
20642
20642
|
function AlternativeCardContent({ showActions }) {
|
|
20643
20643
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-4 p-4", children: [
|
|
20644
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20644
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.MediaSkeleton.Avatar, { size: "md", className: "flex-shrink-0" }),
|
|
20645
20645
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 space-y-2", children: [
|
|
20646
20646
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between", children: [
|
|
20647
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20648
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20647
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Subheading, { className: "w-1/3" }),
|
|
20648
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "w-16" })
|
|
20649
20649
|
] }),
|
|
20650
20650
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-1", children: [
|
|
20651
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20652
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20651
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-full" }),
|
|
20652
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-5/6" })
|
|
20653
20653
|
] }),
|
|
20654
|
-
showActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20654
|
+
showActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.InteractiveSkeleton.Button, { className: "h-8 w-20" }) })
|
|
20655
20655
|
] })
|
|
20656
20656
|
] });
|
|
20657
20657
|
}
|
|
@@ -20702,12 +20702,12 @@ function HeroSkeleton() {
|
|
|
20702
20702
|
background: "radial-gradient(circle at 50% 0%, #242323 0%, #1A1A1A 100%)"
|
|
20703
20703
|
},
|
|
20704
20704
|
children: [
|
|
20705
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20705
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Heading, { className: "mb-4 h-12 w-full max-w-4xl content-md:mb-6 content-md:h-20 content-lg:h-24" }),
|
|
20706
20706
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mb-8 w-full max-w-4xl space-y-3 px-2 content-md:mb-10", children: [
|
|
20707
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20708
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20707
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "h-5 content-md:h-7" }),
|
|
20708
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "mx-auto h-5 w-3/4 content-md:h-7" })
|
|
20709
20709
|
] }),
|
|
20710
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20710
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.InteractiveSkeleton.Button, { className: "h-12 w-full content-md:w-64" })
|
|
20711
20711
|
]
|
|
20712
20712
|
}
|
|
20713
20713
|
);
|
|
@@ -20718,14 +20718,14 @@ function SearchContainerSkeleton({
|
|
|
20718
20718
|
}) {
|
|
20719
20719
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "space-y-4", className || ""), children: [
|
|
20720
20720
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex gap-2 content-md:gap-4", children: [
|
|
20721
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20722
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20721
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.InteractiveSkeleton.Input, { className: "flex-1" }),
|
|
20722
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.InteractiveSkeleton.Button, { className: "w-32 content-md:w-40" })
|
|
20723
20723
|
] }),
|
|
20724
20724
|
showFilters && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-wrap gap-2", children: [
|
|
20725
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20726
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20727
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20728
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20725
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.InteractiveSkeleton.Chip, {}),
|
|
20726
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.InteractiveSkeleton.Chip, { className: "w-24" }),
|
|
20727
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.InteractiveSkeleton.Chip, { className: "w-16" }),
|
|
20728
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.InteractiveSkeleton.Chip, { className: "w-20" })
|
|
20729
20729
|
] })
|
|
20730
20730
|
] });
|
|
20731
20731
|
}
|
|
@@ -20744,7 +20744,7 @@ function CategorySidebarSkeleton({ className }) {
|
|
|
20744
20744
|
{ type: "file", width: "w-36" }
|
|
20745
20745
|
];
|
|
20746
20746
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "w-full content-lg:w-[320px]", className), children: [
|
|
20747
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20747
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.UnifiedSkeleton, { className: "mb-4 h-[14px] w-24 rounded" }),
|
|
20748
20748
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-1.5", children: items.map((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
20749
20749
|
"div",
|
|
20750
20750
|
{
|
|
@@ -20754,12 +20754,12 @@ function CategorySidebarSkeleton({ className }) {
|
|
|
20754
20754
|
),
|
|
20755
20755
|
children: [
|
|
20756
20756
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2.5", children: [
|
|
20757
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20758
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20757
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.UnifiedSkeleton, { className: "h-4 w-4 shrink-0 rounded" }),
|
|
20758
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.UnifiedSkeleton, { className: `h-[14px] ${item.width} rounded` })
|
|
20759
20759
|
] }),
|
|
20760
20760
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-[18px] items-center gap-2", children: [
|
|
20761
|
-
item.hasBadge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20762
|
-
item.type === "folder" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20761
|
+
item.hasBadge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.UnifiedSkeleton, { className: "h-[18px] w-14 rounded" }),
|
|
20762
|
+
item.type === "folder" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.UnifiedSkeleton, { className: "h-4 w-4 rounded" })
|
|
20763
20763
|
] })
|
|
20764
20764
|
]
|
|
20765
20765
|
},
|
|
@@ -20769,13 +20769,13 @@ function CategorySidebarSkeleton({ className }) {
|
|
|
20769
20769
|
}
|
|
20770
20770
|
function BreadcrumbSkeleton({ className }) {
|
|
20771
20771
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "mb-6 flex items-center space-x-1", className), children: [
|
|
20772
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20773
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20774
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20775
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20776
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20777
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20778
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20772
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "w-16" }),
|
|
20773
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.UnifiedSkeleton, { variant: "default", className: "h-4 w-4 rounded-full" }),
|
|
20774
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "w-24" }),
|
|
20775
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.UnifiedSkeleton, { variant: "default", className: "h-4 w-4 rounded-full" }),
|
|
20776
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "w-32" }),
|
|
20777
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.UnifiedSkeleton, { variant: "default", className: "h-4 w-4 rounded-full" }),
|
|
20778
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "w-24" })
|
|
20779
20779
|
] });
|
|
20780
20780
|
}
|
|
20781
20781
|
function ResultsHeaderSkeleton({ className }) {
|
|
@@ -20786,7 +20786,7 @@ function ResultsHeaderSkeleton({ className }) {
|
|
|
20786
20786
|
"mb-6 flex flex-col items-start justify-between gap-4 content-md:flex-row content-md:items-center",
|
|
20787
20787
|
className
|
|
20788
20788
|
),
|
|
20789
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20789
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-48" }) })
|
|
20790
20790
|
}
|
|
20791
20791
|
);
|
|
20792
20792
|
}
|
|
@@ -20820,35 +20820,35 @@ function ArticleLayoutSkeleton({ className }) {
|
|
|
20820
20820
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "article", { className: _chunk3ATAYP36cjs.cn.call(void 0, "mx-auto max-w-4xl", className), children: [
|
|
20821
20821
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "header", { className: "mb-8 space-y-4 content-md:mb-12 content-md:space-y-6", children: [
|
|
20822
20822
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex gap-2", children: [
|
|
20823
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20824
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20823
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.InteractiveSkeleton.Chip, {}),
|
|
20824
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.InteractiveSkeleton.Chip, { className: "w-16" })
|
|
20825
20825
|
] }),
|
|
20826
20826
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-3", children: [
|
|
20827
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20828
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20827
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Heading, { className: "w-full" }),
|
|
20828
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Heading, { className: "w-3/4" })
|
|
20829
20829
|
] }),
|
|
20830
20830
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-4 border-t border-ods-divider pt-4", children: [
|
|
20831
20831
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
20832
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20833
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20832
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.MediaSkeleton.Avatar, { size: "sm" }),
|
|
20833
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "w-24" })
|
|
20834
20834
|
] }),
|
|
20835
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20836
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20835
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "w-20" }),
|
|
20836
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "w-16" })
|
|
20837
20837
|
] })
|
|
20838
20838
|
] }),
|
|
20839
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mb-8 content-md:mb-12", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20839
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mb-8 content-md:mb-12", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.MediaSkeleton.CardImage, { className: "h-64 w-full content-md:h-96" }) }),
|
|
20840
20840
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "prose prose-invert max-w-none space-y-6", children: [
|
|
20841
20841
|
Array.from({ length: 12 }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
20842
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20843
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20844
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20845
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20842
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-full" }),
|
|
20843
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-full" }),
|
|
20844
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-5/6" }),
|
|
20845
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-3/4" })
|
|
20846
20846
|
] }, index)),
|
|
20847
20847
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "py-4", children: [
|
|
20848
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20848
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Subheading, { className: "mb-4 w-2/3" }),
|
|
20849
20849
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
20850
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20851
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20850
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-full" }),
|
|
20851
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-4/5" })
|
|
20852
20852
|
] })
|
|
20853
20853
|
] })
|
|
20854
20854
|
] })
|
|
@@ -21074,11 +21074,11 @@ function StatsSectionSkeleton({ className, columns = 3 }) {
|
|
|
21074
21074
|
className
|
|
21075
21075
|
),
|
|
21076
21076
|
children: Array.from({ length: columns }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rounded-lg border border-ods-border bg-ods-card p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
21077
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21078
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21077
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.MediaSkeleton.Icon, { size: "lg" }),
|
|
21078
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Subheading, { className: "w-3/4" }),
|
|
21079
21079
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
21080
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21081
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21080
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-full" }),
|
|
21081
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-3/4" })
|
|
21082
21082
|
] })
|
|
21083
21083
|
] }) }, i))
|
|
21084
21084
|
}
|
|
@@ -21233,7 +21233,7 @@ function useContentLoading(isLoading) {
|
|
|
21233
21233
|
|
|
21234
21234
|
function ParagraphSkeleton({ className, lines = 4 }) {
|
|
21235
21235
|
const lineWidths = ["w-full", "w-full", "w-5/6", "w-3/4", "w-4/5", "w-2/3"];
|
|
21236
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "space-y-2", className), children: Array.from({ length: lines }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21236
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "space-y-2", className), children: Array.from({ length: lines }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: lineWidths[index % lineWidths.length] }, index)) });
|
|
21237
21237
|
}
|
|
21238
21238
|
function ListSkeleton({
|
|
21239
21239
|
className,
|
|
@@ -21243,12 +21243,12 @@ function ListSkeleton({
|
|
|
21243
21243
|
}) {
|
|
21244
21244
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "space-y-3", className), children: Array.from({ length: items }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between", children: [
|
|
21245
21245
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
21246
|
-
showIcons && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21247
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21246
|
+
showIcons && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.MediaSkeleton.Icon, { size: "sm" }),
|
|
21247
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-32 content-md:w-48" })
|
|
21248
21248
|
] }),
|
|
21249
21249
|
showActions && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
21250
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21251
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21250
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "w-8" }),
|
|
21251
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.UnifiedSkeleton, { variant: "default", className: "h-4 w-4" })
|
|
21252
21252
|
] })
|
|
21253
21253
|
] }, index)) });
|
|
21254
21254
|
}
|
|
@@ -21258,13 +21258,13 @@ function TableSkeleton({
|
|
|
21258
21258
|
columns = 4
|
|
21259
21259
|
}) {
|
|
21260
21260
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "space-y-4", className), children: [
|
|
21261
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid gap-4", style: { gridTemplateColumns: `repeat(${columns}, 1fr)` }, children: Array.from({ length: columns }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21261
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid gap-4", style: { gridTemplateColumns: `repeat(${columns}, 1fr)` }, children: Array.from({ length: columns }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Subheading, { className: "w-3/4" }, index)) }),
|
|
21262
21262
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-3", children: Array.from({ length: rows }).map((_, rowIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21263
21263
|
"div",
|
|
21264
21264
|
{
|
|
21265
21265
|
className: "grid gap-4 border-b border-ods-divider py-2",
|
|
21266
21266
|
style: { gridTemplateColumns: `repeat(${columns}, 1fr)` },
|
|
21267
|
-
children: Array.from({ length: columns }).map((_cell, colIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21267
|
+
children: Array.from({ length: columns }).map((_cell, colIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-2/3" }, colIndex))
|
|
21268
21268
|
},
|
|
21269
21269
|
rowIndex
|
|
21270
21270
|
)) })
|
|
@@ -21273,13 +21273,13 @@ function TableSkeleton({
|
|
|
21273
21273
|
function FormSkeleton({ className, fields = 4 }) {
|
|
21274
21274
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "space-y-6", className), children: [
|
|
21275
21275
|
Array.from({ length: fields }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
21276
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21277
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21278
|
-
index % 3 === 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21276
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-24" }),
|
|
21277
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.InteractiveSkeleton.Input, {}),
|
|
21278
|
+
index % 3 === 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "w-48" })
|
|
21279
21279
|
] }, index)),
|
|
21280
21280
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex gap-4 pt-4", children: [
|
|
21281
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21282
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21281
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.InteractiveSkeleton.Button, {}),
|
|
21282
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.InteractiveSkeleton.Button, { className: "bg-ods-border" })
|
|
21283
21283
|
] })
|
|
21284
21284
|
] });
|
|
21285
21285
|
}
|
|
@@ -21294,7 +21294,7 @@ function NavigationSkeleton({
|
|
|
21294
21294
|
className: _chunk3ATAYP36cjs.cn.call(void 0, "flex gap-4 content-md:gap-6", !horizontal && "flex-col", className),
|
|
21295
21295
|
role: "status",
|
|
21296
21296
|
"aria-label": "Loading navigation",
|
|
21297
|
-
children: Array.from({ length: items }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21297
|
+
children: Array.from({ length: items }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-16 content-md:w-20" }, index))
|
|
21298
21298
|
}
|
|
21299
21299
|
);
|
|
21300
21300
|
}
|
|
@@ -21305,30 +21305,30 @@ function ProfileSkeleton({
|
|
|
21305
21305
|
}) {
|
|
21306
21306
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "space-y-4", className), children: [
|
|
21307
21307
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-4", children: [
|
|
21308
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21308
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.MediaSkeleton.Avatar, { size: "lg" }),
|
|
21309
21309
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 space-y-2", children: [
|
|
21310
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21311
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21312
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21310
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Subheading, { className: "w-1/2" }),
|
|
21311
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "w-1/3" }),
|
|
21312
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-2/3" })
|
|
21313
21313
|
] })
|
|
21314
21314
|
] }),
|
|
21315
21315
|
showBio && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
21316
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21317
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21318
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21316
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-full" }),
|
|
21317
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-4/5" }),
|
|
21318
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-3/4" })
|
|
21319
21319
|
] }),
|
|
21320
21320
|
showStats && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex gap-6", children: [
|
|
21321
21321
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-center", children: [
|
|
21322
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21323
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21322
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Subheading, { className: "mx-auto w-8" }),
|
|
21323
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "mx-auto w-12" })
|
|
21324
21324
|
] }),
|
|
21325
21325
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-center", children: [
|
|
21326
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21327
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21326
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Subheading, { className: "mx-auto w-8" }),
|
|
21327
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "mx-auto w-16" })
|
|
21328
21328
|
] }),
|
|
21329
21329
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-center", children: [
|
|
21330
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21331
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21330
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Subheading, { className: "mx-auto w-8" }),
|
|
21331
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "mx-auto w-14" })
|
|
21332
21332
|
] })
|
|
21333
21333
|
] })
|
|
21334
21334
|
] });
|
|
@@ -21340,32 +21340,32 @@ function CommentSkeleton({
|
|
|
21340
21340
|
}) {
|
|
21341
21341
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "space-y-3", className), children: [
|
|
21342
21342
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
21343
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21343
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.MediaSkeleton.Avatar, { size: "sm" }),
|
|
21344
21344
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 items-center gap-4", children: [
|
|
21345
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21346
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21347
|
-
showRating && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex gap-1", children: Array.from({ length: 5 }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21345
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-24" }),
|
|
21346
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "w-16" }),
|
|
21347
|
+
showRating && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex gap-1", children: Array.from({ length: 5 }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.MediaSkeleton.Icon, { size: "sm" }, i)) })
|
|
21348
21348
|
] })
|
|
21349
21349
|
] }),
|
|
21350
21350
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "ml-11 space-y-2", children: [
|
|
21351
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21352
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21353
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21351
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-full" }),
|
|
21352
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-3/4" }),
|
|
21353
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-1/2" })
|
|
21354
21354
|
] }),
|
|
21355
21355
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "ml-11 flex gap-4", children: [
|
|
21356
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21357
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21358
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21356
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "w-12" }),
|
|
21357
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "w-16" }),
|
|
21358
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "w-8" })
|
|
21359
21359
|
] }),
|
|
21360
21360
|
showReplies && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ml-11 space-y-4 border-l border-ods-divider pl-4", children: Array.from({ length: 2 }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
21361
21361
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
21362
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21363
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21364
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21362
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.MediaSkeleton.Avatar, { size: "sm" }),
|
|
21363
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-20" }),
|
|
21364
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "w-12" })
|
|
21365
21365
|
] }),
|
|
21366
21366
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "ml-11", children: [
|
|
21367
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21368
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21367
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-full" }),
|
|
21368
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-2/3" })
|
|
21369
21369
|
] })
|
|
21370
21370
|
] }, index)) })
|
|
21371
21371
|
] });
|
|
@@ -21378,31 +21378,31 @@ function FeatureListSkeleton({
|
|
|
21378
21378
|
}) {
|
|
21379
21379
|
if (grouped) {
|
|
21380
21380
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "space-y-6", className), children: Array.from({ length: 3 }).map((_, groupIndex) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-3", children: [
|
|
21381
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21381
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Subheading, { className: "w-1/3" }),
|
|
21382
21382
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-2", children: Array.from({ length: features / 3 }).map((_feature, featureIndex) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
21383
|
-
showIcons && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21384
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21383
|
+
showIcons && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.MediaSkeleton.Icon, { size: "sm" }),
|
|
21384
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-2/3" })
|
|
21385
21385
|
] }, featureIndex)) })
|
|
21386
21386
|
] }, groupIndex)) });
|
|
21387
21387
|
}
|
|
21388
21388
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "space-y-3", className), children: Array.from({ length: features }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
21389
|
-
showIcons && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21390
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21389
|
+
showIcons && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.MediaSkeleton.Icon, { size: "sm" }),
|
|
21390
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-2/3" })
|
|
21391
21391
|
] }, index)) });
|
|
21392
21392
|
}
|
|
21393
21393
|
function TimelineSkeleton({ className, items = 5 }) {
|
|
21394
21394
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "space-y-6", className), children: Array.from({ length: items }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex gap-4", children: [
|
|
21395
21395
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-center", children: [
|
|
21396
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21396
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.MediaSkeleton.Icon, { size: "sm" }),
|
|
21397
21397
|
index < items - 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-2 h-12 w-px bg-ods-border" })
|
|
21398
21398
|
] }),
|
|
21399
21399
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 space-y-2", children: [
|
|
21400
21400
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
21401
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21402
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21401
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-1/3" }),
|
|
21402
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "w-16" })
|
|
21403
21403
|
] }),
|
|
21404
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21405
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21404
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-full" }),
|
|
21405
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-3/4" })
|
|
21406
21406
|
] })
|
|
21407
21407
|
] }, index)) });
|
|
21408
21408
|
}
|
|
@@ -21418,16 +21418,16 @@ function PricingSkeleton({ className, plans = 3 }) {
|
|
|
21418
21418
|
className
|
|
21419
21419
|
),
|
|
21420
21420
|
children: Array.from({ length: plans }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rounded-lg border border-ods-border bg-ods-card p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
21421
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21421
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Subheading, { className: "w-1/2" }),
|
|
21422
21422
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-1", children: [
|
|
21423
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21424
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21423
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Heading, { className: "w-1/3" }),
|
|
21424
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "w-1/4" })
|
|
21425
21425
|
] }),
|
|
21426
21426
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-3 py-4", children: Array.from({ length: 5 }).map((_feature, featureIndex) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
21427
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21428
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21427
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.MediaSkeleton.Icon, { size: "sm" }),
|
|
21428
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-3/4" })
|
|
21429
21429
|
] }, featureIndex)) }),
|
|
21430
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21430
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.InteractiveSkeleton.Button, { className: "w-full" })
|
|
21431
21431
|
] }) }, index))
|
|
21432
21432
|
}
|
|
21433
21433
|
);
|
|
@@ -21463,12 +21463,12 @@ function MspProfileFormSkeleton({ className, fields = 4 }) {
|
|
|
21463
21463
|
"aria-label": "Loading MSP profile form",
|
|
21464
21464
|
children: [
|
|
21465
21465
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full flex-col space-y-2", children: [
|
|
21466
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21467
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-[180px] flex-1 content-md:min-h-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21466
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-28" }),
|
|
21467
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-[180px] flex-1 content-md:min-h-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.UnifiedSkeleton, { className: "h-full w-full rounded-lg", "aria-label": "Loading company logo" }) })
|
|
21468
21468
|
] }),
|
|
21469
21469
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-md:grid-cols-2", children: Array.from({ length: fields }).map((_, idx) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col space-y-2", children: [
|
|
21470
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21471
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21470
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-40" }),
|
|
21471
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.InteractiveSkeleton.Input, {})
|
|
21472
21472
|
] }, idx)) })
|
|
21473
21473
|
]
|
|
21474
21474
|
}
|
|
@@ -21488,13 +21488,13 @@ function CategoryCardSkeleton({ className }) {
|
|
|
21488
21488
|
role: "status",
|
|
21489
21489
|
"aria-label": "Loading category card",
|
|
21490
21490
|
children: [
|
|
21491
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mb-8 flex items-center justify-center gap-6", children: Array.from({ length: 10 }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21491
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mb-8 flex items-center justify-center gap-6", children: Array.from({ length: 10 }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.UnifiedSkeleton, { variant: "circular", className: "h-10 w-10 flex-shrink-0", "aria-label": "Loading icon" }, i)) }),
|
|
21492
21492
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col space-y-3", children: [
|
|
21493
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21494
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21495
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21493
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Heading, { className: "w-3/4" }),
|
|
21494
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-1/2" }),
|
|
21495
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-full" })
|
|
21496
21496
|
] }),
|
|
21497
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-4 flex justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21497
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-4 flex justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.UnifiedSkeleton, { className: "h-12 w-12 rounded-[6px]", "aria-label": "Loading button" }) })
|
|
21498
21498
|
]
|
|
21499
21499
|
}
|
|
21500
21500
|
);
|
|
@@ -21511,12 +21511,12 @@ function CategoryVendorSelectorSkeleton({ subcategories = 3, className }) {
|
|
|
21511
21511
|
"aria-label": "Loading category section",
|
|
21512
21512
|
children: [
|
|
21513
21513
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mb-6 max-w-xl space-y-2", children: [
|
|
21514
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21515
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21514
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Heading, { className: "w-1/2" }),
|
|
21515
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-3/4" })
|
|
21516
21516
|
] }),
|
|
21517
21517
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-6", children: Array.from({ length: subcategories }).map((_, idx) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
21518
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21519
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid grid-cols-2 gap-4 content-md:grid-cols-3", children: Array.from({ length: 2 }).map((__, j) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21518
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Subheading, { className: "w-1/3" }),
|
|
21519
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid grid-cols-2 gap-4 content-md:grid-cols-3", children: Array.from({ length: 2 }).map((__, j) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.UnifiedSkeleton, { className: "h-20 rounded-lg" }, j)) })
|
|
21520
21520
|
] }, idx)) })
|
|
21521
21521
|
]
|
|
21522
21522
|
}
|
|
@@ -21527,14 +21527,14 @@ function CategoryVendorSelectorSkeleton({ subcategories = 3, className }) {
|
|
|
21527
21527
|
|
|
21528
21528
|
function WizardLayoutSkeleton({ steps = 6, className }) {
|
|
21529
21529
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "space-y-6", className), role: "status", "aria-label": "Loading wizard layout", children: [
|
|
21530
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap items-center gap-2", children: Array.from({ length: steps }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21530
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap items-center gap-2", children: Array.from({ length: steps }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.UnifiedSkeleton, { className: "h-6 w-24 rounded" }, i)) }),
|
|
21531
21531
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "max-w-2xl space-y-2", children: [
|
|
21532
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21533
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21532
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Heading, { className: "w-2/3" }),
|
|
21533
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-1/2" })
|
|
21534
21534
|
] }),
|
|
21535
21535
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mt-10 flex justify-between", children: [
|
|
21536
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21537
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21536
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.UnifiedSkeleton, { className: "h-10 w-24 rounded" }),
|
|
21537
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.UnifiedSkeleton, { className: "h-10 w-32 rounded" })
|
|
21538
21538
|
] })
|
|
21539
21539
|
] });
|
|
21540
21540
|
}
|
|
@@ -21926,28 +21926,28 @@ function OrganizationCardSkeleton({
|
|
|
21926
21926
|
}
|
|
21927
21927
|
),
|
|
21928
21928
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center space-y-1 py-2", children: [
|
|
21929
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21930
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21929
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Subheading, { className: "w-3/4" }),
|
|
21930
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "w-1/2" })
|
|
21931
21931
|
] })
|
|
21932
21932
|
] }),
|
|
21933
21933
|
showDescription && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-full items-center overflow-hidden", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "w-full space-y-1", children: [
|
|
21934
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21935
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21934
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-full" }),
|
|
21935
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Body, { className: "w-2/3" })
|
|
21936
21936
|
] }) }),
|
|
21937
21937
|
showFooter && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center justify-between gap-2", children: [
|
|
21938
21938
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-shrink items-center gap-3 content-md:gap-4", children: [
|
|
21939
21939
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-shrink-0 items-center gap-1", children: [
|
|
21940
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21941
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21940
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.MediaSkeleton.Icon, { size: "sm", className: "h-5 w-5" }),
|
|
21941
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "w-8" })
|
|
21942
21942
|
] }),
|
|
21943
21943
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-shrink-0 items-center gap-1", children: [
|
|
21944
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21945
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21944
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.MediaSkeleton.Icon, { size: "sm", className: "h-5 w-5" }),
|
|
21945
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "w-10" })
|
|
21946
21946
|
] })
|
|
21947
21947
|
] }),
|
|
21948
21948
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-shrink-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1.5 rounded border border-ods-border bg-ods-bg px-2.5 py-1.5", children: [
|
|
21949
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-sm bg-ods-border", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21950
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21949
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-sm bg-ods-border", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.MediaSkeleton.Icon, { size: "sm", className: "h-2.5 w-2.5" }) }),
|
|
21950
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.TextSkeleton.Caption, { className: "w-16" })
|
|
21951
21951
|
] }) })
|
|
21952
21952
|
] })
|
|
21953
21953
|
] })
|
|
@@ -22024,16 +22024,16 @@ function DeviceCardSkeletonGrid({ count = 12, className }) {
|
|
|
22024
22024
|
|
|
22025
22025
|
function PushButtonSelectorSkeleton({ count = 3, hasTitle }) {
|
|
22026
22026
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-3", role: "status", "aria-label": "Loading options", children: [
|
|
22027
|
-
hasTitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22027
|
+
hasTitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.UnifiedSkeleton, { className: "h-5 w-20", "aria-label": "Loading title" }),
|
|
22028
22028
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-3", children: Array.from({ length: count }, (_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rounded-lg border border-ods-border bg-ods-bg p-4", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between gap-4", children: [
|
|
22029
22029
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
22030
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22030
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.UnifiedSkeleton, { className: "h-8 w-8", "aria-label": "Loading icon" }),
|
|
22031
22031
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
22032
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22033
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22032
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.UnifiedSkeleton, { variant: "text", className: "mb-2 h-4 w-24", "aria-label": "Loading name" }),
|
|
22033
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.UnifiedSkeleton, { variant: "text", className: "h-4 w-36", "aria-label": "Loading description" })
|
|
22034
22034
|
] })
|
|
22035
22035
|
] }),
|
|
22036
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22036
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.UnifiedSkeleton, { className: "h-6 w-6", "aria-label": "Loading selection state" })
|
|
22037
22037
|
] }) }, i)) })
|
|
22038
22038
|
] });
|
|
22039
22039
|
}
|
|
@@ -22285,14 +22285,14 @@ var MODEL_TOKEN_RATES_COPY = {
|
|
|
22285
22285
|
empty: "No token rates are in effect right now."
|
|
22286
22286
|
};
|
|
22287
22287
|
function providerMark(providerType, stated, className) {
|
|
22288
|
-
const Mark =
|
|
22288
|
+
const Mark = _chunkKTPR66EEcjs.findIcon.call(void 0, _chunkPS6T65KAcjs.aiProvider.call(void 0, providerType, { icon: stated }).icon);
|
|
22289
22289
|
return Mark ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Mark, { className }) : void 0;
|
|
22290
22290
|
}
|
|
22291
22291
|
var PAD_X = "px-[var(--spacing-system-s)]";
|
|
22292
22292
|
var ROW = "flex items-center gap-[var(--spacing-system-s)]";
|
|
22293
22293
|
var NUMBER_CELL = "w-16 shrink-0 whitespace-nowrap text-right tabular-nums";
|
|
22294
22294
|
function useProviderGroup(rates) {
|
|
22295
|
-
const groups =
|
|
22295
|
+
const groups = _chunkPS6T65KAcjs.groupTokenRatesByProvider.call(void 0, rates);
|
|
22296
22296
|
const [picked, setPicked] = _react.useState.call(void 0, null);
|
|
22297
22297
|
return { groups, group: _nullishCoalesce(groups.find((candidate) => candidate.providerType === picked), () => ( groups[0])), setPicked };
|
|
22298
22298
|
}
|
|
@@ -22303,7 +22303,7 @@ function ProviderTabs({
|
|
|
22303
22303
|
className
|
|
22304
22304
|
}) {
|
|
22305
22305
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22306
|
-
|
|
22306
|
+
_chunk32Q7K5OPcjs.TabSelector,
|
|
22307
22307
|
{
|
|
22308
22308
|
variant: "secondary",
|
|
22309
22309
|
scrollable: true,
|
|
@@ -22311,7 +22311,7 @@ function ProviderTabs({
|
|
|
22311
22311
|
onValueChange,
|
|
22312
22312
|
items: groups.map((candidate) => ({
|
|
22313
22313
|
id: candidate.providerType,
|
|
22314
|
-
label:
|
|
22314
|
+
label: _chunkPS6T65KAcjs.tokenRateProviderLabel.call(void 0, candidate.providerType, _optionalChain([candidate, 'access', _432 => _432.rates, 'access', _433 => _433[0], 'optionalAccess', _434 => _434.providerLabel])),
|
|
22315
22315
|
icon: providerMark(candidate.providerType, _optionalChain([candidate, 'access', _435 => _435.rates, 'access', _436 => _436[0], 'optionalAccess', _437 => _437.providerIcon]), "size-full")
|
|
22316
22316
|
})),
|
|
22317
22317
|
className
|
|
@@ -22412,8 +22412,8 @@ function ModelTokenRatesTable({ rates }) {
|
|
|
22412
22412
|
className: _chunk3ATAYP36cjs.cn.call(void 0, ROW, PAD_X, "py-[var(--spacing-system-xxs)] text-ods-text-primary text-h6"),
|
|
22413
22413
|
children: [
|
|
22414
22414
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "rowheader", className: "min-w-0 flex-1 truncate", children: rate.displayName || rate.modelName }),
|
|
22415
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children:
|
|
22416
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children:
|
|
22415
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunkPS6T65KAcjs.formatTokenRate.call(void 0, rate.inputTokenRate) }),
|
|
22416
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunkPS6T65KAcjs.formatTokenRate.call(void 0, rate.outputTokenRate) })
|
|
22417
22417
|
]
|
|
22418
22418
|
},
|
|
22419
22419
|
rate.modelName
|
|
@@ -22485,7 +22485,7 @@ function modelOption(rate) {
|
|
|
22485
22485
|
return {
|
|
22486
22486
|
label: rate.displayName || rate.modelName,
|
|
22487
22487
|
value: rate.modelName,
|
|
22488
|
-
description:
|
|
22488
|
+
description: _chunkPS6T65KAcjs.tokenRateProviderLabel.call(void 0, rate.providerType, rate.providerLabel),
|
|
22489
22489
|
icon: providerMark(rate.providerType, rate.providerIcon, "size-full text-ods-text-secondary")
|
|
22490
22490
|
};
|
|
22491
22491
|
}
|
|
@@ -22539,9 +22539,9 @@ function ModelTokenExchange({
|
|
|
22539
22539
|
const [chosen, setChosen] = _react.useState.call(void 0, null);
|
|
22540
22540
|
const balance = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(chosen, () => ( defaultAmount)), () => ( _optionalChain([tokenPrice, 'optionalAccess', _438 => _438.tokens]))), () => ( MODEL_TOKEN_EXCHANGE_BALANCE));
|
|
22541
22541
|
const max = Math.max(amountRange.max, balance, ...presets.map((preset) => preset.tokens));
|
|
22542
|
-
const tokens =
|
|
22543
|
-
const cost =
|
|
22544
|
-
const balancePrice = cost === null ? null :
|
|
22542
|
+
const tokens = _chunkPS6T65KAcjs.formatTokenAmount.call(void 0, balance);
|
|
22543
|
+
const cost = _chunkPS6T65KAcjs.tokenCost.call(void 0, balance, tokenPrice);
|
|
22544
|
+
const balancePrice = cost === null ? null : _chunkABLUMGCIcjs.formatPrice.call(void 0, cost);
|
|
22545
22545
|
const model = rate ? rate.displayName || rate.modelName : "";
|
|
22546
22546
|
const options = models.map(modelOption);
|
|
22547
22547
|
if (rate && !models.some((candidate) => candidate.modelName === rate.modelName)) options.unshift(modelOption(rate));
|
|
@@ -22582,7 +22582,7 @@ function ModelTokenExchange({
|
|
|
22582
22582
|
variant: preset.tokens === balance ? "accent" : "outline",
|
|
22583
22583
|
size: "small",
|
|
22584
22584
|
onClick: () => setChosen(preset.tokens),
|
|
22585
|
-
children: copy.buy.preset(
|
|
22585
|
+
children: copy.buy.preset(_chunkPS6T65KAcjs.formatTokenAmount.call(void 0, preset.tokens), preset.label)
|
|
22586
22586
|
},
|
|
22587
22587
|
preset.label
|
|
22588
22588
|
)) })
|
|
@@ -22601,7 +22601,7 @@ function ModelTokenExchange({
|
|
|
22601
22601
|
const stated = _nullishCoalesce(models.find((option) => option.providerType === providerType), () => ( (_optionalChain([rate, 'optionalAccess', _439 => _439.providerType]) === providerType ? rate : null)));
|
|
22602
22602
|
return {
|
|
22603
22603
|
id: providerType,
|
|
22604
|
-
name:
|
|
22604
|
+
name: _chunkPS6T65KAcjs.tokenRateProviderLabel.call(void 0, providerType, _optionalChain([stated, 'optionalAccess', _440 => _440.providerLabel])),
|
|
22605
22605
|
icon: providerMark(providerType, _optionalChain([stated, 'optionalAccess', _441 => _441.providerIcon]), "size-8 text-ods-text-secondary")
|
|
22606
22606
|
};
|
|
22607
22607
|
}),
|
|
@@ -22613,7 +22613,7 @@ function ModelTokenExchange({
|
|
|
22613
22613
|
}
|
|
22614
22614
|
),
|
|
22615
22615
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22616
|
-
|
|
22616
|
+
_chunkU2O5YQRPcjs.Autocomplete,
|
|
22617
22617
|
{
|
|
22618
22618
|
label: copy.use.model,
|
|
22619
22619
|
value: _nullishCoalesce(_optionalChain([rate, 'optionalAccess', _443 => _443.modelName]), () => ( null)),
|
|
@@ -22639,7 +22639,7 @@ function ModelTokenExchange({
|
|
|
22639
22639
|
{
|
|
22640
22640
|
size: "plain",
|
|
22641
22641
|
loading,
|
|
22642
|
-
figure:
|
|
22642
|
+
figure: _chunkPS6T65KAcjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _446 => _446.inputTokenRate])),
|
|
22643
22643
|
words: copy.charge.input
|
|
22644
22644
|
}
|
|
22645
22645
|
),
|
|
@@ -22648,7 +22648,7 @@ function ModelTokenExchange({
|
|
|
22648
22648
|
{
|
|
22649
22649
|
size: "plain",
|
|
22650
22650
|
loading,
|
|
22651
|
-
figure:
|
|
22651
|
+
figure: _chunkPS6T65KAcjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _447 => _447.outputTokenRate])),
|
|
22652
22652
|
words: copy.charge.output
|
|
22653
22653
|
}
|
|
22654
22654
|
)
|
|
@@ -22660,9 +22660,9 @@ function ModelTokenExchange({
|
|
|
22660
22660
|
className: "mt-auto flex flex-col rounded-md border border-ods-accent bg-ods-bg p-[var(--spacing-system-mf)]",
|
|
22661
22661
|
children: [
|
|
22662
22662
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[2lh] text-ods-text-secondary text-h4", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Bar, { className: "w-full max-w-xs" }) : copy.charge.so(_nullishCoalesce(balancePrice, () => ( copy.buy.tokens(tokens))), model) }),
|
|
22663
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] whitespace-nowrap tabular-nums text-ods-text-primary text-h1", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Bar, { className: "w-40" }) :
|
|
22663
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] whitespace-nowrap tabular-nums text-ods-text-primary text-h1", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Bar, { className: "w-40" }) : _chunkPS6T65KAcjs.formatTokenAmount.call(void 0, _chunkPS6T65KAcjs.tokensForBalance.call(void 0, balance, rate.inputTokenRate)) }),
|
|
22664
22664
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-primary text-h3", children: copy.charge.read }),
|
|
22665
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-secondary text-h4", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Bar, { className: "w-48" }) : copy.charge.orWritten(
|
|
22665
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-secondary text-h4", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Bar, { className: "w-48" }) : copy.charge.orWritten(_chunkPS6T65KAcjs.formatTokenAmount.call(void 0, _chunkPS6T65KAcjs.tokensForBalance.call(void 0, balance, rate.outputTokenRate))) })
|
|
22666
22666
|
]
|
|
22667
22667
|
}
|
|
22668
22668
|
)
|
|
@@ -23052,7 +23052,7 @@ function PlatformFilterComponent({
|
|
|
23052
23052
|
variant: selectedPlatform === platform.value ? "accent" : "outline",
|
|
23053
23053
|
size,
|
|
23054
23054
|
onClick: () => onPlatformChange(platform.value),
|
|
23055
|
-
leftIcon: showIcons ?
|
|
23055
|
+
leftIcon: showIcons ? _chunkW2RM764Dcjs.getSmallPlatformIcon.call(void 0, platform.value) : void 0,
|
|
23056
23056
|
className: "text-h3",
|
|
23057
23057
|
children: platform.label
|
|
23058
23058
|
},
|
|
@@ -23133,7 +23133,7 @@ var SelectButton = _react2.default.forwardRef(
|
|
|
23133
23133
|
}
|
|
23134
23134
|
)
|
|
23135
23135
|
] }),
|
|
23136
|
-
tag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23136
|
+
tag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABLUMGCIcjs.Tag, { variant: tagVariant, className: "shrink-0", label: tag }),
|
|
23137
23137
|
selected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHFNBMV5Mcjs.CheckCircleIcon, { className: "size-4 shrink-0 text-ods-accent content-md:size-6" })
|
|
23138
23138
|
]
|
|
23139
23139
|
}
|
|
@@ -23160,14 +23160,14 @@ var ConfidenceBadge = ({
|
|
|
23160
23160
|
size = "sm",
|
|
23161
23161
|
className
|
|
23162
23162
|
}) => {
|
|
23163
|
-
const level =
|
|
23163
|
+
const level = _chunkPS6T65KAcjs.getConfidenceLevel.call(void 0, confidence);
|
|
23164
23164
|
if (level === "none") {
|
|
23165
23165
|
return null;
|
|
23166
23166
|
}
|
|
23167
|
-
const label =
|
|
23168
|
-
const borderClass =
|
|
23169
|
-
const textClass =
|
|
23170
|
-
const bgClass =
|
|
23167
|
+
const label = _chunkPS6T65KAcjs.getConfidenceLabel.call(void 0, confidence);
|
|
23168
|
+
const borderClass = _chunkPS6T65KAcjs.getConfidenceBorderClass.call(void 0, confidence);
|
|
23169
|
+
const textClass = _chunkPS6T65KAcjs.getConfidenceTextClass.call(void 0, confidence);
|
|
23170
|
+
const bgClass = _chunkPS6T65KAcjs.getConfidenceBgClass.call(void 0, confidence);
|
|
23171
23171
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23172
23172
|
"span",
|
|
23173
23173
|
{
|
|
@@ -23218,9 +23218,9 @@ function SEOEditorPreview({
|
|
|
23218
23218
|
const [isUploading, setIsUploading] = _react.useState.call(void 0, false);
|
|
23219
23219
|
const [fileInputRef, setFileInputRef] = _react.useState.call(void 0, null);
|
|
23220
23220
|
const seoTitleLength = (seoTitle || "").length;
|
|
23221
|
-
const seoTitleTooLong = seoTitleLength >
|
|
23221
|
+
const seoTitleTooLong = seoTitleLength > _chunkPS6T65KAcjs.SEO_TITLE_MAX_LENGTH;
|
|
23222
23222
|
const seoDescriptionLength = (seoDescription || "").length;
|
|
23223
|
-
const seoDescriptionTooLong = seoDescriptionLength >
|
|
23223
|
+
const seoDescriptionTooLong = seoDescriptionLength > _chunkPS6T65KAcjs.SEO_DESCRIPTION_MAX_LENGTH;
|
|
23224
23224
|
const displayTitle = seoTitle.trim() || title || "Untitled";
|
|
23225
23225
|
const displayDescription = seoDescription.trim() || summary || "No description";
|
|
23226
23226
|
const hasOgImage = ogImageUrl.trim();
|
|
@@ -23245,10 +23245,10 @@ function SEOEditorPreview({
|
|
|
23245
23245
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
23246
23246
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
23247
23247
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23248
|
-
|
|
23248
|
+
_chunkPS6T65KAcjs.Field,
|
|
23249
23249
|
{
|
|
23250
23250
|
label: "SEO Title",
|
|
23251
|
-
error: seoTitleTooLong ? `Too long: search engines may truncate this title (keep it under ${
|
|
23251
|
+
error: seoTitleTooLong ? `Too long: search engines may truncate this title (keep it under ${_chunkPS6T65KAcjs.SEO_TITLE_MAX_LENGTH})` : null,
|
|
23252
23252
|
labelExtras: aiConfidenceSeoTitle !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
23253
23253
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
|
|
23254
23254
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ConfidenceBadge, { confidence: aiConfidenceSeoTitle, showLabel: true, showPercentage: true, size: "sm" })
|
|
@@ -23263,7 +23263,7 @@ function SEOEditorPreview({
|
|
|
23263
23263
|
children: [
|
|
23264
23264
|
seoTitleLength,
|
|
23265
23265
|
"/",
|
|
23266
|
-
|
|
23266
|
+
_chunkPS6T65KAcjs.SEO_TITLE_MAX_LENGTH
|
|
23267
23267
|
]
|
|
23268
23268
|
}
|
|
23269
23269
|
),
|
|
@@ -23274,7 +23274,7 @@ function SEOEditorPreview({
|
|
|
23274
23274
|
value: seoTitle || "",
|
|
23275
23275
|
onChange: (e) => onSeoTitleChange(e.target.value),
|
|
23276
23276
|
disabled,
|
|
23277
|
-
maxLength:
|
|
23277
|
+
maxLength: _chunkPS6T65KAcjs.SEO_TITLE_MAX_LENGTH,
|
|
23278
23278
|
invalid: seoTitleTooLong,
|
|
23279
23279
|
placeholder: "Enter SEO meta title...",
|
|
23280
23280
|
className: "border-ods-border bg-ods-bg text-ods-text-primary"
|
|
@@ -23285,7 +23285,7 @@ function SEOEditorPreview({
|
|
|
23285
23285
|
!seoTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-accent text-h6", children: "Auto-populated from title" })
|
|
23286
23286
|
] }),
|
|
23287
23287
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23288
|
-
|
|
23288
|
+
_chunkPS6T65KAcjs.Field,
|
|
23289
23289
|
{
|
|
23290
23290
|
label: "SEO Keywords",
|
|
23291
23291
|
labelExtras: aiConfidenceSeoKeywords !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -23317,10 +23317,10 @@ function SEOEditorPreview({
|
|
|
23317
23317
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
23318
23318
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
23319
23319
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23320
|
-
|
|
23320
|
+
_chunkPS6T65KAcjs.Field,
|
|
23321
23321
|
{
|
|
23322
23322
|
label: "SEO Description",
|
|
23323
|
-
error: seoDescriptionTooLong ? `Too long: search engines may truncate this description (keep it under ${
|
|
23323
|
+
error: seoDescriptionTooLong ? `Too long: search engines may truncate this description (keep it under ${_chunkPS6T65KAcjs.SEO_DESCRIPTION_MAX_LENGTH})` : null,
|
|
23324
23324
|
labelExtras: aiConfidenceSeoDescription !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
23325
23325
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
|
|
23326
23326
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -23343,7 +23343,7 @@ function SEOEditorPreview({
|
|
|
23343
23343
|
children: [
|
|
23344
23344
|
seoDescriptionLength,
|
|
23345
23345
|
"/",
|
|
23346
|
-
|
|
23346
|
+
_chunkPS6T65KAcjs.SEO_DESCRIPTION_MAX_LENGTH
|
|
23347
23347
|
]
|
|
23348
23348
|
}
|
|
23349
23349
|
),
|
|
@@ -23354,7 +23354,7 @@ function SEOEditorPreview({
|
|
|
23354
23354
|
value: seoDescription || "",
|
|
23355
23355
|
onChange: (e) => onSeoDescriptionChange(e.target.value),
|
|
23356
23356
|
disabled,
|
|
23357
|
-
maxLength:
|
|
23357
|
+
maxLength: _chunkPS6T65KAcjs.SEO_DESCRIPTION_MAX_LENGTH,
|
|
23358
23358
|
invalid: seoDescriptionTooLong,
|
|
23359
23359
|
placeholder: "Enter SEO meta description...",
|
|
23360
23360
|
className: _chunk3ATAYP36cjs.cn.call(void 0, "resize-none border-ods-border bg-ods-bg text-ods-text-primary", SEO_MEDIA_BOX_HEIGHT)
|
|
@@ -23423,7 +23423,7 @@ function SEOEditorPreview({
|
|
|
23423
23423
|
{
|
|
23424
23424
|
ref: setFileInputRef,
|
|
23425
23425
|
type: "file",
|
|
23426
|
-
accept:
|
|
23426
|
+
accept: _chunk5MH6BRPYcjs.IMAGE_FILE_ACCEPT,
|
|
23427
23427
|
onChange: handleImageUpload,
|
|
23428
23428
|
className: "hidden",
|
|
23429
23429
|
disabled: disabled || isUploading
|
|
@@ -23504,10 +23504,10 @@ var SOCIAL_ICONS = {
|
|
|
23504
23504
|
};
|
|
23505
23505
|
function socialIcon(platform) {
|
|
23506
23506
|
if (!Object.prototype.hasOwnProperty.call(SOCIAL_ICONS, platform)) return void 0;
|
|
23507
|
-
return _nullishCoalesce(
|
|
23507
|
+
return _nullishCoalesce(_chunkKTPR66EEcjs.iconOf.call(void 0, SOCIAL_ICONS[platform]), () => ( void 0));
|
|
23508
23508
|
}
|
|
23509
23509
|
function renderSocialIcon(platform) {
|
|
23510
|
-
const key = _nullishCoalesce(
|
|
23510
|
+
const key = _nullishCoalesce(_chunkPS6T65KAcjs.normalizeSocialPlatform.call(void 0, platform), () => ( "website"));
|
|
23511
23511
|
const icon = _nullishCoalesce(socialIcon(key), () => ( socialIcon("website")));
|
|
23512
23512
|
return icon ? _react.createElement.call(void 0, icon, { className: "h-5 w-5" }) : null;
|
|
23513
23513
|
}
|
|
@@ -23590,7 +23590,7 @@ function SocialLinksManager({
|
|
|
23590
23590
|
};
|
|
23591
23591
|
const getIcon = (link, platform) => {
|
|
23592
23592
|
const iconKey = _optionalChain([platform, 'optionalAccess', _457 => _457.icon_name]) || link.platform;
|
|
23593
|
-
const key =
|
|
23593
|
+
const key = _chunkPS6T65KAcjs.normalizeSocialPlatform.call(void 0, iconKey);
|
|
23594
23594
|
if (!key) return null;
|
|
23595
23595
|
const icon = socialIcon(key);
|
|
23596
23596
|
return icon ? _react.createElement.call(void 0, icon, { className: "h-5 w-5 text-ods-text-secondary" }) : null;
|
|
@@ -23606,9 +23606,9 @@ function SocialLinksManager({
|
|
|
23606
23606
|
children: [
|
|
23607
23607
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-8 w-8 items-center justify-center", children: Icon }),
|
|
23608
23608
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid flex-1 grid-cols-2 gap-3", children: [
|
|
23609
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23610
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23611
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23609
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkU2O5YQRPcjs.Select, { value: link.platform, onValueChange: (value) => updateLink(index, "platform", value), children: [
|
|
23610
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectValue, {}) }),
|
|
23611
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectContent, { children: platforms.map((p) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: p.name, children: p.display_name }, p.name)) })
|
|
23612
23612
|
] }) }),
|
|
23613
23613
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23614
23614
|
_chunkHTRILBJDcjs.Input,
|
|
@@ -23626,15 +23626,15 @@ function SocialLinksManager({
|
|
|
23626
23626
|
)
|
|
23627
23627
|
] }),
|
|
23628
23628
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23629
|
-
|
|
23629
|
+
_chunkU2O5YQRPcjs.Select,
|
|
23630
23630
|
{
|
|
23631
23631
|
value: _nullishCoalesce(link.visibility, () => ( "external")),
|
|
23632
23632
|
onValueChange: (value) => updateLink(index, "visibility", value),
|
|
23633
23633
|
children: [
|
|
23634
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23635
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23636
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23637
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23634
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectTrigger, { className: "w-[120px] shrink-0", "aria-label": "Social link visibility", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectValue, {}) }),
|
|
23635
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkU2O5YQRPcjs.SelectContent, { children: [
|
|
23636
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: "external", children: "Public" }),
|
|
23637
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: "internal", children: "Internal" })
|
|
23638
23638
|
] })
|
|
23639
23639
|
]
|
|
23640
23640
|
}
|
|
@@ -23726,7 +23726,7 @@ var StartWithOpenFrameButton = _react.forwardRef.call(void 0,
|
|
|
23726
23726
|
className: _chunk3ATAYP36cjs.cn.call(void 0, modeClassName, className),
|
|
23727
23727
|
style: customStyle,
|
|
23728
23728
|
leftIcon: !loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHJZLKYOBcjs.OpenframeLogoIcon, { secondaryColor: iconLowerPath, className: "h-5 w-5", color: iconUpperPath }) : void 0,
|
|
23729
|
-
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23729
|
+
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5MH6BRPYcjs.StatusBadge, { text: "Beta", variant: "button", colorScheme: "yellow" }),
|
|
23730
23730
|
children
|
|
23731
23731
|
}
|
|
23732
23732
|
);
|
|
@@ -23996,11 +23996,11 @@ function WarningBlock({ title, icon = DEFAULT_ICON, children, className }) {
|
|
|
23996
23996
|
|
|
23997
23997
|
function VideoBitesDisplay({
|
|
23998
23998
|
bites,
|
|
23999
|
-
title =
|
|
23999
|
+
title = _chunk5MH6BRPYcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
24000
24000
|
filterPublished = true,
|
|
24001
24001
|
showTitle = true
|
|
24002
24002
|
}) {
|
|
24003
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24003
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk32Q7K5OPcjs.VideoBitesStrip, { bites, title, filterPublished, showTitle });
|
|
24004
24004
|
}
|
|
24005
24005
|
|
|
24006
24006
|
// src/components/features/walkthrough-video.tsx
|
|
@@ -24028,7 +24028,7 @@ function WalkthroughVideo({
|
|
|
24028
24028
|
onOpenChange,
|
|
24029
24029
|
defaultOpen,
|
|
24030
24030
|
defaultOpenPaused,
|
|
24031
|
-
deepLinkParam =
|
|
24031
|
+
deepLinkParam = _chunkPS6T65KAcjs.WALKTHROUGH_OPEN_QUERY_PARAM,
|
|
24032
24032
|
autoPlayCard = false,
|
|
24033
24033
|
label = "Play Demo Video",
|
|
24034
24034
|
placement,
|
|
@@ -24044,7 +24044,7 @@ function WalkthroughVideo({
|
|
|
24044
24044
|
}) {
|
|
24045
24045
|
const inline = placement === "inline";
|
|
24046
24046
|
const dismissEnabled = dismissal !== false;
|
|
24047
|
-
const storageKey = dismissEnabled && dismissal.storageKey ||
|
|
24047
|
+
const storageKey = dismissEnabled && dismissal.storageKey || _chunkPS6T65KAcjs.WALKTHROUGH_VIDEO_DISMISS_KEY;
|
|
24048
24048
|
const dismissalId = _optionalChain([video, 'optionalAccess', _463 => _463.id]) != null ? String(video.id) : "dismissed";
|
|
24049
24049
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
24050
24050
|
const [dismissed, setDismissed] = _react.useState.call(void 0, false);
|
|
@@ -24056,7 +24056,7 @@ function WalkthroughVideo({
|
|
|
24056
24056
|
let delayElapsed = false;
|
|
24057
24057
|
let interacted = inline;
|
|
24058
24058
|
const reveal = () => {
|
|
24059
|
-
if (dismissEnabled &&
|
|
24059
|
+
if (dismissEnabled && _chunkPS6T65KAcjs.isWalkthroughDismissed.call(void 0, storageKey, dismissalId)) {
|
|
24060
24060
|
setDismissed(true);
|
|
24061
24061
|
return;
|
|
24062
24062
|
}
|
|
@@ -24093,7 +24093,7 @@ function WalkthroughVideo({
|
|
|
24093
24093
|
if (idleHandle !== null && typeof cic === "function") cic(idleHandle);
|
|
24094
24094
|
};
|
|
24095
24095
|
}, [appearDelayMs, dismissEnabled, storageKey, dismissalId, hasVideo, videoId, inline]);
|
|
24096
|
-
const hydrated =
|
|
24096
|
+
const hydrated = _chunk32Q7K5OPcjs.useIsHydrated.call(void 0, );
|
|
24097
24097
|
const previewSuppressed = _react.useMemo.call(void 0, () => {
|
|
24098
24098
|
if (!hydrated) return false;
|
|
24099
24099
|
try {
|
|
@@ -24343,7 +24343,7 @@ function WalkthroughVideo({
|
|
|
24343
24343
|
(e) => {
|
|
24344
24344
|
e.stopPropagation();
|
|
24345
24345
|
pausePreviewNow();
|
|
24346
|
-
if (dismissEnabled)
|
|
24346
|
+
if (dismissEnabled) _chunkPS6T65KAcjs.dismissWalkthrough.call(void 0, storageKey, dismissalId);
|
|
24347
24347
|
setDismissed(true);
|
|
24348
24348
|
},
|
|
24349
24349
|
[dismissEnabled, storageKey, dismissalId, pausePreviewNow]
|
|
@@ -24492,7 +24492,7 @@ function WalkthroughVideo({
|
|
|
24492
24492
|
},
|
|
24493
24493
|
children: [
|
|
24494
24494
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pointer-events-none absolute inset-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24495
|
-
|
|
24495
|
+
_chunk5MH6BRPYcjs.VideoHoverPreviewSurface,
|
|
24496
24496
|
{
|
|
24497
24497
|
url: video.mainVideoUrl || "",
|
|
24498
24498
|
posterUrl: video.posterUrl,
|
|
@@ -24516,7 +24516,7 @@ function WalkthroughVideo({
|
|
|
24516
24516
|
`card-${embedUrlKey}`
|
|
24517
24517
|
) }),
|
|
24518
24518
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24519
|
-
|
|
24519
|
+
_chunk32Q7K5OPcjs.CardHitLayer,
|
|
24520
24520
|
{
|
|
24521
24521
|
label: video.title ? `${label}: ${video.title}` : label,
|
|
24522
24522
|
onPointerDown: pausePreviewNow,
|
|
@@ -24525,7 +24525,7 @@ function WalkthroughVideo({
|
|
|
24525
24525
|
}
|
|
24526
24526
|
),
|
|
24527
24527
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "pointer-events-none absolute bottom-[var(--spacing-system-xsf)] left-[var(--spacing-system-xsf)] z-20 flex max-w-[calc(100%-2*var(--spacing-system-xsf))] items-center gap-[var(--spacing-system-xsf)] rounded-full bg-ods-overlay py-[var(--spacing-system-xxs)] pl-[var(--spacing-system-xxs)] pr-[var(--spacing-system-sf)] text-ods-text-primary text-h6", children: [
|
|
24528
|
-
presenterAvatarSrc ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24528
|
+
presenterAvatarSrc ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABLUMGCIcjs.SquareAvatar, { src: presenterAvatarSrc, alt: "", sizePx: 20, variant: "round", className: "shrink-0 border-0" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63N4FN5Vcjs.VideoPlayBadge, { size: "sm", className: "h-5 w-5 shrink-0" }),
|
|
24529
24529
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: summaryTitle || label })
|
|
24530
24530
|
] }),
|
|
24531
24531
|
showBigUnmute && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -24631,7 +24631,7 @@ function WalkthroughVideo({
|
|
|
24631
24631
|
children: [
|
|
24632
24632
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogPrimitive2.Title, { className: "sr-only", children: summaryTitle || "Walkthrough video" }),
|
|
24633
24633
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24634
|
-
|
|
24634
|
+
_chunk5MH6BRPYcjs.Video,
|
|
24635
24635
|
{
|
|
24636
24636
|
kind: video.youtubeUrl ? "youtube" : "file",
|
|
24637
24637
|
url: video.youtubeUrl || video.mainVideoUrl,
|
|
@@ -24682,7 +24682,7 @@ function InlineWalkthroughVideo(props) {
|
|
|
24682
24682
|
var _reactquery = require('@tanstack/react-query');
|
|
24683
24683
|
function useWalkthroughVideo(opts) {
|
|
24684
24684
|
const { endpoint, initialData, enabled = true, transformCaptionsUrl } = opts;
|
|
24685
|
-
const captions =
|
|
24685
|
+
const captions = _chunk32Q7K5OPcjs.useCaptions.call(void 0, );
|
|
24686
24686
|
const query = _reactquery.useQuery.call(void 0, {
|
|
24687
24687
|
queryKey: ["walkthrough-video", endpoint],
|
|
24688
24688
|
enabled,
|
|
@@ -24880,7 +24880,7 @@ function VideoSourceSelector({
|
|
|
24880
24880
|
}
|
|
24881
24881
|
function DefaultVideoPreview({ videoUrl, onDelete, disabled }) {
|
|
24882
24882
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative overflow-hidden rounded-lg border border-ods-border", children: [
|
|
24883
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video max-h-[300px] w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24883
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video max-h-[300px] w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5MH6BRPYcjs.Video, { kind: "file", url: videoUrl }) }),
|
|
24884
24884
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24885
24885
|
"button",
|
|
24886
24886
|
{
|
|
@@ -25334,19 +25334,19 @@ function HighlightVideoSection({
|
|
|
25334
25334
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-3 rounded-lg border border-ods-border bg-ods-card p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-4", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1", children: [
|
|
25335
25335
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK6VWTUCHcjs.Label, { children: "Target Duration" }),
|
|
25336
25336
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25337
|
-
|
|
25337
|
+
_chunkU2O5YQRPcjs.Select,
|
|
25338
25338
|
{
|
|
25339
25339
|
value: targetDurationSeconds.toString(),
|
|
25340
25340
|
onValueChange: (value) => onTargetDurationChange(parseInt(value)),
|
|
25341
25341
|
disabled,
|
|
25342
25342
|
children: [
|
|
25343
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25344
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25345
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25346
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25347
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25348
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25349
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25343
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectTrigger, { className: "mt-1 bg-ods-bg-surface", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectValue, {}) }),
|
|
25344
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkU2O5YQRPcjs.SelectContent, { className: "bg-ods-card", children: [
|
|
25345
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: "60", children: "1 minute" }),
|
|
25346
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: "120", children: "2 minutes" }),
|
|
25347
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: "180", children: "3 minutes (Recommended)" }),
|
|
25348
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: "240", children: "4 minutes" }),
|
|
25349
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: "300", children: "5 minutes" })
|
|
25350
25350
|
] })
|
|
25351
25351
|
]
|
|
25352
25352
|
}
|
|
@@ -25404,7 +25404,7 @@ function HighlightVideoSection({
|
|
|
25404
25404
|
// Default simple preview — the <Video> SSOT (MuxPlayer) plays
|
|
25405
25405
|
// MP4 and Mux HLS alike; aspect-video box reserves the height.
|
|
25406
25406
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative overflow-hidden rounded-lg border border-ods-border bg-black", children: [
|
|
25407
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video max-h-[300px] w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25407
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video max-h-[300px] w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5MH6BRPYcjs.Video, { kind: "file", url: highlightVideoUrl, poster: highlightVideoThumbnail || void 0 }) }),
|
|
25408
25408
|
onDeleteHighlight && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25409
25409
|
"button",
|
|
25410
25410
|
{
|
|
@@ -25431,20 +25431,20 @@ function HighlightConfigSection({
|
|
|
25431
25431
|
disabled = false,
|
|
25432
25432
|
className = ""
|
|
25433
25433
|
}) {
|
|
25434
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `space-y-3 rounded-lg border border-ods-border bg-ods-card p-4 ${className}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25435
|
-
|
|
25434
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `space-y-3 rounded-lg border border-ods-border bg-ods-card p-4 ${className}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPS6T65KAcjs.Field, { label: "Target Duration", children: (f) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25435
|
+
_chunkU2O5YQRPcjs.Select,
|
|
25436
25436
|
{
|
|
25437
25437
|
value: targetDurationSeconds.toString(),
|
|
25438
25438
|
onValueChange: (value) => onTargetDurationChange(parseInt(value)),
|
|
25439
25439
|
disabled,
|
|
25440
25440
|
children: [
|
|
25441
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25442
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25443
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25444
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25445
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25446
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25447
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25441
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectTrigger, { id: f.id, className: "bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectValue, {}) }),
|
|
25442
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkU2O5YQRPcjs.SelectContent, { className: "bg-ods-card", children: [
|
|
25443
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: "60", children: "1 minute" }),
|
|
25444
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: "120", children: "2 minutes" }),
|
|
25445
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: "180", children: "3 minutes (Recommended)" }),
|
|
25446
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: "240", children: "4 minutes" }),
|
|
25447
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: "300", children: "5 minutes" })
|
|
25448
25448
|
] })
|
|
25449
25449
|
]
|
|
25450
25450
|
}
|
|
@@ -25532,7 +25532,7 @@ var AIStatusIndicator = ({
|
|
|
25532
25532
|
}) => {
|
|
25533
25533
|
const config = statusConfig[status];
|
|
25534
25534
|
const displayText = message || config.label;
|
|
25535
|
-
const confidenceLabel = showConfidence && confidence !== void 0 ? `${
|
|
25535
|
+
const confidenceLabel = showConfidence && confidence !== void 0 ? `${_chunkPS6T65KAcjs.getConfidenceLabel.call(void 0, confidence)} (${confidence}%)` : null;
|
|
25536
25536
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "inline-flex items-center gap-2 rounded-lg px-3 py-1.5", config.bgColor, className), children: [
|
|
25537
25537
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25538
25538
|
_chunkUNFCRSYIcjs.SparklesIcon,
|
|
@@ -25540,7 +25540,7 @@ var AIStatusIndicator = ({
|
|
|
25540
25540
|
size: 16,
|
|
25541
25541
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
25542
25542
|
status === "loading" && "animate-pulse",
|
|
25543
|
-
confidence !== void 0 && status === "success" ?
|
|
25543
|
+
confidence !== void 0 && status === "success" ? _chunkPS6T65KAcjs.getConfidenceTextClass.call(void 0, confidence) : config.color
|
|
25544
25544
|
)
|
|
25545
25545
|
}
|
|
25546
25546
|
),
|
|
@@ -25549,7 +25549,7 @@ var AIStatusIndicator = ({
|
|
|
25549
25549
|
{
|
|
25550
25550
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
25551
25551
|
"text-h6",
|
|
25552
|
-
confidence !== void 0 && status === "success" ?
|
|
25552
|
+
confidence !== void 0 && status === "success" ? _chunkPS6T65KAcjs.getConfidenceTextClass.call(void 0, confidence) : config.color
|
|
25553
25553
|
),
|
|
25554
25554
|
children: displayText
|
|
25555
25555
|
}
|
|
@@ -25559,8 +25559,8 @@ var AIStatusIndicator = ({
|
|
|
25559
25559
|
{
|
|
25560
25560
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
25561
25561
|
"rounded-full border px-2 py-0.5 text-h6",
|
|
25562
|
-
|
|
25563
|
-
|
|
25562
|
+
_chunkPS6T65KAcjs.getConfidenceBorderClass.call(void 0, confidence),
|
|
25563
|
+
_chunkPS6T65KAcjs.getConfidenceTextClass.call(void 0, confidence)
|
|
25564
25564
|
),
|
|
25565
25565
|
children: confidenceLabel
|
|
25566
25566
|
}
|
|
@@ -26125,7 +26125,7 @@ function ApprovalLevelView({
|
|
|
26125
26125
|
] });
|
|
26126
26126
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk3ATAYP36cjs.cn.call(void 0, "inline-flex shrink-0 items-center gap-[var(--spacing-system-xxs)]", className), children: [
|
|
26127
26127
|
name,
|
|
26128
|
-
showLabel ? icon : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26128
|
+
showLabel ? icon : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkURVIPSAJcjs.TouchFriendlyTooltip, { content: `${current.label}: ${current.hint}`, side: "top", children: icon })
|
|
26129
26129
|
] });
|
|
26130
26130
|
}
|
|
26131
26131
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex shrink-0 items-center gap-[var(--spacing-system-sf)]", className), children: [
|
|
@@ -26202,7 +26202,7 @@ var PolicyRow = ({ policy, categoryId, editMode, onPermissionChange }) => {
|
|
|
26202
26202
|
if (level) onPermissionChange(categoryId, policy.id, level);
|
|
26203
26203
|
};
|
|
26204
26204
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-[var(--spacing-system-m)] border-b border-ods-border bg-ods-bg px-[var(--spacing-system-m)] py-[var(--spacing-system-sf)] last:border-b-0 content-md:items-center", children: [
|
|
26205
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-md border border-ods-border bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26205
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-md border border-ods-border bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWI2OTGKCcjs.ToolIcon, { toolType: policy.toolName, size: 16 }) }),
|
|
26206
26206
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
26207
26207
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-primary text-h4", title: policy.name, children: policy.name }),
|
|
26208
26208
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "break-all text-ods-text-secondary text-h6", children: policy.commandPattern }),
|
|
@@ -26228,7 +26228,7 @@ var PolicyRow = ({ policy, categoryId, editMode, onPermissionChange }) => {
|
|
|
26228
26228
|
] });
|
|
26229
26229
|
};
|
|
26230
26230
|
var CategorySection = ({ category, editMode, isExpanded, bulkLevel, onToggle, onBulkLevelChange, onPolicyPermissionChange }) => {
|
|
26231
|
-
const { innerRef, containerStyle } =
|
|
26231
|
+
const { innerRef, containerStyle } = _chunkOWGLRE74cjs.useCollapsible.call(void 0, { expanded: isExpanded, durationMs: 300 });
|
|
26232
26232
|
const handleBulkChange = (level) => onBulkLevelChange(category.id, level);
|
|
26233
26233
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
26234
26234
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -26401,8 +26401,8 @@ function PoliciesTable({
|
|
|
26401
26401
|
accessorKey: "name",
|
|
26402
26402
|
header: "Name",
|
|
26403
26403
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-h-[60px] min-w-0 flex-col justify-center gap-1 py-2", children: [
|
|
26404
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26405
|
-
row.original.description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26404
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { children: row.original.name }),
|
|
26405
|
+
row.original.description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { variant: "h6", tone: "secondary", children: row.original.description })
|
|
26406
26406
|
] }),
|
|
26407
26407
|
meta: { width: "flex-1 min-w-0" }
|
|
26408
26408
|
},
|
|
@@ -26434,7 +26434,7 @@ function PoliciesTable({
|
|
|
26434
26434
|
cell: ({ row }) => {
|
|
26435
26435
|
const { status } = row.original;
|
|
26436
26436
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-start gap-1", children: [
|
|
26437
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26437
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABLUMGCIcjs.Tag, { className: "self-start", label: status.label, variant: status.variant }),
|
|
26438
26438
|
status.note && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `text-h6 ${NOTE_TONE_CLASS[status.note.tone]}`, children: status.note.text })
|
|
26439
26439
|
] });
|
|
26440
26440
|
},
|
|
@@ -26456,7 +26456,7 @@ function PoliciesTable({
|
|
|
26456
26456
|
cell: ({ row }) => row.original.href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26457
26457
|
_chunk2QMBXGMQcjs.Button,
|
|
26458
26458
|
{
|
|
26459
|
-
onClick:
|
|
26459
|
+
onClick: _chunkPS6T65KAcjs.openInNewTab.call(void 0, row.original.href),
|
|
26460
26460
|
variant: "outline",
|
|
26461
26461
|
size: "icon",
|
|
26462
26462
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
@@ -26557,7 +26557,7 @@ function PolicySummaryCards({ summary, isLoading = false, hasData = true, now })
|
|
|
26557
26557
|
DashboardInfoCard,
|
|
26558
26558
|
{
|
|
26559
26559
|
title: "Updated",
|
|
26560
|
-
value: hasData && summary.lastUpdatedAt ?
|
|
26560
|
+
value: hasData && summary.lastUpdatedAt ? _chunkOWGLRE74cjs.formatRelativeTimeFrom.call(void 0, summary.lastUpdatedAt, _nullishCoalesce(now, () => ( /* @__PURE__ */ new Date()))) : EMPTY_VALUE,
|
|
26561
26561
|
valueClassName: "!text-h3",
|
|
26562
26562
|
tooltip: "Policy compliance stats are updated hourly. View a policy's devices for real-time status."
|
|
26563
26563
|
}
|
|
@@ -26673,7 +26673,7 @@ function toValidInstant(iso) {
|
|
|
26673
26673
|
function formatLastRead(iso, now = /* @__PURE__ */ new Date()) {
|
|
26674
26674
|
const date = toValidInstant(iso);
|
|
26675
26675
|
if (!date) return TENANT_EMPTY_VALUE;
|
|
26676
|
-
return now.getTime() - date.getTime() < DAY_MS ?
|
|
26676
|
+
return now.getTime() - date.getTime() < DAY_MS ? _chunkOWGLRE74cjs.formatRelativeTimeFrom.call(void 0, date, now) : _chunk5TCIRWHLcjs.formatDate.call(void 0, date);
|
|
26677
26677
|
}
|
|
26678
26678
|
function usersCountLabel(count) {
|
|
26679
26679
|
if (count == null) return TENANT_EMPTY_VALUE;
|
|
@@ -26684,8 +26684,8 @@ function usersCountLabel(count) {
|
|
|
26684
26684
|
|
|
26685
26685
|
function TenantAccessCell({ accessState, lastReadAt: lastReadAt2, now }) {
|
|
26686
26686
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26687
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26688
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26687
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABLUMGCIcjs.Tag, { ...accessStateTag(accessState), className: "self-start" }),
|
|
26688
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { variant: "h6", tone: "secondary", children: `Last read: ${formatLastRead(lastReadAt2, now)}` })
|
|
26689
26689
|
] });
|
|
26690
26690
|
}
|
|
26691
26691
|
|
|
@@ -26696,9 +26696,9 @@ function TenantCell({ provider, name, domain }) {
|
|
|
26696
26696
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
26697
26697
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26698
26698
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Logo, { size: 24, role: "img", "aria-label": label, className: "shrink-0" }),
|
|
26699
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26699
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { children: name })
|
|
26700
26700
|
] }),
|
|
26701
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26701
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(domain, () => ( TENANT_EMPTY_VALUE)) })
|
|
26702
26702
|
] });
|
|
26703
26703
|
}
|
|
26704
26704
|
|
|
@@ -26707,10 +26707,10 @@ function TenantCell({ provider, name, domain }) {
|
|
|
26707
26707
|
function TenantCustomerCell({ name, imageUrl, userCount }) {
|
|
26708
26708
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
26709
26709
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26710
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26711
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26710
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABLUMGCIcjs.SquareAvatar, { src: _nullishCoalesce(imageUrl, () => ( void 0)), alt: name, fallback: name, size: "xs", variant: "square" }),
|
|
26711
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { children: name })
|
|
26712
26712
|
] }),
|
|
26713
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26713
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { variant: "h6", tone: "secondary", children: usersCountLabel(userCount) })
|
|
26714
26714
|
] });
|
|
26715
26715
|
}
|
|
26716
26716
|
|
|
@@ -26782,7 +26782,7 @@ function TenantsTableView({
|
|
|
26782
26782
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26783
26783
|
_chunk2QMBXGMQcjs.Button,
|
|
26784
26784
|
{
|
|
26785
|
-
onClick:
|
|
26785
|
+
onClick: _chunkPS6T65KAcjs.openInNewTab.call(void 0, getHref(row.original)),
|
|
26786
26786
|
variant: "outline",
|
|
26787
26787
|
size: "icon",
|
|
26788
26788
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
@@ -26860,13 +26860,13 @@ function WaitlistForm({
|
|
|
26860
26860
|
const [email, setEmail] = _react.useState.call(void 0, defaultEmail);
|
|
26861
26861
|
const [phone, setPhone] = _react.useState.call(void 0, defaultPhone);
|
|
26862
26862
|
const [countryCode, setCountryCode] = _react.useState.call(void 0, "US");
|
|
26863
|
-
const { toast } =
|
|
26864
|
-
const { honeypotInputProps, getSignals, resetSignals } =
|
|
26863
|
+
const { toast } = _chunk4FWURR3Wcjs.useToast.call(void 0, );
|
|
26864
|
+
const { honeypotInputProps, getSignals, resetSignals } = _chunk4FWURR3Wcjs.useHumanitySignals.call(void 0, );
|
|
26865
26865
|
const [smsConsent, setSmsConsent] = _react.useState.call(void 0, false);
|
|
26866
|
-
const isClient =
|
|
26866
|
+
const isClient = _chunk32Q7K5OPcjs.useIsHydrated.call(void 0, );
|
|
26867
26867
|
const [isPhoneInvalid, setIsPhoneInvalid] = _react.useState.call(void 0, false);
|
|
26868
26868
|
const [showConsentError, setShowConsentError] = _react.useState.call(void 0, false);
|
|
26869
|
-
const rescue =
|
|
26869
|
+
const rescue = _chunk4FWURR3Wcjs.useFormRescue.call(void 0, {
|
|
26870
26870
|
form: rescueForm,
|
|
26871
26871
|
// The phone is reported as filled only; its value never leaves the form early.
|
|
26872
26872
|
fieldNames: ["email", "phone"],
|
|
@@ -26878,7 +26878,7 @@ function WaitlistForm({
|
|
|
26878
26878
|
_react.useEffect.call(void 0, () => {
|
|
26879
26879
|
rescue.track({ email, phone }, null);
|
|
26880
26880
|
}, [email, phone, rescue]);
|
|
26881
|
-
const isMailDomainGeneric =
|
|
26881
|
+
const isMailDomainGeneric = _chunkPS6T65KAcjs.hasGenericEmailDomain.call(void 0, email);
|
|
26882
26882
|
const [syncedDefaultEmail, setSyncedDefaultEmail] = _react.useState.call(void 0, defaultEmail);
|
|
26883
26883
|
if (syncedDefaultEmail !== defaultEmail) {
|
|
26884
26884
|
setSyncedDefaultEmail(defaultEmail);
|
|
@@ -26912,7 +26912,7 @@ function WaitlistForm({
|
|
|
26912
26912
|
setShowConsentError(true);
|
|
26913
26913
|
return;
|
|
26914
26914
|
}
|
|
26915
|
-
const finalPhone = phone ?
|
|
26915
|
+
const finalPhone = phone ? _chunkPS6T65KAcjs.formatPhoneE164.call(void 0, phone, countryCode) : void 0;
|
|
26916
26916
|
try {
|
|
26917
26917
|
await onRegister(email, finalPhone, getSignals(), rescue.submitFields());
|
|
26918
26918
|
rescue.complete();
|
|
@@ -27510,7 +27510,7 @@ var AppLayoutDrawerContent = _react.forwardRef.call(void 0,
|
|
|
27510
27510
|
}, [mobileBreakpoint]);
|
|
27511
27511
|
const panelRef = _react.useRef.call(void 0, null);
|
|
27512
27512
|
const available = useContainerExtent(resizable, isHorizontal, portalContainer);
|
|
27513
|
-
const { size, setSize, clampSize } =
|
|
27513
|
+
const { size, setSize, clampSize } = _chunkNTGIQP7Ocjs.useResizablePanelSize.call(void 0, {
|
|
27514
27514
|
enabled: resizable,
|
|
27515
27515
|
minSize,
|
|
27516
27516
|
maxSize,
|
|
@@ -27530,7 +27530,7 @@ var AppLayoutDrawerContent = _react.forwardRef.call(void 0,
|
|
|
27530
27530
|
"data-state": open ? "open" : "closed",
|
|
27531
27531
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
27532
27532
|
"absolute inset-0 z-[102] outline-none data-[state=closed]:pointer-events-none data-[state=open]:pointer-events-auto data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
27533
|
-
|
|
27533
|
+
_chunkNTGIQP7Ocjs.OVERLAY_BACKDROP_CLASS,
|
|
27534
27534
|
// Persist mode only: hold the fade-out's final (transparent) frame
|
|
27535
27535
|
// so the backdrop doesn't snap back to opacity 1 and dim the whole
|
|
27536
27536
|
// content area while the drawer is "closed" (see PERSIST_CLOSED_HOLD).
|
|
@@ -27573,7 +27573,7 @@ var AppLayoutDrawerContent = _react.forwardRef.call(void 0,
|
|
|
27573
27573
|
children: [
|
|
27574
27574
|
props["aria-label"] ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogPrimitive3.Title, { className: "sr-only", children: props["aria-label"] }) : null,
|
|
27575
27575
|
applyInlineSize && (!persist || open) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27576
|
-
|
|
27576
|
+
_chunkNTGIQP7Ocjs.PanelResizeHandle,
|
|
27577
27577
|
{
|
|
27578
27578
|
variant: "inLayout",
|
|
27579
27579
|
side: resolvedSide,
|
|
@@ -27612,11 +27612,11 @@ var AppLayoutDrawerContent = _react.forwardRef.call(void 0,
|
|
|
27612
27612
|
}
|
|
27613
27613
|
);
|
|
27614
27614
|
AppLayoutDrawerContent.displayName = "AppLayoutDrawerContent";
|
|
27615
|
-
var AppLayoutDrawerHeader =
|
|
27616
|
-
var AppLayoutDrawerTitle =
|
|
27617
|
-
var AppLayoutDrawerDescription =
|
|
27618
|
-
var AppLayoutDrawerBody =
|
|
27619
|
-
var AppLayoutDrawerFooter =
|
|
27615
|
+
var AppLayoutDrawerHeader = _chunkNTGIQP7Ocjs.DrawerHeader;
|
|
27616
|
+
var AppLayoutDrawerTitle = _chunkNTGIQP7Ocjs.DrawerTitle;
|
|
27617
|
+
var AppLayoutDrawerDescription = _chunkNTGIQP7Ocjs.DrawerDescription;
|
|
27618
|
+
var AppLayoutDrawerBody = _chunkNTGIQP7Ocjs.DrawerBody;
|
|
27619
|
+
var AppLayoutDrawerFooter = _chunkNTGIQP7Ocjs.DrawerFooter;
|
|
27620
27620
|
|
|
27621
27621
|
// src/components/features/notifications/notification-tile.tsx
|
|
27622
27622
|
|
|
@@ -27635,7 +27635,7 @@ var typeColorByVariant = {
|
|
|
27635
27635
|
error: "text-ods-error"
|
|
27636
27636
|
};
|
|
27637
27637
|
var progressColorByVariant2 = {
|
|
27638
|
-
...
|
|
27638
|
+
..._chunk4FWURR3Wcjs.progressColorByVariant,
|
|
27639
27639
|
default: "bg-ods-accent",
|
|
27640
27640
|
info: "bg-ods-accent"
|
|
27641
27641
|
};
|
|
@@ -27712,7 +27712,7 @@ function NotificationTile({
|
|
|
27712
27712
|
height: 16,
|
|
27713
27713
|
unoptimized: true
|
|
27714
27714
|
}
|
|
27715
|
-
) : _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3ATAYP36cjs.cn.call(void 0, "size-1.5 rounded-full",
|
|
27715
|
+
) : _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3ATAYP36cjs.cn.call(void 0, "size-1.5 rounded-full", _chunk4FWURR3Wcjs.dotColorByVariant[accentVariant]) }))) }),
|
|
27716
27716
|
type ? lockscreen ? (
|
|
27717
27717
|
// A phone names the sender in plain words and never cuts them.
|
|
27718
27718
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 break-words text-ods-text-secondary text-h6", children: type })
|
|
@@ -27722,7 +27722,7 @@ function NotificationTile({
|
|
|
27722
27722
|
{
|
|
27723
27723
|
dateTime: createdAtIso,
|
|
27724
27724
|
className: _chunk3ATAYP36cjs.cn.call(void 0, "shrink-0 whitespace-nowrap text-ods-text-secondary text-h6", lockscreen && "self-start"),
|
|
27725
|
-
children: _nullishCoalesce(timeLabel, () => (
|
|
27725
|
+
children: _nullishCoalesce(timeLabel, () => ( _chunkOWGLRE74cjs.formatTicketRelativeTime.call(void 0, createdAtIso)))
|
|
27726
27726
|
}
|
|
27727
27727
|
) : null,
|
|
27728
27728
|
!lockscreen && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "relative size-4 shrink-0", children: [
|
|
@@ -27831,7 +27831,7 @@ function NotificationDrawer({
|
|
|
27831
27831
|
const unreadNotifications = notifications.filter((n) => !n.read);
|
|
27832
27832
|
const content = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
27833
27833
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "px-[var(--spacing-system-m)] pt-[var(--spacing-system-m)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27834
|
-
|
|
27834
|
+
_chunkNTGIQP7Ocjs.DrawerTitle,
|
|
27835
27835
|
{
|
|
27836
27836
|
hideClose: true,
|
|
27837
27837
|
className: "truncate",
|
|
@@ -27890,8 +27890,8 @@ function NotificationDrawer({
|
|
|
27890
27890
|
}
|
|
27891
27891
|
) });
|
|
27892
27892
|
}
|
|
27893
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27894
|
-
|
|
27893
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNTGIQP7Ocjs.Drawer, { open: isOpen, onOpenChange: (v) => v ? open() : close(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27894
|
+
_chunkNTGIQP7Ocjs.DrawerContent,
|
|
27895
27895
|
{
|
|
27896
27896
|
side: "right",
|
|
27897
27897
|
"aria-describedby": void 0,
|
|
@@ -27996,7 +27996,7 @@ function ShowNotificationsToggleRow({ checked, onChange }) {
|
|
|
27996
27996
|
] });
|
|
27997
27997
|
}
|
|
27998
27998
|
function DesktopNotificationsToggleRow({ checked, onChange }) {
|
|
27999
|
-
const { supported, permission, request } =
|
|
27999
|
+
const { supported, permission, request } = _chunk4FWURR3Wcjs.useNotificationPermission.call(void 0, );
|
|
28000
28000
|
if (!supported) return null;
|
|
28001
28001
|
const blocked = permission === "denied";
|
|
28002
28002
|
const handleChange = async (value) => {
|
|
@@ -28024,7 +28024,7 @@ function DesktopNotificationsToggleRow({ checked, onChange }) {
|
|
|
28024
28024
|
}
|
|
28025
28025
|
function NotificationsHistoryButton({ onClick, historyHref }) {
|
|
28026
28026
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28027
|
-
|
|
28027
|
+
_chunkU2O5YQRPcjs.SplitButton,
|
|
28028
28028
|
{
|
|
28029
28029
|
variant: "outline",
|
|
28030
28030
|
fullWidth: true,
|
|
@@ -28174,13 +28174,13 @@ function getApprovalMeta(notification) {
|
|
|
28174
28174
|
function resolutionToStatus(resolution) {
|
|
28175
28175
|
switch (typeof resolution === "string" ? resolution.toUpperCase() : void 0) {
|
|
28176
28176
|
case "APPROVED":
|
|
28177
|
-
return
|
|
28177
|
+
return _chunk5TCIRWHLcjs.APPROVAL_STATUS.APPROVED;
|
|
28178
28178
|
case "REJECTED":
|
|
28179
|
-
return
|
|
28179
|
+
return _chunk5TCIRWHLcjs.APPROVAL_STATUS.REJECTED;
|
|
28180
28180
|
case "CANCELLED":
|
|
28181
|
-
return
|
|
28181
|
+
return _chunk5TCIRWHLcjs.APPROVAL_STATUS.CANCELLED;
|
|
28182
28182
|
default:
|
|
28183
|
-
return
|
|
28183
|
+
return _chunk5TCIRWHLcjs.APPROVAL_STATUS.PENDING;
|
|
28184
28184
|
}
|
|
28185
28185
|
}
|
|
28186
28186
|
function approvalMetaToBatchData(approval) {
|
|
@@ -28226,7 +28226,7 @@ function ApprovalRequestNotificationTile({
|
|
|
28226
28226
|
const resolvedStatus = resolutionToStatus(_optionalChain([approval, 'optionalAccess', _568 => _568.resolution]));
|
|
28227
28227
|
const status = resolvedStatus !== "pending" ? resolvedStatus : _nullishCoalesce(localStatus, () => ( "pending"));
|
|
28228
28228
|
const batchData = _react.useMemo.call(void 0, () => approval ? approvalMetaToBatchData(approval) : null, [approval]);
|
|
28229
|
-
const { innerRef, containerStyle } =
|
|
28229
|
+
const { innerRef, containerStyle } = _chunkOWGLRE74cjs.useCollapsible.call(void 0, { expanded });
|
|
28230
28230
|
if (!approval || !batchData) return null;
|
|
28231
28231
|
const tileNotification = {
|
|
28232
28232
|
...notification,
|
|
@@ -28289,7 +28289,7 @@ function ApprovalRequestNotificationTile({
|
|
|
28289
28289
|
}
|
|
28290
28290
|
)
|
|
28291
28291
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
28292
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28292
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWGLRE74cjs.ApprovalStatusTag, { status }),
|
|
28293
28293
|
approval.resolvedByName ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: [
|
|
28294
28294
|
"by ",
|
|
28295
28295
|
approval.resolvedByName
|
|
@@ -28307,12 +28307,12 @@ function ApprovalRequestNotificationTile({
|
|
|
28307
28307
|
"aria-expanded": expanded,
|
|
28308
28308
|
"aria-label": toggleLabel,
|
|
28309
28309
|
className: "ml-auto w-6 shrink-0 px-0 md:w-8",
|
|
28310
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28310
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWGLRE74cjs.ExpandChevron, { expanded })
|
|
28311
28311
|
}
|
|
28312
28312
|
)
|
|
28313
28313
|
] }),
|
|
28314
28314
|
children: !lockscreen && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: containerStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: innerRef, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "border-t border-ods-border", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28315
|
-
|
|
28315
|
+
_chunkOWGLRE74cjs.ApprovalBatchMessage,
|
|
28316
28316
|
{
|
|
28317
28317
|
data: batchData,
|
|
28318
28318
|
showExecutionStatus: false,
|
|
@@ -28385,7 +28385,7 @@ function renderCustomerOption(option, isSelected) {
|
|
|
28385
28385
|
const { label, imageUrl } = option;
|
|
28386
28386
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center justify-between gap-[var(--spacing-system-xs)]", children: [
|
|
28387
28387
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
28388
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28388
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABLUMGCIcjs.SquareAvatar, { src: imageUrl, alt: label, fallback: label, size: "sm", variant: "square" }),
|
|
28389
28389
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", title: label, children: label })
|
|
28390
28390
|
] }),
|
|
28391
28391
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
@@ -28469,7 +28469,7 @@ function TimeTrackerPanel({
|
|
|
28469
28469
|
}));
|
|
28470
28470
|
const selectedCustomer = customerAutocompleteOptions.find((o) => o.value === selectedCustomerId);
|
|
28471
28471
|
const customerStartAdornment = selectedCustomer ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28472
|
-
|
|
28472
|
+
_chunkABLUMGCIcjs.SquareAvatar,
|
|
28473
28473
|
{
|
|
28474
28474
|
src: selectedCustomer.imageUrl,
|
|
28475
28475
|
alt: selectedCustomer.label,
|
|
@@ -28549,7 +28549,7 @@ function TimeTrackerPanel({
|
|
|
28549
28549
|
] }),
|
|
28550
28550
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "grid gap-[var(--spacing-system-m)]", showCustomer && "grid-cols-2"), children: [
|
|
28551
28551
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28552
|
-
|
|
28552
|
+
_chunkU2O5YQRPcjs.Autocomplete,
|
|
28553
28553
|
{
|
|
28554
28554
|
value: selectedTicketId,
|
|
28555
28555
|
onChange: onSelectedTicketChange,
|
|
@@ -28565,7 +28565,7 @@ function TimeTrackerPanel({
|
|
|
28565
28565
|
}
|
|
28566
28566
|
),
|
|
28567
28567
|
showCustomer && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28568
|
-
|
|
28568
|
+
_chunkU2O5YQRPcjs.Autocomplete,
|
|
28569
28569
|
{
|
|
28570
28570
|
value: _nullishCoalesce(selectedCustomerId, () => ( null)),
|
|
28571
28571
|
onChange: onSelectedCustomerChange,
|
|
@@ -28618,7 +28618,7 @@ function TimeTrackerPanel({
|
|
|
28618
28618
|
}
|
|
28619
28619
|
),
|
|
28620
28620
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28621
|
-
|
|
28621
|
+
_chunkU2O5YQRPcjs.SplitButton,
|
|
28622
28622
|
{
|
|
28623
28623
|
variant: "outline",
|
|
28624
28624
|
fullWidth: true,
|
|
@@ -28648,7 +28648,7 @@ var STATUS_TAG_SKIN = "gap-[var(--spacing-system-xs)] font-mono font-medium uppe
|
|
|
28648
28648
|
function StatusTag({ status }) {
|
|
28649
28649
|
if (status === "tracking") {
|
|
28650
28650
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28651
|
-
|
|
28651
|
+
_chunkABLUMGCIcjs.Tag,
|
|
28652
28652
|
{
|
|
28653
28653
|
variant: "success",
|
|
28654
28654
|
className: STATUS_TAG_SKIN,
|
|
@@ -28658,9 +28658,9 @@ function StatusTag({ status }) {
|
|
|
28658
28658
|
);
|
|
28659
28659
|
}
|
|
28660
28660
|
if (status === "paused") {
|
|
28661
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28661
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABLUMGCIcjs.Tag, { variant: "warning", className: STATUS_TAG_SKIN, icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4D25RXYZcjs.PauseIcon, { className: "h-4 w-4" }), label: "Paused" });
|
|
28662
28662
|
}
|
|
28663
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28663
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABLUMGCIcjs.Tag, { variant: "grey", className: STATUS_TAG_SKIN, label: "Ready to Track" });
|
|
28664
28664
|
}
|
|
28665
28665
|
function LastEntryRow({ entry, onClick }) {
|
|
28666
28666
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-m)] border-b border-ods-border bg-ods-bg px-[var(--spacing-system-m)] py-[var(--spacing-system-sf)] last:border-b-0", children: [
|
|
@@ -28829,7 +28829,7 @@ function TimeTrackerHeaderButton({ className, disabled }) {
|
|
|
28829
28829
|
"data-state": isOpen ? "open" : "closed",
|
|
28830
28830
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
28831
28831
|
layoutContainer ? "absolute inset-0 z-[102]" : "fixed inset-0 z-[1299]",
|
|
28832
|
-
|
|
28832
|
+
_chunkNTGIQP7Ocjs.OVERLAY_BACKDROP_CLASS,
|
|
28833
28833
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0",
|
|
28834
28834
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0"
|
|
28835
28835
|
)
|
|
@@ -28855,7 +28855,7 @@ function TimeTrackerHeaderButton({ className, disabled }) {
|
|
|
28855
28855
|
|
|
28856
28856
|
// src/components/features/devices/device-last-online.ts
|
|
28857
28857
|
function formatLastOnline(lastSeen) {
|
|
28858
|
-
return `Last Online: ${lastSeen ?
|
|
28858
|
+
return `Last Online: ${lastSeen ? _chunkOWGLRE74cjs.formatRelativeTime.call(void 0, lastSeen) : "\u2014"}`;
|
|
28859
28859
|
}
|
|
28860
28860
|
|
|
28861
28861
|
// src/components/features/devices/device-name.ts
|
|
@@ -28899,7 +28899,7 @@ var SELECTION_MODE_OPTIONS = [
|
|
|
28899
28899
|
label: "Select Devices by Criteria",
|
|
28900
28900
|
description: CRITERIA_MODE_DESCRIPTION,
|
|
28901
28901
|
disabled: true,
|
|
28902
|
-
trailing: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28902
|
+
trailing: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABLUMGCIcjs.Tag, { label: "Coming Soon", variant: "grey" })
|
|
28903
28903
|
}
|
|
28904
28904
|
];
|
|
28905
28905
|
var SELECTION_MODE_OPTIONS_ENABLED = [
|
|
@@ -29004,7 +29004,7 @@ function getDeviceStatusConfig(status) {
|
|
|
29004
29004
|
}
|
|
29005
29005
|
}
|
|
29006
29006
|
function getDeviceOperatingSystem(osType) {
|
|
29007
|
-
return
|
|
29007
|
+
return _chunkPS6T65KAcjs.getOSPlatformId.call(void 0, osType);
|
|
29008
29008
|
}
|
|
29009
29009
|
|
|
29010
29010
|
// src/components/features/devices/device-statuses.ts
|
|
@@ -29180,8 +29180,8 @@ function DevicesFilterToolbar({
|
|
|
29180
29180
|
|
|
29181
29181
|
|
|
29182
29182
|
function formatDateTime(input) {
|
|
29183
|
-
const date =
|
|
29184
|
-
return date === "\u2014" ? date : `${date} ${
|
|
29183
|
+
const date = _chunk5TCIRWHLcjs.formatDate.call(void 0, input);
|
|
29184
|
+
return date === "\u2014" ? date : `${date} ${_chunk5TCIRWHLcjs.formatTime.call(void 0, input)}`;
|
|
29185
29185
|
}
|
|
29186
29186
|
function uniqueById(options) {
|
|
29187
29187
|
const seen = /* @__PURE__ */ new Map();
|
|
@@ -29286,7 +29286,7 @@ function DevicesTableBody({
|
|
|
29286
29286
|
function OrganizationCell({ device }) {
|
|
29287
29287
|
const fullImageUrl = useDeviceImageUrl(device.organizationImageUrl, device.organizationImageHash);
|
|
29288
29288
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
29289
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29289
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.EntityImage, { src: fullImageUrl, alt: device.organization || "Customer", className: "size-12 content-md:size-12" }),
|
|
29290
29290
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "break-words text-ods-text-primary text-h4", children: device.organization || "" }) })
|
|
29291
29291
|
] });
|
|
29292
29292
|
}
|
|
@@ -29330,7 +29330,7 @@ function getDeviceTableColumns(deviceFilters, filtersPending) {
|
|
|
29330
29330
|
const device = row.original;
|
|
29331
29331
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative box-border flex h-20 w-full shrink-0 content-stretch items-center justify-start gap-4 py-0", children: [
|
|
29332
29332
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeviceTypeTile, { type: device.type }),
|
|
29333
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29333
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { children: getDeviceName(device) }) })
|
|
29334
29334
|
] });
|
|
29335
29335
|
},
|
|
29336
29336
|
meta: { width: "flex-1 content-md:w-1/4" }
|
|
@@ -29343,7 +29343,7 @@ function getDeviceTableColumns(deviceFilters, filtersPending) {
|
|
|
29343
29343
|
const device = row.original;
|
|
29344
29344
|
const statusConfig2 = getDeviceStatusConfig(device.status);
|
|
29345
29345
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col items-start gap-1", children: [
|
|
29346
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "inline-flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29346
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "inline-flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABLUMGCIcjs.Tag, { label: statusConfig2.label, variant: statusConfig2.variant }) }),
|
|
29347
29347
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "hidden text-ods-text-secondary text-h6 content-md:flex", children: device.last_seen ? formatDateTime(device.last_seen) : "Never" })
|
|
29348
29348
|
] });
|
|
29349
29349
|
},
|
|
@@ -29396,7 +29396,7 @@ function useTagFilterModal({
|
|
|
29396
29396
|
setParams,
|
|
29397
29397
|
onApplied = scrollMainToTop
|
|
29398
29398
|
}) {
|
|
29399
|
-
const isMdUp =
|
|
29399
|
+
const isMdUp = _chunkKTPR66EEcjs.useMdUp.call(void 0, );
|
|
29400
29400
|
const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
|
|
29401
29401
|
const pendingFiltersRef = _react.useRef.call(void 0, {});
|
|
29402
29402
|
const open = _react.useCallback.call(void 0, () => setIsOpen(true), []);
|
|
@@ -29501,7 +29501,7 @@ function CustomerCell({ device }) {
|
|
|
29501
29501
|
const fullImageUrl = useDeviceImageUrl(device.organizationImageUrl, device.organizationImageHash);
|
|
29502
29502
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
29503
29503
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29504
|
-
|
|
29504
|
+
_chunkU2O5YQRPcjs.EntityImage,
|
|
29505
29505
|
{
|
|
29506
29506
|
src: fullImageUrl,
|
|
29507
29507
|
alt: device.organization || "Customer",
|
|
@@ -29509,8 +29509,8 @@ function CustomerCell({ device }) {
|
|
|
29509
29509
|
}
|
|
29510
29510
|
),
|
|
29511
29511
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
29512
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29513
|
-
device.organizationEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29512
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { children: device.organization || "" }),
|
|
29513
|
+
device.organizationEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { variant: "h6", tone: "secondary", children: device.organizationEmail })
|
|
29514
29514
|
] })
|
|
29515
29515
|
] });
|
|
29516
29516
|
}
|
|
@@ -29804,8 +29804,8 @@ function DeviceSelector({
|
|
|
29804
29804
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 items-center gap-3", children: [
|
|
29805
29805
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeviceTypeTile, { type: device.type }),
|
|
29806
29806
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col", children: [
|
|
29807
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29808
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29807
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { children: getDeviceName(device) }),
|
|
29808
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { variant: "h6", tone: "secondary", children: formatLastOnline(lastSeen) })
|
|
29809
29809
|
] })
|
|
29810
29810
|
] });
|
|
29811
29811
|
},
|
|
@@ -29840,7 +29840,7 @@ function DeviceSelector({
|
|
|
29840
29840
|
header: "STATUS",
|
|
29841
29841
|
cell: ({ row }) => {
|
|
29842
29842
|
const config = getDeviceStatusConfig(row.original.status);
|
|
29843
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29843
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABLUMGCIcjs.Tag, { label: config.label, variant: config.variant, className: "w-min" });
|
|
29844
29844
|
},
|
|
29845
29845
|
enableSorting: false,
|
|
29846
29846
|
meta: {
|
|
@@ -30321,7 +30321,7 @@ function DevicesList({
|
|
|
30321
30321
|
const handleClearAll = _react.useCallback.call(void 0, () => patch({ search: "", tags: [] }), [patch]);
|
|
30322
30322
|
const narrowed = isNarrowed(narrowing);
|
|
30323
30323
|
const isEmptyState = !isLoading && !isPending && !narrowed && devices.length === 0;
|
|
30324
|
-
const { toolbarRef, containerStyle, stickyHeaderOffset: measuredOffset } =
|
|
30324
|
+
const { toolbarRef, containerStyle, stickyHeaderOffset: measuredOffset } = _chunk4FWURR3Wcjs.useStickyToolbar.call(void 0, );
|
|
30325
30325
|
const headerOffset = _nullishCoalesce(stickyHeaderOffset, () => ( (stickyToolbar ? measuredOffset : void 0)));
|
|
30326
30326
|
const actionsColumn = _react.useMemo.call(void 0, () => rowActions ? getDeviceActionsColumn(rowActions) : void 0, [rowActions]);
|
|
30327
30327
|
return (
|
|
@@ -30543,7 +30543,7 @@ function DevicesPanelView({
|
|
|
30543
30543
|
] })
|
|
30544
30544
|
] });
|
|
30545
30545
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30546
|
-
|
|
30546
|
+
_chunkU2O5YQRPcjs.PageLayout,
|
|
30547
30547
|
{
|
|
30548
30548
|
title,
|
|
30549
30549
|
backButton,
|
|
@@ -30551,7 +30551,7 @@ function DevicesPanelView({
|
|
|
30551
30551
|
actionsVariant: "icon-buttons",
|
|
30552
30552
|
className,
|
|
30553
30553
|
selector: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30554
|
-
|
|
30554
|
+
_chunk32Q7K5OPcjs.TabSelector,
|
|
30555
30555
|
{
|
|
30556
30556
|
value: viewMode,
|
|
30557
30557
|
onValueChange: (value) => _optionalChain([onViewModeChange, 'optionalCall', _644 => _644(value)]),
|
|
@@ -30617,7 +30617,7 @@ var PACKAGE_SEARCH_LABEL = "Software Name";
|
|
|
30617
30617
|
var PACKAGE_SEARCH_PLACEHOLDER = "Search for Software";
|
|
30618
30618
|
function PackageSearchFieldPlaceholder({ error }) {
|
|
30619
30619
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30620
|
-
|
|
30620
|
+
_chunkU2O5YQRPcjs.Autocomplete,
|
|
30621
30621
|
{
|
|
30622
30622
|
label: PACKAGE_SEARCH_LABEL,
|
|
30623
30623
|
labelVariant: "large",
|
|
@@ -30672,16 +30672,16 @@ function SoftwareScheduleFields({
|
|
|
30672
30672
|
] }),
|
|
30673
30673
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
30674
30674
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK6VWTUCHcjs.Label, { className: "text-h4", children: "Time" }),
|
|
30675
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30676
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30677
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30675
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkU2O5YQRPcjs.Select, { value: time, onValueChange: onTimeChange, children: [
|
|
30676
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectValue, { placeholder: "Select time" }) }),
|
|
30677
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectContent, { children: timeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
30678
30678
|
] })
|
|
30679
30679
|
] }),
|
|
30680
30680
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
30681
30681
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK6VWTUCHcjs.Label, { className: "text-h4", children: "Timezone" }),
|
|
30682
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30683
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30684
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30682
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkU2O5YQRPcjs.Select, { value: timeReference, onValueChange: (value) => onTimeReferenceChange(value), children: [
|
|
30683
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectValue, {}) }),
|
|
30684
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectContent, { children: timing.timeReferenceOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
30685
30685
|
] })
|
|
30686
30686
|
] })
|
|
30687
30687
|
]
|
|
@@ -30747,22 +30747,22 @@ function newSoftwareRow(key) {
|
|
|
30747
30747
|
|
|
30748
30748
|
function InfoCell2({ value, label }) {
|
|
30749
30749
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
30750
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: value ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30750
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: value ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { children: value }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1 text-h4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary", children: "\u2014" }) }) }),
|
|
30751
30751
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: label })
|
|
30752
30752
|
] });
|
|
30753
30753
|
}
|
|
30754
30754
|
function SoftwareRowFields({ row, removable, onChange, onRemove, renderPackageSearch }) {
|
|
30755
30755
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-l)] rounded-md border border-ods-border bg-ods-bg p-[var(--spacing-system-l)] content-lg:flex-row content-lg:items-end", children: [
|
|
30756
30756
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30757
|
-
|
|
30757
|
+
_chunkU2O5YQRPcjs.Select,
|
|
30758
30758
|
{
|
|
30759
30759
|
value: row.packageManager,
|
|
30760
30760
|
onValueChange: (value) => onChange({ ...row, packageManager: value, pkg: null }),
|
|
30761
30761
|
children: [
|
|
30762
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30763
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30762
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectTrigger, { label: "Package Manager", labelVariant: "large", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectValue, {}) }),
|
|
30763
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectContent, { children: PACKAGE_MANAGERS.map((manager) => {
|
|
30764
30764
|
const Icon = PACKAGE_MANAGER_ICON[manager];
|
|
30765
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30765
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: manager, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
30766
30766
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { size: 20, className: "shrink-0 text-ods-text-secondary" }),
|
|
30767
30767
|
PACKAGE_MANAGER_LABEL[manager]
|
|
30768
30768
|
] }) }, manager);
|
|
@@ -30860,7 +30860,7 @@ function SoftwareActionForm({
|
|
|
30860
30860
|
}
|
|
30861
30861
|
);
|
|
30862
30862
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30863
|
-
|
|
30863
|
+
_chunkU2O5YQRPcjs.PageLayout,
|
|
30864
30864
|
{
|
|
30865
30865
|
title: copy.formTitle,
|
|
30866
30866
|
backButton: onBack ? { label: "Back", onClick: onBack } : void 0,
|
|
@@ -30941,7 +30941,7 @@ function LogDrawer({
|
|
|
30941
30941
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, AppLayoutDrawerHeader, { children: [
|
|
30942
30942
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AppLayoutDrawerTitle, { children: "Log Details" }),
|
|
30943
30943
|
(statusTag || timestamp) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
30944
|
-
statusTag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30944
|
+
statusTag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABLUMGCIcjs.Tag, { label: statusTag.label, variant: statusTag.variant }),
|
|
30945
30945
|
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h6", children: timestamp })
|
|
30946
30946
|
] })
|
|
30947
30947
|
] }),
|
|
@@ -30949,7 +30949,7 @@ function LogDrawer({
|
|
|
30949
30949
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-h-0 flex-1 space-y-4 overflow-y-auto", children: [
|
|
30950
30950
|
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AppLayoutDrawerDescription, { asChild: true, className: "leading-6 text-ods-text-primary text-h4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: description }) }),
|
|
30951
30951
|
infoFields && infoFields.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid grid-cols-1 gap-3 rounded-[6px] border border-ods-border bg-ods-card p-4", children: infoFields.map((field) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-0.5", children: [
|
|
30952
|
-
typeof field.value === "string" ? field.value === "" || field.value === EMPTY_MARK ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-h4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmptyMark, {}) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30952
|
+
typeof field.value === "string" ? field.value === "" || field.value === EMPTY_MARK ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-h4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmptyMark, {}) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { children: field.value }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h4", children: field.value === null || field.value === void 0 || field.value === false ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmptyMark, {}) : field.value }),
|
|
30953
30953
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: field.label })
|
|
30954
30954
|
] }, typeof field.label === "string" ? field.label : "")) }),
|
|
30955
30955
|
children
|
|
@@ -30997,7 +30997,7 @@ function LogsPageView({
|
|
|
30997
30997
|
],
|
|
30998
30998
|
[onRefresh]
|
|
30999
30999
|
);
|
|
31000
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
31000
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkU2O5YQRPcjs.PageLayout, { title: "Logs", actions, showHeader, className, children: [
|
|
31001
31001
|
!hideSearch && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "sticky top-0 z-20 -my-[var(--spacing-system-l)] flex items-center gap-[var(--spacing-system-m)] bg-ods-bg py-[var(--spacing-system-l)]", children: [
|
|
31002
31002
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31003
31003
|
_chunkHTRILBJDcjs.Input,
|
|
@@ -31067,10 +31067,10 @@ var ToolBadge = ({
|
|
|
31067
31067
|
className,
|
|
31068
31068
|
iconClassName
|
|
31069
31069
|
}) => {
|
|
31070
|
-
const text = _nullishCoalesce(label, () => ( (toolType ?
|
|
31071
|
-
const mark = _nullishCoalesce(icon, () => ( (toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31070
|
+
const text = _nullishCoalesce(label, () => ( (toolType ? _chunkPS6T65KAcjs.getToolLabel.call(void 0, toolType) : "")));
|
|
31071
|
+
const mark = _nullishCoalesce(icon, () => ( (toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWI2OTGKCcjs.ToolIcon, { toolType, className: iconClassName, size: 16 }) : null)));
|
|
31072
31072
|
const linked = (node, linkClassName) => href && targetPlatform ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31073
|
-
|
|
31073
|
+
_chunk32Q7K5OPcjs.NavLinkAnchorViaRuntime,
|
|
31074
31074
|
{
|
|
31075
31075
|
href,
|
|
31076
31076
|
targetPlatform,
|
|
@@ -31148,8 +31148,8 @@ function LogsTableView({
|
|
|
31148
31148
|
accessorKey: "logId",
|
|
31149
31149
|
header: logIdHeader ? () => logIdHeader : "Log ID",
|
|
31150
31150
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col justify-center", children: [
|
|
31151
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31152
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31151
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { children: row.original.timestamp }),
|
|
31152
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { variant: "h6", tone: "secondary", children: row.original.logId })
|
|
31153
31153
|
] }),
|
|
31154
31154
|
enableSorting: false,
|
|
31155
31155
|
meta: { width: LOG_COLUMN_WIDTHS.logId, alwaysShowHeader: true }
|
|
@@ -31157,7 +31157,7 @@ function LogsTableView({
|
|
|
31157
31157
|
{
|
|
31158
31158
|
accessorKey: "status",
|
|
31159
31159
|
header: "Status",
|
|
31160
|
-
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31160
|
+
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABLUMGCIcjs.Tag, { label: row.original.status.label, variant: row.original.status.variant }) }),
|
|
31161
31161
|
enableSorting: false,
|
|
31162
31162
|
filterFn: multiSelect,
|
|
31163
31163
|
meta: {
|
|
@@ -31177,7 +31177,7 @@ function LogsTableView({
|
|
|
31177
31177
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31178
31178
|
ToolBadge,
|
|
31179
31179
|
{
|
|
31180
|
-
toolType:
|
|
31180
|
+
toolType: _chunkPS6T65KAcjs.normalizeToolTypeWithFallback.call(void 0, row.original.source.toolType),
|
|
31181
31181
|
iconClassName: "h-4 w-4 content-md:h-6 content-md:w-6"
|
|
31182
31182
|
}
|
|
31183
31183
|
),
|
|
@@ -31189,7 +31189,7 @@ function LogsTableView({
|
|
|
31189
31189
|
filter: {
|
|
31190
31190
|
options: _nullishCoalesce(_optionalChain([facets, 'optionalAccess', _652 => _652.toolTypes, 'access', _653 => _653.map, 'call', _654 => _654((toolType) => ({
|
|
31191
31191
|
id: toolType,
|
|
31192
|
-
label:
|
|
31192
|
+
label: _chunkPS6T65KAcjs.toToolLabel.call(void 0, toolType),
|
|
31193
31193
|
value: toolType
|
|
31194
31194
|
}))]), () => ( []))
|
|
31195
31195
|
}
|
|
@@ -31201,8 +31201,8 @@ function LogsTableView({
|
|
|
31201
31201
|
cell: ({ row }) => {
|
|
31202
31202
|
const { deviceName, organization } = logSourceLabels(row.original.device);
|
|
31203
31203
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-h-[60px] flex-col justify-center gap-1 py-2", children: [
|
|
31204
|
-
deviceName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31205
|
-
organization && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31204
|
+
deviceName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { children: deviceName }),
|
|
31205
|
+
organization && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { variant: "h6", tone: "secondary", children: organization })
|
|
31206
31206
|
] });
|
|
31207
31207
|
},
|
|
31208
31208
|
enableSorting: false,
|
|
@@ -31216,7 +31216,7 @@ function LogsTableView({
|
|
|
31216
31216
|
{
|
|
31217
31217
|
accessorKey: "description",
|
|
31218
31218
|
header: "Log Details",
|
|
31219
|
-
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31219
|
+
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { lines: 3, className: "text-ods-text-secondary text-h6", children: row.original.description.title }),
|
|
31220
31220
|
enableSorting: false,
|
|
31221
31221
|
meta: { width: LOG_COLUMN_WIDTHS.description, hideAt: "lg" }
|
|
31222
31222
|
},
|
|
@@ -31247,7 +31247,7 @@ function LogsTableView({
|
|
|
31247
31247
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31248
31248
|
_chunk2QMBXGMQcjs.Button,
|
|
31249
31249
|
{
|
|
31250
|
-
onClick: getLogHref ?
|
|
31250
|
+
onClick: getLogHref ? _chunkPS6T65KAcjs.openInNewTab.call(void 0, getLogHref(row.original)) : void 0,
|
|
31251
31251
|
variant: "outline",
|
|
31252
31252
|
size: "icon",
|
|
31253
31253
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
@@ -31468,29 +31468,29 @@ function scriptExecutionStatus(status) {
|
|
|
31468
31468
|
|
|
31469
31469
|
function ExecutionSourceBadge({ source, className }) {
|
|
31470
31470
|
const tagProps = { as: "span", variant: "outline", className: _chunk3ATAYP36cjs.cn.call(void 0, "shrink-0", className) };
|
|
31471
|
-
if (source === "SCHEDULED") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31471
|
+
if (source === "SCHEDULED") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABLUMGCIcjs.Tag, { ...tagProps, label: "Scheduled" });
|
|
31472
31472
|
if (source === "AI_ASSISTANT") {
|
|
31473
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31473
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABLUMGCIcjs.Tag, { ...tagProps, label: "Mingo", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWGLRE74cjs.AgentMark, { agent: "mingo", className: "size-4" }) });
|
|
31474
31474
|
}
|
|
31475
31475
|
return null;
|
|
31476
31476
|
}
|
|
31477
31477
|
function ExecutionTimestampCell({ timestamp, executionId }) {
|
|
31478
31478
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31479
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31480
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31479
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { children: timestamp }),
|
|
31480
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { variant: "h6", tone: "secondary", children: executionId })
|
|
31481
31481
|
] });
|
|
31482
31482
|
}
|
|
31483
31483
|
function ExecutionStatusCell({ status }) {
|
|
31484
31484
|
const presentation = scriptExecutionStatus(status);
|
|
31485
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31485
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABLUMGCIcjs.Tag, { label: _nullishCoalesce(_optionalChain([presentation, 'optionalAccess', _667 => _667.label]), () => ( String(_nullishCoalesce(status, () => ( ""))))), variant: _nullishCoalesce(_optionalChain([presentation, 'optionalAccess', _668 => _668.variant]), () => ( "grey")) }) });
|
|
31486
31486
|
}
|
|
31487
31487
|
function ExecutionDeviceCell({ name, organization }) {
|
|
31488
31488
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31489
31489
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-1", children: [
|
|
31490
31490
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPTK7GOIIcjs.MonitorIcon, { className: "size-6 shrink-0 text-ods-text-secondary" }),
|
|
31491
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31491
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { children: name }) : name })
|
|
31492
31492
|
] }),
|
|
31493
|
-
organization && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31493
|
+
organization && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { variant: "h6", tone: "secondary", children: organization })
|
|
31494
31494
|
] });
|
|
31495
31495
|
}
|
|
31496
31496
|
function ExecutionInitiatorCell({
|
|
@@ -31503,15 +31503,15 @@ function ExecutionInitiatorCell({
|
|
|
31503
31503
|
avatar,
|
|
31504
31504
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
31505
31505
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
31506
|
-
typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31506
|
+
typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { children: name }) : name,
|
|
31507
31507
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExecutionSourceBadge, { source })
|
|
31508
31508
|
] }),
|
|
31509
|
-
scriptName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31509
|
+
scriptName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { variant: "h6", tone: "secondary", children: scriptName })
|
|
31510
31510
|
] })
|
|
31511
31511
|
] });
|
|
31512
31512
|
}
|
|
31513
31513
|
function ExecutionResultCell({ result, empty = null }) {
|
|
31514
|
-
return result ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31514
|
+
return result ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { lines: 2, children: result }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: empty });
|
|
31515
31515
|
}
|
|
31516
31516
|
function ScriptExecutionResult({
|
|
31517
31517
|
result,
|
|
@@ -31529,14 +31529,14 @@ function ScriptExecutionResult({
|
|
|
31529
31529
|
|
|
31530
31530
|
function ScriptNameCell({ name, description }) {
|
|
31531
31531
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31532
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31533
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31532
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { children: name }),
|
|
31533
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { variant: "h6", tone: "secondary", children: description })
|
|
31534
31534
|
] });
|
|
31535
31535
|
}
|
|
31536
31536
|
function ScheduleDateTimeCell({ date, time }) {
|
|
31537
31537
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31538
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31539
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31538
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { children: date }),
|
|
31539
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { variant: "h6", tone: "secondary", children: time })
|
|
31540
31540
|
] });
|
|
31541
31541
|
}
|
|
31542
31542
|
|
|
@@ -31622,7 +31622,7 @@ function OpenInNewTabCell({ href }) {
|
|
|
31622
31622
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31623
31623
|
_chunk2QMBXGMQcjs.Button,
|
|
31624
31624
|
{
|
|
31625
|
-
onClick:
|
|
31625
|
+
onClick: _chunkPS6T65KAcjs.openInNewTab.call(void 0, href),
|
|
31626
31626
|
variant: "outline",
|
|
31627
31627
|
size: "icon",
|
|
31628
31628
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
@@ -31655,7 +31655,7 @@ function ScriptExecutionsTable({
|
|
|
31655
31655
|
ExecutionInitiatorCell,
|
|
31656
31656
|
{
|
|
31657
31657
|
avatar: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31658
|
-
|
|
31658
|
+
_chunkABLUMGCIcjs.SquareAvatar,
|
|
31659
31659
|
{
|
|
31660
31660
|
variant: "round",
|
|
31661
31661
|
size: "md",
|
|
@@ -31735,7 +31735,7 @@ function ScriptSchedulesTable({
|
|
|
31735
31735
|
cell(SCHEDULE_COLUMNS.supportedPlatforms, (row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OSTypeBadgeGroup, { osTypes: row.supportedPlatforms, iconSize: "w-4 h-4 content-md:w-6 content-md:h-6" })),
|
|
31736
31736
|
cell(
|
|
31737
31737
|
SCHEDULE_COLUMNS.dateTime,
|
|
31738
|
-
(row) => row.startsAt ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScheduleDateTimeCell, { date: row.startsAt.date, time: row.startsAt.time }) : row.trigger ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31738
|
+
(row) => row.startsAt ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScheduleDateTimeCell, { date: row.startsAt.date, time: row.startsAt.time }) : row.trigger ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { tone: "secondary", children: row.trigger }) : null
|
|
31739
31739
|
),
|
|
31740
31740
|
cell(SCHEDULE_COLUMNS.repeat, (row) => row.repeat ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: VALUE_CLASS, children: row.repeat }) : null),
|
|
31741
31741
|
cell(SCHEDULE_COLUMNS.deviceCount, (row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: VALUE_CLASS, children: row.deviceCount }))
|
|
@@ -31771,9 +31771,9 @@ function ScriptSchedulesTable({
|
|
|
31771
31771
|
|
|
31772
31772
|
// src/components/features/scripts/shell-types.ts
|
|
31773
31773
|
var SCRIPT_SHELL_TYPES = [
|
|
31774
|
-
{ id:
|
|
31775
|
-
{ id:
|
|
31776
|
-
{ id:
|
|
31774
|
+
{ id: _chunkPS6T65KAcjs.ShellTypeValues.POWERSHELL, label: "PowerShell", value: "powershell", icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon },
|
|
31775
|
+
{ id: _chunkPS6T65KAcjs.ShellTypeValues.CMD, label: "CMD", value: "cmd", icon: _chunkNIVJEJSGcjs.TerminalSquareIcon },
|
|
31776
|
+
{ id: _chunkPS6T65KAcjs.ShellTypeValues.BASH, label: "Bash", value: "bash", icon: _chunkTRUW6DDAcjs.TerminalIcon }
|
|
31777
31777
|
];
|
|
31778
31778
|
function scriptShellType(value) {
|
|
31779
31779
|
return SCRIPT_SHELL_TYPES.find((shell) => shell.value === value);
|
|
@@ -31824,7 +31824,7 @@ function ScriptsTable({
|
|
|
31824
31824
|
SCRIPT_COLUMNS.authorId,
|
|
31825
31825
|
(row) => row.author ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
31826
31826
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31827
|
-
|
|
31827
|
+
_chunkABLUMGCIcjs.SquareAvatar,
|
|
31828
31828
|
{
|
|
31829
31829
|
variant: "round",
|
|
31830
31830
|
size: "sm",
|
|
@@ -31834,7 +31834,7 @@ function ScriptsTable({
|
|
|
31834
31834
|
initialsClassName: "text-ods-text-secondary"
|
|
31835
31835
|
}
|
|
31836
31836
|
),
|
|
31837
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31837
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { children: row.author.name }) })
|
|
31838
31838
|
] }) : null
|
|
31839
31839
|
)
|
|
31840
31840
|
];
|
|
@@ -31955,7 +31955,7 @@ function slotValue(minutesOfDay) {
|
|
|
31955
31955
|
return `${String(hours).padStart(2, "0")}:${String(minutes).padStart(2, "0")}`;
|
|
31956
31956
|
}
|
|
31957
31957
|
function slotLabel(minutesOfDay) {
|
|
31958
|
-
return
|
|
31958
|
+
return _chunk5TCIRWHLcjs.formatTime.call(void 0, new Date(1970, 0, 1, Math.floor(minutesOfDay / 60), minutesOfDay % 60));
|
|
31959
31959
|
}
|
|
31960
31960
|
function getTimeSlotOptions(forDate, timeReference) {
|
|
31961
31961
|
const base = slotBaseMinutes(timeReference);
|
|
@@ -32174,9 +32174,9 @@ function ReconnectWindowFields({
|
|
|
32174
32174
|
invalid
|
|
32175
32175
|
}
|
|
32176
32176
|
),
|
|
32177
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
32178
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32179
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32177
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkU2O5YQRPcjs.Select, { value: unit, onValueChange: (next) => onUnitChange(next), disabled, children: [
|
|
32178
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectTrigger, { className: controlWidth, "aria-label": "Stop retry after unit", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectValue, {}) }),
|
|
32179
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectContent, { children: DURATION_UNIT_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
32180
32180
|
] })
|
|
32181
32181
|
] });
|
|
32182
32182
|
}
|
|
@@ -32242,7 +32242,7 @@ function ScheduleOfflineFields({ showErrors, disabled = false }) {
|
|
|
32242
32242
|
}
|
|
32243
32243
|
),
|
|
32244
32244
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pt-[var(--spacing-system-xs)] content-md:hidden", children: windowFieldsFor(true) }),
|
|
32245
|
-
intervalError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute bottom-0 left-0 right-0 translate-y-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32245
|
+
intervalError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute bottom-0 left-0 right-0 translate-y-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { variant: "h6", className: "text-ods-error", children: intervalError }) })
|
|
32246
32246
|
]
|
|
32247
32247
|
}
|
|
32248
32248
|
) }) })
|
|
@@ -32318,7 +32318,7 @@ function useSortableListContext() {
|
|
|
32318
32318
|
}
|
|
32319
32319
|
function SortableList({ onReorder, getItemLabel, disabled = false, className, children }) {
|
|
32320
32320
|
const listRef = _react.useRef.call(void 0, null);
|
|
32321
|
-
const dragAndDropEnabled =
|
|
32321
|
+
const dragAndDropEnabled = _chunkLU7TD6QScjs.useDragAndDropEnabled.call(void 0, );
|
|
32322
32322
|
const dragType = _react.useId.call(void 0, );
|
|
32323
32323
|
const [announcement, setAnnouncement] = _react.useState.call(void 0, "");
|
|
32324
32324
|
const onReorderRef = _react.useRef.call(void 0, onReorder);
|
|
@@ -32351,8 +32351,8 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
|
|
|
32351
32351
|
// Dragging towards the edge of the screen — or past it — scrolls whatever
|
|
32352
32352
|
// actually scrolls there: the page, the layout's `<main>`, or the list
|
|
32353
32353
|
// itself when it has its own overflow.
|
|
32354
|
-
|
|
32355
|
-
|
|
32354
|
+
_chunkURVIPSAJcjs.autoScrollAncestors.call(void 0, list),
|
|
32355
|
+
_chunkURVIPSAJcjs.autoScrollBothWays.call(void 0, list),
|
|
32356
32356
|
// One target for the whole list: which slot a drop lands in is answered by
|
|
32357
32357
|
// geometry, so this only has to say "inside the list, or outside it".
|
|
32358
32358
|
_adapter.dropTargetForElements.call(void 0, {
|
|
@@ -32410,7 +32410,7 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
|
|
|
32410
32410
|
})
|
|
32411
32411
|
);
|
|
32412
32412
|
}, [dragType, disabled, dragAndDropEnabled, readItems, reorder]);
|
|
32413
|
-
|
|
32413
|
+
_chunkDGFDBPO7cjs.useIsomorphicLayoutEffect.call(void 0, () => {
|
|
32414
32414
|
const from = flipFrom.current;
|
|
32415
32415
|
flipFrom.current = null;
|
|
32416
32416
|
if (!from) return;
|
|
@@ -32649,7 +32649,7 @@ function useSortableItem() {
|
|
|
32649
32649
|
return _combine.combine.call(void 0,
|
|
32650
32650
|
// The drag has to start as a "move", or its first frame is drawn with the
|
|
32651
32651
|
// copy cursor — see `drag-effect.ts`.
|
|
32652
|
-
|
|
32652
|
+
_chunkURVIPSAJcjs.holdMoveDragEffect.call(void 0, item),
|
|
32653
32653
|
_adapter.draggable.call(void 0, {
|
|
32654
32654
|
element: item,
|
|
32655
32655
|
dragHandle: handle,
|
|
@@ -32696,7 +32696,7 @@ function ScheduleScriptPickerCard({
|
|
|
32696
32696
|
const selected = watch(`scripts.${index}`);
|
|
32697
32697
|
const runParamsLocked = disabled || !_optionalChain([selected, 'optionalAccess', _695 => _695.scriptId]);
|
|
32698
32698
|
const { itemRef, dragHandleProps, isDragging, dragAndDropEnabled } = useSortableItem();
|
|
32699
|
-
const isMdUp =
|
|
32699
|
+
const isMdUp = _chunkR34JD6NPcjs.useContentMdUp.call(void 0, );
|
|
32700
32700
|
const handleScriptPick = (row) => {
|
|
32701
32701
|
if (!row) {
|
|
32702
32702
|
setValue(`scripts.${index}`, EMPTY_SCHEDULE_SCRIPT_ROW, { shouldValidate: true });
|
|
@@ -33073,24 +33073,24 @@ function ScheduleTimingFields({
|
|
|
33073
33073
|
// `''` reads as "no selection" to Radix, so the placeholder shows
|
|
33074
33074
|
// until a slot is picked — a date at midnight no longer
|
|
33075
33075
|
// masquerades as a chosen 12:00 AM.
|
|
33076
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33076
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkU2O5YQRPcjs.Select, { value: field.value, onValueChange: field.onChange, disabled: fieldsDisabled, children: [
|
|
33077
33077
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33078
|
-
|
|
33078
|
+
_chunkU2O5YQRPcjs.SelectTrigger,
|
|
33079
33079
|
{
|
|
33080
33080
|
className: "w-full",
|
|
33081
33081
|
error: _nullishCoalesce(pastTimeError, () => ( (showErrors ? _optionalChain([fieldState, 'access', _706 => _706.error, 'optionalAccess', _707 => _707.message]) : void 0))),
|
|
33082
33082
|
invalid: !!pastTimeError || showErrors && !!fieldState.error,
|
|
33083
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33083
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectValue, { placeholder: "Select time" })
|
|
33084
33084
|
}
|
|
33085
33085
|
),
|
|
33086
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33086
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectContent, { children: timeSlots.length === 0 ? (
|
|
33087
33087
|
// Deliberately NOT a `SelectItem` — there is nothing here
|
|
33088
33088
|
// to select, and a selectable row would put a bogus value
|
|
33089
33089
|
// in the form. It replaces a popup that opened blank; the
|
|
33090
33090
|
// Date field carries the same sentence for whoever never
|
|
33091
33091
|
// opens this one.
|
|
33092
33092
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "px-4 py-[var(--spacing-system-sf)] text-ods-text-secondary text-h6", children: NO_SLOTS_TODAY_MESSAGE })
|
|
33093
|
-
) : timeSlots.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33093
|
+
) : timeSlots.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
33094
33094
|
] })
|
|
33095
33095
|
)
|
|
33096
33096
|
}
|
|
@@ -33104,14 +33104,14 @@ function ScheduleTimingFields({
|
|
|
33104
33104
|
name: "timeReference",
|
|
33105
33105
|
control,
|
|
33106
33106
|
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33107
|
-
|
|
33107
|
+
_chunkU2O5YQRPcjs.Select,
|
|
33108
33108
|
{
|
|
33109
33109
|
value: field.value,
|
|
33110
33110
|
onValueChange: (next) => handleTimeReferenceChange(field.onChange, next),
|
|
33111
33111
|
disabled: fieldsDisabled,
|
|
33112
33112
|
children: [
|
|
33113
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33114
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33113
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectTrigger, { className: "w-full", "aria-label": "Timezone", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectValue, {}) }),
|
|
33114
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectContent, { children: SCHEDULE_TIME_REFERENCE_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
33115
33115
|
]
|
|
33116
33116
|
}
|
|
33117
33117
|
)
|
|
@@ -33171,7 +33171,7 @@ function ScheduleTimingFields({
|
|
|
33171
33171
|
name: "repeatUnit",
|
|
33172
33172
|
control,
|
|
33173
33173
|
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33174
|
-
|
|
33174
|
+
_chunkU2O5YQRPcjs.Select,
|
|
33175
33175
|
{
|
|
33176
33176
|
value: field.value,
|
|
33177
33177
|
onValueChange: (next) => {
|
|
@@ -33182,8 +33182,8 @@ function ScheduleTimingFields({
|
|
|
33182
33182
|
},
|
|
33183
33183
|
disabled: fieldsDisabled || !repeatEnabled,
|
|
33184
33184
|
children: [
|
|
33185
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33186
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33185
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectValue, {}) }),
|
|
33186
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectContent, { children: DURATION_UNIT_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
33187
33187
|
]
|
|
33188
33188
|
}
|
|
33189
33189
|
)
|
|
@@ -33202,7 +33202,7 @@ function ScheduleFormFields({
|
|
|
33202
33202
|
disabled = false,
|
|
33203
33203
|
renderScriptSearch,
|
|
33204
33204
|
timeReferenceGate = "off",
|
|
33205
|
-
platforms =
|
|
33205
|
+
platforms = _chunkPS6T65KAcjs.OS_PLATFORMS,
|
|
33206
33206
|
comingSoonPlatforms = [],
|
|
33207
33207
|
getTimeSlots,
|
|
33208
33208
|
nameLayout = "stacked",
|
|
@@ -33215,7 +33215,7 @@ function ScheduleFormFields({
|
|
|
33215
33215
|
addScripts = true
|
|
33216
33216
|
}) {
|
|
33217
33217
|
const { control, formState, getValues, setValue } = _reacthookform.useFormContext.call(void 0, );
|
|
33218
|
-
const isMdUp =
|
|
33218
|
+
const isMdUp = _chunkR34JD6NPcjs.useContentMdUp.call(void 0, );
|
|
33219
33219
|
const supportedPlatforms = _reacthookform.useWatch.call(void 0, { control, name: "supportedPlatforms" });
|
|
33220
33220
|
const togglePlatform = _react.useCallback.call(void 0,
|
|
33221
33221
|
(platform) => {
|
|
@@ -33272,7 +33272,7 @@ function ScheduleFormFields({
|
|
|
33272
33272
|
platform.id
|
|
33273
33273
|
);
|
|
33274
33274
|
}) }),
|
|
33275
|
-
showErrors && formState.errors.supportedPlatforms && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute bottom-0 left-0 right-0 translate-y-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33275
|
+
showErrors && formState.errors.supportedPlatforms && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute bottom-0 left-0 right-0 translate-y-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { variant: "h6", className: "text-ods-error", children: _nullishCoalesce(formState.errors.supportedPlatforms.message, () => ( "")) }) })
|
|
33276
33276
|
]
|
|
33277
33277
|
}
|
|
33278
33278
|
);
|
|
@@ -33348,7 +33348,7 @@ function ScheduleFormFields({
|
|
|
33348
33348
|
// src/components/features/scripts/schedule-form/schedule-script-search-field.tsx
|
|
33349
33349
|
|
|
33350
33350
|
function ScriptPlatformIcons({ platforms }) {
|
|
33351
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex shrink-0 items-center gap-0.5", children:
|
|
33351
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex shrink-0 items-center gap-0.5", children: _chunkPS6T65KAcjs.OS_PLATFORMS.filter((p) => platforms.includes(p.id)).map((p) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, p.icon, { className: "h-3.5 w-3.5 text-ods-text-secondary opacity-60" }, p.id)) });
|
|
33352
33352
|
}
|
|
33353
33353
|
function ScheduleScriptSearchField({
|
|
33354
33354
|
scriptId,
|
|
@@ -33374,7 +33374,7 @@ function ScheduleScriptSearchField({
|
|
|
33374
33374
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-[var(--spacing-system-xxs)]", onFocus: onOpen, onBlur: handleBlur, children: [
|
|
33375
33375
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK6VWTUCHcjs.Label, { className: "text-h4", children: "Select Script" }),
|
|
33376
33376
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33377
|
-
|
|
33377
|
+
_chunkU2O5YQRPcjs.Autocomplete,
|
|
33378
33378
|
{
|
|
33379
33379
|
options,
|
|
33380
33380
|
value: scriptId || null,
|
|
@@ -33389,7 +33389,7 @@ function ScheduleScriptSearchField({
|
|
|
33389
33389
|
error,
|
|
33390
33390
|
invalid,
|
|
33391
33391
|
renderOption: (option, isSelected) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex w-full min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
33392
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33392
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { className: isSelected ? "text-ods-accent" : void 0, children: option.label }) }),
|
|
33393
33393
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScriptPlatformIcons, { platforms: _nullishCoalesce(_optionalChain([scripts, 'access', _713 => _713.find, 'call', _714 => _714((s) => s.id === option.value), 'optionalAccess', _715 => _715.supportedPlatforms]), () => ( [])) })
|
|
33394
33394
|
] })
|
|
33395
33395
|
}
|
|
@@ -33421,7 +33421,7 @@ function getKnowledgeBaseOpenColumn(getHref) {
|
|
|
33421
33421
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33422
33422
|
_chunk2QMBXGMQcjs.Button,
|
|
33423
33423
|
{
|
|
33424
|
-
onClick:
|
|
33424
|
+
onClick: _chunkPS6T65KAcjs.openInNewTab.call(void 0, getHref(row.original)),
|
|
33425
33425
|
variant: "outline",
|
|
33426
33426
|
size: "icon",
|
|
33427
33427
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
@@ -33447,9 +33447,9 @@ function getKnowledgeBaseColumns(mode) {
|
|
|
33447
33447
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative flex h-8 w-8 shrink-0 items-center justify-center rounded-[6px] border border-ods-border", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { size: 16, className: "shrink-0 text-ods-text-secondary" }) }),
|
|
33448
33448
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
33449
33449
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
33450
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33450
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { children: item.name }) }),
|
|
33451
33451
|
tagStatus && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33452
|
-
|
|
33452
|
+
_chunkABLUMGCIcjs.Tag,
|
|
33453
33453
|
{
|
|
33454
33454
|
variant: KNOWLEDGE_BASE_STATUS_VARIANT[tagStatus],
|
|
33455
33455
|
label: tagStatus,
|
|
@@ -33457,7 +33457,7 @@ function getKnowledgeBaseColumns(mode) {
|
|
|
33457
33457
|
}
|
|
33458
33458
|
)
|
|
33459
33459
|
] }),
|
|
33460
|
-
item.type === "ARTICLE" && item.summary && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33460
|
+
item.type === "ARTICLE" && item.summary && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { variant: "h6", tone: "secondary", children: item.summary })
|
|
33461
33461
|
] })
|
|
33462
33462
|
] });
|
|
33463
33463
|
},
|
|
@@ -33472,8 +33472,8 @@ function getKnowledgeBaseColumns(mode) {
|
|
|
33472
33472
|
const ts = mode === "archive" ? _nullishCoalesce(row.original.updatedAt, () => ( row.original.createdAt)) : row.original.createdAt;
|
|
33473
33473
|
if (!ts) return null;
|
|
33474
33474
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col whitespace-nowrap", children: [
|
|
33475
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-primary text-h4", children:
|
|
33476
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-heading-5 text-ods-text-secondary", children:
|
|
33475
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-primary text-h4", children: _chunk5TCIRWHLcjs.formatDate.call(void 0, ts) }),
|
|
33476
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-heading-5 text-ods-text-secondary", children: _chunk5TCIRWHLcjs.formatTime.call(void 0, ts) })
|
|
33477
33477
|
] });
|
|
33478
33478
|
},
|
|
33479
33479
|
enableSorting: false,
|
|
@@ -33537,7 +33537,7 @@ function KnowledgeBaseArticleView({
|
|
|
33537
33537
|
className = "px-[var(--spacing-system-l)] pb-[var(--spacing-system-l)]"
|
|
33538
33538
|
}) {
|
|
33539
33539
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33540
|
-
|
|
33540
|
+
_chunkU2O5YQRPcjs.PageLayout,
|
|
33541
33541
|
{
|
|
33542
33542
|
title,
|
|
33543
33543
|
backButton: onBack ? { label: "Back", onClick: onBack } : void 0,
|
|
@@ -33546,11 +33546,11 @@ function KnowledgeBaseArticleView({
|
|
|
33546
33546
|
menuActions,
|
|
33547
33547
|
className,
|
|
33548
33548
|
children: [
|
|
33549
|
-
tags.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-[var(--spacing-system-xsf)]", children: tags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33550
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33549
|
+
tags.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-[var(--spacing-system-xsf)]", children: tags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABLUMGCIcjs.Tag, { label: tag.label, variant: "outline", className: "max-w-full" }, tag.id)) }),
|
|
33550
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5MH6BRPYcjs.Card, { className: "border-ods-border px-[var(--spacing-system-mf)] py-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-2 gap-x-[var(--spacing-system-mf)] content-lg:grid-cols-3", children: [
|
|
33551
33551
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
33552
|
-
author.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33553
|
-
|
|
33552
|
+
author.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkURVIPSAJcjs.DeletedUserAvatar, { size: "md" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33553
|
+
_chunkABLUMGCIcjs.SquareAvatar,
|
|
33554
33554
|
{
|
|
33555
33555
|
src: author.imageUrl,
|
|
33556
33556
|
fallback: _nullishCoalesce(author.name, () => ( "A")),
|
|
@@ -33560,12 +33560,12 @@ function KnowledgeBaseArticleView({
|
|
|
33560
33560
|
}
|
|
33561
33561
|
),
|
|
33562
33562
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
33563
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33563
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { className: author.deleted ? "text-ods-error" : void 0, children: _nullishCoalesce(author.name, () => ( "Unknown")) }),
|
|
33564
33564
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Author" })
|
|
33565
33565
|
] })
|
|
33566
33566
|
] }),
|
|
33567
33567
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 min-w-0 flex-col justify-center", children: [
|
|
33568
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33568
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { children: updatedLabel }),
|
|
33569
33569
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Updated" })
|
|
33570
33570
|
] }),
|
|
33571
33571
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -33576,7 +33576,7 @@ function KnowledgeBaseArticleView({
|
|
|
33576
33576
|
}
|
|
33577
33577
|
),
|
|
33578
33578
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 min-w-0 flex-col items-start justify-center gap-[var(--spacing-system-xxs)]", children: [
|
|
33579
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33579
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABLUMGCIcjs.Tag, { variant: KNOWLEDGE_BASE_STATUS_VARIANT[status], label: status }),
|
|
33580
33580
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Status" })
|
|
33581
33581
|
] })
|
|
33582
33582
|
] }) }),
|
|
@@ -33659,7 +33659,7 @@ function ConversationCard({
|
|
|
33659
33659
|
agent,
|
|
33660
33660
|
className
|
|
33661
33661
|
}) {
|
|
33662
|
-
const tint =
|
|
33662
|
+
const tint = _chunkQYLIHZKZcjs.useAgentTint.call(void 0, agent);
|
|
33663
33663
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33664
33664
|
"div",
|
|
33665
33665
|
{
|
|
@@ -33669,13 +33669,13 @@ function ConversationCard({
|
|
|
33669
33669
|
),
|
|
33670
33670
|
style: tint,
|
|
33671
33671
|
children: [
|
|
33672
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33672
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPS6T65KAcjs.ChatTurn, { avatar: requester.avatar, name: requester.name, meta: requester.meta, time: requester.time, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "m-0 line-clamp-2 min-h-[2lh] text-ods-text-primary text-h3", title: request, children: [
|
|
33673
33673
|
"\u201C",
|
|
33674
33674
|
request,
|
|
33675
33675
|
"\u201D"
|
|
33676
33676
|
] }) }),
|
|
33677
33677
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33678
|
-
|
|
33678
|
+
_chunkPS6T65KAcjs.ChatTurn,
|
|
33679
33679
|
{
|
|
33680
33680
|
avatar: responder.avatar,
|
|
33681
33681
|
name: responder.name,
|
|
@@ -33691,7 +33691,7 @@ function ConversationCard({
|
|
|
33691
33691
|
),
|
|
33692
33692
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mt-auto flex items-center justify-between gap-[var(--spacing-system-sf)] text-ods-text-secondary text-h6", children: [
|
|
33693
33693
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: footerLabel }),
|
|
33694
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33694
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABLUMGCIcjs.Tag, { as: "span", label: footerValue, variant: footerTone === "attention" ? "warning" : "badge" })
|
|
33695
33695
|
] })
|
|
33696
33696
|
]
|
|
33697
33697
|
}
|
|
@@ -33711,7 +33711,7 @@ function Highlights({ items, className }) {
|
|
|
33711
33711
|
if (items.length === 0) return null;
|
|
33712
33712
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: _chunk3ATAYP36cjs.cn.call(void 0, "grid grid-cols-1 gap-2", className), children: items.slice(0, 3).map((text) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "li", { className: "flex min-w-0 items-center gap-2.5", children: [
|
|
33713
33713
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { size: 16, className: "shrink-0 text-ods-flamingo-cyan" }),
|
|
33714
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33714
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { variant: "h6", triggerClassName: "flex-1", children: text })
|
|
33715
33715
|
] }, text)) });
|
|
33716
33716
|
}
|
|
33717
33717
|
function Example({
|
|
@@ -33740,7 +33740,7 @@ function Example({
|
|
|
33740
33740
|
mark(_nullishCoalesce(_optionalChain([requester, 'optionalAccess', _717 => _717.mark]), () => ( requesterMark))),
|
|
33741
33741
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
33742
33742
|
who(_nullishCoalesce(_optionalChain([requester, 'optionalAccess', _718 => _718.name]), () => ( labels.requester)), _nullishCoalesce(_optionalChain([requester, 'optionalAccess', _719 => _719.note]), () => ( labels.requesterNote))),
|
|
33743
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33743
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { lines: 2, variant: "h4", className: "min-h-[2lh]", children: `\u201C${example.request}\u201D` })
|
|
33744
33744
|
] })
|
|
33745
33745
|
] }),
|
|
33746
33746
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 gap-2.5 border-t border-ods-border pt-3", children: [
|
|
@@ -33749,7 +33749,7 @@ function Example({
|
|
|
33749
33749
|
who(_nullishCoalesce(_optionalChain([responder, 'optionalAccess', _721 => _721.name]), () => ( labels.responder)), _nullishCoalesce(_optionalChain([responder, 'optionalAccess', _722 => _722.note]), () => ( labels.responderNote))),
|
|
33750
33750
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-start gap-2", children: [
|
|
33751
33751
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { size: 16, className: "mt-0.5 shrink-0 text-ods-flamingo-cyan" }),
|
|
33752
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33752
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { lines: 2, variant: "h6", tone: "secondary", className: "min-h-[2lh]", triggerClassName: "flex-1", children: example.outcome })
|
|
33753
33753
|
] })
|
|
33754
33754
|
] })
|
|
33755
33755
|
] })
|
|
@@ -33881,7 +33881,7 @@ function CapabilityExplorer({
|
|
|
33881
33881
|
responderMark,
|
|
33882
33882
|
className
|
|
33883
33883
|
}) {
|
|
33884
|
-
const wide =
|
|
33884
|
+
const wide = _chunkR34JD6NPcjs.useContentLgUp.call(void 0, );
|
|
33885
33885
|
const listRef = _react.useRef.call(void 0, null);
|
|
33886
33886
|
if (items.length === 0) return null;
|
|
33887
33887
|
if (wide === void 0) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CapabilityExplorerSkeleton, { className });
|
|
@@ -33906,16 +33906,16 @@ function CapabilityExplorer({
|
|
|
33906
33906
|
),
|
|
33907
33907
|
children: [
|
|
33908
33908
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
33909
|
-
item.iconName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex size-9 shrink-0 items-center justify-center rounded-lg border border-ods-border bg-ods-bg text-ods-flamingo-cyan", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33909
|
+
item.iconName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex size-9 shrink-0 items-center justify-center rounded-lg border border-ods-border bg-ods-bg text-ods-flamingo-cyan", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5MH6BRPYcjs.EntityIcon, { icon: { name: item.iconName }, size: 18 }) }),
|
|
33910
33910
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
33911
33911
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "h3", { className: "flex min-w-0 items-center gap-2 text-ods-text-primary text-h4", children: [
|
|
33912
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33912
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { as: "span", variant: "h4", triggerClassName: "flex-1", children: item.title }),
|
|
33913
33913
|
item.badge
|
|
33914
33914
|
] }),
|
|
33915
|
-
item.caption && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33915
|
+
item.caption && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { variant: "h6", tone: "secondary", children: item.caption })
|
|
33916
33916
|
] })
|
|
33917
33917
|
] }),
|
|
33918
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33918
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { lines: 3, variant: "h6", tone: "secondary", className: "min-h-[3lh]", children: item.intro }),
|
|
33919
33919
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0 overflow-hidden rounded-lg border border-ods-border", children: renderScreen(item, { compact: true }) }),
|
|
33920
33920
|
item.example && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33921
33921
|
Example,
|
|
@@ -33990,7 +33990,7 @@ function CapabilityExplorer({
|
|
|
33990
33990
|
"flex size-9 shrink-0 items-center justify-center rounded-lg border border-ods-border bg-ods-bg",
|
|
33991
33991
|
selected ? "text-ods-flamingo-cyan" : "text-ods-text-secondary"
|
|
33992
33992
|
),
|
|
33993
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33993
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5MH6BRPYcjs.EntityIcon, { icon: { name: item.iconName }, size: 18 })
|
|
33994
33994
|
}
|
|
33995
33995
|
),
|
|
33996
33996
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "min-w-0 flex-1", children: [
|
|
@@ -34043,8 +34043,8 @@ function CapabilityExplorer({
|
|
|
34043
34043
|
),
|
|
34044
34044
|
children: [
|
|
34045
34045
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col overflow-hidden", children: [
|
|
34046
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34047
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34046
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { lines: 2, variant: "h2", className: "mb-2", children: active.title }),
|
|
34047
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.TruncateText, { lines: 3, variant: "h4", tone: "secondary", className: "min-h-[3lh]", children: active.intro }),
|
|
34048
34048
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Highlights, { items: _nullishCoalesce(active.highlights, () => ( [])), className: "mt-auto" })
|
|
34049
34049
|
] }),
|
|
34050
34050
|
active.example && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|