@flamingo-stack/openframe-frontend-core 0.0.766 → 0.0.768
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-REJMFXGD.cjs → chunk-2MND64QJ.cjs} +46 -46
- package/dist/{chunk-F7R3U5EN.cjs → chunk-2TS3FEPQ.cjs} +4 -4
- package/dist/{chunk-WO3XO27C.cjs → chunk-2ZYCYLPL.cjs} +5 -5
- package/dist/{chunk-DGNBXZXT.cjs → chunk-4EJU462O.cjs} +57 -30
- package/dist/{chunk-JKQVKWLB.cjs → chunk-57KIBZFQ.cjs} +76 -76
- package/dist/{chunk-VYYLYZUC.cjs → chunk-5O6PHVKO.cjs} +4 -4
- package/dist/{chunk-XZ6DKGT4.cjs → chunk-5QP3K2CE.cjs} +5 -5
- package/dist/{chunk-NJMZ3N7Q.cjs → chunk-6EEE76VU.cjs} +24 -24
- package/dist/{chunk-YRFWOJF4.cjs → chunk-BLTNKLAX.cjs} +4 -4
- package/dist/{chunk-7U3ELNGC.cjs → chunk-DE7U72NZ.cjs} +26 -26
- package/dist/{chunk-GTONIRJU.cjs → chunk-EHJE3UWZ.cjs} +10 -16
- package/dist/{chunk-HNQRY6RU.cjs → chunk-GGORS7G6.cjs} +13 -13
- package/dist/{chunk-FZB4RMRK.cjs → chunk-HQF62LAU.cjs} +33 -33
- package/dist/{chunk-JTSUAHDL.cjs → chunk-HY6BCZH7.cjs} +4 -2
- package/dist/{chunk-MPTMT773.cjs → chunk-LJT2KRE2.cjs} +14 -14
- package/dist/{chunk-NBVZIHGS.cjs → chunk-MYA6NR2C.cjs} +2 -2
- package/dist/{chunk-NF3PBWDJ.cjs → chunk-NPVYID2L.cjs} +80 -80
- package/dist/{chunk-RTBYQWAV.cjs → chunk-OEVNX4OR.cjs} +44 -44
- package/dist/{chunk-UW7UWUZU.cjs → chunk-OGHLIUF4.cjs} +41 -41
- package/dist/{chunk-JGWN6GH5.cjs → chunk-PFY23KN7.cjs} +6 -6
- package/dist/{chunk-ZRDMGMY7.cjs → chunk-QS4G7CHU.cjs} +2 -2
- package/dist/{chunk-7XFVUUVZ.cjs → chunk-S4QS5E5A.cjs} +12 -12
- package/dist/{chunk-VRDHAR3X.cjs → chunk-STHQJNND.cjs} +517 -551
- package/dist/{chunk-INI4ADPT.cjs → chunk-U6UIG4OP.cjs} +31 -31
- package/dist/{chunk-7VI7TOGI.cjs → chunk-UBPSA3RM.cjs} +219 -181
- package/dist/{chunk-K3IHNXR4.cjs → chunk-VADRKMLE.cjs} +3 -3
- package/dist/{chunk-AAECWUNV.cjs → chunk-VFUMM6JC.cjs} +19 -11
- package/dist/{chunk-X7ECVSVN.cjs → chunk-VVBRYOSI.cjs} +19 -19
- package/dist/{chunk-ZV45VS6K.cjs → chunk-XI2CHCOD.cjs} +34 -43
- package/dist/{chunk-RMUSPTJN.cjs → chunk-ZVNL5OK6.cjs} +5 -5
- package/dist/{chunk-YL6ZB2SR.cjs → chunk-ZXFOMNI5.cjs} +183 -183
- package/dist/{cloud-tenants-U2KMEIO7.cjs → cloud-tenants-I5HABFNZ.cjs} +13 -13
- package/dist/components/case-studies/index.cjs +29 -29
- package/dist/components/case-studies/index.d.ts +1 -1
- package/dist/components/case-studies/index.d.ts.map +1 -1
- package/dist/components/case-studies/index.js +5 -1
- package/dist/components/chat/entity-cards/campaign-card-admin.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/investor-update-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/investor-update-card.js +9 -1
- package/dist/components/chat/hooks/use-ask-prompts.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +9 -9
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +18 -4
- package/dist/components/contact/index.cjs +14 -14
- package/dist/components/docs/index.cjs +17 -17
- package/dist/components/embeds/index.cjs +14 -14
- package/dist/components/embeds/rich-markdown-runtime.d.ts +4 -1
- package/dist/components/embeds/rich-markdown-runtime.d.ts.map +1 -1
- package/dist/components/embeds/rich-markdown-runtime.js +6 -5
- package/dist/components/faq/index.cjs +15 -15
- package/dist/components/features/cards-strip.d.ts.map +1 -1
- package/dist/components/features/command-box.d.ts.map +1 -1
- package/dist/components/features/command-box.js +2 -19
- package/dist/components/features/index.cjs +13 -13
- package/dist/components/features/paths-display.d.ts.map +1 -1
- package/dist/components/features/remote-session/remote-desktop-chat-message-row.d.ts.map +1 -1
- package/dist/components/features/remote-session/remote-desktop-chat-message-row.js +1 -10
- package/dist/components/features/walkthrough-video.d.ts.map +1 -1
- package/dist/components/features/walkthrough-video.js +3 -1
- package/dist/components/help-center-pages/index.cjs +98 -98
- package/dist/components/icon-display.d.ts.map +1 -1
- package/dist/components/icon-display.js +9 -1
- package/dist/components/index.cjs +74 -74
- package/dist/components/interactive-wrapper.d.ts.map +1 -1
- package/dist/components/interactive-wrapper.js +7 -1
- package/dist/components/layout/page-heading.d.ts.map +1 -1
- package/dist/components/layout/page-heading.js +8 -1
- package/dist/components/meeting-scheduler/directory.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +73 -73
- package/dist/components/navigation/index.cjs +16 -16
- package/dist/components/onboarding-guides/index.cjs +16 -16
- package/dist/components/product-demo/index.cjs +24 -24
- package/dist/components/related-content/index.cjs +7 -7
- package/dist/components/results-count.d.ts.map +1 -1
- package/dist/components/results-count.js +2 -2
- package/dist/components/tickets/index.cjs +19 -19
- package/dist/components/ui/avatar-stack.d.ts.map +1 -1
- package/dist/components/ui/avatar-stack.js +17 -9
- package/dist/components/ui/cursor-pagination.d.ts.map +1 -1
- package/dist/components/ui/data-table/data-table-row-count.js +1 -1
- package/dist/components/ui/feature-card.d.ts.map +1 -1
- package/dist/components/ui/feature-list.d.ts.map +1 -1
- package/dist/components/ui/feature-list.js +7 -21
- package/dist/components/ui/incident-feed.d.ts +1 -1
- package/dist/components/ui/incident-feed.d.ts.map +1 -1
- package/dist/components/ui/incident-feed.js +1 -7
- package/dist/components/ui/index.cjs +13 -13
- package/dist/components/ui/leader-row.d.ts.map +1 -1
- package/dist/components/ui/markdown/rich/embed-overrides.d.ts.map +1 -1
- package/dist/components/ui/markdown/rich/embed-overrides.js +10 -1
- package/dist/components/ui/product-screen-frame.d.ts.map +1 -1
- package/dist/components/ui/product-screen-frame.js +4 -13
- package/dist/components/ui/status-badge.d.ts.map +1 -1
- package/dist/components/ui/status-badge.js +5 -1
- package/dist/components/ui/status-line.d.ts.map +1 -1
- package/dist/components/ui/status-line.js +1 -7
- package/dist/components/ui/strip-card.d.ts.map +1 -1
- package/dist/components/ui/tag.d.ts.map +1 -1
- package/dist/{devices-2D3XSIIE.cjs → devices-OS26UG7Y.cjs} +14 -14
- package/dist/{embeddable-chat-YL6ZSTDJ.cjs → embeddable-chat-BXEK3SPJ.cjs} +83 -83
- package/dist/index.cjs +22 -18
- package/dist/{knowledge-AJ36PMK2.cjs → knowledge-JD2OFKEL.cjs} +14 -14
- package/dist/{logs-DNE44ACE.cjs → logs-KGKNFROP.cjs} +21 -21
- package/dist/{policies-AJHSP6ZY.cjs → policies-J2XL6XQK.cjs} +17 -17
- package/dist/{remote-session-PPA5SXX7.cjs → remote-session-RHQ2K27H.cjs} +7 -7
- package/dist/{scripts-4YO2QL36.cjs → scripts-MJONVIWL.cjs} +20 -20
- package/dist/{software-update-KMI2EOO3.cjs → software-update-VSMTHJR4.cjs} +17 -17
- package/dist/{tickets-board-G3WBH4SV.cjs → tickets-board-YT25IX3O.cjs} +8 -8
- package/dist/utils/after-page-load.d.ts +8 -0
- package/dist/utils/after-page-load.d.ts.map +1 -0
- package/dist/utils/after-page-load.js +24 -0
- package/dist/utils/format.d.ts +13 -3
- package/dist/utils/format.d.ts.map +1 -1
- package/dist/utils/format.js +4 -2
- package/dist/utils/index.cjs +27 -1
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +3 -0
- package/package.json +1 -1
- package/src/components/case-studies/entity-quotes-panel.tsx +18 -18
- package/src/components/case-studies/index.ts +8 -1
- package/src/components/chat/entity-cards/campaign-card-admin.tsx +1 -3
- package/src/components/chat/entity-cards/investor-update-card.tsx +6 -1
- package/src/components/chat/hooks/use-ask-prompts.ts +1 -2
- package/src/components/chat/index.ts +22 -5
- package/src/components/embeds/rich-markdown-runtime.tsx +10 -6
- package/src/components/features/cards-strip.tsx +3 -2
- package/src/components/features/command-box.tsx +2 -11
- package/src/components/features/paths-display.tsx +4 -1
- package/src/components/features/remote-session/remote-desktop-chat-message-row.tsx +1 -6
- package/src/components/features/walkthrough-video.tsx +8 -1
- package/src/components/icon-display.tsx +6 -1
- package/src/components/interactive-wrapper.tsx +4 -1
- package/src/components/layout/page-heading.tsx +15 -3
- package/src/components/meeting-scheduler/directory.tsx +2 -1
- package/src/components/results-count.tsx +3 -2
- package/src/components/ui/avatar-stack.tsx +5 -1
- package/src/components/ui/button/button-styles.ts +0 -1
- package/src/components/ui/cursor-pagination.tsx +8 -1
- package/src/components/ui/data-table/data-table-row-count.tsx +1 -1
- package/src/components/ui/feature-card.tsx +2 -10
- package/src/components/ui/feature-list.tsx +2 -8
- package/src/components/ui/incident-feed.tsx +2 -13
- package/src/components/ui/leader-row.tsx +0 -1
- package/src/components/ui/markdown/rich/embed-overrides.tsx +11 -1
- package/src/components/ui/product-screen-frame.tsx +1 -6
- package/src/components/ui/status-badge.tsx +5 -1
- package/src/components/ui/status-line.tsx +1 -4
- package/src/components/ui/strip-card.tsx +1 -3
- package/src/components/ui/tag.tsx +3 -1
- package/src/utils/after-page-load.ts +30 -0
- package/src/utils/format.ts +16 -4
- package/src/utils/index.ts +2 -0
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkLJT2KRE2cjs = require('./chunk-LJT2KRE2.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -37,7 +37,7 @@ var _chunkRB7VLVMDcjs = require('./chunk-RB7VLVMD.cjs');
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunkXI2CHCODcjs = require('./chunk-XI2CHCOD.cjs');
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
var _chunkDEY6XXGOcjs = require('./chunk-DEY6XXGO.cjs');
|
|
@@ -64,7 +64,7 @@ var _chunk2JRSYWFPcjs = require('./chunk-2JRSYWFP.cjs');
|
|
|
64
64
|
var _chunkA6P6DHEZcjs = require('./chunk-A6P6DHEZ.cjs');
|
|
65
65
|
|
|
66
66
|
|
|
67
|
-
var
|
|
67
|
+
var _chunkQS4G7CHUcjs = require('./chunk-QS4G7CHU.cjs');
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
|
|
@@ -116,7 +116,7 @@ var _chunkC42WIUH6cjs = require('./chunk-C42WIUH6.cjs');
|
|
|
116
116
|
|
|
117
117
|
|
|
118
118
|
|
|
119
|
-
var
|
|
119
|
+
var _chunkUBPSA3RMcjs = require('./chunk-UBPSA3RM.cjs');
|
|
120
120
|
|
|
121
121
|
|
|
122
122
|
|
|
@@ -139,7 +139,7 @@ var _chunk7VI7TOGIcjs = require('./chunk-7VI7TOGI.cjs');
|
|
|
139
139
|
|
|
140
140
|
|
|
141
141
|
|
|
142
|
-
var
|
|
142
|
+
var _chunkZXFOMNI5cjs = require('./chunk-ZXFOMNI5.cjs');
|
|
143
143
|
|
|
144
144
|
|
|
145
145
|
|
|
@@ -153,7 +153,7 @@ var _chunkYL6ZB2SRcjs = require('./chunk-YL6ZB2SR.cjs');
|
|
|
153
153
|
|
|
154
154
|
|
|
155
155
|
|
|
156
|
-
var
|
|
156
|
+
var _chunkEHJE3UWZcjs = require('./chunk-EHJE3UWZ.cjs');
|
|
157
157
|
|
|
158
158
|
|
|
159
159
|
|
|
@@ -165,7 +165,7 @@ var _chunkGTONIRJUcjs = require('./chunk-GTONIRJU.cjs');
|
|
|
165
165
|
|
|
166
166
|
|
|
167
167
|
|
|
168
|
-
var
|
|
168
|
+
var _chunk5QP3K2CEcjs = require('./chunk-5QP3K2CE.cjs');
|
|
169
169
|
|
|
170
170
|
|
|
171
171
|
|
|
@@ -502,7 +502,8 @@ var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
|
502
502
|
|
|
503
503
|
|
|
504
504
|
|
|
505
|
-
|
|
505
|
+
|
|
506
|
+
var _chunk4EJU462Ocjs = require('./chunk-4EJU462O.cjs');
|
|
506
507
|
|
|
507
508
|
|
|
508
509
|
|
|
@@ -517,7 +518,7 @@ var _chunkR3JX4MXDcjs = require('./chunk-R3JX4MXD.cjs');
|
|
|
517
518
|
var _chunkSETFUCZAcjs = require('./chunk-SETFUCZA.cjs');
|
|
518
519
|
|
|
519
520
|
|
|
520
|
-
var
|
|
521
|
+
var _chunkVFUMM6JCcjs = require('./chunk-VFUMM6JC.cjs');
|
|
521
522
|
|
|
522
523
|
|
|
523
524
|
|
|
@@ -529,7 +530,7 @@ var _chunkAAECWUNVcjs = require('./chunk-AAECWUNV.cjs');
|
|
|
529
530
|
|
|
530
531
|
|
|
531
532
|
|
|
532
|
-
var
|
|
533
|
+
var _chunkHY6BCZH7cjs = require('./chunk-HY6BCZH7.cjs');
|
|
533
534
|
|
|
534
535
|
|
|
535
536
|
var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
@@ -694,7 +695,7 @@ function ThemeProvider({ children, ...overrides }) {
|
|
|
694
695
|
var useTheme = _nextthemes.useTheme;
|
|
695
696
|
function useThemeToggle() {
|
|
696
697
|
const { resolvedTheme, theme, setTheme } = useTheme();
|
|
697
|
-
const mounted =
|
|
698
|
+
const mounted = _chunkZXFOMNI5cjs.useIsHydrated.call(void 0, );
|
|
698
699
|
const active = mounted ? resolvedTheme === "light" || theme === "light" ? "light" : "dark" : DEFAULT_THEME;
|
|
699
700
|
const setOdsTheme = _react.useCallback.call(void 0, (next) => setTheme(next), [setTheme]);
|
|
700
701
|
const toggle = _react.useCallback.call(void 0, () => setTheme(active === "dark" ? "light" : "dark"), [active, setTheme]);
|
|
@@ -904,7 +905,7 @@ function TimezoneSelect({
|
|
|
904
905
|
}) {
|
|
905
906
|
const options = _react.useMemo.call(void 0, () => timezoneOptions(value), [value]);
|
|
906
907
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
907
|
-
|
|
908
|
+
_chunkXI2CHCODcjs.Autocomplete,
|
|
908
909
|
{
|
|
909
910
|
className,
|
|
910
911
|
fieldLoading: loading,
|
|
@@ -1085,7 +1086,7 @@ var _reactpopover = require('@radix-ui/react-popover'); var Popover = _interopRe
|
|
|
1085
1086
|
|
|
1086
1087
|
var _reactdaypicker = require('react-day-picker');
|
|
1087
1088
|
|
|
1088
|
-
var defaultFormatDate = (date) =>
|
|
1089
|
+
var defaultFormatDate = (date) => _chunkHY6BCZH7cjs.formatDateWithTimezone.call(void 0, date, _chunkHY6BCZH7cjs.VIEWER_TIMEZONE, "numeric", { viewerLocale: true });
|
|
1089
1090
|
var formatDateRange = (range, formatFn) => {
|
|
1090
1091
|
if (!_optionalChain([range, 'optionalAccess', _5 => _5.from])) return "";
|
|
1091
1092
|
if (!range.to) return formatFn(range.from);
|
|
@@ -1286,7 +1287,7 @@ function DatePickerCalendar({
|
|
|
1286
1287
|
};
|
|
1287
1288
|
const handlePreviousMonth = () => shiftMonth(-1);
|
|
1288
1289
|
const handleNextMonth = () => shiftMonth(1);
|
|
1289
|
-
const formatMonthYear = (date) =>
|
|
1290
|
+
const formatMonthYear = (date) => _chunkHY6BCZH7cjs.formatDateWithTimezone.call(void 0, date, _chunkHY6BCZH7cjs.VIEWER_TIMEZONE, "monthYear", { viewerLocale: true });
|
|
1290
1291
|
const getSecondMonth = (date) => {
|
|
1291
1292
|
const next = new Date(date);
|
|
1292
1293
|
next.setMonth(next.getMonth() + 1);
|
|
@@ -1725,20 +1726,20 @@ function DatePickerInput(props) {
|
|
|
1725
1726
|
) })
|
|
1726
1727
|
] }),
|
|
1727
1728
|
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1", children: [
|
|
1728
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1729
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1730
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1729
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkXI2CHCODcjs.Select, { value: hour, onValueChange: handleHourChange, disabled, children: [
|
|
1730
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectTrigger, { className: _chunk65VVJSQZcjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectValue, { placeholder: "HH" }) }),
|
|
1731
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectContent, { children: hourOptions.map((h) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: h, children: h }, h)) })
|
|
1731
1732
|
] }),
|
|
1732
1733
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h4", children: ":" }),
|
|
1733
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1734
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1735
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1734
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkXI2CHCODcjs.Select, { value: minute, onValueChange: handleMinuteChange, disabled, children: [
|
|
1735
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectTrigger, { className: _chunk65VVJSQZcjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectValue, { placeholder: "MM" }) }),
|
|
1736
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectContent, { children: minuteOptions.map((m) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: m, children: m }, m)) })
|
|
1736
1737
|
] }),
|
|
1737
|
-
!use24HourFormat && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1738
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1739
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1740
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1741
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1738
|
+
!use24HourFormat && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkXI2CHCODcjs.Select, { value: period, onValueChange: (val) => handlePeriodChange(val), disabled, children: [
|
|
1739
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectTrigger, { className: _chunk65VVJSQZcjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectValue, { placeholder: "AM" }) }),
|
|
1740
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkXI2CHCODcjs.SelectContent, { children: [
|
|
1741
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: "AM", children: "AM" }),
|
|
1742
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: "PM", children: "PM" })
|
|
1742
1743
|
] })
|
|
1743
1744
|
] })
|
|
1744
1745
|
] })
|
|
@@ -1881,9 +1882,9 @@ function DatePickerInputSimple(props) {
|
|
|
1881
1882
|
}
|
|
1882
1883
|
) })
|
|
1883
1884
|
] }),
|
|
1884
|
-
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1885
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1886
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1885
|
+
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkXI2CHCODcjs.Select, { value: timeValue, onValueChange: handleTimeChange, disabled, children: [
|
|
1886
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectTrigger, { className: _chunk65VVJSQZcjs.cn.call(void 0, timeSelectTriggerStyles, "flex-1"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectValue, { placeholder: "Select time", children: timeDisplayLabel || "Select time" }) }),
|
|
1887
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectContent, { children: timeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
1887
1888
|
] })
|
|
1888
1889
|
] });
|
|
1889
1890
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYXDHVHB2cjs.FieldWrapper, { label, error, errorSlot: "error" in props, className, children: content });
|
|
@@ -1902,14 +1903,14 @@ function DateFilterPanel({
|
|
|
1902
1903
|
className
|
|
1903
1904
|
}) {
|
|
1904
1905
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "flex flex-col gap-4", className), children: [
|
|
1905
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1906
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1906
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkXI2CHCODcjs.Select, { value: sort, onValueChange: (value) => onSortChange(value), children: [
|
|
1907
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.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: [
|
|
1907
1908
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ArrowUpDown, { className: "size-6 shrink-0 text-ods-text-secondary" }),
|
|
1908
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1909
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectValue, {}) })
|
|
1909
1910
|
] }) }),
|
|
1910
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1911
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1912
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1911
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkXI2CHCODcjs.SelectContent, { children: [
|
|
1912
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: "asc", children: ascLabel }),
|
|
1913
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: "desc", children: descLabel })
|
|
1913
1914
|
] })
|
|
1914
1915
|
] }),
|
|
1915
1916
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2187,7 +2188,7 @@ function Value({ value, depth }) {
|
|
|
2187
2188
|
}
|
|
2188
2189
|
if (typeof value === "string") {
|
|
2189
2190
|
if (ISO_DATE.test(value)) {
|
|
2190
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: value, className: "text-ods-text-secondary", children:
|
|
2191
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: value, className: "text-ods-text-secondary", children: _chunkEHJE3UWZcjs.formatRelativeTime.call(void 0, value) });
|
|
2191
2192
|
}
|
|
2192
2193
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-pre-wrap text-ods-text-primary", children: value });
|
|
2193
2194
|
}
|
|
@@ -2668,7 +2669,7 @@ function CompactAssigneeDropdown({
|
|
|
2668
2669
|
value: o.value,
|
|
2669
2670
|
label: o.label,
|
|
2670
2671
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2671
|
-
|
|
2672
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
2672
2673
|
{
|
|
2673
2674
|
src: o.imageUrl,
|
|
2674
2675
|
alt: o.label,
|
|
@@ -2702,8 +2703,8 @@ function CompactAssigneeDropdown({
|
|
|
2702
2703
|
"shrink-0 rounded-full focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-focus",
|
|
2703
2704
|
className
|
|
2704
2705
|
),
|
|
2705
|
-
children: currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2706
|
-
|
|
2706
|
+
children: currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJT2KRE2cjs.DeletedUserAvatar, { size: "sm", accessibleLabel: `Deleted user: ${currentAssignee.name || currentAssignee.id}` }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2707
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
2707
2708
|
{
|
|
2708
2709
|
src: currentAssignee.avatarSrc,
|
|
2709
2710
|
alt: currentAssignee.name,
|
|
@@ -2751,7 +2752,7 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
2751
2752
|
const opt = option;
|
|
2752
2753
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center gap-[var(--spacing-system-sf)]", children: [
|
|
2753
2754
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2754
|
-
|
|
2755
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
2755
2756
|
{
|
|
2756
2757
|
src: opt.imageUrl,
|
|
2757
2758
|
alt: opt.label,
|
|
@@ -2767,7 +2768,7 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
2767
2768
|
if (isEditing) {
|
|
2768
2769
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "min-w-0", className), children: [
|
|
2769
2770
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2770
|
-
|
|
2771
|
+
_chunkXI2CHCODcjs.Autocomplete,
|
|
2771
2772
|
{
|
|
2772
2773
|
options,
|
|
2773
2774
|
value: _nullishCoalesce(_optionalChain([currentAssignee, 'optionalAccess', _35 => _35.id]), () => ( null)),
|
|
@@ -2779,14 +2780,14 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
2779
2780
|
loading: isLoading,
|
|
2780
2781
|
showChevron: false,
|
|
2781
2782
|
startAdornment: hasAssignee ? currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2782
|
-
|
|
2783
|
+
_chunkLJT2KRE2cjs.DeletedUserAvatar,
|
|
2783
2784
|
{
|
|
2784
2785
|
size: "sm",
|
|
2785
2786
|
className: "h-6 w-6",
|
|
2786
2787
|
accessibleLabel: `Deleted user: ${currentAssignee.name || currentAssignee.id}`
|
|
2787
2788
|
}
|
|
2788
2789
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2789
|
-
|
|
2790
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
2790
2791
|
{
|
|
2791
2792
|
src: currentAssignee.avatarSrc,
|
|
2792
2793
|
alt: currentAssignee.name,
|
|
@@ -2805,13 +2806,13 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
2805
2806
|
if (hasAssignee) {
|
|
2806
2807
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", className), children: [
|
|
2807
2808
|
currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2808
|
-
|
|
2809
|
+
_chunkLJT2KRE2cjs.DeletedUserAvatar,
|
|
2809
2810
|
{
|
|
2810
2811
|
size: "md",
|
|
2811
2812
|
accessibleLabel: `Deleted user: ${currentAssignee.name || currentAssignee.id}`
|
|
2812
2813
|
}
|
|
2813
2814
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2814
|
-
|
|
2815
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
2815
2816
|
{
|
|
2816
2817
|
src: currentAssignee.avatarSrc,
|
|
2817
2818
|
alt: currentAssignee.name,
|
|
@@ -2885,7 +2886,7 @@ function TextValue({ value }) {
|
|
|
2885
2886
|
}
|
|
2886
2887
|
) : 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 }),
|
|
2887
2888
|
hasImage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2888
|
-
|
|
2889
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
2889
2890
|
{
|
|
2890
2891
|
src: imageSrc,
|
|
2891
2892
|
alt: text,
|
|
@@ -2905,7 +2906,7 @@ function RowValue({ value }) {
|
|
|
2905
2906
|
}
|
|
2906
2907
|
case "status": {
|
|
2907
2908
|
const { type: _type, ...props } = value;
|
|
2908
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2909
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.TicketStatusTag, { ...props });
|
|
2909
2910
|
}
|
|
2910
2911
|
case "custom":
|
|
2911
2912
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: value.content });
|
|
@@ -3003,7 +3004,7 @@ function MediaTypeSelector({
|
|
|
3003
3004
|
// changed) and cost an extra render pass on every change to say what the
|
|
3004
3005
|
// prop already said.
|
|
3005
3006
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3006
|
-
|
|
3007
|
+
_chunkXI2CHCODcjs.Select,
|
|
3007
3008
|
{
|
|
3008
3009
|
value: value || void 0,
|
|
3009
3010
|
onValueChange: (next) => {
|
|
@@ -3013,8 +3014,8 @@ function MediaTypeSelector({
|
|
|
3013
3014
|
disabled,
|
|
3014
3015
|
defaultValue: value,
|
|
3015
3016
|
children: [
|
|
3016
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3017
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3017
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectTrigger, { className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectValue, { placeholder }) }),
|
|
3018
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectContent, { children: mediaTypeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: option.value, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
3018
3019
|
option.icon,
|
|
3019
3020
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: option.label })
|
|
3020
3021
|
] }) }, option.value)) })
|
|
@@ -3867,7 +3868,7 @@ function TagsManager({
|
|
|
3867
3868
|
}
|
|
3868
3869
|
),
|
|
3869
3870
|
selectedTags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3870
|
-
|
|
3871
|
+
_chunkHY6BCZH7cjs.Tag,
|
|
3871
3872
|
{
|
|
3872
3873
|
label: tag.name,
|
|
3873
3874
|
variant: "outline",
|
|
@@ -4426,10 +4427,10 @@ function useConfirm() {
|
|
|
4426
4427
|
},
|
|
4427
4428
|
[]
|
|
4428
4429
|
);
|
|
4429
|
-
const dialog = pending ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4430
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4431
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4432
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4430
|
+
const dialog = pending ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.Modal, { isOpen: open, onClose: () => decide(false), children: [
|
|
4431
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalTitle, { children: pending.title }) }),
|
|
4432
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: pending.body }) }),
|
|
4433
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.ModalFooter, { children: [
|
|
4433
4434
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { variant: "outline", onClick: () => decide(false), children: "Cancel" }),
|
|
4434
4435
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { variant: "destructive", onClick: () => decide(true), children: "Confirm" })
|
|
4435
4436
|
] })
|
|
@@ -4507,7 +4508,7 @@ function AdminFormDrawer({
|
|
|
4507
4508
|
"form",
|
|
4508
4509
|
{
|
|
4509
4510
|
id: formId,
|
|
4510
|
-
...
|
|
4511
|
+
..._chunkUBPSA3RMcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
4511
4512
|
className: "flex flex-col gap-[var(--spacing-system-lf)]",
|
|
4512
4513
|
onSubmit: (e) => {
|
|
4513
4514
|
e.preventDefault();
|
|
@@ -4605,16 +4606,16 @@ function AdminFormModal({
|
|
|
4605
4606
|
body: "Your edits have not been saved. Close and discard them?"
|
|
4606
4607
|
});
|
|
4607
4608
|
if (!isOpen) return null;
|
|
4608
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4609
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4610
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4609
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.Modal, { isOpen: true, onClose: guardedClose, size: effectiveSize, children: [
|
|
4610
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.ModalHeader, { children: [
|
|
4611
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalTitle, { children: title }),
|
|
4611
4612
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-ods-text-secondary text-h6", children: subtitle })
|
|
4612
4613
|
] }),
|
|
4613
4614
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4614
4615
|
"form",
|
|
4615
4616
|
{
|
|
4616
4617
|
id: formId,
|
|
4617
|
-
...
|
|
4618
|
+
..._chunkUBPSA3RMcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
4618
4619
|
className: "flex min-h-0 flex-1 flex-col",
|
|
4619
4620
|
onSubmit: (e) => {
|
|
4620
4621
|
e.preventDefault();
|
|
@@ -4632,7 +4633,7 @@ function AdminFormModal({
|
|
|
4632
4633
|
// a shrink-to-fit flex item pinned to the left of a 1400px panel).
|
|
4633
4634
|
// The placeholder owns its own layout and mirrors the column count so
|
|
4634
4635
|
// the modal doesn't visibly re-flow when the entity lands.
|
|
4635
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4636
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalContent, { children: loadingContent ? (
|
|
4636
4637
|
// The one announcement: a `loadingContent` with a region of its own takes `region={false}`.
|
|
4637
4638
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEANWBJHcjs.LoadingRegion, { label: "Loading", children: loadingContent })
|
|
4638
4639
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -4653,12 +4654,12 @@ function AdminFormModal({
|
|
|
4653
4654
|
] }, i)) }, col))
|
|
4654
4655
|
}
|
|
4655
4656
|
) })
|
|
4656
|
-
) : twoColumn ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4657
|
+
) : twoColumn ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalTwoColumn, { left: leftColumn, right: rightColumn }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalContent, { className: contentClassName, children }),
|
|
4657
4658
|
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { role: "alert", className: "shrink-0 text-ods-error text-h6", children: error })
|
|
4658
4659
|
]
|
|
4659
4660
|
}
|
|
4660
4661
|
),
|
|
4661
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4662
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalFooter, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center justify-between gap-[var(--spacing-system-xsf)]", children: [
|
|
4662
4663
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: footerExtras }),
|
|
4663
4664
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
4664
4665
|
footerStatus,
|
|
@@ -5406,7 +5407,7 @@ var TabBar = _react.memo.call(void 0, function TabBarImpl({
|
|
|
5406
5407
|
// as tall as its neighbours at every breakpoint. No hover shade:
|
|
5407
5408
|
// the tab is the target, and the cursor passes through to it.
|
|
5408
5409
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5409
|
-
|
|
5410
|
+
_chunkHY6BCZH7cjs.Tag,
|
|
5410
5411
|
{
|
|
5411
5412
|
as: "span",
|
|
5412
5413
|
"aria-hidden": true,
|
|
@@ -5884,14 +5885,15 @@ function RichMarkdownRuntimeProvider({
|
|
|
5884
5885
|
transformImageSrc,
|
|
5885
5886
|
children
|
|
5886
5887
|
}) {
|
|
5888
|
+
const outer = _react.useContext.call(void 0, RichMarkdownRuntimeContext);
|
|
5887
5889
|
const value = _react.useMemo.call(void 0,
|
|
5888
5890
|
() => ({
|
|
5889
|
-
redditProxyUrl: _nullishCoalesce(redditProxyUrl, () => (
|
|
5890
|
-
twitterProxyUrl: _nullishCoalesce(twitterProxyUrl, () => (
|
|
5891
|
-
ogScraperUrl: _nullishCoalesce(ogScraperUrl, () => (
|
|
5892
|
-
transformImageSrc: _nullishCoalesce(transformImageSrc, () => (
|
|
5891
|
+
redditProxyUrl: _nullishCoalesce(redditProxyUrl, () => ( outer.redditProxyUrl)),
|
|
5892
|
+
twitterProxyUrl: _nullishCoalesce(twitterProxyUrl, () => ( outer.twitterProxyUrl)),
|
|
5893
|
+
ogScraperUrl: _nullishCoalesce(ogScraperUrl, () => ( outer.ogScraperUrl)),
|
|
5894
|
+
transformImageSrc: _nullishCoalesce(transformImageSrc, () => ( outer.transformImageSrc))
|
|
5893
5895
|
}),
|
|
5894
|
-
[redditProxyUrl, twitterProxyUrl, ogScraperUrl, transformImageSrc]
|
|
5896
|
+
[redditProxyUrl, twitterProxyUrl, ogScraperUrl, transformImageSrc, outer]
|
|
5895
5897
|
);
|
|
5896
5898
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RichMarkdownRuntimeContext.Provider, { value, children });
|
|
5897
5899
|
}
|
|
@@ -6003,7 +6005,7 @@ function EmbedViewerFrame({
|
|
|
6003
6005
|
const controllerRef = _react.useRef.call(void 0, null);
|
|
6004
6006
|
_react.useEffect.call(void 0, () => {
|
|
6005
6007
|
if (!fullscreenControl) return void 0;
|
|
6006
|
-
const controller = new (0,
|
|
6008
|
+
const controller = new (0, _chunkUBPSA3RMcjs.FullscreenSwitchController)({
|
|
6007
6009
|
target: () => frameRef.current,
|
|
6008
6010
|
onFullscreenChange: setIsFullscreen
|
|
6009
6011
|
});
|
|
@@ -6667,12 +6669,12 @@ var OGLinkPreview = ({
|
|
|
6667
6669
|
children: [
|
|
6668
6670
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TILE_SOURCE_ROW_CLASS, children: [
|
|
6669
6671
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Favicon, { src: `https://www.google.com/s2/favicons?domain=${domain}&sz=32`, size: "w-4 h-4" }),
|
|
6670
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6672
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { as: "span", variant: "h6", className: "text-current", children: name }),
|
|
6671
6673
|
meta != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "ml-auto flex flex-none items-center gap-1.5 text-ods-text-secondary", children: meta })
|
|
6672
6674
|
] }),
|
|
6673
6675
|
kicker != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-hidden text-ods-accent text-h5", style: lineClamp(1), children: kicker }),
|
|
6674
6676
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6675
|
-
|
|
6677
|
+
_chunkXI2CHCODcjs.TruncateText,
|
|
6676
6678
|
{
|
|
6677
6679
|
lines: 2,
|
|
6678
6680
|
variant: "h3",
|
|
@@ -6681,7 +6683,7 @@ var OGLinkPreview = ({
|
|
|
6681
6683
|
children: curatedTitle || domainToTitle(domain)
|
|
6682
6684
|
}
|
|
6683
6685
|
),
|
|
6684
|
-
curatedDescription && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6686
|
+
curatedDescription && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { lines: 2, variant: "h6", tone: "secondary", children: curatedDescription })
|
|
6685
6687
|
]
|
|
6686
6688
|
}
|
|
6687
6689
|
);
|
|
@@ -6817,8 +6819,8 @@ var OGLinkPreview = ({
|
|
|
6817
6819
|
children: [
|
|
6818
6820
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-lg bg-ods-bg-surface", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Favicon, { src: faviconSrc }) }),
|
|
6819
6821
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
6820
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6821
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6822
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { className: "font-semibold transition-colors group-hover:text-ods-accent", children: title }),
|
|
6823
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { tone: "secondary", children: description })
|
|
6822
6824
|
] }),
|
|
6823
6825
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExternalLinkIcon, {})
|
|
6824
6826
|
]
|
|
@@ -6865,7 +6867,7 @@ var OGLinkPreview = ({
|
|
|
6865
6867
|
),
|
|
6866
6868
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
6867
6869
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6868
|
-
|
|
6870
|
+
_chunkXI2CHCODcjs.TruncateText,
|
|
6869
6871
|
{
|
|
6870
6872
|
lines: 2,
|
|
6871
6873
|
className: "min-h-[calc(var(--font-line-space-h4-body)*2)] font-semibold transition-colors group-hover:text-ods-accent",
|
|
@@ -6874,7 +6876,7 @@ var OGLinkPreview = ({
|
|
|
6874
6876
|
}
|
|
6875
6877
|
),
|
|
6876
6878
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6877
|
-
|
|
6879
|
+
_chunkXI2CHCODcjs.TruncateText,
|
|
6878
6880
|
{
|
|
6879
6881
|
lines: 2,
|
|
6880
6882
|
tone: "secondary",
|
|
@@ -6884,9 +6886,9 @@ var OGLinkPreview = ({
|
|
|
6884
6886
|
}
|
|
6885
6887
|
),
|
|
6886
6888
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-2 text-ods-text-secondary text-h6", children: [
|
|
6887
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6889
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { as: "span", variant: "h6", className: "text-current", children: effectiveData.siteName }),
|
|
6888
6890
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "\u2022" }),
|
|
6889
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6891
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { as: "span", variant: "h6", className: "text-current", children: ogDomain }),
|
|
6890
6892
|
meta
|
|
6891
6893
|
] })
|
|
6892
6894
|
] })
|
|
@@ -7047,7 +7049,7 @@ var MediaCarousel = _react.memo.call(void 0, function MediaCarouselImpl({
|
|
|
7047
7049
|
};
|
|
7048
7050
|
const displayImageSrc = (url) => transformImageSrc ? transformImageSrc(url) : url;
|
|
7049
7051
|
const renderVideo = (item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7050
|
-
|
|
7052
|
+
_chunk4EJU462Ocjs.Video,
|
|
7051
7053
|
{
|
|
7052
7054
|
url: item.src,
|
|
7053
7055
|
poster: item.poster ? displayImageSrc(item.poster) : void 0,
|
|
@@ -7242,7 +7244,7 @@ var formatTimeAgo = (timestamp) => {
|
|
|
7242
7244
|
return `${Math.floor(diffSeconds / 86400)}d ago`;
|
|
7243
7245
|
};
|
|
7244
7246
|
function RedditEmbedClient({ url, maxWidth = 700, rel }) {
|
|
7245
|
-
const postLinkRel =
|
|
7247
|
+
const postLinkRel = _chunkZXFOMNI5cjs.renderedLinkRel.call(void 0, rel, true);
|
|
7246
7248
|
const { redditProxyUrl } = useRichMarkdownRuntime();
|
|
7247
7249
|
const [redditData, setRedditData] = _react.useState.call(void 0, null);
|
|
7248
7250
|
const [loading, setLoading] = _react.useState.call(void 0, true);
|
|
@@ -7480,7 +7482,7 @@ function RedditEmbedClient({ url, maxWidth = 700, rel }) {
|
|
|
7480
7482
|
width: m.width,
|
|
7481
7483
|
height: m.height
|
|
7482
7484
|
}));
|
|
7483
|
-
const formatNumber =
|
|
7485
|
+
const formatNumber = _chunkHY6BCZH7cjs.formatLargeNumber;
|
|
7484
7486
|
const truncateText = (text, maxLength = 600) => {
|
|
7485
7487
|
if (text.length <= maxLength) return text;
|
|
7486
7488
|
return text.slice(0, maxLength) + "...";
|
|
@@ -7574,7 +7576,7 @@ var UserIcon3 = () => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "svg", { wid
|
|
|
7574
7576
|
] });
|
|
7575
7577
|
var XIcon = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2TEMEXDTcjs.XLogoIcon, { className: "h-5 w-5", color: "currentColor" });
|
|
7576
7578
|
function TwitterEmbedClient({ url, tweetId, maxWidth = 700, rel }) {
|
|
7577
|
-
const postLinkRel =
|
|
7579
|
+
const postLinkRel = _chunkZXFOMNI5cjs.renderedLinkRel.call(void 0, rel, true);
|
|
7578
7580
|
const { twitterProxyUrl } = useRichMarkdownRuntime();
|
|
7579
7581
|
const [tweetData, setTweetData] = _react.useState.call(void 0, null);
|
|
7580
7582
|
const [fetchLoading, setLoading] = _react.useState.call(void 0, true);
|
|
@@ -7776,7 +7778,7 @@ function buildRichEmbedOverrides({
|
|
|
7776
7778
|
ogEndpointPath,
|
|
7777
7779
|
textSizes
|
|
7778
7780
|
}) {
|
|
7779
|
-
const standard =
|
|
7781
|
+
const standard = _chunkZXFOMNI5cjs.buildStandardLeafRenderers.call(void 0, { textSizes });
|
|
7780
7782
|
return {
|
|
7781
7783
|
// Fence-language embeds (```youtube-embed etc.); everything else
|
|
7782
7784
|
// (mermaid, highlighted blocks, inline code) falls through to `standard`.
|
|
@@ -7786,7 +7788,7 @@ function buildRichEmbedOverrides({
|
|
|
7786
7788
|
const language = match ? match[1] : "";
|
|
7787
7789
|
const fenceText = () => String(children).replace(/\n$/, "").trim();
|
|
7788
7790
|
if (language === "youtube-embed") {
|
|
7789
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7791
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.Video, { kind: "youtube", url: fenceText() });
|
|
7790
7792
|
}
|
|
7791
7793
|
if (language === "reddit-embed") {
|
|
7792
7794
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RedditEmbedClient, { url: fenceText() });
|
|
@@ -7827,7 +7829,7 @@ function buildRichEmbedOverrides({
|
|
|
7827
7829
|
"data-figma-url": figmaUrl
|
|
7828
7830
|
} = divProps;
|
|
7829
7831
|
if (className === "youtube-embed" && videoId) {
|
|
7830
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7832
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.Video, { kind: "youtube", url: videoId });
|
|
7831
7833
|
}
|
|
7832
7834
|
if (className === "reddit-embed" && postUrl) {
|
|
7833
7835
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RedditEmbedClient, { url: postUrl });
|
|
@@ -7912,14 +7914,23 @@ function buildRichEmbedOverrides({
|
|
|
7912
7914
|
// rich-markdown runtime (Supabase optimization on the hub, identity
|
|
7913
7915
|
// elsewhere). Guard against empty `![]()`.
|
|
7914
7916
|
img: ({ src, alt }) => {
|
|
7915
|
-
if (!
|
|
7917
|
+
if (!_chunkZXFOMNI5cjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7916
7918
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownImage, { src: src.trim(), alt });
|
|
7917
7919
|
},
|
|
7920
|
+
// Raw <iframe> tags in stored content (a pasted YouTube embed). A YouTube one becomes the same click-to-play
|
|
7921
|
+
// facade as the `youtube-embed` fence: the raw iframe loaded YouTube's whole player (about 470 KB of script) with
|
|
7922
|
+
// the page, on every post that carried one (CU-17tkuw5xp4q). Any other iframe loads when it nears the screen.
|
|
7923
|
+
iframe: ({ node: _node, src, ...rest }) => {
|
|
7924
|
+
if (!_chunkZXFOMNI5cjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7925
|
+
const url = src.trim();
|
|
7926
|
+
if (_chunk4EJU462Ocjs.extractYouTubeId.call(void 0, url)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.Video, { kind: "youtube", url });
|
|
7927
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "iframe", { ...rest, src: url, loading: "lazy" });
|
|
7928
|
+
},
|
|
7918
7929
|
// Raw <video> tags in stored content (blog publisher injection) route
|
|
7919
7930
|
// to the <Video> SSOT (MuxPlayer) so HLS manifests play everywhere.
|
|
7920
7931
|
video: ({ src, poster, className }) => {
|
|
7921
|
-
if (!
|
|
7922
|
-
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,
|
|
7932
|
+
if (!_chunkZXFOMNI5cjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7933
|
+
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, _chunk4EJU462Ocjs.Video, { kind: "file", url: src.trim(), poster: typeof poster === "string" ? poster : void 0 }) }) });
|
|
7923
7934
|
}
|
|
7924
7935
|
};
|
|
7925
7936
|
}
|
|
@@ -8027,7 +8038,7 @@ var processShortcodes = (content) => {
|
|
|
8027
8038
|
try {
|
|
8028
8039
|
const urlObj = new URL(url);
|
|
8029
8040
|
const hostname = urlObj.hostname.toLowerCase();
|
|
8030
|
-
const hostIs = (domain) =>
|
|
8041
|
+
const hostIs = (domain) => _chunkUBPSA3RMcjs.hostMatches.call(void 0, hostname, domain);
|
|
8031
8042
|
const isYouTubeVideo = hostIs("youtube.com") && urlObj.searchParams.has("v") || hostIs("youtu.be");
|
|
8032
8043
|
if (isYouTubeVideo || hostIs("reddit.com") || hostIs("twitter.com") || hostIs("x.com") || hostIs("figma.com")) {
|
|
8033
8044
|
return match;
|
|
@@ -8104,13 +8115,13 @@ var RichMarkdownInner = ({
|
|
|
8104
8115
|
},
|
|
8105
8116
|
[resolveLinkEndpointUrl, resolveSource]
|
|
8106
8117
|
);
|
|
8107
|
-
const textSizes = _react.useMemo.call(void 0, () =>
|
|
8118
|
+
const textSizes = _react.useMemo.call(void 0, () => _chunkZXFOMNI5cjs.resolveTextSizeConfig.call(void 0, "article"), []);
|
|
8108
8119
|
const componentOverrides = _react.useMemo.call(void 0,
|
|
8109
8120
|
() => buildRichEmbedOverrides({ ogApiBaseUrl, ogEndpointPath, textSizes }),
|
|
8110
8121
|
[ogApiBaseUrl, ogEndpointPath, textSizes]
|
|
8111
8122
|
);
|
|
8112
8123
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8113
|
-
|
|
8124
|
+
_chunkZXFOMNI5cjs.MarkdownEngine,
|
|
8114
8125
|
{
|
|
8115
8126
|
content,
|
|
8116
8127
|
className,
|
|
@@ -8134,7 +8145,7 @@ var RichMarkdownRendererImpl = ({
|
|
|
8134
8145
|
className = "",
|
|
8135
8146
|
sectionIds,
|
|
8136
8147
|
onInternalLinkClick,
|
|
8137
|
-
brokenLinks =
|
|
8148
|
+
brokenLinks = _chunkZXFOMNI5cjs.NO_BROKEN_LINKS,
|
|
8138
8149
|
currentPath,
|
|
8139
8150
|
resolveSource = "openframe-docs",
|
|
8140
8151
|
resolveLinkEndpointUrl = "/api/docs/resolve-link",
|
|
@@ -8179,7 +8190,7 @@ function RichMarkdownRendererSkeleton({
|
|
|
8179
8190
|
title,
|
|
8180
8191
|
className
|
|
8181
8192
|
}) {
|
|
8182
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8193
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZXFOMNI5cjs.MarkdownEngineSkeleton, { sections, title, textSize: "article", className });
|
|
8183
8194
|
}
|
|
8184
8195
|
|
|
8185
8196
|
// src/components/ui/release-changelog-section.tsx
|
|
@@ -9264,7 +9275,7 @@ function FilterModal({
|
|
|
9264
9275
|
const dateDefaultSort = _nullishCoalesce(_optionalChain([dateFilter, 'optionalAccess', _147 => _147.defaultSort]), () => ( "desc"));
|
|
9265
9276
|
const [draftDateSort, setDraftDateSort] = _react.useState.call(void 0, _nullishCoalesce(_optionalChain([dateFilter, 'optionalAccess', _148 => _148.sort]), () => ( dateDefaultSort)));
|
|
9266
9277
|
const [draftDateRange, setDraftDateRange] = _react.useState.call(void 0, _optionalChain([dateFilter, 'optionalAccess', _149 => _149.range]));
|
|
9267
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateFade } =
|
|
9278
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunkZXFOMNI5cjs.useScrollFade.call(void 0, );
|
|
9268
9279
|
const seedKey = `${JSON.stringify(currentFilters)}|${JSON.stringify(_nullishCoalesce(selectedTags, () => ( [])))}`;
|
|
9269
9280
|
const seedSourceRef = _react.useRef.call(void 0, { currentFilters, selectedTags, dateFilter, dateDefaultSort });
|
|
9270
9281
|
_react.useEffect.call(void 0, () => {
|
|
@@ -9310,15 +9321,15 @@ function FilterModal({
|
|
|
9310
9321
|
const hasTagFilter = !!tagFilterKeys && tagFilterKeys.length > 0 && !!onTagsChange;
|
|
9311
9322
|
const isEmpty = !isLoading && !hasSort && !hasFilterGroups && !hasTagFilter && !dateFilter;
|
|
9312
9323
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9313
|
-
|
|
9324
|
+
_chunk5QP3K2CEcjs.Modal,
|
|
9314
9325
|
{
|
|
9315
9326
|
isOpen,
|
|
9316
9327
|
onClose,
|
|
9317
9328
|
className: _chunk65VVJSQZcjs.cn.call(void 0, "max-h-[90vh] max-w-none md:max-w-[min(42rem,calc(100vw-2rem))]", className),
|
|
9318
9329
|
children: [
|
|
9319
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9330
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalTitle, { children: title }) }),
|
|
9320
9331
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9321
|
-
|
|
9332
|
+
_chunk5QP3K2CEcjs.ModalContent,
|
|
9322
9333
|
{
|
|
9323
9334
|
className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
9324
9335
|
"flex min-h-0 flex-1 flex-col",
|
|
@@ -9410,12 +9421,12 @@ function FilterModal({
|
|
|
9410
9421
|
] })
|
|
9411
9422
|
}
|
|
9412
9423
|
),
|
|
9413
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9414
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9424
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZXFOMNI5cjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop }),
|
|
9425
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZXFOMNI5cjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom })
|
|
9415
9426
|
] })
|
|
9416
9427
|
}
|
|
9417
9428
|
),
|
|
9418
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9429
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.ModalFooter, { children: [
|
|
9419
9430
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { variant: "outline", className: "h-11 flex-1", onClick: handleReset, children: resetButtonText }),
|
|
9420
9431
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { variant: "accent", className: "h-11 flex-1", onClick: handleApply, children: applyButtonText })
|
|
9421
9432
|
] })
|
|
@@ -9479,7 +9490,7 @@ function renderAdvancedPageContainer({
|
|
|
9479
9490
|
contentClassName,
|
|
9480
9491
|
showHeader = true
|
|
9481
9492
|
}, inScope = false) {
|
|
9482
|
-
const titleNode = title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9493
|
+
const titleNode = title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.PageTitle, { className: PAGE_CONTAINER_TITLE_CLASS, children: _chunk4EJU462Ocjs.accentSentenceMarks.call(void 0, title) }) : inScope && title === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageContainerTitleSkeleton, {}) : null;
|
|
9483
9494
|
const subtitleNode = subtitle ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: PAGE_CONTAINER_SUBTITLE_CLASS, children: subtitle }) : inScope && subtitle === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageContainerSubtitleSkeleton, {}) : null;
|
|
9484
9495
|
const getActionsVariant = () => {
|
|
9485
9496
|
if (actionsVariant) return actionsVariant;
|
|
@@ -9488,7 +9499,7 @@ function renderAdvancedPageContainer({
|
|
|
9488
9499
|
};
|
|
9489
9500
|
const renderActions = () => {
|
|
9490
9501
|
if (!actions || actions.length === 0) return null;
|
|
9491
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9502
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.PageActions, { variant: getActionsVariant(), actions, menuActions });
|
|
9492
9503
|
};
|
|
9493
9504
|
const needsBottomPadding = actions && actions.length > 0 && getActionsVariant() === "primary-buttons";
|
|
9494
9505
|
const paddingClasses = {
|
|
@@ -9511,7 +9522,7 @@ function renderAdvancedPageContainer({
|
|
|
9511
9522
|
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: [
|
|
9512
9523
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
9513
9524
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9514
|
-
|
|
9525
|
+
_chunkXI2CHCODcjs.BackButton,
|
|
9515
9526
|
{
|
|
9516
9527
|
onClick: backButton.onClick,
|
|
9517
9528
|
label: backButton.label,
|
|
@@ -9531,7 +9542,7 @@ function renderAdvancedPageContainer({
|
|
|
9531
9542
|
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: [
|
|
9532
9543
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
9533
9544
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9534
|
-
|
|
9545
|
+
_chunkXI2CHCODcjs.BackButton,
|
|
9535
9546
|
{
|
|
9536
9547
|
onClick: backButton.onClick,
|
|
9537
9548
|
label: backButton.label,
|
|
@@ -9551,7 +9562,7 @@ function renderAdvancedPageContainer({
|
|
|
9551
9562
|
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: [
|
|
9552
9563
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
9553
9564
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9554
|
-
|
|
9565
|
+
_chunkXI2CHCODcjs.BackButton,
|
|
9555
9566
|
{
|
|
9556
9567
|
onClick: backButton.onClick,
|
|
9557
9568
|
label: backButton.label,
|
|
@@ -9905,7 +9916,7 @@ var BenefitCardGrid = ({ children, className = "", columns = 2 }) => {
|
|
|
9905
9916
|
|
|
9906
9917
|
|
|
9907
9918
|
function PlatformBrowseButton({ item }) {
|
|
9908
|
-
const linkProps =
|
|
9919
|
+
const linkProps = _chunkZXFOMNI5cjs.useNavLinkViaRuntime.call(void 0, { href: item.link, targetPlatform: item.targetPlatform });
|
|
9909
9920
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkTF5D5MNOcjs.Button, { variant: "outline", linkProps, rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-4 w-4" }), children: [
|
|
9910
9921
|
"Browse ",
|
|
9911
9922
|
item.buttonText
|
|
@@ -10217,7 +10228,7 @@ function DashboardInfoCard({
|
|
|
10217
10228
|
if (percentage === void 0) return null;
|
|
10218
10229
|
if (percentageAsTag) {
|
|
10219
10230
|
const tagVariant = progressVariant === "warning" || progressVariant === "error" ? progressVariant : progressVariant === "success" ? "success" : "grey";
|
|
10220
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10231
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { variant: tagVariant, label: `${percentage}%` });
|
|
10221
10232
|
}
|
|
10222
10233
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: [
|
|
10223
10234
|
"(",
|
|
@@ -10288,7 +10299,7 @@ function DashboardInfoCard({
|
|
|
10288
10299
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunk65VVJSQZcjs.cn.call(void 0, "truncate text-ods-text-primary text-h3 content-md:text-h2", valueClassName), children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-24" }) : formattedValue }),
|
|
10289
10300
|
loading ? loadingShowsSubValue && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-16" }) }) : subValue && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: subValue }),
|
|
10290
10301
|
renderPercentage(),
|
|
10291
|
-
tooltip && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10302
|
+
tooltip && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.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 }) }) })
|
|
10292
10303
|
] }),
|
|
10293
10304
|
hasCaption && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "line-clamp-2 min-h-[2lh] text-ods-text-secondary text-h6", children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-32" }) : caption })
|
|
10294
10305
|
] }),
|
|
@@ -10402,10 +10413,10 @@ var OSTypeBadge = ({
|
|
|
10402
10413
|
if (!osType) {
|
|
10403
10414
|
return labelOnly ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk65VVJSQZcjs.cn.call(void 0, "text-ods-text-secondary", className), children: "Unknown" }) : null;
|
|
10404
10415
|
}
|
|
10405
|
-
const normalized =
|
|
10416
|
+
const normalized = _chunkUBPSA3RMcjs.normalizeOSType.call(void 0, osType);
|
|
10406
10417
|
if (!normalized && !labelOnly) return null;
|
|
10407
|
-
const label =
|
|
10408
|
-
const IconComponent =
|
|
10418
|
+
const label = _chunkUBPSA3RMcjs.getOSLabel.call(void 0, osType);
|
|
10419
|
+
const IconComponent = _chunkUBPSA3RMcjs.getOSIcon.call(void 0, osType);
|
|
10409
10420
|
if (iconOnly && IconComponent) {
|
|
10410
10421
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: _chunk65VVJSQZcjs.cn.call(void 0, iconSize, "text-ods-text-secondary", className) });
|
|
10411
10422
|
}
|
|
@@ -10442,8 +10453,8 @@ function DeviceCard({
|
|
|
10442
10453
|
}) {
|
|
10443
10454
|
const formatLastSeen = (lastSeen) => {
|
|
10444
10455
|
if (!lastSeen) return null;
|
|
10445
|
-
const date =
|
|
10446
|
-
return date === "\u2014" ? null : `${date} ${
|
|
10456
|
+
const date = _chunk5QP3K2CEcjs.formatDate.call(void 0, lastSeen);
|
|
10457
|
+
return date === "\u2014" ? null : `${date} ${_chunk5QP3K2CEcjs.formatTime.call(void 0, lastSeen)}`;
|
|
10447
10458
|
};
|
|
10448
10459
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10449
10460
|
"div",
|
|
@@ -10502,7 +10513,7 @@ function DeviceCard({
|
|
|
10502
10513
|
] }),
|
|
10503
10514
|
(statusTag || device.lastSeen) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-2", children: [
|
|
10504
10515
|
statusTag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10505
|
-
|
|
10516
|
+
_chunkHY6BCZH7cjs.Tag,
|
|
10506
10517
|
{
|
|
10507
10518
|
variant: statusTag.variant,
|
|
10508
10519
|
icon: statusTag.icon,
|
|
@@ -10516,7 +10527,7 @@ function DeviceCard({
|
|
|
10516
10527
|
formatLastSeen(device.lastSeen)
|
|
10517
10528
|
] })
|
|
10518
10529
|
] }),
|
|
10519
|
-
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,
|
|
10530
|
+
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, _chunkHY6BCZH7cjs.Tag, { variant: "outline", label: tag }, index)) })
|
|
10520
10531
|
]
|
|
10521
10532
|
}
|
|
10522
10533
|
);
|
|
@@ -10562,7 +10573,7 @@ function DataAttribution({ icon, source, lastUpdated, action }) {
|
|
|
10562
10573
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator3, {}),
|
|
10563
10574
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: UPDATED_CLASS, children: [
|
|
10564
10575
|
"Last updated: ",
|
|
10565
|
-
lastUpdated ?
|
|
10576
|
+
lastUpdated ? _chunkHY6BCZH7cjs.formatDate.call(void 0, lastUpdated) : "Never"
|
|
10566
10577
|
] }),
|
|
10567
10578
|
action ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ACTION_CLASS, children: action }) : null
|
|
10568
10579
|
] });
|
|
@@ -10690,7 +10701,7 @@ function ComplianceLogo({
|
|
|
10690
10701
|
fallback = null,
|
|
10691
10702
|
className
|
|
10692
10703
|
}) {
|
|
10693
|
-
const standard =
|
|
10704
|
+
const standard = _chunkUBPSA3RMcjs.complianceStandardForName.call(void 0, ...names);
|
|
10694
10705
|
if (!standard) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: fallback });
|
|
10695
10706
|
const Official = standard.logo ? COMPLIANCE_LOGOS[standard.logo] : null;
|
|
10696
10707
|
return Official ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10769,7 +10780,7 @@ function FeatureCardGridView({
|
|
|
10769
10780
|
if (allCardsHaveNoBorders) {
|
|
10770
10781
|
finalCardClassName = "bg-transparent p-0 overflow-visible border-0 shadow-none rounded-none";
|
|
10771
10782
|
}
|
|
10772
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10783
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.Card, { className: `${finalCardClassName} ${className}`, children: Array.from({ length: rows }, (_, rowIndex) => {
|
|
10773
10784
|
const startIndex = rowIndex * itemsPerRow;
|
|
10774
10785
|
const rowItems = items.slice(startIndex, startIndex + itemsPerRow);
|
|
10775
10786
|
const isLastRow = rowIndex === rows - 1;
|
|
@@ -10803,7 +10814,7 @@ function FeatureCardGridView({
|
|
|
10803
10814
|
item.icon && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start justify-between", children: [
|
|
10804
10815
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, item.icon, { size: 80, color: item.iconColor }),
|
|
10805
10816
|
item.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10806
|
-
|
|
10817
|
+
_chunk4EJU462Ocjs.StatusBadge,
|
|
10807
10818
|
{
|
|
10808
10819
|
text: item.badge.text,
|
|
10809
10820
|
variant: item.badge.variant || "card",
|
|
@@ -10812,7 +10823,7 @@ function FeatureCardGridView({
|
|
|
10812
10823
|
)
|
|
10813
10824
|
] }),
|
|
10814
10825
|
!item.icon && item.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-start justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10815
|
-
|
|
10826
|
+
_chunk4EJU462Ocjs.StatusBadge,
|
|
10816
10827
|
{
|
|
10817
10828
|
text: item.badge.text,
|
|
10818
10829
|
variant: item.badge.variant || "card",
|
|
@@ -10993,27 +11004,13 @@ function FeatureList({
|
|
|
10993
11004
|
) : step }, index);
|
|
10994
11005
|
}) });
|
|
10995
11006
|
}
|
|
10996
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${BOXED_LIST_CLASS} ${className}`, children: items.map((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10997
|
-
"div",
|
|
10998
|
-
{
|
|
10999
|
-
|
|
11000
|
-
children:
|
|
11001
|
-
|
|
11002
|
-
|
|
11003
|
-
{
|
|
11004
|
-
className: ICON_BOX_CLASS,
|
|
11005
|
-
style: { width: iconBoxSize, height: iconBoxSize },
|
|
11006
|
-
children: item.icon
|
|
11007
|
-
}
|
|
11008
|
-
),
|
|
11009
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: BOXED_TEXT_CLASS, children: [
|
|
11010
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h3", children: item.title }),
|
|
11011
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "normal-case tracking-normal text-ods-text-secondary text-h6", children: item.description })
|
|
11012
|
-
] })
|
|
11013
|
-
]
|
|
11014
|
-
},
|
|
11015
|
-
index
|
|
11016
|
-
)) });
|
|
11007
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${BOXED_LIST_CLASS} ${className}`, children: items.map((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${BOXED_ROW_CLASS} ${index < items.length - 1 ? BOXED_ROW_DIVIDER_CLASS : ""}`, children: [
|
|
11008
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ICON_BOX_CLASS, style: { width: iconBoxSize, height: iconBoxSize }, children: item.icon }),
|
|
11009
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: BOXED_TEXT_CLASS, children: [
|
|
11010
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h3", children: item.title }),
|
|
11011
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "normal-case tracking-normal text-ods-text-secondary text-h6", children: item.description })
|
|
11012
|
+
] })
|
|
11013
|
+
] }, index)) });
|
|
11017
11014
|
}
|
|
11018
11015
|
function FeatureListSkeleton({
|
|
11019
11016
|
count = FEATURE_LIST_SKELETON_COUNT,
|
|
@@ -11039,7 +11036,7 @@ function FeatureListSkeleton({
|
|
|
11039
11036
|
|
|
11040
11037
|
function SourceTooltip({ intro, sources, note, iconClassName, triggerAnchorProps }) {
|
|
11041
11038
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11042
|
-
|
|
11039
|
+
_chunkHY6BCZH7cjs.FloatingTooltip,
|
|
11043
11040
|
{
|
|
11044
11041
|
as: "span",
|
|
11045
11042
|
side: "top",
|
|
@@ -11427,7 +11424,7 @@ function OrganizationCardSkeleton({
|
|
|
11427
11424
|
"aria-hidden": true,
|
|
11428
11425
|
children: [
|
|
11429
11426
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_HEADER_CLASS, children: [
|
|
11430
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11427
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.EntityImageSkeleton, {}),
|
|
11431
11428
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_TEXT_CLASS, children: [
|
|
11432
11429
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "h3", className: "w-3/4" }),
|
|
11433
11430
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "h6", className: "w-1/2" })
|
|
@@ -11530,7 +11527,7 @@ function OrganizationCard({
|
|
|
11530
11527
|
}
|
|
11531
11528
|
),
|
|
11532
11529
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_HEADER_CLASS, children: [
|
|
11533
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11530
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.EntityImage, { src: fetchedImageUrl || organization.imageUrl, alt: organization.name }),
|
|
11534
11531
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_TEXT_CLASS, children: [
|
|
11535
11532
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "truncate text-ods-text-primary transition-colors text-h3", title: organization.name, children: organization.name }),
|
|
11536
11533
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11580,8 +11577,8 @@ function ServiceCard({ title, subtitle, icon, tag, rows, className }) {
|
|
|
11580
11577
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-4", children: [
|
|
11581
11578
|
/* @__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 }),
|
|
11582
11579
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0", children: [
|
|
11583
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11584
|
-
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11580
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { variant: "h3", children: title }),
|
|
11581
|
+
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { variant: "h6", tone: "secondary", children: subtitle })
|
|
11585
11582
|
] })
|
|
11586
11583
|
] }),
|
|
11587
11584
|
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 })
|
|
@@ -11614,7 +11611,7 @@ function ServiceCardRowItem({ row }) {
|
|
|
11614
11611
|
),
|
|
11615
11612
|
children: [
|
|
11616
11613
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11617
|
-
|
|
11614
|
+
_chunkHY6BCZH7cjs.FloatingTooltip,
|
|
11618
11615
|
{
|
|
11619
11616
|
content: row.value,
|
|
11620
11617
|
side: "top",
|
|
@@ -11714,17 +11711,17 @@ function PersonCell({
|
|
|
11714
11711
|
const displayName = name || fallbackName;
|
|
11715
11712
|
const scale = PERSON_CELL_SIZE[size];
|
|
11716
11713
|
const row = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `group/person-cell ${PERSON_ROW_CLASS} ${scale.gap}`, children: [
|
|
11717
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11714
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.SquareAvatar, { size: scale.avatar, src: _nullishCoalesce(avatarUrl, () => ( void 0)), alt: displayName, fallback: displayName }),
|
|
11718
11715
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
11719
11716
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11720
|
-
|
|
11717
|
+
_chunkXI2CHCODcjs.TruncateText,
|
|
11721
11718
|
{
|
|
11722
11719
|
variant: scale.primary,
|
|
11723
11720
|
className: onClick ? "text-ods-accent group-hover/person-cell:underline" : void 0,
|
|
11724
11721
|
children: displayName
|
|
11725
11722
|
}
|
|
11726
11723
|
),
|
|
11727
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11724
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { variant: "h6", tone: "secondary", children: secondary === void 0 ? "\xA0" : secondary || "\xB7" })
|
|
11728
11725
|
] })
|
|
11729
11726
|
] });
|
|
11730
11727
|
if (!onClick) return row;
|
|
@@ -11742,7 +11739,7 @@ function PersonCell({
|
|
|
11742
11739
|
function PersonCellSkeleton({ size = "sm" }) {
|
|
11743
11740
|
const scale = PERSON_CELL_SIZE[size];
|
|
11744
11741
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${PERSON_ROW_CLASS} ${scale.gap}`, "aria-hidden": true, children: [
|
|
11745
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11742
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.SquareAvatarSkeleton, { size: scale.avatar }),
|
|
11746
11743
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
11747
11744
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: scale.primary, className: "w-3/4" }),
|
|
11748
11745
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "h6", className: "w-1/2" })
|
|
@@ -11765,9 +11762,9 @@ function PeopleCell({ people, fallbackName = "Unassigned" }) {
|
|
|
11765
11762
|
);
|
|
11766
11763
|
}
|
|
11767
11764
|
const fullNames = people.map((p) => p.name || "Unknown").join(", ");
|
|
11768
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11765
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.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: [
|
|
11769
11766
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-hidden": true, className: "shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11770
|
-
|
|
11767
|
+
_chunkVFUMM6JCcjs.AvatarStack,
|
|
11771
11768
|
{
|
|
11772
11769
|
size: "sm",
|
|
11773
11770
|
slots: PEOPLE_CELL_STACK_SLOTS,
|
|
@@ -11775,7 +11772,7 @@ function PeopleCell({ people, fallbackName = "Unassigned" }) {
|
|
|
11775
11772
|
}
|
|
11776
11773
|
) }),
|
|
11777
11774
|
/* @__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: [
|
|
11778
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": true, children: people.map((p) =>
|
|
11775
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": true, children: people.map((p) => _chunkHY6BCZH7cjs.personFirstName.call(void 0, p.name, "Unknown")).join(" & ") }),
|
|
11779
11776
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: fullNames })
|
|
11780
11777
|
] })
|
|
11781
11778
|
] }) });
|
|
@@ -12484,7 +12481,7 @@ function TableHeader({
|
|
|
12484
12481
|
onFilterChange
|
|
12485
12482
|
}
|
|
12486
12483
|
),
|
|
12487
|
-
column.hint ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12484
|
+
column.hint ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUBPSA3RMcjs.InfoHint, { label: column.label, children: column.hint }) : null
|
|
12488
12485
|
] })
|
|
12489
12486
|
) : (
|
|
12490
12487
|
/* Non-filterable column — regular label with optional sort */
|
|
@@ -12510,7 +12507,7 @@ function TableHeader({
|
|
|
12510
12507
|
hint exists, so a hint-less header keeps its DOM. */
|
|
12511
12508
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
12512
12509
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TABLE_HEADER_LABEL_CLASS, children: column.label }),
|
|
12513
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12510
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUBPSA3RMcjs.InfoHint, { label: column.label, children: column.hint })
|
|
12514
12511
|
] })
|
|
12515
12512
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TABLE_HEADER_LABEL_CLASS, children: column.label }),
|
|
12516
12513
|
getSortIcon(column)
|
|
@@ -12620,7 +12617,7 @@ function TableRow({
|
|
|
12620
12617
|
const Row = animate && motionDiv ? motionDiv : "div";
|
|
12621
12618
|
const motionProps = animate ? { layout: "position", transition: { layout: { duration: 0.35, ease: [0.22, 1, 0.36, 1] } } } : {};
|
|
12622
12619
|
const handleRowClick = (e) => {
|
|
12623
|
-
if (!
|
|
12620
|
+
if (!_chunkUBPSA3RMcjs.isOwnClick.call(void 0, e.target, e.currentTarget)) return;
|
|
12624
12621
|
if (onClick) {
|
|
12625
12622
|
onClick(item);
|
|
12626
12623
|
}
|
|
@@ -13016,7 +13013,7 @@ function Table({
|
|
|
13016
13013
|
}
|
|
13017
13014
|
),
|
|
13018
13015
|
!infiniteScroll && pagePagination && !cursorPagination && data.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "mt-2 border-t border-ods-border pt-3", paginationClassName), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13019
|
-
|
|
13016
|
+
_chunkQS4G7CHUcjs.Pagination,
|
|
13020
13017
|
{
|
|
13021
13018
|
currentPage: pagePagination.currentPage,
|
|
13022
13019
|
totalPages: pagePagination.totalPages,
|
|
@@ -13049,7 +13046,7 @@ function TableDescriptionCell({ text, className, maxLines = 3 }) {
|
|
|
13049
13046
|
|
|
13050
13047
|
// src/components/ui/table/table-timestamp-cell.tsx
|
|
13051
13048
|
|
|
13052
|
-
var formatLocalTimestamp = (date) =>
|
|
13049
|
+
var formatLocalTimestamp = (date) => _chunkHY6BCZH7cjs.formatDateWithTimezone.call(void 0, date, _chunkHY6BCZH7cjs.VIEWER_TIMEZONE, "localeDateTime", { viewerLocale: true });
|
|
13053
13050
|
function formatTimestampValue(timestamp) {
|
|
13054
13051
|
if (timestamp instanceof Date) {
|
|
13055
13052
|
return formatLocalTimestamp(timestamp);
|
|
@@ -13398,7 +13395,7 @@ function DataTableRowImpl({
|
|
|
13398
13395
|
const containerRef = _react.useRef.call(void 0, null);
|
|
13399
13396
|
const handleClick = _react.useCallback.call(void 0,
|
|
13400
13397
|
(e) => {
|
|
13401
|
-
if (!
|
|
13398
|
+
if (!_chunkUBPSA3RMcjs.isOwnClick.call(void 0, e.target, containerRef.current)) {
|
|
13402
13399
|
if (isLinkMode) e.preventDefault();
|
|
13403
13400
|
return;
|
|
13404
13401
|
}
|
|
@@ -13848,7 +13845,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13848
13845
|
// child of the cell.
|
|
13849
13846
|
_optionalChain([meta, 'optionalAccess', _232 => _232.hint]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13850
13847
|
filterTrigger,
|
|
13851
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13848
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUBPSA3RMcjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
13852
13849
|
] }) : filterTrigger
|
|
13853
13850
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13854
13851
|
"div",
|
|
@@ -13873,7 +13870,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13873
13870
|
// centred on the row.
|
|
13874
13871
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13875
13872
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
13876
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13873
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUBPSA3RMcjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
13877
13874
|
] })
|
|
13878
13875
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
13879
13876
|
canSort && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortIcon, { sorted: sortDir })
|
|
@@ -13979,7 +13976,7 @@ function DataTableInfiniteFooter({
|
|
|
13979
13976
|
var ROW_COUNT_CLASS = "whitespace-nowrap text-ods-text-secondary text-h6";
|
|
13980
13977
|
function DataTableRowCountSkeleton({ label, className }) {
|
|
13981
13978
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk65VVJSQZcjs.cn.call(void 0, ROW_COUNT_CLASS, className), "aria-hidden": true, children: [
|
|
13982
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "inline-block align-top
|
|
13979
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "inline-block w-6 align-top" }),
|
|
13983
13980
|
" ",
|
|
13984
13981
|
label
|
|
13985
13982
|
] });
|
|
@@ -14105,7 +14102,7 @@ function PhoneInput({
|
|
|
14105
14102
|
placeholder = "Phone Number (optional)",
|
|
14106
14103
|
onKeyDown
|
|
14107
14104
|
}) {
|
|
14108
|
-
const { priority, others } = _react.useMemo.call(void 0, () =>
|
|
14105
|
+
const { priority, others } = _react.useMemo.call(void 0, () => _chunkUBPSA3RMcjs.getCountryPhoneData.call(void 0, ), []);
|
|
14109
14106
|
const selectedCountry = _react.useMemo.call(void 0,
|
|
14110
14107
|
() => [...priority, ...others].find((c) => c.code === countryCode),
|
|
14111
14108
|
[countryCode, priority, others]
|
|
@@ -14120,7 +14117,7 @@ function PhoneInput({
|
|
|
14120
14117
|
_optionalChain([onValidationChange, 'optionalCall', _246 => _246(false)]);
|
|
14121
14118
|
return;
|
|
14122
14119
|
}
|
|
14123
|
-
const invalid = !
|
|
14120
|
+
const invalid = !_chunkUBPSA3RMcjs.validatePhoneNumber.call(void 0, phone, countryCode);
|
|
14124
14121
|
setIsInvalid(invalid);
|
|
14125
14122
|
_optionalChain([onValidationChange, 'optionalCall', _247 => _247(invalid)]);
|
|
14126
14123
|
},
|
|
@@ -14140,7 +14137,7 @@ function PhoneInput({
|
|
|
14140
14137
|
}, []);
|
|
14141
14138
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 gap-2", children: [
|
|
14142
14139
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14143
|
-
|
|
14140
|
+
_chunkXI2CHCODcjs.Select,
|
|
14144
14141
|
{
|
|
14145
14142
|
value: countryCode,
|
|
14146
14143
|
onValueChange: (val) => {
|
|
@@ -14151,14 +14148,14 @@ function PhoneInput({
|
|
|
14151
14148
|
},
|
|
14152
14149
|
disabled,
|
|
14153
14150
|
children: [
|
|
14154
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14151
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectTrigger, { className: "w-[130px] shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectValue, { children: selectedCountry && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-1.5", children: [
|
|
14155
14152
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: selectedCountry.flag }),
|
|
14156
14153
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: selectedCountry.dialCode })
|
|
14157
14154
|
] }) }) }),
|
|
14158
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14159
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14160
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14161
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14155
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkXI2CHCODcjs.SelectContent, { className: "max-h-[300px] !w-[280px]", children: [
|
|
14156
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectGroup, { children: priority.map((country) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CountryOption, { country }, country.code)) }),
|
|
14157
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectSeparator, {}),
|
|
14158
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectGroup, { children: others.map((country) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CountryOption, { country }, country.code)) })
|
|
14162
14159
|
] })
|
|
14163
14160
|
]
|
|
14164
14161
|
}
|
|
@@ -14190,7 +14187,7 @@ function PhoneInput({
|
|
|
14190
14187
|
] });
|
|
14191
14188
|
}
|
|
14192
14189
|
function CountryOption({ country }) {
|
|
14193
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14190
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: country.code, textValue: country.name, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-2", children: [
|
|
14194
14191
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0", children: country.flag }),
|
|
14195
14192
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary", children: country.dialCode }),
|
|
14196
14193
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-block max-w-[140px] overflow-hidden text-ellipsis whitespace-nowrap", children: country.name })
|
|
@@ -14479,7 +14476,7 @@ function SearchInput({
|
|
|
14479
14476
|
/* @__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, {}) }),
|
|
14480
14477
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: middleRef, className: "flex min-w-0 flex-1 items-center gap-2 overflow-hidden", children: [
|
|
14481
14478
|
visibleChips.map((chip) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14482
|
-
|
|
14479
|
+
_chunkHY6BCZH7cjs.Tag,
|
|
14483
14480
|
{
|
|
14484
14481
|
variant: chipVariantToTagVariant(chip.variant),
|
|
14485
14482
|
label: chip.label,
|
|
@@ -14575,7 +14572,7 @@ function SearchInput({
|
|
|
14575
14572
|
)
|
|
14576
14573
|
] }),
|
|
14577
14574
|
showHiddenTags && hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14578
|
-
|
|
14575
|
+
_chunkXI2CHCODcjs.HiddenTagsPopup,
|
|
14579
14576
|
{
|
|
14580
14577
|
ref: hiddenTagsPopupRef,
|
|
14581
14578
|
items: hiddenChips.map((chip) => ({ label: chip.label, value: chip.id })),
|
|
@@ -14595,7 +14592,7 @@ function SearchInput({
|
|
|
14595
14592
|
}
|
|
14596
14593
|
),
|
|
14597
14594
|
/* @__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,
|
|
14598
|
-
|
|
14595
|
+
_chunkHY6BCZH7cjs.Tag,
|
|
14599
14596
|
{
|
|
14600
14597
|
variant: chipVariantToTagVariant(chip.variant),
|
|
14601
14598
|
label: chip.label,
|
|
@@ -14808,7 +14805,7 @@ function TagSearchInput({
|
|
|
14808
14805
|
/* @__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" }) }),
|
|
14809
14806
|
/* @__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: [
|
|
14810
14807
|
visibleTags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14811
|
-
|
|
14808
|
+
_chunkHY6BCZH7cjs.Tag,
|
|
14812
14809
|
{
|
|
14813
14810
|
variant: "outline",
|
|
14814
14811
|
label: renderTag ? renderTag(tag) : tag.label,
|
|
@@ -14869,7 +14866,7 @@ function TagSearchInput({
|
|
|
14869
14866
|
}
|
|
14870
14867
|
),
|
|
14871
14868
|
showHiddenTags && hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14872
|
-
|
|
14869
|
+
_chunkXI2CHCODcjs.HiddenTagsPopup,
|
|
14873
14870
|
{
|
|
14874
14871
|
ref: hiddenTagsPopupRef,
|
|
14875
14872
|
items: hiddenTags,
|
|
@@ -14896,7 +14893,7 @@ function TagSearchInput({
|
|
|
14896
14893
|
"aria-hidden": "true",
|
|
14897
14894
|
className: "pointer-events-none invisible absolute left-0 top-0 -z-10 flex gap-2",
|
|
14898
14895
|
children: tags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14899
|
-
|
|
14896
|
+
_chunkHY6BCZH7cjs.Tag,
|
|
14900
14897
|
{
|
|
14901
14898
|
variant: "outline",
|
|
14902
14899
|
label: renderTag ? renderTag(tag) : tag.label,
|
|
@@ -14959,8 +14956,8 @@ function MarkdownLinkDialog({ isOpen, initial, editing, onSubmit, onRemove, onCl
|
|
|
14959
14956
|
if (!trimmedUrl) return;
|
|
14960
14957
|
onSubmit({ text: text.trim(), url: trimmedUrl, rel });
|
|
14961
14958
|
};
|
|
14962
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14963
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14959
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.Modal, { isOpen, onClose, className: "text-left md:max-w-[560px]", children: [
|
|
14960
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalTitle, { children: editing ? "Edit link" : "Add link" }) }),
|
|
14964
14961
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14965
14962
|
"form",
|
|
14966
14963
|
{
|
|
@@ -14985,7 +14982,7 @@ function MarkdownLinkDialog({ isOpen, initial, editing, onSubmit, onRemove, onCl
|
|
|
14985
14982
|
),
|
|
14986
14983
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xsf)]", children: [
|
|
14987
14984
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14988
|
-
|
|
14985
|
+
_chunkZXFOMNI5cjs.TabSelector,
|
|
14989
14986
|
{
|
|
14990
14987
|
label: "Search engines",
|
|
14991
14988
|
value: choice,
|
|
@@ -15002,7 +14999,7 @@ function MarkdownLinkDialog({ isOpen, initial, editing, onSubmit, onRemove, onCl
|
|
|
15002
14999
|
]
|
|
15003
15000
|
}
|
|
15004
15001
|
),
|
|
15005
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
15002
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.ModalFooter, { children: [
|
|
15006
15003
|
editing ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { type: "button", variant: "outline", onClick: onRemove, className: "flex-1", children: "Remove link" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { type: "button", variant: "outline", onClick: onClose, className: "flex-1", children: "Cancel" }),
|
|
15007
15004
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { type: "submit", form: formId, variant: "accent", disabled: !trimmedUrl, className: "flex-1", children: editing ? "Save" : "Add link" })
|
|
15008
15005
|
] })
|
|
@@ -15042,7 +15039,7 @@ function useMarkdownLinkCommand() {
|
|
|
15042
15039
|
buttonProps: { "aria-label": "Add or edit a link (ctrl + l)", title: "Add or edit a link (ctrl + l)" },
|
|
15043
15040
|
icon: command.icon,
|
|
15044
15041
|
execute: (state, api) => {
|
|
15045
|
-
const existing =
|
|
15042
|
+
const existing = _chunkZXFOMNI5cjs.findMarkdownLinkAt.call(void 0, state.text, state.selection.start, state.selection.end);
|
|
15046
15043
|
setPending(
|
|
15047
15044
|
existing ? {
|
|
15048
15045
|
api,
|
|
@@ -15073,7 +15070,7 @@ function useMarkdownLinkCommand() {
|
|
|
15073
15070
|
initial: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _304 => _304.initial]), () => ( EMPTY_LINK)),
|
|
15074
15071
|
editing: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _305 => _305.editing]), () => ( false)),
|
|
15075
15072
|
onSubmit: (link) => {
|
|
15076
|
-
if (pending) write(pending,
|
|
15073
|
+
if (pending) write(pending, _chunkZXFOMNI5cjs.formatMarkdownLink.call(void 0, link));
|
|
15077
15074
|
},
|
|
15078
15075
|
onRemove: () => {
|
|
15079
15076
|
if (pending) write(pending, pending.initial.text);
|
|
@@ -15239,7 +15236,7 @@ function MarkdownEditor({
|
|
|
15239
15236
|
setUploadProgress(`Uploading ${file.name}...`);
|
|
15240
15237
|
try {
|
|
15241
15238
|
const url = await onUploadFile(file);
|
|
15242
|
-
const isImage =
|
|
15239
|
+
const isImage = _chunk4EJU462Ocjs.fileMediaType.call(void 0, file) === "image";
|
|
15243
15240
|
const markdown = isImage ? `` : `[${file.name}](${url})`;
|
|
15244
15241
|
insertTextAtCursor(markdown);
|
|
15245
15242
|
_optionalChain([onFileUploaded, 'optionalCall', _308 => _308(url, file.name)]);
|
|
@@ -15369,7 +15366,7 @@ function MarkdownEditor({
|
|
|
15369
15366
|
type: "file",
|
|
15370
15367
|
className: "hidden",
|
|
15371
15368
|
onChange: handleFileInputChange,
|
|
15372
|
-
accept: `${
|
|
15369
|
+
accept: `${_chunk4EJU462Ocjs.IMAGE_FILE_ACCEPT},.pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.zip,.txt`
|
|
15373
15370
|
}
|
|
15374
15371
|
),
|
|
15375
15372
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownEditorHeightContext.Provider, { value: height, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Suspense, { fallback: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownEditorFieldSkeleton, { height }), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -15770,7 +15767,7 @@ function matchesAccept2(file, accept) {
|
|
|
15770
15767
|
return patterns.some((pattern) => {
|
|
15771
15768
|
if (pattern.startsWith(".")) return fileName.endsWith(pattern);
|
|
15772
15769
|
if (pattern.endsWith("/*"))
|
|
15773
|
-
return fileType.startsWith(pattern.slice(0, -1)) ||
|
|
15770
|
+
return fileType.startsWith(pattern.slice(0, -1)) || _chunk4EJU462Ocjs.fileMediaType.call(void 0, file) === pattern.slice(0, -2);
|
|
15774
15771
|
return fileType === pattern;
|
|
15775
15772
|
});
|
|
15776
15773
|
}
|
|
@@ -15778,7 +15775,7 @@ function ImageUploader({
|
|
|
15778
15775
|
value,
|
|
15779
15776
|
onChange,
|
|
15780
15777
|
onRemove,
|
|
15781
|
-
accept =
|
|
15778
|
+
accept = _chunk4EJU462Ocjs.IMAGE_FILE_ACCEPT,
|
|
15782
15779
|
maxSize = DEFAULT_MAX_SIZE,
|
|
15783
15780
|
label = "Cover Image",
|
|
15784
15781
|
description = "(Click Here or Drag and Drop)",
|
|
@@ -16016,13 +16013,13 @@ function ColorPresetSelect({
|
|
|
16016
16013
|
...presets.map((p) => ({
|
|
16017
16014
|
id: p.key,
|
|
16018
16015
|
label: p.label,
|
|
16019
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16016
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ColorSwatch, { color: p.color }),
|
|
16020
16017
|
onClick: () => onChange({ color: p.color, preset: p.key })
|
|
16021
16018
|
})),
|
|
16022
16019
|
{
|
|
16023
16020
|
id: CUSTOM_PRESET_KEY,
|
|
16024
16021
|
label: "Custom",
|
|
16025
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16022
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ColorSwatch, { color: isCustom ? value : DEFAULT_CUSTOM_STATUS_COLOR }),
|
|
16026
16023
|
onClick: () => onChange({ color: value, preset: void 0 })
|
|
16027
16024
|
}
|
|
16028
16025
|
]
|
|
@@ -16039,7 +16036,7 @@ function ColorPresetSelect({
|
|
|
16039
16036
|
{
|
|
16040
16037
|
disabled,
|
|
16041
16038
|
"aria-label": `Color: ${displayLabel}`,
|
|
16042
|
-
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16039
|
+
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ColorSwatch, { color: displayColor }),
|
|
16043
16040
|
selectedLabel: displayLabel,
|
|
16044
16041
|
endIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TriggerChevron, {}),
|
|
16045
16042
|
className: _chunk65VVJSQZcjs.cn.call(void 0, "group", className)
|
|
@@ -16171,7 +16168,7 @@ function ColorPickerInput({ value, onChange, disabled, className }) {
|
|
|
16171
16168
|
{
|
|
16172
16169
|
disabled,
|
|
16173
16170
|
"aria-label": "Pick custom color",
|
|
16174
|
-
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16171
|
+
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ColorSwatch, { color: value }),
|
|
16175
16172
|
selectedLabel: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase", children: value }),
|
|
16176
16173
|
endIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TriggerChevron, {}),
|
|
16177
16174
|
className: _chunk65VVJSQZcjs.cn.call(void 0, "group", className)
|
|
@@ -16244,7 +16241,7 @@ function TicketStatusConfigRow({
|
|
|
16244
16241
|
const previewVariant = _nullishCoalesce(systemTagVariant, () => ( (isSystem ? void 0 : "primary")));
|
|
16245
16242
|
const fieldRowOffset = "mt-[calc(var(--font-line-space-h4-body)+0.25rem)]";
|
|
16246
16243
|
const chip = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16247
|
-
|
|
16244
|
+
_chunkEHJE3UWZcjs.TicketStatusTag,
|
|
16248
16245
|
{
|
|
16249
16246
|
status: statusKey,
|
|
16250
16247
|
label: name || " ",
|
|
@@ -16351,7 +16348,7 @@ function TicketStatusConfigRow({
|
|
|
16351
16348
|
),
|
|
16352
16349
|
children: [
|
|
16353
16350
|
!isSystem && moveButtons,
|
|
16354
|
-
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,
|
|
16351
|
+
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, _chunkLJT2KRE2cjs.TouchFriendlyTooltip, { content: systemTooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16355
16352
|
"button",
|
|
16356
16353
|
{
|
|
16357
16354
|
type: "button",
|
|
@@ -16359,7 +16356,7 @@ function TicketStatusConfigRow({
|
|
|
16359
16356
|
className: "flex size-6 items-center justify-center text-ods-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-ods-focus",
|
|
16360
16357
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRHC2FRVEcjs.InfoCircleIcon, { size: 24 })
|
|
16361
16358
|
}
|
|
16362
|
-
) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16359
|
+
) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJT2KRE2cjs.TouchFriendlyTooltip, { content: deleteDisabled ? deleteDisabledReason : void 0, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16363
16360
|
_chunkTF5D5MNOcjs.Button,
|
|
16364
16361
|
{
|
|
16365
16362
|
type: "button",
|
|
@@ -16398,7 +16395,7 @@ var SKELETON_COLUMNS = 6;
|
|
|
16398
16395
|
function TestResultsSkeleton({
|
|
16399
16396
|
region = true
|
|
16400
16397
|
} = {}) {
|
|
16401
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEANWBJHcjs.LoadingRegion, { label: "Loading the test results", announce: region, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16398
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEANWBJHcjs.LoadingRegion, { label: "Loading the test results", announce: region, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZXFOMNI5cjs.ScrollShadow, { axis: "horizontal", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-max min-w-full flex-col", children: [
|
|
16402
16399
|
/* @__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, _chunkXFRBEXQNcjs.UnifiedSkeleton, { className: "h-4 w-3/4 rounded-sm" }) }, `skeleton-header-${i}`)) }),
|
|
16403
16400
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "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, _chunkXFRBEXQNcjs.UnifiedSkeleton, { className: "h-5 w-3/4 rounded-sm" }) }, `skeleton-cell-${i}`)) }) })
|
|
16404
16401
|
] }) }) });
|
|
@@ -16433,7 +16430,7 @@ function TestResultsTable({ rows, loading }) {
|
|
|
16433
16430
|
if (loading) {
|
|
16434
16431
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TestResultsSkeleton, {});
|
|
16435
16432
|
}
|
|
16436
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16433
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZXFOMNI5cjs.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: [
|
|
16437
16434
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTable.Header, { className: "flex flex-col" }),
|
|
16438
16435
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTable.Body, { loading: false })
|
|
16439
16436
|
] }) }) });
|
|
@@ -16495,7 +16492,7 @@ var TEST_RUN_STATUS_TAGS = {
|
|
|
16495
16492
|
function TestRunStatusStat({ status, className }) {
|
|
16496
16493
|
const tag = status === "idle" ? null : TEST_RUN_STATUS_TAGS[status];
|
|
16497
16494
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "flex min-w-0 flex-col items-start justify-center gap-[var(--spacing-system-xxs)]", className), children: [
|
|
16498
|
-
tag ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16495
|
+
tag ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.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: "-" }),
|
|
16499
16496
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: "Status" })
|
|
16500
16497
|
] });
|
|
16501
16498
|
}
|
|
@@ -16539,7 +16536,7 @@ function useTestRunState(campaign) {
|
|
|
16539
16536
|
const stopReason = _nullishCoalesce(campaign.stopReason, () => ( "completed"));
|
|
16540
16537
|
const status = isActive ? "running" : hasRun && isFinished ? stopReason === "completed" ? firstError ? "error" : "success" : stopReason : "idle";
|
|
16541
16538
|
const showTiming = hasRun && campaign.startedAt !== null && (campaign.isRunning || isFinished);
|
|
16542
|
-
const startedLabel = showTiming && campaign.startedAt ?
|
|
16539
|
+
const startedLabel = showTiming && campaign.startedAt ? _chunk5QP3K2CEcjs.formatTime.call(void 0, campaign.startedAt) : "00:00 PM";
|
|
16543
16540
|
const durationLabel = showTiming ? formatTestRunDuration(durationMs) : "00:00:00";
|
|
16544
16541
|
const displayRows = _react.useMemo.call(void 0,
|
|
16545
16542
|
() => campaign.results.map(
|
|
@@ -16578,7 +16575,7 @@ function TicketAttachmentsList({ attachments, className, size = "default" }) {
|
|
|
16578
16575
|
),
|
|
16579
16576
|
children: [
|
|
16580
16577
|
attachment.thumbnailSrc ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16581
|
-
|
|
16578
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
16582
16579
|
{
|
|
16583
16580
|
src: attachment.thumbnailSrc,
|
|
16584
16581
|
alt: attachment.fileName,
|
|
@@ -16671,7 +16668,7 @@ function TicketNoteCard({ note, onEdit, onDelete, className }) {
|
|
|
16671
16668
|
};
|
|
16672
16669
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "flex items-start gap-4 rounded-[6px] p-3", "border border-ods-border bg-ods-card", className), children: [
|
|
16673
16670
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16674
|
-
|
|
16671
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
16675
16672
|
{
|
|
16676
16673
|
src: note.authorAvatar,
|
|
16677
16674
|
alt: note.authorName,
|
|
@@ -16847,7 +16844,7 @@ function TicketInfoSection({
|
|
|
16847
16844
|
/* @__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: [
|
|
16848
16845
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
16849
16846
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16850
|
-
|
|
16847
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
16851
16848
|
{
|
|
16852
16849
|
src: _optionalChain([organization, 'optionalAccess', _344 => _344.imageSrc]),
|
|
16853
16850
|
alt: _optionalChain([organization, 'optionalAccess', _345 => _345.name]),
|
|
@@ -16877,7 +16874,7 @@ function TicketInfoSection({
|
|
|
16877
16874
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: _optionalChain([device, 'optionalAccess', _348 => _348.name]) || "Unassigned", label: "Device", icon: _optionalChain([device, 'optionalAccess', _349 => _349.icon]), onClick: _optionalChain([device, 'optionalAccess', _350 => _350.onClick]) }),
|
|
16878
16875
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-4", children: [
|
|
16879
16876
|
(status || statusLabel) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16880
|
-
|
|
16877
|
+
_chunkEHJE3UWZcjs.TicketStatusTag,
|
|
16881
16878
|
{
|
|
16882
16879
|
status: _nullishCoalesce(status, () => ( "")),
|
|
16883
16880
|
label: statusLabel,
|
|
@@ -16916,9 +16913,9 @@ function TicketInfoSection({
|
|
|
16916
16913
|
expanded && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
16917
16914
|
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" }) }),
|
|
16918
16915
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-4 border-b border-ods-border bg-ods-bg p-4", children: [
|
|
16919
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16916
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZXFOMNI5cjs.SimpleMarkdownRenderer, { content: description }),
|
|
16920
16917
|
attachments && attachments.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Attachments", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketAttachmentsList, { attachments }) }),
|
|
16921
|
-
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,
|
|
16918
|
+
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, _chunkHY6BCZH7cjs.Tag, { label: tag, variant: "outline", className: "max-w-full" }, tag)) }) }),
|
|
16922
16919
|
(notes || onAddNote) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Notes", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16923
16920
|
TicketNotesSection,
|
|
16924
16921
|
{
|
|
@@ -16941,8 +16938,8 @@ function renderTicketStatusOption(option, isSelected) {
|
|
|
16941
16938
|
const { label, color } = option;
|
|
16942
16939
|
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: [
|
|
16943
16940
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
16944
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16945
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16941
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ColorSwatch, { color }),
|
|
16942
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { className: "text-inherit", children: label }) })
|
|
16946
16943
|
] }),
|
|
16947
16944
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
16948
16945
|
] });
|
|
@@ -16951,8 +16948,8 @@ function renderTicketAssigneeOption(option, isSelected) {
|
|
|
16951
16948
|
const { label, imageUrl } = option;
|
|
16952
16949
|
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: [
|
|
16953
16950
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
16954
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16955
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16951
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.SquareAvatar, { src: imageUrl, alt: label, fallback: label, size: "sm", variant: "round" }),
|
|
16952
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { className: "text-inherit", children: label }) })
|
|
16956
16953
|
] }),
|
|
16957
16954
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
16958
16955
|
] });
|
|
@@ -16986,9 +16983,9 @@ function TakeOverTicketModal({
|
|
|
16986
16983
|
if (!selectedStatusId || !assigneeId || isPending) return;
|
|
16987
16984
|
onConfirm({ statusId: selectedStatusId, assigneeId });
|
|
16988
16985
|
};
|
|
16989
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16986
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
16990
16987
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
16991
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16988
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalTitle, { children: "Take Over Ticket" }) }),
|
|
16992
16989
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
16993
16990
|
"The ticket ",
|
|
16994
16991
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-accent", children: ticketRef }),
|
|
@@ -16996,19 +16993,19 @@ function TakeOverTicketModal({
|
|
|
16996
16993
|
] }),
|
|
16997
16994
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)] md:flex-row", children: [
|
|
16998
16995
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16999
|
-
|
|
16996
|
+
_chunkXI2CHCODcjs.Autocomplete,
|
|
17000
16997
|
{
|
|
17001
16998
|
label: "Status",
|
|
17002
16999
|
options: statusOptions,
|
|
17003
17000
|
value: selectedStatusId,
|
|
17004
17001
|
onChange: setStatusId,
|
|
17005
17002
|
placeholder: "Select Status",
|
|
17006
|
-
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17003
|
+
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ColorSwatch, { color: selectedStatus.color }) : void 0,
|
|
17007
17004
|
renderOption: renderTicketStatusOption
|
|
17008
17005
|
}
|
|
17009
17006
|
) }),
|
|
17010
17007
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17011
|
-
|
|
17008
|
+
_chunkXI2CHCODcjs.Autocomplete,
|
|
17012
17009
|
{
|
|
17013
17010
|
label: "Assigned",
|
|
17014
17011
|
options: assigneeOptions,
|
|
@@ -17017,7 +17014,7 @@ function TakeOverTicketModal({
|
|
|
17017
17014
|
placeholder: "Select Technician",
|
|
17018
17015
|
loading: assigneesLoading,
|
|
17019
17016
|
startAdornment: selectedAssignee ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17020
|
-
|
|
17017
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
17021
17018
|
{
|
|
17022
17019
|
src: selectedAssignee.imageUrl,
|
|
17023
17020
|
alt: selectedAssignee.label,
|
|
@@ -17030,7 +17027,7 @@ function TakeOverTicketModal({
|
|
|
17030
17027
|
}
|
|
17031
17028
|
) })
|
|
17032
17029
|
] }),
|
|
17033
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17030
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.ModalFooter, { children: [
|
|
17034
17031
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
17035
17032
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
17036
17033
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -17089,9 +17086,9 @@ function ReopenTicketModal({
|
|
|
17089
17086
|
reason: trimmedReason ? trimmedReason.slice(0, REASON_MAX_LENGTH) : null
|
|
17090
17087
|
});
|
|
17091
17088
|
};
|
|
17092
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17089
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
17093
17090
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
17094
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17091
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalTitle, { children: "Reopen Ticket" }) }),
|
|
17095
17092
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
17096
17093
|
"The ticket ",
|
|
17097
17094
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-accent", children: ticketRef }),
|
|
@@ -17099,19 +17096,19 @@ function ReopenTicketModal({
|
|
|
17099
17096
|
] }),
|
|
17100
17097
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)] md:flex-row", children: [
|
|
17101
17098
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17102
|
-
|
|
17099
|
+
_chunkXI2CHCODcjs.Autocomplete,
|
|
17103
17100
|
{
|
|
17104
17101
|
label: "Status",
|
|
17105
17102
|
options: statusOptions,
|
|
17106
17103
|
value: selectedStatusId,
|
|
17107
17104
|
onChange: setStatusId,
|
|
17108
17105
|
placeholder: "Select Status",
|
|
17109
|
-
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17106
|
+
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ColorSwatch, { color: selectedStatus.color }) : void 0,
|
|
17110
17107
|
renderOption: renderTicketStatusOption
|
|
17111
17108
|
}
|
|
17112
17109
|
) }),
|
|
17113
17110
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17114
|
-
|
|
17111
|
+
_chunkXI2CHCODcjs.Autocomplete,
|
|
17115
17112
|
{
|
|
17116
17113
|
label: "Assigned",
|
|
17117
17114
|
options: assigneeOptions,
|
|
@@ -17120,7 +17117,7 @@ function ReopenTicketModal({
|
|
|
17120
17117
|
placeholder: "Select Technician",
|
|
17121
17118
|
loading: assigneesLoading,
|
|
17122
17119
|
startAdornment: selectedAssignee ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17123
|
-
|
|
17120
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
17124
17121
|
{
|
|
17125
17122
|
src: selectedAssignee.imageUrl,
|
|
17126
17123
|
alt: selectedAssignee.label,
|
|
@@ -17144,7 +17141,7 @@ function ReopenTicketModal({
|
|
|
17144
17141
|
disabled: isPending
|
|
17145
17142
|
}
|
|
17146
17143
|
) }),
|
|
17147
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17144
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.ModalFooter, { children: [
|
|
17148
17145
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
17149
17146
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
17150
17147
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -17193,9 +17190,9 @@ function ReopenTicketRequestModal({
|
|
|
17193
17190
|
...showHandoffOption ? { handoffToTechnician: handoff } : {}
|
|
17194
17191
|
});
|
|
17195
17192
|
};
|
|
17196
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17193
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
17197
17194
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
17198
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17195
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalTitle, { children: "Reopen Ticket" }) }),
|
|
17199
17196
|
/* @__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." }),
|
|
17200
17197
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17201
17198
|
Textarea,
|
|
@@ -17219,7 +17216,7 @@ function ReopenTicketRequestModal({
|
|
|
17219
17216
|
disabled: isPending
|
|
17220
17217
|
}
|
|
17221
17218
|
),
|
|
17222
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17219
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.ModalFooter, { children: [
|
|
17223
17220
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1", children: "Cancel" }),
|
|
17224
17221
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { type: "button", variant: "accent", onClick: handleConfirm, loading: isPending, className: "flex-1", children: "Reopen Ticket" })
|
|
17225
17222
|
] })
|
|
@@ -17385,7 +17382,7 @@ function PhotoWall({
|
|
|
17385
17382
|
gap: COLUMN_GAP_PX
|
|
17386
17383
|
};
|
|
17387
17384
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: rootRef, "aria-hidden": "true", className: _chunk65VVJSQZcjs.cn.call(void 0, "grid overflow-hidden", className), style: gridStyle, children: columnsToDraw ? columnsToDraw.map((column, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17388
|
-
|
|
17385
|
+
_chunkZXFOMNI5cjs.MarqueeWall,
|
|
17389
17386
|
{
|
|
17390
17387
|
axis: "y",
|
|
17391
17388
|
reverse: index % 2 === 1,
|
|
@@ -17603,19 +17600,10 @@ function ProductScreenFrame({
|
|
|
17603
17600
|
className: _chunk65VVJSQZcjs.cn.call(void 0, "relative overflow-hidden", className),
|
|
17604
17601
|
style: { height },
|
|
17605
17602
|
children: [
|
|
17606
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIFEZ2JTcjs.PortalContainerContext.Provider, { value: portalHost, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIFEZ2JTcjs.CollisionBoundaryContext.Provider, { value: frame, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17607
|
-
"div",
|
|
17608
|
-
{
|
|
17609
|
-
|
|
17610
|
-
"aria-hidden": true,
|
|
17611
|
-
className: "ods-content-area",
|
|
17612
|
-
style: screenStyle,
|
|
17613
|
-
children: [
|
|
17614
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ods-content-scope", children: mode === "pending" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.LoadingScope, { bare: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZV45VS6Kcjs.PagePicture, { children }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZV45VS6Kcjs.PagePicture, { children }) }),
|
|
17615
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
|
|
17616
|
-
]
|
|
17617
|
-
}
|
|
17618
|
-
) }) }),
|
|
17603
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIFEZ2JTcjs.PortalContainerContext.Provider, { value: portalHost, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIFEZ2JTcjs.CollisionBoundaryContext.Provider, { value: frame, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { inert: true, "aria-hidden": true, className: "ods-content-area", style: screenStyle, children: [
|
|
17604
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ods-content-scope", children: mode === "pending" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.LoadingScope, { bare: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.PagePicture, { children }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.PagePicture, { children }) }),
|
|
17605
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
|
|
17606
|
+
] }) }) }),
|
|
17619
17607
|
fade && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17620
17608
|
"div",
|
|
17621
17609
|
{
|
|
@@ -17749,7 +17737,7 @@ function PhoneFrame({ dateLabel, timeLabel, children, className }) {
|
|
|
17749
17737
|
"div",
|
|
17750
17738
|
{
|
|
17751
17739
|
className: _chunk65VVJSQZcjs.cn.call(void 0, "h-[617px] w-[299px] shrink-0 rounded-[48px] border border-ods-border bg-black p-2.5", className),
|
|
17752
|
-
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "relative flex h-full flex-col overflow-hidden rounded-[38px]",
|
|
17740
|
+
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "relative flex h-full flex-col overflow-hidden rounded-[38px]", _chunkXI2CHCODcjs.DEVICE_WALLPAPER_CLASS), children: [
|
|
17753
17741
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17754
17742
|
"div",
|
|
17755
17743
|
{
|
|
@@ -17941,7 +17929,7 @@ var TRIAL_TERM_ICONS = {
|
|
|
17941
17929
|
};
|
|
17942
17930
|
var DEFAULT_TRIAL_TERMS = ["cancel", "length", "noContract"];
|
|
17943
17931
|
function trialBenefits(trialDays, terms = DEFAULT_TRIAL_TERMS) {
|
|
17944
|
-
const labels =
|
|
17932
|
+
const labels = _chunkUBPSA3RMcjs.trialLabels.call(void 0, trialDays);
|
|
17945
17933
|
return terms.flatMap((term) => {
|
|
17946
17934
|
const label = labels[term];
|
|
17947
17935
|
return label ? [{ icon: TRIAL_TERM_ICONS[term], label }] : [];
|
|
@@ -18038,7 +18026,7 @@ function AnalyzingState({ label, className }) {
|
|
|
18038
18026
|
}) }),
|
|
18039
18027
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1.5 text-center text-ods-text-secondary text-h4", children: [
|
|
18040
18028
|
label,
|
|
18041
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18029
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ChatTypingIndicator, { "aria-hidden": true, size: "sm", dotClassName: "bg-ods-text-secondary motion-reduce:animate-none" })
|
|
18042
18030
|
] })
|
|
18043
18031
|
] });
|
|
18044
18032
|
}
|
|
@@ -18052,7 +18040,7 @@ var INCIDENT_TONE = {
|
|
|
18052
18040
|
approved: "success"
|
|
18053
18041
|
};
|
|
18054
18042
|
function IncidentStatusLine({ status, label, className }) {
|
|
18055
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18043
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.StatusLine, { tone: INCIDENT_TONE[status], label, className });
|
|
18056
18044
|
}
|
|
18057
18045
|
var FEED_CLASS = "flex min-h-0 flex-1 flex-col gap-3 overflow-hidden p-4 md:px-5";
|
|
18058
18046
|
var FEED_BOTTOM_CLASS = "justify-end [mask-image:linear-gradient(180deg,transparent_0,#000_48px)]";
|
|
@@ -18069,13 +18057,7 @@ function ItemMeta({ item }) {
|
|
|
18069
18057
|
item.time && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary text-h6", children: item.time })
|
|
18070
18058
|
] });
|
|
18071
18059
|
}
|
|
18072
|
-
function IncidentFeed({
|
|
18073
|
-
items,
|
|
18074
|
-
statusLabels,
|
|
18075
|
-
emptyLabel,
|
|
18076
|
-
anchor = "top",
|
|
18077
|
-
className
|
|
18078
|
-
}) {
|
|
18060
|
+
function IncidentFeed({ items, statusLabels, emptyLabel, anchor = "top", className }) {
|
|
18079
18061
|
const lastIndex = items.length - 1;
|
|
18080
18062
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, FEED_CLASS, anchor === "bottom" && FEED_BOTTOM_CLASS, className), children: [
|
|
18081
18063
|
items.length === 0 && emptyLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AnalyzingState, { label: emptyLabel, className: "m-auto" }),
|
|
@@ -18367,7 +18349,7 @@ function SuperUserBannerView({ tenantName, environmentLabel, className }) {
|
|
|
18367
18349
|
endAdornment: (
|
|
18368
18350
|
// Below `md` the chip would take the width the tenant name needs, and
|
|
18369
18351
|
// the name is the point of the strip: the chip waits for `md`.
|
|
18370
|
-
environmentLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18352
|
+
environmentLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { variant: "critical", label: environmentLabel, className: "uppercase max-md:hidden" }) : void 0
|
|
18371
18353
|
)
|
|
18372
18354
|
}
|
|
18373
18355
|
);
|
|
@@ -18846,7 +18828,7 @@ function SsoProviderButtons({
|
|
|
18846
18828
|
// where a long organization name would otherwise push the label out of a phone-width
|
|
18847
18829
|
// button. `block` over its inline-flex, because an ellipsis only renders on a block box.
|
|
18848
18830
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18849
|
-
|
|
18831
|
+
_chunk4EJU462Ocjs.StatusBadge,
|
|
18850
18832
|
{
|
|
18851
18833
|
text: tag,
|
|
18852
18834
|
variant: "button",
|
|
@@ -18905,7 +18887,7 @@ function CompleteAccountForm({
|
|
|
18905
18887
|
),
|
|
18906
18888
|
children: [
|
|
18907
18889
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
18908
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
18890
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunk4EJU462Ocjs.accentSentenceMarks.call(void 0, title) }),
|
|
18909
18891
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
18910
18892
|
] }),
|
|
18911
18893
|
ssoProviders && ssoProviders.length > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -19053,7 +19035,7 @@ function CreateOrganizationForm({
|
|
|
19053
19035
|
),
|
|
19054
19036
|
children: [
|
|
19055
19037
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
19056
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19038
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunk4EJU462Ocjs.accentSentenceMarks.call(void 0, title) }),
|
|
19057
19039
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19058
19040
|
] }),
|
|
19059
19041
|
email === void 0 ? null : emailReadOnly ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYXDHVHB2cjs.Input, { type: "email", label: emailReadOnlyLabel, value: email, readOnly: true, disabled: true }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19194,7 +19176,7 @@ function InviteLinkInvalidModal({
|
|
|
19194
19176
|
),
|
|
19195
19177
|
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: [
|
|
19196
19178
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-mf)]", children: [
|
|
19197
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "flex-1 tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19179
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "flex-1 tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunk4EJU462Ocjs.accentSentenceMarks.call(void 0, title) }),
|
|
19198
19180
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19199
19181
|
"button",
|
|
19200
19182
|
{
|
|
@@ -19275,7 +19257,7 @@ function LoginForm({
|
|
|
19275
19257
|
),
|
|
19276
19258
|
children: [
|
|
19277
19259
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
19278
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19260
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunk4EJU462Ocjs.accentSentenceMarks.call(void 0, title) }),
|
|
19279
19261
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19280
19262
|
] }),
|
|
19281
19263
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19401,7 +19383,7 @@ function NoAccountNotice({
|
|
|
19401
19383
|
),
|
|
19402
19384
|
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: [
|
|
19403
19385
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
19404
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19386
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunk4EJU462Ocjs.accentSentenceMarks.call(void 0, title) }),
|
|
19405
19387
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: description })
|
|
19406
19388
|
] }),
|
|
19407
19389
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { type: "button", variant: "outline", fullWidth: true, onClick: onBackToLogin, children: backLabel })
|
|
@@ -19450,7 +19432,7 @@ function OpenFrameSsoLoginForm({
|
|
|
19450
19432
|
),
|
|
19451
19433
|
children: [
|
|
19452
19434
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
19453
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19435
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunk4EJU462Ocjs.accentSentenceMarks.call(void 0, title) }),
|
|
19454
19436
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19455
19437
|
] }),
|
|
19456
19438
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19555,7 +19537,7 @@ function OpenFrameSsoSignUpForm({
|
|
|
19555
19537
|
),
|
|
19556
19538
|
children: [
|
|
19557
19539
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
19558
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19540
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunk4EJU462Ocjs.accentSentenceMarks.call(void 0, title) }),
|
|
19559
19541
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19560
19542
|
] }),
|
|
19561
19543
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19661,7 +19643,7 @@ function PasswordResetForm({
|
|
|
19661
19643
|
),
|
|
19662
19644
|
children: [
|
|
19663
19645
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
19664
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19646
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunk4EJU462Ocjs.accentSentenceMarks.call(void 0, title) }),
|
|
19665
19647
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19666
19648
|
] }),
|
|
19667
19649
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19778,12 +19760,12 @@ function SsoJoinForm({
|
|
|
19778
19760
|
),
|
|
19779
19761
|
children: [
|
|
19780
19762
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
19781
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19763
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunk4EJU462Ocjs.accentSentenceMarks.call(void 0, title) }),
|
|
19782
19764
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19783
19765
|
] }),
|
|
19784
19766
|
/* @__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: [
|
|
19785
19767
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19786
|
-
|
|
19768
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
19787
19769
|
{
|
|
19788
19770
|
size: "lg",
|
|
19789
19771
|
variant: "round",
|
|
@@ -19797,7 +19779,7 @@ function SsoJoinForm({
|
|
|
19797
19779
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h4", children: displayName }),
|
|
19798
19780
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: organizationName })
|
|
19799
19781
|
] }),
|
|
19800
|
-
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,
|
|
19782
|
+
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, _chunkHY6BCZH7cjs.Tag, { variant: "grey", label: role }, role)) })
|
|
19801
19783
|
] }),
|
|
19802
19784
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19803
19785
|
CheckboxBlock,
|
|
@@ -20040,7 +20022,7 @@ function ChangelogManager({
|
|
|
20040
20022
|
),
|
|
20041
20023
|
/* @__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)" }) }),
|
|
20042
20024
|
tagOptions && tagLabelOf(entry.tag) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20043
|
-
|
|
20025
|
+
_chunk4EJU462Ocjs.StatusBadge,
|
|
20044
20026
|
{
|
|
20045
20027
|
variant: "button",
|
|
20046
20028
|
singleLine: true,
|
|
@@ -20104,9 +20086,9 @@ function ChangelogManager({
|
|
|
20104
20086
|
] }),
|
|
20105
20087
|
tagOptions && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-1", children: [
|
|
20106
20088
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFL2RMEDXcjs.Label, { className: "text-ods-text-secondary", children: tagLabel }),
|
|
20107
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
20108
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20109
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20089
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkXI2CHCODcjs.Select, { value: _nullishCoalesce(entry.tag, () => ( "")), onValueChange: (value) => updateEntry(index, "tag", value), children: [
|
|
20090
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectTrigger, { className: "bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectValue, { placeholder: tagLabel }) }),
|
|
20091
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectContent, { children: tagOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
20110
20092
|
] })
|
|
20111
20093
|
] })
|
|
20112
20094
|
] })
|
|
@@ -20259,30 +20241,13 @@ function CommandBox({
|
|
|
20259
20241
|
children: command
|
|
20260
20242
|
}
|
|
20261
20243
|
);
|
|
20262
|
-
const commandText = fixedHeight ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, onCopy && "min-w-0 flex-1"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20263
|
-
FadePreview,
|
|
20264
|
-
{
|
|
20265
|
-
fixedHeight: true,
|
|
20266
|
-
collapsedHeight: fixedCommandHeight(visibleLines),
|
|
20267
|
-
labels: COMMAND_TOGGLE_LABELS,
|
|
20268
|
-
children: text
|
|
20269
|
-
}
|
|
20270
|
-
) }) : text;
|
|
20244
|
+
const commandText = fixedHeight ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, onCopy && "min-w-0 flex-1"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FadePreview, { fixedHeight: true, collapsedHeight: fixedCommandHeight(visibleLines), labels: COMMAND_TOGGLE_LABELS, children: text }) }) : text;
|
|
20271
20245
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, COMMAND_BOX_CLASS, className), children: [
|
|
20272
20246
|
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: COMMAND_BOX_TITLE_CLASS, children: title }),
|
|
20273
20247
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: COMMAND_BOX_FRAME_CLASS, children: [
|
|
20274
20248
|
onCopy ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: COMMAND_BOX_COPY_ROW_CLASS, children: [
|
|
20275
20249
|
commandText,
|
|
20276
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20277
|
-
"button",
|
|
20278
|
-
{
|
|
20279
|
-
type: "button",
|
|
20280
|
-
onClick: onCopy,
|
|
20281
|
-
"aria-label": copyAriaLabel,
|
|
20282
|
-
className: COMMAND_BOX_COPY_BUTTON_CLASS,
|
|
20283
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFYZGRMOLcjs.Copy02Icon, { className: "h-5 w-5" })
|
|
20284
|
-
}
|
|
20285
|
-
)
|
|
20250
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onCopy, "aria-label": copyAriaLabel, className: COMMAND_BOX_COPY_BUTTON_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFYZGRMOLcjs.Copy02Icon, { className: "h-5 w-5" }) })
|
|
20286
20251
|
] }) : commandText,
|
|
20287
20252
|
(primaryAction || secondaryAction) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: COMMAND_BOX_ACTIONS_CLASS, children: [
|
|
20288
20253
|
secondaryAction && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -20404,11 +20369,11 @@ function EntityTagBadgesSkeleton({
|
|
|
20404
20369
|
i >= count && "content-md:hidden"
|
|
20405
20370
|
),
|
|
20406
20371
|
"data-loading-item": true,
|
|
20407
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20372
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.StatusBadgeSkeleton, { variant: "card", className: _chunk65VVJSQZcjs.cn.call(void 0, "border", _nullishCoalesce(itemClassName, () => ( TAG_SKELETON_WIDTH_CLASS))) })
|
|
20408
20373
|
},
|
|
20409
20374
|
i
|
|
20410
20375
|
)),
|
|
20411
|
-
overflow && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TAG_ITEM_CLASS, "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20376
|
+
overflow && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TAG_ITEM_CLASS, "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.StatusBadgeSkeleton, { variant: "card", className: _chunk65VVJSQZcjs.cn.call(void 0, "border", OVERFLOW_BADGE_SKELETON_CLASS) }) })
|
|
20412
20377
|
] });
|
|
20413
20378
|
}
|
|
20414
20379
|
function EntityTagBadges({
|
|
@@ -20445,7 +20410,7 @@ function EntityTagBadges({
|
|
|
20445
20410
|
const label = (tag.name || "").toUpperCase();
|
|
20446
20411
|
if (basePath && tag.slug) {
|
|
20447
20412
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _link2.default, { href: `${basePath}?tags=${tag.slug}`, className: itemClass(index), "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20448
|
-
|
|
20413
|
+
_chunk4EJU462Ocjs.StatusBadge,
|
|
20449
20414
|
{
|
|
20450
20415
|
text: label,
|
|
20451
20416
|
variant: "card",
|
|
@@ -20453,7 +20418,7 @@ function EntityTagBadges({
|
|
|
20453
20418
|
}
|
|
20454
20419
|
) }, key);
|
|
20455
20420
|
}
|
|
20456
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: itemClass(index), "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20421
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: itemClass(index), "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.StatusBadge, { text: label, variant: "card", className: BADGE_CLASS }) }, key);
|
|
20457
20422
|
}),
|
|
20458
20423
|
phoneOverflow === overflow ? overflow > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OverflowBadge, { count: overflow }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
20459
20424
|
phoneOverflow > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OverflowBadge, { count: phoneOverflow, className: "content-md:hidden" }),
|
|
@@ -20462,7 +20427,7 @@ function EntityTagBadges({
|
|
|
20462
20427
|
] });
|
|
20463
20428
|
}
|
|
20464
20429
|
function OverflowBadge({ count, className }) {
|
|
20465
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk65VVJSQZcjs.cn.call(void 0, TAG_ITEM_CLASS, className), "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20430
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk65VVJSQZcjs.cn.call(void 0, TAG_ITEM_CLASS, className), "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.StatusBadge, { text: `+${count}`, variant: "card", className: _chunk65VVJSQZcjs.cn.call(void 0, BADGE_CLASS, "text-ods-text-secondary") }) });
|
|
20466
20431
|
}
|
|
20467
20432
|
|
|
20468
20433
|
// src/components/features/error-boundary.tsx
|
|
@@ -20557,7 +20522,7 @@ var SectionButton = ({
|
|
|
20557
20522
|
}
|
|
20558
20523
|
),
|
|
20559
20524
|
section.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20560
|
-
|
|
20525
|
+
_chunk4EJU462Ocjs.StatusBadge,
|
|
20561
20526
|
{
|
|
20562
20527
|
text: section.badge.text,
|
|
20563
20528
|
variant: section.badge.variant || "button",
|
|
@@ -20576,7 +20541,7 @@ var SectionButton = ({
|
|
|
20576
20541
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-wrap items-start gap-2", children: [
|
|
20577
20542
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk65VVJSQZcjs.cn.call(void 0, titleClasses, "text-h3"), style: { textAlign: "left" }, children: section.title }),
|
|
20578
20543
|
section.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20579
|
-
|
|
20544
|
+
_chunk4EJU462Ocjs.StatusBadge,
|
|
20580
20545
|
{
|
|
20581
20546
|
text: section.badge.text,
|
|
20582
20547
|
variant: section.badge.variant || "button",
|
|
@@ -21641,15 +21606,15 @@ function useLoading() {
|
|
|
21641
21606
|
|
|
21642
21607
|
|
|
21643
21608
|
function isAlreadyThere(file, existing) {
|
|
21644
|
-
const key =
|
|
21609
|
+
const key = _chunk4EJU462Ocjs.mediaNameKey.call(void 0, file.name);
|
|
21645
21610
|
if (!key) return false;
|
|
21646
21611
|
return existing.some(
|
|
21647
|
-
(item) => (item.title ?
|
|
21612
|
+
(item) => (item.title ? _chunk4EJU462Ocjs.mediaNameKey.call(void 0, item.title) === key : false) || (item.media_url ? _chunk4EJU462Ocjs.mediaNameKey.call(void 0, item.media_url) === key : false)
|
|
21648
21613
|
);
|
|
21649
21614
|
}
|
|
21650
21615
|
var isFileDrag = (event) => Array.from(event.dataTransfer.types).includes("Files");
|
|
21651
|
-
var isVideoItem = (item) =>
|
|
21652
|
-
var MEDIA_KIND_ACCEPT = { image:
|
|
21616
|
+
var isVideoItem = (item) => _chunk4EJU462Ocjs.isVideoMedia.call(void 0, item) || item.media_type === "demo";
|
|
21617
|
+
var MEDIA_KIND_ACCEPT = { image: _chunk4EJU462Ocjs.IMAGE_FILE_ACCEPT, video: "video/*", both: _chunk4EJU462Ocjs.MEDIA_FILE_ACCEPT };
|
|
21653
21618
|
var MEDIA_KIND_COPY = {
|
|
21654
21619
|
image: { noun: "pictures", refusal: "Not a picture" },
|
|
21655
21620
|
video: { noun: "videos", refusal: "Not a video" },
|
|
@@ -21673,12 +21638,12 @@ function useMediaIntake({ existing, onUpload, onUploaded, kinds = "both" }) {
|
|
|
21673
21638
|
const seen = /* @__PURE__ */ new Set();
|
|
21674
21639
|
const accepted = [];
|
|
21675
21640
|
for (const file of files) {
|
|
21676
|
-
const mediaType =
|
|
21641
|
+
const mediaType = _chunk4EJU462Ocjs.fileMediaType.call(void 0, file);
|
|
21677
21642
|
if (!mediaType || kinds !== "both" && mediaType !== kinds) {
|
|
21678
21643
|
unsupported.push(file.name);
|
|
21679
21644
|
continue;
|
|
21680
21645
|
}
|
|
21681
|
-
const contentKey = await
|
|
21646
|
+
const contentKey = await _chunk4EJU462Ocjs.fileContentKey.call(void 0, file).catch(() => `${file.name}:${file.size}`);
|
|
21682
21647
|
if (seen.has(contentKey) || isAlreadyThere(file, existingRef.current)) {
|
|
21683
21648
|
duplicates.push(file.name);
|
|
21684
21649
|
continue;
|
|
@@ -21859,7 +21824,7 @@ function MediaGalleryManager({
|
|
|
21859
21824
|
className: _chunk65VVJSQZcjs.cn.call(void 0, "grid grid-cols-1 gap-4 content-md:grid-cols-2", columns === 3 && "content-lg:grid-cols-3"),
|
|
21860
21825
|
children: [
|
|
21861
21826
|
media.map((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21862
|
-
|
|
21827
|
+
_chunk4EJU462Ocjs.Card,
|
|
21863
21828
|
{
|
|
21864
21829
|
className: "group relative border-ods-border transition-colors hover:border-ods-accent/30",
|
|
21865
21830
|
draggable: true,
|
|
@@ -21884,7 +21849,7 @@ function MediaGalleryManager({
|
|
|
21884
21849
|
) }),
|
|
21885
21850
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative aspect-video overflow-hidden rounded-lg bg-ods-bg", children: isVideoItem(item) ? (
|
|
21886
21851
|
// <Video> SSOT (MuxPlayer): plays Mux HLS and MP4 alike; fit="cover" crops to the cell.
|
|
21887
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21852
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.Video, { kind: "file", url: item.media_url, fit: "cover", className: "h-full w-full" })
|
|
21888
21853
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21889
21854
|
_chunkE76ONBKFcjs.next_image_default,
|
|
21890
21855
|
{
|
|
@@ -21899,17 +21864,17 @@ function MediaGalleryManager({
|
|
|
21899
21864
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
21900
21865
|
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" }),
|
|
21901
21866
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21902
|
-
|
|
21867
|
+
_chunkXI2CHCODcjs.Select,
|
|
21903
21868
|
{
|
|
21904
21869
|
value: item.media_type,
|
|
21905
21870
|
onValueChange: (value) => update(index, { media_type: value }),
|
|
21906
21871
|
children: [
|
|
21907
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21908
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21909
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21910
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21911
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21912
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21872
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectTrigger, { className: "h-8 bg-ods-bg text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectValue, {}) }),
|
|
21873
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkXI2CHCODcjs.SelectContent, { className: "bg-ods-card", children: [
|
|
21874
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: "image", children: "Image" }),
|
|
21875
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: "video", children: "Video" }),
|
|
21876
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: "screenshot", children: "Screenshot" }),
|
|
21877
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: "demo", children: "Demo" })
|
|
21913
21878
|
] })
|
|
21914
21879
|
]
|
|
21915
21880
|
}
|
|
@@ -21936,7 +21901,7 @@ function MediaGalleryManager({
|
|
|
21936
21901
|
},
|
|
21937
21902
|
_nullishCoalesce(item.id, () => ( `${item.media_url}-${index}`))
|
|
21938
21903
|
)),
|
|
21939
|
-
pending.map((name, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21904
|
+
pending.map((name, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4EJU462Ocjs.Card, { className: "border-ods-border", "aria-busy": "true", children: [
|
|
21940
21905
|
/* @__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" }) }),
|
|
21941
21906
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate p-3 text-ods-text-secondary text-h6", children: name })
|
|
21942
21907
|
] }, `pending-${name}-${index}`))
|
|
@@ -22290,7 +22255,7 @@ var MODEL_TOKEN_RATES_COPY = {
|
|
|
22290
22255
|
empty: "No token rates are in effect right now."
|
|
22291
22256
|
};
|
|
22292
22257
|
function providerMark(providerType, stated, className) {
|
|
22293
|
-
const Mark = _chunk5P4TDV7Vcjs.findIcon.call(void 0,
|
|
22258
|
+
const Mark = _chunk5P4TDV7Vcjs.findIcon.call(void 0, _chunkUBPSA3RMcjs.aiProvider.call(void 0, providerType, { icon: stated }).icon);
|
|
22294
22259
|
return Mark ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Mark, { className }) : void 0;
|
|
22295
22260
|
}
|
|
22296
22261
|
var PAD_X = "px-[var(--spacing-system-s)]";
|
|
@@ -22308,7 +22273,7 @@ var UNIT_LINE_CLASS = _chunk65VVJSQZcjs.cn.call(void 0,
|
|
|
22308
22273
|
var TABS_ROW_CLASS = _chunk65VVJSQZcjs.cn.call(void 0, "shrink-0 border-b border-ods-border py-[var(--spacing-system-xs)]", PAD_X);
|
|
22309
22274
|
var NUMBER_CELL = "w-16 shrink-0 whitespace-nowrap text-right tabular-nums";
|
|
22310
22275
|
function useProviderGroup(rates) {
|
|
22311
|
-
const groups =
|
|
22276
|
+
const groups = _chunkUBPSA3RMcjs.groupTokenRatesByProvider.call(void 0, rates);
|
|
22312
22277
|
const [picked, setPicked] = _react.useState.call(void 0, null);
|
|
22313
22278
|
return { groups, group: _nullishCoalesce(groups.find((candidate) => candidate.providerType === picked), () => ( groups[0])), setPicked };
|
|
22314
22279
|
}
|
|
@@ -22319,7 +22284,7 @@ function ProviderTabs({
|
|
|
22319
22284
|
className
|
|
22320
22285
|
}) {
|
|
22321
22286
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22322
|
-
|
|
22287
|
+
_chunkZXFOMNI5cjs.TabSelector,
|
|
22323
22288
|
{
|
|
22324
22289
|
variant: "secondary",
|
|
22325
22290
|
scrollable: true,
|
|
@@ -22327,7 +22292,7 @@ function ProviderTabs({
|
|
|
22327
22292
|
onValueChange,
|
|
22328
22293
|
items: groups.map((candidate) => ({
|
|
22329
22294
|
id: candidate.providerType,
|
|
22330
|
-
label:
|
|
22295
|
+
label: _chunkUBPSA3RMcjs.tokenRateProviderLabel.call(void 0, candidate.providerType, _optionalChain([candidate, 'access', _447 => _447.rates, 'access', _448 => _448[0], 'optionalAccess', _449 => _449.providerLabel])),
|
|
22331
22296
|
icon: providerMark(candidate.providerType, _optionalChain([candidate, 'access', _450 => _450.rates, 'access', _451 => _451[0], 'optionalAccess', _452 => _452.providerIcon]), "size-full")
|
|
22332
22297
|
})),
|
|
22333
22298
|
className
|
|
@@ -22405,8 +22370,8 @@ function ModelTokenRatesTable({ rates }) {
|
|
|
22405
22370
|
] }),
|
|
22406
22371
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { role: "rowgroup", className: "min-h-0 flex-1 overflow-y-auto", children: group.rates.map((rate) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { role: "row", className: BODY_ROW_CLASS, children: [
|
|
22407
22372
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "rowheader", className: "min-w-0 flex-1 truncate", children: rate.displayName || rate.modelName }),
|
|
22408
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children:
|
|
22409
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children:
|
|
22373
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunkUBPSA3RMcjs.formatTokenRate.call(void 0, rate.inputTokenRate) }),
|
|
22374
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunkUBPSA3RMcjs.formatTokenRate.call(void 0, rate.outputTokenRate) })
|
|
22410
22375
|
] }, rate.modelName)) })
|
|
22411
22376
|
] }),
|
|
22412
22377
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: UNIT_LINE_CLASS, children: MODEL_TOKEN_RATES_COPY.unit })
|
|
@@ -22456,7 +22421,7 @@ function modelOption(rate) {
|
|
|
22456
22421
|
return {
|
|
22457
22422
|
label: rate.displayName || rate.modelName,
|
|
22458
22423
|
value: rate.modelName,
|
|
22459
|
-
description:
|
|
22424
|
+
description: _chunkUBPSA3RMcjs.tokenRateProviderLabel.call(void 0, rate.providerType, rate.providerLabel),
|
|
22460
22425
|
icon: providerMark(rate.providerType, rate.providerIcon, "size-full text-ods-text-secondary")
|
|
22461
22426
|
};
|
|
22462
22427
|
}
|
|
@@ -22510,9 +22475,9 @@ function ModelTokenExchange({
|
|
|
22510
22475
|
const [chosen, setChosen] = _react.useState.call(void 0, null);
|
|
22511
22476
|
const balance = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(chosen, () => ( defaultAmount)), () => ( _optionalChain([tokenPrice, 'optionalAccess', _453 => _453.tokens]))), () => ( MODEL_TOKEN_EXCHANGE_BALANCE));
|
|
22512
22477
|
const max = Math.max(amountRange.max, balance, ...presets.map((preset) => preset.tokens));
|
|
22513
|
-
const tokens =
|
|
22514
|
-
const cost =
|
|
22515
|
-
const balancePrice = cost === null ? null :
|
|
22478
|
+
const tokens = _chunkUBPSA3RMcjs.formatTokenAmount.call(void 0, balance);
|
|
22479
|
+
const cost = _chunkUBPSA3RMcjs.tokenCost.call(void 0, balance, tokenPrice);
|
|
22480
|
+
const balancePrice = cost === null ? null : _chunkHY6BCZH7cjs.formatPrice.call(void 0, cost);
|
|
22516
22481
|
const model = rate ? rate.displayName || rate.modelName : "";
|
|
22517
22482
|
const options = models.map(modelOption);
|
|
22518
22483
|
if (rate && !models.some((candidate) => candidate.modelName === rate.modelName)) options.unshift(modelOption(rate));
|
|
@@ -22553,7 +22518,7 @@ function ModelTokenExchange({
|
|
|
22553
22518
|
variant: preset.tokens === balance ? "accent" : "outline",
|
|
22554
22519
|
size: "small",
|
|
22555
22520
|
onClick: () => setChosen(preset.tokens),
|
|
22556
|
-
children: copy.buy.preset(
|
|
22521
|
+
children: copy.buy.preset(_chunkUBPSA3RMcjs.formatTokenAmount.call(void 0, preset.tokens), preset.label)
|
|
22557
22522
|
},
|
|
22558
22523
|
preset.label
|
|
22559
22524
|
)) })
|
|
@@ -22570,7 +22535,7 @@ function ModelTokenExchange({
|
|
|
22570
22535
|
const stated = _nullishCoalesce(models.find((option) => option.providerType === providerType), () => ( (_optionalChain([rate, 'optionalAccess', _454 => _454.providerType]) === providerType ? rate : null)));
|
|
22571
22536
|
return {
|
|
22572
22537
|
id: providerType,
|
|
22573
|
-
name:
|
|
22538
|
+
name: _chunkUBPSA3RMcjs.tokenRateProviderLabel.call(void 0, providerType, _optionalChain([stated, 'optionalAccess', _455 => _455.providerLabel])),
|
|
22574
22539
|
icon: providerMark(providerType, _optionalChain([stated, 'optionalAccess', _456 => _456.providerIcon]), "size-8 text-ods-text-secondary")
|
|
22575
22540
|
};
|
|
22576
22541
|
}),
|
|
@@ -22582,7 +22547,7 @@ function ModelTokenExchange({
|
|
|
22582
22547
|
}
|
|
22583
22548
|
),
|
|
22584
22549
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22585
|
-
|
|
22550
|
+
_chunkXI2CHCODcjs.Autocomplete,
|
|
22586
22551
|
{
|
|
22587
22552
|
fieldLoading: loading,
|
|
22588
22553
|
label: copy.use.model,
|
|
@@ -22609,7 +22574,7 @@ function ModelTokenExchange({
|
|
|
22609
22574
|
{
|
|
22610
22575
|
size: "plain",
|
|
22611
22576
|
loading,
|
|
22612
|
-
figure:
|
|
22577
|
+
figure: _chunkUBPSA3RMcjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _461 => _461.inputTokenRate])),
|
|
22613
22578
|
words: copy.charge.input
|
|
22614
22579
|
}
|
|
22615
22580
|
),
|
|
@@ -22618,7 +22583,7 @@ function ModelTokenExchange({
|
|
|
22618
22583
|
{
|
|
22619
22584
|
size: "plain",
|
|
22620
22585
|
loading,
|
|
22621
|
-
figure:
|
|
22586
|
+
figure: _chunkUBPSA3RMcjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _462 => _462.outputTokenRate])),
|
|
22622
22587
|
words: copy.charge.output
|
|
22623
22588
|
}
|
|
22624
22589
|
)
|
|
@@ -22630,9 +22595,9 @@ function ModelTokenExchange({
|
|
|
22630
22595
|
className: "mt-auto flex flex-col rounded-md border border-ods-accent bg-ods-bg p-[var(--spacing-system-mf)]",
|
|
22631
22596
|
children: [
|
|
22632
22597
|
/* @__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, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-full max-w-xs" }) : copy.charge.so(_nullishCoalesce(balancePrice, () => ( copy.buy.tokens(tokens))), model) }),
|
|
22633
|
-
/* @__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, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-40" }) :
|
|
22598
|
+
/* @__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, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-40" }) : _chunkUBPSA3RMcjs.formatTokenAmount.call(void 0, _chunkUBPSA3RMcjs.tokensForBalance.call(void 0, balance, rate.inputTokenRate)) }),
|
|
22634
22599
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-primary text-h3", children: copy.charge.read }),
|
|
22635
|
-
/* @__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, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-48" }) : copy.charge.orWritten(
|
|
22600
|
+
/* @__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, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-48" }) : copy.charge.orWritten(_chunkUBPSA3RMcjs.formatTokenAmount.call(void 0, _chunkUBPSA3RMcjs.tokensForBalance.call(void 0, balance, rate.outputTokenRate))) })
|
|
22636
22601
|
]
|
|
22637
22602
|
}
|
|
22638
22603
|
)
|
|
@@ -23144,7 +23109,7 @@ var SelectButton = _react2.default.forwardRef(
|
|
|
23144
23109
|
}
|
|
23145
23110
|
)
|
|
23146
23111
|
] }),
|
|
23147
|
-
tag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23112
|
+
tag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { variant: tagVariant, className: "shrink-0", label: tag }),
|
|
23148
23113
|
selected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHFNBMV5Mcjs.CheckCircleIcon, { className: "size-4 shrink-0 text-ods-accent content-md:size-6" })
|
|
23149
23114
|
]
|
|
23150
23115
|
}
|
|
@@ -23171,14 +23136,14 @@ var ConfidenceBadge = ({
|
|
|
23171
23136
|
size = "sm",
|
|
23172
23137
|
className
|
|
23173
23138
|
}) => {
|
|
23174
|
-
const level =
|
|
23139
|
+
const level = _chunkUBPSA3RMcjs.getConfidenceLevel.call(void 0, confidence);
|
|
23175
23140
|
if (level === "none") {
|
|
23176
23141
|
return null;
|
|
23177
23142
|
}
|
|
23178
|
-
const label =
|
|
23179
|
-
const borderClass =
|
|
23180
|
-
const textClass =
|
|
23181
|
-
const bgClass =
|
|
23143
|
+
const label = _chunkUBPSA3RMcjs.getConfidenceLabel.call(void 0, confidence);
|
|
23144
|
+
const borderClass = _chunkUBPSA3RMcjs.getConfidenceBorderClass.call(void 0, confidence);
|
|
23145
|
+
const textClass = _chunkUBPSA3RMcjs.getConfidenceTextClass.call(void 0, confidence);
|
|
23146
|
+
const bgClass = _chunkUBPSA3RMcjs.getConfidenceBgClass.call(void 0, confidence);
|
|
23182
23147
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23183
23148
|
"span",
|
|
23184
23149
|
{
|
|
@@ -23229,9 +23194,9 @@ function SEOEditorPreview({
|
|
|
23229
23194
|
const [isUploading, setIsUploading] = _react.useState.call(void 0, false);
|
|
23230
23195
|
const [fileInputRef, setFileInputRef] = _react.useState.call(void 0, null);
|
|
23231
23196
|
const seoTitleLength = (seoTitle || "").length;
|
|
23232
|
-
const seoTitleTooLong = seoTitleLength >
|
|
23197
|
+
const seoTitleTooLong = seoTitleLength > _chunkUBPSA3RMcjs.SEO_TITLE_MAX_LENGTH;
|
|
23233
23198
|
const seoDescriptionLength = (seoDescription || "").length;
|
|
23234
|
-
const seoDescriptionTooLong = seoDescriptionLength >
|
|
23199
|
+
const seoDescriptionTooLong = seoDescriptionLength > _chunkUBPSA3RMcjs.SEO_DESCRIPTION_MAX_LENGTH;
|
|
23235
23200
|
const displayTitle = seoTitle.trim() || title || "Untitled";
|
|
23236
23201
|
const displayDescription = seoDescription.trim() || summary || "No description";
|
|
23237
23202
|
const hasOgImage = ogImageUrl.trim();
|
|
@@ -23256,10 +23221,10 @@ function SEOEditorPreview({
|
|
|
23256
23221
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
23257
23222
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
23258
23223
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23259
|
-
|
|
23224
|
+
_chunkUBPSA3RMcjs.Field,
|
|
23260
23225
|
{
|
|
23261
23226
|
label: "SEO Title",
|
|
23262
|
-
error: seoTitleTooLong ? `Too long: search engines may truncate this title (keep it under ${
|
|
23227
|
+
error: seoTitleTooLong ? `Too long: search engines may truncate this title (keep it under ${_chunkUBPSA3RMcjs.SEO_TITLE_MAX_LENGTH})` : null,
|
|
23263
23228
|
labelExtras: aiConfidenceSeoTitle !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
23264
23229
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
|
|
23265
23230
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ConfidenceBadge, { confidence: aiConfidenceSeoTitle, showLabel: true, showPercentage: true, size: "sm" })
|
|
@@ -23274,7 +23239,7 @@ function SEOEditorPreview({
|
|
|
23274
23239
|
children: [
|
|
23275
23240
|
seoTitleLength,
|
|
23276
23241
|
"/",
|
|
23277
|
-
|
|
23242
|
+
_chunkUBPSA3RMcjs.SEO_TITLE_MAX_LENGTH
|
|
23278
23243
|
]
|
|
23279
23244
|
}
|
|
23280
23245
|
),
|
|
@@ -23285,7 +23250,7 @@ function SEOEditorPreview({
|
|
|
23285
23250
|
value: seoTitle || "",
|
|
23286
23251
|
onChange: (e) => onSeoTitleChange(e.target.value),
|
|
23287
23252
|
disabled,
|
|
23288
|
-
maxLength:
|
|
23253
|
+
maxLength: _chunkUBPSA3RMcjs.SEO_TITLE_MAX_LENGTH,
|
|
23289
23254
|
invalid: seoTitleTooLong,
|
|
23290
23255
|
placeholder: "Enter SEO meta title...",
|
|
23291
23256
|
className: "border-ods-border bg-ods-bg text-ods-text-primary"
|
|
@@ -23296,7 +23261,7 @@ function SEOEditorPreview({
|
|
|
23296
23261
|
!seoTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-accent text-h6", children: "Auto-populated from title" })
|
|
23297
23262
|
] }),
|
|
23298
23263
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23299
|
-
|
|
23264
|
+
_chunkUBPSA3RMcjs.Field,
|
|
23300
23265
|
{
|
|
23301
23266
|
label: "SEO Keywords",
|
|
23302
23267
|
labelExtras: aiConfidenceSeoKeywords !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -23328,10 +23293,10 @@ function SEOEditorPreview({
|
|
|
23328
23293
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
23329
23294
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
23330
23295
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23331
|
-
|
|
23296
|
+
_chunkUBPSA3RMcjs.Field,
|
|
23332
23297
|
{
|
|
23333
23298
|
label: "SEO Description",
|
|
23334
|
-
error: seoDescriptionTooLong ? `Too long: search engines may truncate this description (keep it under ${
|
|
23299
|
+
error: seoDescriptionTooLong ? `Too long: search engines may truncate this description (keep it under ${_chunkUBPSA3RMcjs.SEO_DESCRIPTION_MAX_LENGTH})` : null,
|
|
23335
23300
|
labelExtras: aiConfidenceSeoDescription !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
23336
23301
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
|
|
23337
23302
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -23354,7 +23319,7 @@ function SEOEditorPreview({
|
|
|
23354
23319
|
children: [
|
|
23355
23320
|
seoDescriptionLength,
|
|
23356
23321
|
"/",
|
|
23357
|
-
|
|
23322
|
+
_chunkUBPSA3RMcjs.SEO_DESCRIPTION_MAX_LENGTH
|
|
23358
23323
|
]
|
|
23359
23324
|
}
|
|
23360
23325
|
),
|
|
@@ -23365,7 +23330,7 @@ function SEOEditorPreview({
|
|
|
23365
23330
|
value: seoDescription || "",
|
|
23366
23331
|
onChange: (e) => onSeoDescriptionChange(e.target.value),
|
|
23367
23332
|
disabled,
|
|
23368
|
-
maxLength:
|
|
23333
|
+
maxLength: _chunkUBPSA3RMcjs.SEO_DESCRIPTION_MAX_LENGTH,
|
|
23369
23334
|
invalid: seoDescriptionTooLong,
|
|
23370
23335
|
placeholder: "Enter SEO meta description...",
|
|
23371
23336
|
className: _chunk65VVJSQZcjs.cn.call(void 0, "resize-none border-ods-border bg-ods-bg text-ods-text-primary", SEO_MEDIA_BOX_HEIGHT)
|
|
@@ -23434,7 +23399,7 @@ function SEOEditorPreview({
|
|
|
23434
23399
|
{
|
|
23435
23400
|
ref: setFileInputRef,
|
|
23436
23401
|
type: "file",
|
|
23437
|
-
accept:
|
|
23402
|
+
accept: _chunk4EJU462Ocjs.IMAGE_FILE_ACCEPT,
|
|
23438
23403
|
onChange: handleImageUpload,
|
|
23439
23404
|
className: "hidden",
|
|
23440
23405
|
disabled: disabled || isUploading
|
|
@@ -23518,7 +23483,7 @@ function socialIcon(platform) {
|
|
|
23518
23483
|
return _nullishCoalesce(_chunk5P4TDV7Vcjs.iconOf.call(void 0, SOCIAL_ICONS[platform]), () => ( void 0));
|
|
23519
23484
|
}
|
|
23520
23485
|
function renderSocialIcon(platform) {
|
|
23521
|
-
const key = _nullishCoalesce(
|
|
23486
|
+
const key = _nullishCoalesce(_chunkUBPSA3RMcjs.normalizeSocialPlatform.call(void 0, platform), () => ( "website"));
|
|
23522
23487
|
const icon = _nullishCoalesce(socialIcon(key), () => ( socialIcon("website")));
|
|
23523
23488
|
return icon ? _react.createElement.call(void 0, icon, { className: "h-5 w-5" }) : null;
|
|
23524
23489
|
}
|
|
@@ -23605,7 +23570,7 @@ function SocialLinksManager({
|
|
|
23605
23570
|
};
|
|
23606
23571
|
const getIcon = (link, platform) => {
|
|
23607
23572
|
const iconKey = _optionalChain([platform, 'optionalAccess', _472 => _472.icon_name]) || link.platform;
|
|
23608
|
-
const key =
|
|
23573
|
+
const key = _chunkUBPSA3RMcjs.normalizeSocialPlatform.call(void 0, iconKey);
|
|
23609
23574
|
if (!key) return null;
|
|
23610
23575
|
const icon = socialIcon(key);
|
|
23611
23576
|
return icon ? _react.createElement.call(void 0, icon, { className: "h-5 w-5 text-ods-text-secondary" }) : null;
|
|
@@ -23621,9 +23586,9 @@ function SocialLinksManager({
|
|
|
23621
23586
|
children: [
|
|
23622
23587
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-8 w-8 items-center justify-center", children: Icon }),
|
|
23623
23588
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid flex-1 grid-cols-2 gap-3", children: [
|
|
23624
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23625
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23626
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23589
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkXI2CHCODcjs.Select, { value: link.platform, onValueChange: (value) => updateLink(index, "platform", value), children: [
|
|
23590
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectValue, {}) }),
|
|
23591
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectContent, { children: platforms.map((p) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: p.name, children: p.display_name }, p.name)) })
|
|
23627
23592
|
] }) }),
|
|
23628
23593
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23629
23594
|
_chunkYXDHVHB2cjs.Input,
|
|
@@ -23641,15 +23606,15 @@ function SocialLinksManager({
|
|
|
23641
23606
|
)
|
|
23642
23607
|
] }),
|
|
23643
23608
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23644
|
-
|
|
23609
|
+
_chunkXI2CHCODcjs.Select,
|
|
23645
23610
|
{
|
|
23646
23611
|
value: _nullishCoalesce(link.visibility, () => ( "external")),
|
|
23647
23612
|
onValueChange: (value) => updateLink(index, "visibility", value),
|
|
23648
23613
|
children: [
|
|
23649
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23650
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23651
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23652
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23614
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectTrigger, { className: "w-[120px] shrink-0", "aria-label": "Social link visibility", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectValue, {}) }),
|
|
23615
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkXI2CHCODcjs.SelectContent, { children: [
|
|
23616
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: "external", children: "Public" }),
|
|
23617
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: "internal", children: "Internal" })
|
|
23653
23618
|
] })
|
|
23654
23619
|
]
|
|
23655
23620
|
}
|
|
@@ -23741,7 +23706,7 @@ var StartWithOpenFrameButton = _react.forwardRef.call(void 0,
|
|
|
23741
23706
|
className: _chunk65VVJSQZcjs.cn.call(void 0, modeClassName, className),
|
|
23742
23707
|
style: customStyle,
|
|
23743
23708
|
leftIcon: !loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHJZLKYOBcjs.OpenframeLogoIcon, { secondaryColor: iconLowerPath, className: "h-5 w-5", color: iconUpperPath }) : void 0,
|
|
23744
|
-
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23709
|
+
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.StatusBadge, { text: "Beta", variant: "button", colorScheme: "yellow" }),
|
|
23745
23710
|
children
|
|
23746
23711
|
}
|
|
23747
23712
|
);
|
|
@@ -24068,17 +24033,18 @@ function WarningBlock({ title, icon = DEFAULT_ICON, children, className }) {
|
|
|
24068
24033
|
|
|
24069
24034
|
function VideoBitesDisplay({
|
|
24070
24035
|
bites,
|
|
24071
|
-
title =
|
|
24036
|
+
title = _chunk4EJU462Ocjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
24072
24037
|
filterPublished = true,
|
|
24073
24038
|
showTitle = true
|
|
24074
24039
|
}) {
|
|
24075
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24040
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZXFOMNI5cjs.VideoBitesStrip, { bites, title, filterPublished, showTitle });
|
|
24076
24041
|
}
|
|
24077
24042
|
|
|
24078
24043
|
// src/components/features/walkthrough-video.tsx
|
|
24079
24044
|
|
|
24080
24045
|
|
|
24081
24046
|
|
|
24047
|
+
var CARD_POSTER_WIDTH_PX = 640;
|
|
24082
24048
|
var INLINE_CARD_BOX_CLASS = `${_chunkXFRBEXQNcjs.MEDIA_ASPECT.video} w-full rounded-md border border-ods-border`;
|
|
24083
24049
|
var FIRST_INTERACTION_EVENTS = ["scroll", "pointerdown", "keydown"];
|
|
24084
24050
|
var isAtEnd = (duration, time) => duration > 0 && duration - time < 1;
|
|
@@ -24101,7 +24067,7 @@ function WalkthroughVideo({
|
|
|
24101
24067
|
onOpenChange,
|
|
24102
24068
|
defaultOpen,
|
|
24103
24069
|
defaultOpenPaused,
|
|
24104
|
-
deepLinkParam =
|
|
24070
|
+
deepLinkParam = _chunkUBPSA3RMcjs.WALKTHROUGH_OPEN_QUERY_PARAM,
|
|
24105
24071
|
autoPlayCard = false,
|
|
24106
24072
|
label = "Play Demo Video",
|
|
24107
24073
|
placement,
|
|
@@ -24118,7 +24084,7 @@ function WalkthroughVideo({
|
|
|
24118
24084
|
const inline = placement === "inline";
|
|
24119
24085
|
const inScope = _chunkXFRBEXQNcjs.useLoadingScope.call(void 0, );
|
|
24120
24086
|
const dismissEnabled = dismissal !== false;
|
|
24121
|
-
const storageKey = dismissEnabled && dismissal.storageKey ||
|
|
24087
|
+
const storageKey = dismissEnabled && dismissal.storageKey || _chunkUBPSA3RMcjs.WALKTHROUGH_VIDEO_DISMISS_KEY;
|
|
24122
24088
|
const dismissalId = _optionalChain([video, 'optionalAccess', _478 => _478.id]) != null ? String(video.id) : "dismissed";
|
|
24123
24089
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
24124
24090
|
const [dismissed, setDismissed] = _react.useState.call(void 0, false);
|
|
@@ -24130,7 +24096,7 @@ function WalkthroughVideo({
|
|
|
24130
24096
|
let delayElapsed = false;
|
|
24131
24097
|
let interacted = inline;
|
|
24132
24098
|
const reveal = () => {
|
|
24133
|
-
if (dismissEnabled &&
|
|
24099
|
+
if (dismissEnabled && _chunkUBPSA3RMcjs.isWalkthroughDismissed.call(void 0, storageKey, dismissalId)) {
|
|
24134
24100
|
setDismissed(true);
|
|
24135
24101
|
return;
|
|
24136
24102
|
}
|
|
@@ -24167,7 +24133,7 @@ function WalkthroughVideo({
|
|
|
24167
24133
|
if (idleHandle !== null && typeof cic === "function") cic(idleHandle);
|
|
24168
24134
|
};
|
|
24169
24135
|
}, [appearDelayMs, dismissEnabled, storageKey, dismissalId, hasVideo, videoId, inline]);
|
|
24170
|
-
const hydrated =
|
|
24136
|
+
const hydrated = _chunkZXFOMNI5cjs.useIsHydrated.call(void 0, );
|
|
24171
24137
|
const previewSuppressed = _react.useMemo.call(void 0, () => {
|
|
24172
24138
|
if (!hydrated) return false;
|
|
24173
24139
|
try {
|
|
@@ -24417,7 +24383,7 @@ function WalkthroughVideo({
|
|
|
24417
24383
|
(e) => {
|
|
24418
24384
|
e.stopPropagation();
|
|
24419
24385
|
pausePreviewNow();
|
|
24420
|
-
if (dismissEnabled)
|
|
24386
|
+
if (dismissEnabled) _chunkUBPSA3RMcjs.dismissWalkthrough.call(void 0, storageKey, dismissalId);
|
|
24421
24387
|
setDismissed(true);
|
|
24422
24388
|
},
|
|
24423
24389
|
[dismissEnabled, storageKey, dismissalId, pausePreviewNow]
|
|
@@ -24568,10 +24534,10 @@ function WalkthroughVideo({
|
|
|
24568
24534
|
},
|
|
24569
24535
|
children: [
|
|
24570
24536
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pointer-events-none absolute inset-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24571
|
-
|
|
24537
|
+
_chunk4EJU462Ocjs.VideoHoverPreviewSurface,
|
|
24572
24538
|
{
|
|
24573
24539
|
url: video.mainVideoUrl || "",
|
|
24574
|
-
posterUrl: video.posterUrl,
|
|
24540
|
+
posterUrl: video.posterUrl ? _chunkE76ONBKFcjs.resizedImageUrl.call(void 0, video.posterUrl, CARD_POSTER_WIDTH_PX) : video.posterUrl,
|
|
24575
24541
|
active: cardActive,
|
|
24576
24542
|
isClone: false,
|
|
24577
24543
|
badge: "play",
|
|
@@ -24592,7 +24558,7 @@ function WalkthroughVideo({
|
|
|
24592
24558
|
`card-${embedUrlKey}`
|
|
24593
24559
|
) }),
|
|
24594
24560
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24595
|
-
|
|
24561
|
+
_chunkZXFOMNI5cjs.CardHitLayer,
|
|
24596
24562
|
{
|
|
24597
24563
|
label: video.title ? `${label}: ${video.title}` : label,
|
|
24598
24564
|
onPointerDown: pausePreviewNow,
|
|
@@ -24601,7 +24567,7 @@ function WalkthroughVideo({
|
|
|
24601
24567
|
}
|
|
24602
24568
|
),
|
|
24603
24569
|
/* @__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: [
|
|
24604
|
-
presenterAvatarSrc ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24570
|
+
presenterAvatarSrc ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.SquareAvatar, { src: presenterAvatarSrc, alt: "", sizePx: 20, variant: "round", className: "shrink-0 border-0" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSETFUCZAcjs.VideoPlayBadge, { size: "sm", className: "h-5 w-5 shrink-0" }),
|
|
24605
24571
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: summaryTitle || label })
|
|
24606
24572
|
] }),
|
|
24607
24573
|
showBigUnmute && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -24708,7 +24674,7 @@ function WalkthroughVideo({
|
|
|
24708
24674
|
children: [
|
|
24709
24675
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogPrimitive2.Title, { className: "sr-only", children: summaryTitle || "Walkthrough video" }),
|
|
24710
24676
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24711
|
-
|
|
24677
|
+
_chunk4EJU462Ocjs.Video,
|
|
24712
24678
|
{
|
|
24713
24679
|
kind: video.youtubeUrl ? "youtube" : "file",
|
|
24714
24680
|
url: video.youtubeUrl || video.mainVideoUrl,
|
|
@@ -24764,7 +24730,7 @@ function useWalkthroughVideo(opts) {
|
|
|
24764
24730
|
const { endpoint, initialData, enabled: enabledGiven = true, transformCaptionsUrl } = opts;
|
|
24765
24731
|
const inScope = _chunkXFRBEXQNcjs.useLoadingScope.call(void 0, );
|
|
24766
24732
|
const enabled = enabledGiven && !inScope;
|
|
24767
|
-
const captions =
|
|
24733
|
+
const captions = _chunkZXFOMNI5cjs.useCaptions.call(void 0, );
|
|
24768
24734
|
const query = _reactquery.useQuery.call(void 0, {
|
|
24769
24735
|
queryKey: ["walkthrough-video", endpoint],
|
|
24770
24736
|
enabled,
|
|
@@ -24962,7 +24928,7 @@ function VideoSourceSelector({
|
|
|
24962
24928
|
}
|
|
24963
24929
|
function DefaultVideoPreview({ videoUrl, onDelete, disabled }) {
|
|
24964
24930
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative overflow-hidden rounded-lg border border-ods-border", children: [
|
|
24965
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video max-h-[300px] w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24931
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video max-h-[300px] w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.Video, { kind: "file", url: videoUrl }) }),
|
|
24966
24932
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24967
24933
|
"button",
|
|
24968
24934
|
{
|
|
@@ -25416,19 +25382,19 @@ function HighlightVideoSection({
|
|
|
25416
25382
|
/* @__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: [
|
|
25417
25383
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFL2RMEDXcjs.Label, { children: "Target Duration" }),
|
|
25418
25384
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25419
|
-
|
|
25385
|
+
_chunkXI2CHCODcjs.Select,
|
|
25420
25386
|
{
|
|
25421
25387
|
value: targetDurationSeconds.toString(),
|
|
25422
25388
|
onValueChange: (value) => onTargetDurationChange(parseInt(value)),
|
|
25423
25389
|
disabled,
|
|
25424
25390
|
children: [
|
|
25425
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25426
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25427
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25428
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25429
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25430
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25431
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25391
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectTrigger, { className: "mt-1 bg-ods-bg-surface", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectValue, {}) }),
|
|
25392
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkXI2CHCODcjs.SelectContent, { className: "bg-ods-card", children: [
|
|
25393
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: "60", children: "1 minute" }),
|
|
25394
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: "120", children: "2 minutes" }),
|
|
25395
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: "180", children: "3 minutes (Recommended)" }),
|
|
25396
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: "240", children: "4 minutes" }),
|
|
25397
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: "300", children: "5 minutes" })
|
|
25432
25398
|
] })
|
|
25433
25399
|
]
|
|
25434
25400
|
}
|
|
@@ -25486,7 +25452,7 @@ function HighlightVideoSection({
|
|
|
25486
25452
|
// Default simple preview — the <Video> SSOT (MuxPlayer) plays
|
|
25487
25453
|
// MP4 and Mux HLS alike; aspect-video box reserves the height.
|
|
25488
25454
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative overflow-hidden rounded-lg border border-ods-border bg-black", children: [
|
|
25489
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video max-h-[300px] w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25455
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video max-h-[300px] w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.Video, { kind: "file", url: highlightVideoUrl, poster: highlightVideoThumbnail || void 0 }) }),
|
|
25490
25456
|
onDeleteHighlight && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25491
25457
|
"button",
|
|
25492
25458
|
{
|
|
@@ -25513,20 +25479,20 @@ function HighlightConfigSection({
|
|
|
25513
25479
|
disabled = false,
|
|
25514
25480
|
className = ""
|
|
25515
25481
|
}) {
|
|
25516
|
-
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,
|
|
25517
|
-
|
|
25482
|
+
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, _chunkUBPSA3RMcjs.Field, { label: "Target Duration", children: (f) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25483
|
+
_chunkXI2CHCODcjs.Select,
|
|
25518
25484
|
{
|
|
25519
25485
|
value: targetDurationSeconds.toString(),
|
|
25520
25486
|
onValueChange: (value) => onTargetDurationChange(parseInt(value)),
|
|
25521
25487
|
disabled,
|
|
25522
25488
|
children: [
|
|
25523
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25524
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25525
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25526
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25527
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25528
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25529
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25489
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectTrigger, { id: f.id, className: "bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectValue, {}) }),
|
|
25490
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkXI2CHCODcjs.SelectContent, { className: "bg-ods-card", children: [
|
|
25491
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: "60", children: "1 minute" }),
|
|
25492
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: "120", children: "2 minutes" }),
|
|
25493
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: "180", children: "3 minutes (Recommended)" }),
|
|
25494
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: "240", children: "4 minutes" }),
|
|
25495
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: "300", children: "5 minutes" })
|
|
25530
25496
|
] })
|
|
25531
25497
|
]
|
|
25532
25498
|
}
|
|
@@ -25614,7 +25580,7 @@ var AIStatusIndicator = ({
|
|
|
25614
25580
|
}) => {
|
|
25615
25581
|
const config = statusConfig[status];
|
|
25616
25582
|
const displayText = message || config.label;
|
|
25617
|
-
const confidenceLabel = showConfidence && confidence !== void 0 ? `${
|
|
25583
|
+
const confidenceLabel = showConfidence && confidence !== void 0 ? `${_chunkUBPSA3RMcjs.getConfidenceLabel.call(void 0, confidence)} (${confidence}%)` : null;
|
|
25618
25584
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "inline-flex items-center gap-2 rounded-lg px-3 py-1.5", config.bgColor, className), children: [
|
|
25619
25585
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25620
25586
|
_chunkUNFCRSYIcjs.SparklesIcon,
|
|
@@ -25622,7 +25588,7 @@ var AIStatusIndicator = ({
|
|
|
25622
25588
|
size: 16,
|
|
25623
25589
|
className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
25624
25590
|
status === "loading" && _chunkXFRBEXQNcjs.LIVE_PULSE_CLASS,
|
|
25625
|
-
confidence !== void 0 && status === "success" ?
|
|
25591
|
+
confidence !== void 0 && status === "success" ? _chunkUBPSA3RMcjs.getConfidenceTextClass.call(void 0, confidence) : config.color
|
|
25626
25592
|
)
|
|
25627
25593
|
}
|
|
25628
25594
|
),
|
|
@@ -25631,7 +25597,7 @@ var AIStatusIndicator = ({
|
|
|
25631
25597
|
{
|
|
25632
25598
|
className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
25633
25599
|
"text-h6",
|
|
25634
|
-
confidence !== void 0 && status === "success" ?
|
|
25600
|
+
confidence !== void 0 && status === "success" ? _chunkUBPSA3RMcjs.getConfidenceTextClass.call(void 0, confidence) : config.color
|
|
25635
25601
|
),
|
|
25636
25602
|
children: displayText
|
|
25637
25603
|
}
|
|
@@ -25641,8 +25607,8 @@ var AIStatusIndicator = ({
|
|
|
25641
25607
|
{
|
|
25642
25608
|
className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
25643
25609
|
"rounded-full border px-2 py-0.5 text-h6",
|
|
25644
|
-
|
|
25645
|
-
|
|
25610
|
+
_chunkUBPSA3RMcjs.getConfidenceBorderClass.call(void 0, confidence),
|
|
25611
|
+
_chunkUBPSA3RMcjs.getConfidenceTextClass.call(void 0, confidence)
|
|
25646
25612
|
),
|
|
25647
25613
|
children: confidenceLabel
|
|
25648
25614
|
}
|
|
@@ -26218,7 +26184,7 @@ function ApprovalLevelView({
|
|
|
26218
26184
|
] });
|
|
26219
26185
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk65VVJSQZcjs.cn.call(void 0, READ_ONLY_ROW_CLASS, className), children: [
|
|
26220
26186
|
name,
|
|
26221
|
-
showLabel ? icon : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26187
|
+
showLabel ? icon : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJT2KRE2cjs.TouchFriendlyTooltip, { content: `${current.label}: ${current.hint}`, side: "top", children: icon })
|
|
26222
26188
|
] });
|
|
26223
26189
|
}
|
|
26224
26190
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, EDITABLE_ROW_CLASS, className), children: [
|
|
@@ -26341,7 +26307,7 @@ var PolicyRow = ({ policy, categoryId, editMode, onPermissionChange }) => {
|
|
|
26341
26307
|
] });
|
|
26342
26308
|
};
|
|
26343
26309
|
var CategorySection = ({ category, editMode, isExpanded, bulkLevel, onToggle, onBulkLevelChange, onPolicyPermissionChange }) => {
|
|
26344
|
-
const { innerRef, containerStyle } =
|
|
26310
|
+
const { innerRef, containerStyle } = _chunkEHJE3UWZcjs.useCollapsible.call(void 0, { expanded: isExpanded, durationMs: 300 });
|
|
26345
26311
|
const handleBulkChange = (level) => onBulkLevelChange(category.id, level);
|
|
26346
26312
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
26347
26313
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -26514,8 +26480,8 @@ function PoliciesTable({
|
|
|
26514
26480
|
accessorKey: "name",
|
|
26515
26481
|
header: "Name",
|
|
26516
26482
|
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: [
|
|
26517
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26518
|
-
row.original.description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26483
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { children: row.original.name }),
|
|
26484
|
+
row.original.description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { variant: "h6", tone: "secondary", children: row.original.description })
|
|
26519
26485
|
] }),
|
|
26520
26486
|
meta: { width: "flex-1 min-w-0" }
|
|
26521
26487
|
},
|
|
@@ -26547,7 +26513,7 @@ function PoliciesTable({
|
|
|
26547
26513
|
cell: ({ row }) => {
|
|
26548
26514
|
const { status } = row.original;
|
|
26549
26515
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-start gap-1", children: [
|
|
26550
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26516
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { className: "self-start", label: status.label, variant: status.variant }),
|
|
26551
26517
|
status.note && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `text-h6 ${NOTE_TONE_CLASS[status.note.tone]}`, children: status.note.text })
|
|
26552
26518
|
] });
|
|
26553
26519
|
},
|
|
@@ -26569,7 +26535,7 @@ function PoliciesTable({
|
|
|
26569
26535
|
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,
|
|
26570
26536
|
_chunkTF5D5MNOcjs.Button,
|
|
26571
26537
|
{
|
|
26572
|
-
onClick:
|
|
26538
|
+
onClick: _chunkUBPSA3RMcjs.openInNewTab.call(void 0, row.original.href),
|
|
26573
26539
|
variant: "outline",
|
|
26574
26540
|
size: "icon",
|
|
26575
26541
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
@@ -26670,7 +26636,7 @@ function PolicySummaryCards({ summary, isLoading = false, hasData = true, now })
|
|
|
26670
26636
|
DashboardInfoCard,
|
|
26671
26637
|
{
|
|
26672
26638
|
title: "Updated",
|
|
26673
|
-
value: hasData && summary.lastUpdatedAt ?
|
|
26639
|
+
value: hasData && summary.lastUpdatedAt ? _chunkEHJE3UWZcjs.formatRelativeTimeFrom.call(void 0, summary.lastUpdatedAt, _nullishCoalesce(now, () => ( /* @__PURE__ */ new Date()))) : EMPTY_VALUE,
|
|
26674
26640
|
valueClassName: "!text-h3",
|
|
26675
26641
|
tooltip: "Policy compliance stats are updated hourly. View a policy's devices for real-time status."
|
|
26676
26642
|
}
|
|
@@ -26786,7 +26752,7 @@ function toValidInstant(iso) {
|
|
|
26786
26752
|
function formatLastRead(iso, now = /* @__PURE__ */ new Date()) {
|
|
26787
26753
|
const date = toValidInstant(iso);
|
|
26788
26754
|
if (!date) return TENANT_EMPTY_VALUE;
|
|
26789
|
-
return now.getTime() - date.getTime() < DAY_MS ?
|
|
26755
|
+
return now.getTime() - date.getTime() < DAY_MS ? _chunkEHJE3UWZcjs.formatRelativeTimeFrom.call(void 0, date, now) : _chunk5QP3K2CEcjs.formatDate.call(void 0, date);
|
|
26790
26756
|
}
|
|
26791
26757
|
function usersCountLabel(count) {
|
|
26792
26758
|
if (count == null) return TENANT_EMPTY_VALUE;
|
|
@@ -26797,8 +26763,8 @@ function usersCountLabel(count) {
|
|
|
26797
26763
|
|
|
26798
26764
|
function TenantAccessCell({ accessState, lastReadAt: lastReadAt2, now }) {
|
|
26799
26765
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26800
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26801
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26766
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { ...accessStateTag(accessState), className: "self-start" }),
|
|
26767
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { variant: "h6", tone: "secondary", children: `Last read: ${formatLastRead(lastReadAt2, now)}` })
|
|
26802
26768
|
] });
|
|
26803
26769
|
}
|
|
26804
26770
|
|
|
@@ -26809,9 +26775,9 @@ function TenantCell({ provider, name, domain }) {
|
|
|
26809
26775
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
26810
26776
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26811
26777
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Logo, { size: 24, role: "img", "aria-label": label, className: "shrink-0" }),
|
|
26812
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26778
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { children: name })
|
|
26813
26779
|
] }),
|
|
26814
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26780
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(domain, () => ( TENANT_EMPTY_VALUE)) })
|
|
26815
26781
|
] });
|
|
26816
26782
|
}
|
|
26817
26783
|
|
|
@@ -26820,10 +26786,10 @@ function TenantCell({ provider, name, domain }) {
|
|
|
26820
26786
|
function TenantCustomerCell({ name, imageUrl, userCount }) {
|
|
26821
26787
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
26822
26788
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26823
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26824
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26789
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.SquareAvatar, { src: _nullishCoalesce(imageUrl, () => ( void 0)), alt: name, fallback: name, size: "xs", variant: "square" }),
|
|
26790
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { children: name })
|
|
26825
26791
|
] }),
|
|
26826
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26792
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { variant: "h6", tone: "secondary", children: usersCountLabel(userCount) })
|
|
26827
26793
|
] });
|
|
26828
26794
|
}
|
|
26829
26795
|
|
|
@@ -26895,7 +26861,7 @@ function TenantsTableView({
|
|
|
26895
26861
|
/* @__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,
|
|
26896
26862
|
_chunkTF5D5MNOcjs.Button,
|
|
26897
26863
|
{
|
|
26898
|
-
onClick:
|
|
26864
|
+
onClick: _chunkUBPSA3RMcjs.openInNewTab.call(void 0, getHref(row.original)),
|
|
26899
26865
|
variant: "outline",
|
|
26900
26866
|
size: "icon",
|
|
26901
26867
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
@@ -26976,7 +26942,7 @@ function WaitlistForm({
|
|
|
26976
26942
|
const { toast } = _chunkXVFM6SJAcjs.useToast.call(void 0, );
|
|
26977
26943
|
const { honeypotInputProps, getSignals, resetSignals } = _chunkXVFM6SJAcjs.useHumanitySignals.call(void 0, );
|
|
26978
26944
|
const [smsConsent, setSmsConsent] = _react.useState.call(void 0, false);
|
|
26979
|
-
const isClient =
|
|
26945
|
+
const isClient = _chunkZXFOMNI5cjs.useIsHydrated.call(void 0, );
|
|
26980
26946
|
const [isPhoneInvalid, setIsPhoneInvalid] = _react.useState.call(void 0, false);
|
|
26981
26947
|
const [showConsentError, setShowConsentError] = _react.useState.call(void 0, false);
|
|
26982
26948
|
const rescue = _chunkXVFM6SJAcjs.useFormRescue.call(void 0, {
|
|
@@ -26991,7 +26957,7 @@ function WaitlistForm({
|
|
|
26991
26957
|
_react.useEffect.call(void 0, () => {
|
|
26992
26958
|
rescue.track({ email, phone }, null);
|
|
26993
26959
|
}, [email, phone, rescue]);
|
|
26994
|
-
const isMailDomainGeneric =
|
|
26960
|
+
const isMailDomainGeneric = _chunkUBPSA3RMcjs.hasGenericEmailDomain.call(void 0, email);
|
|
26995
26961
|
const [syncedDefaultEmail, setSyncedDefaultEmail] = _react.useState.call(void 0, defaultEmail);
|
|
26996
26962
|
if (syncedDefaultEmail !== defaultEmail) {
|
|
26997
26963
|
setSyncedDefaultEmail(defaultEmail);
|
|
@@ -27025,7 +26991,7 @@ function WaitlistForm({
|
|
|
27025
26991
|
setShowConsentError(true);
|
|
27026
26992
|
return;
|
|
27027
26993
|
}
|
|
27028
|
-
const finalPhone = phone ?
|
|
26994
|
+
const finalPhone = phone ? _chunkUBPSA3RMcjs.formatPhoneE164.call(void 0, phone, countryCode) : void 0;
|
|
27029
26995
|
try {
|
|
27030
26996
|
await onRegister(email, finalPhone, getSignals(), rescue.submitFields());
|
|
27031
26997
|
rescue.complete();
|
|
@@ -27837,7 +27803,7 @@ function NotificationTile({
|
|
|
27837
27803
|
{
|
|
27838
27804
|
dateTime: createdAtIso,
|
|
27839
27805
|
className: _chunk65VVJSQZcjs.cn.call(void 0, "shrink-0 whitespace-nowrap text-ods-text-secondary text-h6", lockscreen && "self-start"),
|
|
27840
|
-
children: _nullishCoalesce(timeLabel, () => (
|
|
27806
|
+
children: _nullishCoalesce(timeLabel, () => ( _chunkEHJE3UWZcjs.formatTicketRelativeTime.call(void 0, createdAtIso)))
|
|
27841
27807
|
}
|
|
27842
27808
|
) : null,
|
|
27843
27809
|
!lockscreen && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TILE_CONTROL_BOX_CLASS, children: [
|
|
@@ -28334,13 +28300,13 @@ function getApprovalMeta(notification) {
|
|
|
28334
28300
|
function resolutionToStatus(resolution) {
|
|
28335
28301
|
switch (typeof resolution === "string" ? resolution.toUpperCase() : void 0) {
|
|
28336
28302
|
case "APPROVED":
|
|
28337
|
-
return
|
|
28303
|
+
return _chunk5QP3K2CEcjs.APPROVAL_STATUS.APPROVED;
|
|
28338
28304
|
case "REJECTED":
|
|
28339
|
-
return
|
|
28305
|
+
return _chunk5QP3K2CEcjs.APPROVAL_STATUS.REJECTED;
|
|
28340
28306
|
case "CANCELLED":
|
|
28341
|
-
return
|
|
28307
|
+
return _chunk5QP3K2CEcjs.APPROVAL_STATUS.CANCELLED;
|
|
28342
28308
|
default:
|
|
28343
|
-
return
|
|
28309
|
+
return _chunk5QP3K2CEcjs.APPROVAL_STATUS.PENDING;
|
|
28344
28310
|
}
|
|
28345
28311
|
}
|
|
28346
28312
|
function approvalMetaToBatchData(approval) {
|
|
@@ -28385,7 +28351,7 @@ function ApprovalRequestNotificationTile({
|
|
|
28385
28351
|
const resolvedStatus = resolutionToStatus(_optionalChain([approval, 'optionalAccess', _583 => _583.resolution]));
|
|
28386
28352
|
const status = resolvedStatus !== "pending" ? resolvedStatus : _nullishCoalesce(localStatus, () => ( "pending"));
|
|
28387
28353
|
const batchData = _react.useMemo.call(void 0, () => approval ? approvalMetaToBatchData(approval) : null, [approval]);
|
|
28388
|
-
const { innerRef, containerStyle } =
|
|
28354
|
+
const { innerRef, containerStyle } = _chunkEHJE3UWZcjs.useCollapsible.call(void 0, { expanded });
|
|
28389
28355
|
if (!approval || !batchData) return null;
|
|
28390
28356
|
const tileNotification = {
|
|
28391
28357
|
...notification,
|
|
@@ -28448,7 +28414,7 @@ function ApprovalRequestNotificationTile({
|
|
|
28448
28414
|
}
|
|
28449
28415
|
)
|
|
28450
28416
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
28451
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28417
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ApprovalStatusTag, { status }),
|
|
28452
28418
|
approval.resolvedByName ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: [
|
|
28453
28419
|
"by ",
|
|
28454
28420
|
approval.resolvedByName
|
|
@@ -28466,12 +28432,12 @@ function ApprovalRequestNotificationTile({
|
|
|
28466
28432
|
"aria-expanded": expanded,
|
|
28467
28433
|
"aria-label": toggleLabel,
|
|
28468
28434
|
className: APPROVAL_TOGGLE_BUTTON_CLASS,
|
|
28469
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28435
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ExpandChevron, { expanded })
|
|
28470
28436
|
}
|
|
28471
28437
|
)
|
|
28472
28438
|
] }),
|
|
28473
28439
|
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,
|
|
28474
|
-
|
|
28440
|
+
_chunkEHJE3UWZcjs.ApprovalBatchMessage,
|
|
28475
28441
|
{
|
|
28476
28442
|
data: batchData,
|
|
28477
28443
|
showExecutionStatus: false,
|
|
@@ -28544,7 +28510,7 @@ function renderCustomerOption(option, isSelected) {
|
|
|
28544
28510
|
const { label, imageUrl } = option;
|
|
28545
28511
|
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: [
|
|
28546
28512
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
28547
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28513
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.SquareAvatar, { src: imageUrl, alt: label, fallback: label, size: "sm", variant: "square" }),
|
|
28548
28514
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", title: label, children: label })
|
|
28549
28515
|
] }),
|
|
28550
28516
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
@@ -28628,7 +28594,7 @@ function TimeTrackerPanel({
|
|
|
28628
28594
|
}));
|
|
28629
28595
|
const selectedCustomer = customerAutocompleteOptions.find((o) => o.value === selectedCustomerId);
|
|
28630
28596
|
const customerStartAdornment = selectedCustomer ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28631
|
-
|
|
28597
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
28632
28598
|
{
|
|
28633
28599
|
src: selectedCustomer.imageUrl,
|
|
28634
28600
|
alt: selectedCustomer.label,
|
|
@@ -28708,7 +28674,7 @@ function TimeTrackerPanel({
|
|
|
28708
28674
|
] }),
|
|
28709
28675
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "grid gap-[var(--spacing-system-m)]", showCustomer && "grid-cols-2"), children: [
|
|
28710
28676
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28711
|
-
|
|
28677
|
+
_chunkXI2CHCODcjs.Autocomplete,
|
|
28712
28678
|
{
|
|
28713
28679
|
value: selectedTicketId,
|
|
28714
28680
|
onChange: onSelectedTicketChange,
|
|
@@ -28724,7 +28690,7 @@ function TimeTrackerPanel({
|
|
|
28724
28690
|
}
|
|
28725
28691
|
),
|
|
28726
28692
|
showCustomer && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28727
|
-
|
|
28693
|
+
_chunkXI2CHCODcjs.Autocomplete,
|
|
28728
28694
|
{
|
|
28729
28695
|
value: _nullishCoalesce(selectedCustomerId, () => ( null)),
|
|
28730
28696
|
onChange: onSelectedCustomerChange,
|
|
@@ -28807,7 +28773,7 @@ var STATUS_TAG_SKIN = "gap-[var(--spacing-system-xs)] font-mono font-medium uppe
|
|
|
28807
28773
|
function StatusTag({ status }) {
|
|
28808
28774
|
if (status === "tracking") {
|
|
28809
28775
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28810
|
-
|
|
28776
|
+
_chunkHY6BCZH7cjs.Tag,
|
|
28811
28777
|
{
|
|
28812
28778
|
variant: "success",
|
|
28813
28779
|
className: STATUS_TAG_SKIN,
|
|
@@ -28817,9 +28783,9 @@ function StatusTag({ status }) {
|
|
|
28817
28783
|
);
|
|
28818
28784
|
}
|
|
28819
28785
|
if (status === "paused") {
|
|
28820
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28786
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { variant: "warning", className: STATUS_TAG_SKIN, icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4D25RXYZcjs.PauseIcon, { className: "h-4 w-4" }), label: "Paused" });
|
|
28821
28787
|
}
|
|
28822
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28788
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { variant: "grey", className: STATUS_TAG_SKIN, label: "Ready to Track" });
|
|
28823
28789
|
}
|
|
28824
28790
|
function LastEntryRow({ entry, onClick }) {
|
|
28825
28791
|
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: [
|
|
@@ -29015,7 +28981,7 @@ function TimeTrackerHeaderButton({ className, disabled }) {
|
|
|
29015
28981
|
|
|
29016
28982
|
// src/components/features/devices/device-last-online.ts
|
|
29017
28983
|
function formatLastOnline(lastSeen) {
|
|
29018
|
-
return `Last Online: ${lastSeen ?
|
|
28984
|
+
return `Last Online: ${lastSeen ? _chunkEHJE3UWZcjs.formatRelativeTime.call(void 0, lastSeen) : "\u2014"}`;
|
|
29019
28985
|
}
|
|
29020
28986
|
|
|
29021
28987
|
// src/components/features/devices/device-name.ts
|
|
@@ -29059,7 +29025,7 @@ var SELECTION_MODE_OPTIONS = [
|
|
|
29059
29025
|
label: "Select Devices by Criteria",
|
|
29060
29026
|
description: CRITERIA_MODE_DESCRIPTION,
|
|
29061
29027
|
disabled: true,
|
|
29062
|
-
trailing: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29028
|
+
trailing: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { label: "Coming Soon", variant: "grey" })
|
|
29063
29029
|
}
|
|
29064
29030
|
];
|
|
29065
29031
|
var SELECTION_MODE_OPTIONS_ENABLED = [
|
|
@@ -29164,7 +29130,7 @@ function getDeviceStatusConfig(status) {
|
|
|
29164
29130
|
}
|
|
29165
29131
|
}
|
|
29166
29132
|
function getDeviceOperatingSystem(osType) {
|
|
29167
|
-
return
|
|
29133
|
+
return _chunkUBPSA3RMcjs.getOSPlatformId.call(void 0, osType);
|
|
29168
29134
|
}
|
|
29169
29135
|
|
|
29170
29136
|
// src/components/features/devices/device-statuses.ts
|
|
@@ -29340,8 +29306,8 @@ function DevicesFilterToolbar({
|
|
|
29340
29306
|
|
|
29341
29307
|
|
|
29342
29308
|
function formatDateTime(input) {
|
|
29343
|
-
const date =
|
|
29344
|
-
return date === "\u2014" ? date : `${date} ${
|
|
29309
|
+
const date = _chunk5QP3K2CEcjs.formatDate.call(void 0, input);
|
|
29310
|
+
return date === "\u2014" ? date : `${date} ${_chunk5QP3K2CEcjs.formatTime.call(void 0, input)}`;
|
|
29345
29311
|
}
|
|
29346
29312
|
function uniqueById(options) {
|
|
29347
29313
|
const seen = /* @__PURE__ */ new Map();
|
|
@@ -29448,7 +29414,7 @@ function DevicesTableBody({
|
|
|
29448
29414
|
function OrganizationCell({ device }) {
|
|
29449
29415
|
const fullImageUrl = useDeviceImageUrl(device.organizationImageUrl, device.organizationImageHash);
|
|
29450
29416
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
29451
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29417
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.EntityImage, { src: fullImageUrl, alt: device.organization || "Customer", className: "size-12 content-md:size-12" }),
|
|
29452
29418
|
/* @__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 || "" }) })
|
|
29453
29419
|
] });
|
|
29454
29420
|
}
|
|
@@ -29492,7 +29458,7 @@ function getDeviceTableColumns(deviceFilters, filtersPending) {
|
|
|
29492
29458
|
const device = row.original;
|
|
29493
29459
|
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: [
|
|
29494
29460
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeviceTypeTile, { type: device.type }),
|
|
29495
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29461
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { children: getDeviceName(device) }) })
|
|
29496
29462
|
] });
|
|
29497
29463
|
},
|
|
29498
29464
|
meta: { width: "flex-1 content-md:w-1/4" }
|
|
@@ -29505,7 +29471,7 @@ function getDeviceTableColumns(deviceFilters, filtersPending) {
|
|
|
29505
29471
|
const device = row.original;
|
|
29506
29472
|
const statusConfig2 = getDeviceStatusConfig(device.status);
|
|
29507
29473
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col items-start gap-1", children: [
|
|
29508
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "inline-flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29474
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "inline-flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { label: statusConfig2.label, variant: statusConfig2.variant }) }),
|
|
29509
29475
|
/* @__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" })
|
|
29510
29476
|
] });
|
|
29511
29477
|
},
|
|
@@ -29663,7 +29629,7 @@ function CustomerCell({ device }) {
|
|
|
29663
29629
|
const fullImageUrl = useDeviceImageUrl(device.organizationImageUrl, device.organizationImageHash);
|
|
29664
29630
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
29665
29631
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29666
|
-
|
|
29632
|
+
_chunkXI2CHCODcjs.EntityImage,
|
|
29667
29633
|
{
|
|
29668
29634
|
src: fullImageUrl,
|
|
29669
29635
|
alt: device.organization || "Customer",
|
|
@@ -29671,8 +29637,8 @@ function CustomerCell({ device }) {
|
|
|
29671
29637
|
}
|
|
29672
29638
|
),
|
|
29673
29639
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
29674
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29675
|
-
device.organizationEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29640
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { children: device.organization || "" }),
|
|
29641
|
+
device.organizationEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { variant: "h6", tone: "secondary", children: device.organizationEmail })
|
|
29676
29642
|
] })
|
|
29677
29643
|
] });
|
|
29678
29644
|
}
|
|
@@ -29967,8 +29933,8 @@ function DeviceSelector({
|
|
|
29967
29933
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 items-center gap-3", children: [
|
|
29968
29934
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeviceTypeTile, { type: device.type }),
|
|
29969
29935
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col", children: [
|
|
29970
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29971
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29936
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { children: getDeviceName(device) }),
|
|
29937
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { variant: "h6", tone: "secondary", children: formatLastOnline(lastSeen) })
|
|
29972
29938
|
] })
|
|
29973
29939
|
] });
|
|
29974
29940
|
},
|
|
@@ -30003,7 +29969,7 @@ function DeviceSelector({
|
|
|
30003
29969
|
header: "STATUS",
|
|
30004
29970
|
cell: ({ row }) => {
|
|
30005
29971
|
const config = getDeviceStatusConfig(row.original.status);
|
|
30006
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29972
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { label: config.label, variant: config.variant, className: "w-min" });
|
|
30007
29973
|
},
|
|
30008
29974
|
enableSorting: false,
|
|
30009
29975
|
meta: {
|
|
@@ -30760,7 +30726,7 @@ function DevicesPanelView({
|
|
|
30760
30726
|
] })
|
|
30761
30727
|
] });
|
|
30762
30728
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30763
|
-
|
|
30729
|
+
_chunkXI2CHCODcjs.PageLayout,
|
|
30764
30730
|
{
|
|
30765
30731
|
title,
|
|
30766
30732
|
backButton,
|
|
@@ -30768,7 +30734,7 @@ function DevicesPanelView({
|
|
|
30768
30734
|
actionsVariant: "icon-buttons",
|
|
30769
30735
|
className,
|
|
30770
30736
|
selector: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30771
|
-
|
|
30737
|
+
_chunkZXFOMNI5cjs.TabSelector,
|
|
30772
30738
|
{
|
|
30773
30739
|
value: viewMode,
|
|
30774
30740
|
onValueChange: (value) => _optionalChain([onViewModeChange, 'optionalCall', _659 => _659(value)]),
|
|
@@ -30834,7 +30800,7 @@ var PACKAGE_SEARCH_LABEL = "Software Name";
|
|
|
30834
30800
|
var PACKAGE_SEARCH_PLACEHOLDER = "Search for Software";
|
|
30835
30801
|
function PackageSearchFieldPlaceholder({ error }) {
|
|
30836
30802
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30837
|
-
|
|
30803
|
+
_chunkXI2CHCODcjs.Autocomplete,
|
|
30838
30804
|
{
|
|
30839
30805
|
label: PACKAGE_SEARCH_LABEL,
|
|
30840
30806
|
labelVariant: "large",
|
|
@@ -30889,16 +30855,16 @@ function SoftwareScheduleFields({
|
|
|
30889
30855
|
] }),
|
|
30890
30856
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
30891
30857
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFL2RMEDXcjs.Label, { className: "text-h4", children: "Time" }),
|
|
30892
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30893
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30894
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30858
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkXI2CHCODcjs.Select, { value: time, onValueChange: onTimeChange, children: [
|
|
30859
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectValue, { placeholder: "Select time" }) }),
|
|
30860
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectContent, { children: timeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
30895
30861
|
] })
|
|
30896
30862
|
] }),
|
|
30897
30863
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
30898
30864
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFL2RMEDXcjs.Label, { className: "text-h4", children: "Timezone" }),
|
|
30899
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30900
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30901
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30865
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkXI2CHCODcjs.Select, { value: timeReference, onValueChange: (value) => onTimeReferenceChange(value), children: [
|
|
30866
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectValue, {}) }),
|
|
30867
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectContent, { children: timing.timeReferenceOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
30902
30868
|
] })
|
|
30903
30869
|
] })
|
|
30904
30870
|
]
|
|
@@ -30964,22 +30930,22 @@ function newSoftwareRow(key) {
|
|
|
30964
30930
|
|
|
30965
30931
|
function InfoCell2({ value, label }) {
|
|
30966
30932
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
30967
|
-
/* @__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,
|
|
30933
|
+
/* @__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, _chunkXI2CHCODcjs.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" }) }) }),
|
|
30968
30934
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: label })
|
|
30969
30935
|
] });
|
|
30970
30936
|
}
|
|
30971
30937
|
function SoftwareRowFields({ row, removable, onChange, onRemove, renderPackageSearch }) {
|
|
30972
30938
|
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: [
|
|
30973
30939
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30974
|
-
|
|
30940
|
+
_chunkXI2CHCODcjs.Select,
|
|
30975
30941
|
{
|
|
30976
30942
|
value: row.packageManager,
|
|
30977
30943
|
onValueChange: (value) => onChange({ ...row, packageManager: value, pkg: null }),
|
|
30978
30944
|
children: [
|
|
30979
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30980
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30945
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectTrigger, { label: "Package Manager", labelVariant: "large", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectValue, {}) }),
|
|
30946
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectContent, { children: PACKAGE_MANAGERS.map((manager) => {
|
|
30981
30947
|
const Icon = PACKAGE_MANAGER_ICON[manager];
|
|
30982
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30948
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: manager, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
30983
30949
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { size: 20, className: "shrink-0 text-ods-text-secondary" }),
|
|
30984
30950
|
PACKAGE_MANAGER_LABEL[manager]
|
|
30985
30951
|
] }) }, manager);
|
|
@@ -31077,7 +31043,7 @@ function SoftwareActionForm({
|
|
|
31077
31043
|
}
|
|
31078
31044
|
);
|
|
31079
31045
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
31080
|
-
|
|
31046
|
+
_chunkXI2CHCODcjs.PageLayout,
|
|
31081
31047
|
{
|
|
31082
31048
|
title: copy.formTitle,
|
|
31083
31049
|
backButton: onBack ? { label: "Back", onClick: onBack } : void 0,
|
|
@@ -31158,7 +31124,7 @@ function LogDrawer({
|
|
|
31158
31124
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, AppLayoutDrawerHeader, { children: [
|
|
31159
31125
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AppLayoutDrawerTitle, { children: "Log Details" }),
|
|
31160
31126
|
(statusTag || timestamp) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
31161
|
-
statusTag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31127
|
+
statusTag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { label: statusTag.label, variant: statusTag.variant }),
|
|
31162
31128
|
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h6", children: timestamp })
|
|
31163
31129
|
] })
|
|
31164
31130
|
] }),
|
|
@@ -31166,7 +31132,7 @@ function LogDrawer({
|
|
|
31166
31132
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-h-0 flex-1 space-y-4 overflow-y-auto", children: [
|
|
31167
31133
|
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 }) }),
|
|
31168
31134
|
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: [
|
|
31169
|
-
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,
|
|
31135
|
+
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, _chunkXI2CHCODcjs.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 }),
|
|
31170
31136
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: field.label })
|
|
31171
31137
|
] }, typeof field.label === "string" ? field.label : "")) }),
|
|
31172
31138
|
children
|
|
@@ -31214,7 +31180,7 @@ function LogsPageView({
|
|
|
31214
31180
|
],
|
|
31215
31181
|
[onRefresh]
|
|
31216
31182
|
);
|
|
31217
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
31183
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkXI2CHCODcjs.PageLayout, { title: "Logs", actions, showHeader, className, children: [
|
|
31218
31184
|
!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: [
|
|
31219
31185
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31220
31186
|
_chunkYXDHVHB2cjs.Input,
|
|
@@ -31302,11 +31268,11 @@ var ToolBadge = ({
|
|
|
31302
31268
|
iconClassName
|
|
31303
31269
|
}) => {
|
|
31304
31270
|
const loading = _chunkXFRBEXQNcjs.useLoadingScope.call(void 0, );
|
|
31305
|
-
const text = _nullishCoalesce(label, () => ( (toolType ?
|
|
31271
|
+
const text = _nullishCoalesce(label, () => ( (toolType ? _chunkUBPSA3RMcjs.getToolLabel.call(void 0, toolType) : "")));
|
|
31306
31272
|
const mark = _nullishCoalesce(icon, () => ( (toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk57B5RUYDcjs.ToolIcon, { toolType, className: iconClassName, size: 16 }) : null)));
|
|
31307
31273
|
if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ToolBadgeSkeleton, { variant, icon: !!mark, className });
|
|
31308
31274
|
const linked = (node, linkClassName) => href && targetPlatform ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31309
|
-
|
|
31275
|
+
_chunkZXFOMNI5cjs.NavLinkAnchorViaRuntime,
|
|
31310
31276
|
{
|
|
31311
31277
|
href,
|
|
31312
31278
|
targetPlatform,
|
|
@@ -31389,8 +31355,8 @@ function LogsTableView({
|
|
|
31389
31355
|
accessorKey: "logId",
|
|
31390
31356
|
header: logIdHeader ? () => logIdHeader : "Log ID",
|
|
31391
31357
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col justify-center", children: [
|
|
31392
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31393
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31358
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { children: row.original.timestamp }),
|
|
31359
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { variant: "h6", tone: "secondary", children: row.original.logId })
|
|
31394
31360
|
] }),
|
|
31395
31361
|
enableSorting: false,
|
|
31396
31362
|
meta: { width: LOG_COLUMN_WIDTHS.logId, alwaysShowHeader: true }
|
|
@@ -31398,7 +31364,7 @@ function LogsTableView({
|
|
|
31398
31364
|
{
|
|
31399
31365
|
accessorKey: "status",
|
|
31400
31366
|
header: "Status",
|
|
31401
|
-
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31367
|
+
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { label: row.original.status.label, variant: row.original.status.variant }) }),
|
|
31402
31368
|
enableSorting: false,
|
|
31403
31369
|
filterFn: multiSelect,
|
|
31404
31370
|
meta: {
|
|
@@ -31418,7 +31384,7 @@ function LogsTableView({
|
|
|
31418
31384
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31419
31385
|
ToolBadge,
|
|
31420
31386
|
{
|
|
31421
|
-
toolType:
|
|
31387
|
+
toolType: _chunkUBPSA3RMcjs.normalizeToolTypeWithFallback.call(void 0, row.original.source.toolType),
|
|
31422
31388
|
iconClassName: "h-4 w-4 content-md:h-6 content-md:w-6"
|
|
31423
31389
|
}
|
|
31424
31390
|
),
|
|
@@ -31430,7 +31396,7 @@ function LogsTableView({
|
|
|
31430
31396
|
filter: {
|
|
31431
31397
|
options: _nullishCoalesce(_optionalChain([facets, 'optionalAccess', _667 => _667.toolTypes, 'access', _668 => _668.map, 'call', _669 => _669((toolType) => ({
|
|
31432
31398
|
id: toolType,
|
|
31433
|
-
label:
|
|
31399
|
+
label: _chunkUBPSA3RMcjs.toToolLabel.call(void 0, toolType),
|
|
31434
31400
|
value: toolType
|
|
31435
31401
|
}))]), () => ( []))
|
|
31436
31402
|
}
|
|
@@ -31442,8 +31408,8 @@ function LogsTableView({
|
|
|
31442
31408
|
cell: ({ row }) => {
|
|
31443
31409
|
const { deviceName, organization } = logSourceLabels(row.original.device);
|
|
31444
31410
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-h-[60px] flex-col justify-center gap-1 py-2", children: [
|
|
31445
|
-
deviceName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31446
|
-
organization && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31411
|
+
deviceName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { children: deviceName }),
|
|
31412
|
+
organization && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { variant: "h6", tone: "secondary", children: organization })
|
|
31447
31413
|
] });
|
|
31448
31414
|
},
|
|
31449
31415
|
enableSorting: false,
|
|
@@ -31457,7 +31423,7 @@ function LogsTableView({
|
|
|
31457
31423
|
{
|
|
31458
31424
|
accessorKey: "description",
|
|
31459
31425
|
header: "Log Details",
|
|
31460
|
-
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31426
|
+
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { lines: 3, className: "text-ods-text-secondary text-h6", children: row.original.description.title }),
|
|
31461
31427
|
enableSorting: false,
|
|
31462
31428
|
meta: { width: LOG_COLUMN_WIDTHS.description, hideAt: "lg" }
|
|
31463
31429
|
},
|
|
@@ -31488,7 +31454,7 @@ function LogsTableView({
|
|
|
31488
31454
|
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,
|
|
31489
31455
|
_chunkTF5D5MNOcjs.Button,
|
|
31490
31456
|
{
|
|
31491
|
-
onClick: getLogHref ?
|
|
31457
|
+
onClick: getLogHref ? _chunkUBPSA3RMcjs.openInNewTab.call(void 0, getLogHref(row.original)) : void 0,
|
|
31492
31458
|
variant: "outline",
|
|
31493
31459
|
size: "icon",
|
|
31494
31460
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
@@ -31709,29 +31675,29 @@ function scriptExecutionStatus(status) {
|
|
|
31709
31675
|
|
|
31710
31676
|
function ExecutionSourceBadge({ source, className }) {
|
|
31711
31677
|
const tagProps = { as: "span", variant: "outline", className: _chunk65VVJSQZcjs.cn.call(void 0, "shrink-0", className) };
|
|
31712
|
-
if (source === "SCHEDULED") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31678
|
+
if (source === "SCHEDULED") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { ...tagProps, label: "Scheduled" });
|
|
31713
31679
|
if (source === "AI_ASSISTANT") {
|
|
31714
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31680
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { ...tagProps, label: "Mingo", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.AgentMark, { agent: "mingo", className: "size-4" }) });
|
|
31715
31681
|
}
|
|
31716
31682
|
return null;
|
|
31717
31683
|
}
|
|
31718
31684
|
function ExecutionTimestampCell({ timestamp, executionId }) {
|
|
31719
31685
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31720
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31721
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31686
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { children: timestamp }),
|
|
31687
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { variant: "h6", tone: "secondary", children: executionId })
|
|
31722
31688
|
] });
|
|
31723
31689
|
}
|
|
31724
31690
|
function ExecutionStatusCell({ status }) {
|
|
31725
31691
|
const presentation = scriptExecutionStatus(status);
|
|
31726
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31692
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { label: _nullishCoalesce(_optionalChain([presentation, 'optionalAccess', _682 => _682.label]), () => ( String(_nullishCoalesce(status, () => ( ""))))), variant: _nullishCoalesce(_optionalChain([presentation, 'optionalAccess', _683 => _683.variant]), () => ( "grey")) }) });
|
|
31727
31693
|
}
|
|
31728
31694
|
function ExecutionDeviceCell({ name, organization }) {
|
|
31729
31695
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31730
31696
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-1", children: [
|
|
31731
31697
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPTK7GOIIcjs.MonitorIcon, { className: "size-6 shrink-0 text-ods-text-secondary" }),
|
|
31732
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31698
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { children: name }) : name })
|
|
31733
31699
|
] }),
|
|
31734
|
-
organization && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31700
|
+
organization && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { variant: "h6", tone: "secondary", children: organization })
|
|
31735
31701
|
] });
|
|
31736
31702
|
}
|
|
31737
31703
|
function ExecutionInitiatorCell({
|
|
@@ -31744,15 +31710,15 @@ function ExecutionInitiatorCell({
|
|
|
31744
31710
|
avatar,
|
|
31745
31711
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
31746
31712
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
31747
|
-
typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31713
|
+
typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { children: name }) : name,
|
|
31748
31714
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExecutionSourceBadge, { source })
|
|
31749
31715
|
] }),
|
|
31750
|
-
scriptName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31716
|
+
scriptName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { variant: "h6", tone: "secondary", children: scriptName })
|
|
31751
31717
|
] })
|
|
31752
31718
|
] });
|
|
31753
31719
|
}
|
|
31754
31720
|
function ExecutionResultCell({ result, empty = null }) {
|
|
31755
|
-
return result ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31721
|
+
return result ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { lines: 2, children: result }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: empty });
|
|
31756
31722
|
}
|
|
31757
31723
|
function ScriptExecutionResult({
|
|
31758
31724
|
result,
|
|
@@ -31770,14 +31736,14 @@ function ScriptExecutionResult({
|
|
|
31770
31736
|
|
|
31771
31737
|
function ScriptNameCell({ name, description }) {
|
|
31772
31738
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31773
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31774
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31739
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { children: name }),
|
|
31740
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { variant: "h6", tone: "secondary", children: description })
|
|
31775
31741
|
] });
|
|
31776
31742
|
}
|
|
31777
31743
|
function ScheduleDateTimeCell({ date, time }) {
|
|
31778
31744
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31779
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31780
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31745
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { children: date }),
|
|
31746
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { variant: "h6", tone: "secondary", children: time })
|
|
31781
31747
|
] });
|
|
31782
31748
|
}
|
|
31783
31749
|
|
|
@@ -31863,7 +31829,7 @@ function OpenInNewTabCell({ href }) {
|
|
|
31863
31829
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31864
31830
|
_chunkTF5D5MNOcjs.Button,
|
|
31865
31831
|
{
|
|
31866
|
-
onClick:
|
|
31832
|
+
onClick: _chunkUBPSA3RMcjs.openInNewTab.call(void 0, href),
|
|
31867
31833
|
variant: "outline",
|
|
31868
31834
|
size: "icon",
|
|
31869
31835
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
@@ -31896,7 +31862,7 @@ function ScriptExecutionsTable({
|
|
|
31896
31862
|
ExecutionInitiatorCell,
|
|
31897
31863
|
{
|
|
31898
31864
|
avatar: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31899
|
-
|
|
31865
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
31900
31866
|
{
|
|
31901
31867
|
variant: "round",
|
|
31902
31868
|
size: "md",
|
|
@@ -31976,7 +31942,7 @@ function ScriptSchedulesTable({
|
|
|
31976
31942
|
cell(SCHEDULE_COLUMNS.supportedPlatforms, (row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OSTypeBadgeGroup, { osTypes: row.supportedPlatforms, iconSize: "w-4 h-4 content-md:w-6 content-md:h-6" })),
|
|
31977
31943
|
cell(
|
|
31978
31944
|
SCHEDULE_COLUMNS.dateTime,
|
|
31979
|
-
(row) => row.startsAt ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScheduleDateTimeCell, { date: row.startsAt.date, time: row.startsAt.time }) : row.trigger ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31945
|
+
(row) => row.startsAt ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScheduleDateTimeCell, { date: row.startsAt.date, time: row.startsAt.time }) : row.trigger ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { tone: "secondary", children: row.trigger }) : null
|
|
31980
31946
|
),
|
|
31981
31947
|
cell(SCHEDULE_COLUMNS.repeat, (row) => row.repeat ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: VALUE_CLASS, children: row.repeat }) : null),
|
|
31982
31948
|
cell(SCHEDULE_COLUMNS.deviceCount, (row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: VALUE_CLASS, children: row.deviceCount }))
|
|
@@ -32012,9 +31978,9 @@ function ScriptSchedulesTable({
|
|
|
32012
31978
|
|
|
32013
31979
|
// src/components/features/scripts/shell-types.ts
|
|
32014
31980
|
var SCRIPT_SHELL_TYPES = [
|
|
32015
|
-
{ id:
|
|
32016
|
-
{ id:
|
|
32017
|
-
{ id:
|
|
31981
|
+
{ id: _chunkUBPSA3RMcjs.ShellTypeValues.POWERSHELL, label: "PowerShell", value: "powershell", icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon },
|
|
31982
|
+
{ id: _chunkUBPSA3RMcjs.ShellTypeValues.CMD, label: "CMD", value: "cmd", icon: _chunkNIVJEJSGcjs.TerminalSquareIcon },
|
|
31983
|
+
{ id: _chunkUBPSA3RMcjs.ShellTypeValues.BASH, label: "Bash", value: "bash", icon: _chunkTRUW6DDAcjs.TerminalIcon }
|
|
32018
31984
|
];
|
|
32019
31985
|
function scriptShellType(value) {
|
|
32020
31986
|
return SCRIPT_SHELL_TYPES.find((shell) => shell.value === value);
|
|
@@ -32065,7 +32031,7 @@ function ScriptsTable({
|
|
|
32065
32031
|
SCRIPT_COLUMNS.authorId,
|
|
32066
32032
|
(row) => row.author ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
32067
32033
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32068
|
-
|
|
32034
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
32069
32035
|
{
|
|
32070
32036
|
variant: "round",
|
|
32071
32037
|
size: "sm",
|
|
@@ -32075,7 +32041,7 @@ function ScriptsTable({
|
|
|
32075
32041
|
initialsClassName: "text-ods-text-secondary"
|
|
32076
32042
|
}
|
|
32077
32043
|
),
|
|
32078
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32044
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { children: row.author.name }) })
|
|
32079
32045
|
] }) : null
|
|
32080
32046
|
)
|
|
32081
32047
|
];
|
|
@@ -32196,7 +32162,7 @@ function slotValue(minutesOfDay) {
|
|
|
32196
32162
|
return `${String(hours).padStart(2, "0")}:${String(minutes).padStart(2, "0")}`;
|
|
32197
32163
|
}
|
|
32198
32164
|
function slotLabel(minutesOfDay) {
|
|
32199
|
-
return
|
|
32165
|
+
return _chunk5QP3K2CEcjs.formatTime.call(void 0, new Date(1970, 0, 1, Math.floor(minutesOfDay / 60), minutesOfDay % 60));
|
|
32200
32166
|
}
|
|
32201
32167
|
function getTimeSlotOptions(forDate, timeReference) {
|
|
32202
32168
|
const base = slotBaseMinutes(timeReference);
|
|
@@ -32417,9 +32383,9 @@ function ReconnectWindowFields({
|
|
|
32417
32383
|
invalid
|
|
32418
32384
|
}
|
|
32419
32385
|
),
|
|
32420
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
32421
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32422
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32386
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkXI2CHCODcjs.Select, { value: unit, onValueChange: (next) => onUnitChange(next), disabled, children: [
|
|
32387
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectTrigger, { className: controlWidth, "aria-label": "Stop retry after unit", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectValue, {}) }),
|
|
32388
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectContent, { children: DURATION_UNIT_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
32423
32389
|
] })
|
|
32424
32390
|
] });
|
|
32425
32391
|
}
|
|
@@ -32487,7 +32453,7 @@ function ScheduleOfflineFields({ showErrors, disabled = false }) {
|
|
|
32487
32453
|
options
|
|
32488
32454
|
}
|
|
32489
32455
|
),
|
|
32490
|
-
intervalError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute bottom-0 left-0 right-0 translate-y-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32456
|
+
intervalError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute bottom-0 left-0 right-0 translate-y-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { variant: "h6", className: "text-ods-error", children: intervalError }) })
|
|
32491
32457
|
]
|
|
32492
32458
|
}
|
|
32493
32459
|
) }) })
|
|
@@ -32596,8 +32562,8 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
|
|
|
32596
32562
|
// Dragging towards the edge of the screen — or past it — scrolls whatever
|
|
32597
32563
|
// actually scrolls there: the page, the layout's `<main>`, or the list
|
|
32598
32564
|
// itself when it has its own overflow.
|
|
32599
|
-
|
|
32600
|
-
|
|
32565
|
+
_chunkLJT2KRE2cjs.autoScrollAncestors.call(void 0, list),
|
|
32566
|
+
_chunkLJT2KRE2cjs.autoScrollBothWays.call(void 0, list),
|
|
32601
32567
|
// One target for the whole list: which slot a drop lands in is answered by
|
|
32602
32568
|
// geometry, so this only has to say "inside the list, or outside it".
|
|
32603
32569
|
_adapter.dropTargetForElements.call(void 0, {
|
|
@@ -32894,7 +32860,7 @@ function useSortableItem() {
|
|
|
32894
32860
|
return _combine.combine.call(void 0,
|
|
32895
32861
|
// The drag has to start as a "move", or its first frame is drawn with the
|
|
32896
32862
|
// copy cursor — see `drag-effect.ts`.
|
|
32897
|
-
|
|
32863
|
+
_chunkLJT2KRE2cjs.holdMoveDragEffect.call(void 0, item),
|
|
32898
32864
|
_adapter.draggable.call(void 0, {
|
|
32899
32865
|
element: item,
|
|
32900
32866
|
dragHandle: handle,
|
|
@@ -33318,24 +33284,24 @@ function ScheduleTimingFields({
|
|
|
33318
33284
|
// `''` reads as "no selection" to Radix, so the placeholder shows
|
|
33319
33285
|
// until a slot is picked — a date at midnight no longer
|
|
33320
33286
|
// masquerades as a chosen 12:00 AM.
|
|
33321
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33287
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkXI2CHCODcjs.Select, { value: field.value, onValueChange: field.onChange, disabled: fieldsDisabled, children: [
|
|
33322
33288
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33323
|
-
|
|
33289
|
+
_chunkXI2CHCODcjs.SelectTrigger,
|
|
33324
33290
|
{
|
|
33325
33291
|
className: "w-full",
|
|
33326
33292
|
error: _nullishCoalesce(pastTimeError, () => ( (showErrors ? _optionalChain([fieldState, 'access', _721 => _721.error, 'optionalAccess', _722 => _722.message]) : void 0))),
|
|
33327
33293
|
invalid: !!pastTimeError || showErrors && !!fieldState.error,
|
|
33328
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33294
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectValue, { placeholder: "Select time" })
|
|
33329
33295
|
}
|
|
33330
33296
|
),
|
|
33331
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33297
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectContent, { children: timeSlots.length === 0 ? (
|
|
33332
33298
|
// Deliberately NOT a `SelectItem` — there is nothing here
|
|
33333
33299
|
// to select, and a selectable row would put a bogus value
|
|
33334
33300
|
// in the form. It replaces a popup that opened blank; the
|
|
33335
33301
|
// Date field carries the same sentence for whoever never
|
|
33336
33302
|
// opens this one.
|
|
33337
33303
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "px-4 py-[var(--spacing-system-sf)] text-ods-text-secondary text-h6", children: NO_SLOTS_TODAY_MESSAGE })
|
|
33338
|
-
) : timeSlots.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33304
|
+
) : timeSlots.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
33339
33305
|
] })
|
|
33340
33306
|
)
|
|
33341
33307
|
}
|
|
@@ -33349,14 +33315,14 @@ function ScheduleTimingFields({
|
|
|
33349
33315
|
name: "timeReference",
|
|
33350
33316
|
control,
|
|
33351
33317
|
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33352
|
-
|
|
33318
|
+
_chunkXI2CHCODcjs.Select,
|
|
33353
33319
|
{
|
|
33354
33320
|
value: field.value,
|
|
33355
33321
|
onValueChange: (next) => handleTimeReferenceChange(field.onChange, next),
|
|
33356
33322
|
disabled: fieldsDisabled,
|
|
33357
33323
|
children: [
|
|
33358
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33359
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33324
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectTrigger, { className: "w-full", "aria-label": "Timezone", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectValue, {}) }),
|
|
33325
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectContent, { children: SCHEDULE_TIME_REFERENCE_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
33360
33326
|
]
|
|
33361
33327
|
}
|
|
33362
33328
|
)
|
|
@@ -33416,7 +33382,7 @@ function ScheduleTimingFields({
|
|
|
33416
33382
|
name: "repeatUnit",
|
|
33417
33383
|
control,
|
|
33418
33384
|
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33419
|
-
|
|
33385
|
+
_chunkXI2CHCODcjs.Select,
|
|
33420
33386
|
{
|
|
33421
33387
|
value: field.value,
|
|
33422
33388
|
onValueChange: (next) => {
|
|
@@ -33427,8 +33393,8 @@ function ScheduleTimingFields({
|
|
|
33427
33393
|
},
|
|
33428
33394
|
disabled: fieldsDisabled || !repeatEnabled,
|
|
33429
33395
|
children: [
|
|
33430
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33431
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33396
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectValue, {}) }),
|
|
33397
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectContent, { children: DURATION_UNIT_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
33432
33398
|
]
|
|
33433
33399
|
}
|
|
33434
33400
|
)
|
|
@@ -33447,7 +33413,7 @@ function ScheduleFormFields({
|
|
|
33447
33413
|
disabled = false,
|
|
33448
33414
|
renderScriptSearch,
|
|
33449
33415
|
timeReferenceGate = "off",
|
|
33450
|
-
platforms =
|
|
33416
|
+
platforms = _chunkUBPSA3RMcjs.OS_PLATFORMS,
|
|
33451
33417
|
comingSoonPlatforms = [],
|
|
33452
33418
|
getTimeSlots,
|
|
33453
33419
|
nameLayout = "stacked",
|
|
@@ -33517,7 +33483,7 @@ function ScheduleFormFields({
|
|
|
33517
33483
|
platform.id
|
|
33518
33484
|
);
|
|
33519
33485
|
}) }),
|
|
33520
|
-
showErrors && formState.errors.supportedPlatforms && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute bottom-0 left-0 right-0 translate-y-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33486
|
+
showErrors && formState.errors.supportedPlatforms && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute bottom-0 left-0 right-0 translate-y-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { variant: "h6", className: "text-ods-error", children: _nullishCoalesce(formState.errors.supportedPlatforms.message, () => ( "")) }) })
|
|
33521
33487
|
]
|
|
33522
33488
|
}
|
|
33523
33489
|
);
|
|
@@ -33593,7 +33559,7 @@ function ScheduleFormFields({
|
|
|
33593
33559
|
// src/components/features/scripts/schedule-form/schedule-script-search-field.tsx
|
|
33594
33560
|
|
|
33595
33561
|
function ScriptPlatformIcons({ platforms }) {
|
|
33596
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex shrink-0 items-center gap-0.5", children:
|
|
33562
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex shrink-0 items-center gap-0.5", children: _chunkUBPSA3RMcjs.OS_PLATFORMS.filter((p) => platforms.includes(p.id)).map((p) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, p.icon, { className: "h-3.5 w-3.5 text-ods-text-secondary opacity-60" }, p.id)) });
|
|
33597
33563
|
}
|
|
33598
33564
|
function ScheduleScriptSearchField({
|
|
33599
33565
|
scriptId,
|
|
@@ -33619,7 +33585,7 @@ function ScheduleScriptSearchField({
|
|
|
33619
33585
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-[var(--spacing-system-xxs)]", onFocus: onOpen, onBlur: handleBlur, children: [
|
|
33620
33586
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFL2RMEDXcjs.Label, { className: "text-h4", children: "Select Script" }),
|
|
33621
33587
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33622
|
-
|
|
33588
|
+
_chunkXI2CHCODcjs.Autocomplete,
|
|
33623
33589
|
{
|
|
33624
33590
|
options,
|
|
33625
33591
|
value: scriptId || null,
|
|
@@ -33634,7 +33600,7 @@ function ScheduleScriptSearchField({
|
|
|
33634
33600
|
error,
|
|
33635
33601
|
invalid,
|
|
33636
33602
|
renderOption: (option, isSelected) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex w-full min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
33637
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33603
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { className: isSelected ? "text-ods-accent" : void 0, children: option.label }) }),
|
|
33638
33604
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScriptPlatformIcons, { platforms: _nullishCoalesce(_optionalChain([scripts, 'access', _728 => _728.find, 'call', _729 => _729((s) => s.id === option.value), 'optionalAccess', _730 => _730.supportedPlatforms]), () => ( [])) })
|
|
33639
33605
|
] })
|
|
33640
33606
|
}
|
|
@@ -33666,7 +33632,7 @@ function getKnowledgeBaseOpenColumn(getHref) {
|
|
|
33666
33632
|
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,
|
|
33667
33633
|
_chunkTF5D5MNOcjs.Button,
|
|
33668
33634
|
{
|
|
33669
|
-
onClick:
|
|
33635
|
+
onClick: _chunkUBPSA3RMcjs.openInNewTab.call(void 0, getHref(row.original)),
|
|
33670
33636
|
variant: "outline",
|
|
33671
33637
|
size: "icon",
|
|
33672
33638
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
@@ -33692,9 +33658,9 @@ function getKnowledgeBaseColumns(mode) {
|
|
|
33692
33658
|
/* @__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" }) }),
|
|
33693
33659
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
33694
33660
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
33695
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33661
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { children: item.name }) }),
|
|
33696
33662
|
tagStatus && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33697
|
-
|
|
33663
|
+
_chunkHY6BCZH7cjs.Tag,
|
|
33698
33664
|
{
|
|
33699
33665
|
variant: KNOWLEDGE_BASE_STATUS_VARIANT[tagStatus],
|
|
33700
33666
|
label: tagStatus,
|
|
@@ -33702,7 +33668,7 @@ function getKnowledgeBaseColumns(mode) {
|
|
|
33702
33668
|
}
|
|
33703
33669
|
)
|
|
33704
33670
|
] }),
|
|
33705
|
-
item.type === "ARTICLE" && item.summary && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33671
|
+
item.type === "ARTICLE" && item.summary && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { variant: "h6", tone: "secondary", children: item.summary })
|
|
33706
33672
|
] })
|
|
33707
33673
|
] });
|
|
33708
33674
|
},
|
|
@@ -33717,8 +33683,8 @@ function getKnowledgeBaseColumns(mode) {
|
|
|
33717
33683
|
const ts = mode === "archive" ? _nullishCoalesce(row.original.updatedAt, () => ( row.original.createdAt)) : row.original.createdAt;
|
|
33718
33684
|
if (!ts) return null;
|
|
33719
33685
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col whitespace-nowrap", children: [
|
|
33720
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-primary text-h4", children:
|
|
33721
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-heading-5 text-ods-text-secondary", children:
|
|
33686
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-primary text-h4", children: _chunk5QP3K2CEcjs.formatDate.call(void 0, ts) }),
|
|
33687
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-heading-5 text-ods-text-secondary", children: _chunk5QP3K2CEcjs.formatTime.call(void 0, ts) })
|
|
33722
33688
|
] });
|
|
33723
33689
|
},
|
|
33724
33690
|
enableSorting: false,
|
|
@@ -33782,7 +33748,7 @@ function KnowledgeBaseArticleView({
|
|
|
33782
33748
|
className = "px-[var(--spacing-system-l)] pb-[var(--spacing-system-l)]"
|
|
33783
33749
|
}) {
|
|
33784
33750
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33785
|
-
|
|
33751
|
+
_chunkXI2CHCODcjs.PageLayout,
|
|
33786
33752
|
{
|
|
33787
33753
|
title,
|
|
33788
33754
|
backButton: onBack ? { label: "Back", onClick: onBack } : void 0,
|
|
@@ -33791,11 +33757,11 @@ function KnowledgeBaseArticleView({
|
|
|
33791
33757
|
menuActions,
|
|
33792
33758
|
className,
|
|
33793
33759
|
children: [
|
|
33794
|
-
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,
|
|
33795
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33760
|
+
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, _chunkHY6BCZH7cjs.Tag, { label: tag.label, variant: "outline", className: "max-w-full" }, tag.id)) }),
|
|
33761
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.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: [
|
|
33796
33762
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
33797
|
-
author.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33798
|
-
|
|
33763
|
+
author.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJT2KRE2cjs.DeletedUserAvatar, { size: "md" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33764
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
33799
33765
|
{
|
|
33800
33766
|
src: author.imageUrl,
|
|
33801
33767
|
fallback: _nullishCoalesce(author.name, () => ( "A")),
|
|
@@ -33805,12 +33771,12 @@ function KnowledgeBaseArticleView({
|
|
|
33805
33771
|
}
|
|
33806
33772
|
),
|
|
33807
33773
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
33808
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33774
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { className: author.deleted ? "text-ods-error" : void 0, children: _nullishCoalesce(author.name, () => ( "Unknown")) }),
|
|
33809
33775
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Author" })
|
|
33810
33776
|
] })
|
|
33811
33777
|
] }),
|
|
33812
33778
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 min-w-0 flex-col justify-center", children: [
|
|
33813
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33779
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { children: updatedLabel }),
|
|
33814
33780
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Updated" })
|
|
33815
33781
|
] }),
|
|
33816
33782
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -33821,7 +33787,7 @@ function KnowledgeBaseArticleView({
|
|
|
33821
33787
|
}
|
|
33822
33788
|
),
|
|
33823
33789
|
/* @__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: [
|
|
33824
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33790
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { variant: KNOWLEDGE_BASE_STATUS_VARIANT[status], label: status }),
|
|
33825
33791
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Status" })
|
|
33826
33792
|
] })
|
|
33827
33793
|
] }) }),
|
|
@@ -33956,7 +33922,7 @@ function ConversationCard({
|
|
|
33956
33922
|
style: tint,
|
|
33957
33923
|
onClick: selection && ((event) => {
|
|
33958
33924
|
if (event.button !== 0 || _optionalChain([window, 'access', _733 => _733.getSelection, 'call', _734 => _734(), 'optionalAccess', _735 => _735.toString, 'call', _736 => _736()])) return;
|
|
33959
|
-
if (!
|
|
33925
|
+
if (!_chunkUBPSA3RMcjs.isOwnClick.call(void 0, event.target, event.currentTarget, { controls: true })) return;
|
|
33960
33926
|
selection.onToggle();
|
|
33961
33927
|
}),
|
|
33962
33928
|
children: [
|
|
@@ -33979,7 +33945,7 @@ function ConversationCard({
|
|
|
33979
33945
|
children: selection.pressed ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX4UZ62MYcjs.PlusIcon, {})
|
|
33980
33946
|
}
|
|
33981
33947
|
),
|
|
33982
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33948
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUBPSA3RMcjs.ChatTurn, { avatar: requester.avatar, name: requester.name, meta: requester.meta, time: requester.time, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33983
33949
|
"p",
|
|
33984
33950
|
{
|
|
33985
33951
|
id: requestId,
|
|
@@ -33998,7 +33964,7 @@ function ConversationCard({
|
|
|
33998
33964
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: CONTEXT_TEXT_CLASS, style: partLinesStyle(_optionalChain([lines, 'optionalAccess', _737 => _737.context])), children: context.text })
|
|
33999
33965
|
] }),
|
|
34000
33966
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34001
|
-
|
|
33967
|
+
_chunkUBPSA3RMcjs.ChatTurn,
|
|
34002
33968
|
{
|
|
34003
33969
|
avatar: responder.avatar,
|
|
34004
33970
|
name: responder.name,
|
|
@@ -34014,17 +33980,17 @@ function ConversationCard({
|
|
|
34014
33980
|
),
|
|
34015
33981
|
footerLabel && footerValue && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, FOOTER_ROW_CLASS, "text-ods-text-secondary text-h6"), children: [
|
|
34016
33982
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: footerLabel }),
|
|
34017
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33983
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { as: "span", label: footerValue, variant: footerTone === "attention" ? "warning" : "badge" })
|
|
34018
33984
|
] })
|
|
34019
33985
|
]
|
|
34020
33986
|
}
|
|
34021
33987
|
);
|
|
34022
33988
|
}
|
|
34023
33989
|
function TurnSkeleton({ avatarPx, meta, children }) {
|
|
34024
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
34025
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34026
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
34027
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33990
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkUBPSA3RMcjs.TURN_ROW_CLASS, children: [
|
|
33991
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.SquareAvatarSkeleton, { sizePx: avatarPx }),
|
|
33992
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkUBPSA3RMcjs.TURN_BODY_CLASS, children: [
|
|
33993
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUBPSA3RMcjs.ChatTurnNameSkeleton, { meta, time: true }),
|
|
34028
33994
|
children
|
|
34029
33995
|
] })
|
|
34030
33996
|
] });
|
|
@@ -34061,7 +34027,7 @@ function ConversationCardSkeleton({
|
|
|
34061
34027
|
] }) }) }),
|
|
34062
34028
|
footer && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, FOOTER_ROW_CLASS, "text-ods-text-secondary text-h6"), children: [
|
|
34063
34029
|
footerLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: footerLabel }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { lines: 1, type: "h6", className: "w-1/4" }),
|
|
34064
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34030
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { as: "span", label: "\xA0", variant: "badge", className: "invisible" })
|
|
34065
34031
|
] })
|
|
34066
34032
|
] });
|
|
34067
34033
|
}
|
|
@@ -34086,7 +34052,7 @@ function Highlights({ items, className }) {
|
|
|
34086
34052
|
if (items.length === 0) return null;
|
|
34087
34053
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: _chunk65VVJSQZcjs.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: [
|
|
34088
34054
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { size: HIGHLIGHT_ICON_PX, className: "shrink-0 text-ods-flamingo-cyan" }),
|
|
34089
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34055
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { variant: "h6", triggerClassName: "flex-1", children: text })
|
|
34090
34056
|
] }, text)) });
|
|
34091
34057
|
}
|
|
34092
34058
|
function Example({
|
|
@@ -34122,7 +34088,7 @@ function Example({
|
|
|
34122
34088
|
mark(_nullishCoalesce(_optionalChain([requester, 'optionalAccess', _741 => _741.mark]), () => ( requesterMark))),
|
|
34123
34089
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
34124
34090
|
who(_nullishCoalesce(_optionalChain([requester, 'optionalAccess', _742 => _742.name]), () => ( labels.requester)), _nullishCoalesce(_optionalChain([requester, 'optionalAccess', _743 => _743.note]), () => ( labels.requesterNote))),
|
|
34125
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34091
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { lines: 2, variant: "h4", className: "min-h-[2lh]", children: `\u201C${example.request}\u201D` })
|
|
34126
34092
|
] })
|
|
34127
34093
|
] }),
|
|
34128
34094
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 gap-2.5 border-t border-ods-border pt-3", children: [
|
|
@@ -34131,7 +34097,7 @@ function Example({
|
|
|
34131
34097
|
who(_nullishCoalesce(_optionalChain([responder, 'optionalAccess', _745 => _745.name]), () => ( labels.responder)), _nullishCoalesce(_optionalChain([responder, 'optionalAccess', _746 => _746.note]), () => ( labels.responderNote))),
|
|
34132
34098
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-start gap-2", children: [
|
|
34133
34099
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { size: 16, className: "mt-0.5 shrink-0 text-ods-flamingo-cyan" }),
|
|
34134
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34100
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { lines: 2, variant: "h6", tone: "secondary", className: "min-h-[2lh]", triggerClassName: "flex-1", children: example.outcome })
|
|
34135
34101
|
] })
|
|
34136
34102
|
] })
|
|
34137
34103
|
] })
|
|
@@ -34141,7 +34107,7 @@ function Example({
|
|
|
34141
34107
|
}
|
|
34142
34108
|
function ExampleSkeleton({ className }) {
|
|
34143
34109
|
const turn = (first) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "flex min-w-0 gap-2.5", !first && "border-t border-ods-border pt-3"), children: [
|
|
34144
|
-
first ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34110
|
+
first ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.SquareAvatarSkeleton, { variant: "round", sizePx: EXAMPLE_MARK_PX, className: "shrink-0" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.AgentAvatarSkeleton, { size: EXAMPLE_MARK_PX }),
|
|
34145
34111
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
34146
34112
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "h6", className: "w-28" }),
|
|
34147
34113
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-h-[2lh] text-h4", children: [
|
|
@@ -34280,16 +34246,16 @@ function CapabilityExplorer({
|
|
|
34280
34246
|
),
|
|
34281
34247
|
children: [
|
|
34282
34248
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
34283
|
-
item.iconName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk65VVJSQZcjs.cn.call(void 0, JOB_ICON_TILE_CLASS, "text-ods-flamingo-cyan"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34249
|
+
item.iconName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk65VVJSQZcjs.cn.call(void 0, JOB_ICON_TILE_CLASS, "text-ods-flamingo-cyan"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.EntityIcon, { icon: { name: item.iconName }, size: 18 }) }),
|
|
34284
34250
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
34285
34251
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "h3", { className: "flex min-w-0 items-center gap-2 text-ods-text-primary text-h4", children: [
|
|
34286
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34252
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { as: "span", variant: "h4", triggerClassName: "flex-1", children: item.title }),
|
|
34287
34253
|
item.badge
|
|
34288
34254
|
] }),
|
|
34289
|
-
item.caption && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34255
|
+
item.caption && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { variant: "h6", tone: "secondary", children: item.caption })
|
|
34290
34256
|
] })
|
|
34291
34257
|
] }),
|
|
34292
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34258
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { lines: 3, variant: "h6", tone: "secondary", className: "min-h-[3lh]", children: item.intro }),
|
|
34293
34259
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0 overflow-hidden rounded-lg border border-ods-border", children: renderScreen(item, { compact: true }) }),
|
|
34294
34260
|
item.example && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34295
34261
|
Example,
|
|
@@ -34361,7 +34327,7 @@ function CapabilityExplorer({
|
|
|
34361
34327
|
"span",
|
|
34362
34328
|
{
|
|
34363
34329
|
className: _chunk65VVJSQZcjs.cn.call(void 0, JOB_ICON_TILE_CLASS, selected ? "text-ods-flamingo-cyan" : "text-ods-text-secondary"),
|
|
34364
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34330
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.EntityIcon, { icon: { name: item.iconName }, size: 18 })
|
|
34365
34331
|
}
|
|
34366
34332
|
),
|
|
34367
34333
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "min-w-0 flex-1", children: [
|
|
@@ -34414,8 +34380,8 @@ function CapabilityExplorer({
|
|
|
34414
34380
|
),
|
|
34415
34381
|
children: [
|
|
34416
34382
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col overflow-hidden", children: [
|
|
34417
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34418
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34383
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { lines: 2, variant: "h2", className: "mb-2", children: active.title }),
|
|
34384
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { lines: 3, variant: "h4", tone: "secondary", className: "min-h-[3lh]", children: active.intro }),
|
|
34419
34385
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Highlights, { items: _nullishCoalesce(active.highlights, () => ( [])), className: "mt-auto" })
|
|
34420
34386
|
] }),
|
|
34421
34387
|
active.example && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|