@flamingo-stack/openframe-frontend-core 0.0.810 → 0.0.811
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/{case-study-card-MEWJNF4N.cjs → case-study-card-AMINZROX.cjs} +5 -5
- package/dist/{chunk-FRS2VO22.cjs → chunk-243TS7YL.cjs} +38 -38
- package/dist/{chunk-GAHXURKJ.cjs → chunk-5QLDHPPU.cjs} +2 -2
- package/dist/{chunk-MAQFG62O.cjs → chunk-66J7ZSI5.cjs} +34 -34
- package/dist/{chunk-RKNCNL6K.cjs → chunk-6GT3ZL27.cjs} +28 -28
- package/dist/{chunk-PRCGRDHV.cjs → chunk-7Y6M4FW4.cjs} +5 -5
- package/dist/{chunk-TOWVMBAP.cjs → chunk-ACCZCRXT.cjs} +14 -14
- package/dist/{chunk-VXAKQRV7.cjs → chunk-APOMNC7H.cjs} +5 -5
- package/dist/{chunk-3FBXQSSC.cjs → chunk-CB77J5L7.cjs} +858 -664
- package/dist/{chunk-VHX4A4SA.cjs → chunk-CC3Q3MQG.cjs} +2 -2
- package/dist/{chunk-TOTR2WMH.cjs → chunk-CJ7W2SY4.cjs} +8 -8
- package/dist/{chunk-CZWQCYKV.cjs → chunk-CLU2KJFB.cjs} +3 -3
- package/dist/{chunk-OJZBZH56.cjs → chunk-CNTBGJA7.cjs} +3 -3
- package/dist/{chunk-F26COFTW.cjs → chunk-CPP2APON.cjs} +89 -89
- package/dist/{chunk-TT64NRFU.cjs → chunk-ERLMCSGF.cjs} +3 -3
- package/dist/{chunk-RPBOWCME.cjs → chunk-FK2WFU7R.cjs} +17 -17
- package/dist/{chunk-7PNRXJX2.cjs → chunk-FX35L4Y6.cjs} +3 -3
- package/dist/{chunk-5GJM7VRR.cjs → chunk-GI3MMBP3.cjs} +91 -26
- package/dist/{chunk-EKDLVUEA.cjs → chunk-GU3GJ5DH.cjs} +48 -48
- package/dist/{chunk-X2JSCOOR.cjs → chunk-IQLXO6EI.cjs} +97 -97
- package/dist/{chunk-J4QORJMC.cjs → chunk-J6C7F63P.cjs} +113 -113
- package/dist/{chunk-PIKHEBG5.cjs → chunk-JNWJB4Z5.cjs} +52 -52
- package/dist/{chunk-5MTYKS2Q.cjs → chunk-KVDUWXVZ.cjs} +4 -4
- package/dist/{chunk-V4FXUIMH.cjs → chunk-LC65AC6M.cjs} +4 -4
- package/dist/{chunk-FCFYZIOY.cjs → chunk-MDBOYMCW.cjs} +22 -22
- package/dist/{chunk-AQXKXZWB.cjs → chunk-MG3HJIGG.cjs} +4 -4
- package/dist/{chunk-KVJKKVB3.cjs → chunk-NZSWROGM.cjs} +7 -7
- package/dist/{chunk-B6DIM5JG.cjs → chunk-O32RLIN4.cjs} +6 -6
- package/dist/{chunk-2C63MX75.cjs → chunk-O4MEG2ZS.cjs} +21 -21
- package/dist/{chunk-4W77VLQV.cjs → chunk-OQDPZOGC.cjs} +6 -6
- package/dist/{chunk-ZXBRPQND.cjs → chunk-PCVY63WQ.cjs} +17 -17
- package/dist/{chunk-ML3DG4SS.cjs → chunk-PMOMZSCX.cjs} +5 -5
- package/dist/{chunk-TUZV2ZQY.cjs → chunk-Q7QYAINS.cjs} +2 -2
- package/dist/{chunk-ETI7OMPU.cjs → chunk-R55KNVPR.cjs} +71 -71
- package/dist/{chunk-NG3RKTQU.cjs → chunk-SFUNXMY3.cjs} +8 -8
- package/dist/{chunk-GG36TCKP.cjs → chunk-TKK66KHU.cjs} +6 -6
- package/dist/{chunk-TGOJHOQR.cjs → chunk-U2MHQBL4.cjs} +3 -3
- package/dist/{chunk-I3RJLXEL.cjs → chunk-UP3TLY2V.cjs} +131 -131
- package/dist/{chunk-CLMUD56S.cjs → chunk-VXMPVDOS.cjs} +26 -26
- package/dist/{chunk-MSAXZRXZ.cjs → chunk-WX5WDSKV.cjs} +583 -582
- package/dist/{chunk-R2ABQG2T.cjs → chunk-XLEWM5X5.cjs} +53 -53
- package/dist/{chunk-SZHDXXMK.cjs → chunk-YSDB6HGQ.cjs} +3 -3
- package/dist/{chunk-JLKGLPDC.cjs → chunk-ZW25QUJK.cjs} +16 -16
- package/dist/{chunk-FLW2VL5W.cjs → chunk-ZZO3FGPM.cjs} +24 -24
- package/dist/{cloud-tenants-QTASS5KP.cjs → cloud-tenants-XGGQG7SO.cjs} +24 -24
- package/dist/components/case-studies/index.cjs +40 -40
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/dispatch.js +4 -1
- package/dist/components/chat/index.cjs +18 -18
- 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 +129 -129
- package/dist/components/index.cjs +89 -89
- package/dist/components/meeting-scheduler/index.cjs +93 -93
- package/dist/components/navigation/index.cjs +27 -27
- package/dist/components/onboarding-guides/index.cjs +27 -27
- package/dist/components/product-demo/index.cjs +35 -35
- package/dist/components/related-content/index.cjs +14 -14
- package/dist/components/tickets/index.cjs +31 -31
- package/dist/components/ui/index.cjs +24 -24
- package/dist/components/ui/markdown/base-components.d.ts.map +1 -1
- package/dist/components/ui/markdown/base-components.js +6 -7
- package/dist/components/ui/markdown/engine.d.ts +7 -0
- package/dist/components/ui/markdown/engine.d.ts.map +1 -1
- package/dist/components/ui/markdown/engine.js +12 -3
- package/dist/components/ui/markdown/external-media-notice.d.ts +33 -0
- package/dist/components/ui/markdown/external-media-notice.d.ts.map +1 -0
- package/dist/components/ui/markdown/external-media-notice.js +56 -0
- package/dist/components/ui/markdown/mermaid-diagram.d.ts +24 -2
- package/dist/components/ui/markdown/mermaid-diagram.d.ts.map +1 -1
- package/dist/components/ui/markdown/mermaid-diagram.js +66 -6
- package/dist/components/ui/markdown/rich/rich-markdown-renderer.d.ts +4 -4
- package/dist/components/ui/markdown/rich/rich-markdown-renderer.d.ts.map +1 -1
- package/dist/components/ui/markdown/rich/rich-markdown-renderer.js +2 -1
- package/dist/components/ui/markdown/sanitize.d.ts +28 -3
- package/dist/components/ui/markdown/sanitize.d.ts.map +1 -1
- package/dist/components/ui/markdown/sanitize.js +84 -12
- package/dist/components/ui/markdown/simple-markdown-renderer.d.ts +3 -2
- package/dist/components/ui/markdown/simple-markdown-renderer.d.ts.map +1 -1
- package/dist/{devices-KPMQI57Y.cjs → devices-H5Y4DBVC.cjs} +25 -25
- package/dist/{embeddable-chat-LB7NDFVQ.cjs → embeddable-chat-77ZOLCCK.cjs} +88 -88
- package/dist/hooks/index.cjs +10 -10
- package/dist/index.cjs +29 -29
- package/dist/{knowledge-JWGBY3ZJ.cjs → knowledge-MGH65HXM.cjs} +25 -25
- package/dist/{logs-QENTXKWY.cjs → logs-OL7ETVK6.cjs} +32 -32
- package/dist/{policies-2HXFZ2EL.cjs → policies-BCECWQ3F.cjs} +28 -28
- package/dist/{remote-session-LMUFV2RZ.cjs → remote-session-HML4UF7W.cjs} +11 -11
- package/dist/{scripts-TMXULK6L.cjs → scripts-XCD6V2JB.cjs} +31 -31
- package/dist/{software-update-H2LAEWDN.cjs → software-update-U5ESXRG5.cjs} +28 -28
- package/dist/{tickets-board-QF5JNSH2.cjs → tickets-board-EICQ5VLE.cjs} +14 -14
- package/dist/utils/app-origins.d.ts +41 -0
- package/dist/utils/app-origins.d.ts.map +1 -0
- package/dist/utils/app-origins.js +51 -0
- package/dist/utils/embed-auth-adapter-registry.d.ts +7 -0
- package/dist/utils/embed-auth-adapter-registry.d.ts.map +1 -0
- package/dist/utils/embed-auth-adapter-registry.js +34 -0
- package/dist/utils/embed-authed-fetch.d.ts.map +1 -1
- package/dist/utils/embed-authed-fetch.js +6 -19
- package/dist/utils/index.cjs +28 -12
- package/dist/{video-file-player-2FMFCGXE.cjs → video-file-player-4QMVTOBE.cjs} +3 -3
- package/package.json +1 -1
- package/src/components/chat/entity-cards/dispatch.tsx +12 -1
- package/src/components/ui/markdown/base-components.tsx +6 -7
- package/src/components/ui/markdown/engine.tsx +29 -5
- package/src/components/ui/markdown/external-media-notice.tsx +84 -0
- package/src/components/ui/markdown/mermaid-diagram.tsx +107 -5
- package/src/components/ui/markdown/rich/rich-markdown-renderer.tsx +11 -5
- package/src/components/ui/markdown/sanitize.ts +162 -15
- package/src/components/ui/markdown/simple-markdown-renderer.tsx +6 -2
- package/src/utils/app-origins.ts +95 -0
- package/src/utils/embed-auth-adapter-registry.ts +49 -0
- package/src/utils/embed-authed-fetch.ts +7 -35
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkZZO3FGPMcjs = require('./chunk-ZZO3FGPM.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -17,7 +17,7 @@ var _chunkFLW2VL5Wcjs = require('./chunk-FLW2VL5W.cjs');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkSFUNXMY3cjs = require('./chunk-SFUNXMY3.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -38,7 +38,7 @@ var _chunkNG3RKTQUcjs = require('./chunk-NG3RKTQU.cjs');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunk243TS7YLcjs = require('./chunk-243TS7YL.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
var _chunkDEY6XXGOcjs = require('./chunk-DEY6XXGO.cjs');
|
|
@@ -54,11 +54,11 @@ var _chunkDEY6XXGOcjs = require('./chunk-DEY6XXGO.cjs');
|
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
var
|
|
57
|
+
var _chunkGU3GJ5DHcjs = require('./chunk-GU3GJ5DH.cjs');
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
var
|
|
61
|
+
var _chunkAPOMNC7Hcjs = require('./chunk-APOMNC7H.cjs');
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
|
|
@@ -110,7 +110,7 @@ var _chunkYR74H7Z3cjs = require('./chunk-YR74H7Z3.cjs');
|
|
|
110
110
|
|
|
111
111
|
|
|
112
112
|
|
|
113
|
-
var
|
|
113
|
+
var _chunkJ6C7F63Pcjs = require('./chunk-J6C7F63P.cjs');
|
|
114
114
|
|
|
115
115
|
|
|
116
116
|
|
|
@@ -130,7 +130,7 @@ var _chunkJ4QORJMCcjs = require('./chunk-J4QORJMC.cjs');
|
|
|
130
130
|
|
|
131
131
|
|
|
132
132
|
|
|
133
|
-
var
|
|
133
|
+
var _chunkCB77J5L7cjs = require('./chunk-CB77J5L7.cjs');
|
|
134
134
|
|
|
135
135
|
|
|
136
136
|
|
|
@@ -144,7 +144,7 @@ var _chunk3FBXQSSCcjs = require('./chunk-3FBXQSSC.cjs');
|
|
|
144
144
|
|
|
145
145
|
|
|
146
146
|
|
|
147
|
-
var
|
|
147
|
+
var _chunkZW25QUJKcjs = require('./chunk-ZW25QUJK.cjs');
|
|
148
148
|
|
|
149
149
|
|
|
150
150
|
|
|
@@ -159,7 +159,7 @@ var _chunkJLKGLPDCcjs = require('./chunk-JLKGLPDC.cjs');
|
|
|
159
159
|
|
|
160
160
|
|
|
161
161
|
|
|
162
|
-
var
|
|
162
|
+
var _chunkNZSWROGMcjs = require('./chunk-NZSWROGM.cjs');
|
|
163
163
|
|
|
164
164
|
|
|
165
165
|
|
|
@@ -458,12 +458,12 @@ var _chunkXIBCMGBWcjs = require('./chunk-XIBCMGBW.cjs');
|
|
|
458
458
|
|
|
459
459
|
|
|
460
460
|
|
|
461
|
-
var
|
|
461
|
+
var _chunkERLMCSGFcjs = require('./chunk-ERLMCSGF.cjs');
|
|
462
462
|
|
|
463
463
|
|
|
464
464
|
|
|
465
465
|
|
|
466
|
-
var
|
|
466
|
+
var _chunkCNTBGJA7cjs = require('./chunk-CNTBGJA7.cjs');
|
|
467
467
|
|
|
468
468
|
|
|
469
469
|
var _chunkXYZBN6D7cjs = require('./chunk-XYZBN6D7.cjs');
|
|
@@ -489,7 +489,7 @@ var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
|
489
489
|
|
|
490
490
|
|
|
491
491
|
|
|
492
|
-
var
|
|
492
|
+
var _chunkUP3TLY2Vcjs = require('./chunk-UP3TLY2V.cjs');
|
|
493
493
|
|
|
494
494
|
|
|
495
495
|
|
|
@@ -498,7 +498,7 @@ var _chunkI3RJLXELcjs = require('./chunk-I3RJLXEL.cjs');
|
|
|
498
498
|
|
|
499
499
|
|
|
500
500
|
|
|
501
|
-
var
|
|
501
|
+
var _chunk7Y6M4FW4cjs = require('./chunk-7Y6M4FW4.cjs');
|
|
502
502
|
|
|
503
503
|
|
|
504
504
|
|
|
@@ -506,14 +506,14 @@ var _chunkPRCGRDHVcjs = require('./chunk-PRCGRDHV.cjs');
|
|
|
506
506
|
|
|
507
507
|
|
|
508
508
|
|
|
509
|
-
var
|
|
509
|
+
var _chunkOQDPZOGCcjs = require('./chunk-OQDPZOGC.cjs');
|
|
510
510
|
|
|
511
511
|
|
|
512
512
|
|
|
513
513
|
var _chunkP4B6PVSGcjs = require('./chunk-P4B6PVSG.cjs');
|
|
514
514
|
|
|
515
515
|
|
|
516
|
-
var
|
|
516
|
+
var _chunk5QLDHPPUcjs = require('./chunk-5QLDHPPU.cjs');
|
|
517
517
|
|
|
518
518
|
|
|
519
519
|
|
|
@@ -525,7 +525,7 @@ var _chunkGAHXURKJcjs = require('./chunk-GAHXURKJ.cjs');
|
|
|
525
525
|
|
|
526
526
|
|
|
527
527
|
|
|
528
|
-
var
|
|
528
|
+
var _chunkU2MHQBL4cjs = require('./chunk-U2MHQBL4.cjs');
|
|
529
529
|
|
|
530
530
|
|
|
531
531
|
var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
@@ -541,17 +541,17 @@ var _chunkNTPX5GXIcjs = require('./chunk-NTPX5GXI.cjs');
|
|
|
541
541
|
|
|
542
542
|
|
|
543
543
|
|
|
544
|
-
var
|
|
544
|
+
var _chunkMG3HJIGGcjs = require('./chunk-MG3HJIGG.cjs');
|
|
545
545
|
|
|
546
546
|
|
|
547
547
|
|
|
548
548
|
|
|
549
549
|
|
|
550
550
|
|
|
551
|
-
var
|
|
551
|
+
var _chunkLC65AC6Mcjs = require('./chunk-LC65AC6M.cjs');
|
|
552
552
|
|
|
553
553
|
|
|
554
|
-
var
|
|
554
|
+
var _chunkYSDB6HGQcjs = require('./chunk-YSDB6HGQ.cjs');
|
|
555
555
|
|
|
556
556
|
|
|
557
557
|
|
|
@@ -704,7 +704,7 @@ function ThemeProvider({ children, ...overrides }) {
|
|
|
704
704
|
var useTheme = _nextthemes.useTheme;
|
|
705
705
|
function useThemeToggle() {
|
|
706
706
|
const { resolvedTheme, theme, setTheme } = useTheme();
|
|
707
|
-
const mounted =
|
|
707
|
+
const mounted = _chunkCB77J5L7cjs.useIsHydrated.call(void 0, );
|
|
708
708
|
const active = mounted ? resolvedTheme === "light" || theme === "light" ? "light" : "dark" : DEFAULT_THEME;
|
|
709
709
|
const setOdsTheme = _react.useCallback.call(void 0, (next) => setTheme(next), [setTheme]);
|
|
710
710
|
const toggle = _react.useCallback.call(void 0, () => setTheme(active === "dark" ? "light" : "dark"), [active, setTheme]);
|
|
@@ -840,7 +840,7 @@ function AnnouncementBarView({
|
|
|
840
840
|
style
|
|
841
841
|
}) {
|
|
842
842
|
const handleContentClick = onContentClick ? () => {
|
|
843
|
-
if (!window.matchMedia(
|
|
843
|
+
if (!window.matchMedia(_chunkLC65AC6Mcjs.breakpoints.md).matches) onContentClick();
|
|
844
844
|
} : void 0;
|
|
845
845
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex w-full max-w-full items-center", ANNOUNCEMENT_BAR_HEIGHT_CLASS, className), style, children: [
|
|
846
846
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -913,7 +913,7 @@ function TimezoneSelect({
|
|
|
913
913
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
914
914
|
const options = _react.useMemo.call(void 0, () => timezoneOptions(value), [value]);
|
|
915
915
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
916
|
-
|
|
916
|
+
_chunk243TS7YLcjs.Autocomplete,
|
|
917
917
|
{
|
|
918
918
|
className,
|
|
919
919
|
fieldLoading: loading,
|
|
@@ -1110,7 +1110,7 @@ var _reactpopover = require('@radix-ui/react-popover'); var Popover = _interopRe
|
|
|
1110
1110
|
|
|
1111
1111
|
var _reactdaypicker = require('react-day-picker');
|
|
1112
1112
|
|
|
1113
|
-
var defaultFormatDate = (date) =>
|
|
1113
|
+
var defaultFormatDate = (date) => _chunkU2MHQBL4cjs.formatDateWithTimezone.call(void 0, date, _chunkU2MHQBL4cjs.VIEWER_TIMEZONE, "numeric", { viewerLocale: true });
|
|
1114
1114
|
var formatDateRange = (range, formatFn) => {
|
|
1115
1115
|
if (!_optionalChain([range, 'optionalAccess', _5 => _5.from])) return "";
|
|
1116
1116
|
if (!range.to) return formatFn(range.from);
|
|
@@ -1146,7 +1146,7 @@ function DatePickerCalendar({
|
|
|
1146
1146
|
onMonthChange
|
|
1147
1147
|
}) {
|
|
1148
1148
|
const today = /* @__PURE__ */ new Date();
|
|
1149
|
-
const isMdUp = _nullishCoalesce(
|
|
1149
|
+
const isMdUp = _nullishCoalesce(_chunkLC65AC6Mcjs.useMdUp.call(void 0, ), () => ( true));
|
|
1150
1150
|
const monthsToShow = isMdUp ? numberOfMonths : 1;
|
|
1151
1151
|
const [draftRange, setDraftRange] = _react.useState.call(void 0,
|
|
1152
1152
|
mode === "range" ? selected : void 0
|
|
@@ -1311,7 +1311,7 @@ function DatePickerCalendar({
|
|
|
1311
1311
|
};
|
|
1312
1312
|
const handlePreviousMonth = () => shiftMonth(-1);
|
|
1313
1313
|
const handleNextMonth = () => shiftMonth(1);
|
|
1314
|
-
const formatMonthYear = (date) =>
|
|
1314
|
+
const formatMonthYear = (date) => _chunkU2MHQBL4cjs.formatDateWithTimezone.call(void 0, date, _chunkU2MHQBL4cjs.VIEWER_TIMEZONE, "monthYear", { viewerLocale: true });
|
|
1315
1315
|
const getSecondMonth = (date) => {
|
|
1316
1316
|
const next = new Date(date);
|
|
1317
1317
|
next.setMonth(next.getMonth() + 1);
|
|
@@ -1728,20 +1728,20 @@ function DatePickerInput(props) {
|
|
|
1728
1728
|
) })
|
|
1729
1729
|
] }),
|
|
1730
1730
|
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1", children: [
|
|
1731
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1732
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1733
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1731
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk243TS7YLcjs.Select, { value: hour, onValueChange: handleHourChange, disabled, children: [
|
|
1732
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectTrigger, { className: _chunk7JWFMAQBcjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectValue, { placeholder: "HH" }) }),
|
|
1733
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectContent, { children: hourOptions.map((h) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: h, children: h }, h)) })
|
|
1734
1734
|
] }),
|
|
1735
1735
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h4", children: ":" }),
|
|
1736
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1737
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1738
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1736
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk243TS7YLcjs.Select, { value: minute, onValueChange: handleMinuteChange, disabled, children: [
|
|
1737
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectTrigger, { className: _chunk7JWFMAQBcjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectValue, { placeholder: "MM" }) }),
|
|
1738
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectContent, { children: minuteOptions.map((m) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: m, children: m }, m)) })
|
|
1739
1739
|
] }),
|
|
1740
|
-
!use24HourFormat && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1741
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1742
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1743
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1744
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1740
|
+
!use24HourFormat && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk243TS7YLcjs.Select, { value: period, onValueChange: (val) => handlePeriodChange(val), disabled, children: [
|
|
1741
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectTrigger, { className: _chunk7JWFMAQBcjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectValue, { placeholder: "AM" }) }),
|
|
1742
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk243TS7YLcjs.SelectContent, { children: [
|
|
1743
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: "AM", children: "AM" }),
|
|
1744
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: "PM", children: "PM" })
|
|
1745
1745
|
] })
|
|
1746
1746
|
] })
|
|
1747
1747
|
] })
|
|
@@ -1882,9 +1882,9 @@ function DatePickerInputSimple(props) {
|
|
|
1882
1882
|
}
|
|
1883
1883
|
) })
|
|
1884
1884
|
] }),
|
|
1885
|
-
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1886
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1887
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1885
|
+
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk243TS7YLcjs.Select, { value: timeValue, onValueChange: handleTimeChange, disabled, children: [
|
|
1886
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectTrigger, { className: _chunk7JWFMAQBcjs.cn.call(void 0, timeSelectTriggerStyles, "flex-1"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectValue, { placeholder: "Select time", children: timeDisplayLabel || "Select time" }) }),
|
|
1887
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectContent, { children: timeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
1888
1888
|
] })
|
|
1889
1889
|
] });
|
|
1890
1890
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7RM4NM2Ccjs.FieldWrapper, { label, error, errorSlot: "error" in props, className, children: content });
|
|
@@ -1903,14 +1903,14 @@ function DateFilterPanel({
|
|
|
1903
1903
|
className
|
|
1904
1904
|
}) {
|
|
1905
1905
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex flex-col gap-4", className), children: [
|
|
1906
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1907
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1906
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk243TS7YLcjs.Select, { value: sort, onValueChange: (value) => onSortChange(value), children: [
|
|
1907
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.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: [
|
|
1908
1908
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ArrowUpDown, { className: "size-6 shrink-0 text-ods-text-secondary" }),
|
|
1909
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1909
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectValue, {}) })
|
|
1910
1910
|
] }) }),
|
|
1911
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1912
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1913
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1911
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk243TS7YLcjs.SelectContent, { children: [
|
|
1912
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: "asc", children: ascLabel }),
|
|
1913
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: "desc", children: descLabel })
|
|
1914
1914
|
] })
|
|
1915
1915
|
] }),
|
|
1916
1916
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2190,7 +2190,7 @@ function Value({ value, depth }) {
|
|
|
2190
2190
|
}
|
|
2191
2191
|
if (typeof value === "string") {
|
|
2192
2192
|
if (ISO_DATE.test(value)) {
|
|
2193
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: value, className: "text-ods-text-secondary", children:
|
|
2193
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: value, className: "text-ods-text-secondary", children: _chunkZW25QUJKcjs.formatRelativeTime.call(void 0, value) });
|
|
2194
2194
|
}
|
|
2195
2195
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-pre-wrap text-ods-text-primary", children: value });
|
|
2196
2196
|
}
|
|
@@ -2260,7 +2260,7 @@ var ProgressBar = ({
|
|
|
2260
2260
|
loading: loadingProp
|
|
2261
2261
|
}) => {
|
|
2262
2262
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || !!loadingProp;
|
|
2263
|
-
const isMdUp = _nullishCoalesce(
|
|
2263
|
+
const isMdUp = _nullishCoalesce(_chunkMG3HJIGGcjs.useContentMdUp.call(void 0, ), () => ( true));
|
|
2264
2264
|
const effectiveSegmentWidth = isMdUp ? segmentWidth : mobileSegmentWidth;
|
|
2265
2265
|
const effectiveHeight = isMdUp ? height : mobileHeight;
|
|
2266
2266
|
const containerRef = _react.useRef.call(void 0, null);
|
|
@@ -2437,7 +2437,7 @@ function InfoCardValueRow({
|
|
|
2437
2437
|
copyAriaLabel,
|
|
2438
2438
|
loading: loadingProp
|
|
2439
2439
|
}) {
|
|
2440
|
-
const { copy, copied } =
|
|
2440
|
+
const { copy, copied } = _chunkGU3GJ5DHcjs.useCopyToClipboard.call(void 0, );
|
|
2441
2441
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
2442
2442
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: VALUE_ROW_CLASS, children: [
|
|
2443
2443
|
loading && label === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h4", className: "w-20" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: ROW_LABEL_CLASS, children: showLabel ? _nullishCoalesce(label, () => ( "")) : "" }),
|
|
@@ -2520,8 +2520,8 @@ function SearchableSelect(allProps) {
|
|
|
2520
2520
|
const keyboardPadding = _chunk7Z536SPRcjs.useKeyboardCollisionPadding.call(void 0, );
|
|
2521
2521
|
const portalContainer = _chunkNL3G642Ucjs.usePortalContainer.call(void 0, );
|
|
2522
2522
|
if (!isOpen && search !== "") setSearch("");
|
|
2523
|
-
const listedOptions =
|
|
2524
|
-
const rememberedSelection =
|
|
2523
|
+
const listedOptions = _chunk243TS7YLcjs.useSettledOptions.call(void 0, options, isLoading, serverSearch);
|
|
2524
|
+
const rememberedSelection = _chunk243TS7YLcjs.useRememberedSelection.call(void 0, listedOptions, value != null ? [value] : [], serverSearch);
|
|
2525
2525
|
const filtered = _react.useMemo.call(void 0, () => {
|
|
2526
2526
|
if (serverSearch) return listedOptions;
|
|
2527
2527
|
const q = search.trim().toLowerCase();
|
|
@@ -2702,7 +2702,7 @@ function CompactAssigneeDropdown({
|
|
|
2702
2702
|
value: o.value,
|
|
2703
2703
|
label: o.label,
|
|
2704
2704
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2705
|
-
|
|
2705
|
+
_chunkU2MHQBL4cjs.SquareAvatar,
|
|
2706
2706
|
{
|
|
2707
2707
|
src: o.imageUrl,
|
|
2708
2708
|
alt: o.label,
|
|
@@ -2734,8 +2734,8 @@ function CompactAssigneeDropdown({
|
|
|
2734
2734
|
onClick: handleTriggerClick,
|
|
2735
2735
|
"aria-label": "Change assignee",
|
|
2736
2736
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "w-auto shrink-0", className),
|
|
2737
|
-
children: currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2738
|
-
|
|
2737
|
+
children: currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZZO3FGPMcjs.DeletedUserAvatar, { size: "sm", accessibleLabel: `Deleted user: ${currentAssignee.name || currentAssignee.id}` }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2738
|
+
_chunkU2MHQBL4cjs.SquareAvatar,
|
|
2739
2739
|
{
|
|
2740
2740
|
src: currentAssignee.avatarSrc,
|
|
2741
2741
|
alt: currentAssignee.name,
|
|
@@ -2789,7 +2789,7 @@ function DefaultAssigneeDropdown({
|
|
|
2789
2789
|
const opt = option;
|
|
2790
2790
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center gap-[var(--spacing-system-sf)]", children: [
|
|
2791
2791
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2792
|
-
|
|
2792
|
+
_chunkU2MHQBL4cjs.SquareAvatar,
|
|
2793
2793
|
{
|
|
2794
2794
|
src: opt.imageUrl,
|
|
2795
2795
|
alt: opt.label,
|
|
@@ -2805,7 +2805,7 @@ function DefaultAssigneeDropdown({
|
|
|
2805
2805
|
if (isEditing) {
|
|
2806
2806
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "min-w-0", className), children: [
|
|
2807
2807
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2808
|
-
|
|
2808
|
+
_chunk243TS7YLcjs.Autocomplete,
|
|
2809
2809
|
{
|
|
2810
2810
|
options,
|
|
2811
2811
|
value: _nullishCoalesce(_optionalChain([currentAssignee, 'optionalAccess', _45 => _45.id]), () => ( null)),
|
|
@@ -2819,14 +2819,14 @@ function DefaultAssigneeDropdown({
|
|
|
2819
2819
|
selectedOptions,
|
|
2820
2820
|
showChevron: false,
|
|
2821
2821
|
startAdornment: hasAssignee ? currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2822
|
-
|
|
2822
|
+
_chunkZZO3FGPMcjs.DeletedUserAvatar,
|
|
2823
2823
|
{
|
|
2824
2824
|
size: "sm",
|
|
2825
2825
|
className: "h-6 w-6",
|
|
2826
2826
|
accessibleLabel: `Deleted user: ${currentAssignee.name || currentAssignee.id}`
|
|
2827
2827
|
}
|
|
2828
2828
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2829
|
-
|
|
2829
|
+
_chunkU2MHQBL4cjs.SquareAvatar,
|
|
2830
2830
|
{
|
|
2831
2831
|
src: currentAssignee.avatarSrc,
|
|
2832
2832
|
alt: currentAssignee.name,
|
|
@@ -2845,13 +2845,13 @@ function DefaultAssigneeDropdown({
|
|
|
2845
2845
|
if (hasAssignee) {
|
|
2846
2846
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", className), children: [
|
|
2847
2847
|
currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2848
|
-
|
|
2848
|
+
_chunkZZO3FGPMcjs.DeletedUserAvatar,
|
|
2849
2849
|
{
|
|
2850
2850
|
size: "md",
|
|
2851
2851
|
accessibleLabel: `Deleted user: ${currentAssignee.name || currentAssignee.id}`
|
|
2852
2852
|
}
|
|
2853
2853
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2854
|
-
|
|
2854
|
+
_chunkU2MHQBL4cjs.SquareAvatar,
|
|
2855
2855
|
{
|
|
2856
2856
|
src: currentAssignee.avatarSrc,
|
|
2857
2857
|
alt: currentAssignee.name,
|
|
@@ -2936,7 +2936,7 @@ function TextValue({ value }) {
|
|
|
2936
2936
|
}
|
|
2937
2937
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h4", title: text, children: text }),
|
|
2938
2938
|
hasImage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2939
|
-
|
|
2939
|
+
_chunkU2MHQBL4cjs.SquareAvatar,
|
|
2940
2940
|
{
|
|
2941
2941
|
src: imageSrc,
|
|
2942
2942
|
alt: text,
|
|
@@ -2956,7 +2956,7 @@ function RowValue({ value }) {
|
|
|
2956
2956
|
}
|
|
2957
2957
|
case "status": {
|
|
2958
2958
|
const { type: _type, ...props } = value;
|
|
2959
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2959
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZW25QUJKcjs.TicketStatusTag, { ...props });
|
|
2960
2960
|
}
|
|
2961
2961
|
case "custom":
|
|
2962
2962
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CustomValue, { content: value.content });
|
|
@@ -3056,7 +3056,7 @@ function MediaTypeSelector({
|
|
|
3056
3056
|
// changed) and cost an extra render pass on every change to say what the
|
|
3057
3057
|
// prop already said.
|
|
3058
3058
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3059
|
-
|
|
3059
|
+
_chunk243TS7YLcjs.Select,
|
|
3060
3060
|
{
|
|
3061
3061
|
value: value || void 0,
|
|
3062
3062
|
onValueChange: (next) => {
|
|
@@ -3066,8 +3066,8 @@ function MediaTypeSelector({
|
|
|
3066
3066
|
disabled,
|
|
3067
3067
|
defaultValue: value,
|
|
3068
3068
|
children: [
|
|
3069
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3070
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3069
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectTrigger, { className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectValue, { placeholder }) }),
|
|
3070
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectContent, { children: mediaTypeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: option.value, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
3071
3071
|
option.icon,
|
|
3072
3072
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: option.label })
|
|
3073
3073
|
] }) }, option.value)) })
|
|
@@ -3929,7 +3929,7 @@ function TagsManager({
|
|
|
3929
3929
|
}
|
|
3930
3930
|
),
|
|
3931
3931
|
selectedTags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3932
|
-
|
|
3932
|
+
_chunkU2MHQBL4cjs.Tag,
|
|
3933
3933
|
{
|
|
3934
3934
|
label: tag.name,
|
|
3935
3935
|
variant: "outline",
|
|
@@ -4435,7 +4435,7 @@ var DialogContent = _react.forwardRef.call(void 0, ({ className, children, ...pr
|
|
|
4435
4435
|
),
|
|
4436
4436
|
...props,
|
|
4437
4437
|
children: [
|
|
4438
|
-
/* @__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,
|
|
4438
|
+
/* @__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, _chunkMG3HJIGGcjs.ViewportBreakpoints, { children }) }),
|
|
4439
4439
|
/* @__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: [
|
|
4440
4440
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.X, { className: "h-4 w-4" }),
|
|
4441
4441
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: "Close" })
|
|
@@ -4493,10 +4493,10 @@ function useConfirm() {
|
|
|
4493
4493
|
},
|
|
4494
4494
|
[]
|
|
4495
4495
|
);
|
|
4496
|
-
const dialog = pending ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4497
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4498
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4499
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4496
|
+
const dialog = pending ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNZSWROGMcjs.Modal, { isOpen: open, onClose: () => decide(false), children: [
|
|
4497
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNZSWROGMcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNZSWROGMcjs.ModalTitle, { children: pending.title }) }),
|
|
4498
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNZSWROGMcjs.ModalContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: pending.body }) }),
|
|
4499
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNZSWROGMcjs.ModalFooter, { children: [
|
|
4500
4500
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "outline", onClick: () => decide(false), children: "Cancel" }),
|
|
4501
4501
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "destructive", onClick: () => decide(true), children: "Confirm" })
|
|
4502
4502
|
] })
|
|
@@ -4550,14 +4550,14 @@ function AdminFormDrawer({
|
|
|
4550
4550
|
else onClose();
|
|
4551
4551
|
};
|
|
4552
4552
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4553
|
-
|
|
4553
|
+
_chunkSFUNXMY3cjs.Drawer,
|
|
4554
4554
|
{
|
|
4555
4555
|
open: isOpen,
|
|
4556
4556
|
onOpenChange: (open) => {
|
|
4557
4557
|
if (!open) requestClose();
|
|
4558
4558
|
},
|
|
4559
4559
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4560
|
-
|
|
4560
|
+
_chunkSFUNXMY3cjs.DrawerContent,
|
|
4561
4561
|
{
|
|
4562
4562
|
side: "right",
|
|
4563
4563
|
resizable: true,
|
|
@@ -4566,15 +4566,15 @@ function AdminFormDrawer({
|
|
|
4566
4566
|
storageKey,
|
|
4567
4567
|
panelClassName: "max-md:w-[calc(100vw-1rem)]",
|
|
4568
4568
|
children: [
|
|
4569
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4570
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4571
|
-
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4569
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkSFUNXMY3cjs.DrawerHeader, { children: [
|
|
4570
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSFUNXMY3cjs.DrawerTitle, { children: title }),
|
|
4571
|
+
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSFUNXMY3cjs.DrawerDescription, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: subtitle }) })
|
|
4572
4572
|
] }),
|
|
4573
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4573
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSFUNXMY3cjs.DrawerBody, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4574
4574
|
"form",
|
|
4575
4575
|
{
|
|
4576
4576
|
id: formId,
|
|
4577
|
-
...
|
|
4577
|
+
..._chunkJ6C7F63Pcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
4578
4578
|
className: "flex flex-col gap-[var(--spacing-system-lf)]",
|
|
4579
4579
|
onSubmit: (e) => {
|
|
4580
4580
|
e.preventDefault();
|
|
@@ -4672,16 +4672,16 @@ function AdminFormModal({
|
|
|
4672
4672
|
body: "Your edits have not been saved. Close and discard them?"
|
|
4673
4673
|
});
|
|
4674
4674
|
if (!isOpen) return null;
|
|
4675
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4676
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4677
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4675
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNZSWROGMcjs.Modal, { isOpen: true, onClose: guardedClose, size: effectiveSize, children: [
|
|
4676
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNZSWROGMcjs.ModalHeader, { children: [
|
|
4677
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNZSWROGMcjs.ModalTitle, { children: title }),
|
|
4678
4678
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-ods-text-secondary text-h6", children: subtitle })
|
|
4679
4679
|
] }),
|
|
4680
4680
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4681
4681
|
"form",
|
|
4682
4682
|
{
|
|
4683
4683
|
id: formId,
|
|
4684
|
-
...
|
|
4684
|
+
..._chunkJ6C7F63Pcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
4685
4685
|
className: "flex min-h-0 flex-1 flex-col",
|
|
4686
4686
|
onSubmit: (e) => {
|
|
4687
4687
|
e.preventDefault();
|
|
@@ -4699,7 +4699,7 @@ function AdminFormModal({
|
|
|
4699
4699
|
// a shrink-to-fit flex item pinned to the left of a 1400px panel).
|
|
4700
4700
|
// The placeholder owns its own layout and mirrors the column count so
|
|
4701
4701
|
// the modal doesn't visibly re-flow when the entity lands.
|
|
4702
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4702
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNZSWROGMcjs.ModalContent, { children: loadingContent ? (
|
|
4703
4703
|
// The one announcement: a `loadingContent` with a region of its own takes `region={false}`.
|
|
4704
4704
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLKQ33CMYcjs.LoadingRegion, { label: "Loading", children: loadingContent })
|
|
4705
4705
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -4720,12 +4720,12 @@ function AdminFormModal({
|
|
|
4720
4720
|
] }, i)) }, col))
|
|
4721
4721
|
}
|
|
4722
4722
|
) })
|
|
4723
|
-
) : twoColumn ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4723
|
+
) : twoColumn ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNZSWROGMcjs.ModalTwoColumn, { left: leftColumn, right: rightColumn }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNZSWROGMcjs.ModalContent, { className: contentClassName, children }),
|
|
4724
4724
|
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { role: "alert", className: "shrink-0 text-ods-error text-h6", children: error })
|
|
4725
4725
|
]
|
|
4726
4726
|
}
|
|
4727
4727
|
),
|
|
4728
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4728
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNZSWROGMcjs.ModalFooter, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center justify-between gap-[var(--spacing-system-xsf)]", children: [
|
|
4729
4729
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: footerExtras }),
|
|
4730
4730
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
4731
4731
|
footerStatus,
|
|
@@ -4807,7 +4807,7 @@ var SheetContent = _react.forwardRef.call(void 0,
|
|
|
4807
4807
|
({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SheetPortal, { children: [
|
|
4808
4808
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetOverlay, {}),
|
|
4809
4809
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SheetPrimitive.Content, { ref, className: _chunk7JWFMAQBcjs.cn.call(void 0, sheetVariants({ side }), className), ...props, children: [
|
|
4810
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4810
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMG3HJIGGcjs.ViewportBreakpoints, { children }),
|
|
4811
4811
|
/* @__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: [
|
|
4812
4812
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.X, { className: "h-4 w-4" }),
|
|
4813
4813
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: "Close" })
|
|
@@ -5464,7 +5464,7 @@ var TabBar = _react.memo.call(void 0, function TabBarImpl({
|
|
|
5464
5464
|
// as tall as its neighbours at every breakpoint. No hover shade:
|
|
5465
5465
|
// the tab is the target, and the cursor passes through to it.
|
|
5466
5466
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5467
|
-
|
|
5467
|
+
_chunkU2MHQBL4cjs.Tag,
|
|
5468
5468
|
{
|
|
5469
5469
|
as: "span",
|
|
5470
5470
|
"aria-hidden": true,
|
|
@@ -5786,7 +5786,7 @@ function FadePreview({
|
|
|
5786
5786
|
setCollapsedFor(resetKey);
|
|
5787
5787
|
setExpanded(false);
|
|
5788
5788
|
}
|
|
5789
|
-
|
|
5789
|
+
_chunkYSDB6HGQcjs.useIsomorphicLayoutEffect.call(void 0, () => {
|
|
5790
5790
|
const el = contentRef.current;
|
|
5791
5791
|
if (!el) return;
|
|
5792
5792
|
if (!fixed) {
|
|
@@ -6082,7 +6082,7 @@ function EmbedViewerFrame({
|
|
|
6082
6082
|
const controllerRef = _react.useRef.call(void 0, null);
|
|
6083
6083
|
_react.useEffect.call(void 0, () => {
|
|
6084
6084
|
if (!fullscreenControl) return void 0;
|
|
6085
|
-
const controller = new (0,
|
|
6085
|
+
const controller = new (0, _chunkJ6C7F63Pcjs.FullscreenSwitchController)({
|
|
6086
6086
|
target: () => frameRef.current,
|
|
6087
6087
|
onFullscreenChange: setIsFullscreen
|
|
6088
6088
|
});
|
|
@@ -6176,9 +6176,9 @@ var KIND_HEADING = {
|
|
|
6176
6176
|
design: "Claude Design"
|
|
6177
6177
|
};
|
|
6178
6178
|
function ClaudeEmbed({ url, kind = "artifact", title, height, loading = "lazy" }) {
|
|
6179
|
-
const { src: mirrorSrc, status } =
|
|
6179
|
+
const { src: mirrorSrc, status } = _chunkGU3GJ5DHcjs.useClaudeMirrorSrc.call(void 0, url);
|
|
6180
6180
|
const isProbing = status === "probing";
|
|
6181
|
-
const embedUrl = isProbing ? null : _nullishCoalesce(mirrorSrc, () => (
|
|
6181
|
+
const embedUrl = isProbing ? null : _nullishCoalesce(mirrorSrc, () => ( _chunkERLMCSGFcjs.toClaudeEmbedUrl.call(void 0, url)));
|
|
6182
6182
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6183
6183
|
EmbedViewerFrame,
|
|
6184
6184
|
{
|
|
@@ -6253,12 +6253,12 @@ function SlidesViewToggle({ view, onChange }) {
|
|
|
6253
6253
|
}
|
|
6254
6254
|
function FigmaEmbed({ url, title, height, loading = "lazy" }) {
|
|
6255
6255
|
const [view, setView] = _react.useState.call(void 0, "present");
|
|
6256
|
-
const isSlides = url ?
|
|
6257
|
-
const embedSrc = url ?
|
|
6256
|
+
const isSlides = url ? _chunkERLMCSGFcjs.isFigmaSlidesUrl.call(void 0, url) : false;
|
|
6257
|
+
const embedSrc = url ? _chunkERLMCSGFcjs.toFigmaEmbedUrl.call(void 0, url, { slidesView: view }) : null;
|
|
6258
6258
|
const originalUrl = (() => {
|
|
6259
6259
|
if (!url) return null;
|
|
6260
6260
|
try {
|
|
6261
|
-
const parsed = new URL(
|
|
6261
|
+
const parsed = new URL(_chunkERLMCSGFcjs.toFigmaOriginalUrl.call(void 0, url));
|
|
6262
6262
|
const host = parsed.hostname.toLowerCase();
|
|
6263
6263
|
const okHost = host === "figma.com" || host.endsWith(".figma.com");
|
|
6264
6264
|
const okProtocol = parsed.protocol === "https:" || parsed.protocol === "http:";
|
|
@@ -6746,12 +6746,12 @@ var OGLinkPreview = ({
|
|
|
6746
6746
|
children: [
|
|
6747
6747
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TILE_SOURCE_ROW_CLASS, children: [
|
|
6748
6748
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Favicon, { src: `https://www.google.com/s2/favicons?domain=${domain}&sz=32`, size: "w-4 h-4" }),
|
|
6749
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6749
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { as: "span", variant: "h6", className: "text-current", children: name }),
|
|
6750
6750
|
meta != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "ml-auto flex flex-none items-center gap-1.5 text-ods-text-secondary", children: meta })
|
|
6751
6751
|
] }),
|
|
6752
6752
|
kicker != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-hidden text-ods-accent text-h5", style: lineClamp(1), children: kicker }),
|
|
6753
6753
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6754
|
-
|
|
6754
|
+
_chunk243TS7YLcjs.TruncateText,
|
|
6755
6755
|
{
|
|
6756
6756
|
lines: 2,
|
|
6757
6757
|
variant: "h3",
|
|
@@ -6760,7 +6760,7 @@ var OGLinkPreview = ({
|
|
|
6760
6760
|
children: curatedTitle || domainToTitle(domain)
|
|
6761
6761
|
}
|
|
6762
6762
|
),
|
|
6763
|
-
curatedDescription && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6763
|
+
curatedDescription && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { lines: 2, variant: "h6", tone: "secondary", children: curatedDescription })
|
|
6764
6764
|
]
|
|
6765
6765
|
}
|
|
6766
6766
|
);
|
|
@@ -6906,8 +6906,8 @@ var OGLinkPreview = ({
|
|
|
6906
6906
|
children: [
|
|
6907
6907
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-lg bg-ods-bg-surface", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Favicon, { src: faviconSrc }) }),
|
|
6908
6908
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
6909
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6910
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6909
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { className: "font-semibold transition-colors group-hover:text-ods-accent", children: title }),
|
|
6910
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { tone: "secondary", children: description })
|
|
6911
6911
|
] }),
|
|
6912
6912
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExternalLinkIcon, {})
|
|
6913
6913
|
]
|
|
@@ -6954,7 +6954,7 @@ var OGLinkPreview = ({
|
|
|
6954
6954
|
),
|
|
6955
6955
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
6956
6956
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6957
|
-
|
|
6957
|
+
_chunk243TS7YLcjs.TruncateText,
|
|
6958
6958
|
{
|
|
6959
6959
|
lines: 2,
|
|
6960
6960
|
className: "min-h-[calc(var(--font-line-space-h4-body)*2)] font-semibold transition-colors group-hover:text-ods-accent",
|
|
@@ -6963,7 +6963,7 @@ var OGLinkPreview = ({
|
|
|
6963
6963
|
}
|
|
6964
6964
|
),
|
|
6965
6965
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6966
|
-
|
|
6966
|
+
_chunk243TS7YLcjs.TruncateText,
|
|
6967
6967
|
{
|
|
6968
6968
|
lines: 2,
|
|
6969
6969
|
tone: "secondary",
|
|
@@ -6973,9 +6973,9 @@ var OGLinkPreview = ({
|
|
|
6973
6973
|
}
|
|
6974
6974
|
),
|
|
6975
6975
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-2 text-ods-text-secondary text-h6", children: [
|
|
6976
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6976
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { as: "span", variant: "h6", className: "text-current", children: effectiveData.siteName }),
|
|
6977
6977
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "\u2022" }),
|
|
6978
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6978
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { as: "span", variant: "h6", className: "text-current", children: ogDomain }),
|
|
6979
6979
|
meta
|
|
6980
6980
|
] })
|
|
6981
6981
|
] })
|
|
@@ -7136,7 +7136,7 @@ var MediaCarousel = _react.memo.call(void 0, function MediaCarouselImpl({
|
|
|
7136
7136
|
};
|
|
7137
7137
|
const displayImageSrc = (url) => transformImageSrc ? transformImageSrc(url) : url;
|
|
7138
7138
|
const renderVideo = (item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7139
|
-
|
|
7139
|
+
_chunk7Y6M4FW4cjs.Video,
|
|
7140
7140
|
{
|
|
7141
7141
|
url: item.src,
|
|
7142
7142
|
poster: item.poster ? displayImageSrc(item.poster) : void 0,
|
|
@@ -7331,7 +7331,7 @@ var formatTimeAgo = (timestamp) => {
|
|
|
7331
7331
|
return `${Math.floor(diffSeconds / 86400)}d ago`;
|
|
7332
7332
|
};
|
|
7333
7333
|
function RedditEmbedClient({ url, maxWidth = 700, rel }) {
|
|
7334
|
-
const postLinkRel =
|
|
7334
|
+
const postLinkRel = _chunkCB77J5L7cjs.renderedLinkRel.call(void 0, rel, true);
|
|
7335
7335
|
const { redditProxyUrl } = useRichMarkdownRuntime();
|
|
7336
7336
|
const [redditData, setRedditData] = _react.useState.call(void 0, null);
|
|
7337
7337
|
const [loading, setLoading] = _react.useState.call(void 0, true);
|
|
@@ -7569,7 +7569,7 @@ function RedditEmbedClient({ url, maxWidth = 700, rel }) {
|
|
|
7569
7569
|
width: m.width,
|
|
7570
7570
|
height: m.height
|
|
7571
7571
|
}));
|
|
7572
|
-
const formatNumber2 =
|
|
7572
|
+
const formatNumber2 = _chunkU2MHQBL4cjs.formatLargeNumber;
|
|
7573
7573
|
const truncateText = (text, maxLength = 600) => {
|
|
7574
7574
|
if (text.length <= maxLength) return text;
|
|
7575
7575
|
return text.slice(0, maxLength) + "...";
|
|
@@ -7663,7 +7663,7 @@ var UserIcon3 = () => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "svg", { wid
|
|
|
7663
7663
|
] });
|
|
7664
7664
|
var XIcon = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2TEMEXDTcjs.XLogoIcon, { className: "h-5 w-5", color: "currentColor" });
|
|
7665
7665
|
function TwitterEmbedClient({ url, tweetId, maxWidth = 700, rel }) {
|
|
7666
|
-
const postLinkRel =
|
|
7666
|
+
const postLinkRel = _chunkCB77J5L7cjs.renderedLinkRel.call(void 0, rel, true);
|
|
7667
7667
|
const { twitterProxyUrl } = useRichMarkdownRuntime();
|
|
7668
7668
|
const [tweetData, setTweetData] = _react.useState.call(void 0, null);
|
|
7669
7669
|
const [fetchLoading, setLoading] = _react.useState.call(void 0, true);
|
|
@@ -7865,7 +7865,7 @@ function buildRichEmbedOverrides({
|
|
|
7865
7865
|
ogEndpointPath,
|
|
7866
7866
|
textSizes
|
|
7867
7867
|
}) {
|
|
7868
|
-
const standard =
|
|
7868
|
+
const standard = _chunkCB77J5L7cjs.buildStandardLeafRenderers.call(void 0, { textSizes });
|
|
7869
7869
|
return {
|
|
7870
7870
|
// Fence-language embeds (```youtube-embed etc.); everything else
|
|
7871
7871
|
// (mermaid, highlighted blocks, inline code) falls through to `standard`.
|
|
@@ -7875,7 +7875,7 @@ function buildRichEmbedOverrides({
|
|
|
7875
7875
|
const language = match ? match[1] : "";
|
|
7876
7876
|
const fenceText = () => String(children).replace(/\n$/, "").trim();
|
|
7877
7877
|
if (language === "youtube-embed") {
|
|
7878
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7878
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7Y6M4FW4cjs.Video, { kind: "youtube", url: fenceText() });
|
|
7879
7879
|
}
|
|
7880
7880
|
if (language === "reddit-embed") {
|
|
7881
7881
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RedditEmbedClient, { url: fenceText() });
|
|
@@ -7916,7 +7916,7 @@ function buildRichEmbedOverrides({
|
|
|
7916
7916
|
"data-figma-url": figmaUrl
|
|
7917
7917
|
} = divProps;
|
|
7918
7918
|
if (className === "youtube-embed" && videoId) {
|
|
7919
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7919
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7Y6M4FW4cjs.Video, { kind: "youtube", url: videoId });
|
|
7920
7920
|
}
|
|
7921
7921
|
if (className === "reddit-embed" && postUrl) {
|
|
7922
7922
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RedditEmbedClient, { url: postUrl });
|
|
@@ -8001,23 +8001,23 @@ function buildRichEmbedOverrides({
|
|
|
8001
8001
|
// rich-markdown runtime (Supabase optimization on the hub, identity
|
|
8002
8002
|
// elsewhere). Guard against empty `![]()`.
|
|
8003
8003
|
img: ({ src, alt }) => {
|
|
8004
|
-
if (!
|
|
8004
|
+
if (!_chunkCB77J5L7cjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
8005
8005
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownImage, { src: src.trim(), alt });
|
|
8006
8006
|
},
|
|
8007
8007
|
// Raw <iframe> tags in stored content (a pasted YouTube embed). A YouTube one becomes the same click-to-play
|
|
8008
8008
|
// facade as the `youtube-embed` fence: the raw iframe loaded YouTube's whole player (about 470 KB of script) with
|
|
8009
8009
|
// the page, on every post that carried one (CU-17tkuw5xp4q). Any other iframe loads when it nears the screen.
|
|
8010
8010
|
iframe: ({ node: _node, src, ...rest }) => {
|
|
8011
|
-
if (!
|
|
8011
|
+
if (!_chunkCB77J5L7cjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
8012
8012
|
const url = src.trim();
|
|
8013
|
-
if (
|
|
8013
|
+
if (_chunk7Y6M4FW4cjs.extractYouTubeId.call(void 0, url)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7Y6M4FW4cjs.Video, { kind: "youtube", url });
|
|
8014
8014
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "iframe", { ...rest, src: url, loading: "lazy" });
|
|
8015
8015
|
},
|
|
8016
8016
|
// Raw <video> tags in stored content (blog publisher injection) route
|
|
8017
8017
|
// to the <Video> SSOT (MuxPlayer) so HLS manifests play everywhere.
|
|
8018
8018
|
video: ({ src, poster, className }) => {
|
|
8019
|
-
if (!
|
|
8020
|
-
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,
|
|
8019
|
+
if (!_chunkCB77J5L7cjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
8020
|
+
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, _chunk7Y6M4FW4cjs.Video, { kind: "file", url: src.trim(), poster: typeof poster === "string" ? poster : void 0 }) }) });
|
|
8021
8021
|
}
|
|
8022
8022
|
};
|
|
8023
8023
|
}
|
|
@@ -8125,7 +8125,7 @@ var processShortcodes = (content) => {
|
|
|
8125
8125
|
try {
|
|
8126
8126
|
const urlObj = new URL(url);
|
|
8127
8127
|
const hostname = urlObj.hostname.toLowerCase();
|
|
8128
|
-
const hostIs = (domain) =>
|
|
8128
|
+
const hostIs = (domain) => _chunkJ6C7F63Pcjs.hostMatches.call(void 0, hostname, domain);
|
|
8129
8129
|
const isYouTubeVideo = hostIs("youtube.com") && urlObj.searchParams.has("v") || hostIs("youtu.be");
|
|
8130
8130
|
if (isYouTubeVideo || hostIs("reddit.com") || hostIs("twitter.com") || hostIs("x.com") || hostIs("figma.com")) {
|
|
8131
8131
|
return match;
|
|
@@ -8150,7 +8150,7 @@ var processShortcodes = (content) => {
|
|
|
8150
8150
|
|
|
8151
8151
|
// src/components/ui/markdown/rich/rich-markdown-renderer.tsx
|
|
8152
8152
|
|
|
8153
|
-
var RICH_EXTRA_TAGS = ["video", "source"];
|
|
8153
|
+
var RICH_EXTRA_TAGS = ["video", "source", "iframe"];
|
|
8154
8154
|
var toResolveLinkResult = (body) => {
|
|
8155
8155
|
if (typeof body !== "object" || body === null) {
|
|
8156
8156
|
return { success: false };
|
|
@@ -8202,13 +8202,13 @@ var RichMarkdownInner = ({
|
|
|
8202
8202
|
},
|
|
8203
8203
|
[resolveLinkEndpointUrl, resolveSource]
|
|
8204
8204
|
);
|
|
8205
|
-
const textSizes = _react.useMemo.call(void 0, () =>
|
|
8205
|
+
const textSizes = _react.useMemo.call(void 0, () => _chunkCB77J5L7cjs.resolveTextSizeConfig.call(void 0, "article"), []);
|
|
8206
8206
|
const componentOverrides = _react.useMemo.call(void 0,
|
|
8207
8207
|
() => buildRichEmbedOverrides({ ogApiBaseUrl, ogEndpointPath, textSizes }),
|
|
8208
8208
|
[ogApiBaseUrl, ogEndpointPath, textSizes]
|
|
8209
8209
|
);
|
|
8210
8210
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8211
|
-
|
|
8211
|
+
_chunkCB77J5L7cjs.MarkdownEngine,
|
|
8212
8212
|
{
|
|
8213
8213
|
content,
|
|
8214
8214
|
className,
|
|
@@ -8222,6 +8222,7 @@ var RichMarkdownInner = ({
|
|
|
8222
8222
|
componentOverrides,
|
|
8223
8223
|
textSize: "article",
|
|
8224
8224
|
extraAllowedHtmlTags: RICH_EXTRA_TAGS,
|
|
8225
|
+
allowRemoteMedia: true,
|
|
8225
8226
|
skeletonSections,
|
|
8226
8227
|
skeletonLines
|
|
8227
8228
|
}
|
|
@@ -8232,7 +8233,7 @@ var RichMarkdownRendererImpl = ({
|
|
|
8232
8233
|
className = "",
|
|
8233
8234
|
sectionIds,
|
|
8234
8235
|
onInternalLinkClick,
|
|
8235
|
-
brokenLinks =
|
|
8236
|
+
brokenLinks = _chunkCB77J5L7cjs.NO_BROKEN_LINKS,
|
|
8236
8237
|
currentPath,
|
|
8237
8238
|
resolveSource = "openframe-docs",
|
|
8238
8239
|
resolveLinkEndpointUrl = "/api/docs/resolve-link",
|
|
@@ -9358,7 +9359,7 @@ function FilterModal({
|
|
|
9358
9359
|
const dateDefaultSort = _nullishCoalesce(_optionalChain([dateFilter, 'optionalAccess', _167 => _167.defaultSort]), () => ( "desc"));
|
|
9359
9360
|
const [draftDateSort, setDraftDateSort] = _react.useState.call(void 0, _nullishCoalesce(_optionalChain([dateFilter, 'optionalAccess', _168 => _168.sort]), () => ( dateDefaultSort)));
|
|
9360
9361
|
const [draftDateRange, setDraftDateRange] = _react.useState.call(void 0, _optionalChain([dateFilter, 'optionalAccess', _169 => _169.range]));
|
|
9361
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateFade } =
|
|
9362
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunkNZSWROGMcjs.useScrollFade.call(void 0, );
|
|
9362
9363
|
const seedKey = `${JSON.stringify(currentFilters)}|${JSON.stringify(_nullishCoalesce(selectedTags, () => ( [])))}`;
|
|
9363
9364
|
const seedSourceRef = _react.useRef.call(void 0, { currentFilters, selectedTags, dateFilter, dateDefaultSort });
|
|
9364
9365
|
_react.useEffect.call(void 0, () => {
|
|
@@ -9404,15 +9405,15 @@ function FilterModal({
|
|
|
9404
9405
|
const hasTagFilter = !!tagFilterKeys && tagFilterKeys.length > 0 && !!onTagsChange;
|
|
9405
9406
|
const isEmpty = !isLoading && !hasSort && !hasFilterGroups && !hasTagFilter && !dateFilter;
|
|
9406
9407
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9407
|
-
|
|
9408
|
+
_chunkNZSWROGMcjs.Modal,
|
|
9408
9409
|
{
|
|
9409
9410
|
isOpen,
|
|
9410
9411
|
onClose,
|
|
9411
9412
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "max-h-[90vh] max-w-none md:max-w-[min(42rem,calc(100vw-2rem))]", className),
|
|
9412
9413
|
children: [
|
|
9413
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9414
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNZSWROGMcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNZSWROGMcjs.ModalTitle, { children: title }) }),
|
|
9414
9415
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9415
|
-
|
|
9416
|
+
_chunkNZSWROGMcjs.ModalContent,
|
|
9416
9417
|
{
|
|
9417
9418
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
9418
9419
|
"flex min-h-0 flex-1 flex-col",
|
|
@@ -9508,12 +9509,12 @@ function FilterModal({
|
|
|
9508
9509
|
)
|
|
9509
9510
|
}
|
|
9510
9511
|
),
|
|
9511
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9512
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9512
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNZSWROGMcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop }),
|
|
9513
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNZSWROGMcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom })
|
|
9513
9514
|
] })
|
|
9514
9515
|
}
|
|
9515
9516
|
),
|
|
9516
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9517
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNZSWROGMcjs.ModalFooter, { children: [
|
|
9517
9518
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "outline", className: "h-11 flex-1", onClick: handleReset, children: resetButtonText }),
|
|
9518
9519
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "accent", className: "h-11 flex-1", onClick: handleApply, children: applyButtonText })
|
|
9519
9520
|
] })
|
|
@@ -9577,7 +9578,7 @@ function renderAdvancedPageContainer({
|
|
|
9577
9578
|
contentClassName,
|
|
9578
9579
|
showHeader = true
|
|
9579
9580
|
}, inScope = false) {
|
|
9580
|
-
const titleNode = title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9581
|
+
const titleNode = title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.PageTitle, { className: PAGE_CONTAINER_TITLE_CLASS, children: _chunkUP3TLY2Vcjs.accentSentenceMarks.call(void 0, title) }) : inScope && title === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageContainerTitleSkeleton, {}) : null;
|
|
9581
9582
|
const subtitleNode = subtitle ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: PAGE_CONTAINER_SUBTITLE_CLASS, children: subtitle }) : inScope && subtitle === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageContainerSubtitleSkeleton, {}) : null;
|
|
9582
9583
|
const getActionsVariant = () => {
|
|
9583
9584
|
if (actionsVariant) return actionsVariant;
|
|
@@ -9586,7 +9587,7 @@ function renderAdvancedPageContainer({
|
|
|
9586
9587
|
};
|
|
9587
9588
|
const renderActions = () => {
|
|
9588
9589
|
if (!actions || actions.length === 0) return null;
|
|
9589
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9590
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.PageActions, { variant: getActionsVariant(), actions, menuActions });
|
|
9590
9591
|
};
|
|
9591
9592
|
const needsBottomPadding = actions && actions.length > 0 && getActionsVariant() === "primary-buttons";
|
|
9592
9593
|
const paddingClasses = {
|
|
@@ -9609,7 +9610,7 @@ function renderAdvancedPageContainer({
|
|
|
9609
9610
|
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: [
|
|
9610
9611
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
9611
9612
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9612
|
-
|
|
9613
|
+
_chunk243TS7YLcjs.BackButton,
|
|
9613
9614
|
{
|
|
9614
9615
|
onClick: backButton.onClick,
|
|
9615
9616
|
label: backButton.label,
|
|
@@ -9629,7 +9630,7 @@ function renderAdvancedPageContainer({
|
|
|
9629
9630
|
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: [
|
|
9630
9631
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
9631
9632
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9632
|
-
|
|
9633
|
+
_chunk243TS7YLcjs.BackButton,
|
|
9633
9634
|
{
|
|
9634
9635
|
onClick: backButton.onClick,
|
|
9635
9636
|
label: backButton.label,
|
|
@@ -9649,7 +9650,7 @@ function renderAdvancedPageContainer({
|
|
|
9649
9650
|
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: [
|
|
9650
9651
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
9651
9652
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9652
|
-
|
|
9653
|
+
_chunk243TS7YLcjs.BackButton,
|
|
9653
9654
|
{
|
|
9654
9655
|
onClick: backButton.onClick,
|
|
9655
9656
|
label: backButton.label,
|
|
@@ -9737,7 +9738,7 @@ function ListPageLayout({
|
|
|
9737
9738
|
}) {
|
|
9738
9739
|
const [mobileFilterOpen, setMobileFilterOpen] = _react.useState.call(void 0, false);
|
|
9739
9740
|
const [localSearchValue, setLocalSearchValue] = _react.useState.call(void 0, searchValue);
|
|
9740
|
-
const debouncedSearchValue =
|
|
9741
|
+
const debouncedSearchValue = _chunkCNTBGJA7cjs.useDebounce.call(void 0, localSearchValue, 500);
|
|
9741
9742
|
const [syncedSearchValue, setSyncedSearchValue] = _react.useState.call(void 0, searchValue);
|
|
9742
9743
|
if (syncedSearchValue !== searchValue) {
|
|
9743
9744
|
setSyncedSearchValue(searchValue);
|
|
@@ -10004,7 +10005,7 @@ var BenefitCardGrid = ({ children, className = "", columns = 2 }) => {
|
|
|
10004
10005
|
|
|
10005
10006
|
|
|
10006
10007
|
function PlatformBrowseButton({ item }) {
|
|
10007
|
-
const linkProps =
|
|
10008
|
+
const linkProps = _chunkCB77J5L7cjs.useNavLinkViaRuntime.call(void 0, { href: item.link, targetPlatform: item.targetPlatform });
|
|
10008
10009
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "outline", linkProps, rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-4 w-4" }), children: [
|
|
10009
10010
|
"Browse ",
|
|
10010
10011
|
item.buttonText
|
|
@@ -10319,12 +10320,12 @@ function DashboardInfoCard({
|
|
|
10319
10320
|
const renderPercentage = () => {
|
|
10320
10321
|
if (loading) {
|
|
10321
10322
|
if (!loadingShowsPercentage) return null;
|
|
10322
|
-
return percentageAsTag ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10323
|
+
return percentageAsTag ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { loading: true, label: "", className: "w-12" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-h4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-12" }) });
|
|
10323
10324
|
}
|
|
10324
10325
|
if (percentage === void 0) return null;
|
|
10325
10326
|
if (percentageAsTag) {
|
|
10326
10327
|
const tagVariant = progressVariant === "warning" || progressVariant === "error" ? progressVariant : progressVariant === "success" ? "success" : "grey";
|
|
10327
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10328
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { variant: tagVariant, label: `${percentage}%` });
|
|
10328
10329
|
}
|
|
10329
10330
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: [
|
|
10330
10331
|
"(",
|
|
@@ -10404,7 +10405,7 @@ function DashboardInfoCard({
|
|
|
10404
10405
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "truncate text-ods-text-primary text-h3 content-md:text-h2", valueClassName), children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-24" }) : formattedValue }),
|
|
10405
10406
|
loading ? loadingShowsSubValue && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-16" }) }) : subValue && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: subValue }),
|
|
10406
10407
|
renderPercentage(),
|
|
10407
|
-
tooltip && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10408
|
+
tooltip && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.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 }) }) })
|
|
10408
10409
|
] }),
|
|
10409
10410
|
hasCaption && /* @__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, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-32" }) : caption })
|
|
10410
10411
|
] }),
|
|
@@ -10523,10 +10524,10 @@ var OSTypeBadge = ({
|
|
|
10523
10524
|
if (!osType) {
|
|
10524
10525
|
return labelOnly ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "text-ods-text-secondary", className), children: "Unknown" }) : null;
|
|
10525
10526
|
}
|
|
10526
|
-
const normalized =
|
|
10527
|
+
const normalized = _chunkJ6C7F63Pcjs.normalizeOSType.call(void 0, osType);
|
|
10527
10528
|
if (!normalized && !labelOnly) return null;
|
|
10528
|
-
const label =
|
|
10529
|
-
const IconComponent =
|
|
10529
|
+
const label = _chunkJ6C7F63Pcjs.getOSLabel.call(void 0, osType);
|
|
10530
|
+
const IconComponent = _chunkJ6C7F63Pcjs.getOSIcon.call(void 0, osType);
|
|
10530
10531
|
if (iconOnly && IconComponent) {
|
|
10531
10532
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: _chunk7JWFMAQBcjs.cn.call(void 0, iconSize, "text-ods-text-secondary", className) });
|
|
10532
10533
|
}
|
|
@@ -10574,8 +10575,8 @@ function DeviceCard({
|
|
|
10574
10575
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || !!loadingProp;
|
|
10575
10576
|
const formatLastSeen = (lastSeen) => {
|
|
10576
10577
|
if (!lastSeen) return null;
|
|
10577
|
-
const date =
|
|
10578
|
-
return date === "\u2014" ? null : `${date} ${
|
|
10578
|
+
const date = _chunkNZSWROGMcjs.formatDate.call(void 0, lastSeen);
|
|
10579
|
+
return date === "\u2014" ? null : `${date} ${_chunkNZSWROGMcjs.formatTime.call(void 0, lastSeen)}`;
|
|
10579
10580
|
};
|
|
10580
10581
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10581
10582
|
"div",
|
|
@@ -10634,7 +10635,7 @@ function DeviceCard({
|
|
|
10634
10635
|
] }),
|
|
10635
10636
|
(loading || statusTag || device.lastSeen) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DEVICE_CARD_STATUS_ROW_CLASS, children: [
|
|
10636
10637
|
(loading || statusTag) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10637
|
-
|
|
10638
|
+
_chunkU2MHQBL4cjs.Tag,
|
|
10638
10639
|
{
|
|
10639
10640
|
loading,
|
|
10640
10641
|
variant: _optionalChain([statusTag, 'optionalAccess', _196 => _196.variant]),
|
|
@@ -10649,7 +10650,7 @@ function DeviceCard({
|
|
|
10649
10650
|
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-28 max-w-full" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: formatLastSeen(device.lastSeen) })
|
|
10650
10651
|
] })
|
|
10651
10652
|
] }),
|
|
10652
|
-
!showTags ? null : loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DEVICE_CARD_TAGS_ROW_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10653
|
+
!showTags ? null : loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DEVICE_CARD_TAGS_ROW_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { loading: true, label: "", variant: "outline", "data-loading-item": true }) }) : device.tags && device.tags.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DEVICE_CARD_TAGS_ROW_CLASS, children: device.tags.map((tag, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { variant: "outline", label: tag, "data-loading-item": true }, index)) })
|
|
10653
10654
|
]
|
|
10654
10655
|
}
|
|
10655
10656
|
);
|
|
@@ -10695,7 +10696,7 @@ function DataAttribution({ icon, source, lastUpdated, action }) {
|
|
|
10695
10696
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator3, {}),
|
|
10696
10697
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: UPDATED_CLASS, children: [
|
|
10697
10698
|
"Last updated: ",
|
|
10698
|
-
lastUpdated ?
|
|
10699
|
+
lastUpdated ? _chunkU2MHQBL4cjs.formatDate.call(void 0, lastUpdated) : "Never"
|
|
10699
10700
|
] }),
|
|
10700
10701
|
action ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ACTION_CLASS, children: action }) : null
|
|
10701
10702
|
] });
|
|
@@ -10823,7 +10824,7 @@ function ComplianceLogo({
|
|
|
10823
10824
|
fallback = null,
|
|
10824
10825
|
className
|
|
10825
10826
|
}) {
|
|
10826
|
-
const standard =
|
|
10827
|
+
const standard = _chunkJ6C7F63Pcjs.complianceStandardForName.call(void 0, ...names);
|
|
10827
10828
|
if (!standard) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: fallback });
|
|
10828
10829
|
const Official = standard.logo ? COMPLIANCE_LOGOS[standard.logo] : null;
|
|
10829
10830
|
return Official ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10904,7 +10905,7 @@ function FeatureCardGridView({
|
|
|
10904
10905
|
if (allCardsHaveNoBorders) {
|
|
10905
10906
|
finalCardClassName = "bg-transparent p-0 overflow-visible border-0 shadow-none rounded-none";
|
|
10906
10907
|
}
|
|
10907
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10908
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7Y6M4FW4cjs.Card, { className: `${finalCardClassName} ${className}`, children: Array.from({ length: rows }, (_, rowIndex) => {
|
|
10908
10909
|
const startIndex = rowIndex * itemsPerRow;
|
|
10909
10910
|
const rowItems = items.slice(startIndex, startIndex + itemsPerRow);
|
|
10910
10911
|
const isLastRow = rowIndex === rows - 1;
|
|
@@ -10938,7 +10939,7 @@ function FeatureCardGridView({
|
|
|
10938
10939
|
item.icon && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start justify-between", children: [
|
|
10939
10940
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, item.icon, { size: 80, color: item.iconColor }),
|
|
10940
10941
|
item.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10941
|
-
|
|
10942
|
+
_chunk7Y6M4FW4cjs.StatusBadge,
|
|
10942
10943
|
{
|
|
10943
10944
|
text: item.badge.text,
|
|
10944
10945
|
variant: item.badge.variant || "card",
|
|
@@ -10947,7 +10948,7 @@ function FeatureCardGridView({
|
|
|
10947
10948
|
)
|
|
10948
10949
|
] }),
|
|
10949
10950
|
!item.icon && item.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-start justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10950
|
-
|
|
10951
|
+
_chunk7Y6M4FW4cjs.StatusBadge,
|
|
10951
10952
|
{
|
|
10952
10953
|
text: item.badge.text,
|
|
10953
10954
|
variant: item.badge.variant || "card",
|
|
@@ -11178,7 +11179,7 @@ var CHANGE_CLASS = "w-8 text-right text-h6 tabular-nums";
|
|
|
11178
11179
|
var BOX_CLASS = "inline-flex shrink-0 items-center gap-[var(--spacing-system-xxs)]";
|
|
11179
11180
|
var FOCUS_CLASS = "rounded-sm outline-none focus-visible:ring-1 focus-visible:ring-ods-accent";
|
|
11180
11181
|
function formatTrendChange(change) {
|
|
11181
|
-
return change === 0 ? "0" : `${change > 0 ? "+" : "\u2212"}${
|
|
11182
|
+
return change === 0 ? "0" : `${change > 0 ? "+" : "\u2212"}${_chunkU2MHQBL4cjs.formatNumber.call(void 0, Math.abs(change))}`;
|
|
11182
11183
|
}
|
|
11183
11184
|
var TREND_TONES = {
|
|
11184
11185
|
positive: "text-ods-success",
|
|
@@ -11262,7 +11263,7 @@ function Trendline({
|
|
|
11262
11263
|
}
|
|
11263
11264
|
);
|
|
11264
11265
|
if (!details) return line;
|
|
11265
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11266
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.FloatingTooltip, { as: "span", side, triggerClassName: BOX_CLASS, content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TrendDetails, { render: details }), children: line });
|
|
11266
11267
|
}
|
|
11267
11268
|
function TrendDetails({ render }) {
|
|
11268
11269
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: render() });
|
|
@@ -11292,7 +11293,7 @@ function TrendHistoryCell({ column, value }) {
|
|
|
11292
11293
|
|
|
11293
11294
|
function SourceTooltip({ intro, sources, note, iconClassName, triggerAnchorProps }) {
|
|
11294
11295
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11295
|
-
|
|
11296
|
+
_chunkU2MHQBL4cjs.FloatingTooltip,
|
|
11296
11297
|
{
|
|
11297
11298
|
as: "span",
|
|
11298
11299
|
side: "top",
|
|
@@ -11680,7 +11681,7 @@ function OrganizationCardSkeleton({
|
|
|
11680
11681
|
..._chunk7JWFMAQBcjs.loadingItemProps.call(void 0, props),
|
|
11681
11682
|
children: [
|
|
11682
11683
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_HEADER_CLASS, children: [
|
|
11683
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11684
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.EntityImage, { src: null }),
|
|
11684
11685
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_TEXT_CLASS, children: [
|
|
11685
11686
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h3", className: "w-3/4" }),
|
|
11686
11687
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-1/2" })
|
|
@@ -11752,7 +11753,7 @@ function OrganizationCard({
|
|
|
11752
11753
|
}
|
|
11753
11754
|
),
|
|
11754
11755
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_HEADER_CLASS, children: [
|
|
11755
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11756
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.EntityImage, { src: fetchedImageUrl || organization.imageUrl, alt: organization.name }),
|
|
11756
11757
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_TEXT_CLASS, children: [
|
|
11757
11758
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "truncate text-ods-text-primary transition-colors text-h3", title: organization.name, children: organization.name }),
|
|
11758
11759
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11819,11 +11820,11 @@ function ServiceCard({
|
|
|
11819
11820
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-4", children: [
|
|
11820
11821
|
/* @__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 }),
|
|
11821
11822
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0", children: [
|
|
11822
|
-
loading && !title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h3", className: "w-40 max-w-full" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11823
|
-
loading && subtitle === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-56 max-w-full" }) : subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11823
|
+
loading && !title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h3", className: "w-40 max-w-full" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { variant: "h3", children: title }),
|
|
11824
|
+
loading && subtitle === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-56 max-w-full" }) : subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { variant: "h6", tone: "secondary", children: subtitle })
|
|
11824
11825
|
] })
|
|
11825
11826
|
] }),
|
|
11826
|
-
tag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11827
|
+
tag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { label: tag.label, variant: "outline", className: "shrink-0 self-start", loading })
|
|
11827
11828
|
] }),
|
|
11828
11829
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-3", children: rows.map((row, idx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ServiceCardRowItem, { row, loading }, idx)) })
|
|
11829
11830
|
] });
|
|
@@ -11831,8 +11832,8 @@ function ServiceCard({
|
|
|
11831
11832
|
function ServiceCardRowItem({ row, loading: loadingProp }) {
|
|
11832
11833
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
11833
11834
|
const [revealed, setRevealed] = _react.useState.call(void 0, false);
|
|
11834
|
-
const { copy, copied } =
|
|
11835
|
-
const { ref: valueRef, isTruncated: valueTruncated } =
|
|
11835
|
+
const { copy, copied } = _chunkGU3GJ5DHcjs.useCopyToClipboard.call(void 0, );
|
|
11836
|
+
const { ref: valueRef, isTruncated: valueTruncated } = _chunkLC65AC6Mcjs.useIsTruncated.call(void 0, row.value);
|
|
11836
11837
|
const actions = _react.useMemo.call(void 0, () => rowActions(row), [row]);
|
|
11837
11838
|
const displayValue = row.isSecret ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MaskedValue, { value: row.value, isRevealed: revealed }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: row.value });
|
|
11838
11839
|
const handleCopy = () => copy(_nullishCoalesce(row.copyValue, () => ( row.value)));
|
|
@@ -11847,7 +11848,7 @@ function ServiceCardRowItem({ row, loading: loadingProp }) {
|
|
|
11847
11848
|
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", className: "w-40 max-w-full" }) : (
|
|
11848
11849
|
// No tooltip while a secret is masked — the old native `title` leaked the raw value on hover.
|
|
11849
11850
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11850
|
-
|
|
11851
|
+
_chunkU2MHQBL4cjs.FloatingTooltip,
|
|
11851
11852
|
{
|
|
11852
11853
|
content: row.value,
|
|
11853
11854
|
side: "top",
|
|
@@ -11956,17 +11957,17 @@ function PersonCell({
|
|
|
11956
11957
|
const displayName = name || fallbackName;
|
|
11957
11958
|
const scale = PERSON_CELL_SIZE[size];
|
|
11958
11959
|
const row = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `group/person-cell ${PERSON_ROW_CLASS} ${scale.gap}`, children: [
|
|
11959
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11960
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.SquareAvatar, { size: scale.avatar, src: _nullishCoalesce(avatarUrl, () => ( void 0)), alt: displayName, fallback: displayName }),
|
|
11960
11961
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
11961
11962
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11962
|
-
|
|
11963
|
+
_chunk243TS7YLcjs.TruncateText,
|
|
11963
11964
|
{
|
|
11964
11965
|
variant: scale.primary,
|
|
11965
11966
|
className: onClick ? "text-ods-accent group-hover/person-cell:underline" : void 0,
|
|
11966
11967
|
children: displayName
|
|
11967
11968
|
}
|
|
11968
11969
|
),
|
|
11969
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11970
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { variant: "h6", tone: "secondary", children: secondary === void 0 ? "\xA0" : secondary || "\xB7" })
|
|
11970
11971
|
] })
|
|
11971
11972
|
] });
|
|
11972
11973
|
if (!onClick) return row;
|
|
@@ -11984,7 +11985,7 @@ function PersonCell({
|
|
|
11984
11985
|
function PersonCellSkeleton({ size = "sm" }) {
|
|
11985
11986
|
const scale = PERSON_CELL_SIZE[size];
|
|
11986
11987
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${PERSON_ROW_CLASS} ${scale.gap}`, "aria-hidden": true, children: [
|
|
11987
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11988
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.SquareAvatar, { loading: true, size: scale.avatar }),
|
|
11988
11989
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
11989
11990
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: scale.primary, className: "w-3/4" }),
|
|
11990
11991
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-1/2" })
|
|
@@ -12007,9 +12008,9 @@ function PeopleCell({ people, fallbackName = "Unassigned" }) {
|
|
|
12007
12008
|
);
|
|
12008
12009
|
}
|
|
12009
12010
|
const fullNames = people.map((p) => p.name || "Unknown").join(", ");
|
|
12010
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12011
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.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: [
|
|
12011
12012
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-hidden": true, className: "shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12012
|
-
|
|
12013
|
+
_chunk5QLDHPPUcjs.AvatarStack,
|
|
12013
12014
|
{
|
|
12014
12015
|
size: "sm",
|
|
12015
12016
|
slots: PEOPLE_CELL_STACK_SLOTS,
|
|
@@ -12017,7 +12018,7 @@ function PeopleCell({ people, fallbackName = "Unassigned" }) {
|
|
|
12017
12018
|
}
|
|
12018
12019
|
) }),
|
|
12019
12020
|
/* @__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: [
|
|
12020
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": true, children: people.map((p) =>
|
|
12021
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": true, children: people.map((p) => _chunkU2MHQBL4cjs.personFirstName.call(void 0, p.name, "Unknown")).join(" & ") }),
|
|
12021
12022
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: fullNames })
|
|
12022
12023
|
] })
|
|
12023
12024
|
] }) });
|
|
@@ -12343,7 +12344,7 @@ function QueryReportTable({
|
|
|
12343
12344
|
onThumbPointerMove,
|
|
12344
12345
|
onThumbPointerUp,
|
|
12345
12346
|
onThumbPointerCancel
|
|
12346
|
-
} =
|
|
12347
|
+
} = _chunkAPOMNC7Hcjs.useHorizontalScrollbar.call(void 0, );
|
|
12347
12348
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex w-full flex-col", isCompact ? "gap-0" : "gap-[var(--spacing-system-l)]", className), children: [
|
|
12348
12349
|
!isCompact && (title || headerActions || showExportButton) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-end justify-between pt-[var(--spacing-system-l)]", children: [
|
|
12349
12350
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-ods-text-primary text-h2", children: title }),
|
|
@@ -12864,7 +12865,7 @@ function DataTableRowImpl({
|
|
|
12864
12865
|
const containerRef = _react.useRef.call(void 0, null);
|
|
12865
12866
|
const handleClick = _react.useCallback.call(void 0,
|
|
12866
12867
|
(e) => {
|
|
12867
|
-
if (!
|
|
12868
|
+
if (!_chunkJ6C7F63Pcjs.isOwnClick.call(void 0, e.target, containerRef.current)) {
|
|
12868
12869
|
if (isLinkMode) e.preventDefault();
|
|
12869
12870
|
return;
|
|
12870
12871
|
}
|
|
@@ -12878,7 +12879,7 @@ function DataTableRowImpl({
|
|
|
12878
12879
|
if (!(target instanceof Element) || !_optionalChain([container, 'optionalAccess', _224 => _224.contains, 'call', _225 => _225(target)])) return;
|
|
12879
12880
|
const nestedLink = target.closest("a");
|
|
12880
12881
|
if (nestedLink && nestedLink !== container && container.contains(nestedLink)) return;
|
|
12881
|
-
if (!
|
|
12882
|
+
if (!_chunkJ6C7F63Pcjs.isOwnClick.call(void 0, target, container) || target.closest(ROW_LINK_CONTROL_SELECTOR)) e.preventDefault();
|
|
12882
12883
|
}, []);
|
|
12883
12884
|
const containerClassName = _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
12884
12885
|
DATA_TABLE_ROW_FRAME_CLASS,
|
|
@@ -13004,11 +13005,11 @@ function DataTableBody({
|
|
|
13004
13005
|
const hasRows = rows.length > 0;
|
|
13005
13006
|
const loadMore = useDataTableLoadMoreStore();
|
|
13006
13007
|
const loadMorePageSize = _react.useSyncExternalStore.call(void 0, loadMore.subscribe, loadMore.getSkeletonRows, getNoRows);
|
|
13007
|
-
|
|
13008
|
+
_chunkYSDB6HGQcjs.useIsomorphicLayoutEffect.call(void 0, () => hasRows ? loadMore.registerRowsBody() : void 0, [loadMore, hasRows]);
|
|
13008
13009
|
const skeletonRowClassName = typeof rowClassName === "string" ? rowClassName : void 0;
|
|
13009
13010
|
if (loading && loadingCells && hasRows) {
|
|
13010
13011
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13011
|
-
|
|
13012
|
+
_chunkCB77J5L7cjs.LoadingFallback,
|
|
13012
13013
|
{
|
|
13013
13014
|
label: "Loading results",
|
|
13014
13015
|
status: loadingRegion && !inScope,
|
|
@@ -13357,7 +13358,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13357
13358
|
// child of the cell.
|
|
13358
13359
|
_optionalChain([meta, 'optionalAccess', _244 => _244.hint]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13359
13360
|
filterTrigger,
|
|
13360
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13361
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ6C7F63Pcjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
13361
13362
|
] }) : filterTrigger
|
|
13362
13363
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13363
13364
|
"div",
|
|
@@ -13382,7 +13383,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13382
13383
|
// centred on the row.
|
|
13383
13384
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13384
13385
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
13385
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13386
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ6C7F63Pcjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
13386
13387
|
] })
|
|
13387
13388
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
13388
13389
|
canSort && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortIcon, { sorted: sortDir })
|
|
@@ -13446,7 +13447,7 @@ function DataTableInfiniteFooter({
|
|
|
13446
13447
|
const loadMore = useDataTableLoadMoreStore();
|
|
13447
13448
|
const bodyDrawsRows = _react.useSyncExternalStore.call(void 0, loadMore.subscribe, loadMore.getHasRowsBody, getNoBody);
|
|
13448
13449
|
const requestedRows = isFetchingNextPage ? pageSize : 0;
|
|
13449
|
-
|
|
13450
|
+
_chunkYSDB6HGQcjs.useIsomorphicLayoutEffect.call(void 0, () => {
|
|
13450
13451
|
loadMore.setSkeletonRows(requestedRows);
|
|
13451
13452
|
return () => loadMore.setSkeletonRows(0);
|
|
13452
13453
|
}, [loadMore, requestedRows]);
|
|
@@ -13621,7 +13622,7 @@ function PhoneInput({
|
|
|
13621
13622
|
placeholder = "Phone Number (optional)",
|
|
13622
13623
|
onKeyDown
|
|
13623
13624
|
}) {
|
|
13624
|
-
const { priority, others } = _react.useMemo.call(void 0, () =>
|
|
13625
|
+
const { priority, others } = _react.useMemo.call(void 0, () => _chunkJ6C7F63Pcjs.getCountryPhoneData.call(void 0, ), []);
|
|
13625
13626
|
const selectedCountry = _react.useMemo.call(void 0,
|
|
13626
13627
|
() => [...priority, ...others].find((c) => c.code === countryCode),
|
|
13627
13628
|
[countryCode, priority, others]
|
|
@@ -13636,7 +13637,7 @@ function PhoneInput({
|
|
|
13636
13637
|
_optionalChain([onValidationChange, 'optionalCall', _261 => _261(false)]);
|
|
13637
13638
|
return;
|
|
13638
13639
|
}
|
|
13639
|
-
const invalid = !
|
|
13640
|
+
const invalid = !_chunkJ6C7F63Pcjs.validatePhoneNumber.call(void 0, phone, countryCode);
|
|
13640
13641
|
setIsInvalid(invalid);
|
|
13641
13642
|
_optionalChain([onValidationChange, 'optionalCall', _262 => _262(invalid)]);
|
|
13642
13643
|
},
|
|
@@ -13656,7 +13657,7 @@ function PhoneInput({
|
|
|
13656
13657
|
}, []);
|
|
13657
13658
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 gap-2", children: [
|
|
13658
13659
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13659
|
-
|
|
13660
|
+
_chunk243TS7YLcjs.Select,
|
|
13660
13661
|
{
|
|
13661
13662
|
value: countryCode,
|
|
13662
13663
|
onValueChange: (val) => {
|
|
@@ -13667,14 +13668,14 @@ function PhoneInput({
|
|
|
13667
13668
|
},
|
|
13668
13669
|
disabled,
|
|
13669
13670
|
children: [
|
|
13670
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13671
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectTrigger, { className: "w-[130px] shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectValue, { children: selectedCountry && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-1.5", children: [
|
|
13671
13672
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: selectedCountry.flag }),
|
|
13672
13673
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: selectedCountry.dialCode })
|
|
13673
13674
|
] }) }) }),
|
|
13674
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13675
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13676
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13677
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13675
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk243TS7YLcjs.SelectContent, { className: "max-h-[300px] !w-[280px]", children: [
|
|
13676
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectGroup, { children: priority.map((country) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CountryOption, { country }, country.code)) }),
|
|
13677
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectSeparator, {}),
|
|
13678
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectGroup, { children: others.map((country) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CountryOption, { country }, country.code)) })
|
|
13678
13679
|
] })
|
|
13679
13680
|
]
|
|
13680
13681
|
}
|
|
@@ -13706,7 +13707,7 @@ function PhoneInput({
|
|
|
13706
13707
|
] });
|
|
13707
13708
|
}
|
|
13708
13709
|
function CountryOption({ country }) {
|
|
13709
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13710
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: country.code, textValue: country.name, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-2", children: [
|
|
13710
13711
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0", children: country.flag }),
|
|
13711
13712
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary", children: country.dialCode }),
|
|
13712
13713
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-block max-w-[140px] overflow-hidden text-ellipsis whitespace-nowrap", children: country.name })
|
|
@@ -13784,7 +13785,7 @@ function SearchInput({
|
|
|
13784
13785
|
}) {
|
|
13785
13786
|
const [internalValue, setInternalValue] = _react.useState.call(void 0, defaultValue);
|
|
13786
13787
|
const currentValue = onChange ? _nullishCoalesce(value, () => ( "")) : internalValue;
|
|
13787
|
-
const debouncedValue =
|
|
13788
|
+
const debouncedValue = _chunkCNTBGJA7cjs.useDebounce.call(void 0, currentValue, debounceMs);
|
|
13788
13789
|
const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
|
|
13789
13790
|
const [highlightedIndex, setHighlightedIndex] = _react.useState.call(void 0, -1);
|
|
13790
13791
|
const keyboardPadding = _chunk7Z536SPRcjs.useKeyboardCollisionPadding.call(void 0, );
|
|
@@ -13819,7 +13820,7 @@ function SearchInput({
|
|
|
13819
13820
|
document.addEventListener("mousedown", handleClick);
|
|
13820
13821
|
return () => document.removeEventListener("mousedown", handleClick);
|
|
13821
13822
|
}, [showHiddenTags]);
|
|
13822
|
-
|
|
13823
|
+
_chunkYSDB6HGQcjs.useIsomorphicLayoutEffect.call(void 0, () => {
|
|
13823
13824
|
const popup = hiddenTagsPopupRef.current;
|
|
13824
13825
|
const badge = badgeRef.current;
|
|
13825
13826
|
if (!popup || !badge) return;
|
|
@@ -13994,7 +13995,7 @@ function SearchInput({
|
|
|
13994
13995
|
/* @__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, {}) }),
|
|
13995
13996
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: middleRef, className: "flex min-w-0 flex-1 items-center gap-2 overflow-hidden", children: [
|
|
13996
13997
|
visibleChips.map((chip) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13997
|
-
|
|
13998
|
+
_chunkU2MHQBL4cjs.Tag,
|
|
13998
13999
|
{
|
|
13999
14000
|
variant: chipVariantToTagVariant(chip.variant),
|
|
14000
14001
|
label: chip.label,
|
|
@@ -14087,7 +14088,7 @@ function SearchInput({
|
|
|
14087
14088
|
)
|
|
14088
14089
|
] }),
|
|
14089
14090
|
showHiddenTags && hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14090
|
-
|
|
14091
|
+
_chunk243TS7YLcjs.HiddenTagsPopup,
|
|
14091
14092
|
{
|
|
14092
14093
|
ref: hiddenTagsPopupRef,
|
|
14093
14094
|
items: hiddenChips.map((chip) => ({ label: chip.label, value: chip.id })),
|
|
@@ -14107,7 +14108,7 @@ function SearchInput({
|
|
|
14107
14108
|
}
|
|
14108
14109
|
),
|
|
14109
14110
|
/* @__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,
|
|
14110
|
-
|
|
14111
|
+
_chunkU2MHQBL4cjs.Tag,
|
|
14111
14112
|
{
|
|
14112
14113
|
variant: chipVariantToTagVariant(chip.variant),
|
|
14113
14114
|
label: chip.label,
|
|
@@ -14269,7 +14270,7 @@ function TagSearchInput({
|
|
|
14269
14270
|
document.addEventListener("mousedown", handleClick);
|
|
14270
14271
|
return () => document.removeEventListener("mousedown", handleClick);
|
|
14271
14272
|
}, [showHiddenTags]);
|
|
14272
|
-
|
|
14273
|
+
_chunkYSDB6HGQcjs.useIsomorphicLayoutEffect.call(void 0, () => {
|
|
14273
14274
|
const popup = hiddenTagsPopupRef.current;
|
|
14274
14275
|
const badge = badgeRef.current;
|
|
14275
14276
|
if (!popup || !badge) return;
|
|
@@ -14320,7 +14321,7 @@ function TagSearchInput({
|
|
|
14320
14321
|
/* @__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" }) }),
|
|
14321
14322
|
/* @__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: [
|
|
14322
14323
|
visibleTags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14323
|
-
|
|
14324
|
+
_chunkU2MHQBL4cjs.Tag,
|
|
14324
14325
|
{
|
|
14325
14326
|
variant: "outline",
|
|
14326
14327
|
label: renderTag ? renderTag(tag) : tag.label,
|
|
@@ -14379,7 +14380,7 @@ function TagSearchInput({
|
|
|
14379
14380
|
}
|
|
14380
14381
|
),
|
|
14381
14382
|
showHiddenTags && hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14382
|
-
|
|
14383
|
+
_chunk243TS7YLcjs.HiddenTagsPopup,
|
|
14383
14384
|
{
|
|
14384
14385
|
ref: hiddenTagsPopupRef,
|
|
14385
14386
|
items: hiddenTags,
|
|
@@ -14393,7 +14394,7 @@ function TagSearchInput({
|
|
|
14393
14394
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { "aria-hidden": "true", className: _chunk7Z536SPRcjs.MEASURE_LAYER_CLASS, children: [
|
|
14394
14395
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { ref: textMeasureRef, "aria-hidden": "true", className: "whitespace-nowrap text-h4", children: currentPlaceholder }),
|
|
14395
14396
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: measureRef, "aria-hidden": "true", className: "flex w-max gap-2", children: tags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14396
|
-
|
|
14397
|
+
_chunkU2MHQBL4cjs.Tag,
|
|
14397
14398
|
{
|
|
14398
14399
|
variant: "outline",
|
|
14399
14400
|
label: renderTag ? renderTag(tag) : tag.label,
|
|
@@ -14455,8 +14456,8 @@ function MarkdownLinkDialog({ isOpen, initial, editing, onSubmit, onRemove, onCl
|
|
|
14455
14456
|
if (!trimmedUrl) return;
|
|
14456
14457
|
onSubmit({ text: text.trim(), url: trimmedUrl, rel });
|
|
14457
14458
|
};
|
|
14458
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14459
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14459
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNZSWROGMcjs.Modal, { isOpen, onClose, className: "text-left md:max-w-[560px]", children: [
|
|
14460
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNZSWROGMcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNZSWROGMcjs.ModalTitle, { children: editing ? "Edit link" : "Add link" }) }),
|
|
14460
14461
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14461
14462
|
"form",
|
|
14462
14463
|
{
|
|
@@ -14481,7 +14482,7 @@ function MarkdownLinkDialog({ isOpen, initial, editing, onSubmit, onRemove, onCl
|
|
|
14481
14482
|
),
|
|
14482
14483
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xsf)]", children: [
|
|
14483
14484
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14484
|
-
|
|
14485
|
+
_chunkCB77J5L7cjs.TabSelector,
|
|
14485
14486
|
{
|
|
14486
14487
|
label: "Search engines",
|
|
14487
14488
|
value: choice,
|
|
@@ -14498,7 +14499,7 @@ function MarkdownLinkDialog({ isOpen, initial, editing, onSubmit, onRemove, onCl
|
|
|
14498
14499
|
]
|
|
14499
14500
|
}
|
|
14500
14501
|
),
|
|
14501
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14502
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNZSWROGMcjs.ModalFooter, { children: [
|
|
14502
14503
|
editing ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "button", variant: "outline", onClick: onRemove, className: "flex-1", children: "Remove link" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "button", variant: "outline", onClick: onClose, className: "flex-1", children: "Cancel" }),
|
|
14503
14504
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "submit", form: formId, variant: "accent", disabled: !trimmedUrl, className: "flex-1", children: editing ? "Save" : "Add link" })
|
|
14504
14505
|
] })
|
|
@@ -14538,7 +14539,7 @@ function useMarkdownLinkCommand() {
|
|
|
14538
14539
|
buttonProps: { "aria-label": "Add or edit a link (ctrl + l)", title: "Add or edit a link (ctrl + l)" },
|
|
14539
14540
|
icon: command.icon,
|
|
14540
14541
|
execute: (state, api) => {
|
|
14541
|
-
const existing =
|
|
14542
|
+
const existing = _chunkCB77J5L7cjs.findMarkdownLinkAt.call(void 0, state.text, state.selection.start, state.selection.end);
|
|
14542
14543
|
setPending(
|
|
14543
14544
|
existing ? {
|
|
14544
14545
|
api,
|
|
@@ -14569,7 +14570,7 @@ function useMarkdownLinkCommand() {
|
|
|
14569
14570
|
initial: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _319 => _319.initial]), () => ( EMPTY_LINK)),
|
|
14570
14571
|
editing: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _320 => _320.editing]), () => ( false)),
|
|
14571
14572
|
onSubmit: (link) => {
|
|
14572
|
-
if (pending) write(pending,
|
|
14573
|
+
if (pending) write(pending, _chunkCB77J5L7cjs.formatMarkdownLink.call(void 0, link));
|
|
14573
14574
|
},
|
|
14574
14575
|
onRemove: () => {
|
|
14575
14576
|
if (pending) write(pending, pending.initial.text);
|
|
@@ -14735,7 +14736,7 @@ function MarkdownEditor({
|
|
|
14735
14736
|
setUploadProgress(`Uploading ${file.name}...`);
|
|
14736
14737
|
try {
|
|
14737
14738
|
const url = await onUploadFile(file);
|
|
14738
|
-
const isImage =
|
|
14739
|
+
const isImage = _chunkUP3TLY2Vcjs.fileMediaType.call(void 0, file) === "image";
|
|
14739
14740
|
const markdown = isImage ? `` : `[${file.name}](${url})`;
|
|
14740
14741
|
insertTextAtCursor(markdown);
|
|
14741
14742
|
_optionalChain([onFileUploaded, 'optionalCall', _323 => _323(url, file.name)]);
|
|
@@ -14865,7 +14866,7 @@ function MarkdownEditor({
|
|
|
14865
14866
|
type: "file",
|
|
14866
14867
|
className: "hidden",
|
|
14867
14868
|
onChange: handleFileInputChange,
|
|
14868
|
-
accept: `${
|
|
14869
|
+
accept: `${_chunkUP3TLY2Vcjs.IMAGE_FILE_ACCEPT},.pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.zip,.txt`
|
|
14869
14870
|
}
|
|
14870
14871
|
),
|
|
14871
14872
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownEditorHeightContext.Provider, { value: height, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Suspense, { fallback: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownEditorFieldSkeleton, { height }), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -15279,7 +15280,7 @@ function matchesAccept2(file, accept) {
|
|
|
15279
15280
|
return patterns.some((pattern) => {
|
|
15280
15281
|
if (pattern.startsWith(".")) return fileName.endsWith(pattern);
|
|
15281
15282
|
if (pattern.endsWith("/*"))
|
|
15282
|
-
return fileType.startsWith(pattern.slice(0, -1)) ||
|
|
15283
|
+
return fileType.startsWith(pattern.slice(0, -1)) || _chunkUP3TLY2Vcjs.fileMediaType.call(void 0, file) === pattern.slice(0, -2);
|
|
15283
15284
|
return fileType === pattern;
|
|
15284
15285
|
});
|
|
15285
15286
|
}
|
|
@@ -15287,7 +15288,7 @@ function ImageUploader({
|
|
|
15287
15288
|
value,
|
|
15288
15289
|
onChange,
|
|
15289
15290
|
onRemove,
|
|
15290
|
-
accept =
|
|
15291
|
+
accept = _chunkUP3TLY2Vcjs.IMAGE_FILE_ACCEPT,
|
|
15291
15292
|
maxSize = DEFAULT_MAX_SIZE,
|
|
15292
15293
|
label = "Cover Image",
|
|
15293
15294
|
description = "(Click Here or Drag and Drop)",
|
|
@@ -15307,7 +15308,7 @@ function ImageUploader({
|
|
|
15307
15308
|
const [pressed, setPressed] = _react.useState.call(void 0, false);
|
|
15308
15309
|
const [validationError, setValidationError] = _react.useState.call(void 0, null);
|
|
15309
15310
|
const interactive = !disabled && !loading;
|
|
15310
|
-
const resolvedValue =
|
|
15311
|
+
const resolvedValue = _chunkLC65AC6Mcjs.useAuthedImageSrc.call(void 0, value);
|
|
15311
15312
|
const hasImage = Boolean(value);
|
|
15312
15313
|
const displayError = error || validationError || void 0;
|
|
15313
15314
|
const resolvedHint = hint === void 0 ? `Max. size: ${formatSize(maxSize)}` : hint;
|
|
@@ -15519,13 +15520,13 @@ function ColorPresetSelect({
|
|
|
15519
15520
|
...presets.map((p) => ({
|
|
15520
15521
|
id: p.key,
|
|
15521
15522
|
label: p.label,
|
|
15522
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15523
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZW25QUJKcjs.ColorSwatch, { color: p.color }),
|
|
15523
15524
|
onClick: () => onChange({ color: p.color, preset: p.key })
|
|
15524
15525
|
})),
|
|
15525
15526
|
{
|
|
15526
15527
|
id: CUSTOM_PRESET_KEY,
|
|
15527
15528
|
label: "Custom",
|
|
15528
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15529
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZW25QUJKcjs.ColorSwatch, { color: isCustom ? value : DEFAULT_CUSTOM_STATUS_COLOR }),
|
|
15529
15530
|
onClick: () => onChange({ color: value, preset: void 0 })
|
|
15530
15531
|
}
|
|
15531
15532
|
]
|
|
@@ -15542,7 +15543,7 @@ function ColorPresetSelect({
|
|
|
15542
15543
|
{
|
|
15543
15544
|
disabled,
|
|
15544
15545
|
"aria-label": `Color: ${displayLabel}`,
|
|
15545
|
-
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15546
|
+
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZW25QUJKcjs.ColorSwatch, { color: displayColor }),
|
|
15546
15547
|
selectedLabel: displayLabel,
|
|
15547
15548
|
endIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TriggerChevron, {}),
|
|
15548
15549
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "group", className)
|
|
@@ -15563,7 +15564,7 @@ function HexInputs({ value, onChange }) {
|
|
|
15563
15564
|
}
|
|
15564
15565
|
const commit = () => {
|
|
15565
15566
|
const candidate = (draft.startsWith("#") ? draft : `#${draft}`).toLowerCase();
|
|
15566
|
-
if (
|
|
15567
|
+
if (_chunkOQDPZOGCcjs.HEX_PATTERN.test(candidate)) onChange(candidate);
|
|
15567
15568
|
else setDraft(value);
|
|
15568
15569
|
};
|
|
15569
15570
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -15627,12 +15628,12 @@ function ChannelInput({
|
|
|
15627
15628
|
);
|
|
15628
15629
|
}
|
|
15629
15630
|
function RgbInputs({ value, onChange }) {
|
|
15630
|
-
const rgb = _nullishCoalesce(
|
|
15631
|
+
const rgb = _nullishCoalesce(_chunkOQDPZOGCcjs.hexToRgb.call(void 0, value), () => ( { r: 0, g: 0, b: 0 }));
|
|
15631
15632
|
const update = (next) => {
|
|
15632
15633
|
const r = _nullishCoalesce(next.r, () => ( rgb.r));
|
|
15633
15634
|
const g = _nullishCoalesce(next.g, () => ( rgb.g));
|
|
15634
15635
|
const b = _nullishCoalesce(next.b, () => ( rgb.b));
|
|
15635
|
-
onChange(
|
|
15636
|
+
onChange(_chunkOQDPZOGCcjs.rgbToHex.call(void 0, r, g, b));
|
|
15636
15637
|
};
|
|
15637
15638
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
15638
15639
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChannelInput, { value: rgb.r, min: 0, max: 255, ariaLabel: "Red", onCommit: (r) => update({ r }) }),
|
|
@@ -15641,14 +15642,14 @@ function RgbInputs({ value, onChange }) {
|
|
|
15641
15642
|
] });
|
|
15642
15643
|
}
|
|
15643
15644
|
function HslInputs({ value, onChange }) {
|
|
15644
|
-
const rgb = _nullishCoalesce(
|
|
15645
|
-
const hsl =
|
|
15645
|
+
const rgb = _nullishCoalesce(_chunkOQDPZOGCcjs.hexToRgb.call(void 0, value), () => ( { r: 0, g: 0, b: 0 }));
|
|
15646
|
+
const hsl = _chunkOQDPZOGCcjs.rgbToHsl.call(void 0, rgb.r, rgb.g, rgb.b);
|
|
15646
15647
|
const update = (next) => {
|
|
15647
15648
|
const h = _nullishCoalesce(next.h, () => ( hsl.h));
|
|
15648
15649
|
const s = _nullishCoalesce(next.s, () => ( hsl.s));
|
|
15649
15650
|
const l = _nullishCoalesce(next.l, () => ( hsl.l));
|
|
15650
|
-
const out =
|
|
15651
|
-
onChange(
|
|
15651
|
+
const out = _chunkOQDPZOGCcjs.hslToRgb.call(void 0, h, s, l);
|
|
15652
|
+
onChange(_chunkOQDPZOGCcjs.rgbToHex.call(void 0, out.r, out.g, out.b));
|
|
15652
15653
|
};
|
|
15653
15654
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
15654
15655
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChannelInput, { value: hsl.h, min: 0, max: 360, ariaLabel: "Hue", onCommit: (h) => update({ h }) }),
|
|
@@ -15680,7 +15681,7 @@ function ColorPickerInput({
|
|
|
15680
15681
|
{
|
|
15681
15682
|
disabled,
|
|
15682
15683
|
"aria-label": "Pick custom color",
|
|
15683
|
-
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15684
|
+
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZW25QUJKcjs.ColorSwatch, { color: value }),
|
|
15684
15685
|
selectedLabel: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase", children: value }),
|
|
15685
15686
|
endIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TriggerChevron, {}),
|
|
15686
15687
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "group", className)
|
|
@@ -15752,7 +15753,7 @@ function TicketStatusConfigRow({
|
|
|
15752
15753
|
loading: loadingProp
|
|
15753
15754
|
}) {
|
|
15754
15755
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || !!loadingProp;
|
|
15755
|
-
const dragAndDropEnabled =
|
|
15756
|
+
const dragAndDropEnabled = _chunkAPOMNC7Hcjs.useDragAndDropEnabled.call(void 0, );
|
|
15756
15757
|
const nameInputId = _react.useId.call(void 0, );
|
|
15757
15758
|
const isSystem = variant === "system";
|
|
15758
15759
|
const isCustomColor = !isSystem && presetKey === void 0;
|
|
@@ -15761,7 +15762,7 @@ function TicketStatusConfigRow({
|
|
|
15761
15762
|
const previewVariant = _nullishCoalesce(systemTagVariant, () => ( (isSystem ? void 0 : "primary")));
|
|
15762
15763
|
const fieldRowOffset = "mt-[calc(var(--font-line-space-h4-body)+0.25rem)]";
|
|
15763
15764
|
const chip = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15764
|
-
|
|
15765
|
+
_chunkZW25QUJKcjs.TicketStatusTag,
|
|
15765
15766
|
{
|
|
15766
15767
|
loading,
|
|
15767
15768
|
status: statusKey,
|
|
@@ -15878,9 +15879,9 @@ function TicketStatusConfigRow({
|
|
|
15878
15879
|
),
|
|
15879
15880
|
children: [
|
|
15880
15881
|
!isSystem && moveButtons,
|
|
15881
|
-
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,
|
|
15882
|
+
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, _chunkZZO3FGPMcjs.TouchFriendlyTooltip, { content: systemTooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "bare", size: "icon-sm", type: "button", "aria-label": _nullishCoalesce(systemTooltip, () => ( "System status")), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRHC2FRVEcjs.InfoCircleIcon, { size: 24 }) }) }) }) : (
|
|
15882
15883
|
// The delete button is a static control: drawn for real in both forms, inert while the status is read.
|
|
15883
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.InertWhileLoading, { loading, className: "inline-flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15884
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.InertWhileLoading, { loading, className: "inline-flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZZO3FGPMcjs.TouchFriendlyTooltip, { content: deleteDisabled && !loading ? deleteDisabledReason : void 0, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15884
15885
|
_chunkAHBTZ7DNcjs.Button,
|
|
15885
15886
|
{
|
|
15886
15887
|
type: "button",
|
|
@@ -15921,7 +15922,7 @@ var TEST_RESULTS_SKELETON_COLUMNS = 6;
|
|
|
15921
15922
|
function TestResultsSkeleton({
|
|
15922
15923
|
region = true
|
|
15923
15924
|
} = {}) {
|
|
15924
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLKQ33CMYcjs.LoadingRegion, { label: "Loading the test results", announce: region, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15925
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLKQ33CMYcjs.LoadingRegion, { label: "Loading the test results", announce: region, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNZSWROGMcjs.ScrollShadow, { axis: "horizontal", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-max min-w-full flex-col", children: [
|
|
15925
15926
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex", ROW_SHELL_CLASSES), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count: TEST_RESULTS_SKELETON_COLUMNS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 shrink-0 items-center", style: { width: RESULT_COLUMN_MIN_WIDTH }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h5", className: "w-3/4" }) }) }) }),
|
|
15926
15927
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DATA_TABLE_ROW_FRAME_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex", ROW_SHELL_CLASSES, ROW_HEIGHT_DESKTOP), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count: TEST_RESULTS_SKELETON_COLUMNS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, className: "shrink-0", style: { width: RESULT_COLUMN_MIN_WIDTH }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h4", className: "w-3/4" }) }) }) }) })
|
|
15927
15928
|
] }) }) });
|
|
@@ -15957,13 +15958,13 @@ function TestResultsTable({ rows, loading: loadingProp }) {
|
|
|
15957
15958
|
if (loading) {
|
|
15958
15959
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TestResultsSkeleton, {});
|
|
15959
15960
|
}
|
|
15960
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15961
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNZSWROGMcjs.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: [
|
|
15961
15962
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTable.Header, { className: "flex flex-col" }),
|
|
15962
15963
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTable.Body, { loading: false })
|
|
15963
15964
|
] }) }) });
|
|
15964
15965
|
}
|
|
15965
15966
|
function TestRunErrorBanner({ error, className }) {
|
|
15966
|
-
const { copy } =
|
|
15967
|
+
const { copy } = _chunkGU3GJ5DHcjs.useCopyToClipboard.call(void 0, { successDescription: "Error message copied to clipboard" });
|
|
15967
15968
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
15968
15969
|
"div",
|
|
15969
15970
|
{
|
|
@@ -16022,7 +16023,7 @@ var TEST_RUN_STATUS_TAGS = {
|
|
|
16022
16023
|
function TestRunStatusStat({ status, className }) {
|
|
16023
16024
|
const tag = status === "idle" ? null : TEST_RUN_STATUS_TAGS[status];
|
|
16024
16025
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex min-w-0 flex-col items-start justify-center gap-[var(--spacing-system-xxs)]", className), children: [
|
|
16025
|
-
tag ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16026
|
+
tag ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.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: "-" }),
|
|
16026
16027
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: "Status" })
|
|
16027
16028
|
] });
|
|
16028
16029
|
}
|
|
@@ -16066,7 +16067,7 @@ function useTestRunState(campaign) {
|
|
|
16066
16067
|
const stopReason = _nullishCoalesce(campaign.stopReason, () => ( "completed"));
|
|
16067
16068
|
const status = isActive ? "running" : hasRun && isFinished ? stopReason === "completed" ? firstError ? "error" : "success" : stopReason : "idle";
|
|
16068
16069
|
const showTiming = hasRun && campaign.startedAt !== null && (campaign.isRunning || isFinished);
|
|
16069
|
-
const startedLabel = showTiming && campaign.startedAt ?
|
|
16070
|
+
const startedLabel = showTiming && campaign.startedAt ? _chunkNZSWROGMcjs.formatTime.call(void 0, campaign.startedAt) : "00:00 PM";
|
|
16070
16071
|
const durationLabel = showTiming ? formatTestRunDuration(durationMs) : "00:00:00";
|
|
16071
16072
|
const displayRows = _react.useMemo.call(void 0,
|
|
16072
16073
|
() => campaign.results.map(
|
|
@@ -16105,7 +16106,7 @@ function TicketAttachmentsList({ attachments, className, size = "default" }) {
|
|
|
16105
16106
|
),
|
|
16106
16107
|
children: [
|
|
16107
16108
|
attachment.thumbnailSrc ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16108
|
-
|
|
16109
|
+
_chunkU2MHQBL4cjs.SquareAvatar,
|
|
16109
16110
|
{
|
|
16110
16111
|
src: attachment.thumbnailSrc,
|
|
16111
16112
|
alt: attachment.fileName,
|
|
@@ -16203,7 +16204,7 @@ function TicketNoteCard({ note, onEdit, onDelete, className }) {
|
|
|
16203
16204
|
};
|
|
16204
16205
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex items-start gap-4 rounded-[6px] p-3", "border border-ods-border bg-ods-card", className), children: [
|
|
16205
16206
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16206
|
-
|
|
16207
|
+
_chunkU2MHQBL4cjs.SquareAvatar,
|
|
16207
16208
|
{
|
|
16208
16209
|
src: note.authorAvatar,
|
|
16209
16210
|
alt: note.authorName,
|
|
@@ -16388,7 +16389,7 @@ function TicketInfoSection({
|
|
|
16388
16389
|
/* @__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: [
|
|
16389
16390
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
16390
16391
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16391
|
-
|
|
16392
|
+
_chunkU2MHQBL4cjs.SquareAvatar,
|
|
16392
16393
|
{
|
|
16393
16394
|
src: _optionalChain([organization, 'optionalAccess', _359 => _359.imageSrc]),
|
|
16394
16395
|
alt: _optionalChain([organization, 'optionalAccess', _360 => _360.name]),
|
|
@@ -16419,7 +16420,7 @@ function TicketInfoSection({
|
|
|
16419
16420
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: _optionalChain([device, 'optionalAccess', _363 => _363.name]) || "Unassigned", label: "Device", icon: _optionalChain([device, 'optionalAccess', _364 => _364.icon]), onClick: _optionalChain([device, 'optionalAccess', _365 => _365.onClick]) }),
|
|
16420
16421
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-4", children: [
|
|
16421
16422
|
(status || statusLabel) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16422
|
-
|
|
16423
|
+
_chunkZW25QUJKcjs.TicketStatusTag,
|
|
16423
16424
|
{
|
|
16424
16425
|
status: _nullishCoalesce(status, () => ( "")),
|
|
16425
16426
|
label: statusLabel,
|
|
@@ -16449,9 +16450,9 @@ function TicketInfoSection({
|
|
|
16449
16450
|
expanded && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
16450
16451
|
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" }) }),
|
|
16451
16452
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-4 border-b border-ods-border bg-ods-bg p-4", children: [
|
|
16452
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16453
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCB77J5L7cjs.SimpleMarkdownRenderer, { content: description }),
|
|
16453
16454
|
attachments && attachments.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Attachments", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketAttachmentsList, { attachments }) }),
|
|
16454
|
-
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,
|
|
16455
|
+
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, _chunkU2MHQBL4cjs.Tag, { label: tag, variant: "outline", className: "max-w-full" }, tag)) }) }),
|
|
16455
16456
|
(notes || onAddNote) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Notes", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16456
16457
|
TicketNotesSection,
|
|
16457
16458
|
{
|
|
@@ -16474,8 +16475,8 @@ function renderTicketStatusOption(option, isSelected) {
|
|
|
16474
16475
|
const { label, color } = option;
|
|
16475
16476
|
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: [
|
|
16476
16477
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
16477
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16478
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16478
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZW25QUJKcjs.ColorSwatch, { color }),
|
|
16479
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { className: "text-inherit", children: label }) })
|
|
16479
16480
|
] }),
|
|
16480
16481
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
16481
16482
|
] });
|
|
@@ -16484,8 +16485,8 @@ function renderTicketAssigneeOption(option, isSelected) {
|
|
|
16484
16485
|
const { label, imageUrl } = option;
|
|
16485
16486
|
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: [
|
|
16486
16487
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
16487
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16488
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16488
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.SquareAvatar, { src: imageUrl, alt: label, fallback: label, size: "sm", variant: "round" }),
|
|
16489
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { className: "text-inherit", children: label }) })
|
|
16489
16490
|
] }),
|
|
16490
16491
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
16491
16492
|
] });
|
|
@@ -16493,7 +16494,7 @@ function renderTicketAssigneeOption(option, isSelected) {
|
|
|
16493
16494
|
function withTicketAssigneeAvatars(options) {
|
|
16494
16495
|
return options.map((option) => ({
|
|
16495
16496
|
...option,
|
|
16496
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16497
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.SquareAvatar, { src: option.imageUrl, alt: option.label, fallback: option.label, size: "sm", variant: "round" })
|
|
16497
16498
|
}));
|
|
16498
16499
|
}
|
|
16499
16500
|
function TakeOverTicketModal({
|
|
@@ -16526,9 +16527,9 @@ function TakeOverTicketModal({
|
|
|
16526
16527
|
if (!selectedStatusId || !assigneeId || isPending) return;
|
|
16527
16528
|
onConfirm({ statusId: selectedStatusId, assigneeId });
|
|
16528
16529
|
};
|
|
16529
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16530
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNZSWROGMcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
16530
16531
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
16531
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16532
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNZSWROGMcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNZSWROGMcjs.ModalTitle, { children: "Take Over Ticket" }) }),
|
|
16532
16533
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
16533
16534
|
"The ticket ",
|
|
16534
16535
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-accent", children: ticketRef }),
|
|
@@ -16536,19 +16537,19 @@ function TakeOverTicketModal({
|
|
|
16536
16537
|
] }),
|
|
16537
16538
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)] md:flex-row", children: [
|
|
16538
16539
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16539
|
-
|
|
16540
|
+
_chunk243TS7YLcjs.Autocomplete,
|
|
16540
16541
|
{
|
|
16541
16542
|
label: "Status",
|
|
16542
16543
|
options: statusOptions,
|
|
16543
16544
|
value: selectedStatusId,
|
|
16544
16545
|
onChange: setStatusId,
|
|
16545
16546
|
placeholder: "Select Status",
|
|
16546
|
-
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16547
|
+
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZW25QUJKcjs.ColorSwatch, { color: selectedStatus.color }) : void 0,
|
|
16547
16548
|
renderOption: renderTicketStatusOption
|
|
16548
16549
|
}
|
|
16549
16550
|
) }),
|
|
16550
16551
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16551
|
-
|
|
16552
|
+
_chunk243TS7YLcjs.Autocomplete,
|
|
16552
16553
|
{
|
|
16553
16554
|
label: "Assigned",
|
|
16554
16555
|
options: withTicketAssigneeAvatars(assigneeOptions),
|
|
@@ -16562,7 +16563,7 @@ function TakeOverTicketModal({
|
|
|
16562
16563
|
}
|
|
16563
16564
|
) })
|
|
16564
16565
|
] }),
|
|
16565
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16566
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNZSWROGMcjs.ModalFooter, { children: [
|
|
16566
16567
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
16567
16568
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
16568
16569
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -16622,9 +16623,9 @@ function ReopenTicketModal({
|
|
|
16622
16623
|
reason: trimmedReason ? trimmedReason.slice(0, REASON_MAX_LENGTH) : null
|
|
16623
16624
|
});
|
|
16624
16625
|
};
|
|
16625
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16626
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNZSWROGMcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
16626
16627
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
16627
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16628
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNZSWROGMcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNZSWROGMcjs.ModalTitle, { children: "Reopen Ticket" }) }),
|
|
16628
16629
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
16629
16630
|
"The ticket ",
|
|
16630
16631
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-accent", children: ticketRef }),
|
|
@@ -16632,19 +16633,19 @@ function ReopenTicketModal({
|
|
|
16632
16633
|
] }),
|
|
16633
16634
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)] md:flex-row", children: [
|
|
16634
16635
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16635
|
-
|
|
16636
|
+
_chunk243TS7YLcjs.Autocomplete,
|
|
16636
16637
|
{
|
|
16637
16638
|
label: "Status",
|
|
16638
16639
|
options: statusOptions,
|
|
16639
16640
|
value: selectedStatusId,
|
|
16640
16641
|
onChange: setStatusId,
|
|
16641
16642
|
placeholder: "Select Status",
|
|
16642
|
-
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16643
|
+
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZW25QUJKcjs.ColorSwatch, { color: selectedStatus.color }) : void 0,
|
|
16643
16644
|
renderOption: renderTicketStatusOption
|
|
16644
16645
|
}
|
|
16645
16646
|
) }),
|
|
16646
16647
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16647
|
-
|
|
16648
|
+
_chunk243TS7YLcjs.Autocomplete,
|
|
16648
16649
|
{
|
|
16649
16650
|
label: "Assigned",
|
|
16650
16651
|
options: withTicketAssigneeAvatars(assigneeOptions),
|
|
@@ -16669,7 +16670,7 @@ function ReopenTicketModal({
|
|
|
16669
16670
|
disabled: isPending
|
|
16670
16671
|
}
|
|
16671
16672
|
) }),
|
|
16672
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16673
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNZSWROGMcjs.ModalFooter, { children: [
|
|
16673
16674
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
16674
16675
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
16675
16676
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -16718,9 +16719,9 @@ function ReopenTicketRequestModal({
|
|
|
16718
16719
|
...showHandoffOption ? { handoffToTechnician: handoff } : {}
|
|
16719
16720
|
});
|
|
16720
16721
|
};
|
|
16721
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16722
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNZSWROGMcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
16722
16723
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
16723
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16724
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNZSWROGMcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNZSWROGMcjs.ModalTitle, { children: "Reopen Ticket" }) }),
|
|
16724
16725
|
/* @__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." }),
|
|
16725
16726
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16726
16727
|
Textarea,
|
|
@@ -16744,7 +16745,7 @@ function ReopenTicketRequestModal({
|
|
|
16744
16745
|
disabled: isPending
|
|
16745
16746
|
}
|
|
16746
16747
|
),
|
|
16747
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16748
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNZSWROGMcjs.ModalFooter, { children: [
|
|
16748
16749
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1", children: "Cancel" }),
|
|
16749
16750
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "button", variant: "accent", onClick: handleConfirm, loading: isPending, className: "flex-1", children: "Reopen Ticket" })
|
|
16750
16751
|
] })
|
|
@@ -16924,7 +16925,7 @@ function PhotoWall({
|
|
|
16924
16925
|
gap: COLUMN_GAP_PX
|
|
16925
16926
|
};
|
|
16926
16927
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: rootRef, "aria-hidden": "true", className: _chunk7JWFMAQBcjs.cn.call(void 0, "grid overflow-hidden", className), style: gridStyle, children: columnsToDraw ? columnsToDraw.map((column, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16927
|
-
|
|
16928
|
+
_chunkCB77J5L7cjs.MarqueeWall,
|
|
16928
16929
|
{
|
|
16929
16930
|
axis: "y",
|
|
16930
16931
|
reverse: index % 2 === 1,
|
|
@@ -17060,7 +17061,7 @@ function LazyMount({
|
|
|
17060
17061
|
// src/components/ui/app-window-frame.tsx
|
|
17061
17062
|
|
|
17062
17063
|
function AppWindowFrame({ title, children, footer, agent, className, bodyClassName }) {
|
|
17063
|
-
const tint =
|
|
17064
|
+
const tint = _chunkOQDPZOGCcjs.useAgentTint.call(void 0, agent);
|
|
17064
17065
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17065
17066
|
"div",
|
|
17066
17067
|
{
|
|
@@ -17088,9 +17089,9 @@ function AppWindowFrame({ title, children, footer, agent, className, bodyClassNa
|
|
|
17088
17089
|
// src/components/ui/product-screen-frame.tsx
|
|
17089
17090
|
|
|
17090
17091
|
|
|
17091
|
-
var PRODUCT_SCREEN_DESIGN_WIDTH =
|
|
17092
|
-
var PRODUCT_SCREEN_READABLE_WIDTH =
|
|
17093
|
-
var PRODUCT_SCREEN_SCALE_FROM =
|
|
17092
|
+
var PRODUCT_SCREEN_DESIGN_WIDTH = _chunkLC65AC6Mcjs.LAYOUT_STEPS["2xl"].content;
|
|
17093
|
+
var PRODUCT_SCREEN_READABLE_WIDTH = _chunkLC65AC6Mcjs.LAYOUT_STEPS.lg.content;
|
|
17094
|
+
var PRODUCT_SCREEN_SCALE_FROM = _chunkLC65AC6Mcjs.LAYOUT_STEPS.md.content;
|
|
17094
17095
|
var SCALE_VAR = "--product-screen-scale";
|
|
17095
17096
|
function ProductScreenFrame({
|
|
17096
17097
|
children,
|
|
@@ -17154,7 +17155,7 @@ function ProductScreenFrame({
|
|
|
17154
17155
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "ods-content-area", pending && "product-screen-pending"),
|
|
17155
17156
|
style: screenStyle,
|
|
17156
17157
|
children: [
|
|
17157
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ods-content-scope", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingScope, { bare: true, active: pending, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17158
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ods-content-scope", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingScope, { bare: true, active: pending, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.PagePicture, { children }) }) }),
|
|
17158
17159
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
|
|
17159
17160
|
]
|
|
17160
17161
|
}
|
|
@@ -17292,7 +17293,7 @@ function PhoneFrame({ dateLabel, timeLabel, children, className }) {
|
|
|
17292
17293
|
"div",
|
|
17293
17294
|
{
|
|
17294
17295
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "h-[617px] w-[299px] shrink-0 rounded-[48px] border border-ods-border bg-black p-2.5", className),
|
|
17295
|
-
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "relative flex h-full flex-col overflow-hidden rounded-[38px]",
|
|
17296
|
+
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "relative flex h-full flex-col overflow-hidden rounded-[38px]", _chunk243TS7YLcjs.DEVICE_WALLPAPER_CLASS), children: [
|
|
17296
17297
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17297
17298
|
"div",
|
|
17298
17299
|
{
|
|
@@ -17484,7 +17485,7 @@ var TRIAL_TERM_ICONS = {
|
|
|
17484
17485
|
};
|
|
17485
17486
|
var DEFAULT_TRIAL_TERMS = ["cancel", "length", "noContract"];
|
|
17486
17487
|
function trialBenefits(trialDays, terms = DEFAULT_TRIAL_TERMS) {
|
|
17487
|
-
const labels =
|
|
17488
|
+
const labels = _chunkJ6C7F63Pcjs.trialLabels.call(void 0, trialDays);
|
|
17488
17489
|
return terms.flatMap((term) => {
|
|
17489
17490
|
const label = labels[term];
|
|
17490
17491
|
return label ? [{ icon: TRIAL_TERM_ICONS[term], label }] : [];
|
|
@@ -17591,7 +17592,7 @@ function AnalyzingState({ label, className }) {
|
|
|
17591
17592
|
}) }),
|
|
17592
17593
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1.5 text-center text-ods-text-secondary text-h4", children: [
|
|
17593
17594
|
label,
|
|
17594
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17595
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNZSWROGMcjs.ChatTypingIndicator, { "aria-hidden": true, size: "sm", dotClassName: "bg-ods-text-secondary motion-reduce:animate-none" })
|
|
17595
17596
|
] })
|
|
17596
17597
|
] });
|
|
17597
17598
|
}
|
|
@@ -17605,7 +17606,7 @@ var INCIDENT_TONE = {
|
|
|
17605
17606
|
approved: "success"
|
|
17606
17607
|
};
|
|
17607
17608
|
function IncidentStatusLine({ status, label, className }) {
|
|
17608
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17609
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZW25QUJKcjs.StatusLine, { tone: INCIDENT_TONE[status], label, className });
|
|
17609
17610
|
}
|
|
17610
17611
|
var FEED_CLASS = "flex min-h-0 flex-1 flex-col gap-3 overflow-hidden p-4 md:px-5";
|
|
17611
17612
|
var FEED_BOTTOM_CLASS = "justify-end [mask-image:linear-gradient(180deg,transparent_0,#000_48px)]";
|
|
@@ -17793,8 +17794,8 @@ function SnapCarousel({
|
|
|
17793
17794
|
}) {
|
|
17794
17795
|
const trackRef = _react.useRef.call(void 0, null);
|
|
17795
17796
|
const [index, setIndex] = _react.useState.call(void 0, 0);
|
|
17796
|
-
const { ref: viewRef, inView } =
|
|
17797
|
-
const auto =
|
|
17797
|
+
const { ref: viewRef, inView } = _chunkCNTBGJA7cjs.useInView.call(void 0, { threshold: 0.5 });
|
|
17798
|
+
const auto = _chunkCNTBGJA7cjs.useAutoplay.call(void 0, inView);
|
|
17798
17799
|
const count = items.length;
|
|
17799
17800
|
const slideStep = _react.useCallback.call(void 0, () => {
|
|
17800
17801
|
const first = _optionalChain([trackRef, 'access', _376 => _376.current, 'optionalAccess', _377 => _377.firstElementChild]);
|
|
@@ -17838,7 +17839,7 @@ function SnapCarousel({
|
|
|
17838
17839
|
const goNext = _react.useCallback.call(void 0, () => goTo(index >= count - 1 ? 0 : index + 1), [count, goTo, index]);
|
|
17839
17840
|
const canAutoAdvance = autoAdvanceMs > 0 && count > 1;
|
|
17840
17841
|
const playing = auto.playing && canAutoAdvance;
|
|
17841
|
-
const ranMs =
|
|
17842
|
+
const ranMs = _chunkGU3GJ5DHcjs.useResumableTimeout.call(void 0, {
|
|
17842
17843
|
running: playing,
|
|
17843
17844
|
durationMs: autoAdvanceMs,
|
|
17844
17845
|
resetKey: index,
|
|
@@ -17970,7 +17971,7 @@ function SuperUserBannerView({
|
|
|
17970
17971
|
endAdornment: (
|
|
17971
17972
|
// Below `md` the chip would take the width the tenant name needs, and
|
|
17972
17973
|
// the name is the point of the strip: the chip waits for `md`.
|
|
17973
|
-
environmentLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17974
|
+
environmentLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { variant: "critical", label: environmentLabel, className: "uppercase max-md:hidden" }) : void 0
|
|
17974
17975
|
)
|
|
17975
17976
|
}
|
|
17976
17977
|
);
|
|
@@ -18189,10 +18190,10 @@ function AccountDetailsFields({
|
|
|
18189
18190
|
onKeyDown,
|
|
18190
18191
|
layout = "stacked"
|
|
18191
18192
|
}) {
|
|
18192
|
-
const firstNameErr =
|
|
18193
|
-
const lastNameErr =
|
|
18194
|
-
const passwordErr =
|
|
18195
|
-
const confirmErr =
|
|
18193
|
+
const firstNameErr = _chunkGU3GJ5DHcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _378 => _378.firstName]), firstName);
|
|
18194
|
+
const lastNameErr = _chunkGU3GJ5DHcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _379 => _379.lastName]), lastName);
|
|
18195
|
+
const passwordErr = _chunkGU3GJ5DHcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _380 => _380.password]), password);
|
|
18196
|
+
const confirmErr = _chunkGU3GJ5DHcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _381 => _381.confirmPassword]), confirmPassword);
|
|
18196
18197
|
const names = [
|
|
18197
18198
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18198
18199
|
_chunk7RM4NM2Ccjs.Input,
|
|
@@ -18458,7 +18459,7 @@ function SsoProviderButtons({
|
|
|
18458
18459
|
// where a long organization name would otherwise push the label out of a phone-width
|
|
18459
18460
|
// button. `block` over its inline-flex, because an ellipsis only renders on a block box.
|
|
18460
18461
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18461
|
-
|
|
18462
|
+
_chunk7Y6M4FW4cjs.StatusBadge,
|
|
18462
18463
|
{
|
|
18463
18464
|
text: tag,
|
|
18464
18465
|
variant: "button",
|
|
@@ -18518,7 +18519,7 @@ function CompleteAccountForm({
|
|
|
18518
18519
|
),
|
|
18519
18520
|
children: [
|
|
18520
18521
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
18521
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
18522
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkUP3TLY2Vcjs.accentSentenceMarks.call(void 0, title) }),
|
|
18522
18523
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
18523
18524
|
] }),
|
|
18524
18525
|
(ssoProvidersLoading || ssoProviders && ssoProviders.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -18652,9 +18653,9 @@ function CreateOrganizationForm({
|
|
|
18652
18653
|
}) {
|
|
18653
18654
|
const hasSso = !!ssoProviders && ssoProviders.length > 0;
|
|
18654
18655
|
const fieldsDisabled = disabled || loading;
|
|
18655
|
-
const emailErr =
|
|
18656
|
-
const orgNameErr =
|
|
18657
|
-
const domainErr =
|
|
18656
|
+
const emailErr = _chunkGU3GJ5DHcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _383 => _383.email]), _nullishCoalesce(email, () => ( "")));
|
|
18657
|
+
const orgNameErr = _chunkGU3GJ5DHcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _384 => _384.organizationName]), organizationName);
|
|
18658
|
+
const domainErr = _chunkGU3GJ5DHcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _385 => _385.domain]), domain);
|
|
18658
18659
|
const handleKeyDown = (event) => {
|
|
18659
18660
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
18660
18661
|
onSubmit();
|
|
@@ -18669,7 +18670,7 @@ function CreateOrganizationForm({
|
|
|
18669
18670
|
),
|
|
18670
18671
|
children: [
|
|
18671
18672
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
18672
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
18673
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkUP3TLY2Vcjs.accentSentenceMarks.call(void 0, title) }),
|
|
18673
18674
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle === null ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: CREATE_ORGANIZATION_SUBTITLE_BAR_CLASS }) : subtitle })
|
|
18674
18675
|
] }),
|
|
18675
18676
|
email === void 0 ? null : emailReadOnly && emailReadOnlyLabel === null ? (
|
|
@@ -18816,7 +18817,7 @@ function InviteLinkInvalidModal({
|
|
|
18816
18817
|
),
|
|
18817
18818
|
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: [
|
|
18818
18819
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-mf)]", children: [
|
|
18819
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "flex-1 tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
18820
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "flex-1 tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkUP3TLY2Vcjs.accentSentenceMarks.call(void 0, title) }),
|
|
18820
18821
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18821
18822
|
_chunkAHBTZ7DNcjs.Button,
|
|
18822
18823
|
{
|
|
@@ -18882,7 +18883,7 @@ function LoginForm({
|
|
|
18882
18883
|
}) {
|
|
18883
18884
|
const fieldDisabled = disabled || loading;
|
|
18884
18885
|
const providersDisabled = fieldDisabled || ssoDisabled;
|
|
18885
|
-
const emailErr =
|
|
18886
|
+
const emailErr = _chunkGU3GJ5DHcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _392 => _392.email]), email);
|
|
18886
18887
|
const handleKeyDown = (event) => {
|
|
18887
18888
|
if (event.key !== "Enter" || event.repeat || fieldDisabled) return;
|
|
18888
18889
|
if (onSubmitClick) {
|
|
@@ -18900,7 +18901,7 @@ function LoginForm({
|
|
|
18900
18901
|
),
|
|
18901
18902
|
children: [
|
|
18902
18903
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
18903
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
18904
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkUP3TLY2Vcjs.accentSentenceMarks.call(void 0, title) }),
|
|
18904
18905
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
18905
18906
|
] }),
|
|
18906
18907
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19027,7 +19028,7 @@ function NoAccountNotice({
|
|
|
19027
19028
|
),
|
|
19028
19029
|
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: [
|
|
19029
19030
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
19030
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19031
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkUP3TLY2Vcjs.accentSentenceMarks.call(void 0, title) }),
|
|
19031
19032
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: description })
|
|
19032
19033
|
] }),
|
|
19033
19034
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "button", variant: "outline", fullWidth: true, onClick: onBackToLogin, children: backLabel })
|
|
@@ -19060,8 +19061,8 @@ function OpenFrameSsoLoginForm({
|
|
|
19060
19061
|
className
|
|
19061
19062
|
}) {
|
|
19062
19063
|
const fieldsDisabled = disabled || loading;
|
|
19063
|
-
const emailErr =
|
|
19064
|
-
const passwordErr =
|
|
19064
|
+
const emailErr = _chunkGU3GJ5DHcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _396 => _396.email]), email);
|
|
19065
|
+
const passwordErr = _chunkGU3GJ5DHcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _397 => _397.password]), password);
|
|
19065
19066
|
const handleKeyDown = (event) => {
|
|
19066
19067
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
19067
19068
|
onSubmit();
|
|
@@ -19076,7 +19077,7 @@ function OpenFrameSsoLoginForm({
|
|
|
19076
19077
|
),
|
|
19077
19078
|
children: [
|
|
19078
19079
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
19079
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19080
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkUP3TLY2Vcjs.accentSentenceMarks.call(void 0, title) }),
|
|
19080
19081
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19081
19082
|
] }),
|
|
19082
19083
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19166,7 +19167,7 @@ function OpenFrameSsoSignUpForm({
|
|
|
19166
19167
|
className
|
|
19167
19168
|
}) {
|
|
19168
19169
|
const fieldsDisabled = disabled || loading;
|
|
19169
|
-
const emailErr =
|
|
19170
|
+
const emailErr = _chunkGU3GJ5DHcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _398 => _398.email]), email);
|
|
19170
19171
|
const handleKeyDown = (event) => {
|
|
19171
19172
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
19172
19173
|
onSubmit();
|
|
@@ -19181,7 +19182,7 @@ function OpenFrameSsoSignUpForm({
|
|
|
19181
19182
|
),
|
|
19182
19183
|
children: [
|
|
19183
19184
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
19184
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19185
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkUP3TLY2Vcjs.accentSentenceMarks.call(void 0, title) }),
|
|
19185
19186
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19186
19187
|
] }),
|
|
19187
19188
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19271,8 +19272,8 @@ function PasswordResetForm({
|
|
|
19271
19272
|
className
|
|
19272
19273
|
}) {
|
|
19273
19274
|
const fieldsDisabled = disabled || loading;
|
|
19274
|
-
const passwordErr =
|
|
19275
|
-
const confirmErr =
|
|
19275
|
+
const passwordErr = _chunkGU3GJ5DHcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _399 => _399.password]), password);
|
|
19276
|
+
const confirmErr = _chunkGU3GJ5DHcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _400 => _400.confirmPassword]), confirmPassword);
|
|
19276
19277
|
const handleKeyDown = (event) => {
|
|
19277
19278
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
19278
19279
|
onSubmit();
|
|
@@ -19287,7 +19288,7 @@ function PasswordResetForm({
|
|
|
19287
19288
|
),
|
|
19288
19289
|
children: [
|
|
19289
19290
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
19290
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19291
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkUP3TLY2Vcjs.accentSentenceMarks.call(void 0, title) }),
|
|
19291
19292
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19292
19293
|
] }),
|
|
19293
19294
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19408,12 +19409,12 @@ function SsoJoinForm({
|
|
|
19408
19409
|
),
|
|
19409
19410
|
children: [
|
|
19410
19411
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
19411
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19412
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkUP3TLY2Vcjs.accentSentenceMarks.call(void 0, title) }),
|
|
19412
19413
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19413
19414
|
] }),
|
|
19414
19415
|
/* @__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: [
|
|
19415
19416
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19416
|
-
|
|
19417
|
+
_chunkU2MHQBL4cjs.SquareAvatar,
|
|
19417
19418
|
{
|
|
19418
19419
|
loading: identityLoading,
|
|
19419
19420
|
size: "lg",
|
|
@@ -19431,7 +19432,7 @@ function SsoJoinForm({
|
|
|
19431
19432
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h4", children: displayName }),
|
|
19432
19433
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: organizationName })
|
|
19433
19434
|
] }) }),
|
|
19434
|
-
shownRoles.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROLES_CLASS, children: shownRoles.map((role, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19435
|
+
shownRoles.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROLES_CLASS, children: shownRoles.map((role, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { loading: readingIdentity, variant: "grey", label: role }, `${role}-${i}`)) })
|
|
19435
19436
|
] }),
|
|
19436
19437
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19437
19438
|
CheckboxBlock,
|
|
@@ -19674,7 +19675,7 @@ function ChangelogManager({
|
|
|
19674
19675
|
),
|
|
19675
19676
|
/* @__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)" }) }),
|
|
19676
19677
|
tagOptions && tagLabelOf(entry.tag) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19677
|
-
|
|
19678
|
+
_chunk7Y6M4FW4cjs.StatusBadge,
|
|
19678
19679
|
{
|
|
19679
19680
|
variant: "button",
|
|
19680
19681
|
singleLine: true,
|
|
@@ -19738,9 +19739,9 @@ function ChangelogManager({
|
|
|
19738
19739
|
] }),
|
|
19739
19740
|
tagOptions && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-1", children: [
|
|
19740
19741
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD47ZGOUcjs.Label, { className: "text-ods-text-secondary", children: tagLabel }),
|
|
19741
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
19742
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19743
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19742
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk243TS7YLcjs.Select, { value: _nullishCoalesce(entry.tag, () => ( "")), onValueChange: (value) => updateEntry(index, "tag", value), children: [
|
|
19743
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectTrigger, { className: "bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectValue, { placeholder: tagLabel }) }),
|
|
19744
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectContent, { children: tagOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
19744
19745
|
] })
|
|
19745
19746
|
] })
|
|
19746
19747
|
] })
|
|
@@ -20033,7 +20034,7 @@ function EntityTagBadgesSkeleton({
|
|
|
20033
20034
|
}) {
|
|
20034
20035
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { "aria-hidden": true, className: _chunk7JWFMAQBcjs.cn.call(void 0, TAG_ROW_CLASS, className), children: [
|
|
20035
20036
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TAG_ITEM_CLASS, "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20036
|
-
|
|
20037
|
+
_chunk7Y6M4FW4cjs.StatusBadge,
|
|
20037
20038
|
{
|
|
20038
20039
|
loading: true,
|
|
20039
20040
|
text: "",
|
|
@@ -20041,7 +20042,7 @@ function EntityTagBadgesSkeleton({
|
|
|
20041
20042
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "border", _nullishCoalesce(itemClassName, () => ( TAG_SKELETON_WIDTH_CLASS)))
|
|
20042
20043
|
}
|
|
20043
20044
|
) }) }),
|
|
20044
|
-
overflow && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TAG_ITEM_CLASS, "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20045
|
+
overflow && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TAG_ITEM_CLASS, "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7Y6M4FW4cjs.StatusBadge, { loading: true, text: "", variant: "card", className: _chunk7JWFMAQBcjs.cn.call(void 0, "border", OVERFLOW_BADGE_SKELETON_CLASS) }) })
|
|
20045
20046
|
] });
|
|
20046
20047
|
}
|
|
20047
20048
|
function EntityTagBadges({
|
|
@@ -20069,7 +20070,7 @@ function EntityTagBadges({
|
|
|
20069
20070
|
const label = (tag.name || "").toUpperCase();
|
|
20070
20071
|
if (basePath && tag.slug) {
|
|
20071
20072
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _link2.default, { href: `${basePath}?tags=${tag.slug}`, className: itemClass(index), "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20072
|
-
|
|
20073
|
+
_chunk7Y6M4FW4cjs.StatusBadge,
|
|
20073
20074
|
{
|
|
20074
20075
|
text: label,
|
|
20075
20076
|
variant: "card",
|
|
@@ -20077,7 +20078,7 @@ function EntityTagBadges({
|
|
|
20077
20078
|
}
|
|
20078
20079
|
) }, key);
|
|
20079
20080
|
}
|
|
20080
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: itemClass(index), "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20081
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: itemClass(index), "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7Y6M4FW4cjs.StatusBadge, { text: label, variant: "card", className: BADGE_CLASS }) }, key);
|
|
20081
20082
|
}),
|
|
20082
20083
|
phoneOverflow === overflow ? overflow > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OverflowBadge, { count: overflow }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
20083
20084
|
phoneOverflow > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OverflowBadge, { count: phoneOverflow, className: "content-md:hidden" }),
|
|
@@ -20086,7 +20087,7 @@ function EntityTagBadges({
|
|
|
20086
20087
|
] });
|
|
20087
20088
|
}
|
|
20088
20089
|
function OverflowBadge({ count, className }) {
|
|
20089
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, TAG_ITEM_CLASS, className), "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20090
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, TAG_ITEM_CLASS, className), "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7Y6M4FW4cjs.StatusBadge, { text: `+${count}`, variant: "card", className: _chunk7JWFMAQBcjs.cn.call(void 0, BADGE_CLASS, "text-ods-text-secondary") }) });
|
|
20090
20091
|
}
|
|
20091
20092
|
|
|
20092
20093
|
// src/components/features/error-boundary.tsx
|
|
@@ -20181,7 +20182,7 @@ var SectionButton = ({
|
|
|
20181
20182
|
}
|
|
20182
20183
|
),
|
|
20183
20184
|
section.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20184
|
-
|
|
20185
|
+
_chunk7Y6M4FW4cjs.StatusBadge,
|
|
20185
20186
|
{
|
|
20186
20187
|
text: section.badge.text,
|
|
20187
20188
|
variant: section.badge.variant || "button",
|
|
@@ -20200,7 +20201,7 @@ var SectionButton = ({
|
|
|
20200
20201
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-wrap items-start gap-2", children: [
|
|
20201
20202
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, titleClasses, "text-h3"), style: { textAlign: "left" }, children: section.title }),
|
|
20202
20203
|
section.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20203
|
-
|
|
20204
|
+
_chunk7Y6M4FW4cjs.StatusBadge,
|
|
20204
20205
|
{
|
|
20205
20206
|
text: section.badge.text,
|
|
20206
20207
|
variant: section.badge.variant || "button",
|
|
@@ -20935,7 +20936,7 @@ var FiltersDropdown = ({
|
|
|
20935
20936
|
window.addEventListener("resize", calculateOptimalPlacement);
|
|
20936
20937
|
return () => window.removeEventListener("resize", calculateOptimalPlacement);
|
|
20937
20938
|
}, [isOpen, isMobile, placement]);
|
|
20938
|
-
|
|
20939
|
+
_chunkYSDB6HGQcjs.useIsomorphicLayoutEffect.call(void 0, () => {
|
|
20939
20940
|
const dropdown = dropdownRef.current;
|
|
20940
20941
|
if (!dropdown) return;
|
|
20941
20942
|
if (!isMobile) {
|
|
@@ -21263,15 +21264,15 @@ function useLoading() {
|
|
|
21263
21264
|
|
|
21264
21265
|
|
|
21265
21266
|
function isAlreadyThere(file, existing) {
|
|
21266
|
-
const key =
|
|
21267
|
+
const key = _chunkUP3TLY2Vcjs.mediaNameKey.call(void 0, file.name);
|
|
21267
21268
|
if (!key) return false;
|
|
21268
21269
|
return existing.some(
|
|
21269
|
-
(item) => (item.title ?
|
|
21270
|
+
(item) => (item.title ? _chunkUP3TLY2Vcjs.mediaNameKey.call(void 0, item.title) === key : false) || (item.media_url ? _chunkUP3TLY2Vcjs.mediaNameKey.call(void 0, item.media_url) === key : false)
|
|
21270
21271
|
);
|
|
21271
21272
|
}
|
|
21272
21273
|
var isFileDrag = (event) => Array.from(event.dataTransfer.types).includes("Files");
|
|
21273
|
-
var isVideoItem = (item) =>
|
|
21274
|
-
var MEDIA_KIND_ACCEPT = { image:
|
|
21274
|
+
var isVideoItem = (item) => _chunkUP3TLY2Vcjs.isVideoMedia.call(void 0, item) || item.media_type === "demo";
|
|
21275
|
+
var MEDIA_KIND_ACCEPT = { image: _chunkUP3TLY2Vcjs.IMAGE_FILE_ACCEPT, video: "video/*", both: _chunkUP3TLY2Vcjs.MEDIA_FILE_ACCEPT };
|
|
21275
21276
|
var MEDIA_KIND_COPY = {
|
|
21276
21277
|
image: { noun: "pictures", refusal: "Not a picture" },
|
|
21277
21278
|
video: { noun: "videos", refusal: "Not a video" },
|
|
@@ -21295,12 +21296,12 @@ function useMediaIntake({ existing, onUpload, onUploaded, kinds = "both" }) {
|
|
|
21295
21296
|
const seen = /* @__PURE__ */ new Set();
|
|
21296
21297
|
const accepted = [];
|
|
21297
21298
|
for (const file of files) {
|
|
21298
|
-
const mediaType =
|
|
21299
|
+
const mediaType = _chunkUP3TLY2Vcjs.fileMediaType.call(void 0, file);
|
|
21299
21300
|
if (!mediaType || kinds !== "both" && mediaType !== kinds) {
|
|
21300
21301
|
unsupported.push(file.name);
|
|
21301
21302
|
continue;
|
|
21302
21303
|
}
|
|
21303
|
-
const contentKey = await
|
|
21304
|
+
const contentKey = await _chunkUP3TLY2Vcjs.fileContentKey.call(void 0, file).catch(() => `${file.name}:${file.size}`);
|
|
21304
21305
|
if (seen.has(contentKey) || isAlreadyThere(file, existingRef.current)) {
|
|
21305
21306
|
duplicates.push(file.name);
|
|
21306
21307
|
continue;
|
|
@@ -21481,7 +21482,7 @@ function MediaGalleryManager({
|
|
|
21481
21482
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "grid grid-cols-1 gap-4 content-md:grid-cols-2", columns === 3 && "content-lg:grid-cols-3"),
|
|
21482
21483
|
children: [
|
|
21483
21484
|
media.map((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21484
|
-
|
|
21485
|
+
_chunk7Y6M4FW4cjs.Card,
|
|
21485
21486
|
{
|
|
21486
21487
|
className: "group relative border-ods-border transition-colors hover:border-ods-accent/30",
|
|
21487
21488
|
draggable: true,
|
|
@@ -21506,7 +21507,7 @@ function MediaGalleryManager({
|
|
|
21506
21507
|
) }),
|
|
21507
21508
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative aspect-video overflow-hidden rounded-lg bg-ods-bg", children: isVideoItem(item) ? (
|
|
21508
21509
|
// <Video> SSOT (MuxPlayer): plays Mux HLS and MP4 alike; fit="cover" crops to the cell.
|
|
21509
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21510
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7Y6M4FW4cjs.Video, { kind: "file", url: item.media_url, fit: "cover", className: "h-full w-full" })
|
|
21510
21511
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21511
21512
|
_chunkKUXHXLJQcjs.next_image_default,
|
|
21512
21513
|
{
|
|
@@ -21521,17 +21522,17 @@ function MediaGalleryManager({
|
|
|
21521
21522
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
21522
21523
|
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" }),
|
|
21523
21524
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21524
|
-
|
|
21525
|
+
_chunk243TS7YLcjs.Select,
|
|
21525
21526
|
{
|
|
21526
21527
|
value: item.media_type,
|
|
21527
21528
|
onValueChange: (value) => update(index, { media_type: value }),
|
|
21528
21529
|
children: [
|
|
21529
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21530
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21531
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21532
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21533
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21534
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21530
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectTrigger, { className: "h-8 bg-ods-bg text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectValue, {}) }),
|
|
21531
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk243TS7YLcjs.SelectContent, { className: "bg-ods-card", children: [
|
|
21532
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: "image", children: "Image" }),
|
|
21533
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: "video", children: "Video" }),
|
|
21534
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: "screenshot", children: "Screenshot" }),
|
|
21535
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: "demo", children: "Demo" })
|
|
21535
21536
|
] })
|
|
21536
21537
|
]
|
|
21537
21538
|
}
|
|
@@ -21558,7 +21559,7 @@ function MediaGalleryManager({
|
|
|
21558
21559
|
},
|
|
21559
21560
|
_nullishCoalesce(item.id, () => ( `${item.media_url}-${index}`))
|
|
21560
21561
|
)),
|
|
21561
|
-
pending.map((name, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21562
|
+
pending.map((name, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7Y6M4FW4cjs.Card, { className: "border-ods-border", "aria-busy": "true", children: [
|
|
21562
21563
|
/* @__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" }) }),
|
|
21563
21564
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate p-3 text-ods-text-secondary text-h6", children: name })
|
|
21564
21565
|
] }, `pending-${name}-${index}`))
|
|
@@ -21915,7 +21916,7 @@ var MODEL_TOKEN_RATES_COPY = {
|
|
|
21915
21916
|
empty: "No token rates are in effect right now."
|
|
21916
21917
|
};
|
|
21917
21918
|
function providerMark(providerType, stated, className) {
|
|
21918
|
-
const Mark = _chunkVXXOUM2Kcjs.findIcon.call(void 0,
|
|
21919
|
+
const Mark = _chunkVXXOUM2Kcjs.findIcon.call(void 0, _chunkJ6C7F63Pcjs.aiProvider.call(void 0, providerType, { icon: stated }).icon);
|
|
21919
21920
|
return Mark ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Mark, { className }) : void 0;
|
|
21920
21921
|
}
|
|
21921
21922
|
var PAD_X = "px-[var(--spacing-system-s)]";
|
|
@@ -21933,7 +21934,7 @@ var UNIT_LINE_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
|
21933
21934
|
var TABS_ROW_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0, "shrink-0 border-b border-ods-border py-[var(--spacing-system-xs)]", PAD_X);
|
|
21934
21935
|
var NUMBER_CELL = "w-16 shrink-0 whitespace-nowrap text-right tabular-nums";
|
|
21935
21936
|
function useProviderGroup(rates) {
|
|
21936
|
-
const groups =
|
|
21937
|
+
const groups = _chunkJ6C7F63Pcjs.groupTokenRatesByProvider.call(void 0, rates);
|
|
21937
21938
|
const [picked, setPicked] = _react.useState.call(void 0, null);
|
|
21938
21939
|
return { groups, group: _nullishCoalesce(groups.find((candidate) => candidate.providerType === picked), () => ( groups[0])), setPicked };
|
|
21939
21940
|
}
|
|
@@ -21944,7 +21945,7 @@ function ProviderTabs({
|
|
|
21944
21945
|
className
|
|
21945
21946
|
}) {
|
|
21946
21947
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21947
|
-
|
|
21948
|
+
_chunkCB77J5L7cjs.TabSelector,
|
|
21948
21949
|
{
|
|
21949
21950
|
variant: "secondary",
|
|
21950
21951
|
scrollable: true,
|
|
@@ -21952,7 +21953,7 @@ function ProviderTabs({
|
|
|
21952
21953
|
onValueChange,
|
|
21953
21954
|
items: groups.map((candidate) => ({
|
|
21954
21955
|
id: candidate.providerType,
|
|
21955
|
-
label:
|
|
21956
|
+
label: _chunkJ6C7F63Pcjs.tokenRateProviderLabel.call(void 0, candidate.providerType, _optionalChain([candidate, 'access', _462 => _462.rates, 'access', _463 => _463[0], 'optionalAccess', _464 => _464.providerLabel])),
|
|
21956
21957
|
icon: providerMark(candidate.providerType, _optionalChain([candidate, 'access', _465 => _465.rates, 'access', _466 => _466[0], 'optionalAccess', _467 => _467.providerIcon]), "size-full")
|
|
21957
21958
|
})),
|
|
21958
21959
|
className
|
|
@@ -22029,8 +22030,8 @@ function ModelTokenRatesTable({ rates }) {
|
|
|
22029
22030
|
] }),
|
|
22030
22031
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { role: "rowgroup", className: "min-h-0 flex-1 overflow-y-auto", children: group.rates.map((rate) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { "data-loading-item": true, role: "row", className: BODY_ROW_CLASS, children: [
|
|
22031
22032
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "rowheader", className: "min-w-0 flex-1 truncate", children: rate.displayName || rate.modelName }),
|
|
22032
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children:
|
|
22033
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children:
|
|
22033
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunkJ6C7F63Pcjs.formatTokenRate.call(void 0, rate.inputTokenRate) }),
|
|
22034
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunkJ6C7F63Pcjs.formatTokenRate.call(void 0, rate.outputTokenRate) })
|
|
22034
22035
|
] }, rate.modelName)) })
|
|
22035
22036
|
] }),
|
|
22036
22037
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: UNIT_LINE_CLASS, children: MODEL_TOKEN_RATES_COPY.unit })
|
|
@@ -22077,7 +22078,7 @@ function modelOption(rate) {
|
|
|
22077
22078
|
return {
|
|
22078
22079
|
label: rate.displayName || rate.modelName,
|
|
22079
22080
|
value: rate.modelName,
|
|
22080
|
-
description:
|
|
22081
|
+
description: _chunkJ6C7F63Pcjs.tokenRateProviderLabel.call(void 0, rate.providerType, rate.providerLabel),
|
|
22081
22082
|
icon: providerMark(rate.providerType, rate.providerIcon, "size-full text-ods-text-secondary")
|
|
22082
22083
|
};
|
|
22083
22084
|
}
|
|
@@ -22132,9 +22133,9 @@ function ModelTokenExchange({
|
|
|
22132
22133
|
const [chosen, setChosen] = _react.useState.call(void 0, null);
|
|
22133
22134
|
const balance = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(chosen, () => ( defaultAmount)), () => ( _optionalChain([tokenPrice, 'optionalAccess', _468 => _468.tokens]))), () => ( MODEL_TOKEN_EXCHANGE_BALANCE));
|
|
22134
22135
|
const max = Math.max(amountRange.max, balance, ...presets.map((preset) => preset.tokens));
|
|
22135
|
-
const tokens =
|
|
22136
|
-
const cost =
|
|
22137
|
-
const balancePrice = cost === null ? null :
|
|
22136
|
+
const tokens = _chunkJ6C7F63Pcjs.formatTokenAmount.call(void 0, balance);
|
|
22137
|
+
const cost = _chunkJ6C7F63Pcjs.tokenCost.call(void 0, balance, tokenPrice);
|
|
22138
|
+
const balancePrice = cost === null ? null : _chunkU2MHQBL4cjs.formatPrice.call(void 0, cost);
|
|
22138
22139
|
const model = rate ? rate.displayName || rate.modelName : "";
|
|
22139
22140
|
const options = models.map(modelOption);
|
|
22140
22141
|
if (rate && !models.some((candidate) => candidate.modelName === rate.modelName)) options.unshift(modelOption(rate));
|
|
@@ -22176,7 +22177,7 @@ function ModelTokenExchange({
|
|
|
22176
22177
|
variant: preset.tokens === balance ? "accent" : "outline",
|
|
22177
22178
|
size: "small",
|
|
22178
22179
|
onClick: () => setChosen(preset.tokens),
|
|
22179
|
-
children: copy.buy.preset(
|
|
22180
|
+
children: copy.buy.preset(_chunkJ6C7F63Pcjs.formatTokenAmount.call(void 0, preset.tokens), preset.label)
|
|
22180
22181
|
},
|
|
22181
22182
|
preset.label
|
|
22182
22183
|
)) })
|
|
@@ -22193,7 +22194,7 @@ function ModelTokenExchange({
|
|
|
22193
22194
|
const stated = _nullishCoalesce(models.find((option) => option.providerType === providerType), () => ( (_optionalChain([rate, 'optionalAccess', _469 => _469.providerType]) === providerType ? rate : null)));
|
|
22194
22195
|
return {
|
|
22195
22196
|
id: providerType,
|
|
22196
|
-
name:
|
|
22197
|
+
name: _chunkJ6C7F63Pcjs.tokenRateProviderLabel.call(void 0, providerType, _optionalChain([stated, 'optionalAccess', _470 => _470.providerLabel])),
|
|
22197
22198
|
icon: providerMark(providerType, _optionalChain([stated, 'optionalAccess', _471 => _471.providerIcon]), "size-8 text-ods-text-secondary")
|
|
22198
22199
|
};
|
|
22199
22200
|
}),
|
|
@@ -22205,7 +22206,7 @@ function ModelTokenExchange({
|
|
|
22205
22206
|
}
|
|
22206
22207
|
),
|
|
22207
22208
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22208
|
-
|
|
22209
|
+
_chunk243TS7YLcjs.Autocomplete,
|
|
22209
22210
|
{
|
|
22210
22211
|
fieldLoading: loading,
|
|
22211
22212
|
label: copy.use.model,
|
|
@@ -22232,7 +22233,7 @@ function ModelTokenExchange({
|
|
|
22232
22233
|
{
|
|
22233
22234
|
size: "plain",
|
|
22234
22235
|
loading,
|
|
22235
|
-
figure:
|
|
22236
|
+
figure: _chunkJ6C7F63Pcjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _476 => _476.inputTokenRate])),
|
|
22236
22237
|
words: copy.charge.input
|
|
22237
22238
|
}
|
|
22238
22239
|
),
|
|
@@ -22241,7 +22242,7 @@ function ModelTokenExchange({
|
|
|
22241
22242
|
{
|
|
22242
22243
|
size: "plain",
|
|
22243
22244
|
loading,
|
|
22244
|
-
figure:
|
|
22245
|
+
figure: _chunkJ6C7F63Pcjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _477 => _477.outputTokenRate])),
|
|
22245
22246
|
words: copy.charge.output
|
|
22246
22247
|
}
|
|
22247
22248
|
)
|
|
@@ -22253,9 +22254,9 @@ function ModelTokenExchange({
|
|
|
22253
22254
|
className: "mt-auto flex flex-col rounded-md border border-ods-accent bg-ods-bg p-[var(--spacing-system-mf)]",
|
|
22254
22255
|
children: [
|
|
22255
22256
|
/* @__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, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-full max-w-xs" }) : copy.charge.so(_nullishCoalesce(balancePrice, () => ( copy.buy.tokens(tokens))), model) }),
|
|
22256
|
-
/* @__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, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-40" }) :
|
|
22257
|
+
/* @__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, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-40" }) : _chunkJ6C7F63Pcjs.formatTokenAmount.call(void 0, _chunkJ6C7F63Pcjs.tokensForBalance.call(void 0, balance, rate.inputTokenRate)) }),
|
|
22257
22258
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-primary text-h3", children: copy.charge.read }),
|
|
22258
|
-
/* @__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, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-48" }) : copy.charge.orWritten(
|
|
22259
|
+
/* @__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, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-48" }) : copy.charge.orWritten(_chunkJ6C7F63Pcjs.formatTokenAmount.call(void 0, _chunkJ6C7F63Pcjs.tokensForBalance.call(void 0, balance, rate.outputTokenRate))) })
|
|
22259
22260
|
]
|
|
22260
22261
|
}
|
|
22261
22262
|
)
|
|
@@ -22676,7 +22677,7 @@ function PlatformFilterComponent({
|
|
|
22676
22677
|
variant: selectedPlatform === platform.value ? "accent" : "outline",
|
|
22677
22678
|
size,
|
|
22678
22679
|
onClick: () => onPlatformChange(platform.value),
|
|
22679
|
-
leftIcon: showIcons ?
|
|
22680
|
+
leftIcon: showIcons ? _chunkERLMCSGFcjs.getSmallPlatformIcon.call(void 0, platform.value) : void 0,
|
|
22680
22681
|
className: "text-h3",
|
|
22681
22682
|
children: platform.label
|
|
22682
22683
|
},
|
|
@@ -22748,7 +22749,7 @@ var SelectButton = _react2.default.forwardRef(
|
|
|
22748
22749
|
}
|
|
22749
22750
|
)
|
|
22750
22751
|
] }),
|
|
22751
|
-
tag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22752
|
+
tag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { variant: tagVariant, className: "shrink-0", label: tag }),
|
|
22752
22753
|
selected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHFNBMV5Mcjs.CheckCircleIcon, { className: "size-4 shrink-0 text-ods-accent content-md:size-6" })
|
|
22753
22754
|
]
|
|
22754
22755
|
}
|
|
@@ -22775,14 +22776,14 @@ var ConfidenceBadge = ({
|
|
|
22775
22776
|
size = "sm",
|
|
22776
22777
|
className
|
|
22777
22778
|
}) => {
|
|
22778
|
-
const level =
|
|
22779
|
+
const level = _chunkJ6C7F63Pcjs.getConfidenceLevel.call(void 0, confidence);
|
|
22779
22780
|
if (level === "none") {
|
|
22780
22781
|
return null;
|
|
22781
22782
|
}
|
|
22782
|
-
const label =
|
|
22783
|
-
const borderClass =
|
|
22784
|
-
const textClass =
|
|
22785
|
-
const bgClass =
|
|
22783
|
+
const label = _chunkJ6C7F63Pcjs.getConfidenceLabel.call(void 0, confidence);
|
|
22784
|
+
const borderClass = _chunkJ6C7F63Pcjs.getConfidenceBorderClass.call(void 0, confidence);
|
|
22785
|
+
const textClass = _chunkJ6C7F63Pcjs.getConfidenceTextClass.call(void 0, confidence);
|
|
22786
|
+
const bgClass = _chunkJ6C7F63Pcjs.getConfidenceBgClass.call(void 0, confidence);
|
|
22786
22787
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
22787
22788
|
"span",
|
|
22788
22789
|
{
|
|
@@ -22833,9 +22834,9 @@ function SEOEditorPreview({
|
|
|
22833
22834
|
const [isUploading, setIsUploading] = _react.useState.call(void 0, false);
|
|
22834
22835
|
const [fileInputRef, setFileInputRef] = _react.useState.call(void 0, null);
|
|
22835
22836
|
const seoTitleLength = (seoTitle || "").length;
|
|
22836
|
-
const seoTitleTooLong = seoTitleLength >
|
|
22837
|
+
const seoTitleTooLong = seoTitleLength > _chunkJ6C7F63Pcjs.SEO_TITLE_MAX_LENGTH;
|
|
22837
22838
|
const seoDescriptionLength = (seoDescription || "").length;
|
|
22838
|
-
const seoDescriptionTooLong = seoDescriptionLength >
|
|
22839
|
+
const seoDescriptionTooLong = seoDescriptionLength > _chunkJ6C7F63Pcjs.SEO_DESCRIPTION_MAX_LENGTH;
|
|
22839
22840
|
const displayTitle = seoTitle.trim() || title || "Untitled";
|
|
22840
22841
|
const displayDescription = seoDescription.trim() || summary || "No description";
|
|
22841
22842
|
const hasOgImage = ogImageUrl.trim();
|
|
@@ -22860,10 +22861,10 @@ function SEOEditorPreview({
|
|
|
22860
22861
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
22861
22862
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
22862
22863
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22863
|
-
|
|
22864
|
+
_chunkJ6C7F63Pcjs.Field,
|
|
22864
22865
|
{
|
|
22865
22866
|
label: "SEO Title",
|
|
22866
|
-
error: seoTitleTooLong ? `Too long: search engines may truncate this title (keep it under ${
|
|
22867
|
+
error: seoTitleTooLong ? `Too long: search engines may truncate this title (keep it under ${_chunkJ6C7F63Pcjs.SEO_TITLE_MAX_LENGTH})` : null,
|
|
22867
22868
|
labelExtras: aiConfidenceSeoTitle !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
22868
22869
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
|
|
22869
22870
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ConfidenceBadge, { confidence: aiConfidenceSeoTitle, showLabel: true, showPercentage: true, size: "sm" })
|
|
@@ -22878,7 +22879,7 @@ function SEOEditorPreview({
|
|
|
22878
22879
|
children: [
|
|
22879
22880
|
seoTitleLength,
|
|
22880
22881
|
"/",
|
|
22881
|
-
|
|
22882
|
+
_chunkJ6C7F63Pcjs.SEO_TITLE_MAX_LENGTH
|
|
22882
22883
|
]
|
|
22883
22884
|
}
|
|
22884
22885
|
),
|
|
@@ -22889,7 +22890,7 @@ function SEOEditorPreview({
|
|
|
22889
22890
|
value: seoTitle || "",
|
|
22890
22891
|
onChange: (e) => onSeoTitleChange(e.target.value),
|
|
22891
22892
|
disabled,
|
|
22892
|
-
maxLength:
|
|
22893
|
+
maxLength: _chunkJ6C7F63Pcjs.SEO_TITLE_MAX_LENGTH,
|
|
22893
22894
|
invalid: seoTitleTooLong,
|
|
22894
22895
|
placeholder: "Enter SEO meta title...",
|
|
22895
22896
|
className: "border-ods-border bg-ods-bg text-ods-text-primary"
|
|
@@ -22900,7 +22901,7 @@ function SEOEditorPreview({
|
|
|
22900
22901
|
!seoTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-accent text-h6", children: "Auto-populated from title" })
|
|
22901
22902
|
] }),
|
|
22902
22903
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22903
|
-
|
|
22904
|
+
_chunkJ6C7F63Pcjs.Field,
|
|
22904
22905
|
{
|
|
22905
22906
|
label: "SEO Keywords",
|
|
22906
22907
|
labelExtras: aiConfidenceSeoKeywords !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -22932,10 +22933,10 @@ function SEOEditorPreview({
|
|
|
22932
22933
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
22933
22934
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
22934
22935
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22935
|
-
|
|
22936
|
+
_chunkJ6C7F63Pcjs.Field,
|
|
22936
22937
|
{
|
|
22937
22938
|
label: "SEO Description",
|
|
22938
|
-
error: seoDescriptionTooLong ? `Too long: search engines may truncate this description (keep it under ${
|
|
22939
|
+
error: seoDescriptionTooLong ? `Too long: search engines may truncate this description (keep it under ${_chunkJ6C7F63Pcjs.SEO_DESCRIPTION_MAX_LENGTH})` : null,
|
|
22939
22940
|
labelExtras: aiConfidenceSeoDescription !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
22940
22941
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
|
|
22941
22942
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -22958,7 +22959,7 @@ function SEOEditorPreview({
|
|
|
22958
22959
|
children: [
|
|
22959
22960
|
seoDescriptionLength,
|
|
22960
22961
|
"/",
|
|
22961
|
-
|
|
22962
|
+
_chunkJ6C7F63Pcjs.SEO_DESCRIPTION_MAX_LENGTH
|
|
22962
22963
|
]
|
|
22963
22964
|
}
|
|
22964
22965
|
),
|
|
@@ -22969,7 +22970,7 @@ function SEOEditorPreview({
|
|
|
22969
22970
|
value: seoDescription || "",
|
|
22970
22971
|
onChange: (e) => onSeoDescriptionChange(e.target.value),
|
|
22971
22972
|
disabled,
|
|
22972
|
-
maxLength:
|
|
22973
|
+
maxLength: _chunkJ6C7F63Pcjs.SEO_DESCRIPTION_MAX_LENGTH,
|
|
22973
22974
|
invalid: seoDescriptionTooLong,
|
|
22974
22975
|
placeholder: "Enter SEO meta description...",
|
|
22975
22976
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "resize-none border-ods-border bg-ods-bg text-ods-text-primary", SEO_MEDIA_BOX_HEIGHT)
|
|
@@ -23038,7 +23039,7 @@ function SEOEditorPreview({
|
|
|
23038
23039
|
{
|
|
23039
23040
|
ref: setFileInputRef,
|
|
23040
23041
|
type: "file",
|
|
23041
|
-
accept:
|
|
23042
|
+
accept: _chunkUP3TLY2Vcjs.IMAGE_FILE_ACCEPT,
|
|
23042
23043
|
onChange: handleImageUpload,
|
|
23043
23044
|
className: "hidden",
|
|
23044
23045
|
disabled: disabled || isUploading
|
|
@@ -23122,7 +23123,7 @@ function socialIcon(platform) {
|
|
|
23122
23123
|
return _nullishCoalesce(_chunkVXXOUM2Kcjs.iconOf.call(void 0, SOCIAL_ICONS[platform]), () => ( void 0));
|
|
23123
23124
|
}
|
|
23124
23125
|
function renderSocialIcon(platform) {
|
|
23125
|
-
const key = _nullishCoalesce(
|
|
23126
|
+
const key = _nullishCoalesce(_chunkJ6C7F63Pcjs.normalizeSocialPlatform.call(void 0, platform), () => ( "website"));
|
|
23126
23127
|
const icon = _nullishCoalesce(socialIcon(key), () => ( socialIcon("website")));
|
|
23127
23128
|
return icon ? _react.createElement.call(void 0, icon, { className: "h-5 w-5" }) : null;
|
|
23128
23129
|
}
|
|
@@ -23213,7 +23214,7 @@ function SocialLinksManager({
|
|
|
23213
23214
|
};
|
|
23214
23215
|
const getIcon = (link, platform) => {
|
|
23215
23216
|
const iconKey = _optionalChain([platform, 'optionalAccess', _487 => _487.icon_name]) || link.platform;
|
|
23216
|
-
const key =
|
|
23217
|
+
const key = _chunkJ6C7F63Pcjs.normalizeSocialPlatform.call(void 0, iconKey);
|
|
23217
23218
|
if (!key) return null;
|
|
23218
23219
|
const icon = socialIcon(key);
|
|
23219
23220
|
return icon ? _react.createElement.call(void 0, icon, { className: "h-5 w-5 text-ods-text-secondary" }) : null;
|
|
@@ -23229,9 +23230,9 @@ function SocialLinksManager({
|
|
|
23229
23230
|
children: [
|
|
23230
23231
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-8 w-8 items-center justify-center", children: Icon }),
|
|
23231
23232
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid flex-1 grid-cols-2 gap-3", children: [
|
|
23232
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23233
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23234
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23233
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk243TS7YLcjs.Select, { value: link.platform, onValueChange: (value) => updateLink(index, "platform", value), children: [
|
|
23234
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectValue, {}) }),
|
|
23235
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectContent, { children: platforms.map((p) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: p.name, children: p.display_name }, p.name)) })
|
|
23235
23236
|
] }) }),
|
|
23236
23237
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23237
23238
|
_chunk7RM4NM2Ccjs.Input,
|
|
@@ -23249,15 +23250,15 @@ function SocialLinksManager({
|
|
|
23249
23250
|
)
|
|
23250
23251
|
] }),
|
|
23251
23252
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23252
|
-
|
|
23253
|
+
_chunk243TS7YLcjs.Select,
|
|
23253
23254
|
{
|
|
23254
23255
|
value: _nullishCoalesce(link.visibility, () => ( "external")),
|
|
23255
23256
|
onValueChange: (value) => updateLink(index, "visibility", value),
|
|
23256
23257
|
children: [
|
|
23257
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23258
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23259
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23260
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23258
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectTrigger, { className: "w-[120px] shrink-0", "aria-label": "Social link visibility", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectValue, {}) }),
|
|
23259
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk243TS7YLcjs.SelectContent, { children: [
|
|
23260
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: "external", children: "Public" }),
|
|
23261
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: "internal", children: "Internal" })
|
|
23261
23262
|
] })
|
|
23262
23263
|
]
|
|
23263
23264
|
}
|
|
@@ -23349,7 +23350,7 @@ var StartWithOpenFrameButton = _react.forwardRef.call(void 0,
|
|
|
23349
23350
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, modeClassName, className),
|
|
23350
23351
|
style: customStyle,
|
|
23351
23352
|
leftIcon: !loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHJZLKYOBcjs.OpenframeLogoIcon, { secondaryColor: iconLowerPath, className: "h-5 w-5", color: iconUpperPath }) : void 0,
|
|
23352
|
-
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23353
|
+
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7Y6M4FW4cjs.StatusBadge, { text: "Beta", variant: "button", colorScheme: "yellow" }),
|
|
23353
23354
|
children
|
|
23354
23355
|
}
|
|
23355
23356
|
);
|
|
@@ -23677,11 +23678,11 @@ function WarningBlock({ title, icon = DEFAULT_ICON, children, className }) {
|
|
|
23677
23678
|
|
|
23678
23679
|
function VideoBitesDisplay({
|
|
23679
23680
|
bites,
|
|
23680
|
-
title =
|
|
23681
|
+
title = _chunk7Y6M4FW4cjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
23681
23682
|
filterPublished = true,
|
|
23682
23683
|
showTitle = true
|
|
23683
23684
|
}) {
|
|
23684
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23685
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCB77J5L7cjs.VideoBitesStrip, { bites, title, filterPublished, showTitle });
|
|
23685
23686
|
}
|
|
23686
23687
|
|
|
23687
23688
|
// src/components/features/walkthrough-video.tsx
|
|
@@ -23710,7 +23711,7 @@ function WalkthroughVideo({
|
|
|
23710
23711
|
onOpenChange,
|
|
23711
23712
|
defaultOpen,
|
|
23712
23713
|
defaultOpenPaused,
|
|
23713
|
-
deepLinkParam =
|
|
23714
|
+
deepLinkParam = _chunkJ6C7F63Pcjs.WALKTHROUGH_OPEN_QUERY_PARAM,
|
|
23714
23715
|
autoPlayCard = false,
|
|
23715
23716
|
label = "Play Demo Video",
|
|
23716
23717
|
placement,
|
|
@@ -23727,7 +23728,7 @@ function WalkthroughVideo({
|
|
|
23727
23728
|
const inline = placement === "inline";
|
|
23728
23729
|
const inScope = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
23729
23730
|
const dismissEnabled = dismissal !== false;
|
|
23730
|
-
const storageKey = dismissEnabled && dismissal.storageKey ||
|
|
23731
|
+
const storageKey = dismissEnabled && dismissal.storageKey || _chunkJ6C7F63Pcjs.WALKTHROUGH_VIDEO_DISMISS_KEY;
|
|
23731
23732
|
const dismissalId = _optionalChain([video, 'optionalAccess', _493 => _493.id]) != null ? String(video.id) : "dismissed";
|
|
23732
23733
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
23733
23734
|
const [dismissed, setDismissed] = _react.useState.call(void 0, false);
|
|
@@ -23739,7 +23740,7 @@ function WalkthroughVideo({
|
|
|
23739
23740
|
let delayElapsed = false;
|
|
23740
23741
|
let interacted = inline;
|
|
23741
23742
|
const reveal = () => {
|
|
23742
|
-
if (dismissEnabled &&
|
|
23743
|
+
if (dismissEnabled && _chunkJ6C7F63Pcjs.isWalkthroughDismissed.call(void 0, storageKey, dismissalId)) {
|
|
23743
23744
|
setDismissed(true);
|
|
23744
23745
|
return;
|
|
23745
23746
|
}
|
|
@@ -23776,7 +23777,7 @@ function WalkthroughVideo({
|
|
|
23776
23777
|
if (idleHandle !== null && typeof cic === "function") cic(idleHandle);
|
|
23777
23778
|
};
|
|
23778
23779
|
}, [appearDelayMs, dismissEnabled, storageKey, dismissalId, hasVideo, videoId, inline]);
|
|
23779
|
-
const hydrated =
|
|
23780
|
+
const hydrated = _chunkCB77J5L7cjs.useIsHydrated.call(void 0, );
|
|
23780
23781
|
const previewSuppressed = _react.useMemo.call(void 0, () => {
|
|
23781
23782
|
if (!hydrated) return false;
|
|
23782
23783
|
try {
|
|
@@ -24026,7 +24027,7 @@ function WalkthroughVideo({
|
|
|
24026
24027
|
(e) => {
|
|
24027
24028
|
e.stopPropagation();
|
|
24028
24029
|
pausePreviewNow();
|
|
24029
|
-
if (dismissEnabled)
|
|
24030
|
+
if (dismissEnabled) _chunkJ6C7F63Pcjs.dismissWalkthrough.call(void 0, storageKey, dismissalId);
|
|
24030
24031
|
setDismissed(true);
|
|
24031
24032
|
},
|
|
24032
24033
|
[dismissEnabled, storageKey, dismissalId, pausePreviewNow]
|
|
@@ -24177,7 +24178,7 @@ function WalkthroughVideo({
|
|
|
24177
24178
|
},
|
|
24178
24179
|
children: [
|
|
24179
24180
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pointer-events-none absolute inset-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24180
|
-
|
|
24181
|
+
_chunk7Y6M4FW4cjs.VideoHoverPreviewSurface,
|
|
24181
24182
|
{
|
|
24182
24183
|
url: video.mainVideoUrl || "",
|
|
24183
24184
|
posterUrl: video.posterUrl ? _chunkKUXHXLJQcjs.resizedImageUrl.call(void 0, video.posterUrl, _chunkVXXOUM2Kcjs.IMAGE_WIDTHS[0]) : video.posterUrl,
|
|
@@ -24201,7 +24202,7 @@ function WalkthroughVideo({
|
|
|
24201
24202
|
`card-${embedUrlKey}`
|
|
24202
24203
|
) }),
|
|
24203
24204
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24204
|
-
|
|
24205
|
+
_chunkCB77J5L7cjs.CardHitLayer,
|
|
24205
24206
|
{
|
|
24206
24207
|
label: video.title ? `${label}: ${video.title}` : label,
|
|
24207
24208
|
onPointerDown: pausePreviewNow,
|
|
@@ -24210,7 +24211,7 @@ function WalkthroughVideo({
|
|
|
24210
24211
|
}
|
|
24211
24212
|
),
|
|
24212
24213
|
/* @__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: [
|
|
24213
|
-
presenterAvatarSrc ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24214
|
+
presenterAvatarSrc ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.SquareAvatar, { src: presenterAvatarSrc, alt: "", sizePx: 20, variant: "round", className: "shrink-0 border-0" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP4B6PVSGcjs.VideoPlayBadge, { size: "sm", className: "h-5 w-5 shrink-0" }),
|
|
24214
24215
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: summaryTitle || label })
|
|
24215
24216
|
] }),
|
|
24216
24217
|
showBigUnmute && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -24317,7 +24318,7 @@ function WalkthroughVideo({
|
|
|
24317
24318
|
children: [
|
|
24318
24319
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogPrimitive2.Title, { className: "sr-only", children: summaryTitle || "Walkthrough video" }),
|
|
24319
24320
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24320
|
-
|
|
24321
|
+
_chunk7Y6M4FW4cjs.Video,
|
|
24321
24322
|
{
|
|
24322
24323
|
kind: video.youtubeUrl ? "youtube" : "file",
|
|
24323
24324
|
url: video.youtubeUrl || video.mainVideoUrl,
|
|
@@ -24373,7 +24374,7 @@ function useWalkthroughVideo(opts) {
|
|
|
24373
24374
|
const { endpoint, initialData, enabled: enabledGiven = true, transformCaptionsUrl } = opts;
|
|
24374
24375
|
const inScope = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
24375
24376
|
const enabled = enabledGiven && !inScope;
|
|
24376
|
-
const captions =
|
|
24377
|
+
const captions = _chunkCB77J5L7cjs.useCaptions.call(void 0, );
|
|
24377
24378
|
const query = _reactquery.useQuery.call(void 0, {
|
|
24378
24379
|
queryKey: ["walkthrough-video", endpoint],
|
|
24379
24380
|
enabled,
|
|
@@ -24571,7 +24572,7 @@ function VideoSourceSelector({
|
|
|
24571
24572
|
}
|
|
24572
24573
|
function DefaultVideoPreview({ videoUrl, onDelete, disabled }) {
|
|
24573
24574
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative overflow-hidden rounded-lg border border-ods-border", children: [
|
|
24574
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video max-h-[300px] w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24575
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video max-h-[300px] w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7Y6M4FW4cjs.Video, { kind: "file", url: videoUrl }) }),
|
|
24575
24576
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24576
24577
|
_chunkAHBTZ7DNcjs.Button,
|
|
24577
24578
|
{
|
|
@@ -25027,19 +25028,19 @@ function HighlightVideoSection({
|
|
|
25027
25028
|
/* @__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: [
|
|
25028
25029
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD47ZGOUcjs.Label, { children: "Target Duration" }),
|
|
25029
25030
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25030
|
-
|
|
25031
|
+
_chunk243TS7YLcjs.Select,
|
|
25031
25032
|
{
|
|
25032
25033
|
value: targetDurationSeconds.toString(),
|
|
25033
25034
|
onValueChange: (value) => onTargetDurationChange(parseInt(value)),
|
|
25034
25035
|
disabled,
|
|
25035
25036
|
children: [
|
|
25036
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25037
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25038
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25039
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25040
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25041
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25042
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25037
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectTrigger, { className: "mt-1 bg-ods-bg-surface", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectValue, {}) }),
|
|
25038
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk243TS7YLcjs.SelectContent, { className: "bg-ods-card", children: [
|
|
25039
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: "60", children: "1 minute" }),
|
|
25040
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: "120", children: "2 minutes" }),
|
|
25041
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: "180", children: "3 minutes (Recommended)" }),
|
|
25042
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: "240", children: "4 minutes" }),
|
|
25043
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: "300", children: "5 minutes" })
|
|
25043
25044
|
] })
|
|
25044
25045
|
]
|
|
25045
25046
|
}
|
|
@@ -25097,7 +25098,7 @@ function HighlightVideoSection({
|
|
|
25097
25098
|
// Default simple preview — the <Video> SSOT (MuxPlayer) plays
|
|
25098
25099
|
// MP4 and Mux HLS alike; aspect-video box reserves the height.
|
|
25099
25100
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative overflow-hidden rounded-lg border border-ods-border bg-black", children: [
|
|
25100
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video max-h-[300px] w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25101
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video max-h-[300px] w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7Y6M4FW4cjs.Video, { kind: "file", url: highlightVideoUrl, poster: highlightVideoThumbnail || void 0 }) }),
|
|
25101
25102
|
onDeleteHighlight && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25102
25103
|
_chunkAHBTZ7DNcjs.Button,
|
|
25103
25104
|
{
|
|
@@ -25124,20 +25125,20 @@ function HighlightConfigSection({
|
|
|
25124
25125
|
disabled = false,
|
|
25125
25126
|
className = ""
|
|
25126
25127
|
}) {
|
|
25127
|
-
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,
|
|
25128
|
-
|
|
25128
|
+
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, _chunkJ6C7F63Pcjs.Field, { label: "Target Duration", children: (f) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25129
|
+
_chunk243TS7YLcjs.Select,
|
|
25129
25130
|
{
|
|
25130
25131
|
value: targetDurationSeconds.toString(),
|
|
25131
25132
|
onValueChange: (value) => onTargetDurationChange(parseInt(value)),
|
|
25132
25133
|
disabled,
|
|
25133
25134
|
children: [
|
|
25134
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25135
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25136
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25137
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25138
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25139
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25140
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25135
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectTrigger, { id: f.id, className: "bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectValue, {}) }),
|
|
25136
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk243TS7YLcjs.SelectContent, { className: "bg-ods-card", children: [
|
|
25137
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: "60", children: "1 minute" }),
|
|
25138
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: "120", children: "2 minutes" }),
|
|
25139
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: "180", children: "3 minutes (Recommended)" }),
|
|
25140
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: "240", children: "4 minutes" }),
|
|
25141
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: "300", children: "5 minutes" })
|
|
25141
25142
|
] })
|
|
25142
25143
|
]
|
|
25143
25144
|
}
|
|
@@ -25225,7 +25226,7 @@ var AIStatusIndicator = ({
|
|
|
25225
25226
|
}) => {
|
|
25226
25227
|
const config = statusConfig[status];
|
|
25227
25228
|
const displayText = message || config.label;
|
|
25228
|
-
const confidenceLabel = showConfidence && confidence !== void 0 ? `${
|
|
25229
|
+
const confidenceLabel = showConfidence && confidence !== void 0 ? `${_chunkJ6C7F63Pcjs.getConfidenceLabel.call(void 0, confidence)} (${confidence}%)` : null;
|
|
25229
25230
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "inline-flex items-center gap-2 rounded-lg px-3 py-1.5", config.bgColor, className), children: [
|
|
25230
25231
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25231
25232
|
_chunkUNFCRSYIcjs.SparklesIcon,
|
|
@@ -25233,7 +25234,7 @@ var AIStatusIndicator = ({
|
|
|
25233
25234
|
size: 16,
|
|
25234
25235
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
25235
25236
|
status === "loading" && _chunk4WIJI4AKcjs.LIVE_PULSE_CLASS,
|
|
25236
|
-
confidence !== void 0 && status === "success" ?
|
|
25237
|
+
confidence !== void 0 && status === "success" ? _chunkJ6C7F63Pcjs.getConfidenceTextClass.call(void 0, confidence) : config.color
|
|
25237
25238
|
)
|
|
25238
25239
|
}
|
|
25239
25240
|
),
|
|
@@ -25242,7 +25243,7 @@ var AIStatusIndicator = ({
|
|
|
25242
25243
|
{
|
|
25243
25244
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
25244
25245
|
"text-h6",
|
|
25245
|
-
confidence !== void 0 && status === "success" ?
|
|
25246
|
+
confidence !== void 0 && status === "success" ? _chunkJ6C7F63Pcjs.getConfidenceTextClass.call(void 0, confidence) : config.color
|
|
25246
25247
|
),
|
|
25247
25248
|
children: displayText
|
|
25248
25249
|
}
|
|
@@ -25252,8 +25253,8 @@ var AIStatusIndicator = ({
|
|
|
25252
25253
|
{
|
|
25253
25254
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
25254
25255
|
"rounded-full border px-2 py-0.5 text-h6",
|
|
25255
|
-
|
|
25256
|
-
|
|
25256
|
+
_chunkJ6C7F63Pcjs.getConfidenceBorderClass.call(void 0, confidence),
|
|
25257
|
+
_chunkJ6C7F63Pcjs.getConfidenceTextClass.call(void 0, confidence)
|
|
25257
25258
|
),
|
|
25258
25259
|
children: confidenceLabel
|
|
25259
25260
|
}
|
|
@@ -25829,7 +25830,7 @@ function ApprovalLevelView({
|
|
|
25829
25830
|
] });
|
|
25830
25831
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, READ_ONLY_ROW_CLASS, className), children: [
|
|
25831
25832
|
name,
|
|
25832
|
-
showLabel ? icon : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25833
|
+
showLabel ? icon : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZZO3FGPMcjs.TouchFriendlyTooltip, { content: `${current.label}: ${current.hint}`, side: "top", children: icon })
|
|
25833
25834
|
] });
|
|
25834
25835
|
}
|
|
25835
25836
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, EDITABLE_ROW_CLASS, className), children: [
|
|
@@ -25976,7 +25977,7 @@ var CategorySection = ({
|
|
|
25976
25977
|
}) => {
|
|
25977
25978
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingGiven;
|
|
25978
25979
|
const isExpanded = isExpandedProp && !loading;
|
|
25979
|
-
const { innerRef, containerStyle } =
|
|
25980
|
+
const { innerRef, containerStyle } = _chunkZW25QUJKcjs.useCollapsible.call(void 0, { expanded: isExpanded, durationMs: 300 });
|
|
25980
25981
|
const handleBulkChange = (level) => onBulkLevelChange(category.id, level);
|
|
25981
25982
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
25982
25983
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -26133,7 +26134,7 @@ function OpenPolicyButton({ href, name }) {
|
|
|
26133
26134
|
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,
|
|
26134
26135
|
_chunkAHBTZ7DNcjs.Button,
|
|
26135
26136
|
{
|
|
26136
|
-
onClick: loading ? void 0 :
|
|
26137
|
+
onClick: loading ? void 0 : _chunkJ6C7F63Pcjs.openInNewTab.call(void 0, href),
|
|
26137
26138
|
disabled: loading,
|
|
26138
26139
|
variant: "outline",
|
|
26139
26140
|
size: "icon",
|
|
@@ -26172,8 +26173,8 @@ function PoliciesTable({
|
|
|
26172
26173
|
accessorKey: "name",
|
|
26173
26174
|
header: "Name",
|
|
26174
26175
|
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: [
|
|
26175
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26176
|
-
row.original.description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26176
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { children: row.original.name }),
|
|
26177
|
+
row.original.description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { variant: "h6", tone: "secondary", children: row.original.description })
|
|
26177
26178
|
] }),
|
|
26178
26179
|
meta: { width: "flex-1 min-w-0" }
|
|
26179
26180
|
},
|
|
@@ -26205,7 +26206,7 @@ function PoliciesTable({
|
|
|
26205
26206
|
cell: ({ row }) => {
|
|
26206
26207
|
const { status } = row.original;
|
|
26207
26208
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-start gap-1", children: [
|
|
26208
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26209
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { className: "self-start", label: status.label, variant: status.variant }),
|
|
26209
26210
|
status.note && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `text-h6 ${NOTE_TONE_CLASS[status.note.tone]}`, children: status.note.text })
|
|
26210
26211
|
] });
|
|
26211
26212
|
},
|
|
@@ -26315,7 +26316,7 @@ function PolicySummaryCards({ summary, isLoading = false, hasData = true, now })
|
|
|
26315
26316
|
DashboardInfoCard,
|
|
26316
26317
|
{
|
|
26317
26318
|
title: "Updated",
|
|
26318
|
-
value: hasData && summary.lastUpdatedAt ?
|
|
26319
|
+
value: hasData && summary.lastUpdatedAt ? _chunkZW25QUJKcjs.formatRelativeTimeFrom.call(void 0, summary.lastUpdatedAt, _nullishCoalesce(now, () => ( /* @__PURE__ */ new Date()))) : EMPTY_VALUE,
|
|
26319
26320
|
valueClassName: "!text-h3",
|
|
26320
26321
|
tooltip: "Policy compliance stats are updated hourly. View a policy's devices for real-time status."
|
|
26321
26322
|
}
|
|
@@ -26431,7 +26432,7 @@ function toValidInstant(iso) {
|
|
|
26431
26432
|
function formatLastRead(iso, now = /* @__PURE__ */ new Date()) {
|
|
26432
26433
|
const date = toValidInstant(iso);
|
|
26433
26434
|
if (!date) return TENANT_EMPTY_VALUE;
|
|
26434
|
-
return now.getTime() - date.getTime() < DAY_MS ?
|
|
26435
|
+
return now.getTime() - date.getTime() < DAY_MS ? _chunkZW25QUJKcjs.formatRelativeTimeFrom.call(void 0, date, now) : _chunkNZSWROGMcjs.formatDate.call(void 0, date);
|
|
26435
26436
|
}
|
|
26436
26437
|
function usersCountLabel(count) {
|
|
26437
26438
|
if (count == null) return TENANT_EMPTY_VALUE;
|
|
@@ -26443,8 +26444,8 @@ function usersCountLabel(count) {
|
|
|
26443
26444
|
function TenantAccessCell({ accessState, lastReadAt: lastReadAt2, now }) {
|
|
26444
26445
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
26445
26446
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26446
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26447
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26447
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { ...accessStateTag(accessState), loading, className: "self-start" }),
|
|
26448
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { variant: "h6", tone: "secondary", loading, children: `Last read: ${formatLastRead(lastReadAt2, now)}` })
|
|
26448
26449
|
] });
|
|
26449
26450
|
}
|
|
26450
26451
|
|
|
@@ -26456,9 +26457,9 @@ function TenantCell({ provider, name, domain }) {
|
|
|
26456
26457
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
26457
26458
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26458
26459
|
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.MediaSkeleton.Icon, { size: "md", className: "shrink-0" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Logo, { size: 24, role: "img", "aria-label": label, className: "shrink-0" }),
|
|
26459
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26460
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { children: name })
|
|
26460
26461
|
] }),
|
|
26461
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26462
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { variant: "h6", tone: "secondary", loading, children: _nullishCoalesce(domain, () => ( TENANT_EMPTY_VALUE)) })
|
|
26462
26463
|
] });
|
|
26463
26464
|
}
|
|
26464
26465
|
|
|
@@ -26468,10 +26469,10 @@ function TenantCustomerCell({ name, imageUrl, userCount }) {
|
|
|
26468
26469
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
26469
26470
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
26470
26471
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26471
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26472
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26472
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.SquareAvatar, { src: _nullishCoalesce(imageUrl, () => ( void 0)), alt: name, fallback: name, size: "xs", variant: "square" }),
|
|
26473
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { children: name })
|
|
26473
26474
|
] }),
|
|
26474
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26475
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { variant: "h6", tone: "secondary", loading, children: usersCountLabel(userCount) })
|
|
26475
26476
|
] });
|
|
26476
26477
|
}
|
|
26477
26478
|
|
|
@@ -26507,7 +26508,7 @@ function OpenTenantButton({ href, name }) {
|
|
|
26507
26508
|
/* @__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,
|
|
26508
26509
|
_chunkAHBTZ7DNcjs.Button,
|
|
26509
26510
|
{
|
|
26510
|
-
onClick: loading ? void 0 :
|
|
26511
|
+
onClick: loading ? void 0 : _chunkJ6C7F63Pcjs.openInNewTab.call(void 0, href),
|
|
26511
26512
|
disabled: loading,
|
|
26512
26513
|
variant: "outline",
|
|
26513
26514
|
size: "icon",
|
|
@@ -26639,13 +26640,13 @@ function WaitlistForm({
|
|
|
26639
26640
|
const [email, setEmail] = _react.useState.call(void 0, defaultEmail);
|
|
26640
26641
|
const [phone, setPhone] = _react.useState.call(void 0, defaultPhone);
|
|
26641
26642
|
const [countryCode, setCountryCode] = _react.useState.call(void 0, "US");
|
|
26642
|
-
const { toast } =
|
|
26643
|
-
const { honeypotInputProps, getSignals, resetSignals } =
|
|
26643
|
+
const { toast } = _chunkGU3GJ5DHcjs.useToast.call(void 0, );
|
|
26644
|
+
const { honeypotInputProps, getSignals, resetSignals } = _chunkGU3GJ5DHcjs.useHumanitySignals.call(void 0, );
|
|
26644
26645
|
const [smsConsent, setSmsConsent] = _react.useState.call(void 0, false);
|
|
26645
|
-
const isClient =
|
|
26646
|
+
const isClient = _chunkCB77J5L7cjs.useIsHydrated.call(void 0, );
|
|
26646
26647
|
const [isPhoneInvalid, setIsPhoneInvalid] = _react.useState.call(void 0, false);
|
|
26647
26648
|
const [showConsentError, setShowConsentError] = _react.useState.call(void 0, false);
|
|
26648
|
-
const rescue =
|
|
26649
|
+
const rescue = _chunkGU3GJ5DHcjs.useFormRescue.call(void 0, {
|
|
26649
26650
|
form: rescueForm,
|
|
26650
26651
|
// The phone is reported as filled only; its value never leaves the form early.
|
|
26651
26652
|
fieldNames: ["email", "phone"],
|
|
@@ -26657,7 +26658,7 @@ function WaitlistForm({
|
|
|
26657
26658
|
_react.useEffect.call(void 0, () => {
|
|
26658
26659
|
rescue.track({ email, phone }, null);
|
|
26659
26660
|
}, [email, phone, rescue]);
|
|
26660
|
-
const isMailDomainGeneric =
|
|
26661
|
+
const isMailDomainGeneric = _chunkJ6C7F63Pcjs.hasGenericEmailDomain.call(void 0, email);
|
|
26661
26662
|
const [syncedDefaultEmail, setSyncedDefaultEmail] = _react.useState.call(void 0, defaultEmail);
|
|
26662
26663
|
if (syncedDefaultEmail !== defaultEmail) {
|
|
26663
26664
|
setSyncedDefaultEmail(defaultEmail);
|
|
@@ -26691,7 +26692,7 @@ function WaitlistForm({
|
|
|
26691
26692
|
setShowConsentError(true);
|
|
26692
26693
|
return;
|
|
26693
26694
|
}
|
|
26694
|
-
const finalPhone = phone ?
|
|
26695
|
+
const finalPhone = phone ? _chunkJ6C7F63Pcjs.formatPhoneE164.call(void 0, phone, countryCode) : void 0;
|
|
26695
26696
|
try {
|
|
26696
26697
|
await onRegister(email, finalPhone, getSignals(), rescue.submitFields());
|
|
26697
26698
|
rescue.complete();
|
|
@@ -27289,7 +27290,7 @@ var AppLayoutDrawerContent = _react.forwardRef.call(void 0,
|
|
|
27289
27290
|
}, [mobileBreakpoint]);
|
|
27290
27291
|
const panelRef = _react.useRef.call(void 0, null);
|
|
27291
27292
|
const available = useContainerExtent(resizable, isHorizontal, portalContainer);
|
|
27292
|
-
const { size, setSize, clampSize } =
|
|
27293
|
+
const { size, setSize, clampSize } = _chunkSFUNXMY3cjs.useResizablePanelSize.call(void 0, {
|
|
27293
27294
|
enabled: resizable,
|
|
27294
27295
|
minSize,
|
|
27295
27296
|
maxSize,
|
|
@@ -27309,7 +27310,7 @@ var AppLayoutDrawerContent = _react.forwardRef.call(void 0,
|
|
|
27309
27310
|
"data-state": open ? "open" : "closed",
|
|
27310
27311
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
27311
27312
|
"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",
|
|
27312
|
-
|
|
27313
|
+
_chunkSFUNXMY3cjs.OVERLAY_BACKDROP_CLASS,
|
|
27313
27314
|
// Persist mode only: hold the fade-out's final (transparent) frame
|
|
27314
27315
|
// so the backdrop doesn't snap back to opacity 1 and dim the whole
|
|
27315
27316
|
// content area while the drawer is "closed" (see PERSIST_CLOSED_HOLD).
|
|
@@ -27352,7 +27353,7 @@ var AppLayoutDrawerContent = _react.forwardRef.call(void 0,
|
|
|
27352
27353
|
children: [
|
|
27353
27354
|
props["aria-label"] ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogPrimitive3.Title, { className: "sr-only", children: props["aria-label"] }) : null,
|
|
27354
27355
|
applyInlineSize && (!persist || open) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27355
|
-
|
|
27356
|
+
_chunkSFUNXMY3cjs.PanelResizeHandle,
|
|
27356
27357
|
{
|
|
27357
27358
|
variant: "inLayout",
|
|
27358
27359
|
side: resolvedSide,
|
|
@@ -27391,11 +27392,11 @@ var AppLayoutDrawerContent = _react.forwardRef.call(void 0,
|
|
|
27391
27392
|
}
|
|
27392
27393
|
);
|
|
27393
27394
|
AppLayoutDrawerContent.displayName = "AppLayoutDrawerContent";
|
|
27394
|
-
var AppLayoutDrawerHeader =
|
|
27395
|
-
var AppLayoutDrawerTitle =
|
|
27396
|
-
var AppLayoutDrawerDescription =
|
|
27397
|
-
var AppLayoutDrawerBody =
|
|
27398
|
-
var AppLayoutDrawerFooter =
|
|
27395
|
+
var AppLayoutDrawerHeader = _chunkSFUNXMY3cjs.DrawerHeader;
|
|
27396
|
+
var AppLayoutDrawerTitle = _chunkSFUNXMY3cjs.DrawerTitle;
|
|
27397
|
+
var AppLayoutDrawerDescription = _chunkSFUNXMY3cjs.DrawerDescription;
|
|
27398
|
+
var AppLayoutDrawerBody = _chunkSFUNXMY3cjs.DrawerBody;
|
|
27399
|
+
var AppLayoutDrawerFooter = _chunkSFUNXMY3cjs.DrawerFooter;
|
|
27399
27400
|
|
|
27400
27401
|
// src/components/features/notifications/notification-tile.tsx
|
|
27401
27402
|
|
|
@@ -27414,7 +27415,7 @@ var typeColorByVariant = {
|
|
|
27414
27415
|
error: "text-ods-error"
|
|
27415
27416
|
};
|
|
27416
27417
|
var progressColorByVariant2 = {
|
|
27417
|
-
...
|
|
27418
|
+
..._chunkGU3GJ5DHcjs.progressColorByVariant,
|
|
27418
27419
|
default: "bg-ods-accent",
|
|
27419
27420
|
info: "bg-ods-accent"
|
|
27420
27421
|
};
|
|
@@ -27508,7 +27509,7 @@ function LoadedNotificationTile({
|
|
|
27508
27509
|
height: _chunkVXXOUM2Kcjs.IMAGE_FIXED_PX.icon,
|
|
27509
27510
|
unoptimized: true
|
|
27510
27511
|
}
|
|
27511
|
-
) : _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "size-1.5 rounded-full",
|
|
27512
|
+
) : _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "size-1.5 rounded-full", _chunkGU3GJ5DHcjs.dotColorByVariant[accentVariant]) }))) }),
|
|
27512
27513
|
type ? lockscreen ? (
|
|
27513
27514
|
// A phone names the sender in plain words and never cuts them.
|
|
27514
27515
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 break-words text-ods-text-secondary text-h6", children: type })
|
|
@@ -27518,7 +27519,7 @@ function LoadedNotificationTile({
|
|
|
27518
27519
|
{
|
|
27519
27520
|
dateTime: createdAtIso,
|
|
27520
27521
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "shrink-0 whitespace-nowrap text-ods-text-secondary text-h6", lockscreen && "self-start"),
|
|
27521
|
-
children: _nullishCoalesce(timeLabel, () => (
|
|
27522
|
+
children: _nullishCoalesce(timeLabel, () => ( _chunkZW25QUJKcjs.formatTicketRelativeTime.call(void 0, createdAtIso)))
|
|
27522
27523
|
}
|
|
27523
27524
|
) : null,
|
|
27524
27525
|
!lockscreen && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TILE_CONTROL_BOX_CLASS, children: [
|
|
@@ -27683,7 +27684,7 @@ function NotificationDrawer({
|
|
|
27683
27684
|
const unreadNotifications = notifications.filter((n) => !n.read);
|
|
27684
27685
|
const content = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
27685
27686
|
/* @__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,
|
|
27686
|
-
|
|
27687
|
+
_chunkSFUNXMY3cjs.DrawerTitle,
|
|
27687
27688
|
{
|
|
27688
27689
|
hideClose: true,
|
|
27689
27690
|
className: "truncate",
|
|
@@ -27746,8 +27747,8 @@ function NotificationDrawer({
|
|
|
27746
27747
|
}
|
|
27747
27748
|
) });
|
|
27748
27749
|
}
|
|
27749
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27750
|
-
|
|
27750
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSFUNXMY3cjs.Drawer, { open: isOpen, onOpenChange: (v) => v ? open() : close(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27751
|
+
_chunkSFUNXMY3cjs.DrawerContent,
|
|
27751
27752
|
{
|
|
27752
27753
|
side: "right",
|
|
27753
27754
|
"aria-describedby": void 0,
|
|
@@ -27843,7 +27844,7 @@ function ShowNotificationsToggleRow({ checked, onChange }) {
|
|
|
27843
27844
|
] });
|
|
27844
27845
|
}
|
|
27845
27846
|
function DesktopNotificationsToggleRow({ checked, onChange }) {
|
|
27846
|
-
const { supported, permission, request } =
|
|
27847
|
+
const { supported, permission, request } = _chunkGU3GJ5DHcjs.useNotificationPermission.call(void 0, );
|
|
27847
27848
|
if (!supported) return null;
|
|
27848
27849
|
const blocked = permission === "denied";
|
|
27849
27850
|
const handleChange = async (value) => {
|
|
@@ -28021,13 +28022,13 @@ function getApprovalMeta(notification) {
|
|
|
28021
28022
|
function resolutionToStatus(resolution) {
|
|
28022
28023
|
switch (typeof resolution === "string" ? resolution.toUpperCase() : void 0) {
|
|
28023
28024
|
case "APPROVED":
|
|
28024
|
-
return
|
|
28025
|
+
return _chunkNZSWROGMcjs.APPROVAL_STATUS.APPROVED;
|
|
28025
28026
|
case "REJECTED":
|
|
28026
|
-
return
|
|
28027
|
+
return _chunkNZSWROGMcjs.APPROVAL_STATUS.REJECTED;
|
|
28027
28028
|
case "CANCELLED":
|
|
28028
|
-
return
|
|
28029
|
+
return _chunkNZSWROGMcjs.APPROVAL_STATUS.CANCELLED;
|
|
28029
28030
|
default:
|
|
28030
|
-
return
|
|
28031
|
+
return _chunkNZSWROGMcjs.APPROVAL_STATUS.PENDING;
|
|
28031
28032
|
}
|
|
28032
28033
|
}
|
|
28033
28034
|
function approvalMetaToBatchData(approval) {
|
|
@@ -28072,7 +28073,7 @@ function ApprovalRequestNotificationTile({
|
|
|
28072
28073
|
const resolvedStatus = resolutionToStatus(_optionalChain([approval, 'optionalAccess', _598 => _598.resolution]));
|
|
28073
28074
|
const status = resolvedStatus !== "pending" ? resolvedStatus : _nullishCoalesce(localStatus, () => ( "pending"));
|
|
28074
28075
|
const batchData = _react.useMemo.call(void 0, () => approval ? approvalMetaToBatchData(approval) : null, [approval]);
|
|
28075
|
-
const { innerRef, containerStyle } =
|
|
28076
|
+
const { innerRef, containerStyle } = _chunkZW25QUJKcjs.useCollapsible.call(void 0, { expanded });
|
|
28076
28077
|
if (!approval || !batchData) return null;
|
|
28077
28078
|
const tileNotification = {
|
|
28078
28079
|
...notification,
|
|
@@ -28135,7 +28136,7 @@ function ApprovalRequestNotificationTile({
|
|
|
28135
28136
|
}
|
|
28136
28137
|
)
|
|
28137
28138
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
28138
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28139
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZW25QUJKcjs.ApprovalStatusTag, { status }),
|
|
28139
28140
|
approval.resolvedByName ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: [
|
|
28140
28141
|
"by ",
|
|
28141
28142
|
approval.resolvedByName
|
|
@@ -28153,12 +28154,12 @@ function ApprovalRequestNotificationTile({
|
|
|
28153
28154
|
"aria-expanded": expanded,
|
|
28154
28155
|
"aria-label": toggleLabel,
|
|
28155
28156
|
className: APPROVAL_TOGGLE_BUTTON_CLASS,
|
|
28156
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28157
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZW25QUJKcjs.ExpandChevron, { expanded })
|
|
28157
28158
|
}
|
|
28158
28159
|
)
|
|
28159
28160
|
] }),
|
|
28160
28161
|
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,
|
|
28161
|
-
|
|
28162
|
+
_chunkZW25QUJKcjs.ApprovalBatchMessage,
|
|
28162
28163
|
{
|
|
28163
28164
|
data: batchData,
|
|
28164
28165
|
showExecutionStatus: false,
|
|
@@ -28231,7 +28232,7 @@ function renderCustomerOption(option, isSelected) {
|
|
|
28231
28232
|
const { label, imageUrl } = option;
|
|
28232
28233
|
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: [
|
|
28233
28234
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
28234
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28235
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.SquareAvatar, { src: imageUrl, alt: label, fallback: label, size: "sm", variant: "square" }),
|
|
28235
28236
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", title: label, children: label })
|
|
28236
28237
|
] }),
|
|
28237
28238
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
@@ -28315,7 +28316,7 @@ function TimeTrackerPanel({
|
|
|
28315
28316
|
}));
|
|
28316
28317
|
const selectedCustomer = customerAutocompleteOptions.find((o) => o.value === selectedCustomerId);
|
|
28317
28318
|
const customerStartAdornment = selectedCustomer ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28318
|
-
|
|
28319
|
+
_chunkU2MHQBL4cjs.SquareAvatar,
|
|
28319
28320
|
{
|
|
28320
28321
|
src: selectedCustomer.imageUrl,
|
|
28321
28322
|
alt: selectedCustomer.label,
|
|
@@ -28395,7 +28396,7 @@ function TimeTrackerPanel({
|
|
|
28395
28396
|
] }),
|
|
28396
28397
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "grid gap-[var(--spacing-system-m)]", showCustomer && "grid-cols-2"), children: [
|
|
28397
28398
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28398
|
-
|
|
28399
|
+
_chunk243TS7YLcjs.Autocomplete,
|
|
28399
28400
|
{
|
|
28400
28401
|
value: selectedTicketId,
|
|
28401
28402
|
onChange: onSelectedTicketChange,
|
|
@@ -28411,7 +28412,7 @@ function TimeTrackerPanel({
|
|
|
28411
28412
|
}
|
|
28412
28413
|
),
|
|
28413
28414
|
showCustomer && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28414
|
-
|
|
28415
|
+
_chunk243TS7YLcjs.Autocomplete,
|
|
28415
28416
|
{
|
|
28416
28417
|
value: _nullishCoalesce(selectedCustomerId, () => ( null)),
|
|
28417
28418
|
onChange: onSelectedCustomerChange,
|
|
@@ -28494,7 +28495,7 @@ var STATUS_TAG_SKIN = "gap-[var(--spacing-system-xs)] font-mono font-medium uppe
|
|
|
28494
28495
|
function StatusTag({ status }) {
|
|
28495
28496
|
if (status === "tracking") {
|
|
28496
28497
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28497
|
-
|
|
28498
|
+
_chunkU2MHQBL4cjs.Tag,
|
|
28498
28499
|
{
|
|
28499
28500
|
variant: "success",
|
|
28500
28501
|
className: STATUS_TAG_SKIN,
|
|
@@ -28504,9 +28505,9 @@ function StatusTag({ status }) {
|
|
|
28504
28505
|
);
|
|
28505
28506
|
}
|
|
28506
28507
|
if (status === "paused") {
|
|
28507
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28508
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { variant: "warning", className: STATUS_TAG_SKIN, icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4D25RXYZcjs.PauseIcon, { className: "h-4 w-4" }), label: "Paused" });
|
|
28508
28509
|
}
|
|
28509
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28510
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { variant: "grey", className: STATUS_TAG_SKIN, label: "Ready to Track" });
|
|
28510
28511
|
}
|
|
28511
28512
|
function LastEntryRow({ entry, onClick }) {
|
|
28512
28513
|
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: [
|
|
@@ -28671,7 +28672,7 @@ function TimeTrackerHeaderButton({ className, disabled }) {
|
|
|
28671
28672
|
"data-state": isOpen ? "open" : "closed",
|
|
28672
28673
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
28673
28674
|
layoutContainer ? "absolute inset-0 z-[102]" : "fixed inset-0 z-[1299]",
|
|
28674
|
-
|
|
28675
|
+
_chunkSFUNXMY3cjs.OVERLAY_BACKDROP_CLASS,
|
|
28675
28676
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0",
|
|
28676
28677
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0"
|
|
28677
28678
|
)
|
|
@@ -28697,7 +28698,7 @@ function TimeTrackerHeaderButton({ className, disabled }) {
|
|
|
28697
28698
|
|
|
28698
28699
|
// src/components/features/devices/device-last-online.ts
|
|
28699
28700
|
function formatLastOnline(lastSeen) {
|
|
28700
|
-
return `Last Online: ${lastSeen ?
|
|
28701
|
+
return `Last Online: ${lastSeen ? _chunkZW25QUJKcjs.formatRelativeTime.call(void 0, lastSeen) : "\u2014"}`;
|
|
28701
28702
|
}
|
|
28702
28703
|
|
|
28703
28704
|
// src/components/features/devices/device-name.ts
|
|
@@ -28741,7 +28742,7 @@ var SELECTION_MODE_OPTIONS = [
|
|
|
28741
28742
|
label: "Select Devices by Criteria",
|
|
28742
28743
|
description: CRITERIA_MODE_DESCRIPTION,
|
|
28743
28744
|
disabled: true,
|
|
28744
|
-
trailing: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28745
|
+
trailing: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { label: "Coming Soon", variant: "grey" })
|
|
28745
28746
|
}
|
|
28746
28747
|
];
|
|
28747
28748
|
var SELECTION_MODE_OPTIONS_ENABLED = [
|
|
@@ -28846,7 +28847,7 @@ function getDeviceStatusConfig(status) {
|
|
|
28846
28847
|
}
|
|
28847
28848
|
}
|
|
28848
28849
|
function getDeviceOperatingSystem(osType) {
|
|
28849
|
-
return
|
|
28850
|
+
return _chunkJ6C7F63Pcjs.getOSPlatformId.call(void 0, osType);
|
|
28850
28851
|
}
|
|
28851
28852
|
|
|
28852
28853
|
// src/components/features/devices/device-statuses.ts
|
|
@@ -29023,8 +29024,8 @@ function DevicesFilterToolbar({
|
|
|
29023
29024
|
|
|
29024
29025
|
|
|
29025
29026
|
function formatDateTime(input) {
|
|
29026
|
-
const date =
|
|
29027
|
-
return date === "\u2014" ? date : `${date} ${
|
|
29027
|
+
const date = _chunkNZSWROGMcjs.formatDate.call(void 0, input);
|
|
29028
|
+
return date === "\u2014" ? date : `${date} ${_chunkNZSWROGMcjs.formatTime.call(void 0, input)}`;
|
|
29028
29029
|
}
|
|
29029
29030
|
function uniqueById(options) {
|
|
29030
29031
|
const seen = /* @__PURE__ */ new Map();
|
|
@@ -29141,7 +29142,7 @@ function DevicesTableBody({
|
|
|
29141
29142
|
function OrganizationCell({ device }) {
|
|
29142
29143
|
const fullImageUrl = useDeviceImageUrl(device.organizationImageUrl, device.organizationImageHash);
|
|
29143
29144
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
29144
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29145
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.EntityImage, { src: fullImageUrl, alt: device.organization || "Customer", className: "size-12 content-md:size-12" }),
|
|
29145
29146
|
/* @__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, OrganizationName, { name: device.organization }) })
|
|
29146
29147
|
] });
|
|
29147
29148
|
}
|
|
@@ -29193,7 +29194,7 @@ function getDeviceTableColumns(deviceFilters, filtersPending) {
|
|
|
29193
29194
|
const device = row.original;
|
|
29194
29195
|
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: [
|
|
29195
29196
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeviceTypeTile, { type: device.type }),
|
|
29196
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29197
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { children: getDeviceName(device) }) })
|
|
29197
29198
|
] });
|
|
29198
29199
|
},
|
|
29199
29200
|
meta: { width: "flex-1 content-md:w-1/4" }
|
|
@@ -29206,7 +29207,7 @@ function getDeviceTableColumns(deviceFilters, filtersPending) {
|
|
|
29206
29207
|
const device = row.original;
|
|
29207
29208
|
const statusConfig2 = getDeviceStatusConfig(device.status);
|
|
29208
29209
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col items-start gap-1", children: [
|
|
29209
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "inline-flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29210
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "inline-flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { label: statusConfig2.label, variant: statusConfig2.variant }) }),
|
|
29210
29211
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeviceLastSeen, { lastSeen: device.last_seen })
|
|
29211
29212
|
] });
|
|
29212
29213
|
},
|
|
@@ -29259,7 +29260,7 @@ function useTagFilterModal({
|
|
|
29259
29260
|
setParams,
|
|
29260
29261
|
onApplied = scrollMainToTop
|
|
29261
29262
|
}) {
|
|
29262
|
-
const isMdUp =
|
|
29263
|
+
const isMdUp = _chunkLC65AC6Mcjs.useMdUp.call(void 0, );
|
|
29263
29264
|
const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
|
|
29264
29265
|
const pendingFiltersRef = _react.useRef.call(void 0, {});
|
|
29265
29266
|
const open = _react.useCallback.call(void 0, () => setIsOpen(true), []);
|
|
@@ -29365,7 +29366,7 @@ function CustomerCell({ device }) {
|
|
|
29365
29366
|
const fullImageUrl = useDeviceImageUrl(device.organizationImageUrl, device.organizationImageHash);
|
|
29366
29367
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
29367
29368
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29368
|
-
|
|
29369
|
+
_chunk243TS7YLcjs.EntityImage,
|
|
29369
29370
|
{
|
|
29370
29371
|
src: fullImageUrl,
|
|
29371
29372
|
alt: device.organization || "Customer",
|
|
@@ -29373,8 +29374,8 @@ function CustomerCell({ device }) {
|
|
|
29373
29374
|
}
|
|
29374
29375
|
),
|
|
29375
29376
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
29376
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29377
|
-
(device.organizationEmail || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29377
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { children: device.organization || "" }),
|
|
29378
|
+
(device.organizationEmail || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(device.organizationEmail, () => ( "")) })
|
|
29378
29379
|
] })
|
|
29379
29380
|
] });
|
|
29380
29381
|
}
|
|
@@ -29383,15 +29384,15 @@ function DeviceCell({ device }) {
|
|
|
29383
29384
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 items-center gap-3", children: [
|
|
29384
29385
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeviceTypeTile, { type: device.type }),
|
|
29385
29386
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col", children: [
|
|
29386
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29387
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29387
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { children: getDeviceName(device) }),
|
|
29388
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { variant: "h6", tone: "secondary", loading, children: formatLastOnline(device.last_seen || device.lastSeen) })
|
|
29388
29389
|
] })
|
|
29389
29390
|
] });
|
|
29390
29391
|
}
|
|
29391
29392
|
function StatusCell({ status }) {
|
|
29392
|
-
if (_chunk7JWFMAQBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29393
|
+
if (_chunk7JWFMAQBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { loading: true, label: "", className: "w-min" });
|
|
29393
29394
|
const config = getDeviceStatusConfig(status);
|
|
29394
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29395
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { label: config.label, variant: config.variant, className: "w-min" });
|
|
29395
29396
|
}
|
|
29396
29397
|
function InertInScope({ children }) {
|
|
29397
29398
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.InertWhileLoading, { loading: _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ), className: "contents", children });
|
|
@@ -30184,7 +30185,7 @@ function DevicesList({
|
|
|
30184
30185
|
const handleClearAll = _react.useCallback.call(void 0, () => patch({ search: "", tags: [] }), [patch]);
|
|
30185
30186
|
const narrowed = isNarrowed(narrowing);
|
|
30186
30187
|
const isEmptyState = !isLoading && !isPending && !narrowed && devices.length === 0;
|
|
30187
|
-
const { toolbarRef, containerStyle, stickyHeaderOffset: measuredOffset } =
|
|
30188
|
+
const { toolbarRef, containerStyle, stickyHeaderOffset: measuredOffset } = _chunkGU3GJ5DHcjs.useStickyToolbar.call(void 0, );
|
|
30188
30189
|
const headerOffset = _nullishCoalesce(stickyHeaderOffset, () => ( (stickyToolbar ? measuredOffset : void 0)));
|
|
30189
30190
|
const actionsColumn = _react.useMemo.call(void 0, () => rowActions2 ? getDeviceActionsColumn(rowActions2) : void 0, [rowActions2]);
|
|
30190
30191
|
return (
|
|
@@ -30413,7 +30414,7 @@ function DevicesPanelView({
|
|
|
30413
30414
|
] })
|
|
30414
30415
|
] });
|
|
30415
30416
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30416
|
-
|
|
30417
|
+
_chunk243TS7YLcjs.PageLayout,
|
|
30417
30418
|
{
|
|
30418
30419
|
title,
|
|
30419
30420
|
backButton,
|
|
@@ -30421,7 +30422,7 @@ function DevicesPanelView({
|
|
|
30421
30422
|
actionsVariant: "icon-buttons",
|
|
30422
30423
|
className,
|
|
30423
30424
|
selector: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30424
|
-
|
|
30425
|
+
_chunkCB77J5L7cjs.TabSelector,
|
|
30425
30426
|
{
|
|
30426
30427
|
value: viewMode,
|
|
30427
30428
|
onValueChange: (value) => _optionalChain([onViewModeChange, 'optionalCall', _674 => _674(value)]),
|
|
@@ -30487,7 +30488,7 @@ var PACKAGE_SEARCH_LABEL = "Software Name";
|
|
|
30487
30488
|
var PACKAGE_SEARCH_PLACEHOLDER = "Search for Software";
|
|
30488
30489
|
function PackageSearchFieldPlaceholder({ error }) {
|
|
30489
30490
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30490
|
-
|
|
30491
|
+
_chunk243TS7YLcjs.Autocomplete,
|
|
30491
30492
|
{
|
|
30492
30493
|
label: PACKAGE_SEARCH_LABEL,
|
|
30493
30494
|
labelVariant: "large",
|
|
@@ -30542,16 +30543,16 @@ function SoftwareScheduleFields({
|
|
|
30542
30543
|
] }),
|
|
30543
30544
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
30544
30545
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD47ZGOUcjs.Label, { className: "text-h4", children: "Time" }),
|
|
30545
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30546
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30547
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30546
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk243TS7YLcjs.Select, { value: time, onValueChange: onTimeChange, children: [
|
|
30547
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectValue, { placeholder: "Select time" }) }),
|
|
30548
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectContent, { children: timeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
30548
30549
|
] })
|
|
30549
30550
|
] }),
|
|
30550
30551
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
30551
30552
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD47ZGOUcjs.Label, { className: "text-h4", children: "Timezone" }),
|
|
30552
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30553
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30554
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30553
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk243TS7YLcjs.Select, { value: timeReference, onValueChange: (value) => onTimeReferenceChange(value), children: [
|
|
30554
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectValue, {}) }),
|
|
30555
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectContent, { children: timing.timeReferenceOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
30555
30556
|
] })
|
|
30556
30557
|
] })
|
|
30557
30558
|
]
|
|
@@ -30617,22 +30618,22 @@ function newSoftwareRow(key) {
|
|
|
30617
30618
|
|
|
30618
30619
|
function InfoCell2({ value, label }) {
|
|
30619
30620
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
30620
|
-
/* @__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,
|
|
30621
|
+
/* @__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, _chunk243TS7YLcjs.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" }) }) }),
|
|
30621
30622
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: label })
|
|
30622
30623
|
] });
|
|
30623
30624
|
}
|
|
30624
30625
|
function SoftwareRowFields({ row, removable, onChange, onRemove, renderPackageSearch }) {
|
|
30625
30626
|
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: [
|
|
30626
30627
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30627
|
-
|
|
30628
|
+
_chunk243TS7YLcjs.Select,
|
|
30628
30629
|
{
|
|
30629
30630
|
value: row.packageManager,
|
|
30630
30631
|
onValueChange: (value) => onChange({ ...row, packageManager: value, pkg: null }),
|
|
30631
30632
|
children: [
|
|
30632
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30633
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30633
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectTrigger, { label: "Package Manager", labelVariant: "large", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectValue, {}) }),
|
|
30634
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectContent, { children: PACKAGE_MANAGERS.map((manager) => {
|
|
30634
30635
|
const Icon = PACKAGE_MANAGER_ICON[manager];
|
|
30635
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30636
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: manager, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
30636
30637
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { size: 20, className: "shrink-0 text-ods-text-secondary" }),
|
|
30637
30638
|
PACKAGE_MANAGER_LABEL[manager]
|
|
30638
30639
|
] }) }, manager);
|
|
@@ -30730,7 +30731,7 @@ function SoftwareActionForm({
|
|
|
30730
30731
|
}
|
|
30731
30732
|
);
|
|
30732
30733
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30733
|
-
|
|
30734
|
+
_chunk243TS7YLcjs.PageLayout,
|
|
30734
30735
|
{
|
|
30735
30736
|
title: copy.formTitle,
|
|
30736
30737
|
backButton: onBack ? { label: "Back", onClick: onBack } : void 0,
|
|
@@ -30811,7 +30812,7 @@ function LogDrawer({
|
|
|
30811
30812
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, AppLayoutDrawerHeader, { children: [
|
|
30812
30813
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AppLayoutDrawerTitle, { children: "Log Details" }),
|
|
30813
30814
|
(statusTag || timestamp) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
30814
|
-
statusTag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30815
|
+
statusTag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { label: statusTag.label, variant: statusTag.variant }),
|
|
30815
30816
|
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h6", children: timestamp })
|
|
30816
30817
|
] })
|
|
30817
30818
|
] }),
|
|
@@ -30819,7 +30820,7 @@ function LogDrawer({
|
|
|
30819
30820
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-h-0 flex-1 space-y-4 overflow-y-auto", children: [
|
|
30820
30821
|
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 }) }),
|
|
30821
30822
|
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: [
|
|
30822
|
-
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,
|
|
30823
|
+
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, _chunk243TS7YLcjs.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 }),
|
|
30823
30824
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: field.label })
|
|
30824
30825
|
] }, typeof field.label === "string" ? field.label : "")) }),
|
|
30825
30826
|
children
|
|
@@ -30867,7 +30868,7 @@ function LogsPageView({
|
|
|
30867
30868
|
],
|
|
30868
30869
|
[onRefresh]
|
|
30869
30870
|
);
|
|
30870
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30871
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk243TS7YLcjs.PageLayout, { title: "Logs", actions, showHeader, className, children: [
|
|
30871
30872
|
!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: [
|
|
30872
30873
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30873
30874
|
_chunk7RM4NM2Ccjs.Input,
|
|
@@ -30956,11 +30957,11 @@ var ToolBadge = ({
|
|
|
30956
30957
|
iconClassName
|
|
30957
30958
|
}) => {
|
|
30958
30959
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
30959
|
-
const text = _nullishCoalesce(label, () => ( (toolType ?
|
|
30960
|
+
const text = _nullishCoalesce(label, () => ( (toolType ? _chunkJ6C7F63Pcjs.getToolLabel.call(void 0, toolType) : "")));
|
|
30960
30961
|
const mark = _nullishCoalesce(icon, () => ( (toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXYZBN6D7cjs.ToolIcon, { toolType, className: iconClassName, size: 16 }) : null)));
|
|
30961
30962
|
if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ToolBadgeSkeleton, { variant, icon: !!mark, className });
|
|
30962
30963
|
const linked = (node, linkClassName) => href && targetPlatform ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30963
|
-
|
|
30964
|
+
_chunkCB77J5L7cjs.NavLinkAnchorViaRuntime,
|
|
30964
30965
|
{
|
|
30965
30966
|
href,
|
|
30966
30967
|
targetPlatform,
|
|
@@ -31025,8 +31026,8 @@ function LogSourceCell({ device }) {
|
|
|
31025
31026
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
31026
31027
|
const { deviceName, organization } = logSourceLabels(device);
|
|
31027
31028
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-h-[60px] flex-col justify-center gap-1 py-2", children: [
|
|
31028
|
-
(deviceName || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31029
|
-
(organization || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31029
|
+
(deviceName || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { children: deviceName }),
|
|
31030
|
+
(organization || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(organization, () => ( "")) })
|
|
31030
31031
|
] });
|
|
31031
31032
|
}
|
|
31032
31033
|
function LogRowButton({
|
|
@@ -31081,8 +31082,8 @@ function LogsTableView({
|
|
|
31081
31082
|
accessorKey: "logId",
|
|
31082
31083
|
header: logIdHeader ? () => logIdHeader : "Log ID",
|
|
31083
31084
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col justify-center", children: [
|
|
31084
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31085
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31085
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { children: row.original.timestamp }),
|
|
31086
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { variant: "h6", tone: "secondary", children: row.original.logId })
|
|
31086
31087
|
] }),
|
|
31087
31088
|
enableSorting: false,
|
|
31088
31089
|
meta: { width: LOG_COLUMN_WIDTHS.logId, alwaysShowHeader: true }
|
|
@@ -31090,7 +31091,7 @@ function LogsTableView({
|
|
|
31090
31091
|
{
|
|
31091
31092
|
accessorKey: "status",
|
|
31092
31093
|
header: "Status",
|
|
31093
|
-
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31094
|
+
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { label: row.original.status.label, variant: row.original.status.variant }) }),
|
|
31094
31095
|
enableSorting: false,
|
|
31095
31096
|
filterFn: multiSelect,
|
|
31096
31097
|
meta: {
|
|
@@ -31110,7 +31111,7 @@ function LogsTableView({
|
|
|
31110
31111
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31111
31112
|
ToolBadge,
|
|
31112
31113
|
{
|
|
31113
|
-
toolType:
|
|
31114
|
+
toolType: _chunkJ6C7F63Pcjs.normalizeToolTypeWithFallback.call(void 0, row.original.source.toolType),
|
|
31114
31115
|
iconClassName: "h-4 w-4 content-md:h-6 content-md:w-6"
|
|
31115
31116
|
}
|
|
31116
31117
|
),
|
|
@@ -31122,7 +31123,7 @@ function LogsTableView({
|
|
|
31122
31123
|
filter: {
|
|
31123
31124
|
options: _nullishCoalesce(_optionalChain([facets, 'optionalAccess', _682 => _682.toolTypes, 'access', _683 => _683.map, 'call', _684 => _684((toolType) => ({
|
|
31124
31125
|
id: toolType,
|
|
31125
|
-
label:
|
|
31126
|
+
label: _chunkJ6C7F63Pcjs.toToolLabel.call(void 0, toolType),
|
|
31126
31127
|
value: toolType
|
|
31127
31128
|
}))]), () => ( []))
|
|
31128
31129
|
}
|
|
@@ -31143,7 +31144,7 @@ function LogsTableView({
|
|
|
31143
31144
|
{
|
|
31144
31145
|
accessorKey: "description",
|
|
31145
31146
|
header: "Log Details",
|
|
31146
|
-
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31147
|
+
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { lines: 3, className: "text-ods-text-secondary text-h6", children: row.original.description.title }),
|
|
31147
31148
|
enableSorting: false,
|
|
31148
31149
|
meta: { width: LOG_COLUMN_WIDTHS.description, hideAt: "lg" }
|
|
31149
31150
|
},
|
|
@@ -31171,7 +31172,7 @@ function LogsTableView({
|
|
|
31171
31172
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31172
31173
|
LogRowButton,
|
|
31173
31174
|
{
|
|
31174
|
-
onClick: getLogHref ?
|
|
31175
|
+
onClick: getLogHref ? _chunkJ6C7F63Pcjs.openInNewTab.call(void 0, getLogHref(row.original)) : void 0,
|
|
31175
31176
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
31176
31177
|
label: "Open in new tab"
|
|
31177
31178
|
}
|
|
@@ -31334,30 +31335,30 @@ function scriptExecutionStatus(status) {
|
|
|
31334
31335
|
|
|
31335
31336
|
function ExecutionSourceBadge({ source, className }) {
|
|
31336
31337
|
const tagProps = { as: "span", variant: "outline", className: _chunk7JWFMAQBcjs.cn.call(void 0, "shrink-0", className) };
|
|
31337
|
-
if (source === "SCHEDULED") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31338
|
+
if (source === "SCHEDULED") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { ...tagProps, label: "Scheduled" });
|
|
31338
31339
|
if (source === "AI_ASSISTANT") {
|
|
31339
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31340
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { ...tagProps, label: "Mingo", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZW25QUJKcjs.AgentMark, { agent: "mingo", className: "size-4" }) });
|
|
31340
31341
|
}
|
|
31341
31342
|
return null;
|
|
31342
31343
|
}
|
|
31343
31344
|
function ExecutionTimestampCell({ timestamp, executionId }) {
|
|
31344
31345
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31345
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31346
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31346
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { children: timestamp }),
|
|
31347
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { variant: "h6", tone: "secondary", children: executionId })
|
|
31347
31348
|
] });
|
|
31348
31349
|
}
|
|
31349
31350
|
function ExecutionStatusCell({ status }) {
|
|
31350
31351
|
const presentation = scriptExecutionStatus(status);
|
|
31351
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31352
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { label: _nullishCoalesce(_optionalChain([presentation, 'optionalAccess', _697 => _697.label]), () => ( String(_nullishCoalesce(status, () => ( ""))))), variant: _nullishCoalesce(_optionalChain([presentation, 'optionalAccess', _698 => _698.variant]), () => ( "grey")) }) });
|
|
31352
31353
|
}
|
|
31353
31354
|
function ExecutionDeviceCell({ name, organization }) {
|
|
31354
31355
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
31355
31356
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31356
31357
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-1", children: [
|
|
31357
31358
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPTK7GOIIcjs.MonitorIcon, { className: "size-6 shrink-0 text-ods-text-secondary" }),
|
|
31358
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31359
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { children: name }) : name })
|
|
31359
31360
|
] }),
|
|
31360
|
-
(organization || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31361
|
+
(organization || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(organization, () => ( "")) })
|
|
31361
31362
|
] });
|
|
31362
31363
|
}
|
|
31363
31364
|
function ExecutionInitiatorCell({
|
|
@@ -31370,16 +31371,16 @@ function ExecutionInitiatorCell({
|
|
|
31370
31371
|
avatar,
|
|
31371
31372
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
31372
31373
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
31373
|
-
typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31374
|
+
typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { children: name }) : name,
|
|
31374
31375
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExecutionSourceBadge, { source })
|
|
31375
31376
|
] }),
|
|
31376
|
-
scriptName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31377
|
+
scriptName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { variant: "h6", tone: "secondary", children: scriptName })
|
|
31377
31378
|
] })
|
|
31378
31379
|
] });
|
|
31379
31380
|
}
|
|
31380
31381
|
function ExecutionResultCell({ result, empty = null }) {
|
|
31381
31382
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
31382
|
-
return result || loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31383
|
+
return result || loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { lines: 2, children: _nullishCoalesce(result, () => ( "")) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: empty });
|
|
31383
31384
|
}
|
|
31384
31385
|
function ScriptExecutionResult({
|
|
31385
31386
|
result,
|
|
@@ -31399,14 +31400,14 @@ function ScriptExecutionResult({
|
|
|
31399
31400
|
|
|
31400
31401
|
function ScriptNameCell({ name, description }) {
|
|
31401
31402
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31402
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31403
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31403
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { children: name }),
|
|
31404
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { variant: "h6", tone: "secondary", children: description })
|
|
31404
31405
|
] });
|
|
31405
31406
|
}
|
|
31406
31407
|
function ScheduleDateTimeCell({ date, time }) {
|
|
31407
31408
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31408
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31409
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31409
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { children: date }),
|
|
31410
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { variant: "h6", tone: "secondary", children: time })
|
|
31410
31411
|
] });
|
|
31411
31412
|
}
|
|
31412
31413
|
|
|
@@ -31493,7 +31494,7 @@ function OpenInNewTabCell({ href }) {
|
|
|
31493
31494
|
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,
|
|
31494
31495
|
_chunkAHBTZ7DNcjs.Button,
|
|
31495
31496
|
{
|
|
31496
|
-
onClick: loading ? void 0 :
|
|
31497
|
+
onClick: loading ? void 0 : _chunkJ6C7F63Pcjs.openInNewTab.call(void 0, href),
|
|
31497
31498
|
disabled: loading,
|
|
31498
31499
|
variant: "outline",
|
|
31499
31500
|
size: "icon",
|
|
@@ -31537,7 +31538,7 @@ function ScriptExecutionsTable({
|
|
|
31537
31538
|
ExecutionInitiatorCell,
|
|
31538
31539
|
{
|
|
31539
31540
|
avatar: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31540
|
-
|
|
31541
|
+
_chunkU2MHQBL4cjs.SquareAvatar,
|
|
31541
31542
|
{
|
|
31542
31543
|
variant: "round",
|
|
31543
31544
|
size: "md",
|
|
@@ -31636,7 +31637,7 @@ function ScriptSchedulesTable({
|
|
|
31636
31637
|
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" })),
|
|
31637
31638
|
cell(
|
|
31638
31639
|
SCHEDULE_COLUMNS.dateTime,
|
|
31639
|
-
(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,
|
|
31640
|
+
(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, _chunk243TS7YLcjs.TruncateText, { tone: "secondary", children: row.trigger }) : null
|
|
31640
31641
|
),
|
|
31641
31642
|
cell(
|
|
31642
31643
|
SCHEDULE_COLUMNS.repeat,
|
|
@@ -31682,9 +31683,9 @@ function ScriptSchedulesTable({
|
|
|
31682
31683
|
|
|
31683
31684
|
// src/components/features/scripts/shell-types.ts
|
|
31684
31685
|
var SCRIPT_SHELL_TYPES = [
|
|
31685
|
-
{ id:
|
|
31686
|
-
{ id:
|
|
31687
|
-
{ id:
|
|
31686
|
+
{ id: _chunkJ6C7F63Pcjs.ShellTypeValues.POWERSHELL, label: "PowerShell", value: "powershell", icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon },
|
|
31687
|
+
{ id: _chunkJ6C7F63Pcjs.ShellTypeValues.CMD, label: "CMD", value: "cmd", icon: _chunkNIVJEJSGcjs.TerminalSquareIcon },
|
|
31688
|
+
{ id: _chunkJ6C7F63Pcjs.ShellTypeValues.BASH, label: "Bash", value: "bash", icon: _chunkTRUW6DDAcjs.TerminalIcon }
|
|
31688
31689
|
];
|
|
31689
31690
|
function scriptShellType(value) {
|
|
31690
31691
|
return SCRIPT_SHELL_TYPES.find((shell) => shell.value === value);
|
|
@@ -31750,7 +31751,7 @@ function ScriptsTable({
|
|
|
31750
31751
|
SCRIPT_COLUMNS.authorId,
|
|
31751
31752
|
(row) => row.author ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
31752
31753
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31753
|
-
|
|
31754
|
+
_chunkU2MHQBL4cjs.SquareAvatar,
|
|
31754
31755
|
{
|
|
31755
31756
|
variant: "round",
|
|
31756
31757
|
size: "sm",
|
|
@@ -31760,7 +31761,7 @@ function ScriptsTable({
|
|
|
31760
31761
|
initialsClassName: "text-ods-text-secondary"
|
|
31761
31762
|
}
|
|
31762
31763
|
),
|
|
31763
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31764
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { children: row.author.name }) })
|
|
31764
31765
|
] }) : null
|
|
31765
31766
|
)
|
|
31766
31767
|
];
|
|
@@ -31886,7 +31887,7 @@ function slotValue(minutesOfDay) {
|
|
|
31886
31887
|
return `${String(hours).padStart(2, "0")}:${String(minutes).padStart(2, "0")}`;
|
|
31887
31888
|
}
|
|
31888
31889
|
function slotLabel(minutesOfDay) {
|
|
31889
|
-
return
|
|
31890
|
+
return _chunkNZSWROGMcjs.formatTime.call(void 0, new Date(1970, 0, 1, Math.floor(minutesOfDay / 60), minutesOfDay % 60));
|
|
31890
31891
|
}
|
|
31891
31892
|
function getTimeSlotOptions(forDate, timeReference) {
|
|
31892
31893
|
const base = slotBaseMinutes(timeReference);
|
|
@@ -32108,7 +32109,7 @@ function ReconnectWindowFields({
|
|
|
32108
32109
|
}
|
|
32109
32110
|
),
|
|
32110
32111
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
32111
|
-
|
|
32112
|
+
_chunk243TS7YLcjs.Select,
|
|
32112
32113
|
{
|
|
32113
32114
|
value: unit,
|
|
32114
32115
|
onValueChange: (value) => {
|
|
@@ -32117,8 +32118,8 @@ function ReconnectWindowFields({
|
|
|
32117
32118
|
},
|
|
32118
32119
|
disabled,
|
|
32119
32120
|
children: [
|
|
32120
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32121
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32121
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectTrigger, { className: controlWidth, "aria-label": "Stop retry after unit", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectValue, {}) }),
|
|
32122
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectContent, { children: DURATION_UNIT_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
32122
32123
|
]
|
|
32123
32124
|
}
|
|
32124
32125
|
)
|
|
@@ -32188,7 +32189,7 @@ function ScheduleOfflineFields({ showErrors, disabled = false }) {
|
|
|
32188
32189
|
options
|
|
32189
32190
|
}
|
|
32190
32191
|
),
|
|
32191
|
-
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,
|
|
32192
|
+
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, _chunk243TS7YLcjs.TruncateText, { variant: "h6", className: "text-ods-error", children: intervalError }) })
|
|
32192
32193
|
]
|
|
32193
32194
|
}
|
|
32194
32195
|
) }) })
|
|
@@ -32264,7 +32265,7 @@ function useSortableListContext() {
|
|
|
32264
32265
|
}
|
|
32265
32266
|
function SortableList({ onReorder, getItemLabel, disabled = false, className, children }) {
|
|
32266
32267
|
const listRef = _react.useRef.call(void 0, null);
|
|
32267
|
-
const dragAndDropEnabled =
|
|
32268
|
+
const dragAndDropEnabled = _chunkAPOMNC7Hcjs.useDragAndDropEnabled.call(void 0, );
|
|
32268
32269
|
const dragType = _react.useId.call(void 0, );
|
|
32269
32270
|
const [announcement, setAnnouncement] = _react.useState.call(void 0, "");
|
|
32270
32271
|
const onReorderRef = _react.useRef.call(void 0, onReorder);
|
|
@@ -32297,8 +32298,8 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
|
|
|
32297
32298
|
// Dragging towards the edge of the screen — or past it — scrolls whatever
|
|
32298
32299
|
// actually scrolls there: the page, the layout's `<main>`, or the list
|
|
32299
32300
|
// itself when it has its own overflow.
|
|
32300
|
-
|
|
32301
|
-
|
|
32301
|
+
_chunkZZO3FGPMcjs.autoScrollAncestors.call(void 0, list),
|
|
32302
|
+
_chunkZZO3FGPMcjs.autoScrollBothWays.call(void 0, list),
|
|
32302
32303
|
// One target for the whole list: which slot a drop lands in is answered by
|
|
32303
32304
|
// geometry, so this only has to say "inside the list, or outside it".
|
|
32304
32305
|
_adapter.dropTargetForElements.call(void 0, {
|
|
@@ -32356,7 +32357,7 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
|
|
|
32356
32357
|
})
|
|
32357
32358
|
);
|
|
32358
32359
|
}, [dragType, disabled, dragAndDropEnabled, readItems, reorder]);
|
|
32359
|
-
|
|
32360
|
+
_chunkYSDB6HGQcjs.useIsomorphicLayoutEffect.call(void 0, () => {
|
|
32360
32361
|
const from = flipFrom.current;
|
|
32361
32362
|
flipFrom.current = null;
|
|
32362
32363
|
if (!from) return;
|
|
@@ -32595,7 +32596,7 @@ function useSortableItem() {
|
|
|
32595
32596
|
return _combine.combine.call(void 0,
|
|
32596
32597
|
// The drag has to start as a "move", or its first frame is drawn with the
|
|
32597
32598
|
// copy cursor — see `drag-effect.ts`.
|
|
32598
|
-
|
|
32599
|
+
_chunkZZO3FGPMcjs.holdMoveDragEffect.call(void 0, item),
|
|
32599
32600
|
_adapter.draggable.call(void 0, {
|
|
32600
32601
|
element: item,
|
|
32601
32602
|
dragHandle: handle,
|
|
@@ -32642,7 +32643,7 @@ function ScheduleScriptPickerCard({
|
|
|
32642
32643
|
const selected = watch(`scripts.${index}`);
|
|
32643
32644
|
const runParamsLocked = disabled || !_optionalChain([selected, 'optionalAccess', _725 => _725.scriptId]);
|
|
32644
32645
|
const { itemRef, dragHandleProps, isDragging, dragAndDropEnabled } = useSortableItem();
|
|
32645
|
-
const isMdUp =
|
|
32646
|
+
const isMdUp = _chunkMG3HJIGGcjs.useContentMdUp.call(void 0, );
|
|
32646
32647
|
const handleScriptPick = (row) => {
|
|
32647
32648
|
if (!row) {
|
|
32648
32649
|
setValue(`scripts.${index}`, EMPTY_SCHEDULE_SCRIPT_ROW, { shouldValidate: true });
|
|
@@ -33023,24 +33024,24 @@ function ScheduleTimingFields({
|
|
|
33023
33024
|
// `''` reads as "no selection" to Radix, so the placeholder shows
|
|
33024
33025
|
// until a slot is picked — a date at midnight no longer
|
|
33025
33026
|
// masquerades as a chosen 12:00 AM.
|
|
33026
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33027
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk243TS7YLcjs.Select, { value: field.value, onValueChange: field.onChange, disabled: fieldsDisabled, children: [
|
|
33027
33028
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33028
|
-
|
|
33029
|
+
_chunk243TS7YLcjs.SelectTrigger,
|
|
33029
33030
|
{
|
|
33030
33031
|
className: "w-full",
|
|
33031
33032
|
error: _nullishCoalesce(pastTimeError, () => ( (showErrors ? _optionalChain([fieldState, 'access', _736 => _736.error, 'optionalAccess', _737 => _737.message]) : void 0))),
|
|
33032
33033
|
invalid: !!pastTimeError || showErrors && !!fieldState.error,
|
|
33033
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33034
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectValue, { placeholder: "Select time" })
|
|
33034
33035
|
}
|
|
33035
33036
|
),
|
|
33036
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33037
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectContent, { children: timeSlots.length === 0 ? (
|
|
33037
33038
|
// Deliberately NOT a `SelectItem` — there is nothing here
|
|
33038
33039
|
// to select, and a selectable row would put a bogus value
|
|
33039
33040
|
// in the form. It replaces a popup that opened blank; the
|
|
33040
33041
|
// Date field carries the same sentence for whoever never
|
|
33041
33042
|
// opens this one.
|
|
33042
33043
|
/* @__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 })
|
|
33043
|
-
) : timeSlots.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33044
|
+
) : timeSlots.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
33044
33045
|
] })
|
|
33045
33046
|
)
|
|
33046
33047
|
}
|
|
@@ -33054,7 +33055,7 @@ function ScheduleTimingFields({
|
|
|
33054
33055
|
name: "timeReference",
|
|
33055
33056
|
control,
|
|
33056
33057
|
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33057
|
-
|
|
33058
|
+
_chunk243TS7YLcjs.Select,
|
|
33058
33059
|
{
|
|
33059
33060
|
value: field.value,
|
|
33060
33061
|
onValueChange: (value) => {
|
|
@@ -33063,8 +33064,8 @@ function ScheduleTimingFields({
|
|
|
33063
33064
|
},
|
|
33064
33065
|
disabled: fieldsDisabled,
|
|
33065
33066
|
children: [
|
|
33066
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33067
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33067
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectTrigger, { className: "w-full", "aria-label": "Timezone", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectValue, {}) }),
|
|
33068
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectContent, { children: SCHEDULE_TIME_REFERENCE_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
33068
33069
|
]
|
|
33069
33070
|
}
|
|
33070
33071
|
)
|
|
@@ -33124,7 +33125,7 @@ function ScheduleTimingFields({
|
|
|
33124
33125
|
name: "repeatUnit",
|
|
33125
33126
|
control,
|
|
33126
33127
|
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33127
|
-
|
|
33128
|
+
_chunk243TS7YLcjs.Select,
|
|
33128
33129
|
{
|
|
33129
33130
|
value: field.value,
|
|
33130
33131
|
onValueChange: (value) => {
|
|
@@ -33137,8 +33138,8 @@ function ScheduleTimingFields({
|
|
|
33137
33138
|
},
|
|
33138
33139
|
disabled: fieldsDisabled || !repeatEnabled,
|
|
33139
33140
|
children: [
|
|
33140
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33141
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33141
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectValue, {}) }),
|
|
33142
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectContent, { children: DURATION_UNIT_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
33142
33143
|
]
|
|
33143
33144
|
}
|
|
33144
33145
|
)
|
|
@@ -33157,7 +33158,7 @@ function ScheduleFormFields({
|
|
|
33157
33158
|
disabled = false,
|
|
33158
33159
|
renderScriptSearch,
|
|
33159
33160
|
timeReferenceGate = "off",
|
|
33160
|
-
platforms =
|
|
33161
|
+
platforms = _chunkJ6C7F63Pcjs.OS_PLATFORMS,
|
|
33161
33162
|
comingSoonPlatforms = [],
|
|
33162
33163
|
getTimeSlots,
|
|
33163
33164
|
nameLayout = "stacked",
|
|
@@ -33170,7 +33171,7 @@ function ScheduleFormFields({
|
|
|
33170
33171
|
addScripts = true
|
|
33171
33172
|
}) {
|
|
33172
33173
|
const { control, formState, getValues, setValue } = _reacthookform.useFormContext.call(void 0, );
|
|
33173
|
-
const isMdUp =
|
|
33174
|
+
const isMdUp = _chunkMG3HJIGGcjs.useContentMdUp.call(void 0, );
|
|
33174
33175
|
const supportedPlatforms = _reacthookform.useWatch.call(void 0, { control, name: "supportedPlatforms" });
|
|
33175
33176
|
const togglePlatform = _react.useCallback.call(void 0,
|
|
33176
33177
|
(platform) => {
|
|
@@ -33227,7 +33228,7 @@ function ScheduleFormFields({
|
|
|
33227
33228
|
platform.id
|
|
33228
33229
|
);
|
|
33229
33230
|
}) }),
|
|
33230
|
-
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,
|
|
33231
|
+
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, _chunk243TS7YLcjs.TruncateText, { variant: "h6", className: "text-ods-error", children: _nullishCoalesce(formState.errors.supportedPlatforms.message, () => ( "")) }) })
|
|
33231
33232
|
]
|
|
33232
33233
|
}
|
|
33233
33234
|
);
|
|
@@ -33303,7 +33304,7 @@ function ScheduleFormFields({
|
|
|
33303
33304
|
// src/components/features/scripts/schedule-form/schedule-script-search-field.tsx
|
|
33304
33305
|
|
|
33305
33306
|
function ScriptPlatformIcons({ platforms }) {
|
|
33306
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex shrink-0 items-center gap-0.5", children:
|
|
33307
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex shrink-0 items-center gap-0.5", children: _chunkJ6C7F63Pcjs.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)) });
|
|
33307
33308
|
}
|
|
33308
33309
|
function ScheduleScriptSearchField({
|
|
33309
33310
|
scriptId,
|
|
@@ -33329,7 +33330,7 @@ function ScheduleScriptSearchField({
|
|
|
33329
33330
|
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: [
|
|
33330
33331
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD47ZGOUcjs.Label, { className: "text-h4", children: "Select Script" }),
|
|
33331
33332
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33332
|
-
|
|
33333
|
+
_chunk243TS7YLcjs.Autocomplete,
|
|
33333
33334
|
{
|
|
33334
33335
|
options,
|
|
33335
33336
|
value: scriptId || null,
|
|
@@ -33344,7 +33345,7 @@ function ScheduleScriptSearchField({
|
|
|
33344
33345
|
error,
|
|
33345
33346
|
invalid,
|
|
33346
33347
|
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: [
|
|
33347
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33348
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { className: isSelected ? "text-ods-accent" : void 0, children: option.label }) }),
|
|
33348
33349
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScriptPlatformIcons, { platforms: _nullishCoalesce(_optionalChain([scripts, 'access', _743 => _743.find, 'call', _744 => _744((s) => s.id === option.value), 'optionalAccess', _745 => _745.supportedPlatforms]), () => ( [])) })
|
|
33349
33350
|
] })
|
|
33350
33351
|
}
|
|
@@ -33376,7 +33377,7 @@ function KnowledgeBaseOpenButton({ href }) {
|
|
|
33376
33377
|
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,
|
|
33377
33378
|
_chunkAHBTZ7DNcjs.Button,
|
|
33378
33379
|
{
|
|
33379
|
-
onClick: loading ? void 0 :
|
|
33380
|
+
onClick: loading ? void 0 : _chunkJ6C7F63Pcjs.openInNewTab.call(void 0, href),
|
|
33380
33381
|
disabled: loading,
|
|
33381
33382
|
variant: "outline",
|
|
33382
33383
|
size: "icon",
|
|
@@ -33395,10 +33396,10 @@ function KnowledgeBaseNameCell({ item }) {
|
|
|
33395
33396
|
/* @__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" }) }),
|
|
33396
33397
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
33397
33398
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
33398
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33399
|
-
tagStatus && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33399
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { children: item.name }) }),
|
|
33400
|
+
tagStatus && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { variant: KNOWLEDGE_BASE_STATUS_VARIANT[tagStatus], label: tagStatus, className: "shrink-0" })
|
|
33400
33401
|
] }),
|
|
33401
|
-
item.type === "ARTICLE" && (item.summary || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33402
|
+
item.type === "ARTICLE" && (item.summary || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(item.summary, () => ( "")) })
|
|
33402
33403
|
] })
|
|
33403
33404
|
] });
|
|
33404
33405
|
}
|
|
@@ -33413,8 +33414,8 @@ function KnowledgeBaseDateCell({ item, mode }) {
|
|
|
33413
33414
|
const ts = mode === "archive" ? _nullishCoalesce(item.updatedAt, () => ( item.createdAt)) : item.createdAt;
|
|
33414
33415
|
if (!ts) return null;
|
|
33415
33416
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col whitespace-nowrap", children: [
|
|
33416
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-primary text-h4", children:
|
|
33417
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-heading-5 text-ods-text-secondary", children:
|
|
33417
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-primary text-h4", children: _chunkNZSWROGMcjs.formatDate.call(void 0, ts) }),
|
|
33418
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-heading-5 text-ods-text-secondary", children: _chunkNZSWROGMcjs.formatTime.call(void 0, ts) })
|
|
33418
33419
|
] });
|
|
33419
33420
|
}
|
|
33420
33421
|
function getKnowledgeBaseOpenColumn(getHref) {
|
|
@@ -33520,7 +33521,7 @@ function KnowledgeBaseArticleView({
|
|
|
33520
33521
|
className = "px-[var(--spacing-system-l)] pb-[var(--spacing-system-l)]"
|
|
33521
33522
|
}) {
|
|
33522
33523
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33523
|
-
|
|
33524
|
+
_chunk243TS7YLcjs.PageLayout,
|
|
33524
33525
|
{
|
|
33525
33526
|
title,
|
|
33526
33527
|
backButton: onBack ? { label: "Back", onClick: onBack } : void 0,
|
|
@@ -33529,11 +33530,11 @@ function KnowledgeBaseArticleView({
|
|
|
33529
33530
|
menuActions,
|
|
33530
33531
|
className,
|
|
33531
33532
|
children: [
|
|
33532
|
-
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,
|
|
33533
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33533
|
+
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, _chunkU2MHQBL4cjs.Tag, { label: tag.label, variant: "outline", className: "max-w-full" }, tag.id)) }),
|
|
33534
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7Y6M4FW4cjs.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: [
|
|
33534
33535
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
33535
|
-
author.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33536
|
-
|
|
33536
|
+
author.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZZO3FGPMcjs.DeletedUserAvatar, { size: "md" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33537
|
+
_chunkU2MHQBL4cjs.SquareAvatar,
|
|
33537
33538
|
{
|
|
33538
33539
|
src: author.imageUrl,
|
|
33539
33540
|
fallback: _nullishCoalesce(author.name, () => ( "A")),
|
|
@@ -33543,12 +33544,12 @@ function KnowledgeBaseArticleView({
|
|
|
33543
33544
|
}
|
|
33544
33545
|
),
|
|
33545
33546
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
33546
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33547
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { className: author.deleted ? "text-ods-error" : void 0, children: _nullishCoalesce(author.name, () => ( "Unknown")) }),
|
|
33547
33548
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Author" })
|
|
33548
33549
|
] })
|
|
33549
33550
|
] }),
|
|
33550
33551
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 min-w-0 flex-col justify-center", children: [
|
|
33551
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33552
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { children: updatedLabel }),
|
|
33552
33553
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Updated" })
|
|
33553
33554
|
] }),
|
|
33554
33555
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -33559,7 +33560,7 @@ function KnowledgeBaseArticleView({
|
|
|
33559
33560
|
}
|
|
33560
33561
|
),
|
|
33561
33562
|
/* @__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: [
|
|
33562
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33563
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { variant: KNOWLEDGE_BASE_STATUS_VARIANT[status], label: status }),
|
|
33563
33564
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Status" })
|
|
33564
33565
|
] })
|
|
33565
33566
|
] }) }),
|
|
@@ -33694,7 +33695,7 @@ function ConversationCard({
|
|
|
33694
33695
|
className,
|
|
33695
33696
|
loading: loadingProp
|
|
33696
33697
|
}) {
|
|
33697
|
-
const tint =
|
|
33698
|
+
const tint = _chunkOQDPZOGCcjs.useAgentTint.call(void 0, agent);
|
|
33698
33699
|
const requestId = _react.useId.call(void 0, );
|
|
33699
33700
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
33700
33701
|
if (loading) {
|
|
@@ -33727,7 +33728,7 @@ function ConversationCard({
|
|
|
33727
33728
|
style: tint,
|
|
33728
33729
|
onClick: selection && ((event) => {
|
|
33729
33730
|
if (event.button !== 0 || _optionalChain([window, 'access', _748 => _748.getSelection, 'call', _749 => _749(), 'optionalAccess', _750 => _750.toString, 'call', _751 => _751()])) return;
|
|
33730
|
-
if (!
|
|
33731
|
+
if (!_chunkJ6C7F63Pcjs.isOwnClick.call(void 0, event.target, event.currentTarget, { controls: true })) return;
|
|
33731
33732
|
selection.onToggle();
|
|
33732
33733
|
}),
|
|
33733
33734
|
children: [
|
|
@@ -33750,7 +33751,7 @@ function ConversationCard({
|
|
|
33750
33751
|
)
|
|
33751
33752
|
),
|
|
33752
33753
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33753
|
-
|
|
33754
|
+
_chunkJ6C7F63Pcjs.ChatTurn,
|
|
33754
33755
|
{
|
|
33755
33756
|
avatar: requester.avatar,
|
|
33756
33757
|
name: requester.name,
|
|
@@ -33771,7 +33772,7 @@ function ConversationCard({
|
|
|
33771
33772
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: CONTEXT_TEXT_CLASS, style: partLinesStyle(_optionalChain([lines, 'optionalAccess', _752 => _752.context])), children: context.text })
|
|
33772
33773
|
] }),
|
|
33773
33774
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33774
|
-
|
|
33775
|
+
_chunkJ6C7F63Pcjs.ChatTurn,
|
|
33775
33776
|
{
|
|
33776
33777
|
avatar: responder.avatar,
|
|
33777
33778
|
name: responder.name,
|
|
@@ -33787,7 +33788,7 @@ function ConversationCard({
|
|
|
33787
33788
|
),
|
|
33788
33789
|
footerLabel && footerValue && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, FOOTER_ROW_CLASS, "text-ods-text-secondary text-h6"), children: [
|
|
33789
33790
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: footerLabel }),
|
|
33790
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33791
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { as: "span", label: footerValue, variant: footerTone === "attention" ? "warning" : "badge" })
|
|
33791
33792
|
] })
|
|
33792
33793
|
]
|
|
33793
33794
|
}
|
|
@@ -33816,7 +33817,7 @@ function ConversationCardSkeleton({
|
|
|
33816
33817
|
{
|
|
33817
33818
|
selection: selection && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.InertWhileLoading, { className: "contents", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectionToggle, { pressed: selection.pressed }) }),
|
|
33818
33819
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33819
|
-
|
|
33820
|
+
_chunkJ6C7F63Pcjs.ChatTurn,
|
|
33820
33821
|
{
|
|
33821
33822
|
loading: true,
|
|
33822
33823
|
name: "",
|
|
@@ -33840,7 +33841,7 @@ function ConversationCardSkeleton({
|
|
|
33840
33841
|
] })
|
|
33841
33842
|
] }),
|
|
33842
33843
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33843
|
-
|
|
33844
|
+
_chunkJ6C7F63Pcjs.ChatTurn,
|
|
33844
33845
|
{
|
|
33845
33846
|
loading: true,
|
|
33846
33847
|
name: "",
|
|
@@ -33863,7 +33864,7 @@ function ConversationCardSkeleton({
|
|
|
33863
33864
|
),
|
|
33864
33865
|
footer && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, FOOTER_ROW_CLASS, "text-ods-text-secondary text-h6"), children: [
|
|
33865
33866
|
footerLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: footerLabel }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { lines: 1, type: "h6", className: "w-1/4" }),
|
|
33866
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33867
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { as: "span", label: "\xA0", variant: "badge", className: "invisible" })
|
|
33867
33868
|
] })
|
|
33868
33869
|
] });
|
|
33869
33870
|
}
|
|
@@ -33921,7 +33922,7 @@ function Highlights({ items, className }) {
|
|
|
33921
33922
|
if (items.length === 0) return null;
|
|
33922
33923
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "grid grid-cols-1 gap-2", className), children: items.slice(0, HIGHLIGHTS_LIMIT).map((text) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "li", { "data-loading-item": true, className: HIGHLIGHT_ROW_CLASS, children: [
|
|
33923
33924
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { size: HIGHLIGHT_ICON_PX, className: "shrink-0 text-ods-flamingo-cyan" }),
|
|
33924
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33925
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { variant: "h6", triggerClassName: "flex-1", children: text })
|
|
33925
33926
|
] }, text)) });
|
|
33926
33927
|
}
|
|
33927
33928
|
function Example({
|
|
@@ -33957,7 +33958,7 @@ function Example({
|
|
|
33957
33958
|
mark(_nullishCoalesce(_optionalChain([requester, 'optionalAccess', _756 => _756.mark]), () => ( requesterMark))),
|
|
33958
33959
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
33959
33960
|
who(_nullishCoalesce(_optionalChain([requester, 'optionalAccess', _757 => _757.name]), () => ( labels.requester)), _nullishCoalesce(_optionalChain([requester, 'optionalAccess', _758 => _758.note]), () => ( labels.requesterNote))),
|
|
33960
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33961
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { lines: 2, variant: "h4", className: "min-h-[2lh]", children: `\u201C${example.request}\u201D` })
|
|
33961
33962
|
] })
|
|
33962
33963
|
] }),
|
|
33963
33964
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 gap-2.5 border-t border-ods-border pt-3", children: [
|
|
@@ -33966,7 +33967,7 @@ function Example({
|
|
|
33966
33967
|
who(_nullishCoalesce(_optionalChain([responder, 'optionalAccess', _760 => _760.name]), () => ( labels.responder)), _nullishCoalesce(_optionalChain([responder, 'optionalAccess', _761 => _761.note]), () => ( labels.responderNote))),
|
|
33967
33968
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-start gap-2", children: [
|
|
33968
33969
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { size: 16, className: "mt-0.5 shrink-0 text-ods-flamingo-cyan" }),
|
|
33969
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33970
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { lines: 2, variant: "h6", tone: "secondary", className: "min-h-[2lh]", triggerClassName: "flex-1", children: example.outcome })
|
|
33970
33971
|
] })
|
|
33971
33972
|
] })
|
|
33972
33973
|
] })
|
|
@@ -33976,7 +33977,7 @@ function Example({
|
|
|
33976
33977
|
}
|
|
33977
33978
|
function ExampleSkeleton({ className }) {
|
|
33978
33979
|
const turn = (first) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex min-w-0 gap-2.5", !first && "border-t border-ods-border pt-3"), children: [
|
|
33979
|
-
first ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33980
|
+
first ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.SquareAvatar, { loading: true, variant: "round", sizePx: EXAMPLE_MARK_PX, className: "shrink-0" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZW25QUJKcjs.AgentAvatar, { loading: true, agent: "", size: EXAMPLE_MARK_PX }),
|
|
33980
33981
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
33981
33982
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-28" }),
|
|
33982
33983
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-h-[2lh] text-h4", children: [
|
|
@@ -34079,7 +34080,7 @@ function CapabilityExplorer({
|
|
|
34079
34080
|
skeletonCount,
|
|
34080
34081
|
className
|
|
34081
34082
|
}) {
|
|
34082
|
-
const wide =
|
|
34083
|
+
const wide = _chunkMG3HJIGGcjs.useContentLgUp.call(void 0, );
|
|
34083
34084
|
const listRef = _react.useRef.call(void 0, null);
|
|
34084
34085
|
const inScope = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
34085
34086
|
if (inScope || loading) {
|
|
@@ -34102,16 +34103,16 @@ function CapabilityExplorer({
|
|
|
34102
34103
|
readItems: true,
|
|
34103
34104
|
renderItem: (item) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "article", { className: _chunk7JWFMAQBcjs.cn.call(void 0, CARD_CLASS2, CARD_HEIGHT_CLASS), children: [
|
|
34104
34105
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CARD_HEAD_ROW_CLASS, children: [
|
|
34105
|
-
item.iconName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, JOB_ICON_TILE_CLASS, "text-ods-flamingo-cyan"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34106
|
+
item.iconName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, JOB_ICON_TILE_CLASS, "text-ods-flamingo-cyan"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7Y6M4FW4cjs.EntityIcon, { icon: { name: item.iconName }, size: 18 }) }),
|
|
34106
34107
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
34107
34108
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "h3", { className: "flex min-w-0 items-center gap-2 text-ods-text-primary text-h4", children: [
|
|
34108
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34109
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { as: "span", variant: "h4", triggerClassName: "flex-1", children: item.title }),
|
|
34109
34110
|
item.badge
|
|
34110
34111
|
] }),
|
|
34111
|
-
item.caption && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34112
|
+
item.caption && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { variant: "h6", tone: "secondary", children: item.caption })
|
|
34112
34113
|
] })
|
|
34113
34114
|
] }),
|
|
34114
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34115
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { lines: 3, variant: "h6", tone: "secondary", className: "min-h-[3lh]", children: item.intro }),
|
|
34115
34116
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0 overflow-hidden rounded-lg border border-ods-border", children: renderScreen(item, { compact: true }) }),
|
|
34116
34117
|
item.example && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34117
34118
|
Example,
|
|
@@ -34182,7 +34183,7 @@ function CapabilityExplorer({
|
|
|
34182
34183
|
"span",
|
|
34183
34184
|
{
|
|
34184
34185
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, JOB_ICON_TILE_CLASS, selected ? "text-ods-flamingo-cyan" : "text-ods-text-secondary"),
|
|
34185
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34186
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7Y6M4FW4cjs.EntityIcon, { icon: { name: item.iconName }, size: 18 })
|
|
34186
34187
|
}
|
|
34187
34188
|
),
|
|
34188
34189
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "min-w-0 flex-1", children: [
|
|
@@ -34228,8 +34229,8 @@ function CapabilityExplorer({
|
|
|
34228
34229
|
),
|
|
34229
34230
|
children: [
|
|
34230
34231
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: PANEL_INTRO_CLASS, children: [
|
|
34231
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34232
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34232
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { lines: 2, variant: "h2", className: "mb-2", children: active.title }),
|
|
34233
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.TruncateText, { lines: 3, variant: "h4", tone: "secondary", className: "min-h-[3lh]", children: active.intro }),
|
|
34233
34234
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Highlights, { items: _nullishCoalesce(active.highlights, () => ( [])), className: "mt-auto" })
|
|
34234
34235
|
] }),
|
|
34235
34236
|
active.example && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|