@flamingo-stack/openframe-frontend-core 0.0.738 → 0.0.740
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/build/export-map.json +1 -1
- package/dist/{chunk-7GETNFZ5.cjs → chunk-2Y5Y4FLM.cjs} +38 -38
- package/dist/{chunk-2UZS3ZH7.cjs → chunk-3ZIQOYNX.cjs} +5 -5
- package/dist/{chunk-KQ4IKALJ.cjs → chunk-4RLGLB45.cjs} +35 -35
- package/dist/{chunk-5BKAUXLR.cjs → chunk-5SVOGLNK.cjs} +4 -4
- package/dist/{chunk-XGHZIYQN.cjs → chunk-7UIQPMBJ.cjs} +19 -19
- package/dist/{chunk-FTTLBMHU.cjs → chunk-7ZFCR7UY.cjs} +2 -2
- package/dist/{chunk-EG545WGV.cjs → chunk-B3XBJCOD.cjs} +9 -9
- package/dist/{chunk-XMNLPQ75.cjs → chunk-BDA5F6RM.cjs} +12 -12
- package/dist/{chunk-BRKTN6UR.cjs → chunk-BV5WZVOP.cjs} +199 -199
- package/dist/{chunk-4T6ETBL4.cjs → chunk-CWRVTQUO.cjs} +91 -83
- package/dist/{chunk-GQZOUVXC.cjs → chunk-D5KEWWLW.cjs} +34 -34
- package/dist/{chunk-7LTG6CJ3.cjs → chunk-DSVNFRY5.cjs} +35 -35
- package/dist/{chunk-2SBHPHLS.cjs → chunk-EKGL5K5K.cjs} +4 -4
- package/dist/{chunk-N2CISBJJ.cjs → chunk-GABDE3FM.cjs} +10 -10
- package/dist/{chunk-MYBTNOS6.cjs → chunk-GSWQZX23.cjs} +2 -2
- package/dist/{chunk-JZNESLJX.cjs → chunk-HF7Z2E4W.cjs} +2 -2
- package/dist/chunk-HOTM4UM6.cjs +84 -0
- package/dist/{chunk-HNYLTEIS.cjs → chunk-HYBMADYO.cjs} +13 -13
- package/dist/{chunk-EAY6ZUES.cjs → chunk-I5MSCD57.cjs} +2 -2
- package/dist/{chunk-3BBOAMWJ.cjs → chunk-KLI4OSRA.cjs} +2 -2
- package/dist/{chunk-R36NZTUJ.cjs → chunk-LLAC2UZ3.cjs} +24 -24
- package/dist/{chunk-FG7HTGT3.cjs → chunk-O67V3HJR.cjs} +14 -14
- package/dist/{chunk-UMO55S55.cjs → chunk-PQ2M7P2U.cjs} +5 -5
- package/dist/{chunk-MLKL2YVE.cjs → chunk-SFY4UYPY.cjs} +44 -44
- package/dist/{chunk-66R4NGGU.cjs → chunk-SWR22DOZ.cjs} +176 -88
- package/dist/{chunk-MTNNYSP3.cjs → chunk-UW3YXDC4.cjs} +20 -20
- package/dist/{chunk-U5BRSRXA.cjs → chunk-VC4IV3AY.cjs} +644 -621
- package/dist/{chunk-4YQNJJWM.cjs → chunk-VU4CKUJW.cjs} +90 -90
- package/dist/{chunk-GAF4L3JW.cjs → chunk-WBANGORJ.cjs} +3 -3
- package/dist/{chunk-LY5VOKV7.cjs → chunk-YRE3O65E.cjs} +12 -12
- package/dist/{chunk-7F3V45AH.cjs → chunk-YXKB5WRE.cjs} +66 -75
- package/dist/{chunk-N5NDPULP.cjs → chunk-ZLTCQKTD.cjs} +6 -6
- package/dist/{cloud-tenants-FTQGWXHS.cjs → cloud-tenants-PVXDI5MU.cjs} +15 -15
- package/dist/components/case-studies/index.cjs +27 -27
- package/dist/components/chat/index.cjs +11 -11
- package/dist/components/contact/index.cjs +16 -16
- package/dist/components/docs/index.cjs +19 -19
- package/dist/components/embeds/index.cjs +16 -16
- package/dist/components/faq/index.cjs +17 -17
- package/dist/components/features/index.cjs +15 -15
- package/dist/components/features/walkthrough-video.d.ts +3 -0
- package/dist/components/features/walkthrough-video.d.ts.map +1 -1
- package/dist/components/features/walkthrough-video.js +36 -13
- package/dist/components/help-center-pages/index.cjs +118 -118
- package/dist/components/index.cjs +86 -80
- package/dist/components/meeting-scheduler/index.cjs +57 -57
- package/dist/components/navigation/index.cjs +18 -18
- package/dist/components/onboarding-guides/index.cjs +18 -18
- package/dist/components/product-demo/index.cjs +8 -8
- package/dist/components/related-content/index.cjs +9 -9
- package/dist/components/shared/legal-document/index.d.ts +2 -1
- package/dist/components/shared/legal-document/index.d.ts.map +1 -1
- package/dist/components/shared/legal-document/index.js +10 -2
- package/dist/components/shared/legal-document/legal-document-page.d.ts +35 -23
- package/dist/components/shared/legal-document/legal-document-page.d.ts.map +1 -1
- package/dist/components/shared/legal-document/legal-document-page.js +27 -10
- package/dist/components/shared/legal-document/use-legal-docs.d.ts +7 -3
- package/dist/components/shared/legal-document/use-legal-docs.d.ts.map +1 -1
- package/dist/components/shared/legal-document/use-legal-docs.js +7 -0
- package/dist/components/shared/legal-document/use-legal-documents.d.ts +31 -0
- package/dist/components/shared/legal-document/use-legal-documents.d.ts.map +1 -0
- package/dist/components/shared/legal-document/use-legal-documents.js +67 -0
- package/dist/components/tickets/index.cjs +21 -21
- package/dist/components/ui/index.cjs +15 -15
- package/dist/{devices-MPI5HUQS.cjs → devices-TWEA7XOR.cjs} +16 -16
- package/dist/embed-shims/index.cjs +2 -2
- package/dist/embed-shims/next-image.cjs +2 -2
- package/dist/embed-shims/next-image.d.ts.map +1 -1
- package/dist/embed-shims/next-image.js +6 -2
- package/dist/{embeddable-chat-7WLUDBGK.cjs → embeddable-chat-6JKKFQEB.cjs} +82 -82
- package/dist/hooks/index.cjs +3 -3
- package/dist/index.cjs +26 -21
- package/dist/{knowledge-BS663XXL.cjs → knowledge-4GQDBNQB.cjs} +16 -16
- package/dist/{logs-KS2A2VN5.cjs → logs-EVU6GJHZ.cjs} +23 -23
- package/dist/{policies-H3OK6H4Q.cjs → policies-OZUEA5YS.cjs} +19 -19
- package/dist/{remote-session-EHKXU4HI.cjs → remote-session-DNFZ5OLY.cjs} +8 -8
- package/dist/{software-update-HMMMWIL3.cjs → software-update-BLIVYOY2.cjs} +19 -19
- package/dist/{tickets-board-3YJKOOZE.cjs → tickets-board-CKZRB6YV.cjs} +9 -9
- package/dist/utils/index.cjs +8 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/legal-documents.d.ts +18 -0
- package/dist/utils/legal-documents.d.ts.map +1 -0
- package/dist/utils/legal-documents.js +8 -0
- package/package.json +1 -1
- package/src/components/features/walkthrough-video.tsx +59 -18
- package/src/components/shared/legal-document/index.ts +8 -0
- package/src/components/shared/legal-document/legal-document-page.tsx +83 -44
- package/src/components/shared/legal-document/use-legal-docs.ts +18 -3
- package/src/components/shared/legal-document/use-legal-documents.ts +113 -0
- package/src/components/ui/dropdown-button.tsx +1 -1
- package/src/embed-shims/next-image.tsx +15 -4
- package/src/utils/index.ts +1 -0
- package/src/utils/legal-documents.ts +21 -0
- package/dist/chunk-UR4K2NSL.cjs +0 -69
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkO67V3HJRcjs = require('./chunk-O67V3HJR.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -35,7 +35,7 @@ var _chunk3HPB4H4Ccjs = require('./chunk-3HPB4H4C.cjs');
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunkDSVNFRY5cjs = require('./chunk-DSVNFRY5.cjs');
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
var _chunkDEY6XXGOcjs = require('./chunk-DEY6XXGO.cjs');
|
|
@@ -62,7 +62,7 @@ var _chunkAAFW4STCcjs = require('./chunk-AAFW4STC.cjs');
|
|
|
62
62
|
var _chunkA6P6DHEZcjs = require('./chunk-A6P6DHEZ.cjs');
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
var
|
|
65
|
+
var _chunkKLI4OSRAcjs = require('./chunk-KLI4OSRA.cjs');
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -107,7 +107,7 @@ var _chunkYUMFVQINcjs = require('./chunk-YUMFVQIN.cjs');
|
|
|
107
107
|
|
|
108
108
|
|
|
109
109
|
|
|
110
|
-
var
|
|
110
|
+
var _chunkCWRVTQUOcjs = require('./chunk-CWRVTQUO.cjs');
|
|
111
111
|
|
|
112
112
|
|
|
113
113
|
|
|
@@ -130,7 +130,7 @@ var _chunk4T6ETBL4cjs = require('./chunk-4T6ETBL4.cjs');
|
|
|
130
130
|
|
|
131
131
|
|
|
132
132
|
|
|
133
|
-
var
|
|
133
|
+
var _chunkBV5WZVOPcjs = require('./chunk-BV5WZVOP.cjs');
|
|
134
134
|
|
|
135
135
|
|
|
136
136
|
|
|
@@ -142,7 +142,7 @@ var _chunkBRKTN6URcjs = require('./chunk-BRKTN6UR.cjs');
|
|
|
142
142
|
|
|
143
143
|
|
|
144
144
|
|
|
145
|
-
var
|
|
145
|
+
var _chunkGABDE3FMcjs = require('./chunk-GABDE3FM.cjs');
|
|
146
146
|
|
|
147
147
|
|
|
148
148
|
|
|
@@ -154,7 +154,7 @@ var _chunkN2CISBJJcjs = require('./chunk-N2CISBJJ.cjs');
|
|
|
154
154
|
|
|
155
155
|
|
|
156
156
|
|
|
157
|
-
var
|
|
157
|
+
var _chunkPQ2M7P2Ucjs = require('./chunk-PQ2M7P2U.cjs');
|
|
158
158
|
|
|
159
159
|
|
|
160
160
|
|
|
@@ -463,8 +463,7 @@ var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
|
463
463
|
|
|
464
464
|
|
|
465
465
|
|
|
466
|
-
|
|
467
|
-
var _chunk7F3V45AHcjs = require('./chunk-7F3V45AH.cjs');
|
|
466
|
+
var _chunkYXKB5WREcjs = require('./chunk-YXKB5WRE.cjs');
|
|
468
467
|
|
|
469
468
|
|
|
470
469
|
|
|
@@ -479,7 +478,7 @@ var _chunkIFS4AH77cjs = require('./chunk-IFS4AH77.cjs');
|
|
|
479
478
|
var _chunk63N4FN5Vcjs = require('./chunk-63N4FN5V.cjs');
|
|
480
479
|
|
|
481
480
|
|
|
482
|
-
var
|
|
481
|
+
var _chunkGSWQZX23cjs = require('./chunk-GSWQZX23.cjs');
|
|
483
482
|
|
|
484
483
|
|
|
485
484
|
|
|
@@ -491,13 +490,13 @@ var _chunkMYBTNOS6cjs = require('./chunk-MYBTNOS6.cjs');
|
|
|
491
490
|
|
|
492
491
|
|
|
493
492
|
|
|
494
|
-
var
|
|
493
|
+
var _chunk7ZFCR7UYcjs = require('./chunk-7ZFCR7UY.cjs');
|
|
495
494
|
|
|
496
495
|
|
|
497
496
|
var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
498
497
|
|
|
499
498
|
|
|
500
|
-
var
|
|
499
|
+
var _chunkI5MSCD57cjs = require('./chunk-I5MSCD57.cjs');
|
|
501
500
|
|
|
502
501
|
|
|
503
502
|
|
|
@@ -522,7 +521,8 @@ var _chunkVOX4E6AXcjs = require('./chunk-VOX4E6AX.cjs');
|
|
|
522
521
|
|
|
523
522
|
|
|
524
523
|
|
|
525
|
-
|
|
524
|
+
|
|
525
|
+
var _chunkHOTM4UM6cjs = require('./chunk-HOTM4UM6.cjs');
|
|
526
526
|
|
|
527
527
|
|
|
528
528
|
|
|
@@ -636,7 +636,7 @@ function ThemeProvider({ children, ...overrides }) {
|
|
|
636
636
|
var useTheme = _nextthemes.useTheme;
|
|
637
637
|
function useThemeToggle() {
|
|
638
638
|
const { resolvedTheme, theme, setTheme } = useTheme();
|
|
639
|
-
const mounted =
|
|
639
|
+
const mounted = _chunkBV5WZVOPcjs.useIsHydrated.call(void 0, );
|
|
640
640
|
const active = mounted ? resolvedTheme === "light" || theme === "light" ? "light" : "dark" : DEFAULT_THEME;
|
|
641
641
|
const setOdsTheme = _react.useCallback.call(void 0, (next) => setTheme(next), [setTheme]);
|
|
642
642
|
const toggle = _react.useCallback.call(void 0, () => setTheme(active === "dark" ? "light" : "dark"), [active, setTheme]);
|
|
@@ -844,7 +844,7 @@ function TimezoneSelect({
|
|
|
844
844
|
}) {
|
|
845
845
|
const options = _react.useMemo.call(void 0, () => timezoneOptions(value), [value]);
|
|
846
846
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
847
|
-
|
|
847
|
+
_chunkDSVNFRY5cjs.Autocomplete,
|
|
848
848
|
{
|
|
849
849
|
className,
|
|
850
850
|
value: value || null,
|
|
@@ -1024,7 +1024,7 @@ var _reactpopover = require('@radix-ui/react-popover'); var Popover = _interopRe
|
|
|
1024
1024
|
|
|
1025
1025
|
var _reactdaypicker = require('react-day-picker');
|
|
1026
1026
|
|
|
1027
|
-
var defaultFormatDate = (date) =>
|
|
1027
|
+
var defaultFormatDate = (date) => _chunk7ZFCR7UYcjs.formatDateWithTimezone.call(void 0, date, _chunk7ZFCR7UYcjs.VIEWER_TIMEZONE, "numeric");
|
|
1028
1028
|
var formatDateRange = (range, formatFn) => {
|
|
1029
1029
|
if (!_optionalChain([range, 'optionalAccess', _5 => _5.from])) return "";
|
|
1030
1030
|
if (!range.to) return formatFn(range.from);
|
|
@@ -1225,7 +1225,7 @@ function DatePickerCalendar({
|
|
|
1225
1225
|
};
|
|
1226
1226
|
const handlePreviousMonth = () => shiftMonth(-1);
|
|
1227
1227
|
const handleNextMonth = () => shiftMonth(1);
|
|
1228
|
-
const formatMonthYear = (date) =>
|
|
1228
|
+
const formatMonthYear = (date) => _chunk7ZFCR7UYcjs.formatDateWithTimezone.call(void 0, date, _chunk7ZFCR7UYcjs.VIEWER_TIMEZONE, "monthYear");
|
|
1229
1229
|
const getSecondMonth = (date) => {
|
|
1230
1230
|
const next = new Date(date);
|
|
1231
1231
|
next.setMonth(next.getMonth() + 1);
|
|
@@ -1662,20 +1662,20 @@ function DatePickerInput(props) {
|
|
|
1662
1662
|
) })
|
|
1663
1663
|
] }),
|
|
1664
1664
|
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1", children: [
|
|
1665
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1666
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1667
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1665
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDSVNFRY5cjs.Select, { value: hour, onValueChange: handleHourChange, disabled, children: [
|
|
1666
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectTrigger, { className: _chunk3ATAYP36cjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectValue, { placeholder: "HH" }) }),
|
|
1667
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectContent, { children: hourOptions.map((h) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectItem, { value: h, children: h }, h)) })
|
|
1668
1668
|
] }),
|
|
1669
1669
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h4", children: ":" }),
|
|
1670
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1671
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1672
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1670
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDSVNFRY5cjs.Select, { value: minute, onValueChange: handleMinuteChange, disabled, children: [
|
|
1671
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectTrigger, { className: _chunk3ATAYP36cjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectValue, { placeholder: "MM" }) }),
|
|
1672
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectContent, { children: minuteOptions.map((m) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectItem, { value: m, children: m }, m)) })
|
|
1673
1673
|
] }),
|
|
1674
|
-
!use24HourFormat && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1675
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1676
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1677
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1678
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1674
|
+
!use24HourFormat && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDSVNFRY5cjs.Select, { value: period, onValueChange: (val) => handlePeriodChange(val), disabled, children: [
|
|
1675
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectTrigger, { className: _chunk3ATAYP36cjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectValue, { placeholder: "AM" }) }),
|
|
1676
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDSVNFRY5cjs.SelectContent, { children: [
|
|
1677
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectItem, { value: "AM", children: "AM" }),
|
|
1678
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectItem, { value: "PM", children: "PM" })
|
|
1679
1679
|
] })
|
|
1680
1680
|
] })
|
|
1681
1681
|
] })
|
|
@@ -1817,9 +1817,9 @@ function DatePickerInputSimple(props) {
|
|
|
1817
1817
|
}
|
|
1818
1818
|
) })
|
|
1819
1819
|
] }),
|
|
1820
|
-
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1821
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1822
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1820
|
+
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDSVNFRY5cjs.Select, { value: timeValue, onValueChange: handleTimeChange, disabled, children: [
|
|
1821
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectTrigger, { className: _chunk3ATAYP36cjs.cn.call(void 0, timeSelectTriggerStyles, "flex-1"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectValue, { placeholder: "Select time", children: timeDisplayLabel || "Select time" }) }),
|
|
1822
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectContent, { children: timeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
1823
1823
|
] })
|
|
1824
1824
|
] });
|
|
1825
1825
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHTRILBJDcjs.FieldWrapper, { label, error, errorSlot: "error" in props, className, children: content });
|
|
@@ -1838,14 +1838,14 @@ function DateFilterPanel({
|
|
|
1838
1838
|
className
|
|
1839
1839
|
}) {
|
|
1840
1840
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex flex-col gap-4", className), children: [
|
|
1841
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1842
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1841
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDSVNFRY5cjs.Select, { value: sort, onValueChange: (value) => onSortChange(value), children: [
|
|
1842
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.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: [
|
|
1843
1843
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ArrowUpDown, { className: "size-6 shrink-0 text-ods-text-secondary" }),
|
|
1844
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1844
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectValue, {}) })
|
|
1845
1845
|
] }) }),
|
|
1846
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1847
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1848
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1846
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDSVNFRY5cjs.SelectContent, { children: [
|
|
1847
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectItem, { value: "asc", children: ascLabel }),
|
|
1848
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectItem, { value: "desc", children: descLabel })
|
|
1849
1849
|
] })
|
|
1850
1850
|
] }),
|
|
1851
1851
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2122,7 +2122,7 @@ function Value({ value, depth }) {
|
|
|
2122
2122
|
}
|
|
2123
2123
|
if (typeof value === "string") {
|
|
2124
2124
|
if (ISO_DATE.test(value)) {
|
|
2125
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: value, className: "text-ods-text-secondary", children:
|
|
2125
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: value, className: "text-ods-text-secondary", children: _chunkGABDE3FMcjs.formatRelativeTime.call(void 0, value) });
|
|
2126
2126
|
}
|
|
2127
2127
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-pre-wrap text-ods-text-primary", children: value });
|
|
2128
2128
|
}
|
|
@@ -2544,7 +2544,7 @@ function CompactAssigneeDropdown({
|
|
|
2544
2544
|
value: o.value,
|
|
2545
2545
|
label: o.label,
|
|
2546
2546
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2547
|
-
|
|
2547
|
+
_chunk7ZFCR7UYcjs.SquareAvatar,
|
|
2548
2548
|
{
|
|
2549
2549
|
src: o.imageUrl,
|
|
2550
2550
|
alt: o.label,
|
|
@@ -2578,8 +2578,8 @@ function CompactAssigneeDropdown({
|
|
|
2578
2578
|
"shrink-0 rounded-full focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-focus",
|
|
2579
2579
|
className
|
|
2580
2580
|
),
|
|
2581
|
-
children: currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2582
|
-
|
|
2581
|
+
children: currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO67V3HJRcjs.DeletedUserAvatar, { size: "sm", accessibleLabel: `Deleted user: ${currentAssignee.name || currentAssignee.id}` }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2582
|
+
_chunk7ZFCR7UYcjs.SquareAvatar,
|
|
2583
2583
|
{
|
|
2584
2584
|
src: currentAssignee.avatarSrc,
|
|
2585
2585
|
alt: currentAssignee.name,
|
|
@@ -2627,7 +2627,7 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
2627
2627
|
const opt = option;
|
|
2628
2628
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center gap-[var(--spacing-system-sf)]", children: [
|
|
2629
2629
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2630
|
-
|
|
2630
|
+
_chunk7ZFCR7UYcjs.SquareAvatar,
|
|
2631
2631
|
{
|
|
2632
2632
|
src: opt.imageUrl,
|
|
2633
2633
|
alt: opt.label,
|
|
@@ -2643,7 +2643,7 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
2643
2643
|
if (isEditing) {
|
|
2644
2644
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "min-w-0", className), children: [
|
|
2645
2645
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2646
|
-
|
|
2646
|
+
_chunkDSVNFRY5cjs.Autocomplete,
|
|
2647
2647
|
{
|
|
2648
2648
|
options,
|
|
2649
2649
|
value: _nullishCoalesce(_optionalChain([currentAssignee, 'optionalAccess', _35 => _35.id]), () => ( null)),
|
|
@@ -2655,14 +2655,14 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
2655
2655
|
loading: isLoading,
|
|
2656
2656
|
showChevron: false,
|
|
2657
2657
|
startAdornment: hasAssignee ? currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2658
|
-
|
|
2658
|
+
_chunkO67V3HJRcjs.DeletedUserAvatar,
|
|
2659
2659
|
{
|
|
2660
2660
|
size: "sm",
|
|
2661
2661
|
className: "h-6 w-6",
|
|
2662
2662
|
accessibleLabel: `Deleted user: ${currentAssignee.name || currentAssignee.id}`
|
|
2663
2663
|
}
|
|
2664
2664
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2665
|
-
|
|
2665
|
+
_chunk7ZFCR7UYcjs.SquareAvatar,
|
|
2666
2666
|
{
|
|
2667
2667
|
src: currentAssignee.avatarSrc,
|
|
2668
2668
|
alt: currentAssignee.name,
|
|
@@ -2681,13 +2681,13 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
2681
2681
|
if (hasAssignee) {
|
|
2682
2682
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", className), children: [
|
|
2683
2683
|
currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2684
|
-
|
|
2684
|
+
_chunkO67V3HJRcjs.DeletedUserAvatar,
|
|
2685
2685
|
{
|
|
2686
2686
|
size: "md",
|
|
2687
2687
|
accessibleLabel: `Deleted user: ${currentAssignee.name || currentAssignee.id}`
|
|
2688
2688
|
}
|
|
2689
2689
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2690
|
-
|
|
2690
|
+
_chunk7ZFCR7UYcjs.SquareAvatar,
|
|
2691
2691
|
{
|
|
2692
2692
|
src: currentAssignee.avatarSrc,
|
|
2693
2693
|
alt: currentAssignee.name,
|
|
@@ -2761,7 +2761,7 @@ function TextValue({ value }) {
|
|
|
2761
2761
|
}
|
|
2762
2762
|
) : onClick ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick, title: text, className: interactiveClass, children: text }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h4", title: text, children: text }),
|
|
2763
2763
|
hasImage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2764
|
-
|
|
2764
|
+
_chunk7ZFCR7UYcjs.SquareAvatar,
|
|
2765
2765
|
{
|
|
2766
2766
|
src: imageSrc,
|
|
2767
2767
|
alt: text,
|
|
@@ -2781,7 +2781,7 @@ function RowValue({ value }) {
|
|
|
2781
2781
|
}
|
|
2782
2782
|
case "status": {
|
|
2783
2783
|
const { type: _type, ...props } = value;
|
|
2784
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2784
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGABDE3FMcjs.TicketStatusTag, { ...props });
|
|
2785
2785
|
}
|
|
2786
2786
|
case "custom":
|
|
2787
2787
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: value.content });
|
|
@@ -2879,7 +2879,7 @@ function MediaTypeSelector({
|
|
|
2879
2879
|
// changed) and cost an extra render pass on every change to say what the
|
|
2880
2880
|
// prop already said.
|
|
2881
2881
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2882
|
-
|
|
2882
|
+
_chunkDSVNFRY5cjs.Select,
|
|
2883
2883
|
{
|
|
2884
2884
|
value: value || void 0,
|
|
2885
2885
|
onValueChange: (next) => {
|
|
@@ -2889,8 +2889,8 @@ function MediaTypeSelector({
|
|
|
2889
2889
|
disabled,
|
|
2890
2890
|
defaultValue: value,
|
|
2891
2891
|
children: [
|
|
2892
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2893
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2892
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectTrigger, { className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectValue, { placeholder }) }),
|
|
2893
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectContent, { children: mediaTypeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectItem, { value: option.value, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
2894
2894
|
option.icon,
|
|
2895
2895
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: option.label })
|
|
2896
2896
|
] }) }, option.value)) })
|
|
@@ -3699,7 +3699,7 @@ function TagsManager({
|
|
|
3699
3699
|
}
|
|
3700
3700
|
),
|
|
3701
3701
|
selectedTags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3702
|
-
|
|
3702
|
+
_chunk7ZFCR7UYcjs.Tag,
|
|
3703
3703
|
{
|
|
3704
3704
|
label: tag.name,
|
|
3705
3705
|
variant: "outline",
|
|
@@ -4244,10 +4244,10 @@ function useConfirm() {
|
|
|
4244
4244
|
},
|
|
4245
4245
|
[]
|
|
4246
4246
|
);
|
|
4247
|
-
const dialog = pending ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4248
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4249
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4250
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4247
|
+
const dialog = pending ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkPQ2M7P2Ucjs.Modal, { isOpen: open, onClose: () => decide(false), children: [
|
|
4248
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPQ2M7P2Ucjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPQ2M7P2Ucjs.ModalTitle, { children: pending.title }) }),
|
|
4249
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPQ2M7P2Ucjs.ModalContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: pending.body }) }),
|
|
4250
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkPQ2M7P2Ucjs.ModalFooter, { children: [
|
|
4251
4251
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { variant: "outline", onClick: () => decide(false), children: "Cancel" }),
|
|
4252
4252
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { variant: "destructive", onClick: () => decide(true), children: "Confirm" })
|
|
4253
4253
|
] })
|
|
@@ -4325,7 +4325,7 @@ function AdminFormDrawer({
|
|
|
4325
4325
|
"form",
|
|
4326
4326
|
{
|
|
4327
4327
|
id: formId,
|
|
4328
|
-
...
|
|
4328
|
+
..._chunkCWRVTQUOcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
4329
4329
|
className: "flex flex-col gap-[var(--spacing-system-lf)]",
|
|
4330
4330
|
onSubmit: (e) => {
|
|
4331
4331
|
e.preventDefault();
|
|
@@ -4426,16 +4426,16 @@ function AdminFormModal({
|
|
|
4426
4426
|
body: "Your edits have not been saved. Close and discard them?"
|
|
4427
4427
|
});
|
|
4428
4428
|
if (!isOpen) return null;
|
|
4429
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4430
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4431
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4429
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkPQ2M7P2Ucjs.Modal, { isOpen: true, onClose: guardedClose, size: effectiveSize, children: [
|
|
4430
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkPQ2M7P2Ucjs.ModalHeader, { children: [
|
|
4431
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPQ2M7P2Ucjs.ModalTitle, { children: title }),
|
|
4432
4432
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-ods-text-secondary text-h6", children: subtitle })
|
|
4433
4433
|
] }),
|
|
4434
4434
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4435
4435
|
"form",
|
|
4436
4436
|
{
|
|
4437
4437
|
id: formId,
|
|
4438
|
-
...
|
|
4438
|
+
..._chunkCWRVTQUOcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
4439
4439
|
className: "flex min-h-0 flex-1 flex-col",
|
|
4440
4440
|
onSubmit: (e) => {
|
|
4441
4441
|
e.preventDefault();
|
|
@@ -4453,7 +4453,7 @@ function AdminFormModal({
|
|
|
4453
4453
|
// a shrink-to-fit flex item pinned to the left of a 1400px panel).
|
|
4454
4454
|
// The placeholder owns its own layout and mirrors the column count so
|
|
4455
4455
|
// the modal doesn't visibly re-flow when the entity lands.
|
|
4456
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4456
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPQ2M7P2Ucjs.ModalContent, { children: loadingContent ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-busy": "true", children: loadingContent }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4457
4457
|
"div",
|
|
4458
4458
|
{
|
|
4459
4459
|
"aria-busy": "true",
|
|
@@ -4474,12 +4474,12 @@ function AdminFormModal({
|
|
|
4474
4474
|
]
|
|
4475
4475
|
}
|
|
4476
4476
|
) })
|
|
4477
|
-
) : twoColumn ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4477
|
+
) : twoColumn ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPQ2M7P2Ucjs.ModalTwoColumn, { left: leftColumn, right: rightColumn }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPQ2M7P2Ucjs.ModalContent, { className: contentClassName, children }),
|
|
4478
4478
|
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { role: "alert", className: "shrink-0 text-ods-error text-h6", children: error })
|
|
4479
4479
|
]
|
|
4480
4480
|
}
|
|
4481
4481
|
),
|
|
4482
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4482
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPQ2M7P2Ucjs.ModalFooter, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center justify-between gap-[var(--spacing-system-xsf)]", children: [
|
|
4483
4483
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: footerExtras }),
|
|
4484
4484
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
4485
4485
|
footerStatus,
|
|
@@ -5199,7 +5199,7 @@ var TabBar = _react.memo.call(void 0, function TabBarImpl({
|
|
|
5199
5199
|
// as tall as its neighbours at every breakpoint. No hover shade:
|
|
5200
5200
|
// the tab is the target, and the cursor passes through to it.
|
|
5201
5201
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5202
|
-
|
|
5202
|
+
_chunk7ZFCR7UYcjs.Tag,
|
|
5203
5203
|
{
|
|
5204
5204
|
as: "span",
|
|
5205
5205
|
"aria-hidden": true,
|
|
@@ -5711,7 +5711,7 @@ function EmbedViewerFrame({
|
|
|
5711
5711
|
const controllerRef = _react.useRef.call(void 0, null);
|
|
5712
5712
|
_react.useEffect.call(void 0, () => {
|
|
5713
5713
|
if (!fullscreenControl) return void 0;
|
|
5714
|
-
const controller = new (0,
|
|
5714
|
+
const controller = new (0, _chunkCWRVTQUOcjs.FullscreenSwitchController)({
|
|
5715
5715
|
target: () => frameRef.current,
|
|
5716
5716
|
onFullscreenChange: setIsFullscreen
|
|
5717
5717
|
});
|
|
@@ -6099,7 +6099,7 @@ function MarkdownImage({ src, alt }) {
|
|
|
6099
6099
|
);
|
|
6100
6100
|
}
|
|
6101
6101
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6102
|
-
|
|
6102
|
+
_chunkHOTM4UM6cjs.next_image_default,
|
|
6103
6103
|
{
|
|
6104
6104
|
src,
|
|
6105
6105
|
alt: _nullishCoalesce(alt, () => ( "No image available")),
|
|
@@ -6163,7 +6163,7 @@ var ExternalLinkIcon = ({ size = 16 }) => /* @__PURE__ */ _jsxruntime.jsx.call(v
|
|
|
6163
6163
|
}
|
|
6164
6164
|
);
|
|
6165
6165
|
var Favicon = ({ src, size = "w-6 h-6" }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6166
|
-
|
|
6166
|
+
_chunkHOTM4UM6cjs.next_image_default,
|
|
6167
6167
|
{
|
|
6168
6168
|
src,
|
|
6169
6169
|
alt: "",
|
|
@@ -6272,7 +6272,7 @@ var OGLinkPreview = ({
|
|
|
6272
6272
|
const hasImage = !!resolvedImageUrl;
|
|
6273
6273
|
const isCuratedImage = _optionalChain([resolvedImage, 'optionalAccess', _111 => _111.source]) === "curated";
|
|
6274
6274
|
const isPlaceholder = _optionalChain([resolvedImage, 'optionalAccess', _112 => _112.source]) === "placeholder";
|
|
6275
|
-
const bgColor =
|
|
6275
|
+
const bgColor = _chunkI5MSCD57cjs.useImageEdgeColor.call(void 0, _nullishCoalesce(resolvedImageUrl, () => ( null)), "var(--color-bg-surface)");
|
|
6276
6276
|
const renderSkeleton = () => isCompact ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "my-4", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-[120px] flex-row overflow-hidden rounded-lg border border-ods-border bg-ods-card", children: [
|
|
6277
6277
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full w-[200px] flex-shrink-0 animate-pulse bg-ods-border" }),
|
|
6278
6278
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col justify-center p-3", children: [
|
|
@@ -6344,11 +6344,11 @@ var OGLinkPreview = ({
|
|
|
6344
6344
|
const renderImage = () => {
|
|
6345
6345
|
if (!resolvedImageUrl) return null;
|
|
6346
6346
|
if (isPlaceholder) {
|
|
6347
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6347
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHOTM4UM6cjs.next_image_default, { src: resolvedImageUrl, alt: title, className: "rounded-md object-cover", fill: true, sizes: "100vw", unoptimized: true });
|
|
6348
6348
|
}
|
|
6349
6349
|
if (isCuratedImage) {
|
|
6350
6350
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6351
|
-
|
|
6351
|
+
_chunkHOTM4UM6cjs.next_image_default,
|
|
6352
6352
|
{
|
|
6353
6353
|
src: resolvedImageUrl,
|
|
6354
6354
|
alt: title,
|
|
@@ -6360,7 +6360,7 @@ var OGLinkPreview = ({
|
|
|
6360
6360
|
);
|
|
6361
6361
|
}
|
|
6362
6362
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6363
|
-
|
|
6363
|
+
_chunkHOTM4UM6cjs.next_image_default,
|
|
6364
6364
|
{
|
|
6365
6365
|
src: resolvedImageUrl,
|
|
6366
6366
|
alt: title,
|
|
@@ -6468,7 +6468,7 @@ var OGLinkPreview = ({
|
|
|
6468
6468
|
),
|
|
6469
6469
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "p-4", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-3", children: [
|
|
6470
6470
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6471
|
-
|
|
6471
|
+
_chunkHOTM4UM6cjs.next_image_default,
|
|
6472
6472
|
{
|
|
6473
6473
|
src: logoSrc,
|
|
6474
6474
|
alt: publicationName || "",
|
|
@@ -6661,7 +6661,7 @@ var MediaCarousel = _react.memo.call(void 0, function MediaCarouselImpl({
|
|
|
6661
6661
|
};
|
|
6662
6662
|
const displayImageSrc = (url) => transformImageSrc ? transformImageSrc(url) : url;
|
|
6663
6663
|
const renderVideo = (item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6664
|
-
|
|
6664
|
+
_chunkYXKB5WREcjs.Video,
|
|
6665
6665
|
{
|
|
6666
6666
|
url: item.src,
|
|
6667
6667
|
poster: item.poster ? displayImageSrc(item.poster) : void 0,
|
|
@@ -6700,7 +6700,7 @@ var MediaCarousel = _react.memo.call(void 0, function MediaCarouselImpl({
|
|
|
6700
6700
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "absolute inset-0 bg-ods-bg", children: [
|
|
6701
6701
|
!imageLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute inset-0 z-[1] animate-pulse bg-ods-card/90", "aria-hidden": true }),
|
|
6702
6702
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6703
|
-
|
|
6703
|
+
_chunkHOTM4UM6cjs.next_image_default,
|
|
6704
6704
|
{
|
|
6705
6705
|
src: displayImageSrc(rawSrc),
|
|
6706
6706
|
alt: item.alt || `Media ${index + 1}`,
|
|
@@ -7093,7 +7093,7 @@ function RedditEmbedClient({ url, maxWidth = 700 }) {
|
|
|
7093
7093
|
width: m.width,
|
|
7094
7094
|
height: m.height
|
|
7095
7095
|
}));
|
|
7096
|
-
const formatNumber =
|
|
7096
|
+
const formatNumber = _chunk7ZFCR7UYcjs.formatLargeNumber;
|
|
7097
7097
|
const truncateText = (text, maxLength = 600) => {
|
|
7098
7098
|
if (text.length <= maxLength) return text;
|
|
7099
7099
|
return text.slice(0, maxLength) + "...";
|
|
@@ -7285,7 +7285,7 @@ function TwitterEmbedClient({ url, tweetId, maxWidth = 700 }) {
|
|
|
7285
7285
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TwitterContainer, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "overflow-hidden rounded-lg border border-ods-border bg-ods-card", children: [
|
|
7286
7286
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "border-b border-ods-border p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center justify-between", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center space-x-3", children: [
|
|
7287
7287
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-8 w-8 flex-shrink-0 overflow-hidden rounded-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7288
|
-
|
|
7288
|
+
_chunkHOTM4UM6cjs.next_image_default,
|
|
7289
7289
|
{
|
|
7290
7290
|
src: getProfilePicUrl(username),
|
|
7291
7291
|
alt: `${tweetData.author_name} profile picture`,
|
|
@@ -7385,7 +7385,7 @@ function buildRichEmbedOverrides({
|
|
|
7385
7385
|
ogEndpointPath,
|
|
7386
7386
|
textSizes
|
|
7387
7387
|
}) {
|
|
7388
|
-
const standard =
|
|
7388
|
+
const standard = _chunkBV5WZVOPcjs.buildStandardLeafRenderers.call(void 0, { textSizes });
|
|
7389
7389
|
return {
|
|
7390
7390
|
// Fence-language embeds (```youtube-embed etc.); everything else
|
|
7391
7391
|
// (mermaid, highlighted blocks, inline code) falls through to `standard`.
|
|
@@ -7395,7 +7395,7 @@ function buildRichEmbedOverrides({
|
|
|
7395
7395
|
const language = match ? match[1] : "";
|
|
7396
7396
|
const fenceText = () => String(children).replace(/\n$/, "").trim();
|
|
7397
7397
|
if (language === "youtube-embed") {
|
|
7398
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7398
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYXKB5WREcjs.Video, { kind: "youtube", url: fenceText() });
|
|
7399
7399
|
}
|
|
7400
7400
|
if (language === "reddit-embed") {
|
|
7401
7401
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RedditEmbedClient, { url: fenceText() });
|
|
@@ -7436,7 +7436,7 @@ function buildRichEmbedOverrides({
|
|
|
7436
7436
|
"data-figma-url": figmaUrl
|
|
7437
7437
|
} = divProps;
|
|
7438
7438
|
if (className === "youtube-embed" && videoId) {
|
|
7439
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7439
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYXKB5WREcjs.Video, { kind: "youtube", url: videoId });
|
|
7440
7440
|
}
|
|
7441
7441
|
if (className === "reddit-embed" && postUrl) {
|
|
7442
7442
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RedditEmbedClient, { url: postUrl });
|
|
@@ -7521,14 +7521,14 @@ function buildRichEmbedOverrides({
|
|
|
7521
7521
|
// rich-markdown runtime (Supabase optimization on the hub, identity
|
|
7522
7522
|
// elsewhere). Guard against empty `![]()`.
|
|
7523
7523
|
img: ({ src, alt }) => {
|
|
7524
|
-
if (!
|
|
7524
|
+
if (!_chunkBV5WZVOPcjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7525
7525
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownImage, { src: src.trim(), alt });
|
|
7526
7526
|
},
|
|
7527
7527
|
// Raw <video> tags in stored content (blog publisher injection) route
|
|
7528
7528
|
// to the <Video> SSOT (MuxPlayer) so HLS manifests play everywhere.
|
|
7529
7529
|
video: ({ src, poster, className }) => {
|
|
7530
|
-
if (!
|
|
7531
|
-
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,
|
|
7530
|
+
if (!_chunkBV5WZVOPcjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7531
|
+
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, _chunkYXKB5WREcjs.Video, { kind: "file", url: src.trim(), poster: typeof poster === "string" ? poster : void 0 }) }) });
|
|
7532
7532
|
}
|
|
7533
7533
|
};
|
|
7534
7534
|
}
|
|
@@ -7636,7 +7636,7 @@ var processShortcodes = (content) => {
|
|
|
7636
7636
|
try {
|
|
7637
7637
|
const urlObj = new URL(url);
|
|
7638
7638
|
const hostname = urlObj.hostname.toLowerCase();
|
|
7639
|
-
const hostIs = (domain) =>
|
|
7639
|
+
const hostIs = (domain) => _chunkCWRVTQUOcjs.hostMatches.call(void 0, hostname, domain);
|
|
7640
7640
|
const isYouTubeVideo = hostIs("youtube.com") && urlObj.searchParams.has("v") || hostIs("youtu.be");
|
|
7641
7641
|
if (isYouTubeVideo || hostIs("reddit.com") || hostIs("twitter.com") || hostIs("x.com") || hostIs("figma.com")) {
|
|
7642
7642
|
return match;
|
|
@@ -7711,13 +7711,13 @@ var RichMarkdownInner = ({
|
|
|
7711
7711
|
},
|
|
7712
7712
|
[resolveLinkEndpointUrl, resolveSource]
|
|
7713
7713
|
);
|
|
7714
|
-
const textSizes = _react.useMemo.call(void 0, () =>
|
|
7714
|
+
const textSizes = _react.useMemo.call(void 0, () => _chunkBV5WZVOPcjs.resolveTextSizeConfig.call(void 0, "article"), []);
|
|
7715
7715
|
const componentOverrides = _react.useMemo.call(void 0,
|
|
7716
7716
|
() => buildRichEmbedOverrides({ ogApiBaseUrl, ogEndpointPath, textSizes }),
|
|
7717
7717
|
[ogApiBaseUrl, ogEndpointPath, textSizes]
|
|
7718
7718
|
);
|
|
7719
7719
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7720
|
-
|
|
7720
|
+
_chunkBV5WZVOPcjs.MarkdownEngine,
|
|
7721
7721
|
{
|
|
7722
7722
|
content,
|
|
7723
7723
|
className,
|
|
@@ -7739,7 +7739,7 @@ var RichMarkdownRendererImpl = ({
|
|
|
7739
7739
|
className = "",
|
|
7740
7740
|
sectionIds,
|
|
7741
7741
|
onInternalLinkClick,
|
|
7742
|
-
brokenLinks =
|
|
7742
|
+
brokenLinks = _chunkBV5WZVOPcjs.NO_BROKEN_LINKS,
|
|
7743
7743
|
currentPath,
|
|
7744
7744
|
resolveSource = "openframe-docs",
|
|
7745
7745
|
resolveLinkEndpointUrl = "/api/docs/resolve-link",
|
|
@@ -8697,7 +8697,7 @@ function FilterModal({
|
|
|
8697
8697
|
const dateDefaultSort = _nullishCoalesce(_optionalChain([dateFilter, 'optionalAccess', _146 => _146.defaultSort]), () => ( "desc"));
|
|
8698
8698
|
const [draftDateSort, setDraftDateSort] = _react.useState.call(void 0, _nullishCoalesce(_optionalChain([dateFilter, 'optionalAccess', _147 => _147.sort]), () => ( dateDefaultSort)));
|
|
8699
8699
|
const [draftDateRange, setDraftDateRange] = _react.useState.call(void 0, _optionalChain([dateFilter, 'optionalAccess', _148 => _148.range]));
|
|
8700
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateFade } =
|
|
8700
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunkBV5WZVOPcjs.useScrollFade.call(void 0, );
|
|
8701
8701
|
const seedKey = `${JSON.stringify(currentFilters)}|${JSON.stringify(_nullishCoalesce(selectedTags, () => ( [])))}`;
|
|
8702
8702
|
const seedSourceRef = _react.useRef.call(void 0, { currentFilters, selectedTags, dateFilter, dateDefaultSort });
|
|
8703
8703
|
_react.useEffect.call(void 0, () => {
|
|
@@ -8743,15 +8743,15 @@ function FilterModal({
|
|
|
8743
8743
|
const hasTagFilter = !!tagFilterKeys && tagFilterKeys.length > 0 && !!onTagsChange;
|
|
8744
8744
|
const isEmpty = !isLoading && !hasSort && !hasFilterGroups && !hasTagFilter && !dateFilter;
|
|
8745
8745
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8746
|
-
|
|
8746
|
+
_chunkPQ2M7P2Ucjs.Modal,
|
|
8747
8747
|
{
|
|
8748
8748
|
isOpen,
|
|
8749
8749
|
onClose,
|
|
8750
8750
|
className: _chunk3ATAYP36cjs.cn.call(void 0, "max-h-[90vh] max-w-none md:max-w-[min(42rem,calc(100vw-2rem))]", className),
|
|
8751
8751
|
children: [
|
|
8752
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8752
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPQ2M7P2Ucjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPQ2M7P2Ucjs.ModalTitle, { children: title }) }),
|
|
8753
8753
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8754
|
-
|
|
8754
|
+
_chunkPQ2M7P2Ucjs.ModalContent,
|
|
8755
8755
|
{
|
|
8756
8756
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
8757
8757
|
"flex min-h-0 flex-1 flex-col",
|
|
@@ -8843,12 +8843,12 @@ function FilterModal({
|
|
|
8843
8843
|
] })
|
|
8844
8844
|
}
|
|
8845
8845
|
),
|
|
8846
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8847
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8846
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop }),
|
|
8847
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom })
|
|
8848
8848
|
] })
|
|
8849
8849
|
}
|
|
8850
8850
|
),
|
|
8851
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8851
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkPQ2M7P2Ucjs.ModalFooter, { children: [
|
|
8852
8852
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { variant: "outline", className: "h-11 flex-1", onClick: handleReset, children: resetButtonText }),
|
|
8853
8853
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { variant: "accent", className: "h-11 flex-1", onClick: handleApply, children: applyButtonText })
|
|
8854
8854
|
] })
|
|
@@ -8910,7 +8910,7 @@ function renderAdvancedPageContainer({
|
|
|
8910
8910
|
};
|
|
8911
8911
|
const renderActions = () => {
|
|
8912
8912
|
if (!actions || actions.length === 0) return null;
|
|
8913
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8913
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.PageActions, { variant: getActionsVariant(), actions, menuActions });
|
|
8914
8914
|
};
|
|
8915
8915
|
const needsBottomPadding = actions && actions.length > 0 && getActionsVariant() === "primary-buttons";
|
|
8916
8916
|
const paddingClasses = {
|
|
@@ -8933,14 +8933,14 @@ function renderAdvancedPageContainer({
|
|
|
8933
8933
|
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: [
|
|
8934
8934
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
8935
8935
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8936
|
-
|
|
8936
|
+
_chunkDSVNFRY5cjs.BackButton,
|
|
8937
8937
|
{
|
|
8938
8938
|
onClick: backButton.onClick,
|
|
8939
8939
|
label: backButton.label,
|
|
8940
8940
|
className: "hidden content-md:inline-flex"
|
|
8941
8941
|
}
|
|
8942
8942
|
),
|
|
8943
|
-
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOF336YWGcjs.PageTitle, { className: "text-ods-text-primary text-h2", children:
|
|
8943
|
+
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOF336YWGcjs.PageTitle, { className: "text-ods-text-primary text-h2", children: _chunkYXKB5WREcjs.accentSentenceMarks.call(void 0, title) }),
|
|
8944
8944
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-ods-text-secondary text-h6", children: subtitle })
|
|
8945
8945
|
] }),
|
|
8946
8946
|
(headerActions || actions) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 items-center gap-2", children: [
|
|
@@ -8953,14 +8953,14 @@ function renderAdvancedPageContainer({
|
|
|
8953
8953
|
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: [
|
|
8954
8954
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
8955
8955
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8956
|
-
|
|
8956
|
+
_chunkDSVNFRY5cjs.BackButton,
|
|
8957
8957
|
{
|
|
8958
8958
|
onClick: backButton.onClick,
|
|
8959
8959
|
label: backButton.label,
|
|
8960
8960
|
className: "hidden content-md:inline-flex"
|
|
8961
8961
|
}
|
|
8962
8962
|
),
|
|
8963
|
-
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOF336YWGcjs.PageTitle, { className: "text-ods-text-primary text-h2", children:
|
|
8963
|
+
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOF336YWGcjs.PageTitle, { className: "text-ods-text-primary text-h2", children: _chunkYXKB5WREcjs.accentSentenceMarks.call(void 0, title) }),
|
|
8964
8964
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-ods-text-secondary text-h6", children: subtitle })
|
|
8965
8965
|
] }),
|
|
8966
8966
|
(headerActions || actions) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 items-center gap-3", children: [
|
|
@@ -8973,14 +8973,14 @@ function renderAdvancedPageContainer({
|
|
|
8973
8973
|
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: [
|
|
8974
8974
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
8975
8975
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8976
|
-
|
|
8976
|
+
_chunkDSVNFRY5cjs.BackButton,
|
|
8977
8977
|
{
|
|
8978
8978
|
onClick: backButton.onClick,
|
|
8979
8979
|
label: backButton.label,
|
|
8980
8980
|
className: "hidden content-md:inline-flex"
|
|
8981
8981
|
}
|
|
8982
8982
|
),
|
|
8983
|
-
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOF336YWGcjs.PageTitle, { className: "text-ods-text-primary text-h2", children:
|
|
8983
|
+
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOF336YWGcjs.PageTitle, { className: "text-ods-text-primary text-h2", children: _chunkYXKB5WREcjs.accentSentenceMarks.call(void 0, title) })
|
|
8984
8984
|
] }),
|
|
8985
8985
|
(headerActions || actions) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 items-center gap-4", children: [
|
|
8986
8986
|
headerActions,
|
|
@@ -8990,7 +8990,7 @@ function renderAdvancedPageContainer({
|
|
|
8990
8990
|
}
|
|
8991
8991
|
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: [
|
|
8992
8992
|
(title || subtitle) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
8993
|
-
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOF336YWGcjs.PageTitle, { className: "text-ods-text-primary text-h2", children:
|
|
8993
|
+
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOF336YWGcjs.PageTitle, { className: "text-ods-text-primary text-h2", children: _chunkYXKB5WREcjs.accentSentenceMarks.call(void 0, title) }),
|
|
8994
8994
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-ods-text-secondary text-h6", children: subtitle })
|
|
8995
8995
|
] }),
|
|
8996
8996
|
(headerActions || actions) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 items-center gap-3", children: [
|
|
@@ -9323,7 +9323,7 @@ var BenefitCardGrid = ({ children, className = "", columns = 2 }) => {
|
|
|
9323
9323
|
|
|
9324
9324
|
|
|
9325
9325
|
function PlatformBrowseButton({ item }) {
|
|
9326
|
-
const linkProps =
|
|
9326
|
+
const linkProps = _chunkBV5WZVOPcjs.useNavLinkViaRuntime.call(void 0, { href: item.link, targetPlatform: item.targetPlatform });
|
|
9327
9327
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2QMBXGMQcjs.Button, { variant: "outline", linkProps, rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-4 w-4" }), children: [
|
|
9328
9328
|
"Browse ",
|
|
9329
9329
|
item.buttonText
|
|
@@ -9626,7 +9626,7 @@ function DashboardInfoCard({
|
|
|
9626
9626
|
const asTag = percentageDisplay === "tag" || percentageDisplay === "auto" && (progressVariant === "warning" || progressVariant === "error");
|
|
9627
9627
|
if (asTag) {
|
|
9628
9628
|
const tagVariant = progressVariant === "warning" || progressVariant === "error" ? progressVariant : progressVariant === "success" ? "success" : "grey";
|
|
9629
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9629
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ZFCR7UYcjs.Tag, { variant: tagVariant, label: `${percentage}%` });
|
|
9630
9630
|
}
|
|
9631
9631
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: [
|
|
9632
9632
|
"(",
|
|
@@ -9684,7 +9684,7 @@ function DashboardInfoCard({
|
|
|
9684
9684
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunk3ATAYP36cjs.cn.call(void 0, "truncate text-ods-text-primary text-h3 content-md:text-h2", valueClassName), children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "block h-[1lh] w-24 animate-pulse rounded bg-ods-border" }) : formattedValue }),
|
|
9685
9685
|
subValue && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: subValue }),
|
|
9686
9686
|
renderPercentage(),
|
|
9687
|
-
tooltip && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9687
|
+
tooltip && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ZFCR7UYcjs.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 }) }) })
|
|
9688
9688
|
] }),
|
|
9689
9689
|
caption && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "line-clamp-2 min-h-[2lh] text-ods-text-secondary text-h6", children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "block h-[1lh] w-32 animate-pulse rounded bg-ods-border" }) : caption })
|
|
9690
9690
|
] }),
|
|
@@ -9771,10 +9771,10 @@ var OSTypeBadge = ({
|
|
|
9771
9771
|
if (!osType) {
|
|
9772
9772
|
return labelOnly ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3ATAYP36cjs.cn.call(void 0, "text-ods-text-secondary", className), children: "Unknown" }) : null;
|
|
9773
9773
|
}
|
|
9774
|
-
const normalized =
|
|
9774
|
+
const normalized = _chunkCWRVTQUOcjs.normalizeOSType.call(void 0, osType);
|
|
9775
9775
|
if (!normalized && !labelOnly) return null;
|
|
9776
|
-
const label =
|
|
9777
|
-
const IconComponent =
|
|
9776
|
+
const label = _chunkCWRVTQUOcjs.getOSLabel.call(void 0, osType);
|
|
9777
|
+
const IconComponent = _chunkCWRVTQUOcjs.getOSIcon.call(void 0, osType);
|
|
9778
9778
|
if (iconOnly && IconComponent) {
|
|
9779
9779
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: _chunk3ATAYP36cjs.cn.call(void 0, iconSize, "text-ods-text-secondary", className) });
|
|
9780
9780
|
}
|
|
@@ -9811,7 +9811,7 @@ function DeviceCard({
|
|
|
9811
9811
|
}) {
|
|
9812
9812
|
const formatLastSeen = (lastSeen) => {
|
|
9813
9813
|
if (!lastSeen) return null;
|
|
9814
|
-
return
|
|
9814
|
+
return _chunk7ZFCR7UYcjs.formatDateTimeYmd.call(void 0, lastSeen, null) || null;
|
|
9815
9815
|
};
|
|
9816
9816
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9817
9817
|
"div",
|
|
@@ -9870,7 +9870,7 @@ function DeviceCard({
|
|
|
9870
9870
|
] }),
|
|
9871
9871
|
(statusTag || device.lastSeen) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-2", children: [
|
|
9872
9872
|
statusTag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9873
|
-
|
|
9873
|
+
_chunk7ZFCR7UYcjs.Tag,
|
|
9874
9874
|
{
|
|
9875
9875
|
variant: statusTag.variant,
|
|
9876
9876
|
icon: statusTag.icon,
|
|
@@ -9884,7 +9884,7 @@ function DeviceCard({
|
|
|
9884
9884
|
formatLastSeen(device.lastSeen)
|
|
9885
9885
|
] })
|
|
9886
9886
|
] }),
|
|
9887
|
-
device.tags && device.tags.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-wrap items-center gap-2", children: device.tags.map((tag, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9887
|
+
device.tags && device.tags.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-wrap items-center gap-2", children: device.tags.map((tag, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ZFCR7UYcjs.Tag, { variant: "outline", label: tag }, index)) })
|
|
9888
9888
|
]
|
|
9889
9889
|
}
|
|
9890
9890
|
);
|
|
@@ -9923,7 +9923,7 @@ function DataAttribution({ icon, source, lastUpdated, action }) {
|
|
|
9923
9923
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator3, {}),
|
|
9924
9924
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
|
|
9925
9925
|
"Last updated: ",
|
|
9926
|
-
lastUpdated ?
|
|
9926
|
+
lastUpdated ? _chunk7ZFCR7UYcjs.formatDate.call(void 0, lastUpdated) : "Never"
|
|
9927
9927
|
] }),
|
|
9928
9928
|
action ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex content-sm:pl-[var(--spacing-system-xs)]", children: action }) : null
|
|
9929
9929
|
] });
|
|
@@ -10006,7 +10006,7 @@ function ComplianceLogo({
|
|
|
10006
10006
|
fallback = null,
|
|
10007
10007
|
className
|
|
10008
10008
|
}) {
|
|
10009
|
-
const standard =
|
|
10009
|
+
const standard = _chunkCWRVTQUOcjs.complianceStandardForName.call(void 0, ...names);
|
|
10010
10010
|
if (!standard) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: fallback });
|
|
10011
10011
|
const Official = standard.logo ? COMPLIANCE_LOGOS[standard.logo] : null;
|
|
10012
10012
|
return Official ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10087,7 +10087,7 @@ function FeatureCardGrid({
|
|
|
10087
10087
|
if (allCardsHaveNoBorders) {
|
|
10088
10088
|
finalCardClassName = "bg-transparent p-0 overflow-visible border-0 shadow-none rounded-none";
|
|
10089
10089
|
}
|
|
10090
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10090
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYXKB5WREcjs.Card, { className: `${finalCardClassName} ${className}`, children: Array.from({ length: rows }, (_, rowIndex) => {
|
|
10091
10091
|
const startIndex = rowIndex * itemsPerRow;
|
|
10092
10092
|
const rowItems = items.slice(startIndex, startIndex + itemsPerRow);
|
|
10093
10093
|
const isLastRow = rowIndex === rows - 1;
|
|
@@ -10121,7 +10121,7 @@ function FeatureCardGrid({
|
|
|
10121
10121
|
item.icon && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start justify-between", children: [
|
|
10122
10122
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, item.icon, { size: 80, color: item.iconColor }),
|
|
10123
10123
|
item.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10124
|
-
|
|
10124
|
+
_chunkYXKB5WREcjs.StatusBadge,
|
|
10125
10125
|
{
|
|
10126
10126
|
text: item.badge.text,
|
|
10127
10127
|
variant: item.badge.variant || "card",
|
|
@@ -10130,7 +10130,7 @@ function FeatureCardGrid({
|
|
|
10130
10130
|
)
|
|
10131
10131
|
] }),
|
|
10132
10132
|
!item.icon && item.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-start justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10133
|
-
|
|
10133
|
+
_chunkYXKB5WREcjs.StatusBadge,
|
|
10134
10134
|
{
|
|
10135
10135
|
text: item.badge.text,
|
|
10136
10136
|
variant: item.badge.variant || "card",
|
|
@@ -10286,7 +10286,7 @@ function FeatureList({
|
|
|
10286
10286
|
|
|
10287
10287
|
function SourceTooltip({ intro, sources, note, iconClassName, triggerAnchorProps }) {
|
|
10288
10288
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10289
|
-
|
|
10289
|
+
_chunk7ZFCR7UYcjs.FloatingTooltip,
|
|
10290
10290
|
{
|
|
10291
10291
|
as: "span",
|
|
10292
10292
|
side: "top",
|
|
@@ -10691,7 +10691,7 @@ function OrganizationCard({
|
|
|
10691
10691
|
}
|
|
10692
10692
|
),
|
|
10693
10693
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start gap-3", children: [
|
|
10694
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10694
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.EntityImage, { src: fetchedImageUrl || organization.imageUrl, alt: organization.name }),
|
|
10695
10695
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center py-2", children: [
|
|
10696
10696
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "truncate text-ods-text-primary transition-colors text-h3", title: organization.name, children: organization.name }),
|
|
10697
10697
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10741,8 +10741,8 @@ function ServiceCard({ title, subtitle, icon, tag, rows, className }) {
|
|
|
10741
10741
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-4", children: [
|
|
10742
10742
|
/* @__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 }),
|
|
10743
10743
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0", children: [
|
|
10744
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10745
|
-
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10744
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { variant: "h3", children: title }),
|
|
10745
|
+
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { variant: "h6", tone: "secondary", children: subtitle })
|
|
10746
10746
|
] })
|
|
10747
10747
|
] }),
|
|
10748
10748
|
tag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "self-start whitespace-nowrap rounded-full border border-ods-border bg-ods-bg px-3 py-1 font-semibold text-ods-text-primary text-h6", children: tag.label })
|
|
@@ -10775,7 +10775,7 @@ function ServiceCardRowItem({ row }) {
|
|
|
10775
10775
|
),
|
|
10776
10776
|
children: [
|
|
10777
10777
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10778
|
-
|
|
10778
|
+
_chunk7ZFCR7UYcjs.FloatingTooltip,
|
|
10779
10779
|
{
|
|
10780
10780
|
content: row.value,
|
|
10781
10781
|
side: "top",
|
|
@@ -10873,17 +10873,17 @@ function PersonCell({
|
|
|
10873
10873
|
const displayName = name || fallbackName;
|
|
10874
10874
|
const scale = PERSON_CELL_SIZE[size];
|
|
10875
10875
|
const row = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `group/person-cell flex min-w-0 items-center ${scale.gap}`, children: [
|
|
10876
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10876
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ZFCR7UYcjs.SquareAvatar, { size: scale.avatar, src: _nullishCoalesce(avatarUrl, () => ( void 0)), alt: displayName, fallback: displayName }),
|
|
10877
10877
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
10878
10878
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10879
|
-
|
|
10879
|
+
_chunkDSVNFRY5cjs.TruncateText,
|
|
10880
10880
|
{
|
|
10881
10881
|
variant: scale.primary,
|
|
10882
10882
|
className: onClick ? "text-ods-accent group-hover/person-cell:underline" : void 0,
|
|
10883
10883
|
children: displayName
|
|
10884
10884
|
}
|
|
10885
10885
|
),
|
|
10886
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10886
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { variant: "h6", tone: "secondary", children: secondary === void 0 ? "\xA0" : secondary || "\xB7" })
|
|
10887
10887
|
] })
|
|
10888
10888
|
] });
|
|
10889
10889
|
if (!onClick) return row;
|
|
@@ -10913,9 +10913,9 @@ function PeopleCell({ people, fallbackName = "Unassigned" }) {
|
|
|
10913
10913
|
);
|
|
10914
10914
|
}
|
|
10915
10915
|
const fullNames = people.map((p) => p.name || "Unknown").join(", ");
|
|
10916
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10916
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ZFCR7UYcjs.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: [
|
|
10917
10917
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-hidden": true, className: "shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10918
|
-
|
|
10918
|
+
_chunkGSWQZX23cjs.AvatarStack,
|
|
10919
10919
|
{
|
|
10920
10920
|
size: "sm",
|
|
10921
10921
|
slots: PEOPLE_CELL_STACK_SLOTS,
|
|
@@ -10923,7 +10923,7 @@ function PeopleCell({ people, fallbackName = "Unassigned" }) {
|
|
|
10923
10923
|
}
|
|
10924
10924
|
) }),
|
|
10925
10925
|
/* @__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: [
|
|
10926
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": true, children: people.map((p) =>
|
|
10926
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": true, children: people.map((p) => _chunk7ZFCR7UYcjs.personFirstName.call(void 0, p.name, "Unknown")).join(" & ") }),
|
|
10927
10927
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: fullNames })
|
|
10928
10928
|
] })
|
|
10929
10929
|
] }) });
|
|
@@ -11623,7 +11623,7 @@ function TableHeader({
|
|
|
11623
11623
|
onFilterChange
|
|
11624
11624
|
}
|
|
11625
11625
|
),
|
|
11626
|
-
column.hint ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11626
|
+
column.hint ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCWRVTQUOcjs.InfoHint, { label: column.label, children: column.hint }) : null
|
|
11627
11627
|
] })
|
|
11628
11628
|
) : (
|
|
11629
11629
|
/* Non-filterable column — regular label with optional sort */
|
|
@@ -11649,7 +11649,7 @@ function TableHeader({
|
|
|
11649
11649
|
hint exists, so a hint-less header keeps its DOM. */
|
|
11650
11650
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
11651
11651
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TABLE_HEADER_LABEL_CLASS, children: column.label }),
|
|
11652
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11652
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCWRVTQUOcjs.InfoHint, { label: column.label, children: column.hint })
|
|
11653
11653
|
] })
|
|
11654
11654
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TABLE_HEADER_LABEL_CLASS, children: column.label }),
|
|
11655
11655
|
getSortIcon(column)
|
|
@@ -12174,7 +12174,7 @@ function Table({
|
|
|
12174
12174
|
}
|
|
12175
12175
|
),
|
|
12176
12176
|
!infiniteScroll && pagePagination && !cursorPagination && data.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "mt-2 border-t border-ods-border pt-3", paginationClassName), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12177
|
-
|
|
12177
|
+
_chunkKLI4OSRAcjs.Pagination,
|
|
12178
12178
|
{
|
|
12179
12179
|
currentPage: pagePagination.currentPage,
|
|
12180
12180
|
totalPages: pagePagination.totalPages,
|
|
@@ -12207,7 +12207,7 @@ function TableDescriptionCell({ text, className, maxLines = 3 }) {
|
|
|
12207
12207
|
|
|
12208
12208
|
// src/components/ui/table/table-timestamp-cell.tsx
|
|
12209
12209
|
|
|
12210
|
-
var formatLocalTimestamp = (date) =>
|
|
12210
|
+
var formatLocalTimestamp = (date) => _chunk7ZFCR7UYcjs.formatDateWithTimezone.call(void 0, date, _chunk7ZFCR7UYcjs.VIEWER_TIMEZONE, "localeDateTime", { viewerLocale: true });
|
|
12211
12211
|
function formatTimestampValue(timestamp) {
|
|
12212
12212
|
if (timestamp instanceof Date) {
|
|
12213
12213
|
return formatLocalTimestamp(timestamp);
|
|
@@ -12990,7 +12990,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
12990
12990
|
// child of the cell.
|
|
12991
12991
|
_optionalChain([meta, 'optionalAccess', _234 => _234.hint]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
12992
12992
|
filterTrigger,
|
|
12993
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12993
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCWRVTQUOcjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
12994
12994
|
] }) : filterTrigger
|
|
12995
12995
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
12996
12996
|
"div",
|
|
@@ -13015,7 +13015,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13015
13015
|
// centred on the row.
|
|
13016
13016
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13017
13017
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
13018
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13018
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCWRVTQUOcjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
13019
13019
|
] })
|
|
13020
13020
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
13021
13021
|
canSort && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortIcon, { sorted: sortDir })
|
|
@@ -13234,7 +13234,7 @@ function PhoneInput({
|
|
|
13234
13234
|
placeholder = "Phone Number (optional)",
|
|
13235
13235
|
onKeyDown
|
|
13236
13236
|
}) {
|
|
13237
|
-
const { priority, others } = _react.useMemo.call(void 0, () =>
|
|
13237
|
+
const { priority, others } = _react.useMemo.call(void 0, () => _chunkCWRVTQUOcjs.getCountryPhoneData.call(void 0, ), []);
|
|
13238
13238
|
const selectedCountry = _react.useMemo.call(void 0,
|
|
13239
13239
|
() => [...priority, ...others].find((c) => c.code === countryCode),
|
|
13240
13240
|
[countryCode, priority, others]
|
|
@@ -13249,7 +13249,7 @@ function PhoneInput({
|
|
|
13249
13249
|
_optionalChain([onValidationChange, 'optionalCall', _247 => _247(false)]);
|
|
13250
13250
|
return;
|
|
13251
13251
|
}
|
|
13252
|
-
const invalid = !
|
|
13252
|
+
const invalid = !_chunkCWRVTQUOcjs.validatePhoneNumber.call(void 0, phone, countryCode);
|
|
13253
13253
|
setIsInvalid(invalid);
|
|
13254
13254
|
_optionalChain([onValidationChange, 'optionalCall', _248 => _248(invalid)]);
|
|
13255
13255
|
},
|
|
@@ -13269,7 +13269,7 @@ function PhoneInput({
|
|
|
13269
13269
|
}, []);
|
|
13270
13270
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 gap-2", children: [
|
|
13271
13271
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13272
|
-
|
|
13272
|
+
_chunkDSVNFRY5cjs.Select,
|
|
13273
13273
|
{
|
|
13274
13274
|
value: countryCode,
|
|
13275
13275
|
onValueChange: (val) => {
|
|
@@ -13280,14 +13280,14 @@ function PhoneInput({
|
|
|
13280
13280
|
},
|
|
13281
13281
|
disabled,
|
|
13282
13282
|
children: [
|
|
13283
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13283
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectTrigger, { className: "w-[130px] shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectValue, { children: selectedCountry && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-1.5", children: [
|
|
13284
13284
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: selectedCountry.flag }),
|
|
13285
13285
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: selectedCountry.dialCode })
|
|
13286
13286
|
] }) }) }),
|
|
13287
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13288
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13289
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13290
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13287
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDSVNFRY5cjs.SelectContent, { className: "max-h-[300px] !w-[280px]", children: [
|
|
13288
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectGroup, { children: priority.map((country) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CountryOption, { country }, country.code)) }),
|
|
13289
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectSeparator, {}),
|
|
13290
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectGroup, { children: others.map((country) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CountryOption, { country }, country.code)) })
|
|
13291
13291
|
] })
|
|
13292
13292
|
]
|
|
13293
13293
|
}
|
|
@@ -13319,7 +13319,7 @@ function PhoneInput({
|
|
|
13319
13319
|
] });
|
|
13320
13320
|
}
|
|
13321
13321
|
function CountryOption({ country }) {
|
|
13322
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13322
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectItem, { value: country.code, textValue: country.name, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-2", children: [
|
|
13323
13323
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0", children: country.flag }),
|
|
13324
13324
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary", children: country.dialCode }),
|
|
13325
13325
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-block max-w-[140px] overflow-hidden text-ellipsis whitespace-nowrap", children: country.name })
|
|
@@ -13602,7 +13602,7 @@ function SearchInput({
|
|
|
13602
13602
|
/* @__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, {}) }),
|
|
13603
13603
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: middleRef, className: "flex min-w-0 flex-1 items-center gap-2 overflow-hidden", children: [
|
|
13604
13604
|
visibleChips.map((chip) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13605
|
-
|
|
13605
|
+
_chunk7ZFCR7UYcjs.Tag,
|
|
13606
13606
|
{
|
|
13607
13607
|
variant: chipVariantToTagVariant(chip.variant),
|
|
13608
13608
|
label: chip.label,
|
|
@@ -13698,7 +13698,7 @@ function SearchInput({
|
|
|
13698
13698
|
)
|
|
13699
13699
|
] }),
|
|
13700
13700
|
showHiddenTags && hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13701
|
-
|
|
13701
|
+
_chunkDSVNFRY5cjs.HiddenTagsPopup,
|
|
13702
13702
|
{
|
|
13703
13703
|
ref: hiddenTagsPopupRef,
|
|
13704
13704
|
items: hiddenChips.map((chip) => ({ label: chip.label, value: chip.id })),
|
|
@@ -13718,7 +13718,7 @@ function SearchInput({
|
|
|
13718
13718
|
}
|
|
13719
13719
|
),
|
|
13720
13720
|
/* @__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,
|
|
13721
|
-
|
|
13721
|
+
_chunk7ZFCR7UYcjs.Tag,
|
|
13722
13722
|
{
|
|
13723
13723
|
variant: chipVariantToTagVariant(chip.variant),
|
|
13724
13724
|
label: chip.label,
|
|
@@ -13931,7 +13931,7 @@ function TagSearchInput({
|
|
|
13931
13931
|
/* @__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" }) }),
|
|
13932
13932
|
/* @__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: [
|
|
13933
13933
|
visibleTags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13934
|
-
|
|
13934
|
+
_chunk7ZFCR7UYcjs.Tag,
|
|
13935
13935
|
{
|
|
13936
13936
|
variant: "outline",
|
|
13937
13937
|
label: renderTag ? renderTag(tag) : tag.label,
|
|
@@ -13992,7 +13992,7 @@ function TagSearchInput({
|
|
|
13992
13992
|
}
|
|
13993
13993
|
),
|
|
13994
13994
|
showHiddenTags && hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13995
|
-
|
|
13995
|
+
_chunkDSVNFRY5cjs.HiddenTagsPopup,
|
|
13996
13996
|
{
|
|
13997
13997
|
ref: hiddenTagsPopupRef,
|
|
13998
13998
|
items: hiddenTags,
|
|
@@ -14019,7 +14019,7 @@ function TagSearchInput({
|
|
|
14019
14019
|
"aria-hidden": "true",
|
|
14020
14020
|
className: "pointer-events-none invisible absolute left-0 top-0 -z-10 flex gap-2",
|
|
14021
14021
|
children: tags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14022
|
-
|
|
14022
|
+
_chunk7ZFCR7UYcjs.Tag,
|
|
14023
14023
|
{
|
|
14024
14024
|
variant: "outline",
|
|
14025
14025
|
label: renderTag ? renderTag(tag) : tag.label,
|
|
@@ -14176,7 +14176,7 @@ function MarkdownEditor({
|
|
|
14176
14176
|
setUploadProgress(`Uploading ${file.name}...`);
|
|
14177
14177
|
try {
|
|
14178
14178
|
const url = await onUploadFile(file);
|
|
14179
|
-
const isImage =
|
|
14179
|
+
const isImage = _chunkYXKB5WREcjs.fileMediaType.call(void 0, file) === "image";
|
|
14180
14180
|
const markdown = isImage ? `` : `[${file.name}](${url})`;
|
|
14181
14181
|
insertTextAtCursor(markdown);
|
|
14182
14182
|
_optionalChain([onFileUploaded, 'optionalCall', _299 => _299(url, file.name)]);
|
|
@@ -14306,7 +14306,7 @@ function MarkdownEditor({
|
|
|
14306
14306
|
type: "file",
|
|
14307
14307
|
className: "hidden",
|
|
14308
14308
|
onChange: handleFileInputChange,
|
|
14309
|
-
accept: `${
|
|
14309
|
+
accept: `${_chunkYXKB5WREcjs.IMAGE_FILE_ACCEPT},.pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.zip,.txt`
|
|
14310
14310
|
}
|
|
14311
14311
|
),
|
|
14312
14312
|
!MDEditor && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-64 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "h-8 w-8 animate-spin" }) }),
|
|
@@ -14706,7 +14706,7 @@ function matchesAccept2(file, accept) {
|
|
|
14706
14706
|
return patterns.some((pattern) => {
|
|
14707
14707
|
if (pattern.startsWith(".")) return fileName.endsWith(pattern);
|
|
14708
14708
|
if (pattern.endsWith("/*"))
|
|
14709
|
-
return fileType.startsWith(pattern.slice(0, -1)) ||
|
|
14709
|
+
return fileType.startsWith(pattern.slice(0, -1)) || _chunkYXKB5WREcjs.fileMediaType.call(void 0, file) === pattern.slice(0, -2);
|
|
14710
14710
|
return fileType === pattern;
|
|
14711
14711
|
});
|
|
14712
14712
|
}
|
|
@@ -14714,7 +14714,7 @@ function ImageUploader({
|
|
|
14714
14714
|
value,
|
|
14715
14715
|
onChange,
|
|
14716
14716
|
onRemove,
|
|
14717
|
-
accept =
|
|
14717
|
+
accept = _chunkYXKB5WREcjs.IMAGE_FILE_ACCEPT,
|
|
14718
14718
|
maxSize = DEFAULT_MAX_SIZE,
|
|
14719
14719
|
label = "Cover Image",
|
|
14720
14720
|
description = "(Click Here or Drag and Drop)",
|
|
@@ -14821,7 +14821,7 @@ function ImageUploader({
|
|
|
14821
14821
|
),
|
|
14822
14822
|
children: hasImage ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
14823
14823
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative min-h-0 w-full flex-1 overflow-hidden rounded-md", children: resolvedValue && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14824
|
-
|
|
14824
|
+
_chunkHOTM4UM6cjs.next_image_default,
|
|
14825
14825
|
{
|
|
14826
14826
|
src: resolvedValue,
|
|
14827
14827
|
alt,
|
|
@@ -14951,13 +14951,13 @@ function ColorPresetSelect({
|
|
|
14951
14951
|
...presets.map((p) => ({
|
|
14952
14952
|
id: p.key,
|
|
14953
14953
|
label: p.label,
|
|
14954
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14954
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGABDE3FMcjs.ColorSwatch, { color: p.color }),
|
|
14955
14955
|
onClick: () => onChange({ color: p.color, preset: p.key })
|
|
14956
14956
|
})),
|
|
14957
14957
|
{
|
|
14958
14958
|
id: CUSTOM_PRESET_KEY,
|
|
14959
14959
|
label: "Custom",
|
|
14960
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14960
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGABDE3FMcjs.ColorSwatch, { color: isCustom ? value : DEFAULT_CUSTOM_STATUS_COLOR }),
|
|
14961
14961
|
onClick: () => onChange({ color: value, preset: void 0 })
|
|
14962
14962
|
}
|
|
14963
14963
|
]
|
|
@@ -14974,7 +14974,7 @@ function ColorPresetSelect({
|
|
|
14974
14974
|
{
|
|
14975
14975
|
disabled,
|
|
14976
14976
|
"aria-label": `Color: ${displayLabel}`,
|
|
14977
|
-
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14977
|
+
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGABDE3FMcjs.ColorSwatch, { color: displayColor }),
|
|
14978
14978
|
selectedLabel: displayLabel,
|
|
14979
14979
|
endIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TriggerChevron, {}),
|
|
14980
14980
|
className: _chunk3ATAYP36cjs.cn.call(void 0, "group", className)
|
|
@@ -15106,7 +15106,7 @@ function ColorPickerInput({ value, onChange, disabled, className }) {
|
|
|
15106
15106
|
{
|
|
15107
15107
|
disabled,
|
|
15108
15108
|
"aria-label": "Pick custom color",
|
|
15109
|
-
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15109
|
+
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGABDE3FMcjs.ColorSwatch, { color: value }),
|
|
15110
15110
|
selectedLabel: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase", children: value }),
|
|
15111
15111
|
endIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TriggerChevron, {}),
|
|
15112
15112
|
className: _chunk3ATAYP36cjs.cn.call(void 0, "group", className)
|
|
@@ -15179,7 +15179,7 @@ function TicketStatusConfigRow({
|
|
|
15179
15179
|
const previewVariant = _nullishCoalesce(systemTagVariant, () => ( (isSystem ? void 0 : "primary")));
|
|
15180
15180
|
const fieldRowOffset = "mt-[calc(var(--font-line-space-h4-body)+0.25rem)]";
|
|
15181
15181
|
const chip = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15182
|
-
|
|
15182
|
+
_chunkGABDE3FMcjs.TicketStatusTag,
|
|
15183
15183
|
{
|
|
15184
15184
|
status: statusKey,
|
|
15185
15185
|
label: name || " ",
|
|
@@ -15286,7 +15286,7 @@ function TicketStatusConfigRow({
|
|
|
15286
15286
|
),
|
|
15287
15287
|
children: [
|
|
15288
15288
|
!isSystem && moveButtons,
|
|
15289
|
-
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,
|
|
15289
|
+
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, _chunkO67V3HJRcjs.TouchFriendlyTooltip, { content: systemTooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15290
15290
|
"button",
|
|
15291
15291
|
{
|
|
15292
15292
|
type: "button",
|
|
@@ -15294,7 +15294,7 @@ function TicketStatusConfigRow({
|
|
|
15294
15294
|
className: "flex size-6 items-center justify-center text-ods-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-ods-focus",
|
|
15295
15295
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRHC2FRVEcjs.InfoCircleIcon, { size: 24 })
|
|
15296
15296
|
}
|
|
15297
|
-
) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15297
|
+
) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO67V3HJRcjs.TouchFriendlyTooltip, { content: deleteDisabled ? deleteDisabledReason : void 0, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15298
15298
|
_chunk2QMBXGMQcjs.Button,
|
|
15299
15299
|
{
|
|
15300
15300
|
type: "button",
|
|
@@ -15331,7 +15331,7 @@ function formatTestRunDuration(ms) {
|
|
|
15331
15331
|
var RESULT_COLUMN_MIN_WIDTH = 176;
|
|
15332
15332
|
var SKELETON_COLUMNS = 6;
|
|
15333
15333
|
function TestResultsSkeleton() {
|
|
15334
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15334
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.ScrollShadow, { axis: "horizontal", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-max min-w-full flex-col", children: [
|
|
15335
15335
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-mf)] px-[var(--spacing-system-mf)]", children: Array.from({ length: SKELETON_COLUMNS }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-[160px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-4 w-3/4 animate-pulse rounded-sm bg-ods-bg-surface" }) }, `skeleton-header-${i}`)) }),
|
|
15336
15336
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "animate-pulse overflow-hidden rounded-[6px] border border-ods-border bg-ods-card", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[66px] items-center gap-[var(--spacing-system-mf)] px-[var(--spacing-system-mf)] content-md:h-[78px]", children: Array.from({ length: SKELETON_COLUMNS }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-[160px] shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-5 w-3/4 rounded-sm bg-ods-bg-surface" }) }, `skeleton-cell-${i}`)) }) })
|
|
15337
15337
|
] }) });
|
|
@@ -15366,7 +15366,7 @@ function TestResultsTable({ rows, loading }) {
|
|
|
15366
15366
|
if (loading) {
|
|
15367
15367
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TestResultsSkeleton, {});
|
|
15368
15368
|
}
|
|
15369
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15369
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.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: [
|
|
15370
15370
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTable.Header, { className: "flex flex-col" }),
|
|
15371
15371
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTable.Body, { loading: false })
|
|
15372
15372
|
] }) }) });
|
|
@@ -15428,7 +15428,7 @@ var TEST_RUN_STATUS_TAGS = {
|
|
|
15428
15428
|
function TestRunStatusStat({ status, className }) {
|
|
15429
15429
|
const tag = status === "idle" ? null : TEST_RUN_STATUS_TAGS[status];
|
|
15430
15430
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex min-w-0 flex-col items-start justify-center gap-[var(--spacing-system-xxs)]", className), children: [
|
|
15431
|
-
tag ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15431
|
+
tag ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ZFCR7UYcjs.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: "-" }),
|
|
15432
15432
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: "Status" })
|
|
15433
15433
|
] });
|
|
15434
15434
|
}
|
|
@@ -15472,7 +15472,7 @@ function useTestRunState(campaign) {
|
|
|
15472
15472
|
const stopReason = _nullishCoalesce(campaign.stopReason, () => ( "completed"));
|
|
15473
15473
|
const status = isActive ? "running" : hasRun && isFinished ? stopReason === "completed" ? firstError ? "error" : "success" : stopReason : "idle";
|
|
15474
15474
|
const showTiming = hasRun && campaign.startedAt !== null && (campaign.isRunning || isFinished);
|
|
15475
|
-
const startedLabel = showTiming && campaign.startedAt ?
|
|
15475
|
+
const startedLabel = showTiming && campaign.startedAt ? _chunkPQ2M7P2Ucjs.formatTime.call(void 0, campaign.startedAt) : "00:00 PM";
|
|
15476
15476
|
const durationLabel = showTiming ? formatTestRunDuration(durationMs) : "00:00:00";
|
|
15477
15477
|
const displayRows = _react.useMemo.call(void 0,
|
|
15478
15478
|
() => campaign.results.map(
|
|
@@ -15511,7 +15511,7 @@ function TicketAttachmentsList({ attachments, className, size = "default" }) {
|
|
|
15511
15511
|
),
|
|
15512
15512
|
children: [
|
|
15513
15513
|
attachment.thumbnailSrc ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15514
|
-
|
|
15514
|
+
_chunk7ZFCR7UYcjs.SquareAvatar,
|
|
15515
15515
|
{
|
|
15516
15516
|
src: attachment.thumbnailSrc,
|
|
15517
15517
|
alt: attachment.fileName,
|
|
@@ -15604,7 +15604,7 @@ function TicketNoteCard({ note, onEdit, onDelete, className }) {
|
|
|
15604
15604
|
};
|
|
15605
15605
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex items-start gap-4 rounded-[6px] p-3", "border border-ods-border bg-ods-card", className), children: [
|
|
15606
15606
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15607
|
-
|
|
15607
|
+
_chunk7ZFCR7UYcjs.SquareAvatar,
|
|
15608
15608
|
{
|
|
15609
15609
|
src: note.authorAvatar,
|
|
15610
15610
|
alt: note.authorName,
|
|
@@ -15780,7 +15780,7 @@ function TicketInfoSection({
|
|
|
15780
15780
|
/* @__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: [
|
|
15781
15781
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
15782
15782
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15783
|
-
|
|
15783
|
+
_chunk7ZFCR7UYcjs.SquareAvatar,
|
|
15784
15784
|
{
|
|
15785
15785
|
src: _optionalChain([organization, 'optionalAccess', _335 => _335.imageSrc]),
|
|
15786
15786
|
alt: _optionalChain([organization, 'optionalAccess', _336 => _336.name]),
|
|
@@ -15810,7 +15810,7 @@ function TicketInfoSection({
|
|
|
15810
15810
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: _optionalChain([device, 'optionalAccess', _339 => _339.name]) || "Unassigned", label: "Device", icon: _optionalChain([device, 'optionalAccess', _340 => _340.icon]), onClick: _optionalChain([device, 'optionalAccess', _341 => _341.onClick]) }),
|
|
15811
15811
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-4", children: [
|
|
15812
15812
|
(status || statusLabel) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15813
|
-
|
|
15813
|
+
_chunkGABDE3FMcjs.TicketStatusTag,
|
|
15814
15814
|
{
|
|
15815
15815
|
status: _nullishCoalesce(status, () => ( "")),
|
|
15816
15816
|
label: statusLabel,
|
|
@@ -15849,9 +15849,9 @@ function TicketInfoSection({
|
|
|
15849
15849
|
expanded && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
15850
15850
|
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" }) }),
|
|
15851
15851
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-4 border-b border-ods-border bg-ods-bg p-4", children: [
|
|
15852
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15852
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.SimpleMarkdownRenderer, { content: description }),
|
|
15853
15853
|
attachments && attachments.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Attachments", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketAttachmentsList, { attachments }) }),
|
|
15854
|
-
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,
|
|
15854
|
+
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, _chunk7ZFCR7UYcjs.Tag, { label: tag, variant: "outline", className: "max-w-full" }, tag)) }) }),
|
|
15855
15855
|
(notes || onAddNote) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Notes", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15856
15856
|
TicketNotesSection,
|
|
15857
15857
|
{
|
|
@@ -15874,8 +15874,8 @@ function renderTicketStatusOption(option, isSelected) {
|
|
|
15874
15874
|
const { label, color } = option;
|
|
15875
15875
|
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: [
|
|
15876
15876
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
15877
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15878
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15877
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGABDE3FMcjs.ColorSwatch, { color }),
|
|
15878
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { className: "text-inherit", children: label }) })
|
|
15879
15879
|
] }),
|
|
15880
15880
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
15881
15881
|
] });
|
|
@@ -15884,8 +15884,8 @@ function renderTicketAssigneeOption(option, isSelected) {
|
|
|
15884
15884
|
const { label, imageUrl } = option;
|
|
15885
15885
|
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: [
|
|
15886
15886
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
15887
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15888
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15887
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ZFCR7UYcjs.SquareAvatar, { src: imageUrl, alt: label, fallback: label, size: "sm", variant: "round" }),
|
|
15888
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { className: "text-inherit", children: label }) })
|
|
15889
15889
|
] }),
|
|
15890
15890
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
15891
15891
|
] });
|
|
@@ -15919,9 +15919,9 @@ function TakeOverTicketModal({
|
|
|
15919
15919
|
if (!selectedStatusId || !assigneeId || isPending) return;
|
|
15920
15920
|
onConfirm({ statusId: selectedStatusId, assigneeId });
|
|
15921
15921
|
};
|
|
15922
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
15922
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkPQ2M7P2Ucjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
15923
15923
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
15924
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15924
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPQ2M7P2Ucjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPQ2M7P2Ucjs.ModalTitle, { children: "Take Over Ticket" }) }),
|
|
15925
15925
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
15926
15926
|
"The ticket ",
|
|
15927
15927
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-accent", children: ticketRef }),
|
|
@@ -15929,19 +15929,19 @@ function TakeOverTicketModal({
|
|
|
15929
15929
|
] }),
|
|
15930
15930
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)] md:flex-row", children: [
|
|
15931
15931
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15932
|
-
|
|
15932
|
+
_chunkDSVNFRY5cjs.Autocomplete,
|
|
15933
15933
|
{
|
|
15934
15934
|
label: "Status",
|
|
15935
15935
|
options: statusOptions,
|
|
15936
15936
|
value: selectedStatusId,
|
|
15937
15937
|
onChange: setStatusId,
|
|
15938
15938
|
placeholder: "Select Status",
|
|
15939
|
-
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15939
|
+
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGABDE3FMcjs.ColorSwatch, { color: selectedStatus.color }) : void 0,
|
|
15940
15940
|
renderOption: renderTicketStatusOption
|
|
15941
15941
|
}
|
|
15942
15942
|
) }),
|
|
15943
15943
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15944
|
-
|
|
15944
|
+
_chunkDSVNFRY5cjs.Autocomplete,
|
|
15945
15945
|
{
|
|
15946
15946
|
label: "Assigned",
|
|
15947
15947
|
options: assigneeOptions,
|
|
@@ -15950,7 +15950,7 @@ function TakeOverTicketModal({
|
|
|
15950
15950
|
placeholder: "Select Technician",
|
|
15951
15951
|
loading: assigneesLoading,
|
|
15952
15952
|
startAdornment: selectedAssignee ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15953
|
-
|
|
15953
|
+
_chunk7ZFCR7UYcjs.SquareAvatar,
|
|
15954
15954
|
{
|
|
15955
15955
|
src: selectedAssignee.imageUrl,
|
|
15956
15956
|
alt: selectedAssignee.label,
|
|
@@ -15963,7 +15963,7 @@ function TakeOverTicketModal({
|
|
|
15963
15963
|
}
|
|
15964
15964
|
) })
|
|
15965
15965
|
] }),
|
|
15966
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
15966
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkPQ2M7P2Ucjs.ModalFooter, { children: [
|
|
15967
15967
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
15968
15968
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
15969
15969
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -16022,9 +16022,9 @@ function ReopenTicketModal({
|
|
|
16022
16022
|
reason: trimmedReason ? trimmedReason.slice(0, REASON_MAX_LENGTH) : null
|
|
16023
16023
|
});
|
|
16024
16024
|
};
|
|
16025
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16025
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkPQ2M7P2Ucjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
16026
16026
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
16027
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16027
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPQ2M7P2Ucjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPQ2M7P2Ucjs.ModalTitle, { children: "Reopen Ticket" }) }),
|
|
16028
16028
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
16029
16029
|
"The ticket ",
|
|
16030
16030
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-accent", children: ticketRef }),
|
|
@@ -16032,19 +16032,19 @@ function ReopenTicketModal({
|
|
|
16032
16032
|
] }),
|
|
16033
16033
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)] md:flex-row", children: [
|
|
16034
16034
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16035
|
-
|
|
16035
|
+
_chunkDSVNFRY5cjs.Autocomplete,
|
|
16036
16036
|
{
|
|
16037
16037
|
label: "Status",
|
|
16038
16038
|
options: statusOptions,
|
|
16039
16039
|
value: selectedStatusId,
|
|
16040
16040
|
onChange: setStatusId,
|
|
16041
16041
|
placeholder: "Select Status",
|
|
16042
|
-
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16042
|
+
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGABDE3FMcjs.ColorSwatch, { color: selectedStatus.color }) : void 0,
|
|
16043
16043
|
renderOption: renderTicketStatusOption
|
|
16044
16044
|
}
|
|
16045
16045
|
) }),
|
|
16046
16046
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16047
|
-
|
|
16047
|
+
_chunkDSVNFRY5cjs.Autocomplete,
|
|
16048
16048
|
{
|
|
16049
16049
|
label: "Assigned",
|
|
16050
16050
|
options: assigneeOptions,
|
|
@@ -16053,7 +16053,7 @@ function ReopenTicketModal({
|
|
|
16053
16053
|
placeholder: "Select Technician",
|
|
16054
16054
|
loading: assigneesLoading,
|
|
16055
16055
|
startAdornment: selectedAssignee ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16056
|
-
|
|
16056
|
+
_chunk7ZFCR7UYcjs.SquareAvatar,
|
|
16057
16057
|
{
|
|
16058
16058
|
src: selectedAssignee.imageUrl,
|
|
16059
16059
|
alt: selectedAssignee.label,
|
|
@@ -16077,7 +16077,7 @@ function ReopenTicketModal({
|
|
|
16077
16077
|
disabled: isPending
|
|
16078
16078
|
}
|
|
16079
16079
|
) }),
|
|
16080
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16080
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkPQ2M7P2Ucjs.ModalFooter, { children: [
|
|
16081
16081
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
16082
16082
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
16083
16083
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -16126,9 +16126,9 @@ function ReopenTicketRequestModal({
|
|
|
16126
16126
|
...showHandoffOption ? { handoffToTechnician: handoff } : {}
|
|
16127
16127
|
});
|
|
16128
16128
|
};
|
|
16129
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16129
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkPQ2M7P2Ucjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
16130
16130
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
16131
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16131
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPQ2M7P2Ucjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPQ2M7P2Ucjs.ModalTitle, { children: "Reopen Ticket" }) }),
|
|
16132
16132
|
/* @__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." }),
|
|
16133
16133
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16134
16134
|
Textarea,
|
|
@@ -16152,7 +16152,7 @@ function ReopenTicketRequestModal({
|
|
|
16152
16152
|
disabled: isPending
|
|
16153
16153
|
}
|
|
16154
16154
|
),
|
|
16155
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16155
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkPQ2M7P2Ucjs.ModalFooter, { children: [
|
|
16156
16156
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1", children: "Cancel" }),
|
|
16157
16157
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { type: "button", variant: "accent", onClick: handleConfirm, loading: isPending, className: "flex-1", children: "Reopen Ticket" })
|
|
16158
16158
|
] })
|
|
@@ -16280,7 +16280,7 @@ function PhotoWall({ images, columns = 2, speed = 24, fadeColor, className, load
|
|
|
16280
16280
|
return Array.from(byUrl.values());
|
|
16281
16281
|
}, [images, requestWidth]);
|
|
16282
16282
|
const drawnWidth = _nullishCoalesce(requestWidth, () => ( void 0));
|
|
16283
|
-
const drawnUrl = _react.useCallback.call(void 0, (url) => drawnWidth ?
|
|
16283
|
+
const drawnUrl = _react.useCallback.call(void 0, (url) => drawnWidth ? _chunkHOTM4UM6cjs.resizedImageUrl.call(void 0, url, drawnWidth) : url, [drawnWidth]);
|
|
16284
16284
|
const urls = _react.useMemo.call(void 0, () => unique.map((image) => drawnUrl(image.url)), [unique, drawnUrl]);
|
|
16285
16285
|
const orientations = usePhotoOrientations(urls);
|
|
16286
16286
|
const layout = _react.useMemo.call(void 0, () => {
|
|
@@ -16309,7 +16309,7 @@ function PhotoWall({ images, columns = 2, speed = 24, fadeColor, className, load
|
|
|
16309
16309
|
gap: COLUMN_GAP_PX
|
|
16310
16310
|
};
|
|
16311
16311
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: rootRef, "aria-hidden": "true", className: _chunk3ATAYP36cjs.cn.call(void 0, "grid overflow-hidden", className), style: gridStyle, children: columnsToDraw ? columnsToDraw.map((column, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16312
|
-
|
|
16312
|
+
_chunkBV5WZVOPcjs.MarqueeWall,
|
|
16313
16313
|
{
|
|
16314
16314
|
axis: "y",
|
|
16315
16315
|
reverse: index % 2 === 1,
|
|
@@ -16327,7 +16327,7 @@ function PhotoWall({ images, columns = 2, speed = 24, fadeColor, className, load
|
|
|
16327
16327
|
className: "relative w-full shrink-0 overflow-hidden rounded-lg bg-ods-card",
|
|
16328
16328
|
style: { aspectRatio: PHOTO_WALL_FRAME[photo.orientation] },
|
|
16329
16329
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16330
|
-
|
|
16330
|
+
_chunkHOTM4UM6cjs.next_image_default,
|
|
16331
16331
|
{
|
|
16332
16332
|
src: photo.url,
|
|
16333
16333
|
alt: _nullishCoalesce(photo.alt, () => ( "")),
|
|
@@ -16558,7 +16558,7 @@ function PhoneFrame({ dateLabel, timeLabel, children, className }) {
|
|
|
16558
16558
|
"div",
|
|
16559
16559
|
{
|
|
16560
16560
|
className: _chunk3ATAYP36cjs.cn.call(void 0, "h-[617px] w-[299px] shrink-0 rounded-[48px] border border-ods-border bg-black p-2.5", className),
|
|
16561
|
-
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "relative flex h-full flex-col overflow-hidden rounded-[38px]",
|
|
16561
|
+
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "relative flex h-full flex-col overflow-hidden rounded-[38px]", _chunkDSVNFRY5cjs.DEVICE_WALLPAPER_CLASS), children: [
|
|
16562
16562
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16563
16563
|
"div",
|
|
16564
16564
|
{
|
|
@@ -16724,7 +16724,7 @@ var TRIAL_TERM_ICONS = {
|
|
|
16724
16724
|
};
|
|
16725
16725
|
var DEFAULT_TRIAL_TERMS = ["cancel", "length", "noContract"];
|
|
16726
16726
|
function trialBenefits(trialDays, terms = DEFAULT_TRIAL_TERMS) {
|
|
16727
|
-
const labels =
|
|
16727
|
+
const labels = _chunkCWRVTQUOcjs.trialLabels.call(void 0, trialDays);
|
|
16728
16728
|
return terms.flatMap((term) => {
|
|
16729
16729
|
const label = labels[term];
|
|
16730
16730
|
return label ? [{ icon: TRIAL_TERM_ICONS[term], label }] : [];
|
|
@@ -16808,7 +16808,7 @@ function AnalyzingState({ label, className }) {
|
|
|
16808
16808
|
}) }),
|
|
16809
16809
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1.5 text-center text-ods-text-secondary text-h4", children: [
|
|
16810
16810
|
label,
|
|
16811
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16811
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPQ2M7P2Ucjs.ChatTypingIndicator, { "aria-hidden": true, size: "sm", dotClassName: "bg-ods-text-secondary motion-reduce:animate-none" })
|
|
16812
16812
|
] })
|
|
16813
16813
|
] });
|
|
16814
16814
|
}
|
|
@@ -16822,7 +16822,7 @@ var INCIDENT_TONE = {
|
|
|
16822
16822
|
approved: "success"
|
|
16823
16823
|
};
|
|
16824
16824
|
function IncidentStatusLine({ status, label, className }) {
|
|
16825
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16825
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGABDE3FMcjs.StatusLine, { tone: INCIDENT_TONE[status], label, className });
|
|
16826
16826
|
}
|
|
16827
16827
|
function SourceTag({ children }) {
|
|
16828
16828
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex shrink-0 rounded-md border border-ods-border px-2 py-1 text-ods-text-secondary text-h5", children });
|
|
@@ -17633,7 +17633,7 @@ function CompleteAccountForm({
|
|
|
17633
17633
|
),
|
|
17634
17634
|
children: [
|
|
17635
17635
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
17636
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
17636
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkYXKB5WREcjs.accentSentenceMarks.call(void 0, title) }),
|
|
17637
17637
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
17638
17638
|
] }),
|
|
17639
17639
|
ssoProviders && ssoProviders.length > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -17781,7 +17781,7 @@ function CreateOrganizationForm({
|
|
|
17781
17781
|
),
|
|
17782
17782
|
children: [
|
|
17783
17783
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
17784
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
17784
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkYXKB5WREcjs.accentSentenceMarks.call(void 0, title) }),
|
|
17785
17785
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
17786
17786
|
] }),
|
|
17787
17787
|
email === void 0 ? null : emailReadOnly ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHTRILBJDcjs.Input, { type: "email", label: emailReadOnlyLabel, value: email, readOnly: true, disabled: true }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -17922,7 +17922,7 @@ function InviteLinkInvalidModal({
|
|
|
17922
17922
|
),
|
|
17923
17923
|
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: [
|
|
17924
17924
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-mf)]", children: [
|
|
17925
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "flex-1 tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
17925
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "flex-1 tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkYXKB5WREcjs.accentSentenceMarks.call(void 0, title) }),
|
|
17926
17926
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17927
17927
|
"button",
|
|
17928
17928
|
{
|
|
@@ -17996,7 +17996,7 @@ function LoginForm({
|
|
|
17996
17996
|
),
|
|
17997
17997
|
children: [
|
|
17998
17998
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
17999
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
17999
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkYXKB5WREcjs.accentSentenceMarks.call(void 0, title) }),
|
|
18000
18000
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
18001
18001
|
] }),
|
|
18002
18002
|
ssoProviders.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -18091,7 +18091,7 @@ function NoAccountNotice({
|
|
|
18091
18091
|
),
|
|
18092
18092
|
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: [
|
|
18093
18093
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
18094
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
18094
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkYXKB5WREcjs.accentSentenceMarks.call(void 0, title) }),
|
|
18095
18095
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: description })
|
|
18096
18096
|
] }),
|
|
18097
18097
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { type: "button", variant: "outline", fullWidth: true, onClick: onBackToLogin, children: backLabel })
|
|
@@ -18140,7 +18140,7 @@ function OpenFrameSsoLoginForm({
|
|
|
18140
18140
|
),
|
|
18141
18141
|
children: [
|
|
18142
18142
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
18143
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
18143
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkYXKB5WREcjs.accentSentenceMarks.call(void 0, title) }),
|
|
18144
18144
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
18145
18145
|
] }),
|
|
18146
18146
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -18245,7 +18245,7 @@ function OpenFrameSsoSignUpForm({
|
|
|
18245
18245
|
),
|
|
18246
18246
|
children: [
|
|
18247
18247
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
18248
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
18248
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkYXKB5WREcjs.accentSentenceMarks.call(void 0, title) }),
|
|
18249
18249
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
18250
18250
|
] }),
|
|
18251
18251
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -18351,7 +18351,7 @@ function PasswordResetForm({
|
|
|
18351
18351
|
),
|
|
18352
18352
|
children: [
|
|
18353
18353
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
18354
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
18354
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkYXKB5WREcjs.accentSentenceMarks.call(void 0, title) }),
|
|
18355
18355
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
18356
18356
|
] }),
|
|
18357
18357
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -18468,12 +18468,12 @@ function SsoJoinForm({
|
|
|
18468
18468
|
),
|
|
18469
18469
|
children: [
|
|
18470
18470
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
18471
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
18471
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkYXKB5WREcjs.accentSentenceMarks.call(void 0, title) }),
|
|
18472
18472
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
18473
18473
|
] }),
|
|
18474
18474
|
/* @__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: [
|
|
18475
18475
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18476
|
-
|
|
18476
|
+
_chunk7ZFCR7UYcjs.SquareAvatar,
|
|
18477
18477
|
{
|
|
18478
18478
|
size: "lg",
|
|
18479
18479
|
variant: "round",
|
|
@@ -18487,7 +18487,7 @@ function SsoJoinForm({
|
|
|
18487
18487
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h4", children: displayName }),
|
|
18488
18488
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: organizationName })
|
|
18489
18489
|
] }),
|
|
18490
|
-
roles.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex shrink-0 items-center gap-[var(--spacing-system-xs)]", children: roles.map((role) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18490
|
+
roles.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex shrink-0 items-center gap-[var(--spacing-system-xs)]", children: roles.map((role) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ZFCR7UYcjs.Tag, { variant: "grey", label: role }, role)) })
|
|
18491
18491
|
] }),
|
|
18492
18492
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18493
18493
|
CheckboxBlock,
|
|
@@ -18730,7 +18730,7 @@ function ChangelogManager({
|
|
|
18730
18730
|
),
|
|
18731
18731
|
/* @__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)" }) }),
|
|
18732
18732
|
tagOptions && tagLabelOf(entry.tag) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18733
|
-
|
|
18733
|
+
_chunkYXKB5WREcjs.StatusBadge,
|
|
18734
18734
|
{
|
|
18735
18735
|
variant: "button",
|
|
18736
18736
|
singleLine: true,
|
|
@@ -18794,9 +18794,9 @@ function ChangelogManager({
|
|
|
18794
18794
|
] }),
|
|
18795
18795
|
tagOptions && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-1", children: [
|
|
18796
18796
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK6VWTUCHcjs.Label, { className: "text-ods-text-secondary", children: tagLabel }),
|
|
18797
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
18798
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18799
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18797
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDSVNFRY5cjs.Select, { value: _nullishCoalesce(entry.tag, () => ( "")), onValueChange: (value) => updateEntry(index, "tag", value), children: [
|
|
18798
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectTrigger, { className: "bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectValue, { placeholder: tagLabel }) }),
|
|
18799
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectContent, { children: tagOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
18800
18800
|
] })
|
|
18801
18801
|
] })
|
|
18802
18802
|
] })
|
|
@@ -18993,7 +18993,7 @@ function EntityTagBadges({ tags, basePath, max, className }) {
|
|
|
18993
18993
|
const label = (tag.name || "").toUpperCase();
|
|
18994
18994
|
if (basePath && tag.slug) {
|
|
18995
18995
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _link2.default, { href: `${basePath}?tags=${tag.slug}`, className: "inline-flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18996
|
-
|
|
18996
|
+
_chunkYXKB5WREcjs.StatusBadge,
|
|
18997
18997
|
{
|
|
18998
18998
|
text: label,
|
|
18999
18999
|
variant: "card",
|
|
@@ -19001,9 +19001,9 @@ function EntityTagBadges({ tags, basePath, max, className }) {
|
|
|
19001
19001
|
}
|
|
19002
19002
|
) }, key);
|
|
19003
19003
|
}
|
|
19004
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19004
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYXKB5WREcjs.StatusBadge, { text: label, variant: "card", className: BADGE_CLASS }, key);
|
|
19005
19005
|
}),
|
|
19006
|
-
overflow > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19006
|
+
overflow > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYXKB5WREcjs.StatusBadge, { text: `+${overflow}`, variant: "card", className: `${BADGE_CLASS} text-ods-text-secondary` })
|
|
19007
19007
|
] });
|
|
19008
19008
|
}
|
|
19009
19009
|
|
|
@@ -19099,7 +19099,7 @@ var SectionButton = ({
|
|
|
19099
19099
|
}
|
|
19100
19100
|
),
|
|
19101
19101
|
section.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19102
|
-
|
|
19102
|
+
_chunkYXKB5WREcjs.StatusBadge,
|
|
19103
19103
|
{
|
|
19104
19104
|
text: section.badge.text,
|
|
19105
19105
|
variant: section.badge.variant || "button",
|
|
@@ -19118,7 +19118,7 @@ var SectionButton = ({
|
|
|
19118
19118
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-wrap items-start gap-2", children: [
|
|
19119
19119
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3ATAYP36cjs.cn.call(void 0, titleClasses, "text-h3"), style: { textAlign: "left" }, children: section.title }),
|
|
19120
19120
|
section.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19121
|
-
|
|
19121
|
+
_chunkYXKB5WREcjs.StatusBadge,
|
|
19122
19122
|
{
|
|
19123
19123
|
text: section.badge.text,
|
|
19124
19124
|
variant: section.badge.variant || "button",
|
|
@@ -19435,7 +19435,7 @@ function UnifiedUI({ state, handlers, config, iframeRef }) {
|
|
|
19435
19435
|
sandbox: "allow-scripts allow-same-origin allow-popups allow-presentation",
|
|
19436
19436
|
title: config.title,
|
|
19437
19437
|
loading: "eager",
|
|
19438
|
-
...
|
|
19438
|
+
..._chunkHOTM4UM6cjs.fetchPriorityProp.call(void 0, "high")
|
|
19439
19439
|
},
|
|
19440
19440
|
iframeKey
|
|
19441
19441
|
),
|
|
@@ -20191,15 +20191,15 @@ function useLoading() {
|
|
|
20191
20191
|
|
|
20192
20192
|
|
|
20193
20193
|
function isAlreadyThere(file, existing) {
|
|
20194
|
-
const key =
|
|
20194
|
+
const key = _chunkYXKB5WREcjs.mediaNameKey.call(void 0, file.name);
|
|
20195
20195
|
if (!key) return false;
|
|
20196
20196
|
return existing.some(
|
|
20197
|
-
(item) => (item.title ?
|
|
20197
|
+
(item) => (item.title ? _chunkYXKB5WREcjs.mediaNameKey.call(void 0, item.title) === key : false) || (item.media_url ? _chunkYXKB5WREcjs.mediaNameKey.call(void 0, item.media_url) === key : false)
|
|
20198
20198
|
);
|
|
20199
20199
|
}
|
|
20200
20200
|
var isFileDrag = (event) => Array.from(event.dataTransfer.types).includes("Files");
|
|
20201
|
-
var isVideoItem = (item) =>
|
|
20202
|
-
var MEDIA_KIND_ACCEPT = { image:
|
|
20201
|
+
var isVideoItem = (item) => _chunkYXKB5WREcjs.isVideoMedia.call(void 0, item) || item.media_type === "demo";
|
|
20202
|
+
var MEDIA_KIND_ACCEPT = { image: _chunkYXKB5WREcjs.IMAGE_FILE_ACCEPT, video: "video/*", both: _chunkYXKB5WREcjs.MEDIA_FILE_ACCEPT };
|
|
20203
20203
|
var MEDIA_KIND_COPY = {
|
|
20204
20204
|
image: { noun: "pictures", refusal: "Not a picture" },
|
|
20205
20205
|
video: { noun: "videos", refusal: "Not a video" },
|
|
@@ -20223,12 +20223,12 @@ function useMediaIntake({ existing, onUpload, onUploaded, kinds = "both" }) {
|
|
|
20223
20223
|
const seen = /* @__PURE__ */ new Set();
|
|
20224
20224
|
const accepted = [];
|
|
20225
20225
|
for (const file of files) {
|
|
20226
|
-
const mediaType =
|
|
20226
|
+
const mediaType = _chunkYXKB5WREcjs.fileMediaType.call(void 0, file);
|
|
20227
20227
|
if (!mediaType || kinds !== "both" && mediaType !== kinds) {
|
|
20228
20228
|
unsupported.push(file.name);
|
|
20229
20229
|
continue;
|
|
20230
20230
|
}
|
|
20231
|
-
const contentKey = await
|
|
20231
|
+
const contentKey = await _chunkYXKB5WREcjs.fileContentKey.call(void 0, file).catch(() => `${file.name}:${file.size}`);
|
|
20232
20232
|
if (seen.has(contentKey) || isAlreadyThere(file, existingRef.current)) {
|
|
20233
20233
|
duplicates.push(file.name);
|
|
20234
20234
|
continue;
|
|
@@ -20409,7 +20409,7 @@ function MediaGalleryManager({
|
|
|
20409
20409
|
className: _chunk3ATAYP36cjs.cn.call(void 0, "grid grid-cols-1 gap-4 content-md:grid-cols-2", columns === 3 && "content-lg:grid-cols-3"),
|
|
20410
20410
|
children: [
|
|
20411
20411
|
media.map((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
20412
|
-
|
|
20412
|
+
_chunkYXKB5WREcjs.Card,
|
|
20413
20413
|
{
|
|
20414
20414
|
className: "group relative border-ods-border transition-colors hover:border-ods-accent/30",
|
|
20415
20415
|
draggable: true,
|
|
@@ -20434,9 +20434,9 @@ function MediaGalleryManager({
|
|
|
20434
20434
|
) }),
|
|
20435
20435
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative aspect-video overflow-hidden rounded-lg bg-ods-bg", children: isVideoItem(item) ? (
|
|
20436
20436
|
// <Video> SSOT (MuxPlayer): plays Mux HLS and MP4 alike; fit="cover" crops to the cell.
|
|
20437
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20437
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYXKB5WREcjs.Video, { kind: "file", url: item.media_url, fit: "cover", className: "h-full w-full" })
|
|
20438
20438
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20439
|
-
|
|
20439
|
+
_chunkHOTM4UM6cjs.next_image_default,
|
|
20440
20440
|
{
|
|
20441
20441
|
src: item.media_url,
|
|
20442
20442
|
alt: item.title || "Media",
|
|
@@ -20449,17 +20449,17 @@ function MediaGalleryManager({
|
|
|
20449
20449
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
20450
20450
|
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" }),
|
|
20451
20451
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
20452
|
-
|
|
20452
|
+
_chunkDSVNFRY5cjs.Select,
|
|
20453
20453
|
{
|
|
20454
20454
|
value: item.media_type,
|
|
20455
20455
|
onValueChange: (value) => update(index, { media_type: value }),
|
|
20456
20456
|
children: [
|
|
20457
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20458
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
20459
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20460
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20461
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20462
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20457
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectTrigger, { className: "h-8 bg-ods-bg text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectValue, {}) }),
|
|
20458
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDSVNFRY5cjs.SelectContent, { className: "bg-ods-card", children: [
|
|
20459
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectItem, { value: "image", children: "Image" }),
|
|
20460
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectItem, { value: "video", children: "Video" }),
|
|
20461
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectItem, { value: "screenshot", children: "Screenshot" }),
|
|
20462
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectItem, { value: "demo", children: "Demo" })
|
|
20463
20463
|
] })
|
|
20464
20464
|
]
|
|
20465
20465
|
}
|
|
@@ -20486,7 +20486,7 @@ function MediaGalleryManager({
|
|
|
20486
20486
|
},
|
|
20487
20487
|
_nullishCoalesce(item.id, () => ( `${item.media_url}-${index}`))
|
|
20488
20488
|
)),
|
|
20489
|
-
pending.map((name, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
20489
|
+
pending.map((name, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYXKB5WREcjs.Card, { className: "border-ods-border", "aria-busy": "true", children: [
|
|
20490
20490
|
/* @__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" }) }),
|
|
20491
20491
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate p-3 text-ods-text-secondary text-h6", children: name })
|
|
20492
20492
|
] }, `pending-${name}-${index}`))
|
|
@@ -20541,60 +20541,60 @@ function CardSkeleton({
|
|
|
20541
20541
|
function VendorCardContent({ showMetadata }) {
|
|
20542
20542
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-3 p-4", children: [
|
|
20543
20543
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start gap-3", children: [
|
|
20544
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[60px] w-[60px] flex-shrink-0 items-center justify-center rounded-lg border border-ods-border bg-ods-bg p-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20544
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[60px] w-[60px] flex-shrink-0 items-center justify-center rounded-lg border border-ods-border bg-ods-bg p-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.MediaSkeleton.Avatar, { size: "sm", className: "h-11 w-11" }) }),
|
|
20545
20545
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center space-y-1 py-2", children: [
|
|
20546
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20547
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20546
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Subheading, { className: "w-3/4" }),
|
|
20547
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "w-1/2" })
|
|
20548
20548
|
] })
|
|
20549
20549
|
] }),
|
|
20550
20550
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-full items-center overflow-hidden", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "w-full space-y-1", children: [
|
|
20551
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20552
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20551
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-full" }),
|
|
20552
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-2/3" })
|
|
20553
20553
|
] }) }),
|
|
20554
20554
|
showMetadata && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center justify-between gap-2", children: [
|
|
20555
20555
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-shrink items-center gap-3 content-md:gap-4", children: [
|
|
20556
20556
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-shrink-0 items-center gap-1", children: [
|
|
20557
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20558
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20557
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.MediaSkeleton.Icon, { size: "sm", className: "h-5 w-5" }),
|
|
20558
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "w-8" })
|
|
20559
20559
|
] }),
|
|
20560
20560
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-shrink-0 items-center gap-1", children: [
|
|
20561
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20562
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20561
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.MediaSkeleton.Icon, { size: "sm", className: "h-5 w-5" }),
|
|
20562
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "w-10" })
|
|
20563
20563
|
] })
|
|
20564
20564
|
] }),
|
|
20565
20565
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-shrink-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1.5 rounded border border-ods-border bg-ods-bg px-2.5 py-1.5", children: [
|
|
20566
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-sm bg-ods-border", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20567
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20566
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-sm bg-ods-border", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.MediaSkeleton.Icon, { size: "sm", className: "h-2.5 w-2.5" }) }),
|
|
20567
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "w-16" })
|
|
20568
20568
|
] }) })
|
|
20569
20569
|
] })
|
|
20570
20570
|
] });
|
|
20571
20571
|
}
|
|
20572
20572
|
function BlogCardContent({ showActions, showMetadata }) {
|
|
20573
20573
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
20574
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "blog-card-image-container relative aspect-[1200/630] w-full overflow-hidden bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20574
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "blog-card-image-container relative aspect-[1200/630] w-full overflow-hidden bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.MediaSkeleton.CardImage, {}) }),
|
|
20575
20575
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-grow flex-col p-4", children: [
|
|
20576
20576
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mb-3 flex min-h-[50.4px] items-center content-md:min-h-[56px] content-lg:min-h-[61.6px]", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "w-full space-y-1", children: [
|
|
20577
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20578
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20577
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Subheading, { className: "w-full" }),
|
|
20578
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Subheading, { className: "w-3/4" })
|
|
20579
20579
|
] }) }),
|
|
20580
20580
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mb-3 flex h-[28px] items-center gap-2", children: [
|
|
20581
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20582
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20581
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.InteractiveSkeleton.Chip, { className: "w-16" }),
|
|
20582
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.InteractiveSkeleton.Chip, { className: "w-12" })
|
|
20583
20583
|
] }),
|
|
20584
20584
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mb-3 flex min-h-[42px] items-center content-md:min-h-[45px] content-lg:min-h-[48px]", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "w-full space-y-1", children: [
|
|
20585
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20586
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20585
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-full" }),
|
|
20586
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-1/2" })
|
|
20587
20587
|
] }) }),
|
|
20588
|
-
showActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20588
|
+
showActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.InteractiveSkeleton.Button, { className: "h-8 w-24" }) }),
|
|
20589
20589
|
showMetadata && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-auto", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between gap-4 border-t border-ods-border pt-4", children: [
|
|
20590
20590
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
20591
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20592
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20591
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.MediaSkeleton.Avatar, { size: "sm" }),
|
|
20592
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "w-16" })
|
|
20593
20593
|
] }),
|
|
20594
20594
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 items-center gap-3 text-ods-text-muted", children: [
|
|
20595
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20595
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "w-12" }),
|
|
20596
20596
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-1 w-1 rounded-full bg-ods-skeleton" }),
|
|
20597
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20597
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "w-16" })
|
|
20598
20598
|
] })
|
|
20599
20599
|
] }) })
|
|
20600
20600
|
] })
|
|
@@ -20602,35 +20602,35 @@ function BlogCardContent({ showActions, showMetadata }) {
|
|
|
20602
20602
|
}
|
|
20603
20603
|
function CategoryCardContent() {
|
|
20604
20604
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4 p-4 content-md:p-6", children: [
|
|
20605
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex gap-2 content-md:gap-3", children: Array.from({ length: 6 }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20605
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex gap-2 content-md:gap-3", children: Array.from({ length: 6 }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.MediaSkeleton.Icon, { size: "lg", className: "flex-shrink-0" }, index)) }),
|
|
20606
20606
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
20607
20607
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-1", children: [
|
|
20608
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20609
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20608
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Subheading, { className: "w-3/4" }),
|
|
20609
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "w-1/2" })
|
|
20610
20610
|
] }),
|
|
20611
20611
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start justify-between gap-4 content-md:items-end content-md:gap-6", children: [
|
|
20612
20612
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 space-y-2", children: [
|
|
20613
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20614
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20613
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-full" }),
|
|
20614
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-2/3" })
|
|
20615
20615
|
] }),
|
|
20616
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20616
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.InteractiveSkeleton.Button, { className: "h-10 w-10 flex-shrink-0 content-md:h-12 content-md:w-12" })
|
|
20617
20617
|
] })
|
|
20618
20618
|
] })
|
|
20619
20619
|
] });
|
|
20620
20620
|
}
|
|
20621
20621
|
function AlternativeCardContent({ showActions }) {
|
|
20622
20622
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-4 p-4", children: [
|
|
20623
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20623
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.MediaSkeleton.Avatar, { size: "md", className: "flex-shrink-0" }),
|
|
20624
20624
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 space-y-2", children: [
|
|
20625
20625
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between", children: [
|
|
20626
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20627
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20626
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Subheading, { className: "w-1/3" }),
|
|
20627
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "w-16" })
|
|
20628
20628
|
] }),
|
|
20629
20629
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-1", children: [
|
|
20630
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20631
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20630
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-full" }),
|
|
20631
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-5/6" })
|
|
20632
20632
|
] }),
|
|
20633
|
-
showActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20633
|
+
showActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.InteractiveSkeleton.Button, { className: "h-8 w-20" }) })
|
|
20634
20634
|
] })
|
|
20635
20635
|
] });
|
|
20636
20636
|
}
|
|
@@ -20681,12 +20681,12 @@ function HeroSkeleton() {
|
|
|
20681
20681
|
background: "radial-gradient(circle at 50% 0%, #242323 0%, #1A1A1A 100%)"
|
|
20682
20682
|
},
|
|
20683
20683
|
children: [
|
|
20684
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20684
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Heading, { className: "mb-4 h-12 w-full max-w-4xl content-md:mb-6 content-md:h-20 content-lg:h-24" }),
|
|
20685
20685
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mb-8 w-full max-w-4xl space-y-3 px-2 content-md:mb-10", children: [
|
|
20686
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20687
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20686
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "h-5 content-md:h-7" }),
|
|
20687
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "mx-auto h-5 w-3/4 content-md:h-7" })
|
|
20688
20688
|
] }),
|
|
20689
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20689
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.InteractiveSkeleton.Button, { className: "h-12 w-full content-md:w-64" })
|
|
20690
20690
|
]
|
|
20691
20691
|
}
|
|
20692
20692
|
);
|
|
@@ -20697,14 +20697,14 @@ function SearchContainerSkeleton({
|
|
|
20697
20697
|
}) {
|
|
20698
20698
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "space-y-4", className || ""), children: [
|
|
20699
20699
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex gap-2 content-md:gap-4", children: [
|
|
20700
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20701
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20700
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.InteractiveSkeleton.Input, { className: "flex-1" }),
|
|
20701
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.InteractiveSkeleton.Button, { className: "w-32 content-md:w-40" })
|
|
20702
20702
|
] }),
|
|
20703
20703
|
showFilters && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-wrap gap-2", children: [
|
|
20704
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20705
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20706
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20707
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20704
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.InteractiveSkeleton.Chip, {}),
|
|
20705
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.InteractiveSkeleton.Chip, { className: "w-24" }),
|
|
20706
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.InteractiveSkeleton.Chip, { className: "w-16" }),
|
|
20707
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.InteractiveSkeleton.Chip, { className: "w-20" })
|
|
20708
20708
|
] })
|
|
20709
20709
|
] });
|
|
20710
20710
|
}
|
|
@@ -20723,7 +20723,7 @@ function CategorySidebarSkeleton({ className }) {
|
|
|
20723
20723
|
{ type: "file", width: "w-36" }
|
|
20724
20724
|
];
|
|
20725
20725
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "w-full content-lg:w-[320px]", className), children: [
|
|
20726
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20726
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.UnifiedSkeleton, { className: "mb-4 h-[14px] w-24 rounded" }),
|
|
20727
20727
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-1.5", children: items.map((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
20728
20728
|
"div",
|
|
20729
20729
|
{
|
|
@@ -20733,12 +20733,12 @@ function CategorySidebarSkeleton({ className }) {
|
|
|
20733
20733
|
),
|
|
20734
20734
|
children: [
|
|
20735
20735
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2.5", children: [
|
|
20736
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20737
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20736
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.UnifiedSkeleton, { className: "h-4 w-4 shrink-0 rounded" }),
|
|
20737
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.UnifiedSkeleton, { className: `h-[14px] ${item.width} rounded` })
|
|
20738
20738
|
] }),
|
|
20739
20739
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-[18px] items-center gap-2", children: [
|
|
20740
|
-
item.hasBadge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20741
|
-
item.type === "folder" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20740
|
+
item.hasBadge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.UnifiedSkeleton, { className: "h-[18px] w-14 rounded" }),
|
|
20741
|
+
item.type === "folder" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.UnifiedSkeleton, { className: "h-4 w-4 rounded" })
|
|
20742
20742
|
] })
|
|
20743
20743
|
]
|
|
20744
20744
|
},
|
|
@@ -20748,13 +20748,13 @@ function CategorySidebarSkeleton({ className }) {
|
|
|
20748
20748
|
}
|
|
20749
20749
|
function BreadcrumbSkeleton({ className }) {
|
|
20750
20750
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "mb-6 flex items-center space-x-1", className), children: [
|
|
20751
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20752
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20753
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20754
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20755
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20756
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20757
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20751
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "w-16" }),
|
|
20752
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.UnifiedSkeleton, { variant: "default", className: "h-4 w-4 rounded-full" }),
|
|
20753
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "w-24" }),
|
|
20754
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.UnifiedSkeleton, { variant: "default", className: "h-4 w-4 rounded-full" }),
|
|
20755
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "w-32" }),
|
|
20756
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.UnifiedSkeleton, { variant: "default", className: "h-4 w-4 rounded-full" }),
|
|
20757
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "w-24" })
|
|
20758
20758
|
] });
|
|
20759
20759
|
}
|
|
20760
20760
|
function ResultsHeaderSkeleton({ className }) {
|
|
@@ -20765,7 +20765,7 @@ function ResultsHeaderSkeleton({ className }) {
|
|
|
20765
20765
|
"mb-6 flex flex-col items-start justify-between gap-4 content-md:flex-row content-md:items-center",
|
|
20766
20766
|
className
|
|
20767
20767
|
),
|
|
20768
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20768
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-48" }) })
|
|
20769
20769
|
}
|
|
20770
20770
|
);
|
|
20771
20771
|
}
|
|
@@ -20799,35 +20799,35 @@ function ArticleLayoutSkeleton({ className }) {
|
|
|
20799
20799
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "article", { className: _chunk3ATAYP36cjs.cn.call(void 0, "mx-auto max-w-4xl", className), children: [
|
|
20800
20800
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "header", { className: "mb-8 space-y-4 content-md:mb-12 content-md:space-y-6", children: [
|
|
20801
20801
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex gap-2", children: [
|
|
20802
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20803
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20802
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.InteractiveSkeleton.Chip, {}),
|
|
20803
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.InteractiveSkeleton.Chip, { className: "w-16" })
|
|
20804
20804
|
] }),
|
|
20805
20805
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-3", children: [
|
|
20806
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20807
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20806
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Heading, { className: "w-full" }),
|
|
20807
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Heading, { className: "w-3/4" })
|
|
20808
20808
|
] }),
|
|
20809
20809
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-4 border-t border-ods-divider pt-4", children: [
|
|
20810
20810
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
20811
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20812
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20811
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.MediaSkeleton.Avatar, { size: "sm" }),
|
|
20812
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "w-24" })
|
|
20813
20813
|
] }),
|
|
20814
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20815
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20814
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "w-20" }),
|
|
20815
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "w-16" })
|
|
20816
20816
|
] })
|
|
20817
20817
|
] }),
|
|
20818
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mb-8 content-md:mb-12", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20818
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mb-8 content-md:mb-12", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.MediaSkeleton.CardImage, { className: "h-64 w-full content-md:h-96" }) }),
|
|
20819
20819
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "prose prose-invert max-w-none space-y-6", children: [
|
|
20820
20820
|
Array.from({ length: 12 }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
20821
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20822
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20823
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20824
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20821
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-full" }),
|
|
20822
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-full" }),
|
|
20823
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-5/6" }),
|
|
20824
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-3/4" })
|
|
20825
20825
|
] }, index)),
|
|
20826
20826
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "py-4", children: [
|
|
20827
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20827
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Subheading, { className: "mb-4 w-2/3" }),
|
|
20828
20828
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
20829
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20830
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20829
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-full" }),
|
|
20830
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-4/5" })
|
|
20831
20831
|
] })
|
|
20832
20832
|
] })
|
|
20833
20833
|
] })
|
|
@@ -21053,11 +21053,11 @@ function StatsSectionSkeleton({ className, columns = 3 }) {
|
|
|
21053
21053
|
className
|
|
21054
21054
|
),
|
|
21055
21055
|
children: Array.from({ length: columns }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rounded-lg border border-ods-border bg-ods-card p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
21056
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21057
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21056
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.MediaSkeleton.Icon, { size: "lg" }),
|
|
21057
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Subheading, { className: "w-3/4" }),
|
|
21058
21058
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
21059
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21060
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21059
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-full" }),
|
|
21060
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-3/4" })
|
|
21061
21061
|
] })
|
|
21062
21062
|
] }) }, i))
|
|
21063
21063
|
}
|
|
@@ -21212,7 +21212,7 @@ function useContentLoading(isLoading) {
|
|
|
21212
21212
|
|
|
21213
21213
|
function ParagraphSkeleton({ className, lines = 4 }) {
|
|
21214
21214
|
const lineWidths = ["w-full", "w-full", "w-5/6", "w-3/4", "w-4/5", "w-2/3"];
|
|
21215
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "space-y-2", className), children: Array.from({ length: lines }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21215
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "space-y-2", className), children: Array.from({ length: lines }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: lineWidths[index % lineWidths.length] }, index)) });
|
|
21216
21216
|
}
|
|
21217
21217
|
function ListSkeleton({
|
|
21218
21218
|
className,
|
|
@@ -21222,12 +21222,12 @@ function ListSkeleton({
|
|
|
21222
21222
|
}) {
|
|
21223
21223
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "space-y-3", className), children: Array.from({ length: items }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between", children: [
|
|
21224
21224
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
21225
|
-
showIcons && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21226
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21225
|
+
showIcons && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.MediaSkeleton.Icon, { size: "sm" }),
|
|
21226
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-32 content-md:w-48" })
|
|
21227
21227
|
] }),
|
|
21228
21228
|
showActions && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
21229
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21230
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21229
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "w-8" }),
|
|
21230
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.UnifiedSkeleton, { variant: "default", className: "h-4 w-4" })
|
|
21231
21231
|
] })
|
|
21232
21232
|
] }, index)) });
|
|
21233
21233
|
}
|
|
@@ -21237,13 +21237,13 @@ function TableSkeleton({
|
|
|
21237
21237
|
columns = 4
|
|
21238
21238
|
}) {
|
|
21239
21239
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "space-y-4", className), children: [
|
|
21240
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid gap-4", style: { gridTemplateColumns: `repeat(${columns}, 1fr)` }, children: Array.from({ length: columns }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21240
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid gap-4", style: { gridTemplateColumns: `repeat(${columns}, 1fr)` }, children: Array.from({ length: columns }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Subheading, { className: "w-3/4" }, index)) }),
|
|
21241
21241
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-3", children: Array.from({ length: rows }).map((_, rowIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21242
21242
|
"div",
|
|
21243
21243
|
{
|
|
21244
21244
|
className: "grid gap-4 border-b border-ods-divider py-2",
|
|
21245
21245
|
style: { gridTemplateColumns: `repeat(${columns}, 1fr)` },
|
|
21246
|
-
children: Array.from({ length: columns }).map((_cell, colIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21246
|
+
children: Array.from({ length: columns }).map((_cell, colIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-2/3" }, colIndex))
|
|
21247
21247
|
},
|
|
21248
21248
|
rowIndex
|
|
21249
21249
|
)) })
|
|
@@ -21252,13 +21252,13 @@ function TableSkeleton({
|
|
|
21252
21252
|
function FormSkeleton({ className, fields = 4 }) {
|
|
21253
21253
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "space-y-6", className), children: [
|
|
21254
21254
|
Array.from({ length: fields }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
21255
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21256
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21257
|
-
index % 3 === 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21255
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-24" }),
|
|
21256
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.InteractiveSkeleton.Input, {}),
|
|
21257
|
+
index % 3 === 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "w-48" })
|
|
21258
21258
|
] }, index)),
|
|
21259
21259
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex gap-4 pt-4", children: [
|
|
21260
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21261
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21260
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.InteractiveSkeleton.Button, {}),
|
|
21261
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.InteractiveSkeleton.Button, { className: "bg-ods-border" })
|
|
21262
21262
|
] })
|
|
21263
21263
|
] });
|
|
21264
21264
|
}
|
|
@@ -21273,7 +21273,7 @@ function NavigationSkeleton({
|
|
|
21273
21273
|
className: _chunk3ATAYP36cjs.cn.call(void 0, "flex gap-4 content-md:gap-6", !horizontal && "flex-col", className),
|
|
21274
21274
|
role: "status",
|
|
21275
21275
|
"aria-label": "Loading navigation",
|
|
21276
|
-
children: Array.from({ length: items }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21276
|
+
children: Array.from({ length: items }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-16 content-md:w-20" }, index))
|
|
21277
21277
|
}
|
|
21278
21278
|
);
|
|
21279
21279
|
}
|
|
@@ -21284,30 +21284,30 @@ function ProfileSkeleton({
|
|
|
21284
21284
|
}) {
|
|
21285
21285
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "space-y-4", className), children: [
|
|
21286
21286
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-4", children: [
|
|
21287
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21287
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.MediaSkeleton.Avatar, { size: "lg" }),
|
|
21288
21288
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 space-y-2", children: [
|
|
21289
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21290
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21291
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21289
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Subheading, { className: "w-1/2" }),
|
|
21290
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "w-1/3" }),
|
|
21291
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-2/3" })
|
|
21292
21292
|
] })
|
|
21293
21293
|
] }),
|
|
21294
21294
|
showBio && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
21295
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21296
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21297
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21295
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-full" }),
|
|
21296
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-4/5" }),
|
|
21297
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-3/4" })
|
|
21298
21298
|
] }),
|
|
21299
21299
|
showStats && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex gap-6", children: [
|
|
21300
21300
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-center", children: [
|
|
21301
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21302
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21301
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Subheading, { className: "mx-auto w-8" }),
|
|
21302
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "mx-auto w-12" })
|
|
21303
21303
|
] }),
|
|
21304
21304
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-center", children: [
|
|
21305
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21306
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21305
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Subheading, { className: "mx-auto w-8" }),
|
|
21306
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "mx-auto w-16" })
|
|
21307
21307
|
] }),
|
|
21308
21308
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-center", children: [
|
|
21309
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21310
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21309
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Subheading, { className: "mx-auto w-8" }),
|
|
21310
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "mx-auto w-14" })
|
|
21311
21311
|
] })
|
|
21312
21312
|
] })
|
|
21313
21313
|
] });
|
|
@@ -21319,32 +21319,32 @@ function CommentSkeleton({
|
|
|
21319
21319
|
}) {
|
|
21320
21320
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "space-y-3", className), children: [
|
|
21321
21321
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
21322
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21322
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.MediaSkeleton.Avatar, { size: "sm" }),
|
|
21323
21323
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 items-center gap-4", children: [
|
|
21324
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21325
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21326
|
-
showRating && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex gap-1", children: Array.from({ length: 5 }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21324
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-24" }),
|
|
21325
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "w-16" }),
|
|
21326
|
+
showRating && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex gap-1", children: Array.from({ length: 5 }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.MediaSkeleton.Icon, { size: "sm" }, i)) })
|
|
21327
21327
|
] })
|
|
21328
21328
|
] }),
|
|
21329
21329
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "ml-11 space-y-2", children: [
|
|
21330
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21331
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21332
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21330
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-full" }),
|
|
21331
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-3/4" }),
|
|
21332
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-1/2" })
|
|
21333
21333
|
] }),
|
|
21334
21334
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "ml-11 flex gap-4", children: [
|
|
21335
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21336
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21337
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21335
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "w-12" }),
|
|
21336
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "w-16" }),
|
|
21337
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "w-8" })
|
|
21338
21338
|
] }),
|
|
21339
21339
|
showReplies && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ml-11 space-y-4 border-l border-ods-divider pl-4", children: Array.from({ length: 2 }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
21340
21340
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
21341
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21342
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21343
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21341
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.MediaSkeleton.Avatar, { size: "sm" }),
|
|
21342
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-20" }),
|
|
21343
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "w-12" })
|
|
21344
21344
|
] }),
|
|
21345
21345
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "ml-11", children: [
|
|
21346
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21347
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21346
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-full" }),
|
|
21347
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-2/3" })
|
|
21348
21348
|
] })
|
|
21349
21349
|
] }, index)) })
|
|
21350
21350
|
] });
|
|
@@ -21357,31 +21357,31 @@ function FeatureListSkeleton({
|
|
|
21357
21357
|
}) {
|
|
21358
21358
|
if (grouped) {
|
|
21359
21359
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "space-y-6", className), children: Array.from({ length: 3 }).map((_, groupIndex) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-3", children: [
|
|
21360
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21360
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Subheading, { className: "w-1/3" }),
|
|
21361
21361
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-2", children: Array.from({ length: features / 3 }).map((_feature, featureIndex) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
21362
|
-
showIcons && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21363
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21362
|
+
showIcons && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.MediaSkeleton.Icon, { size: "sm" }),
|
|
21363
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-2/3" })
|
|
21364
21364
|
] }, featureIndex)) })
|
|
21365
21365
|
] }, groupIndex)) });
|
|
21366
21366
|
}
|
|
21367
21367
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "space-y-3", className), children: Array.from({ length: features }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
21368
|
-
showIcons && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21369
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21368
|
+
showIcons && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.MediaSkeleton.Icon, { size: "sm" }),
|
|
21369
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-2/3" })
|
|
21370
21370
|
] }, index)) });
|
|
21371
21371
|
}
|
|
21372
21372
|
function TimelineSkeleton({ className, items = 5 }) {
|
|
21373
21373
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "space-y-6", className), children: Array.from({ length: items }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex gap-4", children: [
|
|
21374
21374
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-center", children: [
|
|
21375
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21375
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.MediaSkeleton.Icon, { size: "sm" }),
|
|
21376
21376
|
index < items - 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-2 h-12 w-px bg-ods-border" })
|
|
21377
21377
|
] }),
|
|
21378
21378
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 space-y-2", children: [
|
|
21379
21379
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
21380
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21381
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21380
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-1/3" }),
|
|
21381
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "w-16" })
|
|
21382
21382
|
] }),
|
|
21383
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21384
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21383
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-full" }),
|
|
21384
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-3/4" })
|
|
21385
21385
|
] })
|
|
21386
21386
|
] }, index)) });
|
|
21387
21387
|
}
|
|
@@ -21397,16 +21397,16 @@ function PricingSkeleton({ className, plans = 3 }) {
|
|
|
21397
21397
|
className
|
|
21398
21398
|
),
|
|
21399
21399
|
children: Array.from({ length: plans }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rounded-lg border border-ods-border bg-ods-card p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
21400
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21400
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Subheading, { className: "w-1/2" }),
|
|
21401
21401
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-1", children: [
|
|
21402
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21403
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21402
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Heading, { className: "w-1/3" }),
|
|
21403
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "w-1/4" })
|
|
21404
21404
|
] }),
|
|
21405
21405
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-3 py-4", children: Array.from({ length: 5 }).map((_feature, featureIndex) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
21406
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21407
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21406
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.MediaSkeleton.Icon, { size: "sm" }),
|
|
21407
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-3/4" })
|
|
21408
21408
|
] }, featureIndex)) }),
|
|
21409
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21409
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.InteractiveSkeleton.Button, { className: "w-full" })
|
|
21410
21410
|
] }) }, index))
|
|
21411
21411
|
}
|
|
21412
21412
|
);
|
|
@@ -21442,12 +21442,12 @@ function MspProfileFormSkeleton({ className, fields = 4 }) {
|
|
|
21442
21442
|
"aria-label": "Loading MSP profile form",
|
|
21443
21443
|
children: [
|
|
21444
21444
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full flex-col space-y-2", children: [
|
|
21445
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21446
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-[180px] flex-1 content-md:min-h-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21445
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-28" }),
|
|
21446
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-[180px] flex-1 content-md:min-h-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.UnifiedSkeleton, { className: "h-full w-full rounded-lg", "aria-label": "Loading company logo" }) })
|
|
21447
21447
|
] }),
|
|
21448
21448
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-md:grid-cols-2", children: Array.from({ length: fields }).map((_, idx) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col space-y-2", children: [
|
|
21449
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21450
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21449
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-40" }),
|
|
21450
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.InteractiveSkeleton.Input, {})
|
|
21451
21451
|
] }, idx)) })
|
|
21452
21452
|
]
|
|
21453
21453
|
}
|
|
@@ -21467,13 +21467,13 @@ function CategoryCardSkeleton({ className }) {
|
|
|
21467
21467
|
role: "status",
|
|
21468
21468
|
"aria-label": "Loading category card",
|
|
21469
21469
|
children: [
|
|
21470
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mb-8 flex items-center justify-center gap-6", children: Array.from({ length: 10 }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21470
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mb-8 flex items-center justify-center gap-6", children: Array.from({ length: 10 }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.UnifiedSkeleton, { variant: "circular", className: "h-10 w-10 flex-shrink-0", "aria-label": "Loading icon" }, i)) }),
|
|
21471
21471
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col space-y-3", children: [
|
|
21472
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21473
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21474
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21472
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Heading, { className: "w-3/4" }),
|
|
21473
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-1/2" }),
|
|
21474
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-full" })
|
|
21475
21475
|
] }),
|
|
21476
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-4 flex justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21476
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-4 flex justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.UnifiedSkeleton, { className: "h-12 w-12 rounded-[6px]", "aria-label": "Loading button" }) })
|
|
21477
21477
|
]
|
|
21478
21478
|
}
|
|
21479
21479
|
);
|
|
@@ -21490,12 +21490,12 @@ function CategoryVendorSelectorSkeleton({ subcategories = 3, className }) {
|
|
|
21490
21490
|
"aria-label": "Loading category section",
|
|
21491
21491
|
children: [
|
|
21492
21492
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mb-6 max-w-xl space-y-2", children: [
|
|
21493
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21494
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21493
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Heading, { className: "w-1/2" }),
|
|
21494
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-3/4" })
|
|
21495
21495
|
] }),
|
|
21496
21496
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-6", children: Array.from({ length: subcategories }).map((_, idx) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
21497
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21498
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid grid-cols-2 gap-4 content-md:grid-cols-3", children: Array.from({ length: 2 }).map((__, j) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21497
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Subheading, { className: "w-1/3" }),
|
|
21498
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid grid-cols-2 gap-4 content-md:grid-cols-3", children: Array.from({ length: 2 }).map((__, j) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.UnifiedSkeleton, { className: "h-20 rounded-lg" }, j)) })
|
|
21499
21499
|
] }, idx)) })
|
|
21500
21500
|
]
|
|
21501
21501
|
}
|
|
@@ -21506,14 +21506,14 @@ function CategoryVendorSelectorSkeleton({ subcategories = 3, className }) {
|
|
|
21506
21506
|
|
|
21507
21507
|
function WizardLayoutSkeleton({ steps = 6, className }) {
|
|
21508
21508
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "space-y-6", className), role: "status", "aria-label": "Loading wizard layout", children: [
|
|
21509
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap items-center gap-2", children: Array.from({ length: steps }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21509
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap items-center gap-2", children: Array.from({ length: steps }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.UnifiedSkeleton, { className: "h-6 w-24 rounded" }, i)) }),
|
|
21510
21510
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "max-w-2xl space-y-2", children: [
|
|
21511
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21512
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21511
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Heading, { className: "w-2/3" }),
|
|
21512
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-1/2" })
|
|
21513
21513
|
] }),
|
|
21514
21514
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mt-10 flex justify-between", children: [
|
|
21515
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21516
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21515
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.UnifiedSkeleton, { className: "h-10 w-24 rounded" }),
|
|
21516
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.UnifiedSkeleton, { className: "h-10 w-32 rounded" })
|
|
21517
21517
|
] })
|
|
21518
21518
|
] });
|
|
21519
21519
|
}
|
|
@@ -21905,28 +21905,28 @@ function OrganizationCardSkeleton({
|
|
|
21905
21905
|
}
|
|
21906
21906
|
),
|
|
21907
21907
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center space-y-1 py-2", children: [
|
|
21908
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21909
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21908
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Subheading, { className: "w-3/4" }),
|
|
21909
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "w-1/2" })
|
|
21910
21910
|
] })
|
|
21911
21911
|
] }),
|
|
21912
21912
|
showDescription && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-full items-center overflow-hidden", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "w-full space-y-1", children: [
|
|
21913
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21914
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21913
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-full" }),
|
|
21914
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Body, { className: "w-2/3" })
|
|
21915
21915
|
] }) }),
|
|
21916
21916
|
showFooter && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center justify-between gap-2", children: [
|
|
21917
21917
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-shrink items-center gap-3 content-md:gap-4", children: [
|
|
21918
21918
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-shrink-0 items-center gap-1", children: [
|
|
21919
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21920
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21919
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.MediaSkeleton.Icon, { size: "sm", className: "h-5 w-5" }),
|
|
21920
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "w-8" })
|
|
21921
21921
|
] }),
|
|
21922
21922
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-shrink-0 items-center gap-1", children: [
|
|
21923
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21924
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21923
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.MediaSkeleton.Icon, { size: "sm", className: "h-5 w-5" }),
|
|
21924
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "w-10" })
|
|
21925
21925
|
] })
|
|
21926
21926
|
] }),
|
|
21927
21927
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-shrink-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1.5 rounded border border-ods-border bg-ods-bg px-2.5 py-1.5", children: [
|
|
21928
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-sm bg-ods-border", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21929
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21928
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-sm bg-ods-border", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.MediaSkeleton.Icon, { size: "sm", className: "h-2.5 w-2.5" }) }),
|
|
21929
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.TextSkeleton.Caption, { className: "w-16" })
|
|
21930
21930
|
] }) })
|
|
21931
21931
|
] })
|
|
21932
21932
|
] })
|
|
@@ -22003,16 +22003,16 @@ function DeviceCardSkeletonGrid({ count = 12, className }) {
|
|
|
22003
22003
|
|
|
22004
22004
|
function PushButtonSelectorSkeleton({ count = 3, hasTitle }) {
|
|
22005
22005
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-3", role: "status", "aria-label": "Loading options", children: [
|
|
22006
|
-
hasTitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22006
|
+
hasTitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.UnifiedSkeleton, { className: "h-5 w-20", "aria-label": "Loading title" }),
|
|
22007
22007
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-3", children: Array.from({ length: count }, (_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rounded-lg border border-ods-border bg-ods-bg p-4", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between gap-4", children: [
|
|
22008
22008
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
22009
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22009
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.UnifiedSkeleton, { className: "h-8 w-8", "aria-label": "Loading icon" }),
|
|
22010
22010
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
22011
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22012
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22011
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.UnifiedSkeleton, { variant: "text", className: "mb-2 h-4 w-24", "aria-label": "Loading name" }),
|
|
22012
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.UnifiedSkeleton, { variant: "text", className: "h-4 w-36", "aria-label": "Loading description" })
|
|
22013
22013
|
] })
|
|
22014
22014
|
] }),
|
|
22015
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22015
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.UnifiedSkeleton, { className: "h-6 w-6", "aria-label": "Loading selection state" })
|
|
22016
22016
|
] }) }, i)) })
|
|
22017
22017
|
] });
|
|
22018
22018
|
}
|
|
@@ -22264,14 +22264,14 @@ var MODEL_TOKEN_RATES_COPY = {
|
|
|
22264
22264
|
empty: "No token rates are in effect right now."
|
|
22265
22265
|
};
|
|
22266
22266
|
function providerMark(providerType, stated, className) {
|
|
22267
|
-
const Mark = _chunkFICJS5OAcjs.findIcon.call(void 0,
|
|
22267
|
+
const Mark = _chunkFICJS5OAcjs.findIcon.call(void 0, _chunkCWRVTQUOcjs.aiProvider.call(void 0, providerType, { icon: stated }).icon);
|
|
22268
22268
|
return Mark ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Mark, { className }) : void 0;
|
|
22269
22269
|
}
|
|
22270
22270
|
var PAD_X = "px-[var(--spacing-system-s)]";
|
|
22271
22271
|
var ROW = "flex items-center gap-[var(--spacing-system-s)]";
|
|
22272
22272
|
var NUMBER_CELL = "w-16 shrink-0 whitespace-nowrap text-right tabular-nums";
|
|
22273
22273
|
function useProviderGroup(rates) {
|
|
22274
|
-
const groups =
|
|
22274
|
+
const groups = _chunkCWRVTQUOcjs.groupTokenRatesByProvider.call(void 0, rates);
|
|
22275
22275
|
const [picked, setPicked] = _react.useState.call(void 0, null);
|
|
22276
22276
|
return { groups, group: _nullishCoalesce(groups.find((candidate) => candidate.providerType === picked), () => ( groups[0])), setPicked };
|
|
22277
22277
|
}
|
|
@@ -22282,7 +22282,7 @@ function ProviderTabs({
|
|
|
22282
22282
|
className
|
|
22283
22283
|
}) {
|
|
22284
22284
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22285
|
-
|
|
22285
|
+
_chunkBV5WZVOPcjs.TabSelector,
|
|
22286
22286
|
{
|
|
22287
22287
|
variant: "secondary",
|
|
22288
22288
|
scrollable: true,
|
|
@@ -22290,7 +22290,7 @@ function ProviderTabs({
|
|
|
22290
22290
|
onValueChange,
|
|
22291
22291
|
items: groups.map((candidate) => ({
|
|
22292
22292
|
id: candidate.providerType,
|
|
22293
|
-
label:
|
|
22293
|
+
label: _chunkCWRVTQUOcjs.tokenRateProviderLabel.call(void 0, candidate.providerType, _optionalChain([candidate, 'access', _432 => _432.rates, 'access', _433 => _433[0], 'optionalAccess', _434 => _434.providerLabel])),
|
|
22294
22294
|
icon: providerMark(candidate.providerType, _optionalChain([candidate, 'access', _435 => _435.rates, 'access', _436 => _436[0], 'optionalAccess', _437 => _437.providerIcon]), "size-full")
|
|
22295
22295
|
})),
|
|
22296
22296
|
className
|
|
@@ -22391,8 +22391,8 @@ function ModelTokenRatesTable({ rates }) {
|
|
|
22391
22391
|
className: _chunk3ATAYP36cjs.cn.call(void 0, ROW, PAD_X, "py-[var(--spacing-system-xxs)] text-ods-text-primary text-h6"),
|
|
22392
22392
|
children: [
|
|
22393
22393
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "rowheader", className: "min-w-0 flex-1 truncate", children: rate.displayName || rate.modelName }),
|
|
22394
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children:
|
|
22395
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children:
|
|
22394
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunkCWRVTQUOcjs.formatTokenRate.call(void 0, rate.inputTokenRate) }),
|
|
22395
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunkCWRVTQUOcjs.formatTokenRate.call(void 0, rate.outputTokenRate) })
|
|
22396
22396
|
]
|
|
22397
22397
|
},
|
|
22398
22398
|
rate.modelName
|
|
@@ -22464,7 +22464,7 @@ function modelOption(rate) {
|
|
|
22464
22464
|
return {
|
|
22465
22465
|
label: rate.displayName || rate.modelName,
|
|
22466
22466
|
value: rate.modelName,
|
|
22467
|
-
description:
|
|
22467
|
+
description: _chunkCWRVTQUOcjs.tokenRateProviderLabel.call(void 0, rate.providerType, rate.providerLabel),
|
|
22468
22468
|
icon: providerMark(rate.providerType, rate.providerIcon, "size-full text-ods-text-secondary")
|
|
22469
22469
|
};
|
|
22470
22470
|
}
|
|
@@ -22518,9 +22518,9 @@ function ModelTokenExchange({
|
|
|
22518
22518
|
const [chosen, setChosen] = _react.useState.call(void 0, null);
|
|
22519
22519
|
const balance = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(chosen, () => ( defaultAmount)), () => ( _optionalChain([tokenPrice, 'optionalAccess', _438 => _438.tokens]))), () => ( MODEL_TOKEN_EXCHANGE_BALANCE));
|
|
22520
22520
|
const max = Math.max(amountRange.max, balance, ...presets.map((preset) => preset.tokens));
|
|
22521
|
-
const tokens =
|
|
22522
|
-
const cost =
|
|
22523
|
-
const balancePrice = cost === null ? null :
|
|
22521
|
+
const tokens = _chunkCWRVTQUOcjs.formatTokenAmount.call(void 0, balance);
|
|
22522
|
+
const cost = _chunkCWRVTQUOcjs.tokenCost.call(void 0, balance, tokenPrice);
|
|
22523
|
+
const balancePrice = cost === null ? null : _chunk7ZFCR7UYcjs.formatPrice.call(void 0, cost);
|
|
22524
22524
|
const model = rate ? rate.displayName || rate.modelName : "";
|
|
22525
22525
|
const options = models.map(modelOption);
|
|
22526
22526
|
if (rate && !models.some((candidate) => candidate.modelName === rate.modelName)) options.unshift(modelOption(rate));
|
|
@@ -22561,7 +22561,7 @@ function ModelTokenExchange({
|
|
|
22561
22561
|
variant: preset.tokens === balance ? "accent" : "outline",
|
|
22562
22562
|
size: "small",
|
|
22563
22563
|
onClick: () => setChosen(preset.tokens),
|
|
22564
|
-
children: copy.buy.preset(
|
|
22564
|
+
children: copy.buy.preset(_chunkCWRVTQUOcjs.formatTokenAmount.call(void 0, preset.tokens), preset.label)
|
|
22565
22565
|
},
|
|
22566
22566
|
preset.label
|
|
22567
22567
|
)) })
|
|
@@ -22580,7 +22580,7 @@ function ModelTokenExchange({
|
|
|
22580
22580
|
const stated = _nullishCoalesce(models.find((option) => option.providerType === providerType), () => ( (_optionalChain([rate, 'optionalAccess', _439 => _439.providerType]) === providerType ? rate : null)));
|
|
22581
22581
|
return {
|
|
22582
22582
|
id: providerType,
|
|
22583
|
-
name:
|
|
22583
|
+
name: _chunkCWRVTQUOcjs.tokenRateProviderLabel.call(void 0, providerType, _optionalChain([stated, 'optionalAccess', _440 => _440.providerLabel])),
|
|
22584
22584
|
icon: providerMark(providerType, _optionalChain([stated, 'optionalAccess', _441 => _441.providerIcon]), "size-8 text-ods-text-secondary")
|
|
22585
22585
|
};
|
|
22586
22586
|
}),
|
|
@@ -22592,7 +22592,7 @@ function ModelTokenExchange({
|
|
|
22592
22592
|
}
|
|
22593
22593
|
),
|
|
22594
22594
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22595
|
-
|
|
22595
|
+
_chunkDSVNFRY5cjs.Autocomplete,
|
|
22596
22596
|
{
|
|
22597
22597
|
label: copy.use.model,
|
|
22598
22598
|
value: _nullishCoalesce(_optionalChain([rate, 'optionalAccess', _443 => _443.modelName]), () => ( null)),
|
|
@@ -22618,7 +22618,7 @@ function ModelTokenExchange({
|
|
|
22618
22618
|
{
|
|
22619
22619
|
size: "plain",
|
|
22620
22620
|
loading,
|
|
22621
|
-
figure:
|
|
22621
|
+
figure: _chunkCWRVTQUOcjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _446 => _446.inputTokenRate])),
|
|
22622
22622
|
words: copy.charge.input
|
|
22623
22623
|
}
|
|
22624
22624
|
),
|
|
@@ -22627,7 +22627,7 @@ function ModelTokenExchange({
|
|
|
22627
22627
|
{
|
|
22628
22628
|
size: "plain",
|
|
22629
22629
|
loading,
|
|
22630
|
-
figure:
|
|
22630
|
+
figure: _chunkCWRVTQUOcjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _447 => _447.outputTokenRate])),
|
|
22631
22631
|
words: copy.charge.output
|
|
22632
22632
|
}
|
|
22633
22633
|
)
|
|
@@ -22639,9 +22639,9 @@ function ModelTokenExchange({
|
|
|
22639
22639
|
className: "mt-auto flex flex-col rounded-md border border-ods-accent bg-ods-bg p-[var(--spacing-system-mf)]",
|
|
22640
22640
|
children: [
|
|
22641
22641
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[2lh] text-ods-text-secondary text-h4", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Bar, { className: "w-full max-w-xs" }) : copy.charge.so(_nullishCoalesce(balancePrice, () => ( copy.buy.tokens(tokens))), model) }),
|
|
22642
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] whitespace-nowrap tabular-nums text-ods-text-primary text-h1", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Bar, { className: "w-40" }) :
|
|
22642
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] whitespace-nowrap tabular-nums text-ods-text-primary text-h1", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Bar, { className: "w-40" }) : _chunkCWRVTQUOcjs.formatTokenAmount.call(void 0, _chunkCWRVTQUOcjs.tokensForBalance.call(void 0, balance, rate.inputTokenRate)) }),
|
|
22643
22643
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-primary text-h3", children: copy.charge.read }),
|
|
22644
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-secondary text-h4", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Bar, { className: "w-48" }) : copy.charge.orWritten(
|
|
22644
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-secondary text-h4", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Bar, { className: "w-48" }) : copy.charge.orWritten(_chunkCWRVTQUOcjs.formatTokenAmount.call(void 0, _chunkCWRVTQUOcjs.tokensForBalance.call(void 0, balance, rate.outputTokenRate))) })
|
|
22645
22645
|
]
|
|
22646
22646
|
}
|
|
22647
22647
|
)
|
|
@@ -22768,7 +22768,7 @@ var ParallaxImageShowcase = ({
|
|
|
22768
22768
|
rotate: rotateGrid
|
|
22769
22769
|
},
|
|
22770
22770
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22771
|
-
|
|
22771
|
+
_chunkHOTM4UM6cjs.next_image_default,
|
|
22772
22772
|
{
|
|
22773
22773
|
src: leftImage.src,
|
|
22774
22774
|
alt: leftImage.alt,
|
|
@@ -22790,7 +22790,7 @@ var ParallaxImageShowcase = ({
|
|
|
22790
22790
|
rotate: rotateGrid
|
|
22791
22791
|
},
|
|
22792
22792
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22793
|
-
|
|
22793
|
+
_chunkHOTM4UM6cjs.next_image_default,
|
|
22794
22794
|
{
|
|
22795
22795
|
src: centerImage.src,
|
|
22796
22796
|
alt: centerImage.alt,
|
|
@@ -22812,7 +22812,7 @@ var ParallaxImageShowcase = ({
|
|
|
22812
22812
|
rotate: rotateGrid
|
|
22813
22813
|
},
|
|
22814
22814
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22815
|
-
|
|
22815
|
+
_chunkHOTM4UM6cjs.next_image_default,
|
|
22816
22816
|
{
|
|
22817
22817
|
src: rightImage.src,
|
|
22818
22818
|
alt: rightImage.alt,
|
|
@@ -22838,7 +22838,7 @@ var ParallaxImageShowcase = ({
|
|
|
22838
22838
|
style: { x, y, rotate },
|
|
22839
22839
|
children: [
|
|
22840
22840
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22841
|
-
|
|
22841
|
+
_chunkHOTM4UM6cjs.next_image_default,
|
|
22842
22842
|
{
|
|
22843
22843
|
src: leftImage.src,
|
|
22844
22844
|
alt: leftImage.alt,
|
|
@@ -22858,7 +22858,7 @@ var ParallaxImageShowcase = ({
|
|
|
22858
22858
|
style: { x, y, rotate },
|
|
22859
22859
|
children: [
|
|
22860
22860
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22861
|
-
|
|
22861
|
+
_chunkHOTM4UM6cjs.next_image_default,
|
|
22862
22862
|
{
|
|
22863
22863
|
src: centerImage.src,
|
|
22864
22864
|
alt: centerImage.alt,
|
|
@@ -22885,7 +22885,7 @@ var ParallaxImageShowcase = ({
|
|
|
22885
22885
|
rotate
|
|
22886
22886
|
},
|
|
22887
22887
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22888
|
-
|
|
22888
|
+
_chunkHOTM4UM6cjs.next_image_default,
|
|
22889
22889
|
{
|
|
22890
22890
|
src: rightImage.src,
|
|
22891
22891
|
alt: rightImage.alt,
|
|
@@ -22906,7 +22906,7 @@ var ParallaxImageShowcase = ({
|
|
|
22906
22906
|
rotate
|
|
22907
22907
|
},
|
|
22908
22908
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22909
|
-
|
|
22909
|
+
_chunkHOTM4UM6cjs.next_image_default,
|
|
22910
22910
|
{
|
|
22911
22911
|
src: centerImage.src,
|
|
22912
22912
|
alt: centerImage.alt,
|
|
@@ -22927,7 +22927,7 @@ var ParallaxImageShowcase = ({
|
|
|
22927
22927
|
rotate
|
|
22928
22928
|
},
|
|
22929
22929
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22930
|
-
|
|
22930
|
+
_chunkHOTM4UM6cjs.next_image_default,
|
|
22931
22931
|
{
|
|
22932
22932
|
src: leftImage.src,
|
|
22933
22933
|
alt: leftImage.alt,
|
|
@@ -23088,7 +23088,7 @@ var SelectButton = _react2.default.forwardRef(
|
|
|
23088
23088
|
}
|
|
23089
23089
|
),
|
|
23090
23090
|
image && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "size-10 shrink-0 overflow-hidden rounded", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23091
|
-
|
|
23091
|
+
_chunkHOTM4UM6cjs.next_image_default,
|
|
23092
23092
|
{
|
|
23093
23093
|
src: image.src,
|
|
23094
23094
|
alt: image.alt,
|
|
@@ -23112,7 +23112,7 @@ var SelectButton = _react2.default.forwardRef(
|
|
|
23112
23112
|
}
|
|
23113
23113
|
)
|
|
23114
23114
|
] }),
|
|
23115
|
-
tag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23115
|
+
tag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ZFCR7UYcjs.Tag, { variant: tagVariant, className: "shrink-0", label: tag }),
|
|
23116
23116
|
selected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHFNBMV5Mcjs.CheckCircleIcon, { className: "size-4 shrink-0 text-ods-accent content-md:size-6" })
|
|
23117
23117
|
]
|
|
23118
23118
|
}
|
|
@@ -23139,14 +23139,14 @@ var ConfidenceBadge = ({
|
|
|
23139
23139
|
size = "sm",
|
|
23140
23140
|
className
|
|
23141
23141
|
}) => {
|
|
23142
|
-
const level =
|
|
23142
|
+
const level = _chunkCWRVTQUOcjs.getConfidenceLevel.call(void 0, confidence);
|
|
23143
23143
|
if (level === "none") {
|
|
23144
23144
|
return null;
|
|
23145
23145
|
}
|
|
23146
|
-
const label =
|
|
23147
|
-
const borderClass =
|
|
23148
|
-
const textClass =
|
|
23149
|
-
const bgClass =
|
|
23146
|
+
const label = _chunkCWRVTQUOcjs.getConfidenceLabel.call(void 0, confidence);
|
|
23147
|
+
const borderClass = _chunkCWRVTQUOcjs.getConfidenceBorderClass.call(void 0, confidence);
|
|
23148
|
+
const textClass = _chunkCWRVTQUOcjs.getConfidenceTextClass.call(void 0, confidence);
|
|
23149
|
+
const bgClass = _chunkCWRVTQUOcjs.getConfidenceBgClass.call(void 0, confidence);
|
|
23150
23150
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23151
23151
|
"span",
|
|
23152
23152
|
{
|
|
@@ -23197,9 +23197,9 @@ function SEOEditorPreview({
|
|
|
23197
23197
|
const [isUploading, setIsUploading] = _react.useState.call(void 0, false);
|
|
23198
23198
|
const [fileInputRef, setFileInputRef] = _react.useState.call(void 0, null);
|
|
23199
23199
|
const seoTitleLength = (seoTitle || "").length;
|
|
23200
|
-
const seoTitleTooLong = seoTitleLength >
|
|
23200
|
+
const seoTitleTooLong = seoTitleLength > _chunkCWRVTQUOcjs.SEO_TITLE_MAX_LENGTH;
|
|
23201
23201
|
const seoDescriptionLength = (seoDescription || "").length;
|
|
23202
|
-
const seoDescriptionTooLong = seoDescriptionLength >
|
|
23202
|
+
const seoDescriptionTooLong = seoDescriptionLength > _chunkCWRVTQUOcjs.SEO_DESCRIPTION_MAX_LENGTH;
|
|
23203
23203
|
const displayTitle = seoTitle.trim() || title || "Untitled";
|
|
23204
23204
|
const displayDescription = seoDescription.trim() || summary || "No description";
|
|
23205
23205
|
const hasOgImage = ogImageUrl.trim();
|
|
@@ -23224,10 +23224,10 @@ function SEOEditorPreview({
|
|
|
23224
23224
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
23225
23225
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
23226
23226
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23227
|
-
|
|
23227
|
+
_chunkCWRVTQUOcjs.Field,
|
|
23228
23228
|
{
|
|
23229
23229
|
label: "SEO Title",
|
|
23230
|
-
error: seoTitleTooLong ? `Too long: search engines may truncate this title (keep it under ${
|
|
23230
|
+
error: seoTitleTooLong ? `Too long: search engines may truncate this title (keep it under ${_chunkCWRVTQUOcjs.SEO_TITLE_MAX_LENGTH})` : null,
|
|
23231
23231
|
labelExtras: aiConfidenceSeoTitle !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
23232
23232
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
|
|
23233
23233
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ConfidenceBadge, { confidence: aiConfidenceSeoTitle, showLabel: true, showPercentage: true, size: "sm" })
|
|
@@ -23242,7 +23242,7 @@ function SEOEditorPreview({
|
|
|
23242
23242
|
children: [
|
|
23243
23243
|
seoTitleLength,
|
|
23244
23244
|
"/",
|
|
23245
|
-
|
|
23245
|
+
_chunkCWRVTQUOcjs.SEO_TITLE_MAX_LENGTH
|
|
23246
23246
|
]
|
|
23247
23247
|
}
|
|
23248
23248
|
),
|
|
@@ -23253,7 +23253,7 @@ function SEOEditorPreview({
|
|
|
23253
23253
|
value: seoTitle || "",
|
|
23254
23254
|
onChange: (e) => onSeoTitleChange(e.target.value),
|
|
23255
23255
|
disabled,
|
|
23256
|
-
maxLength:
|
|
23256
|
+
maxLength: _chunkCWRVTQUOcjs.SEO_TITLE_MAX_LENGTH,
|
|
23257
23257
|
invalid: seoTitleTooLong,
|
|
23258
23258
|
placeholder: "Enter SEO meta title...",
|
|
23259
23259
|
className: "border-ods-border bg-ods-bg text-ods-text-primary"
|
|
@@ -23264,7 +23264,7 @@ function SEOEditorPreview({
|
|
|
23264
23264
|
!seoTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-accent text-h6", children: "Auto-populated from title" })
|
|
23265
23265
|
] }),
|
|
23266
23266
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23267
|
-
|
|
23267
|
+
_chunkCWRVTQUOcjs.Field,
|
|
23268
23268
|
{
|
|
23269
23269
|
label: "SEO Keywords",
|
|
23270
23270
|
labelExtras: aiConfidenceSeoKeywords !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -23296,10 +23296,10 @@ function SEOEditorPreview({
|
|
|
23296
23296
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
23297
23297
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
23298
23298
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23299
|
-
|
|
23299
|
+
_chunkCWRVTQUOcjs.Field,
|
|
23300
23300
|
{
|
|
23301
23301
|
label: "SEO Description",
|
|
23302
|
-
error: seoDescriptionTooLong ? `Too long: search engines may truncate this description (keep it under ${
|
|
23302
|
+
error: seoDescriptionTooLong ? `Too long: search engines may truncate this description (keep it under ${_chunkCWRVTQUOcjs.SEO_DESCRIPTION_MAX_LENGTH})` : null,
|
|
23303
23303
|
labelExtras: aiConfidenceSeoDescription !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
23304
23304
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
|
|
23305
23305
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -23322,7 +23322,7 @@ function SEOEditorPreview({
|
|
|
23322
23322
|
children: [
|
|
23323
23323
|
seoDescriptionLength,
|
|
23324
23324
|
"/",
|
|
23325
|
-
|
|
23325
|
+
_chunkCWRVTQUOcjs.SEO_DESCRIPTION_MAX_LENGTH
|
|
23326
23326
|
]
|
|
23327
23327
|
}
|
|
23328
23328
|
),
|
|
@@ -23333,7 +23333,7 @@ function SEOEditorPreview({
|
|
|
23333
23333
|
value: seoDescription || "",
|
|
23334
23334
|
onChange: (e) => onSeoDescriptionChange(e.target.value),
|
|
23335
23335
|
disabled,
|
|
23336
|
-
maxLength:
|
|
23336
|
+
maxLength: _chunkCWRVTQUOcjs.SEO_DESCRIPTION_MAX_LENGTH,
|
|
23337
23337
|
invalid: seoDescriptionTooLong,
|
|
23338
23338
|
placeholder: "Enter SEO meta description...",
|
|
23339
23339
|
className: _chunk3ATAYP36cjs.cn.call(void 0, "resize-none border-ods-border bg-ods-bg text-ods-text-primary", SEO_MEDIA_BOX_HEIGHT)
|
|
@@ -23348,7 +23348,7 @@ function SEOEditorPreview({
|
|
|
23348
23348
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative pt-[var(--spacing-system-xxs)]", children: [
|
|
23349
23349
|
displayImage && !imageError ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "group relative", SEO_MEDIA_BOX_HEIGHT), children: [
|
|
23350
23350
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23351
|
-
|
|
23351
|
+
_chunkHOTM4UM6cjs.next_image_default,
|
|
23352
23352
|
{
|
|
23353
23353
|
src: displayImage,
|
|
23354
23354
|
alt: "OG Image",
|
|
@@ -23402,7 +23402,7 @@ function SEOEditorPreview({
|
|
|
23402
23402
|
{
|
|
23403
23403
|
ref: setFileInputRef,
|
|
23404
23404
|
type: "file",
|
|
23405
|
-
accept:
|
|
23405
|
+
accept: _chunkYXKB5WREcjs.IMAGE_FILE_ACCEPT,
|
|
23406
23406
|
onChange: handleImageUpload,
|
|
23407
23407
|
className: "hidden",
|
|
23408
23408
|
disabled: disabled || isUploading
|
|
@@ -23419,7 +23419,7 @@ function SEOEditorPreview({
|
|
|
23419
23419
|
] }),
|
|
23420
23420
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "max-w-[500px] overflow-hidden rounded-lg border border-ods-border bg-ods-bg", children: [
|
|
23421
23421
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative h-[260px] w-full bg-ods-bg-active", children: displayImage && !imageError ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23422
|
-
|
|
23422
|
+
_chunkHOTM4UM6cjs.next_image_default,
|
|
23423
23423
|
{
|
|
23424
23424
|
src: displayImage,
|
|
23425
23425
|
alt: displayTitle,
|
|
@@ -23486,7 +23486,7 @@ function socialIcon(platform) {
|
|
|
23486
23486
|
return _nullishCoalesce(_chunkFICJS5OAcjs.iconOf.call(void 0, SOCIAL_ICONS[platform]), () => ( void 0));
|
|
23487
23487
|
}
|
|
23488
23488
|
function renderSocialIcon(platform) {
|
|
23489
|
-
const key = _nullishCoalesce(
|
|
23489
|
+
const key = _nullishCoalesce(_chunkCWRVTQUOcjs.normalizeSocialPlatform.call(void 0, platform), () => ( "website"));
|
|
23490
23490
|
const icon = _nullishCoalesce(socialIcon(key), () => ( socialIcon("website")));
|
|
23491
23491
|
return icon ? _react.createElement.call(void 0, icon, { className: "h-5 w-5" }) : null;
|
|
23492
23492
|
}
|
|
@@ -23569,7 +23569,7 @@ function SocialLinksManager({
|
|
|
23569
23569
|
};
|
|
23570
23570
|
const getIcon = (link, platform) => {
|
|
23571
23571
|
const iconKey = _optionalChain([platform, 'optionalAccess', _457 => _457.icon_name]) || link.platform;
|
|
23572
|
-
const key =
|
|
23572
|
+
const key = _chunkCWRVTQUOcjs.normalizeSocialPlatform.call(void 0, iconKey);
|
|
23573
23573
|
if (!key) return null;
|
|
23574
23574
|
const icon = socialIcon(key);
|
|
23575
23575
|
return icon ? _react.createElement.call(void 0, icon, { className: "h-5 w-5 text-ods-text-secondary" }) : null;
|
|
@@ -23585,9 +23585,9 @@ function SocialLinksManager({
|
|
|
23585
23585
|
children: [
|
|
23586
23586
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-8 w-8 items-center justify-center", children: Icon }),
|
|
23587
23587
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid flex-1 grid-cols-2 gap-3", children: [
|
|
23588
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23589
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23590
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23588
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDSVNFRY5cjs.Select, { value: link.platform, onValueChange: (value) => updateLink(index, "platform", value), children: [
|
|
23589
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectValue, {}) }),
|
|
23590
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectContent, { children: platforms.map((p) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectItem, { value: p.name, children: p.display_name }, p.name)) })
|
|
23591
23591
|
] }) }),
|
|
23592
23592
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23593
23593
|
_chunkHTRILBJDcjs.Input,
|
|
@@ -23605,15 +23605,15 @@ function SocialLinksManager({
|
|
|
23605
23605
|
)
|
|
23606
23606
|
] }),
|
|
23607
23607
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23608
|
-
|
|
23608
|
+
_chunkDSVNFRY5cjs.Select,
|
|
23609
23609
|
{
|
|
23610
23610
|
value: _nullishCoalesce(link.visibility, () => ( "external")),
|
|
23611
23611
|
onValueChange: (value) => updateLink(index, "visibility", value),
|
|
23612
23612
|
children: [
|
|
23613
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23614
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23615
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23616
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23613
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectTrigger, { className: "w-[120px] shrink-0", "aria-label": "Social link visibility", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectValue, {}) }),
|
|
23614
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDSVNFRY5cjs.SelectContent, { children: [
|
|
23615
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectItem, { value: "external", children: "Public" }),
|
|
23616
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectItem, { value: "internal", children: "Internal" })
|
|
23617
23617
|
] })
|
|
23618
23618
|
]
|
|
23619
23619
|
}
|
|
@@ -23705,7 +23705,7 @@ var StartWithOpenFrameButton = _react.forwardRef.call(void 0,
|
|
|
23705
23705
|
className: _chunk3ATAYP36cjs.cn.call(void 0, modeClassName, className),
|
|
23706
23706
|
style: customStyle,
|
|
23707
23707
|
leftIcon: !loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHJZLKYOBcjs.OpenframeLogoIcon, { secondaryColor: iconLowerPath, className: "h-5 w-5", color: iconUpperPath }) : void 0,
|
|
23708
|
-
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23708
|
+
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYXKB5WREcjs.StatusBadge, { text: "Beta", variant: "button", colorScheme: "yellow" }),
|
|
23709
23709
|
children
|
|
23710
23710
|
}
|
|
23711
23711
|
);
|
|
@@ -23975,17 +23975,18 @@ function WarningBlock({ title, icon = DEFAULT_ICON, children, className }) {
|
|
|
23975
23975
|
|
|
23976
23976
|
function VideoBitesDisplay({
|
|
23977
23977
|
bites,
|
|
23978
|
-
title =
|
|
23978
|
+
title = _chunkYXKB5WREcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
23979
23979
|
filterPublished = true,
|
|
23980
23980
|
showTitle = true
|
|
23981
23981
|
}) {
|
|
23982
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23982
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBV5WZVOPcjs.VideoBitesStrip, { bites, title, filterPublished, showTitle });
|
|
23983
23983
|
}
|
|
23984
23984
|
|
|
23985
23985
|
// src/components/features/walkthrough-video.tsx
|
|
23986
23986
|
|
|
23987
23987
|
|
|
23988
23988
|
|
|
23989
|
+
var FIRST_INTERACTION_EVENTS = ["scroll", "pointerdown", "keydown"];
|
|
23989
23990
|
var isAtEnd = (duration, time) => duration > 0 && duration - time < 1;
|
|
23990
23991
|
function theaterSeedFromLive(live, fallbackTime, fallbackMuted) {
|
|
23991
23992
|
const time = _nullishCoalesce(_optionalChain([live, 'optionalAccess', _459 => _459.getCurrentTime, 'call', _460 => _460()]), () => ( 0));
|
|
@@ -24006,13 +24007,14 @@ function WalkthroughVideo({
|
|
|
24006
24007
|
onOpenChange,
|
|
24007
24008
|
defaultOpen,
|
|
24008
24009
|
defaultOpenPaused,
|
|
24009
|
-
deepLinkParam =
|
|
24010
|
+
deepLinkParam = _chunkCWRVTQUOcjs.WALKTHROUGH_OPEN_QUERY_PARAM,
|
|
24010
24011
|
autoPlayCard = false,
|
|
24011
24012
|
label = "Play Demo Video",
|
|
24012
24013
|
placement,
|
|
24013
|
-
//
|
|
24014
|
-
//
|
|
24015
|
-
//
|
|
24014
|
+
// The FLOATING card never appears sooner than this (and never before the
|
|
24015
|
+
// visitor's first interaction: see the mount gate). The inline preset passes
|
|
24016
|
+
// 0: an in-page block is part of a page the visitor is already looking at,
|
|
24017
|
+
// so staggering it in would only jump the layout.
|
|
24016
24018
|
appearDelayMs = 3e3,
|
|
24017
24019
|
dismissal = {},
|
|
24018
24020
|
hideNearSelector = "footer",
|
|
@@ -24021,7 +24023,7 @@ function WalkthroughVideo({
|
|
|
24021
24023
|
}) {
|
|
24022
24024
|
const inline = placement === "inline";
|
|
24023
24025
|
const dismissEnabled = dismissal !== false;
|
|
24024
|
-
const storageKey = dismissEnabled && dismissal.storageKey ||
|
|
24026
|
+
const storageKey = dismissEnabled && dismissal.storageKey || _chunkCWRVTQUOcjs.WALKTHROUGH_VIDEO_DISMISS_KEY;
|
|
24025
24027
|
const dismissalId = _optionalChain([video, 'optionalAccess', _463 => _463.id]) != null ? String(video.id) : "dismissed";
|
|
24026
24028
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
24027
24029
|
const [dismissed, setDismissed] = _react.useState.call(void 0, false);
|
|
@@ -24030,26 +24032,47 @@ function WalkthroughVideo({
|
|
|
24030
24032
|
_react.useEffect.call(void 0, () => {
|
|
24031
24033
|
let idleHandle = null;
|
|
24032
24034
|
if (!hasVideo) return void 0;
|
|
24033
|
-
|
|
24034
|
-
|
|
24035
|
-
|
|
24036
|
-
|
|
24037
|
-
|
|
24038
|
-
|
|
24039
|
-
|
|
24040
|
-
|
|
24041
|
-
|
|
24035
|
+
let delayElapsed = false;
|
|
24036
|
+
let interacted = inline;
|
|
24037
|
+
const reveal = () => {
|
|
24038
|
+
if (dismissEnabled && _chunkCWRVTQUOcjs.isWalkthroughDismissed.call(void 0, storageKey, dismissalId)) {
|
|
24039
|
+
setDismissed(true);
|
|
24040
|
+
return;
|
|
24041
|
+
}
|
|
24042
|
+
setDismissed(false);
|
|
24043
|
+
setMounted(true);
|
|
24044
|
+
};
|
|
24045
|
+
const revealWhenReady = () => {
|
|
24046
|
+
if (!delayElapsed || !interacted) return;
|
|
24042
24047
|
const ric = window.requestIdleCallback;
|
|
24043
24048
|
if (typeof ric === "function") idleHandle = ric(reveal);
|
|
24044
24049
|
else reveal();
|
|
24050
|
+
};
|
|
24051
|
+
const stopListening = () => {
|
|
24052
|
+
for (const type of FIRST_INTERACTION_EVENTS) window.removeEventListener(type, onInteraction, true);
|
|
24053
|
+
};
|
|
24054
|
+
function onInteraction() {
|
|
24055
|
+
interacted = true;
|
|
24056
|
+
stopListening();
|
|
24057
|
+
revealWhenReady();
|
|
24058
|
+
}
|
|
24059
|
+
if (!interacted) {
|
|
24060
|
+
for (const type of FIRST_INTERACTION_EVENTS) {
|
|
24061
|
+
window.addEventListener(type, onInteraction, { capture: true, passive: true });
|
|
24062
|
+
}
|
|
24063
|
+
}
|
|
24064
|
+
const timer = setTimeout(() => {
|
|
24065
|
+
delayElapsed = true;
|
|
24066
|
+
revealWhenReady();
|
|
24045
24067
|
}, appearDelayMs);
|
|
24046
24068
|
return () => {
|
|
24047
24069
|
clearTimeout(timer);
|
|
24070
|
+
stopListening();
|
|
24048
24071
|
const cic = window.cancelIdleCallback;
|
|
24049
24072
|
if (idleHandle !== null && typeof cic === "function") cic(idleHandle);
|
|
24050
24073
|
};
|
|
24051
|
-
}, [appearDelayMs, dismissEnabled, storageKey, dismissalId, hasVideo, videoId]);
|
|
24052
|
-
const hydrated =
|
|
24074
|
+
}, [appearDelayMs, dismissEnabled, storageKey, dismissalId, hasVideo, videoId, inline]);
|
|
24075
|
+
const hydrated = _chunkBV5WZVOPcjs.useIsHydrated.call(void 0, );
|
|
24053
24076
|
const previewSuppressed = _react.useMemo.call(void 0, () => {
|
|
24054
24077
|
if (!hydrated) return false;
|
|
24055
24078
|
try {
|
|
@@ -24299,7 +24322,7 @@ function WalkthroughVideo({
|
|
|
24299
24322
|
(e) => {
|
|
24300
24323
|
e.stopPropagation();
|
|
24301
24324
|
pausePreviewNow();
|
|
24302
|
-
if (dismissEnabled)
|
|
24325
|
+
if (dismissEnabled) _chunkCWRVTQUOcjs.dismissWalkthrough.call(void 0, storageKey, dismissalId);
|
|
24303
24326
|
setDismissed(true);
|
|
24304
24327
|
},
|
|
24305
24328
|
[dismissEnabled, storageKey, dismissalId, pausePreviewNow]
|
|
@@ -24448,7 +24471,7 @@ function WalkthroughVideo({
|
|
|
24448
24471
|
},
|
|
24449
24472
|
children: [
|
|
24450
24473
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pointer-events-none absolute inset-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24451
|
-
|
|
24474
|
+
_chunkYXKB5WREcjs.VideoHoverPreviewSurface,
|
|
24452
24475
|
{
|
|
24453
24476
|
url: video.mainVideoUrl || "",
|
|
24454
24477
|
posterUrl: video.posterUrl,
|
|
@@ -24472,7 +24495,7 @@ function WalkthroughVideo({
|
|
|
24472
24495
|
`card-${embedUrlKey}`
|
|
24473
24496
|
) }),
|
|
24474
24497
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24475
|
-
|
|
24498
|
+
_chunkBV5WZVOPcjs.CardHitLayer,
|
|
24476
24499
|
{
|
|
24477
24500
|
label: video.title ? `${label}: ${video.title}` : label,
|
|
24478
24501
|
onPointerDown: pausePreviewNow,
|
|
@@ -24481,7 +24504,7 @@ function WalkthroughVideo({
|
|
|
24481
24504
|
}
|
|
24482
24505
|
),
|
|
24483
24506
|
/* @__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: [
|
|
24484
|
-
presenterAvatarSrc ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24507
|
+
presenterAvatarSrc ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ZFCR7UYcjs.SquareAvatar, { src: presenterAvatarSrc, alt: "", sizePx: 20, variant: "round", className: "shrink-0 border-0" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63N4FN5Vcjs.VideoPlayBadge, { size: "sm", className: "h-5 w-5 shrink-0" }),
|
|
24485
24508
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: summaryTitle || label })
|
|
24486
24509
|
] }),
|
|
24487
24510
|
showBigUnmute && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -24587,7 +24610,7 @@ function WalkthroughVideo({
|
|
|
24587
24610
|
children: [
|
|
24588
24611
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogPrimitive2.Title, { className: "sr-only", children: summaryTitle || "Walkthrough video" }),
|
|
24589
24612
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24590
|
-
|
|
24613
|
+
_chunkYXKB5WREcjs.Video,
|
|
24591
24614
|
{
|
|
24592
24615
|
kind: video.youtubeUrl ? "youtube" : "file",
|
|
24593
24616
|
url: video.youtubeUrl || video.mainVideoUrl,
|
|
@@ -24638,7 +24661,7 @@ function InlineWalkthroughVideo(props) {
|
|
|
24638
24661
|
var _reactquery = require('@tanstack/react-query');
|
|
24639
24662
|
function useWalkthroughVideo(opts) {
|
|
24640
24663
|
const { endpoint, initialData, enabled = true, transformCaptionsUrl } = opts;
|
|
24641
|
-
const captions =
|
|
24664
|
+
const captions = _chunkBV5WZVOPcjs.useCaptions.call(void 0, );
|
|
24642
24665
|
const query = _reactquery.useQuery.call(void 0, {
|
|
24643
24666
|
queryKey: ["walkthrough-video", endpoint],
|
|
24644
24667
|
enabled,
|
|
@@ -24836,7 +24859,7 @@ function VideoSourceSelector({
|
|
|
24836
24859
|
}
|
|
24837
24860
|
function DefaultVideoPreview({ videoUrl, onDelete, disabled }) {
|
|
24838
24861
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative overflow-hidden rounded-lg border border-ods-border", children: [
|
|
24839
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video max-h-[300px] w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24862
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video max-h-[300px] w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYXKB5WREcjs.Video, { kind: "file", url: videoUrl }) }),
|
|
24840
24863
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24841
24864
|
"button",
|
|
24842
24865
|
{
|
|
@@ -25290,19 +25313,19 @@ function HighlightVideoSection({
|
|
|
25290
25313
|
/* @__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: [
|
|
25291
25314
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK6VWTUCHcjs.Label, { children: "Target Duration" }),
|
|
25292
25315
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25293
|
-
|
|
25316
|
+
_chunkDSVNFRY5cjs.Select,
|
|
25294
25317
|
{
|
|
25295
25318
|
value: targetDurationSeconds.toString(),
|
|
25296
25319
|
onValueChange: (value) => onTargetDurationChange(parseInt(value)),
|
|
25297
25320
|
disabled,
|
|
25298
25321
|
children: [
|
|
25299
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25300
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25301
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25302
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25303
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25304
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25305
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25322
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectTrigger, { className: "mt-1 bg-ods-bg-surface", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectValue, {}) }),
|
|
25323
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDSVNFRY5cjs.SelectContent, { className: "bg-ods-card", children: [
|
|
25324
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectItem, { value: "60", children: "1 minute" }),
|
|
25325
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectItem, { value: "120", children: "2 minutes" }),
|
|
25326
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectItem, { value: "180", children: "3 minutes (Recommended)" }),
|
|
25327
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectItem, { value: "240", children: "4 minutes" }),
|
|
25328
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectItem, { value: "300", children: "5 minutes" })
|
|
25306
25329
|
] })
|
|
25307
25330
|
]
|
|
25308
25331
|
}
|
|
@@ -25360,7 +25383,7 @@ function HighlightVideoSection({
|
|
|
25360
25383
|
// Default simple preview — the <Video> SSOT (MuxPlayer) plays
|
|
25361
25384
|
// MP4 and Mux HLS alike; aspect-video box reserves the height.
|
|
25362
25385
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative overflow-hidden rounded-lg border border-ods-border bg-black", children: [
|
|
25363
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video max-h-[300px] w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25386
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video max-h-[300px] w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYXKB5WREcjs.Video, { kind: "file", url: highlightVideoUrl, poster: highlightVideoThumbnail || void 0 }) }),
|
|
25364
25387
|
onDeleteHighlight && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25365
25388
|
"button",
|
|
25366
25389
|
{
|
|
@@ -25387,20 +25410,20 @@ function HighlightConfigSection({
|
|
|
25387
25410
|
disabled = false,
|
|
25388
25411
|
className = ""
|
|
25389
25412
|
}) {
|
|
25390
|
-
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,
|
|
25391
|
-
|
|
25413
|
+
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, _chunkCWRVTQUOcjs.Field, { label: "Target Duration", children: (f) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25414
|
+
_chunkDSVNFRY5cjs.Select,
|
|
25392
25415
|
{
|
|
25393
25416
|
value: targetDurationSeconds.toString(),
|
|
25394
25417
|
onValueChange: (value) => onTargetDurationChange(parseInt(value)),
|
|
25395
25418
|
disabled,
|
|
25396
25419
|
children: [
|
|
25397
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25398
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25399
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25400
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25401
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25402
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25403
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25420
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectTrigger, { id: f.id, className: "bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectValue, {}) }),
|
|
25421
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDSVNFRY5cjs.SelectContent, { className: "bg-ods-card", children: [
|
|
25422
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectItem, { value: "60", children: "1 minute" }),
|
|
25423
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectItem, { value: "120", children: "2 minutes" }),
|
|
25424
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectItem, { value: "180", children: "3 minutes (Recommended)" }),
|
|
25425
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectItem, { value: "240", children: "4 minutes" }),
|
|
25426
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectItem, { value: "300", children: "5 minutes" })
|
|
25404
25427
|
] })
|
|
25405
25428
|
]
|
|
25406
25429
|
}
|
|
@@ -25488,7 +25511,7 @@ var AIStatusIndicator = ({
|
|
|
25488
25511
|
}) => {
|
|
25489
25512
|
const config = statusConfig[status];
|
|
25490
25513
|
const displayText = message || config.label;
|
|
25491
|
-
const confidenceLabel = showConfidence && confidence !== void 0 ? `${
|
|
25514
|
+
const confidenceLabel = showConfidence && confidence !== void 0 ? `${_chunkCWRVTQUOcjs.getConfidenceLabel.call(void 0, confidence)} (${confidence}%)` : null;
|
|
25492
25515
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "inline-flex items-center gap-2 rounded-lg px-3 py-1.5", config.bgColor, className), children: [
|
|
25493
25516
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25494
25517
|
_chunkUNFCRSYIcjs.SparklesIcon,
|
|
@@ -25496,7 +25519,7 @@ var AIStatusIndicator = ({
|
|
|
25496
25519
|
size: 16,
|
|
25497
25520
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
25498
25521
|
status === "loading" && "animate-pulse",
|
|
25499
|
-
confidence !== void 0 && status === "success" ?
|
|
25522
|
+
confidence !== void 0 && status === "success" ? _chunkCWRVTQUOcjs.getConfidenceTextClass.call(void 0, confidence) : config.color
|
|
25500
25523
|
)
|
|
25501
25524
|
}
|
|
25502
25525
|
),
|
|
@@ -25505,7 +25528,7 @@ var AIStatusIndicator = ({
|
|
|
25505
25528
|
{
|
|
25506
25529
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
25507
25530
|
"text-h6",
|
|
25508
|
-
confidence !== void 0 && status === "success" ?
|
|
25531
|
+
confidence !== void 0 && status === "success" ? _chunkCWRVTQUOcjs.getConfidenceTextClass.call(void 0, confidence) : config.color
|
|
25509
25532
|
),
|
|
25510
25533
|
children: displayText
|
|
25511
25534
|
}
|
|
@@ -25515,8 +25538,8 @@ var AIStatusIndicator = ({
|
|
|
25515
25538
|
{
|
|
25516
25539
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
25517
25540
|
"rounded-full border px-2 py-0.5 text-h6",
|
|
25518
|
-
|
|
25519
|
-
|
|
25541
|
+
_chunkCWRVTQUOcjs.getConfidenceBorderClass.call(void 0, confidence),
|
|
25542
|
+
_chunkCWRVTQUOcjs.getConfidenceTextClass.call(void 0, confidence)
|
|
25520
25543
|
),
|
|
25521
25544
|
children: confidenceLabel
|
|
25522
25545
|
}
|
|
@@ -26081,7 +26104,7 @@ function ApprovalLevelView({
|
|
|
26081
26104
|
] });
|
|
26082
26105
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk3ATAYP36cjs.cn.call(void 0, "inline-flex shrink-0 items-center gap-[var(--spacing-system-xxs)]", className), children: [
|
|
26083
26106
|
name,
|
|
26084
|
-
showLabel ? icon : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26107
|
+
showLabel ? icon : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO67V3HJRcjs.TouchFriendlyTooltip, { content: `${current.label}: ${current.hint}`, side: "top", children: icon })
|
|
26085
26108
|
] });
|
|
26086
26109
|
}
|
|
26087
26110
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex shrink-0 items-center gap-[var(--spacing-system-sf)]", className), children: [
|
|
@@ -26184,7 +26207,7 @@ var PolicyRow = ({ policy, categoryId, editMode, onPermissionChange }) => {
|
|
|
26184
26207
|
] });
|
|
26185
26208
|
};
|
|
26186
26209
|
var CategorySection = ({ category, editMode, isExpanded, bulkLevel, onToggle, onBulkLevelChange, onPolicyPermissionChange }) => {
|
|
26187
|
-
const { innerRef, containerStyle } =
|
|
26210
|
+
const { innerRef, containerStyle } = _chunkGABDE3FMcjs.useCollapsible.call(void 0, { expanded: isExpanded, durationMs: 300 });
|
|
26188
26211
|
const handleBulkChange = (level) => onBulkLevelChange(category.id, level);
|
|
26189
26212
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
26190
26213
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -26357,8 +26380,8 @@ function PoliciesTable({
|
|
|
26357
26380
|
accessorKey: "name",
|
|
26358
26381
|
header: "Name",
|
|
26359
26382
|
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: [
|
|
26360
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26361
|
-
row.original.description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26383
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { children: row.original.name }),
|
|
26384
|
+
row.original.description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { variant: "h6", tone: "secondary", children: row.original.description })
|
|
26362
26385
|
] }),
|
|
26363
26386
|
meta: { width: "flex-1 min-w-0" }
|
|
26364
26387
|
},
|
|
@@ -26390,7 +26413,7 @@ function PoliciesTable({
|
|
|
26390
26413
|
cell: ({ row }) => {
|
|
26391
26414
|
const { status } = row.original;
|
|
26392
26415
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-start gap-1", children: [
|
|
26393
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26416
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ZFCR7UYcjs.Tag, { className: "self-start", label: status.label, variant: status.variant }),
|
|
26394
26417
|
status.note && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `text-h6 ${NOTE_TONE_CLASS[status.note.tone]}`, children: status.note.text })
|
|
26395
26418
|
] });
|
|
26396
26419
|
},
|
|
@@ -26412,7 +26435,7 @@ function PoliciesTable({
|
|
|
26412
26435
|
cell: ({ row }) => row.original.href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26413
26436
|
_chunk2QMBXGMQcjs.Button,
|
|
26414
26437
|
{
|
|
26415
|
-
onClick:
|
|
26438
|
+
onClick: _chunkCWRVTQUOcjs.openInNewTab.call(void 0, row.original.href),
|
|
26416
26439
|
variant: "outline",
|
|
26417
26440
|
size: "icon",
|
|
26418
26441
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
@@ -26513,7 +26536,7 @@ function PolicySummaryCards({ summary, isLoading = false, hasData = true, now })
|
|
|
26513
26536
|
DashboardInfoCard,
|
|
26514
26537
|
{
|
|
26515
26538
|
title: "Updated",
|
|
26516
|
-
value: hasData && summary.lastUpdatedAt ?
|
|
26539
|
+
value: hasData && summary.lastUpdatedAt ? _chunkGABDE3FMcjs.formatRelativeTimeFrom.call(void 0, summary.lastUpdatedAt, _nullishCoalesce(now, () => ( /* @__PURE__ */ new Date()))) : EMPTY_VALUE,
|
|
26517
26540
|
valueClassName: "!text-h3",
|
|
26518
26541
|
tooltip: "Policy compliance stats are updated hourly. View a policy's devices for real-time status."
|
|
26519
26542
|
}
|
|
@@ -26629,7 +26652,7 @@ function toValidInstant(iso) {
|
|
|
26629
26652
|
function formatLastRead(iso, now = /* @__PURE__ */ new Date()) {
|
|
26630
26653
|
const date = toValidInstant(iso);
|
|
26631
26654
|
if (!date) return TENANT_EMPTY_VALUE;
|
|
26632
|
-
return now.getTime() - date.getTime() < DAY_MS ?
|
|
26655
|
+
return now.getTime() - date.getTime() < DAY_MS ? _chunkGABDE3FMcjs.formatRelativeTimeFrom.call(void 0, date, now) : _chunkPQ2M7P2Ucjs.formatDate.call(void 0, date);
|
|
26633
26656
|
}
|
|
26634
26657
|
function usersCountLabel(count) {
|
|
26635
26658
|
if (count == null) return TENANT_EMPTY_VALUE;
|
|
@@ -26640,8 +26663,8 @@ function usersCountLabel(count) {
|
|
|
26640
26663
|
|
|
26641
26664
|
function TenantAccessCell({ accessState, lastReadAt: lastReadAt2, now }) {
|
|
26642
26665
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26643
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26644
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26666
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ZFCR7UYcjs.Tag, { ...accessStateTag(accessState), className: "self-start" }),
|
|
26667
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { variant: "h6", tone: "secondary", children: `Last read: ${formatLastRead(lastReadAt2, now)}` })
|
|
26645
26668
|
] });
|
|
26646
26669
|
}
|
|
26647
26670
|
|
|
@@ -26652,9 +26675,9 @@ function TenantCell({ provider, name, domain }) {
|
|
|
26652
26675
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
26653
26676
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26654
26677
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Logo, { size: 24, role: "img", "aria-label": label, className: "shrink-0" }),
|
|
26655
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26678
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { children: name })
|
|
26656
26679
|
] }),
|
|
26657
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26680
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(domain, () => ( TENANT_EMPTY_VALUE)) })
|
|
26658
26681
|
] });
|
|
26659
26682
|
}
|
|
26660
26683
|
|
|
@@ -26663,10 +26686,10 @@ function TenantCell({ provider, name, domain }) {
|
|
|
26663
26686
|
function TenantCustomerCell({ name, imageUrl, userCount }) {
|
|
26664
26687
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
26665
26688
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26666
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26667
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26689
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ZFCR7UYcjs.SquareAvatar, { src: _nullishCoalesce(imageUrl, () => ( void 0)), alt: name, fallback: name, size: "xs", variant: "square" }),
|
|
26690
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { children: name })
|
|
26668
26691
|
] }),
|
|
26669
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26692
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { variant: "h6", tone: "secondary", children: usersCountLabel(userCount) })
|
|
26670
26693
|
] });
|
|
26671
26694
|
}
|
|
26672
26695
|
|
|
@@ -26738,7 +26761,7 @@ function TenantsTableView({
|
|
|
26738
26761
|
/* @__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,
|
|
26739
26762
|
_chunk2QMBXGMQcjs.Button,
|
|
26740
26763
|
{
|
|
26741
|
-
onClick:
|
|
26764
|
+
onClick: _chunkCWRVTQUOcjs.openInNewTab.call(void 0, getHref(row.original)),
|
|
26742
26765
|
variant: "outline",
|
|
26743
26766
|
size: "icon",
|
|
26744
26767
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
@@ -26819,7 +26842,7 @@ function WaitlistForm({
|
|
|
26819
26842
|
const { toast } = _chunkVA7OMDZOcjs.useToast.call(void 0, );
|
|
26820
26843
|
const { honeypotInputProps, getSignals, resetSignals } = _chunkVA7OMDZOcjs.useHumanitySignals.call(void 0, );
|
|
26821
26844
|
const [smsConsent, setSmsConsent] = _react.useState.call(void 0, false);
|
|
26822
|
-
const isClient =
|
|
26845
|
+
const isClient = _chunkBV5WZVOPcjs.useIsHydrated.call(void 0, );
|
|
26823
26846
|
const [isPhoneInvalid, setIsPhoneInvalid] = _react.useState.call(void 0, false);
|
|
26824
26847
|
const [showConsentError, setShowConsentError] = _react.useState.call(void 0, false);
|
|
26825
26848
|
const rescue = _chunkVA7OMDZOcjs.useFormRescue.call(void 0, {
|
|
@@ -26834,7 +26857,7 @@ function WaitlistForm({
|
|
|
26834
26857
|
_react.useEffect.call(void 0, () => {
|
|
26835
26858
|
rescue.track({ email, phone }, null);
|
|
26836
26859
|
}, [email, phone, rescue]);
|
|
26837
|
-
const isMailDomainGeneric =
|
|
26860
|
+
const isMailDomainGeneric = _chunkCWRVTQUOcjs.hasGenericEmailDomain.call(void 0, email);
|
|
26838
26861
|
const [syncedDefaultEmail, setSyncedDefaultEmail] = _react.useState.call(void 0, defaultEmail);
|
|
26839
26862
|
if (syncedDefaultEmail !== defaultEmail) {
|
|
26840
26863
|
setSyncedDefaultEmail(defaultEmail);
|
|
@@ -26868,7 +26891,7 @@ function WaitlistForm({
|
|
|
26868
26891
|
setShowConsentError(true);
|
|
26869
26892
|
return;
|
|
26870
26893
|
}
|
|
26871
|
-
const finalPhone = phone ?
|
|
26894
|
+
const finalPhone = phone ? _chunkCWRVTQUOcjs.formatPhoneE164.call(void 0, phone, countryCode) : void 0;
|
|
26872
26895
|
try {
|
|
26873
26896
|
await onRegister(email, finalPhone, getSignals(), rescue.submitFields());
|
|
26874
26897
|
rescue.complete();
|
|
@@ -27658,7 +27681,7 @@ function NotificationTile({
|
|
|
27658
27681
|
children: [
|
|
27659
27682
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
27660
27683
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex size-4 shrink-0 items-center justify-center", typeColorByVariant[accentVariant]), children: image ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27661
|
-
|
|
27684
|
+
_chunkHOTM4UM6cjs.next_image_default,
|
|
27662
27685
|
{
|
|
27663
27686
|
src: image,
|
|
27664
27687
|
alt: "",
|
|
@@ -27678,7 +27701,7 @@ function NotificationTile({
|
|
|
27678
27701
|
{
|
|
27679
27702
|
dateTime: createdAtIso,
|
|
27680
27703
|
className: _chunk3ATAYP36cjs.cn.call(void 0, "shrink-0 whitespace-nowrap text-ods-text-secondary text-h6", lockscreen && "self-start"),
|
|
27681
|
-
children: _nullishCoalesce(timeLabel, () => (
|
|
27704
|
+
children: _nullishCoalesce(timeLabel, () => ( _chunkGABDE3FMcjs.formatTicketRelativeTime.call(void 0, createdAtIso)))
|
|
27682
27705
|
}
|
|
27683
27706
|
) : null,
|
|
27684
27707
|
!lockscreen && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "relative size-4 shrink-0", children: [
|
|
@@ -27980,7 +28003,7 @@ function DesktopNotificationsToggleRow({ checked, onChange }) {
|
|
|
27980
28003
|
}
|
|
27981
28004
|
function NotificationsHistoryButton({ onClick, historyHref }) {
|
|
27982
28005
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27983
|
-
|
|
28006
|
+
_chunkDSVNFRY5cjs.SplitButton,
|
|
27984
28007
|
{
|
|
27985
28008
|
variant: "outline",
|
|
27986
28009
|
fullWidth: true,
|
|
@@ -28130,13 +28153,13 @@ function getApprovalMeta(notification) {
|
|
|
28130
28153
|
function resolutionToStatus(resolution) {
|
|
28131
28154
|
switch (typeof resolution === "string" ? resolution.toUpperCase() : void 0) {
|
|
28132
28155
|
case "APPROVED":
|
|
28133
|
-
return
|
|
28156
|
+
return _chunkPQ2M7P2Ucjs.APPROVAL_STATUS.APPROVED;
|
|
28134
28157
|
case "REJECTED":
|
|
28135
|
-
return
|
|
28158
|
+
return _chunkPQ2M7P2Ucjs.APPROVAL_STATUS.REJECTED;
|
|
28136
28159
|
case "CANCELLED":
|
|
28137
|
-
return
|
|
28160
|
+
return _chunkPQ2M7P2Ucjs.APPROVAL_STATUS.CANCELLED;
|
|
28138
28161
|
default:
|
|
28139
|
-
return
|
|
28162
|
+
return _chunkPQ2M7P2Ucjs.APPROVAL_STATUS.PENDING;
|
|
28140
28163
|
}
|
|
28141
28164
|
}
|
|
28142
28165
|
function approvalMetaToBatchData(approval) {
|
|
@@ -28182,7 +28205,7 @@ function ApprovalRequestNotificationTile({
|
|
|
28182
28205
|
const resolvedStatus = resolutionToStatus(_optionalChain([approval, 'optionalAccess', _568 => _568.resolution]));
|
|
28183
28206
|
const status = resolvedStatus !== "pending" ? resolvedStatus : _nullishCoalesce(localStatus, () => ( "pending"));
|
|
28184
28207
|
const batchData = _react.useMemo.call(void 0, () => approval ? approvalMetaToBatchData(approval) : null, [approval]);
|
|
28185
|
-
const { innerRef, containerStyle } =
|
|
28208
|
+
const { innerRef, containerStyle } = _chunkGABDE3FMcjs.useCollapsible.call(void 0, { expanded });
|
|
28186
28209
|
if (!approval || !batchData) return null;
|
|
28187
28210
|
const tileNotification = {
|
|
28188
28211
|
...notification,
|
|
@@ -28245,7 +28268,7 @@ function ApprovalRequestNotificationTile({
|
|
|
28245
28268
|
}
|
|
28246
28269
|
)
|
|
28247
28270
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
28248
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28271
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGABDE3FMcjs.ApprovalStatusTag, { status }),
|
|
28249
28272
|
approval.resolvedByName ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: [
|
|
28250
28273
|
"by ",
|
|
28251
28274
|
approval.resolvedByName
|
|
@@ -28263,12 +28286,12 @@ function ApprovalRequestNotificationTile({
|
|
|
28263
28286
|
"aria-expanded": expanded,
|
|
28264
28287
|
"aria-label": toggleLabel,
|
|
28265
28288
|
className: "ml-auto w-6 shrink-0 px-0 md:w-8",
|
|
28266
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28289
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGABDE3FMcjs.ExpandChevron, { expanded })
|
|
28267
28290
|
}
|
|
28268
28291
|
)
|
|
28269
28292
|
] }),
|
|
28270
28293
|
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,
|
|
28271
|
-
|
|
28294
|
+
_chunkGABDE3FMcjs.ApprovalBatchMessage,
|
|
28272
28295
|
{
|
|
28273
28296
|
data: batchData,
|
|
28274
28297
|
showExecutionStatus: false,
|
|
@@ -28341,7 +28364,7 @@ function renderCustomerOption(option, isSelected) {
|
|
|
28341
28364
|
const { label, imageUrl } = option;
|
|
28342
28365
|
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: [
|
|
28343
28366
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
28344
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28367
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ZFCR7UYcjs.SquareAvatar, { src: imageUrl, alt: label, fallback: label, size: "sm", variant: "square" }),
|
|
28345
28368
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", title: label, children: label })
|
|
28346
28369
|
] }),
|
|
28347
28370
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
@@ -28425,7 +28448,7 @@ function TimeTrackerPanel({
|
|
|
28425
28448
|
}));
|
|
28426
28449
|
const selectedCustomer = customerAutocompleteOptions.find((o) => o.value === selectedCustomerId);
|
|
28427
28450
|
const customerStartAdornment = selectedCustomer ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28428
|
-
|
|
28451
|
+
_chunk7ZFCR7UYcjs.SquareAvatar,
|
|
28429
28452
|
{
|
|
28430
28453
|
src: selectedCustomer.imageUrl,
|
|
28431
28454
|
alt: selectedCustomer.label,
|
|
@@ -28505,7 +28528,7 @@ function TimeTrackerPanel({
|
|
|
28505
28528
|
] }),
|
|
28506
28529
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "grid gap-[var(--spacing-system-m)]", showCustomer && "grid-cols-2"), children: [
|
|
28507
28530
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28508
|
-
|
|
28531
|
+
_chunkDSVNFRY5cjs.Autocomplete,
|
|
28509
28532
|
{
|
|
28510
28533
|
value: selectedTicketId,
|
|
28511
28534
|
onChange: onSelectedTicketChange,
|
|
@@ -28521,7 +28544,7 @@ function TimeTrackerPanel({
|
|
|
28521
28544
|
}
|
|
28522
28545
|
),
|
|
28523
28546
|
showCustomer && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28524
|
-
|
|
28547
|
+
_chunkDSVNFRY5cjs.Autocomplete,
|
|
28525
28548
|
{
|
|
28526
28549
|
value: _nullishCoalesce(selectedCustomerId, () => ( null)),
|
|
28527
28550
|
onChange: onSelectedCustomerChange,
|
|
@@ -28574,7 +28597,7 @@ function TimeTrackerPanel({
|
|
|
28574
28597
|
}
|
|
28575
28598
|
),
|
|
28576
28599
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28577
|
-
|
|
28600
|
+
_chunkDSVNFRY5cjs.SplitButton,
|
|
28578
28601
|
{
|
|
28579
28602
|
variant: "outline",
|
|
28580
28603
|
fullWidth: true,
|
|
@@ -28604,7 +28627,7 @@ var STATUS_TAG_SKIN = "gap-[var(--spacing-system-xs)] font-mono font-medium uppe
|
|
|
28604
28627
|
function StatusTag({ status }) {
|
|
28605
28628
|
if (status === "tracking") {
|
|
28606
28629
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28607
|
-
|
|
28630
|
+
_chunk7ZFCR7UYcjs.Tag,
|
|
28608
28631
|
{
|
|
28609
28632
|
variant: "success",
|
|
28610
28633
|
className: STATUS_TAG_SKIN,
|
|
@@ -28614,9 +28637,9 @@ function StatusTag({ status }) {
|
|
|
28614
28637
|
);
|
|
28615
28638
|
}
|
|
28616
28639
|
if (status === "paused") {
|
|
28617
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28640
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ZFCR7UYcjs.Tag, { variant: "warning", className: STATUS_TAG_SKIN, icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4D25RXYZcjs.PauseIcon, { className: "h-4 w-4" }), label: "Paused" });
|
|
28618
28641
|
}
|
|
28619
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28642
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ZFCR7UYcjs.Tag, { variant: "grey", className: STATUS_TAG_SKIN, label: "Ready to Track" });
|
|
28620
28643
|
}
|
|
28621
28644
|
function LastEntryRow({ entry, onClick }) {
|
|
28622
28645
|
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: [
|
|
@@ -28811,7 +28834,7 @@ function TimeTrackerHeaderButton({ className, disabled }) {
|
|
|
28811
28834
|
|
|
28812
28835
|
// src/components/features/devices/device-last-online.ts
|
|
28813
28836
|
function formatLastOnline(lastSeen) {
|
|
28814
|
-
return `Last Online: ${lastSeen ?
|
|
28837
|
+
return `Last Online: ${lastSeen ? _chunkGABDE3FMcjs.formatRelativeTime.call(void 0, lastSeen) : "\u2014"}`;
|
|
28815
28838
|
}
|
|
28816
28839
|
|
|
28817
28840
|
// src/components/features/devices/device-name.ts
|
|
@@ -28855,7 +28878,7 @@ var SELECTION_MODE_OPTIONS = [
|
|
|
28855
28878
|
label: "Select Devices by Criteria",
|
|
28856
28879
|
description: CRITERIA_MODE_DESCRIPTION,
|
|
28857
28880
|
disabled: true,
|
|
28858
|
-
trailing: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28881
|
+
trailing: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ZFCR7UYcjs.Tag, { label: "Coming Soon", variant: "grey" })
|
|
28859
28882
|
}
|
|
28860
28883
|
];
|
|
28861
28884
|
var SELECTION_MODE_OPTIONS_ENABLED = [
|
|
@@ -28960,7 +28983,7 @@ function getDeviceStatusConfig(status) {
|
|
|
28960
28983
|
}
|
|
28961
28984
|
}
|
|
28962
28985
|
function getDeviceOperatingSystem(osType) {
|
|
28963
|
-
return
|
|
28986
|
+
return _chunkCWRVTQUOcjs.getOSPlatformId.call(void 0, osType);
|
|
28964
28987
|
}
|
|
28965
28988
|
|
|
28966
28989
|
// src/components/features/devices/device-statuses.ts
|
|
@@ -29136,8 +29159,8 @@ function DevicesFilterToolbar({
|
|
|
29136
29159
|
|
|
29137
29160
|
|
|
29138
29161
|
function formatDateTime(input) {
|
|
29139
|
-
const date =
|
|
29140
|
-
return date === "\u2014" ? date : `${date} ${
|
|
29162
|
+
const date = _chunkPQ2M7P2Ucjs.formatDate.call(void 0, input);
|
|
29163
|
+
return date === "\u2014" ? date : `${date} ${_chunkPQ2M7P2Ucjs.formatTime.call(void 0, input)}`;
|
|
29141
29164
|
}
|
|
29142
29165
|
function uniqueById(options) {
|
|
29143
29166
|
const seen = /* @__PURE__ */ new Map();
|
|
@@ -29242,7 +29265,7 @@ function DevicesTableBody({
|
|
|
29242
29265
|
function OrganizationCell({ device }) {
|
|
29243
29266
|
const fullImageUrl = useDeviceImageUrl(device.organizationImageUrl, device.organizationImageHash);
|
|
29244
29267
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
29245
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29268
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.EntityImage, { src: fullImageUrl, alt: device.organization || "Customer", className: "size-12 content-md:size-12" }),
|
|
29246
29269
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "break-words text-ods-text-primary text-h4", children: device.organization || "" }) })
|
|
29247
29270
|
] });
|
|
29248
29271
|
}
|
|
@@ -29286,7 +29309,7 @@ function getDeviceTableColumns(deviceFilters, filtersPending) {
|
|
|
29286
29309
|
const device = row.original;
|
|
29287
29310
|
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: [
|
|
29288
29311
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeviceTypeTile, { type: device.type }),
|
|
29289
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29312
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { children: getDeviceName(device) }) })
|
|
29290
29313
|
] });
|
|
29291
29314
|
},
|
|
29292
29315
|
meta: { width: "flex-1 content-md:w-1/4" }
|
|
@@ -29299,7 +29322,7 @@ function getDeviceTableColumns(deviceFilters, filtersPending) {
|
|
|
29299
29322
|
const device = row.original;
|
|
29300
29323
|
const statusConfig2 = getDeviceStatusConfig(device.status);
|
|
29301
29324
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col items-start gap-1", children: [
|
|
29302
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "inline-flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29325
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "inline-flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ZFCR7UYcjs.Tag, { label: statusConfig2.label, variant: statusConfig2.variant }) }),
|
|
29303
29326
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "hidden text-ods-text-secondary text-h6 content-md:flex", children: device.last_seen ? formatDateTime(device.last_seen) : "Never" })
|
|
29304
29327
|
] });
|
|
29305
29328
|
},
|
|
@@ -29457,7 +29480,7 @@ function CustomerCell({ device }) {
|
|
|
29457
29480
|
const fullImageUrl = useDeviceImageUrl(device.organizationImageUrl, device.organizationImageHash);
|
|
29458
29481
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
29459
29482
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29460
|
-
|
|
29483
|
+
_chunkDSVNFRY5cjs.EntityImage,
|
|
29461
29484
|
{
|
|
29462
29485
|
src: fullImageUrl,
|
|
29463
29486
|
alt: device.organization || "Customer",
|
|
@@ -29465,8 +29488,8 @@ function CustomerCell({ device }) {
|
|
|
29465
29488
|
}
|
|
29466
29489
|
),
|
|
29467
29490
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
29468
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29469
|
-
device.organizationEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29491
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { children: device.organization || "" }),
|
|
29492
|
+
device.organizationEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { variant: "h6", tone: "secondary", children: device.organizationEmail })
|
|
29470
29493
|
] })
|
|
29471
29494
|
] });
|
|
29472
29495
|
}
|
|
@@ -29760,8 +29783,8 @@ function DeviceSelector({
|
|
|
29760
29783
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 items-center gap-3", children: [
|
|
29761
29784
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeviceTypeTile, { type: device.type }),
|
|
29762
29785
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col", children: [
|
|
29763
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29764
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29786
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { children: getDeviceName(device) }),
|
|
29787
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { variant: "h6", tone: "secondary", children: formatLastOnline(lastSeen) })
|
|
29765
29788
|
] })
|
|
29766
29789
|
] });
|
|
29767
29790
|
},
|
|
@@ -29796,7 +29819,7 @@ function DeviceSelector({
|
|
|
29796
29819
|
header: "STATUS",
|
|
29797
29820
|
cell: ({ row }) => {
|
|
29798
29821
|
const config = getDeviceStatusConfig(row.original.status);
|
|
29799
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29822
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ZFCR7UYcjs.Tag, { label: config.label, variant: config.variant, className: "w-min" });
|
|
29800
29823
|
},
|
|
29801
29824
|
enableSorting: false,
|
|
29802
29825
|
meta: {
|
|
@@ -30499,7 +30522,7 @@ function DevicesPanelView({
|
|
|
30499
30522
|
] })
|
|
30500
30523
|
] });
|
|
30501
30524
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30502
|
-
|
|
30525
|
+
_chunkDSVNFRY5cjs.PageLayout,
|
|
30503
30526
|
{
|
|
30504
30527
|
title,
|
|
30505
30528
|
backButton,
|
|
@@ -30507,7 +30530,7 @@ function DevicesPanelView({
|
|
|
30507
30530
|
actionsVariant: "icon-buttons",
|
|
30508
30531
|
className,
|
|
30509
30532
|
selector: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30510
|
-
|
|
30533
|
+
_chunkBV5WZVOPcjs.TabSelector,
|
|
30511
30534
|
{
|
|
30512
30535
|
value: viewMode,
|
|
30513
30536
|
onValueChange: (value) => _optionalChain([onViewModeChange, 'optionalCall', _644 => _644(value)]),
|
|
@@ -30573,7 +30596,7 @@ var PACKAGE_SEARCH_LABEL = "Software Name";
|
|
|
30573
30596
|
var PACKAGE_SEARCH_PLACEHOLDER = "Search for Software";
|
|
30574
30597
|
function PackageSearchFieldPlaceholder({ error }) {
|
|
30575
30598
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30576
|
-
|
|
30599
|
+
_chunkDSVNFRY5cjs.Autocomplete,
|
|
30577
30600
|
{
|
|
30578
30601
|
label: PACKAGE_SEARCH_LABEL,
|
|
30579
30602
|
labelVariant: "large",
|
|
@@ -30628,16 +30651,16 @@ function SoftwareScheduleFields({
|
|
|
30628
30651
|
] }),
|
|
30629
30652
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
30630
30653
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK6VWTUCHcjs.Label, { className: "text-h4", children: "Time" }),
|
|
30631
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30632
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30633
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30654
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDSVNFRY5cjs.Select, { value: time, onValueChange: onTimeChange, children: [
|
|
30655
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectValue, { placeholder: "Select time" }) }),
|
|
30656
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectContent, { children: timeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
30634
30657
|
] })
|
|
30635
30658
|
] }),
|
|
30636
30659
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
30637
30660
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK6VWTUCHcjs.Label, { className: "text-h4", children: "Timezone" }),
|
|
30638
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30639
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30640
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30661
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDSVNFRY5cjs.Select, { value: timeReference, onValueChange: (value) => onTimeReferenceChange(value), children: [
|
|
30662
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectValue, {}) }),
|
|
30663
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectContent, { children: timing.timeReferenceOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
30641
30664
|
] })
|
|
30642
30665
|
] })
|
|
30643
30666
|
]
|
|
@@ -30703,22 +30726,22 @@ function newSoftwareRow(key) {
|
|
|
30703
30726
|
|
|
30704
30727
|
function InfoCell2({ value, label }) {
|
|
30705
30728
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
30706
|
-
/* @__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,
|
|
30729
|
+
/* @__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, _chunkDSVNFRY5cjs.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" }) }) }),
|
|
30707
30730
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: label })
|
|
30708
30731
|
] });
|
|
30709
30732
|
}
|
|
30710
30733
|
function SoftwareRowFields({ row, removable, onChange, onRemove, renderPackageSearch }) {
|
|
30711
30734
|
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: [
|
|
30712
30735
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30713
|
-
|
|
30736
|
+
_chunkDSVNFRY5cjs.Select,
|
|
30714
30737
|
{
|
|
30715
30738
|
value: row.packageManager,
|
|
30716
30739
|
onValueChange: (value) => onChange({ ...row, packageManager: value, pkg: null }),
|
|
30717
30740
|
children: [
|
|
30718
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30719
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30741
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectTrigger, { label: "Package Manager", labelVariant: "large", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectValue, {}) }),
|
|
30742
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectContent, { children: PACKAGE_MANAGERS.map((manager) => {
|
|
30720
30743
|
const Icon = PACKAGE_MANAGER_ICON[manager];
|
|
30721
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30744
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.SelectItem, { value: manager, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
30722
30745
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { size: 20, className: "shrink-0 text-ods-text-secondary" }),
|
|
30723
30746
|
PACKAGE_MANAGER_LABEL[manager]
|
|
30724
30747
|
] }) }, manager);
|
|
@@ -30816,7 +30839,7 @@ function SoftwareActionForm({
|
|
|
30816
30839
|
}
|
|
30817
30840
|
);
|
|
30818
30841
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30819
|
-
|
|
30842
|
+
_chunkDSVNFRY5cjs.PageLayout,
|
|
30820
30843
|
{
|
|
30821
30844
|
title: copy.formTitle,
|
|
30822
30845
|
backButton: onBack ? { label: "Back", onClick: onBack } : void 0,
|
|
@@ -30897,7 +30920,7 @@ function LogDrawer({
|
|
|
30897
30920
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, AppLayoutDrawerHeader, { children: [
|
|
30898
30921
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AppLayoutDrawerTitle, { children: "Log Details" }),
|
|
30899
30922
|
(statusTag || timestamp) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
30900
|
-
statusTag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30923
|
+
statusTag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ZFCR7UYcjs.Tag, { label: statusTag.label, variant: statusTag.variant }),
|
|
30901
30924
|
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h6", children: timestamp })
|
|
30902
30925
|
] })
|
|
30903
30926
|
] }),
|
|
@@ -30905,7 +30928,7 @@ function LogDrawer({
|
|
|
30905
30928
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-h-0 flex-1 space-y-4 overflow-y-auto", children: [
|
|
30906
30929
|
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 }) }),
|
|
30907
30930
|
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: [
|
|
30908
|
-
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,
|
|
30931
|
+
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, _chunkDSVNFRY5cjs.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 }),
|
|
30909
30932
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: field.label })
|
|
30910
30933
|
] }, typeof field.label === "string" ? field.label : "")) }),
|
|
30911
30934
|
children
|
|
@@ -30953,7 +30976,7 @@ function LogsPageView({
|
|
|
30953
30976
|
],
|
|
30954
30977
|
[onRefresh]
|
|
30955
30978
|
);
|
|
30956
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30979
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDSVNFRY5cjs.PageLayout, { title: "Logs", actions, showHeader, className, children: [
|
|
30957
30980
|
!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: [
|
|
30958
30981
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30959
30982
|
_chunkHTRILBJDcjs.Input,
|
|
@@ -31023,10 +31046,10 @@ var ToolBadge = ({
|
|
|
31023
31046
|
className,
|
|
31024
31047
|
iconClassName
|
|
31025
31048
|
}) => {
|
|
31026
|
-
const text = _nullishCoalesce(label, () => ( (toolType ?
|
|
31049
|
+
const text = _nullishCoalesce(label, () => ( (toolType ? _chunkCWRVTQUOcjs.getToolLabel.call(void 0, toolType) : "")));
|
|
31027
31050
|
const mark = _nullishCoalesce(icon, () => ( (toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNTJE6SM6cjs.ToolIcon, { toolType, className: iconClassName, size: 16 }) : null)));
|
|
31028
31051
|
const linked = (node, linkClassName) => href && targetPlatform ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31029
|
-
|
|
31052
|
+
_chunkBV5WZVOPcjs.NavLinkAnchorViaRuntime,
|
|
31030
31053
|
{
|
|
31031
31054
|
href,
|
|
31032
31055
|
targetPlatform,
|
|
@@ -31104,8 +31127,8 @@ function LogsTableView({
|
|
|
31104
31127
|
accessorKey: "logId",
|
|
31105
31128
|
header: logIdHeader ? () => logIdHeader : "Log ID",
|
|
31106
31129
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col justify-center", children: [
|
|
31107
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31108
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31130
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { children: row.original.timestamp }),
|
|
31131
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { variant: "h6", tone: "secondary", children: row.original.logId })
|
|
31109
31132
|
] }),
|
|
31110
31133
|
enableSorting: false,
|
|
31111
31134
|
meta: { width: LOG_COLUMN_WIDTHS.logId, alwaysShowHeader: true }
|
|
@@ -31113,7 +31136,7 @@ function LogsTableView({
|
|
|
31113
31136
|
{
|
|
31114
31137
|
accessorKey: "status",
|
|
31115
31138
|
header: "Status",
|
|
31116
|
-
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31139
|
+
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ZFCR7UYcjs.Tag, { label: row.original.status.label, variant: row.original.status.variant }) }),
|
|
31117
31140
|
enableSorting: false,
|
|
31118
31141
|
filterFn: multiSelect,
|
|
31119
31142
|
meta: {
|
|
@@ -31133,7 +31156,7 @@ function LogsTableView({
|
|
|
31133
31156
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31134
31157
|
ToolBadge,
|
|
31135
31158
|
{
|
|
31136
|
-
toolType:
|
|
31159
|
+
toolType: _chunkCWRVTQUOcjs.normalizeToolTypeWithFallback.call(void 0, row.original.source.toolType),
|
|
31137
31160
|
iconClassName: "h-4 w-4 content-md:h-6 content-md:w-6"
|
|
31138
31161
|
}
|
|
31139
31162
|
),
|
|
@@ -31145,7 +31168,7 @@ function LogsTableView({
|
|
|
31145
31168
|
filter: {
|
|
31146
31169
|
options: _nullishCoalesce(_optionalChain([facets, 'optionalAccess', _652 => _652.toolTypes, 'access', _653 => _653.map, 'call', _654 => _654((toolType) => ({
|
|
31147
31170
|
id: toolType,
|
|
31148
|
-
label:
|
|
31171
|
+
label: _chunkCWRVTQUOcjs.toToolLabel.call(void 0, toolType),
|
|
31149
31172
|
value: toolType
|
|
31150
31173
|
}))]), () => ( []))
|
|
31151
31174
|
}
|
|
@@ -31157,8 +31180,8 @@ function LogsTableView({
|
|
|
31157
31180
|
cell: ({ row }) => {
|
|
31158
31181
|
const { deviceName, organization } = logSourceLabels(row.original.device);
|
|
31159
31182
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-h-[60px] flex-col justify-center gap-1 py-2", children: [
|
|
31160
|
-
deviceName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31161
|
-
organization && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31183
|
+
deviceName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { children: deviceName }),
|
|
31184
|
+
organization && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { variant: "h6", tone: "secondary", children: organization })
|
|
31162
31185
|
] });
|
|
31163
31186
|
},
|
|
31164
31187
|
enableSorting: false,
|
|
@@ -31172,7 +31195,7 @@ function LogsTableView({
|
|
|
31172
31195
|
{
|
|
31173
31196
|
accessorKey: "description",
|
|
31174
31197
|
header: "Log Details",
|
|
31175
|
-
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31198
|
+
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { lines: 3, className: "text-ods-text-secondary text-h6", children: row.original.description.title }),
|
|
31176
31199
|
enableSorting: false,
|
|
31177
31200
|
meta: { width: LOG_COLUMN_WIDTHS.description, hideAt: "lg" }
|
|
31178
31201
|
},
|
|
@@ -31203,7 +31226,7 @@ function LogsTableView({
|
|
|
31203
31226
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31204
31227
|
_chunk2QMBXGMQcjs.Button,
|
|
31205
31228
|
{
|
|
31206
|
-
onClick: getLogHref ?
|
|
31229
|
+
onClick: getLogHref ? _chunkCWRVTQUOcjs.openInNewTab.call(void 0, getLogHref(row.original)) : void 0,
|
|
31207
31230
|
variant: "outline",
|
|
31208
31231
|
size: "icon",
|
|
31209
31232
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
@@ -31432,7 +31455,7 @@ function getKnowledgeBaseOpenColumn(getHref) {
|
|
|
31432
31455
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31433
31456
|
_chunk2QMBXGMQcjs.Button,
|
|
31434
31457
|
{
|
|
31435
|
-
onClick:
|
|
31458
|
+
onClick: _chunkCWRVTQUOcjs.openInNewTab.call(void 0, getHref(row.original)),
|
|
31436
31459
|
variant: "outline",
|
|
31437
31460
|
size: "icon",
|
|
31438
31461
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
@@ -31458,9 +31481,9 @@ function getKnowledgeBaseColumns(mode) {
|
|
|
31458
31481
|
/* @__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" }) }),
|
|
31459
31482
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
31460
31483
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
31461
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31484
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { children: item.name }) }),
|
|
31462
31485
|
tagStatus && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31463
|
-
|
|
31486
|
+
_chunk7ZFCR7UYcjs.Tag,
|
|
31464
31487
|
{
|
|
31465
31488
|
variant: KNOWLEDGE_BASE_STATUS_VARIANT[tagStatus],
|
|
31466
31489
|
label: tagStatus,
|
|
@@ -31468,7 +31491,7 @@ function getKnowledgeBaseColumns(mode) {
|
|
|
31468
31491
|
}
|
|
31469
31492
|
)
|
|
31470
31493
|
] }),
|
|
31471
|
-
item.type === "ARTICLE" && item.summary && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31494
|
+
item.type === "ARTICLE" && item.summary && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { variant: "h6", tone: "secondary", children: item.summary })
|
|
31472
31495
|
] })
|
|
31473
31496
|
] });
|
|
31474
31497
|
},
|
|
@@ -31483,8 +31506,8 @@ function getKnowledgeBaseColumns(mode) {
|
|
|
31483
31506
|
const ts = mode === "archive" ? _nullishCoalesce(row.original.updatedAt, () => ( row.original.createdAt)) : row.original.createdAt;
|
|
31484
31507
|
if (!ts) return null;
|
|
31485
31508
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col whitespace-nowrap", children: [
|
|
31486
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-primary text-h4", children:
|
|
31487
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-heading-5 text-ods-text-secondary", children:
|
|
31509
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-primary text-h4", children: _chunkPQ2M7P2Ucjs.formatDate.call(void 0, ts) }),
|
|
31510
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-heading-5 text-ods-text-secondary", children: _chunkPQ2M7P2Ucjs.formatTime.call(void 0, ts) })
|
|
31488
31511
|
] });
|
|
31489
31512
|
},
|
|
31490
31513
|
enableSorting: false,
|
|
@@ -31548,7 +31571,7 @@ function KnowledgeBaseArticleView({
|
|
|
31548
31571
|
className = "px-[var(--spacing-system-l)] pb-[var(--spacing-system-l)]"
|
|
31549
31572
|
}) {
|
|
31550
31573
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
31551
|
-
|
|
31574
|
+
_chunkDSVNFRY5cjs.PageLayout,
|
|
31552
31575
|
{
|
|
31553
31576
|
title,
|
|
31554
31577
|
backButton: onBack ? { label: "Back", onClick: onBack } : void 0,
|
|
@@ -31557,11 +31580,11 @@ function KnowledgeBaseArticleView({
|
|
|
31557
31580
|
menuActions,
|
|
31558
31581
|
className,
|
|
31559
31582
|
children: [
|
|
31560
|
-
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,
|
|
31561
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31583
|
+
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, _chunk7ZFCR7UYcjs.Tag, { label: tag.label, variant: "outline", className: "max-w-full" }, tag.id)) }),
|
|
31584
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYXKB5WREcjs.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: [
|
|
31562
31585
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
31563
|
-
author.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31564
|
-
|
|
31586
|
+
author.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO67V3HJRcjs.DeletedUserAvatar, { size: "md" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31587
|
+
_chunk7ZFCR7UYcjs.SquareAvatar,
|
|
31565
31588
|
{
|
|
31566
31589
|
src: author.imageUrl,
|
|
31567
31590
|
fallback: _nullishCoalesce(author.name, () => ( "A")),
|
|
@@ -31571,12 +31594,12 @@ function KnowledgeBaseArticleView({
|
|
|
31571
31594
|
}
|
|
31572
31595
|
),
|
|
31573
31596
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
31574
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31597
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { className: author.deleted ? "text-ods-error" : void 0, children: _nullishCoalesce(author.name, () => ( "Unknown")) }),
|
|
31575
31598
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Author" })
|
|
31576
31599
|
] })
|
|
31577
31600
|
] }),
|
|
31578
31601
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 min-w-0 flex-col justify-center", children: [
|
|
31579
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31602
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { children: updatedLabel }),
|
|
31580
31603
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Updated" })
|
|
31581
31604
|
] }),
|
|
31582
31605
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -31587,7 +31610,7 @@ function KnowledgeBaseArticleView({
|
|
|
31587
31610
|
}
|
|
31588
31611
|
),
|
|
31589
31612
|
/* @__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: [
|
|
31590
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31613
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ZFCR7UYcjs.Tag, { variant: KNOWLEDGE_BASE_STATUS_VARIANT[status], label: status }),
|
|
31591
31614
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Status" })
|
|
31592
31615
|
] })
|
|
31593
31616
|
] }) }),
|
|
@@ -31712,8 +31735,8 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
|
|
|
31712
31735
|
// Dragging towards the edge of the screen — or past it — scrolls whatever
|
|
31713
31736
|
// actually scrolls there: the page, the layout's `<main>`, or the list
|
|
31714
31737
|
// itself when it has its own overflow.
|
|
31715
|
-
|
|
31716
|
-
|
|
31738
|
+
_chunkO67V3HJRcjs.autoScrollAncestors.call(void 0, list),
|
|
31739
|
+
_chunkO67V3HJRcjs.autoScrollBothWays.call(void 0, list),
|
|
31717
31740
|
// One target for the whole list: which slot a drop lands in is answered by
|
|
31718
31741
|
// geometry, so this only has to say "inside the list, or outside it".
|
|
31719
31742
|
_adapter.dropTargetForElements.call(void 0, {
|
|
@@ -31880,7 +31903,7 @@ function useSortableItem() {
|
|
|
31880
31903
|
return _combine.combine.call(void 0,
|
|
31881
31904
|
// The drag has to start as a "move", or its first frame is drawn with the
|
|
31882
31905
|
// copy cursor — see `drag-effect.ts`.
|
|
31883
|
-
|
|
31906
|
+
_chunkO67V3HJRcjs.holdMoveDragEffect.call(void 0, item),
|
|
31884
31907
|
_adapter.draggable.call(void 0, {
|
|
31885
31908
|
element: item,
|
|
31886
31909
|
dragHandle: handle,
|
|
@@ -31973,13 +31996,13 @@ function ConversationCard({
|
|
|
31973
31996
|
),
|
|
31974
31997
|
style: tint,
|
|
31975
31998
|
children: [
|
|
31976
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31999
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCWRVTQUOcjs.ChatTurn, { avatar: requester.avatar, name: requester.name, meta: requester.meta, time: requester.time, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "m-0 line-clamp-2 min-h-[2lh] text-ods-text-primary text-h3", title: request, children: [
|
|
31977
32000
|
"\u201C",
|
|
31978
32001
|
request,
|
|
31979
32002
|
"\u201D"
|
|
31980
32003
|
] }) }),
|
|
31981
32004
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31982
|
-
|
|
32005
|
+
_chunkCWRVTQUOcjs.ChatTurn,
|
|
31983
32006
|
{
|
|
31984
32007
|
avatar: responder.avatar,
|
|
31985
32008
|
name: responder.name,
|
|
@@ -31995,7 +32018,7 @@ function ConversationCard({
|
|
|
31995
32018
|
),
|
|
31996
32019
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mt-auto flex items-center justify-between gap-[var(--spacing-system-sf)] text-ods-text-secondary text-h6", children: [
|
|
31997
32020
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: footerLabel }),
|
|
31998
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32021
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ZFCR7UYcjs.Tag, { as: "span", label: footerValue, variant: footerTone === "attention" ? "warning" : "badge" })
|
|
31999
32022
|
] })
|
|
32000
32023
|
]
|
|
32001
32024
|
}
|
|
@@ -32016,7 +32039,7 @@ function Highlights({ items, className }) {
|
|
|
32016
32039
|
if (items.length === 0) return null;
|
|
32017
32040
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: _chunk3ATAYP36cjs.cn.call(void 0, "grid grid-cols-1 gap-2", className), children: items.slice(0, 3).map((text) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "li", { className: "flex min-w-0 items-center gap-2.5", children: [
|
|
32018
32041
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { size: 16, className: "shrink-0 text-ods-flamingo-cyan" }),
|
|
32019
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32042
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { variant: "h6", triggerClassName: "flex-1", children: text })
|
|
32020
32043
|
] }, text)) });
|
|
32021
32044
|
}
|
|
32022
32045
|
function Example({
|
|
@@ -32045,7 +32068,7 @@ function Example({
|
|
|
32045
32068
|
mark(_nullishCoalesce(_optionalChain([requester, 'optionalAccess', _685 => _685.mark]), () => ( requesterMark))),
|
|
32046
32069
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
32047
32070
|
who(_nullishCoalesce(_optionalChain([requester, 'optionalAccess', _686 => _686.name]), () => ( labels.requester)), _nullishCoalesce(_optionalChain([requester, 'optionalAccess', _687 => _687.note]), () => ( labels.requesterNote))),
|
|
32048
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32071
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { lines: 2, variant: "h4", className: "min-h-[2lh]", children: `\u201C${example.request}\u201D` })
|
|
32049
32072
|
] })
|
|
32050
32073
|
] }),
|
|
32051
32074
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 gap-2.5 border-t border-ods-border pt-3", children: [
|
|
@@ -32054,7 +32077,7 @@ function Example({
|
|
|
32054
32077
|
who(_nullishCoalesce(_optionalChain([responder, 'optionalAccess', _689 => _689.name]), () => ( labels.responder)), _nullishCoalesce(_optionalChain([responder, 'optionalAccess', _690 => _690.note]), () => ( labels.responderNote))),
|
|
32055
32078
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-start gap-2", children: [
|
|
32056
32079
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { size: 16, className: "mt-0.5 shrink-0 text-ods-flamingo-cyan" }),
|
|
32057
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32080
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { lines: 2, variant: "h6", tone: "secondary", className: "min-h-[2lh]", triggerClassName: "flex-1", children: example.outcome })
|
|
32058
32081
|
] })
|
|
32059
32082
|
] })
|
|
32060
32083
|
] })
|
|
@@ -32103,16 +32126,16 @@ function CapabilityExplorer({
|
|
|
32103
32126
|
),
|
|
32104
32127
|
children: [
|
|
32105
32128
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
32106
|
-
item.iconName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex size-9 shrink-0 items-center justify-center rounded-lg border border-ods-border bg-ods-bg text-ods-flamingo-cyan", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32129
|
+
item.iconName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex size-9 shrink-0 items-center justify-center rounded-lg border border-ods-border bg-ods-bg text-ods-flamingo-cyan", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYXKB5WREcjs.EntityIcon, { icon: { name: item.iconName }, size: 18 }) }),
|
|
32107
32130
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
32108
32131
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "h3", { className: "flex min-w-0 items-center gap-2 text-ods-text-primary text-h4", children: [
|
|
32109
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32132
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { as: "span", variant: "h4", triggerClassName: "flex-1", children: item.title }),
|
|
32110
32133
|
item.badge
|
|
32111
32134
|
] }),
|
|
32112
|
-
item.caption && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32135
|
+
item.caption && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { variant: "h6", tone: "secondary", children: item.caption })
|
|
32113
32136
|
] })
|
|
32114
32137
|
] }),
|
|
32115
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32138
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { lines: 3, variant: "h6", tone: "secondary", className: "min-h-[3lh]", children: item.intro }),
|
|
32116
32139
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0 overflow-hidden rounded-lg border border-ods-border", children: renderScreen(item, { compact: true }) }),
|
|
32117
32140
|
item.example && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32118
32141
|
Example,
|
|
@@ -32187,7 +32210,7 @@ function CapabilityExplorer({
|
|
|
32187
32210
|
"flex size-9 shrink-0 items-center justify-center rounded-lg border border-ods-border bg-ods-bg",
|
|
32188
32211
|
selected ? "text-ods-flamingo-cyan" : "text-ods-text-secondary"
|
|
32189
32212
|
),
|
|
32190
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32213
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYXKB5WREcjs.EntityIcon, { icon: { name: item.iconName }, size: 18 })
|
|
32191
32214
|
}
|
|
32192
32215
|
),
|
|
32193
32216
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "min-w-0 flex-1", children: [
|
|
@@ -32240,8 +32263,8 @@ function CapabilityExplorer({
|
|
|
32240
32263
|
),
|
|
32241
32264
|
children: [
|
|
32242
32265
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col overflow-hidden", children: [
|
|
32243
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32244
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32266
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { lines: 2, variant: "h2", className: "mb-2", children: active.title }),
|
|
32267
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.TruncateText, { lines: 3, variant: "h4", tone: "secondary", className: "min-h-[3lh]", children: active.intro }),
|
|
32245
32268
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Highlights, { items: _nullishCoalesce(active.highlights, () => ( [])), className: "mt-auto" })
|
|
32246
32269
|
] }),
|
|
32247
32270
|
active.example && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|