@flamingo-stack/openframe-frontend-core 0.0.767 → 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-BXMDLQUA.cjs → chunk-2TS3FEPQ.cjs} +4 -4
- package/dist/{chunk-M2UU3CWX.cjs → chunk-2ZYCYLPL.cjs} +5 -5
- package/dist/{chunk-DGNBXZXT.cjs → chunk-4EJU462O.cjs} +57 -30
- package/dist/{chunk-GQ7RGD4Y.cjs → chunk-57KIBZFQ.cjs} +76 -76
- package/dist/{chunk-IKXUJUXC.cjs → chunk-5O6PHVKO.cjs} +4 -4
- package/dist/{chunk-XZ6DKGT4.cjs → chunk-5QP3K2CE.cjs} +5 -5
- package/dist/{chunk-7TJVYRHR.cjs → chunk-6EEE76VU.cjs} +24 -24
- package/dist/{chunk-YRFWOJF4.cjs → chunk-BLTNKLAX.cjs} +4 -4
- package/dist/{chunk-WEPIWJGR.cjs → chunk-DE7U72NZ.cjs} +26 -26
- package/dist/{chunk-GTONIRJU.cjs → chunk-EHJE3UWZ.cjs} +10 -16
- package/dist/{chunk-UHDBMKJB.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-NO2DEFAP.cjs → chunk-NPVYID2L.cjs} +80 -80
- package/dist/{chunk-XIXR6BHI.cjs → chunk-OEVNX4OR.cjs} +44 -44
- package/dist/{chunk-TPOLNGOW.cjs → chunk-OGHLIUF4.cjs} +41 -41
- package/dist/{chunk-KHISVNNH.cjs → chunk-PFY23KN7.cjs} +6 -6
- package/dist/{chunk-ZRDMGMY7.cjs → chunk-QS4G7CHU.cjs} +2 -2
- package/dist/{chunk-GJ5DHDFQ.cjs → chunk-S4QS5E5A.cjs} +12 -12
- package/dist/{chunk-FVH53QZJ.cjs → chunk-STHQJNND.cjs} +501 -547
- package/dist/{chunk-MNIMYGFR.cjs → chunk-U6UIG4OP.cjs} +31 -31
- package/dist/{chunk-JBJVUQVH.cjs → chunk-UBPSA3RM.cjs} +87 -87
- package/dist/{chunk-I7A5MPXA.cjs → chunk-VADRKMLE.cjs} +3 -3
- package/dist/{chunk-AAECWUNV.cjs → chunk-VFUMM6JC.cjs} +19 -11
- package/dist/{chunk-7ZU3AVEX.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-WXK5RDSY.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/contact/index.cjs +14 -14
- package/dist/components/docs/index.cjs +17 -17
- package/dist/components/embeds/index.cjs +14 -14
- 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/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/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-UHHHTCJF.cjs → devices-OS26UG7Y.cjs} +14 -14
- package/dist/{embeddable-chat-YL6ZSTDJ.cjs → embeddable-chat-BXEK3SPJ.cjs} +83 -83
- package/dist/index.cjs +20 -18
- package/dist/{knowledge-TJKHM7W4.cjs → knowledge-JD2OFKEL.cjs} +14 -14
- package/dist/{logs-B3KCCMPE.cjs → logs-KGKNFROP.cjs} +21 -21
- package/dist/{policies-ZTUIXSYZ.cjs → policies-J2XL6XQK.cjs} +17 -17
- package/dist/{remote-session-PPA5SXX7.cjs → remote-session-RHQ2K27H.cjs} +7 -7
- package/dist/{scripts-FIFAHBS6.cjs → scripts-MJONVIWL.cjs} +20 -20
- package/dist/{software-update-62PLASQU.cjs → software-update-VSMTHJR4.cjs} +17 -17
- package/dist/{tickets-board-G3WBH4SV.cjs → tickets-board-YT25IX3O.cjs} +8 -8
- 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 +3 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +2 -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/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/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/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/format.ts +16 -4
- package/src/utils/index.ts +1 -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 _chunkJBJVUQVHcjs = require('./chunk-JBJVUQVH.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
|
|
|
@@ -503,7 +503,7 @@ var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
|
503
503
|
|
|
504
504
|
|
|
505
505
|
|
|
506
|
-
var
|
|
506
|
+
var _chunk4EJU462Ocjs = require('./chunk-4EJU462O.cjs');
|
|
507
507
|
|
|
508
508
|
|
|
509
509
|
|
|
@@ -518,7 +518,7 @@ var _chunkR3JX4MXDcjs = require('./chunk-R3JX4MXD.cjs');
|
|
|
518
518
|
var _chunkSETFUCZAcjs = require('./chunk-SETFUCZA.cjs');
|
|
519
519
|
|
|
520
520
|
|
|
521
|
-
var
|
|
521
|
+
var _chunkVFUMM6JCcjs = require('./chunk-VFUMM6JC.cjs');
|
|
522
522
|
|
|
523
523
|
|
|
524
524
|
|
|
@@ -530,7 +530,7 @@ var _chunkAAECWUNVcjs = require('./chunk-AAECWUNV.cjs');
|
|
|
530
530
|
|
|
531
531
|
|
|
532
532
|
|
|
533
|
-
var
|
|
533
|
+
var _chunkHY6BCZH7cjs = require('./chunk-HY6BCZH7.cjs');
|
|
534
534
|
|
|
535
535
|
|
|
536
536
|
var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
@@ -695,7 +695,7 @@ function ThemeProvider({ children, ...overrides }) {
|
|
|
695
695
|
var useTheme = _nextthemes.useTheme;
|
|
696
696
|
function useThemeToggle() {
|
|
697
697
|
const { resolvedTheme, theme, setTheme } = useTheme();
|
|
698
|
-
const mounted =
|
|
698
|
+
const mounted = _chunkZXFOMNI5cjs.useIsHydrated.call(void 0, );
|
|
699
699
|
const active = mounted ? resolvedTheme === "light" || theme === "light" ? "light" : "dark" : DEFAULT_THEME;
|
|
700
700
|
const setOdsTheme = _react.useCallback.call(void 0, (next) => setTheme(next), [setTheme]);
|
|
701
701
|
const toggle = _react.useCallback.call(void 0, () => setTheme(active === "dark" ? "light" : "dark"), [active, setTheme]);
|
|
@@ -905,7 +905,7 @@ function TimezoneSelect({
|
|
|
905
905
|
}) {
|
|
906
906
|
const options = _react.useMemo.call(void 0, () => timezoneOptions(value), [value]);
|
|
907
907
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
908
|
-
|
|
908
|
+
_chunkXI2CHCODcjs.Autocomplete,
|
|
909
909
|
{
|
|
910
910
|
className,
|
|
911
911
|
fieldLoading: loading,
|
|
@@ -1086,7 +1086,7 @@ var _reactpopover = require('@radix-ui/react-popover'); var Popover = _interopRe
|
|
|
1086
1086
|
|
|
1087
1087
|
var _reactdaypicker = require('react-day-picker');
|
|
1088
1088
|
|
|
1089
|
-
var defaultFormatDate = (date) =>
|
|
1089
|
+
var defaultFormatDate = (date) => _chunkHY6BCZH7cjs.formatDateWithTimezone.call(void 0, date, _chunkHY6BCZH7cjs.VIEWER_TIMEZONE, "numeric", { viewerLocale: true });
|
|
1090
1090
|
var formatDateRange = (range, formatFn) => {
|
|
1091
1091
|
if (!_optionalChain([range, 'optionalAccess', _5 => _5.from])) return "";
|
|
1092
1092
|
if (!range.to) return formatFn(range.from);
|
|
@@ -1287,7 +1287,7 @@ function DatePickerCalendar({
|
|
|
1287
1287
|
};
|
|
1288
1288
|
const handlePreviousMonth = () => shiftMonth(-1);
|
|
1289
1289
|
const handleNextMonth = () => shiftMonth(1);
|
|
1290
|
-
const formatMonthYear = (date) =>
|
|
1290
|
+
const formatMonthYear = (date) => _chunkHY6BCZH7cjs.formatDateWithTimezone.call(void 0, date, _chunkHY6BCZH7cjs.VIEWER_TIMEZONE, "monthYear", { viewerLocale: true });
|
|
1291
1291
|
const getSecondMonth = (date) => {
|
|
1292
1292
|
const next = new Date(date);
|
|
1293
1293
|
next.setMonth(next.getMonth() + 1);
|
|
@@ -1726,20 +1726,20 @@ function DatePickerInput(props) {
|
|
|
1726
1726
|
) })
|
|
1727
1727
|
] }),
|
|
1728
1728
|
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1", children: [
|
|
1729
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1730
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1731
|
-
/* @__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)) })
|
|
1732
1732
|
] }),
|
|
1733
1733
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h4", children: ":" }),
|
|
1734
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1735
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1736
|
-
/* @__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)) })
|
|
1737
1737
|
] }),
|
|
1738
|
-
!use24HourFormat && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1739
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1740
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1741
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1742
|
-
/* @__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" })
|
|
1743
1743
|
] })
|
|
1744
1744
|
] })
|
|
1745
1745
|
] })
|
|
@@ -1882,9 +1882,9 @@ function DatePickerInputSimple(props) {
|
|
|
1882
1882
|
}
|
|
1883
1883
|
) })
|
|
1884
1884
|
] }),
|
|
1885
|
-
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1886
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1887
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1885
|
+
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _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)) })
|
|
1888
1888
|
] })
|
|
1889
1889
|
] });
|
|
1890
1890
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYXDHVHB2cjs.FieldWrapper, { label, error, errorSlot: "error" in props, className, children: content });
|
|
@@ -1903,14 +1903,14 @@ function DateFilterPanel({
|
|
|
1903
1903
|
className
|
|
1904
1904
|
}) {
|
|
1905
1905
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "flex flex-col gap-4", className), children: [
|
|
1906
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1907
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1906
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _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: [
|
|
1908
1908
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ArrowUpDown, { className: "size-6 shrink-0 text-ods-text-secondary" }),
|
|
1909
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1909
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectValue, {}) })
|
|
1910
1910
|
] }) }),
|
|
1911
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1912
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1913
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1911
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _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 })
|
|
1914
1914
|
] })
|
|
1915
1915
|
] }),
|
|
1916
1916
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2188,7 +2188,7 @@ function Value({ value, depth }) {
|
|
|
2188
2188
|
}
|
|
2189
2189
|
if (typeof value === "string") {
|
|
2190
2190
|
if (ISO_DATE.test(value)) {
|
|
2191
|
-
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) });
|
|
2192
2192
|
}
|
|
2193
2193
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-pre-wrap text-ods-text-primary", children: value });
|
|
2194
2194
|
}
|
|
@@ -2669,7 +2669,7 @@ function CompactAssigneeDropdown({
|
|
|
2669
2669
|
value: o.value,
|
|
2670
2670
|
label: o.label,
|
|
2671
2671
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2672
|
-
|
|
2672
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
2673
2673
|
{
|
|
2674
2674
|
src: o.imageUrl,
|
|
2675
2675
|
alt: o.label,
|
|
@@ -2703,8 +2703,8 @@ function CompactAssigneeDropdown({
|
|
|
2703
2703
|
"shrink-0 rounded-full focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-focus",
|
|
2704
2704
|
className
|
|
2705
2705
|
),
|
|
2706
|
-
children: currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2707
|
-
|
|
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,
|
|
2708
2708
|
{
|
|
2709
2709
|
src: currentAssignee.avatarSrc,
|
|
2710
2710
|
alt: currentAssignee.name,
|
|
@@ -2752,7 +2752,7 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
2752
2752
|
const opt = option;
|
|
2753
2753
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center gap-[var(--spacing-system-sf)]", children: [
|
|
2754
2754
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2755
|
-
|
|
2755
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
2756
2756
|
{
|
|
2757
2757
|
src: opt.imageUrl,
|
|
2758
2758
|
alt: opt.label,
|
|
@@ -2768,7 +2768,7 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
2768
2768
|
if (isEditing) {
|
|
2769
2769
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "min-w-0", className), children: [
|
|
2770
2770
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2771
|
-
|
|
2771
|
+
_chunkXI2CHCODcjs.Autocomplete,
|
|
2772
2772
|
{
|
|
2773
2773
|
options,
|
|
2774
2774
|
value: _nullishCoalesce(_optionalChain([currentAssignee, 'optionalAccess', _35 => _35.id]), () => ( null)),
|
|
@@ -2780,14 +2780,14 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
2780
2780
|
loading: isLoading,
|
|
2781
2781
|
showChevron: false,
|
|
2782
2782
|
startAdornment: hasAssignee ? currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2783
|
-
|
|
2783
|
+
_chunkLJT2KRE2cjs.DeletedUserAvatar,
|
|
2784
2784
|
{
|
|
2785
2785
|
size: "sm",
|
|
2786
2786
|
className: "h-6 w-6",
|
|
2787
2787
|
accessibleLabel: `Deleted user: ${currentAssignee.name || currentAssignee.id}`
|
|
2788
2788
|
}
|
|
2789
2789
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2790
|
-
|
|
2790
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
2791
2791
|
{
|
|
2792
2792
|
src: currentAssignee.avatarSrc,
|
|
2793
2793
|
alt: currentAssignee.name,
|
|
@@ -2806,13 +2806,13 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
2806
2806
|
if (hasAssignee) {
|
|
2807
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: [
|
|
2808
2808
|
currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2809
|
-
|
|
2809
|
+
_chunkLJT2KRE2cjs.DeletedUserAvatar,
|
|
2810
2810
|
{
|
|
2811
2811
|
size: "md",
|
|
2812
2812
|
accessibleLabel: `Deleted user: ${currentAssignee.name || currentAssignee.id}`
|
|
2813
2813
|
}
|
|
2814
2814
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2815
|
-
|
|
2815
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
2816
2816
|
{
|
|
2817
2817
|
src: currentAssignee.avatarSrc,
|
|
2818
2818
|
alt: currentAssignee.name,
|
|
@@ -2886,7 +2886,7 @@ function TextValue({ value }) {
|
|
|
2886
2886
|
}
|
|
2887
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 }),
|
|
2888
2888
|
hasImage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2889
|
-
|
|
2889
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
2890
2890
|
{
|
|
2891
2891
|
src: imageSrc,
|
|
2892
2892
|
alt: text,
|
|
@@ -2906,7 +2906,7 @@ function RowValue({ value }) {
|
|
|
2906
2906
|
}
|
|
2907
2907
|
case "status": {
|
|
2908
2908
|
const { type: _type, ...props } = value;
|
|
2909
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2909
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.TicketStatusTag, { ...props });
|
|
2910
2910
|
}
|
|
2911
2911
|
case "custom":
|
|
2912
2912
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: value.content });
|
|
@@ -3004,7 +3004,7 @@ function MediaTypeSelector({
|
|
|
3004
3004
|
// changed) and cost an extra render pass on every change to say what the
|
|
3005
3005
|
// prop already said.
|
|
3006
3006
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3007
|
-
|
|
3007
|
+
_chunkXI2CHCODcjs.Select,
|
|
3008
3008
|
{
|
|
3009
3009
|
value: value || void 0,
|
|
3010
3010
|
onValueChange: (next) => {
|
|
@@ -3014,8 +3014,8 @@ function MediaTypeSelector({
|
|
|
3014
3014
|
disabled,
|
|
3015
3015
|
defaultValue: value,
|
|
3016
3016
|
children: [
|
|
3017
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3018
|
-
/* @__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: [
|
|
3019
3019
|
option.icon,
|
|
3020
3020
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: option.label })
|
|
3021
3021
|
] }) }, option.value)) })
|
|
@@ -3868,7 +3868,7 @@ function TagsManager({
|
|
|
3868
3868
|
}
|
|
3869
3869
|
),
|
|
3870
3870
|
selectedTags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3871
|
-
|
|
3871
|
+
_chunkHY6BCZH7cjs.Tag,
|
|
3872
3872
|
{
|
|
3873
3873
|
label: tag.name,
|
|
3874
3874
|
variant: "outline",
|
|
@@ -4427,10 +4427,10 @@ function useConfirm() {
|
|
|
4427
4427
|
},
|
|
4428
4428
|
[]
|
|
4429
4429
|
);
|
|
4430
|
-
const dialog = pending ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4431
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4432
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4433
|
-
/* @__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: [
|
|
4434
4434
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { variant: "outline", onClick: () => decide(false), children: "Cancel" }),
|
|
4435
4435
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { variant: "destructive", onClick: () => decide(true), children: "Confirm" })
|
|
4436
4436
|
] })
|
|
@@ -4508,7 +4508,7 @@ function AdminFormDrawer({
|
|
|
4508
4508
|
"form",
|
|
4509
4509
|
{
|
|
4510
4510
|
id: formId,
|
|
4511
|
-
...
|
|
4511
|
+
..._chunkUBPSA3RMcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
4512
4512
|
className: "flex flex-col gap-[var(--spacing-system-lf)]",
|
|
4513
4513
|
onSubmit: (e) => {
|
|
4514
4514
|
e.preventDefault();
|
|
@@ -4606,16 +4606,16 @@ function AdminFormModal({
|
|
|
4606
4606
|
body: "Your edits have not been saved. Close and discard them?"
|
|
4607
4607
|
});
|
|
4608
4608
|
if (!isOpen) return null;
|
|
4609
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4610
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4611
|
-
/* @__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 }),
|
|
4612
4612
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-ods-text-secondary text-h6", children: subtitle })
|
|
4613
4613
|
] }),
|
|
4614
4614
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4615
4615
|
"form",
|
|
4616
4616
|
{
|
|
4617
4617
|
id: formId,
|
|
4618
|
-
...
|
|
4618
|
+
..._chunkUBPSA3RMcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
4619
4619
|
className: "flex min-h-0 flex-1 flex-col",
|
|
4620
4620
|
onSubmit: (e) => {
|
|
4621
4621
|
e.preventDefault();
|
|
@@ -4633,7 +4633,7 @@ function AdminFormModal({
|
|
|
4633
4633
|
// a shrink-to-fit flex item pinned to the left of a 1400px panel).
|
|
4634
4634
|
// The placeholder owns its own layout and mirrors the column count so
|
|
4635
4635
|
// the modal doesn't visibly re-flow when the entity lands.
|
|
4636
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4636
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalContent, { children: loadingContent ? (
|
|
4637
4637
|
// The one announcement: a `loadingContent` with a region of its own takes `region={false}`.
|
|
4638
4638
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEANWBJHcjs.LoadingRegion, { label: "Loading", children: loadingContent })
|
|
4639
4639
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -4654,12 +4654,12 @@ function AdminFormModal({
|
|
|
4654
4654
|
] }, i)) }, col))
|
|
4655
4655
|
}
|
|
4656
4656
|
) })
|
|
4657
|
-
) : 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 }),
|
|
4658
4658
|
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { role: "alert", className: "shrink-0 text-ods-error text-h6", children: error })
|
|
4659
4659
|
]
|
|
4660
4660
|
}
|
|
4661
4661
|
),
|
|
4662
|
-
/* @__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: [
|
|
4663
4663
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: footerExtras }),
|
|
4664
4664
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
4665
4665
|
footerStatus,
|
|
@@ -5407,7 +5407,7 @@ var TabBar = _react.memo.call(void 0, function TabBarImpl({
|
|
|
5407
5407
|
// as tall as its neighbours at every breakpoint. No hover shade:
|
|
5408
5408
|
// the tab is the target, and the cursor passes through to it.
|
|
5409
5409
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5410
|
-
|
|
5410
|
+
_chunkHY6BCZH7cjs.Tag,
|
|
5411
5411
|
{
|
|
5412
5412
|
as: "span",
|
|
5413
5413
|
"aria-hidden": true,
|
|
@@ -6005,7 +6005,7 @@ function EmbedViewerFrame({
|
|
|
6005
6005
|
const controllerRef = _react.useRef.call(void 0, null);
|
|
6006
6006
|
_react.useEffect.call(void 0, () => {
|
|
6007
6007
|
if (!fullscreenControl) return void 0;
|
|
6008
|
-
const controller = new (0,
|
|
6008
|
+
const controller = new (0, _chunkUBPSA3RMcjs.FullscreenSwitchController)({
|
|
6009
6009
|
target: () => frameRef.current,
|
|
6010
6010
|
onFullscreenChange: setIsFullscreen
|
|
6011
6011
|
});
|
|
@@ -6669,12 +6669,12 @@ var OGLinkPreview = ({
|
|
|
6669
6669
|
children: [
|
|
6670
6670
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TILE_SOURCE_ROW_CLASS, children: [
|
|
6671
6671
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Favicon, { src: `https://www.google.com/s2/favicons?domain=${domain}&sz=32`, size: "w-4 h-4" }),
|
|
6672
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6672
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { as: "span", variant: "h6", className: "text-current", children: name }),
|
|
6673
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 })
|
|
6674
6674
|
] }),
|
|
6675
6675
|
kicker != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-hidden text-ods-accent text-h5", style: lineClamp(1), children: kicker }),
|
|
6676
6676
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6677
|
-
|
|
6677
|
+
_chunkXI2CHCODcjs.TruncateText,
|
|
6678
6678
|
{
|
|
6679
6679
|
lines: 2,
|
|
6680
6680
|
variant: "h3",
|
|
@@ -6683,7 +6683,7 @@ var OGLinkPreview = ({
|
|
|
6683
6683
|
children: curatedTitle || domainToTitle(domain)
|
|
6684
6684
|
}
|
|
6685
6685
|
),
|
|
6686
|
-
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 })
|
|
6687
6687
|
]
|
|
6688
6688
|
}
|
|
6689
6689
|
);
|
|
@@ -6819,8 +6819,8 @@ var OGLinkPreview = ({
|
|
|
6819
6819
|
children: [
|
|
6820
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 }) }),
|
|
6821
6821
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
6822
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6823
|
-
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 })
|
|
6824
6824
|
] }),
|
|
6825
6825
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExternalLinkIcon, {})
|
|
6826
6826
|
]
|
|
@@ -6867,7 +6867,7 @@ var OGLinkPreview = ({
|
|
|
6867
6867
|
),
|
|
6868
6868
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
6869
6869
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6870
|
-
|
|
6870
|
+
_chunkXI2CHCODcjs.TruncateText,
|
|
6871
6871
|
{
|
|
6872
6872
|
lines: 2,
|
|
6873
6873
|
className: "min-h-[calc(var(--font-line-space-h4-body)*2)] font-semibold transition-colors group-hover:text-ods-accent",
|
|
@@ -6876,7 +6876,7 @@ var OGLinkPreview = ({
|
|
|
6876
6876
|
}
|
|
6877
6877
|
),
|
|
6878
6878
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6879
|
-
|
|
6879
|
+
_chunkXI2CHCODcjs.TruncateText,
|
|
6880
6880
|
{
|
|
6881
6881
|
lines: 2,
|
|
6882
6882
|
tone: "secondary",
|
|
@@ -6886,9 +6886,9 @@ var OGLinkPreview = ({
|
|
|
6886
6886
|
}
|
|
6887
6887
|
),
|
|
6888
6888
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-2 text-ods-text-secondary text-h6", children: [
|
|
6889
|
-
/* @__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 }),
|
|
6890
6890
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "\u2022" }),
|
|
6891
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6891
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { as: "span", variant: "h6", className: "text-current", children: ogDomain }),
|
|
6892
6892
|
meta
|
|
6893
6893
|
] })
|
|
6894
6894
|
] })
|
|
@@ -7049,7 +7049,7 @@ var MediaCarousel = _react.memo.call(void 0, function MediaCarouselImpl({
|
|
|
7049
7049
|
};
|
|
7050
7050
|
const displayImageSrc = (url) => transformImageSrc ? transformImageSrc(url) : url;
|
|
7051
7051
|
const renderVideo = (item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7052
|
-
|
|
7052
|
+
_chunk4EJU462Ocjs.Video,
|
|
7053
7053
|
{
|
|
7054
7054
|
url: item.src,
|
|
7055
7055
|
poster: item.poster ? displayImageSrc(item.poster) : void 0,
|
|
@@ -7244,7 +7244,7 @@ var formatTimeAgo = (timestamp) => {
|
|
|
7244
7244
|
return `${Math.floor(diffSeconds / 86400)}d ago`;
|
|
7245
7245
|
};
|
|
7246
7246
|
function RedditEmbedClient({ url, maxWidth = 700, rel }) {
|
|
7247
|
-
const postLinkRel =
|
|
7247
|
+
const postLinkRel = _chunkZXFOMNI5cjs.renderedLinkRel.call(void 0, rel, true);
|
|
7248
7248
|
const { redditProxyUrl } = useRichMarkdownRuntime();
|
|
7249
7249
|
const [redditData, setRedditData] = _react.useState.call(void 0, null);
|
|
7250
7250
|
const [loading, setLoading] = _react.useState.call(void 0, true);
|
|
@@ -7482,7 +7482,7 @@ function RedditEmbedClient({ url, maxWidth = 700, rel }) {
|
|
|
7482
7482
|
width: m.width,
|
|
7483
7483
|
height: m.height
|
|
7484
7484
|
}));
|
|
7485
|
-
const formatNumber =
|
|
7485
|
+
const formatNumber = _chunkHY6BCZH7cjs.formatLargeNumber;
|
|
7486
7486
|
const truncateText = (text, maxLength = 600) => {
|
|
7487
7487
|
if (text.length <= maxLength) return text;
|
|
7488
7488
|
return text.slice(0, maxLength) + "...";
|
|
@@ -7576,7 +7576,7 @@ var UserIcon3 = () => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "svg", { wid
|
|
|
7576
7576
|
] });
|
|
7577
7577
|
var XIcon = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2TEMEXDTcjs.XLogoIcon, { className: "h-5 w-5", color: "currentColor" });
|
|
7578
7578
|
function TwitterEmbedClient({ url, tweetId, maxWidth = 700, rel }) {
|
|
7579
|
-
const postLinkRel =
|
|
7579
|
+
const postLinkRel = _chunkZXFOMNI5cjs.renderedLinkRel.call(void 0, rel, true);
|
|
7580
7580
|
const { twitterProxyUrl } = useRichMarkdownRuntime();
|
|
7581
7581
|
const [tweetData, setTweetData] = _react.useState.call(void 0, null);
|
|
7582
7582
|
const [fetchLoading, setLoading] = _react.useState.call(void 0, true);
|
|
@@ -7778,7 +7778,7 @@ function buildRichEmbedOverrides({
|
|
|
7778
7778
|
ogEndpointPath,
|
|
7779
7779
|
textSizes
|
|
7780
7780
|
}) {
|
|
7781
|
-
const standard =
|
|
7781
|
+
const standard = _chunkZXFOMNI5cjs.buildStandardLeafRenderers.call(void 0, { textSizes });
|
|
7782
7782
|
return {
|
|
7783
7783
|
// Fence-language embeds (```youtube-embed etc.); everything else
|
|
7784
7784
|
// (mermaid, highlighted blocks, inline code) falls through to `standard`.
|
|
@@ -7788,7 +7788,7 @@ function buildRichEmbedOverrides({
|
|
|
7788
7788
|
const language = match ? match[1] : "";
|
|
7789
7789
|
const fenceText = () => String(children).replace(/\n$/, "").trim();
|
|
7790
7790
|
if (language === "youtube-embed") {
|
|
7791
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7791
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.Video, { kind: "youtube", url: fenceText() });
|
|
7792
7792
|
}
|
|
7793
7793
|
if (language === "reddit-embed") {
|
|
7794
7794
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RedditEmbedClient, { url: fenceText() });
|
|
@@ -7829,7 +7829,7 @@ function buildRichEmbedOverrides({
|
|
|
7829
7829
|
"data-figma-url": figmaUrl
|
|
7830
7830
|
} = divProps;
|
|
7831
7831
|
if (className === "youtube-embed" && videoId) {
|
|
7832
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7832
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.Video, { kind: "youtube", url: videoId });
|
|
7833
7833
|
}
|
|
7834
7834
|
if (className === "reddit-embed" && postUrl) {
|
|
7835
7835
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RedditEmbedClient, { url: postUrl });
|
|
@@ -7914,23 +7914,23 @@ function buildRichEmbedOverrides({
|
|
|
7914
7914
|
// rich-markdown runtime (Supabase optimization on the hub, identity
|
|
7915
7915
|
// elsewhere). Guard against empty `![]()`.
|
|
7916
7916
|
img: ({ src, alt }) => {
|
|
7917
|
-
if (!
|
|
7917
|
+
if (!_chunkZXFOMNI5cjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7918
7918
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownImage, { src: src.trim(), alt });
|
|
7919
7919
|
},
|
|
7920
7920
|
// Raw <iframe> tags in stored content (a pasted YouTube embed). A YouTube one becomes the same click-to-play
|
|
7921
7921
|
// facade as the `youtube-embed` fence: the raw iframe loaded YouTube's whole player (about 470 KB of script) with
|
|
7922
7922
|
// the page, on every post that carried one (CU-17tkuw5xp4q). Any other iframe loads when it nears the screen.
|
|
7923
7923
|
iframe: ({ node: _node, src, ...rest }) => {
|
|
7924
|
-
if (!
|
|
7924
|
+
if (!_chunkZXFOMNI5cjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7925
7925
|
const url = src.trim();
|
|
7926
|
-
if (
|
|
7926
|
+
if (_chunk4EJU462Ocjs.extractYouTubeId.call(void 0, url)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.Video, { kind: "youtube", url });
|
|
7927
7927
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "iframe", { ...rest, src: url, loading: "lazy" });
|
|
7928
7928
|
},
|
|
7929
7929
|
// Raw <video> tags in stored content (blog publisher injection) route
|
|
7930
7930
|
// to the <Video> SSOT (MuxPlayer) so HLS manifests play everywhere.
|
|
7931
7931
|
video: ({ src, poster, className }) => {
|
|
7932
|
-
if (!
|
|
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,
|
|
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 }) }) });
|
|
7934
7934
|
}
|
|
7935
7935
|
};
|
|
7936
7936
|
}
|
|
@@ -8038,7 +8038,7 @@ var processShortcodes = (content) => {
|
|
|
8038
8038
|
try {
|
|
8039
8039
|
const urlObj = new URL(url);
|
|
8040
8040
|
const hostname = urlObj.hostname.toLowerCase();
|
|
8041
|
-
const hostIs = (domain) =>
|
|
8041
|
+
const hostIs = (domain) => _chunkUBPSA3RMcjs.hostMatches.call(void 0, hostname, domain);
|
|
8042
8042
|
const isYouTubeVideo = hostIs("youtube.com") && urlObj.searchParams.has("v") || hostIs("youtu.be");
|
|
8043
8043
|
if (isYouTubeVideo || hostIs("reddit.com") || hostIs("twitter.com") || hostIs("x.com") || hostIs("figma.com")) {
|
|
8044
8044
|
return match;
|
|
@@ -8115,13 +8115,13 @@ var RichMarkdownInner = ({
|
|
|
8115
8115
|
},
|
|
8116
8116
|
[resolveLinkEndpointUrl, resolveSource]
|
|
8117
8117
|
);
|
|
8118
|
-
const textSizes = _react.useMemo.call(void 0, () =>
|
|
8118
|
+
const textSizes = _react.useMemo.call(void 0, () => _chunkZXFOMNI5cjs.resolveTextSizeConfig.call(void 0, "article"), []);
|
|
8119
8119
|
const componentOverrides = _react.useMemo.call(void 0,
|
|
8120
8120
|
() => buildRichEmbedOverrides({ ogApiBaseUrl, ogEndpointPath, textSizes }),
|
|
8121
8121
|
[ogApiBaseUrl, ogEndpointPath, textSizes]
|
|
8122
8122
|
);
|
|
8123
8123
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8124
|
-
|
|
8124
|
+
_chunkZXFOMNI5cjs.MarkdownEngine,
|
|
8125
8125
|
{
|
|
8126
8126
|
content,
|
|
8127
8127
|
className,
|
|
@@ -8145,7 +8145,7 @@ var RichMarkdownRendererImpl = ({
|
|
|
8145
8145
|
className = "",
|
|
8146
8146
|
sectionIds,
|
|
8147
8147
|
onInternalLinkClick,
|
|
8148
|
-
brokenLinks =
|
|
8148
|
+
brokenLinks = _chunkZXFOMNI5cjs.NO_BROKEN_LINKS,
|
|
8149
8149
|
currentPath,
|
|
8150
8150
|
resolveSource = "openframe-docs",
|
|
8151
8151
|
resolveLinkEndpointUrl = "/api/docs/resolve-link",
|
|
@@ -8190,7 +8190,7 @@ function RichMarkdownRendererSkeleton({
|
|
|
8190
8190
|
title,
|
|
8191
8191
|
className
|
|
8192
8192
|
}) {
|
|
8193
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8193
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZXFOMNI5cjs.MarkdownEngineSkeleton, { sections, title, textSize: "article", className });
|
|
8194
8194
|
}
|
|
8195
8195
|
|
|
8196
8196
|
// src/components/ui/release-changelog-section.tsx
|
|
@@ -9275,7 +9275,7 @@ function FilterModal({
|
|
|
9275
9275
|
const dateDefaultSort = _nullishCoalesce(_optionalChain([dateFilter, 'optionalAccess', _147 => _147.defaultSort]), () => ( "desc"));
|
|
9276
9276
|
const [draftDateSort, setDraftDateSort] = _react.useState.call(void 0, _nullishCoalesce(_optionalChain([dateFilter, 'optionalAccess', _148 => _148.sort]), () => ( dateDefaultSort)));
|
|
9277
9277
|
const [draftDateRange, setDraftDateRange] = _react.useState.call(void 0, _optionalChain([dateFilter, 'optionalAccess', _149 => _149.range]));
|
|
9278
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateFade } =
|
|
9278
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunkZXFOMNI5cjs.useScrollFade.call(void 0, );
|
|
9279
9279
|
const seedKey = `${JSON.stringify(currentFilters)}|${JSON.stringify(_nullishCoalesce(selectedTags, () => ( [])))}`;
|
|
9280
9280
|
const seedSourceRef = _react.useRef.call(void 0, { currentFilters, selectedTags, dateFilter, dateDefaultSort });
|
|
9281
9281
|
_react.useEffect.call(void 0, () => {
|
|
@@ -9321,15 +9321,15 @@ function FilterModal({
|
|
|
9321
9321
|
const hasTagFilter = !!tagFilterKeys && tagFilterKeys.length > 0 && !!onTagsChange;
|
|
9322
9322
|
const isEmpty = !isLoading && !hasSort && !hasFilterGroups && !hasTagFilter && !dateFilter;
|
|
9323
9323
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9324
|
-
|
|
9324
|
+
_chunk5QP3K2CEcjs.Modal,
|
|
9325
9325
|
{
|
|
9326
9326
|
isOpen,
|
|
9327
9327
|
onClose,
|
|
9328
9328
|
className: _chunk65VVJSQZcjs.cn.call(void 0, "max-h-[90vh] max-w-none md:max-w-[min(42rem,calc(100vw-2rem))]", className),
|
|
9329
9329
|
children: [
|
|
9330
|
-
/* @__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 }) }),
|
|
9331
9331
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9332
|
-
|
|
9332
|
+
_chunk5QP3K2CEcjs.ModalContent,
|
|
9333
9333
|
{
|
|
9334
9334
|
className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
9335
9335
|
"flex min-h-0 flex-1 flex-col",
|
|
@@ -9421,12 +9421,12 @@ function FilterModal({
|
|
|
9421
9421
|
] })
|
|
9422
9422
|
}
|
|
9423
9423
|
),
|
|
9424
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9425
|
-
/* @__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 })
|
|
9426
9426
|
] })
|
|
9427
9427
|
}
|
|
9428
9428
|
),
|
|
9429
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9429
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.ModalFooter, { children: [
|
|
9430
9430
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { variant: "outline", className: "h-11 flex-1", onClick: handleReset, children: resetButtonText }),
|
|
9431
9431
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { variant: "accent", className: "h-11 flex-1", onClick: handleApply, children: applyButtonText })
|
|
9432
9432
|
] })
|
|
@@ -9490,7 +9490,7 @@ function renderAdvancedPageContainer({
|
|
|
9490
9490
|
contentClassName,
|
|
9491
9491
|
showHeader = true
|
|
9492
9492
|
}, inScope = false) {
|
|
9493
|
-
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;
|
|
9494
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;
|
|
9495
9495
|
const getActionsVariant = () => {
|
|
9496
9496
|
if (actionsVariant) return actionsVariant;
|
|
@@ -9499,7 +9499,7 @@ function renderAdvancedPageContainer({
|
|
|
9499
9499
|
};
|
|
9500
9500
|
const renderActions = () => {
|
|
9501
9501
|
if (!actions || actions.length === 0) return null;
|
|
9502
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9502
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.PageActions, { variant: getActionsVariant(), actions, menuActions });
|
|
9503
9503
|
};
|
|
9504
9504
|
const needsBottomPadding = actions && actions.length > 0 && getActionsVariant() === "primary-buttons";
|
|
9505
9505
|
const paddingClasses = {
|
|
@@ -9522,7 +9522,7 @@ function renderAdvancedPageContainer({
|
|
|
9522
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: [
|
|
9523
9523
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
9524
9524
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9525
|
-
|
|
9525
|
+
_chunkXI2CHCODcjs.BackButton,
|
|
9526
9526
|
{
|
|
9527
9527
|
onClick: backButton.onClick,
|
|
9528
9528
|
label: backButton.label,
|
|
@@ -9542,7 +9542,7 @@ function renderAdvancedPageContainer({
|
|
|
9542
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: [
|
|
9543
9543
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
9544
9544
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9545
|
-
|
|
9545
|
+
_chunkXI2CHCODcjs.BackButton,
|
|
9546
9546
|
{
|
|
9547
9547
|
onClick: backButton.onClick,
|
|
9548
9548
|
label: backButton.label,
|
|
@@ -9562,7 +9562,7 @@ function renderAdvancedPageContainer({
|
|
|
9562
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: [
|
|
9563
9563
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
9564
9564
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9565
|
-
|
|
9565
|
+
_chunkXI2CHCODcjs.BackButton,
|
|
9566
9566
|
{
|
|
9567
9567
|
onClick: backButton.onClick,
|
|
9568
9568
|
label: backButton.label,
|
|
@@ -9916,7 +9916,7 @@ var BenefitCardGrid = ({ children, className = "", columns = 2 }) => {
|
|
|
9916
9916
|
|
|
9917
9917
|
|
|
9918
9918
|
function PlatformBrowseButton({ item }) {
|
|
9919
|
-
const linkProps =
|
|
9919
|
+
const linkProps = _chunkZXFOMNI5cjs.useNavLinkViaRuntime.call(void 0, { href: item.link, targetPlatform: item.targetPlatform });
|
|
9920
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: [
|
|
9921
9921
|
"Browse ",
|
|
9922
9922
|
item.buttonText
|
|
@@ -10228,7 +10228,7 @@ function DashboardInfoCard({
|
|
|
10228
10228
|
if (percentage === void 0) return null;
|
|
10229
10229
|
if (percentageAsTag) {
|
|
10230
10230
|
const tagVariant = progressVariant === "warning" || progressVariant === "error" ? progressVariant : progressVariant === "success" ? "success" : "grey";
|
|
10231
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10231
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { variant: tagVariant, label: `${percentage}%` });
|
|
10232
10232
|
}
|
|
10233
10233
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: [
|
|
10234
10234
|
"(",
|
|
@@ -10299,7 +10299,7 @@ function DashboardInfoCard({
|
|
|
10299
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 }),
|
|
10300
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 }),
|
|
10301
10301
|
renderPercentage(),
|
|
10302
|
-
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 }) }) })
|
|
10303
10303
|
] }),
|
|
10304
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 })
|
|
10305
10305
|
] }),
|
|
@@ -10413,10 +10413,10 @@ var OSTypeBadge = ({
|
|
|
10413
10413
|
if (!osType) {
|
|
10414
10414
|
return labelOnly ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk65VVJSQZcjs.cn.call(void 0, "text-ods-text-secondary", className), children: "Unknown" }) : null;
|
|
10415
10415
|
}
|
|
10416
|
-
const normalized =
|
|
10416
|
+
const normalized = _chunkUBPSA3RMcjs.normalizeOSType.call(void 0, osType);
|
|
10417
10417
|
if (!normalized && !labelOnly) return null;
|
|
10418
|
-
const label =
|
|
10419
|
-
const IconComponent =
|
|
10418
|
+
const label = _chunkUBPSA3RMcjs.getOSLabel.call(void 0, osType);
|
|
10419
|
+
const IconComponent = _chunkUBPSA3RMcjs.getOSIcon.call(void 0, osType);
|
|
10420
10420
|
if (iconOnly && IconComponent) {
|
|
10421
10421
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: _chunk65VVJSQZcjs.cn.call(void 0, iconSize, "text-ods-text-secondary", className) });
|
|
10422
10422
|
}
|
|
@@ -10453,8 +10453,8 @@ function DeviceCard({
|
|
|
10453
10453
|
}) {
|
|
10454
10454
|
const formatLastSeen = (lastSeen) => {
|
|
10455
10455
|
if (!lastSeen) return null;
|
|
10456
|
-
const date =
|
|
10457
|
-
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)}`;
|
|
10458
10458
|
};
|
|
10459
10459
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10460
10460
|
"div",
|
|
@@ -10513,7 +10513,7 @@ function DeviceCard({
|
|
|
10513
10513
|
] }),
|
|
10514
10514
|
(statusTag || device.lastSeen) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-2", children: [
|
|
10515
10515
|
statusTag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10516
|
-
|
|
10516
|
+
_chunkHY6BCZH7cjs.Tag,
|
|
10517
10517
|
{
|
|
10518
10518
|
variant: statusTag.variant,
|
|
10519
10519
|
icon: statusTag.icon,
|
|
@@ -10527,7 +10527,7 @@ function DeviceCard({
|
|
|
10527
10527
|
formatLastSeen(device.lastSeen)
|
|
10528
10528
|
] })
|
|
10529
10529
|
] }),
|
|
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,
|
|
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)) })
|
|
10531
10531
|
]
|
|
10532
10532
|
}
|
|
10533
10533
|
);
|
|
@@ -10573,7 +10573,7 @@ function DataAttribution({ icon, source, lastUpdated, action }) {
|
|
|
10573
10573
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator3, {}),
|
|
10574
10574
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: UPDATED_CLASS, children: [
|
|
10575
10575
|
"Last updated: ",
|
|
10576
|
-
lastUpdated ?
|
|
10576
|
+
lastUpdated ? _chunkHY6BCZH7cjs.formatDate.call(void 0, lastUpdated) : "Never"
|
|
10577
10577
|
] }),
|
|
10578
10578
|
action ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ACTION_CLASS, children: action }) : null
|
|
10579
10579
|
] });
|
|
@@ -10701,7 +10701,7 @@ function ComplianceLogo({
|
|
|
10701
10701
|
fallback = null,
|
|
10702
10702
|
className
|
|
10703
10703
|
}) {
|
|
10704
|
-
const standard =
|
|
10704
|
+
const standard = _chunkUBPSA3RMcjs.complianceStandardForName.call(void 0, ...names);
|
|
10705
10705
|
if (!standard) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: fallback });
|
|
10706
10706
|
const Official = standard.logo ? COMPLIANCE_LOGOS[standard.logo] : null;
|
|
10707
10707
|
return Official ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10780,7 +10780,7 @@ function FeatureCardGridView({
|
|
|
10780
10780
|
if (allCardsHaveNoBorders) {
|
|
10781
10781
|
finalCardClassName = "bg-transparent p-0 overflow-visible border-0 shadow-none rounded-none";
|
|
10782
10782
|
}
|
|
10783
|
-
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) => {
|
|
10784
10784
|
const startIndex = rowIndex * itemsPerRow;
|
|
10785
10785
|
const rowItems = items.slice(startIndex, startIndex + itemsPerRow);
|
|
10786
10786
|
const isLastRow = rowIndex === rows - 1;
|
|
@@ -10814,7 +10814,7 @@ function FeatureCardGridView({
|
|
|
10814
10814
|
item.icon && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start justify-between", children: [
|
|
10815
10815
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, item.icon, { size: 80, color: item.iconColor }),
|
|
10816
10816
|
item.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10817
|
-
|
|
10817
|
+
_chunk4EJU462Ocjs.StatusBadge,
|
|
10818
10818
|
{
|
|
10819
10819
|
text: item.badge.text,
|
|
10820
10820
|
variant: item.badge.variant || "card",
|
|
@@ -10823,7 +10823,7 @@ function FeatureCardGridView({
|
|
|
10823
10823
|
)
|
|
10824
10824
|
] }),
|
|
10825
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,
|
|
10826
|
-
|
|
10826
|
+
_chunk4EJU462Ocjs.StatusBadge,
|
|
10827
10827
|
{
|
|
10828
10828
|
text: item.badge.text,
|
|
10829
10829
|
variant: item.badge.variant || "card",
|
|
@@ -11004,27 +11004,13 @@ function FeatureList({
|
|
|
11004
11004
|
) : step }, index);
|
|
11005
11005
|
}) });
|
|
11006
11006
|
}
|
|
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,
|
|
11008
|
-
"div",
|
|
11009
|
-
{
|
|
11010
|
-
|
|
11011
|
-
children:
|
|
11012
|
-
|
|
11013
|
-
|
|
11014
|
-
{
|
|
11015
|
-
className: ICON_BOX_CLASS,
|
|
11016
|
-
style: { width: iconBoxSize, height: iconBoxSize },
|
|
11017
|
-
children: item.icon
|
|
11018
|
-
}
|
|
11019
|
-
),
|
|
11020
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: BOXED_TEXT_CLASS, children: [
|
|
11021
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h3", children: item.title }),
|
|
11022
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "normal-case tracking-normal text-ods-text-secondary text-h6", children: item.description })
|
|
11023
|
-
] })
|
|
11024
|
-
]
|
|
11025
|
-
},
|
|
11026
|
-
index
|
|
11027
|
-
)) });
|
|
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)) });
|
|
11028
11014
|
}
|
|
11029
11015
|
function FeatureListSkeleton({
|
|
11030
11016
|
count = FEATURE_LIST_SKELETON_COUNT,
|
|
@@ -11050,7 +11036,7 @@ function FeatureListSkeleton({
|
|
|
11050
11036
|
|
|
11051
11037
|
function SourceTooltip({ intro, sources, note, iconClassName, triggerAnchorProps }) {
|
|
11052
11038
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11053
|
-
|
|
11039
|
+
_chunkHY6BCZH7cjs.FloatingTooltip,
|
|
11054
11040
|
{
|
|
11055
11041
|
as: "span",
|
|
11056
11042
|
side: "top",
|
|
@@ -11438,7 +11424,7 @@ function OrganizationCardSkeleton({
|
|
|
11438
11424
|
"aria-hidden": true,
|
|
11439
11425
|
children: [
|
|
11440
11426
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_HEADER_CLASS, children: [
|
|
11441
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11427
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.EntityImageSkeleton, {}),
|
|
11442
11428
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_TEXT_CLASS, children: [
|
|
11443
11429
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "h3", className: "w-3/4" }),
|
|
11444
11430
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "h6", className: "w-1/2" })
|
|
@@ -11541,7 +11527,7 @@ function OrganizationCard({
|
|
|
11541
11527
|
}
|
|
11542
11528
|
),
|
|
11543
11529
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_HEADER_CLASS, children: [
|
|
11544
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11530
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.EntityImage, { src: fetchedImageUrl || organization.imageUrl, alt: organization.name }),
|
|
11545
11531
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_TEXT_CLASS, children: [
|
|
11546
11532
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "truncate text-ods-text-primary transition-colors text-h3", title: organization.name, children: organization.name }),
|
|
11547
11533
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11591,8 +11577,8 @@ function ServiceCard({ title, subtitle, icon, tag, rows, className }) {
|
|
|
11591
11577
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-4", children: [
|
|
11592
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 }),
|
|
11593
11579
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0", children: [
|
|
11594
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11595
|
-
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 })
|
|
11596
11582
|
] })
|
|
11597
11583
|
] }),
|
|
11598
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 })
|
|
@@ -11625,7 +11611,7 @@ function ServiceCardRowItem({ row }) {
|
|
|
11625
11611
|
),
|
|
11626
11612
|
children: [
|
|
11627
11613
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11628
|
-
|
|
11614
|
+
_chunkHY6BCZH7cjs.FloatingTooltip,
|
|
11629
11615
|
{
|
|
11630
11616
|
content: row.value,
|
|
11631
11617
|
side: "top",
|
|
@@ -11725,17 +11711,17 @@ function PersonCell({
|
|
|
11725
11711
|
const displayName = name || fallbackName;
|
|
11726
11712
|
const scale = PERSON_CELL_SIZE[size];
|
|
11727
11713
|
const row = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `group/person-cell ${PERSON_ROW_CLASS} ${scale.gap}`, children: [
|
|
11728
|
-
/* @__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 }),
|
|
11729
11715
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
11730
11716
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11731
|
-
|
|
11717
|
+
_chunkXI2CHCODcjs.TruncateText,
|
|
11732
11718
|
{
|
|
11733
11719
|
variant: scale.primary,
|
|
11734
11720
|
className: onClick ? "text-ods-accent group-hover/person-cell:underline" : void 0,
|
|
11735
11721
|
children: displayName
|
|
11736
11722
|
}
|
|
11737
11723
|
),
|
|
11738
|
-
/* @__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" })
|
|
11739
11725
|
] })
|
|
11740
11726
|
] });
|
|
11741
11727
|
if (!onClick) return row;
|
|
@@ -11753,7 +11739,7 @@ function PersonCell({
|
|
|
11753
11739
|
function PersonCellSkeleton({ size = "sm" }) {
|
|
11754
11740
|
const scale = PERSON_CELL_SIZE[size];
|
|
11755
11741
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${PERSON_ROW_CLASS} ${scale.gap}`, "aria-hidden": true, children: [
|
|
11756
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11742
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.SquareAvatarSkeleton, { size: scale.avatar }),
|
|
11757
11743
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
11758
11744
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: scale.primary, className: "w-3/4" }),
|
|
11759
11745
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "h6", className: "w-1/2" })
|
|
@@ -11776,9 +11762,9 @@ function PeopleCell({ people, fallbackName = "Unassigned" }) {
|
|
|
11776
11762
|
);
|
|
11777
11763
|
}
|
|
11778
11764
|
const fullNames = people.map((p) => p.name || "Unknown").join(", ");
|
|
11779
|
-
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: [
|
|
11780
11766
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-hidden": true, className: "shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11781
|
-
|
|
11767
|
+
_chunkVFUMM6JCcjs.AvatarStack,
|
|
11782
11768
|
{
|
|
11783
11769
|
size: "sm",
|
|
11784
11770
|
slots: PEOPLE_CELL_STACK_SLOTS,
|
|
@@ -11786,7 +11772,7 @@ function PeopleCell({ people, fallbackName = "Unassigned" }) {
|
|
|
11786
11772
|
}
|
|
11787
11773
|
) }),
|
|
11788
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: [
|
|
11789
|
-
/* @__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(" & ") }),
|
|
11790
11776
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: fullNames })
|
|
11791
11777
|
] })
|
|
11792
11778
|
] }) });
|
|
@@ -12495,7 +12481,7 @@ function TableHeader({
|
|
|
12495
12481
|
onFilterChange
|
|
12496
12482
|
}
|
|
12497
12483
|
),
|
|
12498
|
-
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
|
|
12499
12485
|
] })
|
|
12500
12486
|
) : (
|
|
12501
12487
|
/* Non-filterable column — regular label with optional sort */
|
|
@@ -12521,7 +12507,7 @@ function TableHeader({
|
|
|
12521
12507
|
hint exists, so a hint-less header keeps its DOM. */
|
|
12522
12508
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
12523
12509
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TABLE_HEADER_LABEL_CLASS, children: column.label }),
|
|
12524
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12510
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUBPSA3RMcjs.InfoHint, { label: column.label, children: column.hint })
|
|
12525
12511
|
] })
|
|
12526
12512
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TABLE_HEADER_LABEL_CLASS, children: column.label }),
|
|
12527
12513
|
getSortIcon(column)
|
|
@@ -12631,7 +12617,7 @@ function TableRow({
|
|
|
12631
12617
|
const Row = animate && motionDiv ? motionDiv : "div";
|
|
12632
12618
|
const motionProps = animate ? { layout: "position", transition: { layout: { duration: 0.35, ease: [0.22, 1, 0.36, 1] } } } : {};
|
|
12633
12619
|
const handleRowClick = (e) => {
|
|
12634
|
-
if (!
|
|
12620
|
+
if (!_chunkUBPSA3RMcjs.isOwnClick.call(void 0, e.target, e.currentTarget)) return;
|
|
12635
12621
|
if (onClick) {
|
|
12636
12622
|
onClick(item);
|
|
12637
12623
|
}
|
|
@@ -13027,7 +13013,7 @@ function Table({
|
|
|
13027
13013
|
}
|
|
13028
13014
|
),
|
|
13029
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,
|
|
13030
|
-
|
|
13016
|
+
_chunkQS4G7CHUcjs.Pagination,
|
|
13031
13017
|
{
|
|
13032
13018
|
currentPage: pagePagination.currentPage,
|
|
13033
13019
|
totalPages: pagePagination.totalPages,
|
|
@@ -13060,7 +13046,7 @@ function TableDescriptionCell({ text, className, maxLines = 3 }) {
|
|
|
13060
13046
|
|
|
13061
13047
|
// src/components/ui/table/table-timestamp-cell.tsx
|
|
13062
13048
|
|
|
13063
|
-
var formatLocalTimestamp = (date) =>
|
|
13049
|
+
var formatLocalTimestamp = (date) => _chunkHY6BCZH7cjs.formatDateWithTimezone.call(void 0, date, _chunkHY6BCZH7cjs.VIEWER_TIMEZONE, "localeDateTime", { viewerLocale: true });
|
|
13064
13050
|
function formatTimestampValue(timestamp) {
|
|
13065
13051
|
if (timestamp instanceof Date) {
|
|
13066
13052
|
return formatLocalTimestamp(timestamp);
|
|
@@ -13409,7 +13395,7 @@ function DataTableRowImpl({
|
|
|
13409
13395
|
const containerRef = _react.useRef.call(void 0, null);
|
|
13410
13396
|
const handleClick = _react.useCallback.call(void 0,
|
|
13411
13397
|
(e) => {
|
|
13412
|
-
if (!
|
|
13398
|
+
if (!_chunkUBPSA3RMcjs.isOwnClick.call(void 0, e.target, containerRef.current)) {
|
|
13413
13399
|
if (isLinkMode) e.preventDefault();
|
|
13414
13400
|
return;
|
|
13415
13401
|
}
|
|
@@ -13859,7 +13845,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13859
13845
|
// child of the cell.
|
|
13860
13846
|
_optionalChain([meta, 'optionalAccess', _232 => _232.hint]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13861
13847
|
filterTrigger,
|
|
13862
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13848
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUBPSA3RMcjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
13863
13849
|
] }) : filterTrigger
|
|
13864
13850
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13865
13851
|
"div",
|
|
@@ -13884,7 +13870,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13884
13870
|
// centred on the row.
|
|
13885
13871
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13886
13872
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
13887
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13873
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUBPSA3RMcjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
13888
13874
|
] })
|
|
13889
13875
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
13890
13876
|
canSort && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortIcon, { sorted: sortDir })
|
|
@@ -13990,7 +13976,7 @@ function DataTableInfiniteFooter({
|
|
|
13990
13976
|
var ROW_COUNT_CLASS = "whitespace-nowrap text-ods-text-secondary text-h6";
|
|
13991
13977
|
function DataTableRowCountSkeleton({ label, className }) {
|
|
13992
13978
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk65VVJSQZcjs.cn.call(void 0, ROW_COUNT_CLASS, className), "aria-hidden": true, children: [
|
|
13993
|
-
/* @__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" }),
|
|
13994
13980
|
" ",
|
|
13995
13981
|
label
|
|
13996
13982
|
] });
|
|
@@ -14116,7 +14102,7 @@ function PhoneInput({
|
|
|
14116
14102
|
placeholder = "Phone Number (optional)",
|
|
14117
14103
|
onKeyDown
|
|
14118
14104
|
}) {
|
|
14119
|
-
const { priority, others } = _react.useMemo.call(void 0, () =>
|
|
14105
|
+
const { priority, others } = _react.useMemo.call(void 0, () => _chunkUBPSA3RMcjs.getCountryPhoneData.call(void 0, ), []);
|
|
14120
14106
|
const selectedCountry = _react.useMemo.call(void 0,
|
|
14121
14107
|
() => [...priority, ...others].find((c) => c.code === countryCode),
|
|
14122
14108
|
[countryCode, priority, others]
|
|
@@ -14131,7 +14117,7 @@ function PhoneInput({
|
|
|
14131
14117
|
_optionalChain([onValidationChange, 'optionalCall', _246 => _246(false)]);
|
|
14132
14118
|
return;
|
|
14133
14119
|
}
|
|
14134
|
-
const invalid = !
|
|
14120
|
+
const invalid = !_chunkUBPSA3RMcjs.validatePhoneNumber.call(void 0, phone, countryCode);
|
|
14135
14121
|
setIsInvalid(invalid);
|
|
14136
14122
|
_optionalChain([onValidationChange, 'optionalCall', _247 => _247(invalid)]);
|
|
14137
14123
|
},
|
|
@@ -14151,7 +14137,7 @@ function PhoneInput({
|
|
|
14151
14137
|
}, []);
|
|
14152
14138
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 gap-2", children: [
|
|
14153
14139
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14154
|
-
|
|
14140
|
+
_chunkXI2CHCODcjs.Select,
|
|
14155
14141
|
{
|
|
14156
14142
|
value: countryCode,
|
|
14157
14143
|
onValueChange: (val) => {
|
|
@@ -14162,14 +14148,14 @@ function PhoneInput({
|
|
|
14162
14148
|
},
|
|
14163
14149
|
disabled,
|
|
14164
14150
|
children: [
|
|
14165
|
-
/* @__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: [
|
|
14166
14152
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: selectedCountry.flag }),
|
|
14167
14153
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: selectedCountry.dialCode })
|
|
14168
14154
|
] }) }) }),
|
|
14169
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14170
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14171
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14172
|
-
/* @__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)) })
|
|
14173
14159
|
] })
|
|
14174
14160
|
]
|
|
14175
14161
|
}
|
|
@@ -14201,7 +14187,7 @@ function PhoneInput({
|
|
|
14201
14187
|
] });
|
|
14202
14188
|
}
|
|
14203
14189
|
function CountryOption({ country }) {
|
|
14204
|
-
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: [
|
|
14205
14191
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0", children: country.flag }),
|
|
14206
14192
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary", children: country.dialCode }),
|
|
14207
14193
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-block max-w-[140px] overflow-hidden text-ellipsis whitespace-nowrap", children: country.name })
|
|
@@ -14490,7 +14476,7 @@ function SearchInput({
|
|
|
14490
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, {}) }),
|
|
14491
14477
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: middleRef, className: "flex min-w-0 flex-1 items-center gap-2 overflow-hidden", children: [
|
|
14492
14478
|
visibleChips.map((chip) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14493
|
-
|
|
14479
|
+
_chunkHY6BCZH7cjs.Tag,
|
|
14494
14480
|
{
|
|
14495
14481
|
variant: chipVariantToTagVariant(chip.variant),
|
|
14496
14482
|
label: chip.label,
|
|
@@ -14586,7 +14572,7 @@ function SearchInput({
|
|
|
14586
14572
|
)
|
|
14587
14573
|
] }),
|
|
14588
14574
|
showHiddenTags && hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14589
|
-
|
|
14575
|
+
_chunkXI2CHCODcjs.HiddenTagsPopup,
|
|
14590
14576
|
{
|
|
14591
14577
|
ref: hiddenTagsPopupRef,
|
|
14592
14578
|
items: hiddenChips.map((chip) => ({ label: chip.label, value: chip.id })),
|
|
@@ -14606,7 +14592,7 @@ function SearchInput({
|
|
|
14606
14592
|
}
|
|
14607
14593
|
),
|
|
14608
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,
|
|
14609
|
-
|
|
14595
|
+
_chunkHY6BCZH7cjs.Tag,
|
|
14610
14596
|
{
|
|
14611
14597
|
variant: chipVariantToTagVariant(chip.variant),
|
|
14612
14598
|
label: chip.label,
|
|
@@ -14819,7 +14805,7 @@ function TagSearchInput({
|
|
|
14819
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" }) }),
|
|
14820
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: [
|
|
14821
14807
|
visibleTags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14822
|
-
|
|
14808
|
+
_chunkHY6BCZH7cjs.Tag,
|
|
14823
14809
|
{
|
|
14824
14810
|
variant: "outline",
|
|
14825
14811
|
label: renderTag ? renderTag(tag) : tag.label,
|
|
@@ -14880,7 +14866,7 @@ function TagSearchInput({
|
|
|
14880
14866
|
}
|
|
14881
14867
|
),
|
|
14882
14868
|
showHiddenTags && hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14883
|
-
|
|
14869
|
+
_chunkXI2CHCODcjs.HiddenTagsPopup,
|
|
14884
14870
|
{
|
|
14885
14871
|
ref: hiddenTagsPopupRef,
|
|
14886
14872
|
items: hiddenTags,
|
|
@@ -14907,7 +14893,7 @@ function TagSearchInput({
|
|
|
14907
14893
|
"aria-hidden": "true",
|
|
14908
14894
|
className: "pointer-events-none invisible absolute left-0 top-0 -z-10 flex gap-2",
|
|
14909
14895
|
children: tags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14910
|
-
|
|
14896
|
+
_chunkHY6BCZH7cjs.Tag,
|
|
14911
14897
|
{
|
|
14912
14898
|
variant: "outline",
|
|
14913
14899
|
label: renderTag ? renderTag(tag) : tag.label,
|
|
@@ -14970,8 +14956,8 @@ function MarkdownLinkDialog({ isOpen, initial, editing, onSubmit, onRemove, onCl
|
|
|
14970
14956
|
if (!trimmedUrl) return;
|
|
14971
14957
|
onSubmit({ text: text.trim(), url: trimmedUrl, rel });
|
|
14972
14958
|
};
|
|
14973
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14974
|
-
/* @__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" }) }),
|
|
14975
14961
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14976
14962
|
"form",
|
|
14977
14963
|
{
|
|
@@ -14996,7 +14982,7 @@ function MarkdownLinkDialog({ isOpen, initial, editing, onSubmit, onRemove, onCl
|
|
|
14996
14982
|
),
|
|
14997
14983
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xsf)]", children: [
|
|
14998
14984
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14999
|
-
|
|
14985
|
+
_chunkZXFOMNI5cjs.TabSelector,
|
|
15000
14986
|
{
|
|
15001
14987
|
label: "Search engines",
|
|
15002
14988
|
value: choice,
|
|
@@ -15013,7 +14999,7 @@ function MarkdownLinkDialog({ isOpen, initial, editing, onSubmit, onRemove, onCl
|
|
|
15013
14999
|
]
|
|
15014
15000
|
}
|
|
15015
15001
|
),
|
|
15016
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
15002
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.ModalFooter, { children: [
|
|
15017
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" }),
|
|
15018
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" })
|
|
15019
15005
|
] })
|
|
@@ -15053,7 +15039,7 @@ function useMarkdownLinkCommand() {
|
|
|
15053
15039
|
buttonProps: { "aria-label": "Add or edit a link (ctrl + l)", title: "Add or edit a link (ctrl + l)" },
|
|
15054
15040
|
icon: command.icon,
|
|
15055
15041
|
execute: (state, api) => {
|
|
15056
|
-
const existing =
|
|
15042
|
+
const existing = _chunkZXFOMNI5cjs.findMarkdownLinkAt.call(void 0, state.text, state.selection.start, state.selection.end);
|
|
15057
15043
|
setPending(
|
|
15058
15044
|
existing ? {
|
|
15059
15045
|
api,
|
|
@@ -15084,7 +15070,7 @@ function useMarkdownLinkCommand() {
|
|
|
15084
15070
|
initial: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _304 => _304.initial]), () => ( EMPTY_LINK)),
|
|
15085
15071
|
editing: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _305 => _305.editing]), () => ( false)),
|
|
15086
15072
|
onSubmit: (link) => {
|
|
15087
|
-
if (pending) write(pending,
|
|
15073
|
+
if (pending) write(pending, _chunkZXFOMNI5cjs.formatMarkdownLink.call(void 0, link));
|
|
15088
15074
|
},
|
|
15089
15075
|
onRemove: () => {
|
|
15090
15076
|
if (pending) write(pending, pending.initial.text);
|
|
@@ -15250,7 +15236,7 @@ function MarkdownEditor({
|
|
|
15250
15236
|
setUploadProgress(`Uploading ${file.name}...`);
|
|
15251
15237
|
try {
|
|
15252
15238
|
const url = await onUploadFile(file);
|
|
15253
|
-
const isImage =
|
|
15239
|
+
const isImage = _chunk4EJU462Ocjs.fileMediaType.call(void 0, file) === "image";
|
|
15254
15240
|
const markdown = isImage ? `` : `[${file.name}](${url})`;
|
|
15255
15241
|
insertTextAtCursor(markdown);
|
|
15256
15242
|
_optionalChain([onFileUploaded, 'optionalCall', _308 => _308(url, file.name)]);
|
|
@@ -15380,7 +15366,7 @@ function MarkdownEditor({
|
|
|
15380
15366
|
type: "file",
|
|
15381
15367
|
className: "hidden",
|
|
15382
15368
|
onChange: handleFileInputChange,
|
|
15383
|
-
accept: `${
|
|
15369
|
+
accept: `${_chunk4EJU462Ocjs.IMAGE_FILE_ACCEPT},.pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.zip,.txt`
|
|
15384
15370
|
}
|
|
15385
15371
|
),
|
|
15386
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,
|
|
@@ -15781,7 +15767,7 @@ function matchesAccept2(file, accept) {
|
|
|
15781
15767
|
return patterns.some((pattern) => {
|
|
15782
15768
|
if (pattern.startsWith(".")) return fileName.endsWith(pattern);
|
|
15783
15769
|
if (pattern.endsWith("/*"))
|
|
15784
|
-
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);
|
|
15785
15771
|
return fileType === pattern;
|
|
15786
15772
|
});
|
|
15787
15773
|
}
|
|
@@ -15789,7 +15775,7 @@ function ImageUploader({
|
|
|
15789
15775
|
value,
|
|
15790
15776
|
onChange,
|
|
15791
15777
|
onRemove,
|
|
15792
|
-
accept =
|
|
15778
|
+
accept = _chunk4EJU462Ocjs.IMAGE_FILE_ACCEPT,
|
|
15793
15779
|
maxSize = DEFAULT_MAX_SIZE,
|
|
15794
15780
|
label = "Cover Image",
|
|
15795
15781
|
description = "(Click Here or Drag and Drop)",
|
|
@@ -16027,13 +16013,13 @@ function ColorPresetSelect({
|
|
|
16027
16013
|
...presets.map((p) => ({
|
|
16028
16014
|
id: p.key,
|
|
16029
16015
|
label: p.label,
|
|
16030
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16016
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ColorSwatch, { color: p.color }),
|
|
16031
16017
|
onClick: () => onChange({ color: p.color, preset: p.key })
|
|
16032
16018
|
})),
|
|
16033
16019
|
{
|
|
16034
16020
|
id: CUSTOM_PRESET_KEY,
|
|
16035
16021
|
label: "Custom",
|
|
16036
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16022
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ColorSwatch, { color: isCustom ? value : DEFAULT_CUSTOM_STATUS_COLOR }),
|
|
16037
16023
|
onClick: () => onChange({ color: value, preset: void 0 })
|
|
16038
16024
|
}
|
|
16039
16025
|
]
|
|
@@ -16050,7 +16036,7 @@ function ColorPresetSelect({
|
|
|
16050
16036
|
{
|
|
16051
16037
|
disabled,
|
|
16052
16038
|
"aria-label": `Color: ${displayLabel}`,
|
|
16053
|
-
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16039
|
+
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ColorSwatch, { color: displayColor }),
|
|
16054
16040
|
selectedLabel: displayLabel,
|
|
16055
16041
|
endIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TriggerChevron, {}),
|
|
16056
16042
|
className: _chunk65VVJSQZcjs.cn.call(void 0, "group", className)
|
|
@@ -16182,7 +16168,7 @@ function ColorPickerInput({ value, onChange, disabled, className }) {
|
|
|
16182
16168
|
{
|
|
16183
16169
|
disabled,
|
|
16184
16170
|
"aria-label": "Pick custom color",
|
|
16185
|
-
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16171
|
+
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ColorSwatch, { color: value }),
|
|
16186
16172
|
selectedLabel: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase", children: value }),
|
|
16187
16173
|
endIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TriggerChevron, {}),
|
|
16188
16174
|
className: _chunk65VVJSQZcjs.cn.call(void 0, "group", className)
|
|
@@ -16255,7 +16241,7 @@ function TicketStatusConfigRow({
|
|
|
16255
16241
|
const previewVariant = _nullishCoalesce(systemTagVariant, () => ( (isSystem ? void 0 : "primary")));
|
|
16256
16242
|
const fieldRowOffset = "mt-[calc(var(--font-line-space-h4-body)+0.25rem)]";
|
|
16257
16243
|
const chip = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16258
|
-
|
|
16244
|
+
_chunkEHJE3UWZcjs.TicketStatusTag,
|
|
16259
16245
|
{
|
|
16260
16246
|
status: statusKey,
|
|
16261
16247
|
label: name || " ",
|
|
@@ -16362,7 +16348,7 @@ function TicketStatusConfigRow({
|
|
|
16362
16348
|
),
|
|
16363
16349
|
children: [
|
|
16364
16350
|
!isSystem && moveButtons,
|
|
16365
|
-
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,
|
|
16366
16352
|
"button",
|
|
16367
16353
|
{
|
|
16368
16354
|
type: "button",
|
|
@@ -16370,7 +16356,7 @@ function TicketStatusConfigRow({
|
|
|
16370
16356
|
className: "flex size-6 items-center justify-center text-ods-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-ods-focus",
|
|
16371
16357
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRHC2FRVEcjs.InfoCircleIcon, { size: 24 })
|
|
16372
16358
|
}
|
|
16373
|
-
) }) }) : /* @__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,
|
|
16374
16360
|
_chunkTF5D5MNOcjs.Button,
|
|
16375
16361
|
{
|
|
16376
16362
|
type: "button",
|
|
@@ -16409,7 +16395,7 @@ var SKELETON_COLUMNS = 6;
|
|
|
16409
16395
|
function TestResultsSkeleton({
|
|
16410
16396
|
region = true
|
|
16411
16397
|
} = {}) {
|
|
16412
|
-
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: [
|
|
16413
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}`)) }),
|
|
16414
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}`)) }) })
|
|
16415
16401
|
] }) }) });
|
|
@@ -16444,7 +16430,7 @@ function TestResultsTable({ rows, loading }) {
|
|
|
16444
16430
|
if (loading) {
|
|
16445
16431
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TestResultsSkeleton, {});
|
|
16446
16432
|
}
|
|
16447
|
-
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: [
|
|
16448
16434
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTable.Header, { className: "flex flex-col" }),
|
|
16449
16435
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTable.Body, { loading: false })
|
|
16450
16436
|
] }) }) });
|
|
@@ -16506,7 +16492,7 @@ var TEST_RUN_STATUS_TAGS = {
|
|
|
16506
16492
|
function TestRunStatusStat({ status, className }) {
|
|
16507
16493
|
const tag = status === "idle" ? null : TEST_RUN_STATUS_TAGS[status];
|
|
16508
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: [
|
|
16509
|
-
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: "-" }),
|
|
16510
16496
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: "Status" })
|
|
16511
16497
|
] });
|
|
16512
16498
|
}
|
|
@@ -16550,7 +16536,7 @@ function useTestRunState(campaign) {
|
|
|
16550
16536
|
const stopReason = _nullishCoalesce(campaign.stopReason, () => ( "completed"));
|
|
16551
16537
|
const status = isActive ? "running" : hasRun && isFinished ? stopReason === "completed" ? firstError ? "error" : "success" : stopReason : "idle";
|
|
16552
16538
|
const showTiming = hasRun && campaign.startedAt !== null && (campaign.isRunning || isFinished);
|
|
16553
|
-
const startedLabel = showTiming && campaign.startedAt ?
|
|
16539
|
+
const startedLabel = showTiming && campaign.startedAt ? _chunk5QP3K2CEcjs.formatTime.call(void 0, campaign.startedAt) : "00:00 PM";
|
|
16554
16540
|
const durationLabel = showTiming ? formatTestRunDuration(durationMs) : "00:00:00";
|
|
16555
16541
|
const displayRows = _react.useMemo.call(void 0,
|
|
16556
16542
|
() => campaign.results.map(
|
|
@@ -16589,7 +16575,7 @@ function TicketAttachmentsList({ attachments, className, size = "default" }) {
|
|
|
16589
16575
|
),
|
|
16590
16576
|
children: [
|
|
16591
16577
|
attachment.thumbnailSrc ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16592
|
-
|
|
16578
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
16593
16579
|
{
|
|
16594
16580
|
src: attachment.thumbnailSrc,
|
|
16595
16581
|
alt: attachment.fileName,
|
|
@@ -16682,7 +16668,7 @@ function TicketNoteCard({ note, onEdit, onDelete, className }) {
|
|
|
16682
16668
|
};
|
|
16683
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: [
|
|
16684
16670
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16685
|
-
|
|
16671
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
16686
16672
|
{
|
|
16687
16673
|
src: note.authorAvatar,
|
|
16688
16674
|
alt: note.authorName,
|
|
@@ -16858,7 +16844,7 @@ function TicketInfoSection({
|
|
|
16858
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: [
|
|
16859
16845
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
16860
16846
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16861
|
-
|
|
16847
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
16862
16848
|
{
|
|
16863
16849
|
src: _optionalChain([organization, 'optionalAccess', _344 => _344.imageSrc]),
|
|
16864
16850
|
alt: _optionalChain([organization, 'optionalAccess', _345 => _345.name]),
|
|
@@ -16888,7 +16874,7 @@ function TicketInfoSection({
|
|
|
16888
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]) }),
|
|
16889
16875
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-4", children: [
|
|
16890
16876
|
(status || statusLabel) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16891
|
-
|
|
16877
|
+
_chunkEHJE3UWZcjs.TicketStatusTag,
|
|
16892
16878
|
{
|
|
16893
16879
|
status: _nullishCoalesce(status, () => ( "")),
|
|
16894
16880
|
label: statusLabel,
|
|
@@ -16927,9 +16913,9 @@ function TicketInfoSection({
|
|
|
16927
16913
|
expanded && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
16928
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" }) }),
|
|
16929
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: [
|
|
16930
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16916
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZXFOMNI5cjs.SimpleMarkdownRenderer, { content: description }),
|
|
16931
16917
|
attachments && attachments.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Attachments", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketAttachmentsList, { attachments }) }),
|
|
16932
|
-
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)) }) }),
|
|
16933
16919
|
(notes || onAddNote) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Notes", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16934
16920
|
TicketNotesSection,
|
|
16935
16921
|
{
|
|
@@ -16952,8 +16938,8 @@ function renderTicketStatusOption(option, isSelected) {
|
|
|
16952
16938
|
const { label, color } = option;
|
|
16953
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: [
|
|
16954
16940
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
16955
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16956
|
-
/* @__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 }) })
|
|
16957
16943
|
] }),
|
|
16958
16944
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
16959
16945
|
] });
|
|
@@ -16962,8 +16948,8 @@ function renderTicketAssigneeOption(option, isSelected) {
|
|
|
16962
16948
|
const { label, imageUrl } = option;
|
|
16963
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: [
|
|
16964
16950
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
16965
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16966
|
-
/* @__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 }) })
|
|
16967
16953
|
] }),
|
|
16968
16954
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
16969
16955
|
] });
|
|
@@ -16997,9 +16983,9 @@ function TakeOverTicketModal({
|
|
|
16997
16983
|
if (!selectedStatusId || !assigneeId || isPending) return;
|
|
16998
16984
|
onConfirm({ statusId: selectedStatusId, assigneeId });
|
|
16999
16985
|
};
|
|
17000
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16986
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
17001
16987
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
17002
|
-
/* @__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" }) }),
|
|
17003
16989
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
17004
16990
|
"The ticket ",
|
|
17005
16991
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-accent", children: ticketRef }),
|
|
@@ -17007,19 +16993,19 @@ function TakeOverTicketModal({
|
|
|
17007
16993
|
] }),
|
|
17008
16994
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)] md:flex-row", children: [
|
|
17009
16995
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17010
|
-
|
|
16996
|
+
_chunkXI2CHCODcjs.Autocomplete,
|
|
17011
16997
|
{
|
|
17012
16998
|
label: "Status",
|
|
17013
16999
|
options: statusOptions,
|
|
17014
17000
|
value: selectedStatusId,
|
|
17015
17001
|
onChange: setStatusId,
|
|
17016
17002
|
placeholder: "Select Status",
|
|
17017
|
-
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17003
|
+
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ColorSwatch, { color: selectedStatus.color }) : void 0,
|
|
17018
17004
|
renderOption: renderTicketStatusOption
|
|
17019
17005
|
}
|
|
17020
17006
|
) }),
|
|
17021
17007
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17022
|
-
|
|
17008
|
+
_chunkXI2CHCODcjs.Autocomplete,
|
|
17023
17009
|
{
|
|
17024
17010
|
label: "Assigned",
|
|
17025
17011
|
options: assigneeOptions,
|
|
@@ -17028,7 +17014,7 @@ function TakeOverTicketModal({
|
|
|
17028
17014
|
placeholder: "Select Technician",
|
|
17029
17015
|
loading: assigneesLoading,
|
|
17030
17016
|
startAdornment: selectedAssignee ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17031
|
-
|
|
17017
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
17032
17018
|
{
|
|
17033
17019
|
src: selectedAssignee.imageUrl,
|
|
17034
17020
|
alt: selectedAssignee.label,
|
|
@@ -17041,7 +17027,7 @@ function TakeOverTicketModal({
|
|
|
17041
17027
|
}
|
|
17042
17028
|
) })
|
|
17043
17029
|
] }),
|
|
17044
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17030
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.ModalFooter, { children: [
|
|
17045
17031
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
17046
17032
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
17047
17033
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -17100,9 +17086,9 @@ function ReopenTicketModal({
|
|
|
17100
17086
|
reason: trimmedReason ? trimmedReason.slice(0, REASON_MAX_LENGTH) : null
|
|
17101
17087
|
});
|
|
17102
17088
|
};
|
|
17103
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17089
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
17104
17090
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
17105
|
-
/* @__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" }) }),
|
|
17106
17092
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
17107
17093
|
"The ticket ",
|
|
17108
17094
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-accent", children: ticketRef }),
|
|
@@ -17110,19 +17096,19 @@ function ReopenTicketModal({
|
|
|
17110
17096
|
] }),
|
|
17111
17097
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)] md:flex-row", children: [
|
|
17112
17098
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17113
|
-
|
|
17099
|
+
_chunkXI2CHCODcjs.Autocomplete,
|
|
17114
17100
|
{
|
|
17115
17101
|
label: "Status",
|
|
17116
17102
|
options: statusOptions,
|
|
17117
17103
|
value: selectedStatusId,
|
|
17118
17104
|
onChange: setStatusId,
|
|
17119
17105
|
placeholder: "Select Status",
|
|
17120
|
-
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17106
|
+
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ColorSwatch, { color: selectedStatus.color }) : void 0,
|
|
17121
17107
|
renderOption: renderTicketStatusOption
|
|
17122
17108
|
}
|
|
17123
17109
|
) }),
|
|
17124
17110
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17125
|
-
|
|
17111
|
+
_chunkXI2CHCODcjs.Autocomplete,
|
|
17126
17112
|
{
|
|
17127
17113
|
label: "Assigned",
|
|
17128
17114
|
options: assigneeOptions,
|
|
@@ -17131,7 +17117,7 @@ function ReopenTicketModal({
|
|
|
17131
17117
|
placeholder: "Select Technician",
|
|
17132
17118
|
loading: assigneesLoading,
|
|
17133
17119
|
startAdornment: selectedAssignee ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17134
|
-
|
|
17120
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
17135
17121
|
{
|
|
17136
17122
|
src: selectedAssignee.imageUrl,
|
|
17137
17123
|
alt: selectedAssignee.label,
|
|
@@ -17155,7 +17141,7 @@ function ReopenTicketModal({
|
|
|
17155
17141
|
disabled: isPending
|
|
17156
17142
|
}
|
|
17157
17143
|
) }),
|
|
17158
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17144
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.ModalFooter, { children: [
|
|
17159
17145
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
17160
17146
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
17161
17147
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -17204,9 +17190,9 @@ function ReopenTicketRequestModal({
|
|
|
17204
17190
|
...showHandoffOption ? { handoffToTechnician: handoff } : {}
|
|
17205
17191
|
});
|
|
17206
17192
|
};
|
|
17207
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17193
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
17208
17194
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
17209
|
-
/* @__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" }) }),
|
|
17210
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." }),
|
|
17211
17197
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17212
17198
|
Textarea,
|
|
@@ -17230,7 +17216,7 @@ function ReopenTicketRequestModal({
|
|
|
17230
17216
|
disabled: isPending
|
|
17231
17217
|
}
|
|
17232
17218
|
),
|
|
17233
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17219
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.ModalFooter, { children: [
|
|
17234
17220
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1", children: "Cancel" }),
|
|
17235
17221
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { type: "button", variant: "accent", onClick: handleConfirm, loading: isPending, className: "flex-1", children: "Reopen Ticket" })
|
|
17236
17222
|
] })
|
|
@@ -17396,7 +17382,7 @@ function PhotoWall({
|
|
|
17396
17382
|
gap: COLUMN_GAP_PX
|
|
17397
17383
|
};
|
|
17398
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,
|
|
17399
|
-
|
|
17385
|
+
_chunkZXFOMNI5cjs.MarqueeWall,
|
|
17400
17386
|
{
|
|
17401
17387
|
axis: "y",
|
|
17402
17388
|
reverse: index % 2 === 1,
|
|
@@ -17614,19 +17600,10 @@ function ProductScreenFrame({
|
|
|
17614
17600
|
className: _chunk65VVJSQZcjs.cn.call(void 0, "relative overflow-hidden", className),
|
|
17615
17601
|
style: { height },
|
|
17616
17602
|
children: [
|
|
17617
|
-
/* @__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,
|
|
17618
|
-
"div",
|
|
17619
|
-
{
|
|
17620
|
-
|
|
17621
|
-
"aria-hidden": true,
|
|
17622
|
-
className: "ods-content-area",
|
|
17623
|
-
style: screenStyle,
|
|
17624
|
-
children: [
|
|
17625
|
-
/* @__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 }) }),
|
|
17626
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
|
|
17627
|
-
]
|
|
17628
|
-
}
|
|
17629
|
-
) }) }),
|
|
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
|
+
] }) }) }),
|
|
17630
17607
|
fade && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17631
17608
|
"div",
|
|
17632
17609
|
{
|
|
@@ -17760,7 +17737,7 @@ function PhoneFrame({ dateLabel, timeLabel, children, className }) {
|
|
|
17760
17737
|
"div",
|
|
17761
17738
|
{
|
|
17762
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),
|
|
17763
|
-
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: [
|
|
17764
17741
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17765
17742
|
"div",
|
|
17766
17743
|
{
|
|
@@ -17952,7 +17929,7 @@ var TRIAL_TERM_ICONS = {
|
|
|
17952
17929
|
};
|
|
17953
17930
|
var DEFAULT_TRIAL_TERMS = ["cancel", "length", "noContract"];
|
|
17954
17931
|
function trialBenefits(trialDays, terms = DEFAULT_TRIAL_TERMS) {
|
|
17955
|
-
const labels =
|
|
17932
|
+
const labels = _chunkUBPSA3RMcjs.trialLabels.call(void 0, trialDays);
|
|
17956
17933
|
return terms.flatMap((term) => {
|
|
17957
17934
|
const label = labels[term];
|
|
17958
17935
|
return label ? [{ icon: TRIAL_TERM_ICONS[term], label }] : [];
|
|
@@ -18049,7 +18026,7 @@ function AnalyzingState({ label, className }) {
|
|
|
18049
18026
|
}) }),
|
|
18050
18027
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1.5 text-center text-ods-text-secondary text-h4", children: [
|
|
18051
18028
|
label,
|
|
18052
|
-
/* @__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" })
|
|
18053
18030
|
] })
|
|
18054
18031
|
] });
|
|
18055
18032
|
}
|
|
@@ -18063,7 +18040,7 @@ var INCIDENT_TONE = {
|
|
|
18063
18040
|
approved: "success"
|
|
18064
18041
|
};
|
|
18065
18042
|
function IncidentStatusLine({ status, label, className }) {
|
|
18066
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18043
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.StatusLine, { tone: INCIDENT_TONE[status], label, className });
|
|
18067
18044
|
}
|
|
18068
18045
|
var FEED_CLASS = "flex min-h-0 flex-1 flex-col gap-3 overflow-hidden p-4 md:px-5";
|
|
18069
18046
|
var FEED_BOTTOM_CLASS = "justify-end [mask-image:linear-gradient(180deg,transparent_0,#000_48px)]";
|
|
@@ -18080,13 +18057,7 @@ function ItemMeta({ item }) {
|
|
|
18080
18057
|
item.time && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary text-h6", children: item.time })
|
|
18081
18058
|
] });
|
|
18082
18059
|
}
|
|
18083
|
-
function IncidentFeed({
|
|
18084
|
-
items,
|
|
18085
|
-
statusLabels,
|
|
18086
|
-
emptyLabel,
|
|
18087
|
-
anchor = "top",
|
|
18088
|
-
className
|
|
18089
|
-
}) {
|
|
18060
|
+
function IncidentFeed({ items, statusLabels, emptyLabel, anchor = "top", className }) {
|
|
18090
18061
|
const lastIndex = items.length - 1;
|
|
18091
18062
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, FEED_CLASS, anchor === "bottom" && FEED_BOTTOM_CLASS, className), children: [
|
|
18092
18063
|
items.length === 0 && emptyLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AnalyzingState, { label: emptyLabel, className: "m-auto" }),
|
|
@@ -18378,7 +18349,7 @@ function SuperUserBannerView({ tenantName, environmentLabel, className }) {
|
|
|
18378
18349
|
endAdornment: (
|
|
18379
18350
|
// Below `md` the chip would take the width the tenant name needs, and
|
|
18380
18351
|
// the name is the point of the strip: the chip waits for `md`.
|
|
18381
|
-
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
|
|
18382
18353
|
)
|
|
18383
18354
|
}
|
|
18384
18355
|
);
|
|
@@ -18857,7 +18828,7 @@ function SsoProviderButtons({
|
|
|
18857
18828
|
// where a long organization name would otherwise push the label out of a phone-width
|
|
18858
18829
|
// button. `block` over its inline-flex, because an ellipsis only renders on a block box.
|
|
18859
18830
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18860
|
-
|
|
18831
|
+
_chunk4EJU462Ocjs.StatusBadge,
|
|
18861
18832
|
{
|
|
18862
18833
|
text: tag,
|
|
18863
18834
|
variant: "button",
|
|
@@ -18916,7 +18887,7 @@ function CompleteAccountForm({
|
|
|
18916
18887
|
),
|
|
18917
18888
|
children: [
|
|
18918
18889
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
18919
|
-
/* @__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) }),
|
|
18920
18891
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
18921
18892
|
] }),
|
|
18922
18893
|
ssoProviders && ssoProviders.length > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -19064,7 +19035,7 @@ function CreateOrganizationForm({
|
|
|
19064
19035
|
),
|
|
19065
19036
|
children: [
|
|
19066
19037
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
19067
|
-
/* @__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) }),
|
|
19068
19039
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19069
19040
|
] }),
|
|
19070
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,
|
|
@@ -19205,7 +19176,7 @@ function InviteLinkInvalidModal({
|
|
|
19205
19176
|
),
|
|
19206
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: [
|
|
19207
19178
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-mf)]", children: [
|
|
19208
|
-
/* @__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) }),
|
|
19209
19180
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19210
19181
|
"button",
|
|
19211
19182
|
{
|
|
@@ -19286,7 +19257,7 @@ function LoginForm({
|
|
|
19286
19257
|
),
|
|
19287
19258
|
children: [
|
|
19288
19259
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
19289
|
-
/* @__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) }),
|
|
19290
19261
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19291
19262
|
] }),
|
|
19292
19263
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19412,7 +19383,7 @@ function NoAccountNotice({
|
|
|
19412
19383
|
),
|
|
19413
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: [
|
|
19414
19385
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
19415
|
-
/* @__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) }),
|
|
19416
19387
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: description })
|
|
19417
19388
|
] }),
|
|
19418
19389
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { type: "button", variant: "outline", fullWidth: true, onClick: onBackToLogin, children: backLabel })
|
|
@@ -19461,7 +19432,7 @@ function OpenFrameSsoLoginForm({
|
|
|
19461
19432
|
),
|
|
19462
19433
|
children: [
|
|
19463
19434
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
19464
|
-
/* @__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) }),
|
|
19465
19436
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19466
19437
|
] }),
|
|
19467
19438
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19566,7 +19537,7 @@ function OpenFrameSsoSignUpForm({
|
|
|
19566
19537
|
),
|
|
19567
19538
|
children: [
|
|
19568
19539
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
19569
|
-
/* @__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) }),
|
|
19570
19541
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19571
19542
|
] }),
|
|
19572
19543
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19672,7 +19643,7 @@ function PasswordResetForm({
|
|
|
19672
19643
|
),
|
|
19673
19644
|
children: [
|
|
19674
19645
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
19675
|
-
/* @__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) }),
|
|
19676
19647
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19677
19648
|
] }),
|
|
19678
19649
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19789,12 +19760,12 @@ function SsoJoinForm({
|
|
|
19789
19760
|
),
|
|
19790
19761
|
children: [
|
|
19791
19762
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
19792
|
-
/* @__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) }),
|
|
19793
19764
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19794
19765
|
] }),
|
|
19795
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: [
|
|
19796
19767
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19797
|
-
|
|
19768
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
19798
19769
|
{
|
|
19799
19770
|
size: "lg",
|
|
19800
19771
|
variant: "round",
|
|
@@ -19808,7 +19779,7 @@ function SsoJoinForm({
|
|
|
19808
19779
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h4", children: displayName }),
|
|
19809
19780
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: organizationName })
|
|
19810
19781
|
] }),
|
|
19811
|
-
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)) })
|
|
19812
19783
|
] }),
|
|
19813
19784
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19814
19785
|
CheckboxBlock,
|
|
@@ -20051,7 +20022,7 @@ function ChangelogManager({
|
|
|
20051
20022
|
),
|
|
20052
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)" }) }),
|
|
20053
20024
|
tagOptions && tagLabelOf(entry.tag) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20054
|
-
|
|
20025
|
+
_chunk4EJU462Ocjs.StatusBadge,
|
|
20055
20026
|
{
|
|
20056
20027
|
variant: "button",
|
|
20057
20028
|
singleLine: true,
|
|
@@ -20115,9 +20086,9 @@ function ChangelogManager({
|
|
|
20115
20086
|
] }),
|
|
20116
20087
|
tagOptions && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-1", children: [
|
|
20117
20088
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFL2RMEDXcjs.Label, { className: "text-ods-text-secondary", children: tagLabel }),
|
|
20118
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
20119
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20120
|
-
/* @__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)) })
|
|
20121
20092
|
] })
|
|
20122
20093
|
] })
|
|
20123
20094
|
] })
|
|
@@ -20270,30 +20241,13 @@ function CommandBox({
|
|
|
20270
20241
|
children: command
|
|
20271
20242
|
}
|
|
20272
20243
|
);
|
|
20273
|
-
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,
|
|
20274
|
-
FadePreview,
|
|
20275
|
-
{
|
|
20276
|
-
fixedHeight: true,
|
|
20277
|
-
collapsedHeight: fixedCommandHeight(visibleLines),
|
|
20278
|
-
labels: COMMAND_TOGGLE_LABELS,
|
|
20279
|
-
children: text
|
|
20280
|
-
}
|
|
20281
|
-
) }) : 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;
|
|
20282
20245
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, COMMAND_BOX_CLASS, className), children: [
|
|
20283
20246
|
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: COMMAND_BOX_TITLE_CLASS, children: title }),
|
|
20284
20247
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: COMMAND_BOX_FRAME_CLASS, children: [
|
|
20285
20248
|
onCopy ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: COMMAND_BOX_COPY_ROW_CLASS, children: [
|
|
20286
20249
|
commandText,
|
|
20287
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20288
|
-
"button",
|
|
20289
|
-
{
|
|
20290
|
-
type: "button",
|
|
20291
|
-
onClick: onCopy,
|
|
20292
|
-
"aria-label": copyAriaLabel,
|
|
20293
|
-
className: COMMAND_BOX_COPY_BUTTON_CLASS,
|
|
20294
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFYZGRMOLcjs.Copy02Icon, { className: "h-5 w-5" })
|
|
20295
|
-
}
|
|
20296
|
-
)
|
|
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" }) })
|
|
20297
20251
|
] }) : commandText,
|
|
20298
20252
|
(primaryAction || secondaryAction) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: COMMAND_BOX_ACTIONS_CLASS, children: [
|
|
20299
20253
|
secondaryAction && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -20415,11 +20369,11 @@ function EntityTagBadgesSkeleton({
|
|
|
20415
20369
|
i >= count && "content-md:hidden"
|
|
20416
20370
|
),
|
|
20417
20371
|
"data-loading-item": true,
|
|
20418
|
-
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))) })
|
|
20419
20373
|
},
|
|
20420
20374
|
i
|
|
20421
20375
|
)),
|
|
20422
|
-
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) }) })
|
|
20423
20377
|
] });
|
|
20424
20378
|
}
|
|
20425
20379
|
function EntityTagBadges({
|
|
@@ -20456,7 +20410,7 @@ function EntityTagBadges({
|
|
|
20456
20410
|
const label = (tag.name || "").toUpperCase();
|
|
20457
20411
|
if (basePath && tag.slug) {
|
|
20458
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,
|
|
20459
|
-
|
|
20413
|
+
_chunk4EJU462Ocjs.StatusBadge,
|
|
20460
20414
|
{
|
|
20461
20415
|
text: label,
|
|
20462
20416
|
variant: "card",
|
|
@@ -20464,7 +20418,7 @@ function EntityTagBadges({
|
|
|
20464
20418
|
}
|
|
20465
20419
|
) }, key);
|
|
20466
20420
|
}
|
|
20467
|
-
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);
|
|
20468
20422
|
}),
|
|
20469
20423
|
phoneOverflow === overflow ? overflow > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OverflowBadge, { count: overflow }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
20470
20424
|
phoneOverflow > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OverflowBadge, { count: phoneOverflow, className: "content-md:hidden" }),
|
|
@@ -20473,7 +20427,7 @@ function EntityTagBadges({
|
|
|
20473
20427
|
] });
|
|
20474
20428
|
}
|
|
20475
20429
|
function OverflowBadge({ count, className }) {
|
|
20476
|
-
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") }) });
|
|
20477
20431
|
}
|
|
20478
20432
|
|
|
20479
20433
|
// src/components/features/error-boundary.tsx
|
|
@@ -20568,7 +20522,7 @@ var SectionButton = ({
|
|
|
20568
20522
|
}
|
|
20569
20523
|
),
|
|
20570
20524
|
section.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20571
|
-
|
|
20525
|
+
_chunk4EJU462Ocjs.StatusBadge,
|
|
20572
20526
|
{
|
|
20573
20527
|
text: section.badge.text,
|
|
20574
20528
|
variant: section.badge.variant || "button",
|
|
@@ -20587,7 +20541,7 @@ var SectionButton = ({
|
|
|
20587
20541
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-wrap items-start gap-2", children: [
|
|
20588
20542
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk65VVJSQZcjs.cn.call(void 0, titleClasses, "text-h3"), style: { textAlign: "left" }, children: section.title }),
|
|
20589
20543
|
section.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20590
|
-
|
|
20544
|
+
_chunk4EJU462Ocjs.StatusBadge,
|
|
20591
20545
|
{
|
|
20592
20546
|
text: section.badge.text,
|
|
20593
20547
|
variant: section.badge.variant || "button",
|
|
@@ -21652,15 +21606,15 @@ function useLoading() {
|
|
|
21652
21606
|
|
|
21653
21607
|
|
|
21654
21608
|
function isAlreadyThere(file, existing) {
|
|
21655
|
-
const key =
|
|
21609
|
+
const key = _chunk4EJU462Ocjs.mediaNameKey.call(void 0, file.name);
|
|
21656
21610
|
if (!key) return false;
|
|
21657
21611
|
return existing.some(
|
|
21658
|
-
(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)
|
|
21659
21613
|
);
|
|
21660
21614
|
}
|
|
21661
21615
|
var isFileDrag = (event) => Array.from(event.dataTransfer.types).includes("Files");
|
|
21662
|
-
var isVideoItem = (item) =>
|
|
21663
|
-
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 };
|
|
21664
21618
|
var MEDIA_KIND_COPY = {
|
|
21665
21619
|
image: { noun: "pictures", refusal: "Not a picture" },
|
|
21666
21620
|
video: { noun: "videos", refusal: "Not a video" },
|
|
@@ -21684,12 +21638,12 @@ function useMediaIntake({ existing, onUpload, onUploaded, kinds = "both" }) {
|
|
|
21684
21638
|
const seen = /* @__PURE__ */ new Set();
|
|
21685
21639
|
const accepted = [];
|
|
21686
21640
|
for (const file of files) {
|
|
21687
|
-
const mediaType =
|
|
21641
|
+
const mediaType = _chunk4EJU462Ocjs.fileMediaType.call(void 0, file);
|
|
21688
21642
|
if (!mediaType || kinds !== "both" && mediaType !== kinds) {
|
|
21689
21643
|
unsupported.push(file.name);
|
|
21690
21644
|
continue;
|
|
21691
21645
|
}
|
|
21692
|
-
const contentKey = await
|
|
21646
|
+
const contentKey = await _chunk4EJU462Ocjs.fileContentKey.call(void 0, file).catch(() => `${file.name}:${file.size}`);
|
|
21693
21647
|
if (seen.has(contentKey) || isAlreadyThere(file, existingRef.current)) {
|
|
21694
21648
|
duplicates.push(file.name);
|
|
21695
21649
|
continue;
|
|
@@ -21870,7 +21824,7 @@ function MediaGalleryManager({
|
|
|
21870
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"),
|
|
21871
21825
|
children: [
|
|
21872
21826
|
media.map((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21873
|
-
|
|
21827
|
+
_chunk4EJU462Ocjs.Card,
|
|
21874
21828
|
{
|
|
21875
21829
|
className: "group relative border-ods-border transition-colors hover:border-ods-accent/30",
|
|
21876
21830
|
draggable: true,
|
|
@@ -21895,7 +21849,7 @@ function MediaGalleryManager({
|
|
|
21895
21849
|
) }),
|
|
21896
21850
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative aspect-video overflow-hidden rounded-lg bg-ods-bg", children: isVideoItem(item) ? (
|
|
21897
21851
|
// <Video> SSOT (MuxPlayer): plays Mux HLS and MP4 alike; fit="cover" crops to the cell.
|
|
21898
|
-
/* @__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" })
|
|
21899
21853
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21900
21854
|
_chunkE76ONBKFcjs.next_image_default,
|
|
21901
21855
|
{
|
|
@@ -21910,17 +21864,17 @@ function MediaGalleryManager({
|
|
|
21910
21864
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
21911
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" }),
|
|
21912
21866
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21913
|
-
|
|
21867
|
+
_chunkXI2CHCODcjs.Select,
|
|
21914
21868
|
{
|
|
21915
21869
|
value: item.media_type,
|
|
21916
21870
|
onValueChange: (value) => update(index, { media_type: value }),
|
|
21917
21871
|
children: [
|
|
21918
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21919
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21920
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21921
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21922
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21923
|
-
/* @__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" })
|
|
21924
21878
|
] })
|
|
21925
21879
|
]
|
|
21926
21880
|
}
|
|
@@ -21947,7 +21901,7 @@ function MediaGalleryManager({
|
|
|
21947
21901
|
},
|
|
21948
21902
|
_nullishCoalesce(item.id, () => ( `${item.media_url}-${index}`))
|
|
21949
21903
|
)),
|
|
21950
|
-
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: [
|
|
21951
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" }) }),
|
|
21952
21906
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate p-3 text-ods-text-secondary text-h6", children: name })
|
|
21953
21907
|
] }, `pending-${name}-${index}`))
|
|
@@ -22301,7 +22255,7 @@ var MODEL_TOKEN_RATES_COPY = {
|
|
|
22301
22255
|
empty: "No token rates are in effect right now."
|
|
22302
22256
|
};
|
|
22303
22257
|
function providerMark(providerType, stated, className) {
|
|
22304
|
-
const Mark = _chunk5P4TDV7Vcjs.findIcon.call(void 0,
|
|
22258
|
+
const Mark = _chunk5P4TDV7Vcjs.findIcon.call(void 0, _chunkUBPSA3RMcjs.aiProvider.call(void 0, providerType, { icon: stated }).icon);
|
|
22305
22259
|
return Mark ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Mark, { className }) : void 0;
|
|
22306
22260
|
}
|
|
22307
22261
|
var PAD_X = "px-[var(--spacing-system-s)]";
|
|
@@ -22319,7 +22273,7 @@ var UNIT_LINE_CLASS = _chunk65VVJSQZcjs.cn.call(void 0,
|
|
|
22319
22273
|
var TABS_ROW_CLASS = _chunk65VVJSQZcjs.cn.call(void 0, "shrink-0 border-b border-ods-border py-[var(--spacing-system-xs)]", PAD_X);
|
|
22320
22274
|
var NUMBER_CELL = "w-16 shrink-0 whitespace-nowrap text-right tabular-nums";
|
|
22321
22275
|
function useProviderGroup(rates) {
|
|
22322
|
-
const groups =
|
|
22276
|
+
const groups = _chunkUBPSA3RMcjs.groupTokenRatesByProvider.call(void 0, rates);
|
|
22323
22277
|
const [picked, setPicked] = _react.useState.call(void 0, null);
|
|
22324
22278
|
return { groups, group: _nullishCoalesce(groups.find((candidate) => candidate.providerType === picked), () => ( groups[0])), setPicked };
|
|
22325
22279
|
}
|
|
@@ -22330,7 +22284,7 @@ function ProviderTabs({
|
|
|
22330
22284
|
className
|
|
22331
22285
|
}) {
|
|
22332
22286
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22333
|
-
|
|
22287
|
+
_chunkZXFOMNI5cjs.TabSelector,
|
|
22334
22288
|
{
|
|
22335
22289
|
variant: "secondary",
|
|
22336
22290
|
scrollable: true,
|
|
@@ -22338,7 +22292,7 @@ function ProviderTabs({
|
|
|
22338
22292
|
onValueChange,
|
|
22339
22293
|
items: groups.map((candidate) => ({
|
|
22340
22294
|
id: candidate.providerType,
|
|
22341
|
-
label:
|
|
22295
|
+
label: _chunkUBPSA3RMcjs.tokenRateProviderLabel.call(void 0, candidate.providerType, _optionalChain([candidate, 'access', _447 => _447.rates, 'access', _448 => _448[0], 'optionalAccess', _449 => _449.providerLabel])),
|
|
22342
22296
|
icon: providerMark(candidate.providerType, _optionalChain([candidate, 'access', _450 => _450.rates, 'access', _451 => _451[0], 'optionalAccess', _452 => _452.providerIcon]), "size-full")
|
|
22343
22297
|
})),
|
|
22344
22298
|
className
|
|
@@ -22416,8 +22370,8 @@ function ModelTokenRatesTable({ rates }) {
|
|
|
22416
22370
|
] }),
|
|
22417
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: [
|
|
22418
22372
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "rowheader", className: "min-w-0 flex-1 truncate", children: rate.displayName || rate.modelName }),
|
|
22419
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children:
|
|
22420
|
-
/* @__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) })
|
|
22421
22375
|
] }, rate.modelName)) })
|
|
22422
22376
|
] }),
|
|
22423
22377
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: UNIT_LINE_CLASS, children: MODEL_TOKEN_RATES_COPY.unit })
|
|
@@ -22467,7 +22421,7 @@ function modelOption(rate) {
|
|
|
22467
22421
|
return {
|
|
22468
22422
|
label: rate.displayName || rate.modelName,
|
|
22469
22423
|
value: rate.modelName,
|
|
22470
|
-
description:
|
|
22424
|
+
description: _chunkUBPSA3RMcjs.tokenRateProviderLabel.call(void 0, rate.providerType, rate.providerLabel),
|
|
22471
22425
|
icon: providerMark(rate.providerType, rate.providerIcon, "size-full text-ods-text-secondary")
|
|
22472
22426
|
};
|
|
22473
22427
|
}
|
|
@@ -22521,9 +22475,9 @@ function ModelTokenExchange({
|
|
|
22521
22475
|
const [chosen, setChosen] = _react.useState.call(void 0, null);
|
|
22522
22476
|
const balance = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(chosen, () => ( defaultAmount)), () => ( _optionalChain([tokenPrice, 'optionalAccess', _453 => _453.tokens]))), () => ( MODEL_TOKEN_EXCHANGE_BALANCE));
|
|
22523
22477
|
const max = Math.max(amountRange.max, balance, ...presets.map((preset) => preset.tokens));
|
|
22524
|
-
const tokens =
|
|
22525
|
-
const cost =
|
|
22526
|
-
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);
|
|
22527
22481
|
const model = rate ? rate.displayName || rate.modelName : "";
|
|
22528
22482
|
const options = models.map(modelOption);
|
|
22529
22483
|
if (rate && !models.some((candidate) => candidate.modelName === rate.modelName)) options.unshift(modelOption(rate));
|
|
@@ -22564,7 +22518,7 @@ function ModelTokenExchange({
|
|
|
22564
22518
|
variant: preset.tokens === balance ? "accent" : "outline",
|
|
22565
22519
|
size: "small",
|
|
22566
22520
|
onClick: () => setChosen(preset.tokens),
|
|
22567
|
-
children: copy.buy.preset(
|
|
22521
|
+
children: copy.buy.preset(_chunkUBPSA3RMcjs.formatTokenAmount.call(void 0, preset.tokens), preset.label)
|
|
22568
22522
|
},
|
|
22569
22523
|
preset.label
|
|
22570
22524
|
)) })
|
|
@@ -22581,7 +22535,7 @@ function ModelTokenExchange({
|
|
|
22581
22535
|
const stated = _nullishCoalesce(models.find((option) => option.providerType === providerType), () => ( (_optionalChain([rate, 'optionalAccess', _454 => _454.providerType]) === providerType ? rate : null)));
|
|
22582
22536
|
return {
|
|
22583
22537
|
id: providerType,
|
|
22584
|
-
name:
|
|
22538
|
+
name: _chunkUBPSA3RMcjs.tokenRateProviderLabel.call(void 0, providerType, _optionalChain([stated, 'optionalAccess', _455 => _455.providerLabel])),
|
|
22585
22539
|
icon: providerMark(providerType, _optionalChain([stated, 'optionalAccess', _456 => _456.providerIcon]), "size-8 text-ods-text-secondary")
|
|
22586
22540
|
};
|
|
22587
22541
|
}),
|
|
@@ -22593,7 +22547,7 @@ function ModelTokenExchange({
|
|
|
22593
22547
|
}
|
|
22594
22548
|
),
|
|
22595
22549
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22596
|
-
|
|
22550
|
+
_chunkXI2CHCODcjs.Autocomplete,
|
|
22597
22551
|
{
|
|
22598
22552
|
fieldLoading: loading,
|
|
22599
22553
|
label: copy.use.model,
|
|
@@ -22620,7 +22574,7 @@ function ModelTokenExchange({
|
|
|
22620
22574
|
{
|
|
22621
22575
|
size: "plain",
|
|
22622
22576
|
loading,
|
|
22623
|
-
figure:
|
|
22577
|
+
figure: _chunkUBPSA3RMcjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _461 => _461.inputTokenRate])),
|
|
22624
22578
|
words: copy.charge.input
|
|
22625
22579
|
}
|
|
22626
22580
|
),
|
|
@@ -22629,7 +22583,7 @@ function ModelTokenExchange({
|
|
|
22629
22583
|
{
|
|
22630
22584
|
size: "plain",
|
|
22631
22585
|
loading,
|
|
22632
|
-
figure:
|
|
22586
|
+
figure: _chunkUBPSA3RMcjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _462 => _462.outputTokenRate])),
|
|
22633
22587
|
words: copy.charge.output
|
|
22634
22588
|
}
|
|
22635
22589
|
)
|
|
@@ -22641,9 +22595,9 @@ function ModelTokenExchange({
|
|
|
22641
22595
|
className: "mt-auto flex flex-col rounded-md border border-ods-accent bg-ods-bg p-[var(--spacing-system-mf)]",
|
|
22642
22596
|
children: [
|
|
22643
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) }),
|
|
22644
|
-
/* @__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)) }),
|
|
22645
22599
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-primary text-h3", children: copy.charge.read }),
|
|
22646
|
-
/* @__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))) })
|
|
22647
22601
|
]
|
|
22648
22602
|
}
|
|
22649
22603
|
)
|
|
@@ -23155,7 +23109,7 @@ var SelectButton = _react2.default.forwardRef(
|
|
|
23155
23109
|
}
|
|
23156
23110
|
)
|
|
23157
23111
|
] }),
|
|
23158
|
-
tag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23112
|
+
tag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { variant: tagVariant, className: "shrink-0", label: tag }),
|
|
23159
23113
|
selected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHFNBMV5Mcjs.CheckCircleIcon, { className: "size-4 shrink-0 text-ods-accent content-md:size-6" })
|
|
23160
23114
|
]
|
|
23161
23115
|
}
|
|
@@ -23182,14 +23136,14 @@ var ConfidenceBadge = ({
|
|
|
23182
23136
|
size = "sm",
|
|
23183
23137
|
className
|
|
23184
23138
|
}) => {
|
|
23185
|
-
const level =
|
|
23139
|
+
const level = _chunkUBPSA3RMcjs.getConfidenceLevel.call(void 0, confidence);
|
|
23186
23140
|
if (level === "none") {
|
|
23187
23141
|
return null;
|
|
23188
23142
|
}
|
|
23189
|
-
const label =
|
|
23190
|
-
const borderClass =
|
|
23191
|
-
const textClass =
|
|
23192
|
-
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);
|
|
23193
23147
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23194
23148
|
"span",
|
|
23195
23149
|
{
|
|
@@ -23240,9 +23194,9 @@ function SEOEditorPreview({
|
|
|
23240
23194
|
const [isUploading, setIsUploading] = _react.useState.call(void 0, false);
|
|
23241
23195
|
const [fileInputRef, setFileInputRef] = _react.useState.call(void 0, null);
|
|
23242
23196
|
const seoTitleLength = (seoTitle || "").length;
|
|
23243
|
-
const seoTitleTooLong = seoTitleLength >
|
|
23197
|
+
const seoTitleTooLong = seoTitleLength > _chunkUBPSA3RMcjs.SEO_TITLE_MAX_LENGTH;
|
|
23244
23198
|
const seoDescriptionLength = (seoDescription || "").length;
|
|
23245
|
-
const seoDescriptionTooLong = seoDescriptionLength >
|
|
23199
|
+
const seoDescriptionTooLong = seoDescriptionLength > _chunkUBPSA3RMcjs.SEO_DESCRIPTION_MAX_LENGTH;
|
|
23246
23200
|
const displayTitle = seoTitle.trim() || title || "Untitled";
|
|
23247
23201
|
const displayDescription = seoDescription.trim() || summary || "No description";
|
|
23248
23202
|
const hasOgImage = ogImageUrl.trim();
|
|
@@ -23267,10 +23221,10 @@ function SEOEditorPreview({
|
|
|
23267
23221
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
23268
23222
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
23269
23223
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23270
|
-
|
|
23224
|
+
_chunkUBPSA3RMcjs.Field,
|
|
23271
23225
|
{
|
|
23272
23226
|
label: "SEO Title",
|
|
23273
|
-
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,
|
|
23274
23228
|
labelExtras: aiConfidenceSeoTitle !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
23275
23229
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
|
|
23276
23230
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ConfidenceBadge, { confidence: aiConfidenceSeoTitle, showLabel: true, showPercentage: true, size: "sm" })
|
|
@@ -23285,7 +23239,7 @@ function SEOEditorPreview({
|
|
|
23285
23239
|
children: [
|
|
23286
23240
|
seoTitleLength,
|
|
23287
23241
|
"/",
|
|
23288
|
-
|
|
23242
|
+
_chunkUBPSA3RMcjs.SEO_TITLE_MAX_LENGTH
|
|
23289
23243
|
]
|
|
23290
23244
|
}
|
|
23291
23245
|
),
|
|
@@ -23296,7 +23250,7 @@ function SEOEditorPreview({
|
|
|
23296
23250
|
value: seoTitle || "",
|
|
23297
23251
|
onChange: (e) => onSeoTitleChange(e.target.value),
|
|
23298
23252
|
disabled,
|
|
23299
|
-
maxLength:
|
|
23253
|
+
maxLength: _chunkUBPSA3RMcjs.SEO_TITLE_MAX_LENGTH,
|
|
23300
23254
|
invalid: seoTitleTooLong,
|
|
23301
23255
|
placeholder: "Enter SEO meta title...",
|
|
23302
23256
|
className: "border-ods-border bg-ods-bg text-ods-text-primary"
|
|
@@ -23307,7 +23261,7 @@ function SEOEditorPreview({
|
|
|
23307
23261
|
!seoTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-accent text-h6", children: "Auto-populated from title" })
|
|
23308
23262
|
] }),
|
|
23309
23263
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23310
|
-
|
|
23264
|
+
_chunkUBPSA3RMcjs.Field,
|
|
23311
23265
|
{
|
|
23312
23266
|
label: "SEO Keywords",
|
|
23313
23267
|
labelExtras: aiConfidenceSeoKeywords !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -23339,10 +23293,10 @@ function SEOEditorPreview({
|
|
|
23339
23293
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
23340
23294
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
23341
23295
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23342
|
-
|
|
23296
|
+
_chunkUBPSA3RMcjs.Field,
|
|
23343
23297
|
{
|
|
23344
23298
|
label: "SEO Description",
|
|
23345
|
-
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,
|
|
23346
23300
|
labelExtras: aiConfidenceSeoDescription !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
23347
23301
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
|
|
23348
23302
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -23365,7 +23319,7 @@ function SEOEditorPreview({
|
|
|
23365
23319
|
children: [
|
|
23366
23320
|
seoDescriptionLength,
|
|
23367
23321
|
"/",
|
|
23368
|
-
|
|
23322
|
+
_chunkUBPSA3RMcjs.SEO_DESCRIPTION_MAX_LENGTH
|
|
23369
23323
|
]
|
|
23370
23324
|
}
|
|
23371
23325
|
),
|
|
@@ -23376,7 +23330,7 @@ function SEOEditorPreview({
|
|
|
23376
23330
|
value: seoDescription || "",
|
|
23377
23331
|
onChange: (e) => onSeoDescriptionChange(e.target.value),
|
|
23378
23332
|
disabled,
|
|
23379
|
-
maxLength:
|
|
23333
|
+
maxLength: _chunkUBPSA3RMcjs.SEO_DESCRIPTION_MAX_LENGTH,
|
|
23380
23334
|
invalid: seoDescriptionTooLong,
|
|
23381
23335
|
placeholder: "Enter SEO meta description...",
|
|
23382
23336
|
className: _chunk65VVJSQZcjs.cn.call(void 0, "resize-none border-ods-border bg-ods-bg text-ods-text-primary", SEO_MEDIA_BOX_HEIGHT)
|
|
@@ -23445,7 +23399,7 @@ function SEOEditorPreview({
|
|
|
23445
23399
|
{
|
|
23446
23400
|
ref: setFileInputRef,
|
|
23447
23401
|
type: "file",
|
|
23448
|
-
accept:
|
|
23402
|
+
accept: _chunk4EJU462Ocjs.IMAGE_FILE_ACCEPT,
|
|
23449
23403
|
onChange: handleImageUpload,
|
|
23450
23404
|
className: "hidden",
|
|
23451
23405
|
disabled: disabled || isUploading
|
|
@@ -23529,7 +23483,7 @@ function socialIcon(platform) {
|
|
|
23529
23483
|
return _nullishCoalesce(_chunk5P4TDV7Vcjs.iconOf.call(void 0, SOCIAL_ICONS[platform]), () => ( void 0));
|
|
23530
23484
|
}
|
|
23531
23485
|
function renderSocialIcon(platform) {
|
|
23532
|
-
const key = _nullishCoalesce(
|
|
23486
|
+
const key = _nullishCoalesce(_chunkUBPSA3RMcjs.normalizeSocialPlatform.call(void 0, platform), () => ( "website"));
|
|
23533
23487
|
const icon = _nullishCoalesce(socialIcon(key), () => ( socialIcon("website")));
|
|
23534
23488
|
return icon ? _react.createElement.call(void 0, icon, { className: "h-5 w-5" }) : null;
|
|
23535
23489
|
}
|
|
@@ -23616,7 +23570,7 @@ function SocialLinksManager({
|
|
|
23616
23570
|
};
|
|
23617
23571
|
const getIcon = (link, platform) => {
|
|
23618
23572
|
const iconKey = _optionalChain([platform, 'optionalAccess', _472 => _472.icon_name]) || link.platform;
|
|
23619
|
-
const key =
|
|
23573
|
+
const key = _chunkUBPSA3RMcjs.normalizeSocialPlatform.call(void 0, iconKey);
|
|
23620
23574
|
if (!key) return null;
|
|
23621
23575
|
const icon = socialIcon(key);
|
|
23622
23576
|
return icon ? _react.createElement.call(void 0, icon, { className: "h-5 w-5 text-ods-text-secondary" }) : null;
|
|
@@ -23632,9 +23586,9 @@ function SocialLinksManager({
|
|
|
23632
23586
|
children: [
|
|
23633
23587
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-8 w-8 items-center justify-center", children: Icon }),
|
|
23634
23588
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid flex-1 grid-cols-2 gap-3", children: [
|
|
23635
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23636
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23637
|
-
/* @__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)) })
|
|
23638
23592
|
] }) }),
|
|
23639
23593
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23640
23594
|
_chunkYXDHVHB2cjs.Input,
|
|
@@ -23652,15 +23606,15 @@ function SocialLinksManager({
|
|
|
23652
23606
|
)
|
|
23653
23607
|
] }),
|
|
23654
23608
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23655
|
-
|
|
23609
|
+
_chunkXI2CHCODcjs.Select,
|
|
23656
23610
|
{
|
|
23657
23611
|
value: _nullishCoalesce(link.visibility, () => ( "external")),
|
|
23658
23612
|
onValueChange: (value) => updateLink(index, "visibility", value),
|
|
23659
23613
|
children: [
|
|
23660
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23661
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23662
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23663
|
-
/* @__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" })
|
|
23664
23618
|
] })
|
|
23665
23619
|
]
|
|
23666
23620
|
}
|
|
@@ -23752,7 +23706,7 @@ var StartWithOpenFrameButton = _react.forwardRef.call(void 0,
|
|
|
23752
23706
|
className: _chunk65VVJSQZcjs.cn.call(void 0, modeClassName, className),
|
|
23753
23707
|
style: customStyle,
|
|
23754
23708
|
leftIcon: !loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHJZLKYOBcjs.OpenframeLogoIcon, { secondaryColor: iconLowerPath, className: "h-5 w-5", color: iconUpperPath }) : void 0,
|
|
23755
|
-
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23709
|
+
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.StatusBadge, { text: "Beta", variant: "button", colorScheme: "yellow" }),
|
|
23756
23710
|
children
|
|
23757
23711
|
}
|
|
23758
23712
|
);
|
|
@@ -24079,11 +24033,11 @@ function WarningBlock({ title, icon = DEFAULT_ICON, children, className }) {
|
|
|
24079
24033
|
|
|
24080
24034
|
function VideoBitesDisplay({
|
|
24081
24035
|
bites,
|
|
24082
|
-
title =
|
|
24036
|
+
title = _chunk4EJU462Ocjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
24083
24037
|
filterPublished = true,
|
|
24084
24038
|
showTitle = true
|
|
24085
24039
|
}) {
|
|
24086
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24040
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZXFOMNI5cjs.VideoBitesStrip, { bites, title, filterPublished, showTitle });
|
|
24087
24041
|
}
|
|
24088
24042
|
|
|
24089
24043
|
// src/components/features/walkthrough-video.tsx
|
|
@@ -24113,7 +24067,7 @@ function WalkthroughVideo({
|
|
|
24113
24067
|
onOpenChange,
|
|
24114
24068
|
defaultOpen,
|
|
24115
24069
|
defaultOpenPaused,
|
|
24116
|
-
deepLinkParam =
|
|
24070
|
+
deepLinkParam = _chunkUBPSA3RMcjs.WALKTHROUGH_OPEN_QUERY_PARAM,
|
|
24117
24071
|
autoPlayCard = false,
|
|
24118
24072
|
label = "Play Demo Video",
|
|
24119
24073
|
placement,
|
|
@@ -24130,7 +24084,7 @@ function WalkthroughVideo({
|
|
|
24130
24084
|
const inline = placement === "inline";
|
|
24131
24085
|
const inScope = _chunkXFRBEXQNcjs.useLoadingScope.call(void 0, );
|
|
24132
24086
|
const dismissEnabled = dismissal !== false;
|
|
24133
|
-
const storageKey = dismissEnabled && dismissal.storageKey ||
|
|
24087
|
+
const storageKey = dismissEnabled && dismissal.storageKey || _chunkUBPSA3RMcjs.WALKTHROUGH_VIDEO_DISMISS_KEY;
|
|
24134
24088
|
const dismissalId = _optionalChain([video, 'optionalAccess', _478 => _478.id]) != null ? String(video.id) : "dismissed";
|
|
24135
24089
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
24136
24090
|
const [dismissed, setDismissed] = _react.useState.call(void 0, false);
|
|
@@ -24142,7 +24096,7 @@ function WalkthroughVideo({
|
|
|
24142
24096
|
let delayElapsed = false;
|
|
24143
24097
|
let interacted = inline;
|
|
24144
24098
|
const reveal = () => {
|
|
24145
|
-
if (dismissEnabled &&
|
|
24099
|
+
if (dismissEnabled && _chunkUBPSA3RMcjs.isWalkthroughDismissed.call(void 0, storageKey, dismissalId)) {
|
|
24146
24100
|
setDismissed(true);
|
|
24147
24101
|
return;
|
|
24148
24102
|
}
|
|
@@ -24179,7 +24133,7 @@ function WalkthroughVideo({
|
|
|
24179
24133
|
if (idleHandle !== null && typeof cic === "function") cic(idleHandle);
|
|
24180
24134
|
};
|
|
24181
24135
|
}, [appearDelayMs, dismissEnabled, storageKey, dismissalId, hasVideo, videoId, inline]);
|
|
24182
|
-
const hydrated =
|
|
24136
|
+
const hydrated = _chunkZXFOMNI5cjs.useIsHydrated.call(void 0, );
|
|
24183
24137
|
const previewSuppressed = _react.useMemo.call(void 0, () => {
|
|
24184
24138
|
if (!hydrated) return false;
|
|
24185
24139
|
try {
|
|
@@ -24429,7 +24383,7 @@ function WalkthroughVideo({
|
|
|
24429
24383
|
(e) => {
|
|
24430
24384
|
e.stopPropagation();
|
|
24431
24385
|
pausePreviewNow();
|
|
24432
|
-
if (dismissEnabled)
|
|
24386
|
+
if (dismissEnabled) _chunkUBPSA3RMcjs.dismissWalkthrough.call(void 0, storageKey, dismissalId);
|
|
24433
24387
|
setDismissed(true);
|
|
24434
24388
|
},
|
|
24435
24389
|
[dismissEnabled, storageKey, dismissalId, pausePreviewNow]
|
|
@@ -24580,7 +24534,7 @@ function WalkthroughVideo({
|
|
|
24580
24534
|
},
|
|
24581
24535
|
children: [
|
|
24582
24536
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pointer-events-none absolute inset-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24583
|
-
|
|
24537
|
+
_chunk4EJU462Ocjs.VideoHoverPreviewSurface,
|
|
24584
24538
|
{
|
|
24585
24539
|
url: video.mainVideoUrl || "",
|
|
24586
24540
|
posterUrl: video.posterUrl ? _chunkE76ONBKFcjs.resizedImageUrl.call(void 0, video.posterUrl, CARD_POSTER_WIDTH_PX) : video.posterUrl,
|
|
@@ -24604,7 +24558,7 @@ function WalkthroughVideo({
|
|
|
24604
24558
|
`card-${embedUrlKey}`
|
|
24605
24559
|
) }),
|
|
24606
24560
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24607
|
-
|
|
24561
|
+
_chunkZXFOMNI5cjs.CardHitLayer,
|
|
24608
24562
|
{
|
|
24609
24563
|
label: video.title ? `${label}: ${video.title}` : label,
|
|
24610
24564
|
onPointerDown: pausePreviewNow,
|
|
@@ -24613,7 +24567,7 @@ function WalkthroughVideo({
|
|
|
24613
24567
|
}
|
|
24614
24568
|
),
|
|
24615
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: [
|
|
24616
|
-
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" }),
|
|
24617
24571
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: summaryTitle || label })
|
|
24618
24572
|
] }),
|
|
24619
24573
|
showBigUnmute && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -24720,7 +24674,7 @@ function WalkthroughVideo({
|
|
|
24720
24674
|
children: [
|
|
24721
24675
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogPrimitive2.Title, { className: "sr-only", children: summaryTitle || "Walkthrough video" }),
|
|
24722
24676
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24723
|
-
|
|
24677
|
+
_chunk4EJU462Ocjs.Video,
|
|
24724
24678
|
{
|
|
24725
24679
|
kind: video.youtubeUrl ? "youtube" : "file",
|
|
24726
24680
|
url: video.youtubeUrl || video.mainVideoUrl,
|
|
@@ -24776,7 +24730,7 @@ function useWalkthroughVideo(opts) {
|
|
|
24776
24730
|
const { endpoint, initialData, enabled: enabledGiven = true, transformCaptionsUrl } = opts;
|
|
24777
24731
|
const inScope = _chunkXFRBEXQNcjs.useLoadingScope.call(void 0, );
|
|
24778
24732
|
const enabled = enabledGiven && !inScope;
|
|
24779
|
-
const captions =
|
|
24733
|
+
const captions = _chunkZXFOMNI5cjs.useCaptions.call(void 0, );
|
|
24780
24734
|
const query = _reactquery.useQuery.call(void 0, {
|
|
24781
24735
|
queryKey: ["walkthrough-video", endpoint],
|
|
24782
24736
|
enabled,
|
|
@@ -24974,7 +24928,7 @@ function VideoSourceSelector({
|
|
|
24974
24928
|
}
|
|
24975
24929
|
function DefaultVideoPreview({ videoUrl, onDelete, disabled }) {
|
|
24976
24930
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative overflow-hidden rounded-lg border border-ods-border", children: [
|
|
24977
|
-
/* @__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 }) }),
|
|
24978
24932
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24979
24933
|
"button",
|
|
24980
24934
|
{
|
|
@@ -25428,19 +25382,19 @@ function HighlightVideoSection({
|
|
|
25428
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: [
|
|
25429
25383
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFL2RMEDXcjs.Label, { children: "Target Duration" }),
|
|
25430
25384
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25431
|
-
|
|
25385
|
+
_chunkXI2CHCODcjs.Select,
|
|
25432
25386
|
{
|
|
25433
25387
|
value: targetDurationSeconds.toString(),
|
|
25434
25388
|
onValueChange: (value) => onTargetDurationChange(parseInt(value)),
|
|
25435
25389
|
disabled,
|
|
25436
25390
|
children: [
|
|
25437
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25438
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25439
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25440
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25441
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25442
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25443
|
-
/* @__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" })
|
|
25444
25398
|
] })
|
|
25445
25399
|
]
|
|
25446
25400
|
}
|
|
@@ -25498,7 +25452,7 @@ function HighlightVideoSection({
|
|
|
25498
25452
|
// Default simple preview — the <Video> SSOT (MuxPlayer) plays
|
|
25499
25453
|
// MP4 and Mux HLS alike; aspect-video box reserves the height.
|
|
25500
25454
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative overflow-hidden rounded-lg border border-ods-border bg-black", children: [
|
|
25501
|
-
/* @__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 }) }),
|
|
25502
25456
|
onDeleteHighlight && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25503
25457
|
"button",
|
|
25504
25458
|
{
|
|
@@ -25525,20 +25479,20 @@ function HighlightConfigSection({
|
|
|
25525
25479
|
disabled = false,
|
|
25526
25480
|
className = ""
|
|
25527
25481
|
}) {
|
|
25528
|
-
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,
|
|
25529
|
-
|
|
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,
|
|
25530
25484
|
{
|
|
25531
25485
|
value: targetDurationSeconds.toString(),
|
|
25532
25486
|
onValueChange: (value) => onTargetDurationChange(parseInt(value)),
|
|
25533
25487
|
disabled,
|
|
25534
25488
|
children: [
|
|
25535
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25536
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25537
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25538
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25539
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25540
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25541
|
-
/* @__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" })
|
|
25542
25496
|
] })
|
|
25543
25497
|
]
|
|
25544
25498
|
}
|
|
@@ -25626,7 +25580,7 @@ var AIStatusIndicator = ({
|
|
|
25626
25580
|
}) => {
|
|
25627
25581
|
const config = statusConfig[status];
|
|
25628
25582
|
const displayText = message || config.label;
|
|
25629
|
-
const confidenceLabel = showConfidence && confidence !== void 0 ? `${
|
|
25583
|
+
const confidenceLabel = showConfidence && confidence !== void 0 ? `${_chunkUBPSA3RMcjs.getConfidenceLabel.call(void 0, confidence)} (${confidence}%)` : null;
|
|
25630
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: [
|
|
25631
25585
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25632
25586
|
_chunkUNFCRSYIcjs.SparklesIcon,
|
|
@@ -25634,7 +25588,7 @@ var AIStatusIndicator = ({
|
|
|
25634
25588
|
size: 16,
|
|
25635
25589
|
className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
25636
25590
|
status === "loading" && _chunkXFRBEXQNcjs.LIVE_PULSE_CLASS,
|
|
25637
|
-
confidence !== void 0 && status === "success" ?
|
|
25591
|
+
confidence !== void 0 && status === "success" ? _chunkUBPSA3RMcjs.getConfidenceTextClass.call(void 0, confidence) : config.color
|
|
25638
25592
|
)
|
|
25639
25593
|
}
|
|
25640
25594
|
),
|
|
@@ -25643,7 +25597,7 @@ var AIStatusIndicator = ({
|
|
|
25643
25597
|
{
|
|
25644
25598
|
className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
25645
25599
|
"text-h6",
|
|
25646
|
-
confidence !== void 0 && status === "success" ?
|
|
25600
|
+
confidence !== void 0 && status === "success" ? _chunkUBPSA3RMcjs.getConfidenceTextClass.call(void 0, confidence) : config.color
|
|
25647
25601
|
),
|
|
25648
25602
|
children: displayText
|
|
25649
25603
|
}
|
|
@@ -25653,8 +25607,8 @@ var AIStatusIndicator = ({
|
|
|
25653
25607
|
{
|
|
25654
25608
|
className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
25655
25609
|
"rounded-full border px-2 py-0.5 text-h6",
|
|
25656
|
-
|
|
25657
|
-
|
|
25610
|
+
_chunkUBPSA3RMcjs.getConfidenceBorderClass.call(void 0, confidence),
|
|
25611
|
+
_chunkUBPSA3RMcjs.getConfidenceTextClass.call(void 0, confidence)
|
|
25658
25612
|
),
|
|
25659
25613
|
children: confidenceLabel
|
|
25660
25614
|
}
|
|
@@ -26230,7 +26184,7 @@ function ApprovalLevelView({
|
|
|
26230
26184
|
] });
|
|
26231
26185
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk65VVJSQZcjs.cn.call(void 0, READ_ONLY_ROW_CLASS, className), children: [
|
|
26232
26186
|
name,
|
|
26233
|
-
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 })
|
|
26234
26188
|
] });
|
|
26235
26189
|
}
|
|
26236
26190
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, EDITABLE_ROW_CLASS, className), children: [
|
|
@@ -26353,7 +26307,7 @@ var PolicyRow = ({ policy, categoryId, editMode, onPermissionChange }) => {
|
|
|
26353
26307
|
] });
|
|
26354
26308
|
};
|
|
26355
26309
|
var CategorySection = ({ category, editMode, isExpanded, bulkLevel, onToggle, onBulkLevelChange, onPolicyPermissionChange }) => {
|
|
26356
|
-
const { innerRef, containerStyle } =
|
|
26310
|
+
const { innerRef, containerStyle } = _chunkEHJE3UWZcjs.useCollapsible.call(void 0, { expanded: isExpanded, durationMs: 300 });
|
|
26357
26311
|
const handleBulkChange = (level) => onBulkLevelChange(category.id, level);
|
|
26358
26312
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
26359
26313
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -26526,8 +26480,8 @@ function PoliciesTable({
|
|
|
26526
26480
|
accessorKey: "name",
|
|
26527
26481
|
header: "Name",
|
|
26528
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: [
|
|
26529
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26530
|
-
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 })
|
|
26531
26485
|
] }),
|
|
26532
26486
|
meta: { width: "flex-1 min-w-0" }
|
|
26533
26487
|
},
|
|
@@ -26559,7 +26513,7 @@ function PoliciesTable({
|
|
|
26559
26513
|
cell: ({ row }) => {
|
|
26560
26514
|
const { status } = row.original;
|
|
26561
26515
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-start gap-1", children: [
|
|
26562
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26516
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { className: "self-start", label: status.label, variant: status.variant }),
|
|
26563
26517
|
status.note && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `text-h6 ${NOTE_TONE_CLASS[status.note.tone]}`, children: status.note.text })
|
|
26564
26518
|
] });
|
|
26565
26519
|
},
|
|
@@ -26581,7 +26535,7 @@ function PoliciesTable({
|
|
|
26581
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,
|
|
26582
26536
|
_chunkTF5D5MNOcjs.Button,
|
|
26583
26537
|
{
|
|
26584
|
-
onClick:
|
|
26538
|
+
onClick: _chunkUBPSA3RMcjs.openInNewTab.call(void 0, row.original.href),
|
|
26585
26539
|
variant: "outline",
|
|
26586
26540
|
size: "icon",
|
|
26587
26541
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
@@ -26682,7 +26636,7 @@ function PolicySummaryCards({ summary, isLoading = false, hasData = true, now })
|
|
|
26682
26636
|
DashboardInfoCard,
|
|
26683
26637
|
{
|
|
26684
26638
|
title: "Updated",
|
|
26685
|
-
value: hasData && summary.lastUpdatedAt ?
|
|
26639
|
+
value: hasData && summary.lastUpdatedAt ? _chunkEHJE3UWZcjs.formatRelativeTimeFrom.call(void 0, summary.lastUpdatedAt, _nullishCoalesce(now, () => ( /* @__PURE__ */ new Date()))) : EMPTY_VALUE,
|
|
26686
26640
|
valueClassName: "!text-h3",
|
|
26687
26641
|
tooltip: "Policy compliance stats are updated hourly. View a policy's devices for real-time status."
|
|
26688
26642
|
}
|
|
@@ -26798,7 +26752,7 @@ function toValidInstant(iso) {
|
|
|
26798
26752
|
function formatLastRead(iso, now = /* @__PURE__ */ new Date()) {
|
|
26799
26753
|
const date = toValidInstant(iso);
|
|
26800
26754
|
if (!date) return TENANT_EMPTY_VALUE;
|
|
26801
|
-
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);
|
|
26802
26756
|
}
|
|
26803
26757
|
function usersCountLabel(count) {
|
|
26804
26758
|
if (count == null) return TENANT_EMPTY_VALUE;
|
|
@@ -26809,8 +26763,8 @@ function usersCountLabel(count) {
|
|
|
26809
26763
|
|
|
26810
26764
|
function TenantAccessCell({ accessState, lastReadAt: lastReadAt2, now }) {
|
|
26811
26765
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26812
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26813
|
-
/* @__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)}` })
|
|
26814
26768
|
] });
|
|
26815
26769
|
}
|
|
26816
26770
|
|
|
@@ -26821,9 +26775,9 @@ function TenantCell({ provider, name, domain }) {
|
|
|
26821
26775
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
26822
26776
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26823
26777
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Logo, { size: 24, role: "img", "aria-label": label, className: "shrink-0" }),
|
|
26824
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26778
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { children: name })
|
|
26825
26779
|
] }),
|
|
26826
|
-
/* @__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)) })
|
|
26827
26781
|
] });
|
|
26828
26782
|
}
|
|
26829
26783
|
|
|
@@ -26832,10 +26786,10 @@ function TenantCell({ provider, name, domain }) {
|
|
|
26832
26786
|
function TenantCustomerCell({ name, imageUrl, userCount }) {
|
|
26833
26787
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
26834
26788
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26835
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26836
|
-
/* @__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 })
|
|
26837
26791
|
] }),
|
|
26838
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26792
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { variant: "h6", tone: "secondary", children: usersCountLabel(userCount) })
|
|
26839
26793
|
] });
|
|
26840
26794
|
}
|
|
26841
26795
|
|
|
@@ -26907,7 +26861,7 @@ function TenantsTableView({
|
|
|
26907
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,
|
|
26908
26862
|
_chunkTF5D5MNOcjs.Button,
|
|
26909
26863
|
{
|
|
26910
|
-
onClick:
|
|
26864
|
+
onClick: _chunkUBPSA3RMcjs.openInNewTab.call(void 0, getHref(row.original)),
|
|
26911
26865
|
variant: "outline",
|
|
26912
26866
|
size: "icon",
|
|
26913
26867
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
@@ -26988,7 +26942,7 @@ function WaitlistForm({
|
|
|
26988
26942
|
const { toast } = _chunkXVFM6SJAcjs.useToast.call(void 0, );
|
|
26989
26943
|
const { honeypotInputProps, getSignals, resetSignals } = _chunkXVFM6SJAcjs.useHumanitySignals.call(void 0, );
|
|
26990
26944
|
const [smsConsent, setSmsConsent] = _react.useState.call(void 0, false);
|
|
26991
|
-
const isClient =
|
|
26945
|
+
const isClient = _chunkZXFOMNI5cjs.useIsHydrated.call(void 0, );
|
|
26992
26946
|
const [isPhoneInvalid, setIsPhoneInvalid] = _react.useState.call(void 0, false);
|
|
26993
26947
|
const [showConsentError, setShowConsentError] = _react.useState.call(void 0, false);
|
|
26994
26948
|
const rescue = _chunkXVFM6SJAcjs.useFormRescue.call(void 0, {
|
|
@@ -27003,7 +26957,7 @@ function WaitlistForm({
|
|
|
27003
26957
|
_react.useEffect.call(void 0, () => {
|
|
27004
26958
|
rescue.track({ email, phone }, null);
|
|
27005
26959
|
}, [email, phone, rescue]);
|
|
27006
|
-
const isMailDomainGeneric =
|
|
26960
|
+
const isMailDomainGeneric = _chunkUBPSA3RMcjs.hasGenericEmailDomain.call(void 0, email);
|
|
27007
26961
|
const [syncedDefaultEmail, setSyncedDefaultEmail] = _react.useState.call(void 0, defaultEmail);
|
|
27008
26962
|
if (syncedDefaultEmail !== defaultEmail) {
|
|
27009
26963
|
setSyncedDefaultEmail(defaultEmail);
|
|
@@ -27037,7 +26991,7 @@ function WaitlistForm({
|
|
|
27037
26991
|
setShowConsentError(true);
|
|
27038
26992
|
return;
|
|
27039
26993
|
}
|
|
27040
|
-
const finalPhone = phone ?
|
|
26994
|
+
const finalPhone = phone ? _chunkUBPSA3RMcjs.formatPhoneE164.call(void 0, phone, countryCode) : void 0;
|
|
27041
26995
|
try {
|
|
27042
26996
|
await onRegister(email, finalPhone, getSignals(), rescue.submitFields());
|
|
27043
26997
|
rescue.complete();
|
|
@@ -27849,7 +27803,7 @@ function NotificationTile({
|
|
|
27849
27803
|
{
|
|
27850
27804
|
dateTime: createdAtIso,
|
|
27851
27805
|
className: _chunk65VVJSQZcjs.cn.call(void 0, "shrink-0 whitespace-nowrap text-ods-text-secondary text-h6", lockscreen && "self-start"),
|
|
27852
|
-
children: _nullishCoalesce(timeLabel, () => (
|
|
27806
|
+
children: _nullishCoalesce(timeLabel, () => ( _chunkEHJE3UWZcjs.formatTicketRelativeTime.call(void 0, createdAtIso)))
|
|
27853
27807
|
}
|
|
27854
27808
|
) : null,
|
|
27855
27809
|
!lockscreen && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TILE_CONTROL_BOX_CLASS, children: [
|
|
@@ -28346,13 +28300,13 @@ function getApprovalMeta(notification) {
|
|
|
28346
28300
|
function resolutionToStatus(resolution) {
|
|
28347
28301
|
switch (typeof resolution === "string" ? resolution.toUpperCase() : void 0) {
|
|
28348
28302
|
case "APPROVED":
|
|
28349
|
-
return
|
|
28303
|
+
return _chunk5QP3K2CEcjs.APPROVAL_STATUS.APPROVED;
|
|
28350
28304
|
case "REJECTED":
|
|
28351
|
-
return
|
|
28305
|
+
return _chunk5QP3K2CEcjs.APPROVAL_STATUS.REJECTED;
|
|
28352
28306
|
case "CANCELLED":
|
|
28353
|
-
return
|
|
28307
|
+
return _chunk5QP3K2CEcjs.APPROVAL_STATUS.CANCELLED;
|
|
28354
28308
|
default:
|
|
28355
|
-
return
|
|
28309
|
+
return _chunk5QP3K2CEcjs.APPROVAL_STATUS.PENDING;
|
|
28356
28310
|
}
|
|
28357
28311
|
}
|
|
28358
28312
|
function approvalMetaToBatchData(approval) {
|
|
@@ -28397,7 +28351,7 @@ function ApprovalRequestNotificationTile({
|
|
|
28397
28351
|
const resolvedStatus = resolutionToStatus(_optionalChain([approval, 'optionalAccess', _583 => _583.resolution]));
|
|
28398
28352
|
const status = resolvedStatus !== "pending" ? resolvedStatus : _nullishCoalesce(localStatus, () => ( "pending"));
|
|
28399
28353
|
const batchData = _react.useMemo.call(void 0, () => approval ? approvalMetaToBatchData(approval) : null, [approval]);
|
|
28400
|
-
const { innerRef, containerStyle } =
|
|
28354
|
+
const { innerRef, containerStyle } = _chunkEHJE3UWZcjs.useCollapsible.call(void 0, { expanded });
|
|
28401
28355
|
if (!approval || !batchData) return null;
|
|
28402
28356
|
const tileNotification = {
|
|
28403
28357
|
...notification,
|
|
@@ -28460,7 +28414,7 @@ function ApprovalRequestNotificationTile({
|
|
|
28460
28414
|
}
|
|
28461
28415
|
)
|
|
28462
28416
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
28463
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28417
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ApprovalStatusTag, { status }),
|
|
28464
28418
|
approval.resolvedByName ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: [
|
|
28465
28419
|
"by ",
|
|
28466
28420
|
approval.resolvedByName
|
|
@@ -28478,12 +28432,12 @@ function ApprovalRequestNotificationTile({
|
|
|
28478
28432
|
"aria-expanded": expanded,
|
|
28479
28433
|
"aria-label": toggleLabel,
|
|
28480
28434
|
className: APPROVAL_TOGGLE_BUTTON_CLASS,
|
|
28481
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28435
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ExpandChevron, { expanded })
|
|
28482
28436
|
}
|
|
28483
28437
|
)
|
|
28484
28438
|
] }),
|
|
28485
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,
|
|
28486
|
-
|
|
28440
|
+
_chunkEHJE3UWZcjs.ApprovalBatchMessage,
|
|
28487
28441
|
{
|
|
28488
28442
|
data: batchData,
|
|
28489
28443
|
showExecutionStatus: false,
|
|
@@ -28556,7 +28510,7 @@ function renderCustomerOption(option, isSelected) {
|
|
|
28556
28510
|
const { label, imageUrl } = option;
|
|
28557
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: [
|
|
28558
28512
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
28559
|
-
/* @__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" }),
|
|
28560
28514
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", title: label, children: label })
|
|
28561
28515
|
] }),
|
|
28562
28516
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
@@ -28640,7 +28594,7 @@ function TimeTrackerPanel({
|
|
|
28640
28594
|
}));
|
|
28641
28595
|
const selectedCustomer = customerAutocompleteOptions.find((o) => o.value === selectedCustomerId);
|
|
28642
28596
|
const customerStartAdornment = selectedCustomer ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28643
|
-
|
|
28597
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
28644
28598
|
{
|
|
28645
28599
|
src: selectedCustomer.imageUrl,
|
|
28646
28600
|
alt: selectedCustomer.label,
|
|
@@ -28720,7 +28674,7 @@ function TimeTrackerPanel({
|
|
|
28720
28674
|
] }),
|
|
28721
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: [
|
|
28722
28676
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28723
|
-
|
|
28677
|
+
_chunkXI2CHCODcjs.Autocomplete,
|
|
28724
28678
|
{
|
|
28725
28679
|
value: selectedTicketId,
|
|
28726
28680
|
onChange: onSelectedTicketChange,
|
|
@@ -28736,7 +28690,7 @@ function TimeTrackerPanel({
|
|
|
28736
28690
|
}
|
|
28737
28691
|
),
|
|
28738
28692
|
showCustomer && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28739
|
-
|
|
28693
|
+
_chunkXI2CHCODcjs.Autocomplete,
|
|
28740
28694
|
{
|
|
28741
28695
|
value: _nullishCoalesce(selectedCustomerId, () => ( null)),
|
|
28742
28696
|
onChange: onSelectedCustomerChange,
|
|
@@ -28819,7 +28773,7 @@ var STATUS_TAG_SKIN = "gap-[var(--spacing-system-xs)] font-mono font-medium uppe
|
|
|
28819
28773
|
function StatusTag({ status }) {
|
|
28820
28774
|
if (status === "tracking") {
|
|
28821
28775
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28822
|
-
|
|
28776
|
+
_chunkHY6BCZH7cjs.Tag,
|
|
28823
28777
|
{
|
|
28824
28778
|
variant: "success",
|
|
28825
28779
|
className: STATUS_TAG_SKIN,
|
|
@@ -28829,9 +28783,9 @@ function StatusTag({ status }) {
|
|
|
28829
28783
|
);
|
|
28830
28784
|
}
|
|
28831
28785
|
if (status === "paused") {
|
|
28832
|
-
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" });
|
|
28833
28787
|
}
|
|
28834
|
-
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" });
|
|
28835
28789
|
}
|
|
28836
28790
|
function LastEntryRow({ entry, onClick }) {
|
|
28837
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: [
|
|
@@ -29027,7 +28981,7 @@ function TimeTrackerHeaderButton({ className, disabled }) {
|
|
|
29027
28981
|
|
|
29028
28982
|
// src/components/features/devices/device-last-online.ts
|
|
29029
28983
|
function formatLastOnline(lastSeen) {
|
|
29030
|
-
return `Last Online: ${lastSeen ?
|
|
28984
|
+
return `Last Online: ${lastSeen ? _chunkEHJE3UWZcjs.formatRelativeTime.call(void 0, lastSeen) : "\u2014"}`;
|
|
29031
28985
|
}
|
|
29032
28986
|
|
|
29033
28987
|
// src/components/features/devices/device-name.ts
|
|
@@ -29071,7 +29025,7 @@ var SELECTION_MODE_OPTIONS = [
|
|
|
29071
29025
|
label: "Select Devices by Criteria",
|
|
29072
29026
|
description: CRITERIA_MODE_DESCRIPTION,
|
|
29073
29027
|
disabled: true,
|
|
29074
|
-
trailing: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29028
|
+
trailing: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { label: "Coming Soon", variant: "grey" })
|
|
29075
29029
|
}
|
|
29076
29030
|
];
|
|
29077
29031
|
var SELECTION_MODE_OPTIONS_ENABLED = [
|
|
@@ -29176,7 +29130,7 @@ function getDeviceStatusConfig(status) {
|
|
|
29176
29130
|
}
|
|
29177
29131
|
}
|
|
29178
29132
|
function getDeviceOperatingSystem(osType) {
|
|
29179
|
-
return
|
|
29133
|
+
return _chunkUBPSA3RMcjs.getOSPlatformId.call(void 0, osType);
|
|
29180
29134
|
}
|
|
29181
29135
|
|
|
29182
29136
|
// src/components/features/devices/device-statuses.ts
|
|
@@ -29352,8 +29306,8 @@ function DevicesFilterToolbar({
|
|
|
29352
29306
|
|
|
29353
29307
|
|
|
29354
29308
|
function formatDateTime(input) {
|
|
29355
|
-
const date =
|
|
29356
|
-
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)}`;
|
|
29357
29311
|
}
|
|
29358
29312
|
function uniqueById(options) {
|
|
29359
29313
|
const seen = /* @__PURE__ */ new Map();
|
|
@@ -29460,7 +29414,7 @@ function DevicesTableBody({
|
|
|
29460
29414
|
function OrganizationCell({ device }) {
|
|
29461
29415
|
const fullImageUrl = useDeviceImageUrl(device.organizationImageUrl, device.organizationImageHash);
|
|
29462
29416
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
29463
|
-
/* @__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" }),
|
|
29464
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 || "" }) })
|
|
29465
29419
|
] });
|
|
29466
29420
|
}
|
|
@@ -29504,7 +29458,7 @@ function getDeviceTableColumns(deviceFilters, filtersPending) {
|
|
|
29504
29458
|
const device = row.original;
|
|
29505
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: [
|
|
29506
29460
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeviceTypeTile, { type: device.type }),
|
|
29507
|
-
/* @__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) }) })
|
|
29508
29462
|
] });
|
|
29509
29463
|
},
|
|
29510
29464
|
meta: { width: "flex-1 content-md:w-1/4" }
|
|
@@ -29517,7 +29471,7 @@ function getDeviceTableColumns(deviceFilters, filtersPending) {
|
|
|
29517
29471
|
const device = row.original;
|
|
29518
29472
|
const statusConfig2 = getDeviceStatusConfig(device.status);
|
|
29519
29473
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col items-start gap-1", children: [
|
|
29520
|
-
/* @__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 }) }),
|
|
29521
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" })
|
|
29522
29476
|
] });
|
|
29523
29477
|
},
|
|
@@ -29675,7 +29629,7 @@ function CustomerCell({ device }) {
|
|
|
29675
29629
|
const fullImageUrl = useDeviceImageUrl(device.organizationImageUrl, device.organizationImageHash);
|
|
29676
29630
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
29677
29631
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29678
|
-
|
|
29632
|
+
_chunkXI2CHCODcjs.EntityImage,
|
|
29679
29633
|
{
|
|
29680
29634
|
src: fullImageUrl,
|
|
29681
29635
|
alt: device.organization || "Customer",
|
|
@@ -29683,8 +29637,8 @@ function CustomerCell({ device }) {
|
|
|
29683
29637
|
}
|
|
29684
29638
|
),
|
|
29685
29639
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
29686
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29687
|
-
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 })
|
|
29688
29642
|
] })
|
|
29689
29643
|
] });
|
|
29690
29644
|
}
|
|
@@ -29979,8 +29933,8 @@ function DeviceSelector({
|
|
|
29979
29933
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 items-center gap-3", children: [
|
|
29980
29934
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeviceTypeTile, { type: device.type }),
|
|
29981
29935
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col", children: [
|
|
29982
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29983
|
-
/* @__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) })
|
|
29984
29938
|
] })
|
|
29985
29939
|
] });
|
|
29986
29940
|
},
|
|
@@ -30015,7 +29969,7 @@ function DeviceSelector({
|
|
|
30015
29969
|
header: "STATUS",
|
|
30016
29970
|
cell: ({ row }) => {
|
|
30017
29971
|
const config = getDeviceStatusConfig(row.original.status);
|
|
30018
|
-
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" });
|
|
30019
29973
|
},
|
|
30020
29974
|
enableSorting: false,
|
|
30021
29975
|
meta: {
|
|
@@ -30772,7 +30726,7 @@ function DevicesPanelView({
|
|
|
30772
30726
|
] })
|
|
30773
30727
|
] });
|
|
30774
30728
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30775
|
-
|
|
30729
|
+
_chunkXI2CHCODcjs.PageLayout,
|
|
30776
30730
|
{
|
|
30777
30731
|
title,
|
|
30778
30732
|
backButton,
|
|
@@ -30780,7 +30734,7 @@ function DevicesPanelView({
|
|
|
30780
30734
|
actionsVariant: "icon-buttons",
|
|
30781
30735
|
className,
|
|
30782
30736
|
selector: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30783
|
-
|
|
30737
|
+
_chunkZXFOMNI5cjs.TabSelector,
|
|
30784
30738
|
{
|
|
30785
30739
|
value: viewMode,
|
|
30786
30740
|
onValueChange: (value) => _optionalChain([onViewModeChange, 'optionalCall', _659 => _659(value)]),
|
|
@@ -30846,7 +30800,7 @@ var PACKAGE_SEARCH_LABEL = "Software Name";
|
|
|
30846
30800
|
var PACKAGE_SEARCH_PLACEHOLDER = "Search for Software";
|
|
30847
30801
|
function PackageSearchFieldPlaceholder({ error }) {
|
|
30848
30802
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30849
|
-
|
|
30803
|
+
_chunkXI2CHCODcjs.Autocomplete,
|
|
30850
30804
|
{
|
|
30851
30805
|
label: PACKAGE_SEARCH_LABEL,
|
|
30852
30806
|
labelVariant: "large",
|
|
@@ -30901,16 +30855,16 @@ function SoftwareScheduleFields({
|
|
|
30901
30855
|
] }),
|
|
30902
30856
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
30903
30857
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFL2RMEDXcjs.Label, { className: "text-h4", children: "Time" }),
|
|
30904
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30905
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30906
|
-
/* @__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)) })
|
|
30907
30861
|
] })
|
|
30908
30862
|
] }),
|
|
30909
30863
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
30910
30864
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFL2RMEDXcjs.Label, { className: "text-h4", children: "Timezone" }),
|
|
30911
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30912
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30913
|
-
/* @__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)) })
|
|
30914
30868
|
] })
|
|
30915
30869
|
] })
|
|
30916
30870
|
]
|
|
@@ -30976,22 +30930,22 @@ function newSoftwareRow(key) {
|
|
|
30976
30930
|
|
|
30977
30931
|
function InfoCell2({ value, label }) {
|
|
30978
30932
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
30979
|
-
/* @__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" }) }) }),
|
|
30980
30934
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: label })
|
|
30981
30935
|
] });
|
|
30982
30936
|
}
|
|
30983
30937
|
function SoftwareRowFields({ row, removable, onChange, onRemove, renderPackageSearch }) {
|
|
30984
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: [
|
|
30985
30939
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30986
|
-
|
|
30940
|
+
_chunkXI2CHCODcjs.Select,
|
|
30987
30941
|
{
|
|
30988
30942
|
value: row.packageManager,
|
|
30989
30943
|
onValueChange: (value) => onChange({ ...row, packageManager: value, pkg: null }),
|
|
30990
30944
|
children: [
|
|
30991
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30992
|
-
/* @__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) => {
|
|
30993
30947
|
const Icon = PACKAGE_MANAGER_ICON[manager];
|
|
30994
|
-
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: [
|
|
30995
30949
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { size: 20, className: "shrink-0 text-ods-text-secondary" }),
|
|
30996
30950
|
PACKAGE_MANAGER_LABEL[manager]
|
|
30997
30951
|
] }) }, manager);
|
|
@@ -31089,7 +31043,7 @@ function SoftwareActionForm({
|
|
|
31089
31043
|
}
|
|
31090
31044
|
);
|
|
31091
31045
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
31092
|
-
|
|
31046
|
+
_chunkXI2CHCODcjs.PageLayout,
|
|
31093
31047
|
{
|
|
31094
31048
|
title: copy.formTitle,
|
|
31095
31049
|
backButton: onBack ? { label: "Back", onClick: onBack } : void 0,
|
|
@@ -31170,7 +31124,7 @@ function LogDrawer({
|
|
|
31170
31124
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, AppLayoutDrawerHeader, { children: [
|
|
31171
31125
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AppLayoutDrawerTitle, { children: "Log Details" }),
|
|
31172
31126
|
(statusTag || timestamp) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
31173
|
-
statusTag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31127
|
+
statusTag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { label: statusTag.label, variant: statusTag.variant }),
|
|
31174
31128
|
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h6", children: timestamp })
|
|
31175
31129
|
] })
|
|
31176
31130
|
] }),
|
|
@@ -31178,7 +31132,7 @@ function LogDrawer({
|
|
|
31178
31132
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-h-0 flex-1 space-y-4 overflow-y-auto", children: [
|
|
31179
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 }) }),
|
|
31180
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: [
|
|
31181
|
-
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 }),
|
|
31182
31136
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: field.label })
|
|
31183
31137
|
] }, typeof field.label === "string" ? field.label : "")) }),
|
|
31184
31138
|
children
|
|
@@ -31226,7 +31180,7 @@ function LogsPageView({
|
|
|
31226
31180
|
],
|
|
31227
31181
|
[onRefresh]
|
|
31228
31182
|
);
|
|
31229
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
31183
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkXI2CHCODcjs.PageLayout, { title: "Logs", actions, showHeader, className, children: [
|
|
31230
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: [
|
|
31231
31185
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31232
31186
|
_chunkYXDHVHB2cjs.Input,
|
|
@@ -31314,11 +31268,11 @@ var ToolBadge = ({
|
|
|
31314
31268
|
iconClassName
|
|
31315
31269
|
}) => {
|
|
31316
31270
|
const loading = _chunkXFRBEXQNcjs.useLoadingScope.call(void 0, );
|
|
31317
|
-
const text = _nullishCoalesce(label, () => ( (toolType ?
|
|
31271
|
+
const text = _nullishCoalesce(label, () => ( (toolType ? _chunkUBPSA3RMcjs.getToolLabel.call(void 0, toolType) : "")));
|
|
31318
31272
|
const mark = _nullishCoalesce(icon, () => ( (toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk57B5RUYDcjs.ToolIcon, { toolType, className: iconClassName, size: 16 }) : null)));
|
|
31319
31273
|
if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ToolBadgeSkeleton, { variant, icon: !!mark, className });
|
|
31320
31274
|
const linked = (node, linkClassName) => href && targetPlatform ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31321
|
-
|
|
31275
|
+
_chunkZXFOMNI5cjs.NavLinkAnchorViaRuntime,
|
|
31322
31276
|
{
|
|
31323
31277
|
href,
|
|
31324
31278
|
targetPlatform,
|
|
@@ -31401,8 +31355,8 @@ function LogsTableView({
|
|
|
31401
31355
|
accessorKey: "logId",
|
|
31402
31356
|
header: logIdHeader ? () => logIdHeader : "Log ID",
|
|
31403
31357
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col justify-center", children: [
|
|
31404
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31405
|
-
/* @__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 })
|
|
31406
31360
|
] }),
|
|
31407
31361
|
enableSorting: false,
|
|
31408
31362
|
meta: { width: LOG_COLUMN_WIDTHS.logId, alwaysShowHeader: true }
|
|
@@ -31410,7 +31364,7 @@ function LogsTableView({
|
|
|
31410
31364
|
{
|
|
31411
31365
|
accessorKey: "status",
|
|
31412
31366
|
header: "Status",
|
|
31413
|
-
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 }) }),
|
|
31414
31368
|
enableSorting: false,
|
|
31415
31369
|
filterFn: multiSelect,
|
|
31416
31370
|
meta: {
|
|
@@ -31430,7 +31384,7 @@ function LogsTableView({
|
|
|
31430
31384
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31431
31385
|
ToolBadge,
|
|
31432
31386
|
{
|
|
31433
|
-
toolType:
|
|
31387
|
+
toolType: _chunkUBPSA3RMcjs.normalizeToolTypeWithFallback.call(void 0, row.original.source.toolType),
|
|
31434
31388
|
iconClassName: "h-4 w-4 content-md:h-6 content-md:w-6"
|
|
31435
31389
|
}
|
|
31436
31390
|
),
|
|
@@ -31442,7 +31396,7 @@ function LogsTableView({
|
|
|
31442
31396
|
filter: {
|
|
31443
31397
|
options: _nullishCoalesce(_optionalChain([facets, 'optionalAccess', _667 => _667.toolTypes, 'access', _668 => _668.map, 'call', _669 => _669((toolType) => ({
|
|
31444
31398
|
id: toolType,
|
|
31445
|
-
label:
|
|
31399
|
+
label: _chunkUBPSA3RMcjs.toToolLabel.call(void 0, toolType),
|
|
31446
31400
|
value: toolType
|
|
31447
31401
|
}))]), () => ( []))
|
|
31448
31402
|
}
|
|
@@ -31454,8 +31408,8 @@ function LogsTableView({
|
|
|
31454
31408
|
cell: ({ row }) => {
|
|
31455
31409
|
const { deviceName, organization } = logSourceLabels(row.original.device);
|
|
31456
31410
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-h-[60px] flex-col justify-center gap-1 py-2", children: [
|
|
31457
|
-
deviceName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31458
|
-
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 })
|
|
31459
31413
|
] });
|
|
31460
31414
|
},
|
|
31461
31415
|
enableSorting: false,
|
|
@@ -31469,7 +31423,7 @@ function LogsTableView({
|
|
|
31469
31423
|
{
|
|
31470
31424
|
accessorKey: "description",
|
|
31471
31425
|
header: "Log Details",
|
|
31472
|
-
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 }),
|
|
31473
31427
|
enableSorting: false,
|
|
31474
31428
|
meta: { width: LOG_COLUMN_WIDTHS.description, hideAt: "lg" }
|
|
31475
31429
|
},
|
|
@@ -31500,7 +31454,7 @@ function LogsTableView({
|
|
|
31500
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,
|
|
31501
31455
|
_chunkTF5D5MNOcjs.Button,
|
|
31502
31456
|
{
|
|
31503
|
-
onClick: getLogHref ?
|
|
31457
|
+
onClick: getLogHref ? _chunkUBPSA3RMcjs.openInNewTab.call(void 0, getLogHref(row.original)) : void 0,
|
|
31504
31458
|
variant: "outline",
|
|
31505
31459
|
size: "icon",
|
|
31506
31460
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
@@ -31721,29 +31675,29 @@ function scriptExecutionStatus(status) {
|
|
|
31721
31675
|
|
|
31722
31676
|
function ExecutionSourceBadge({ source, className }) {
|
|
31723
31677
|
const tagProps = { as: "span", variant: "outline", className: _chunk65VVJSQZcjs.cn.call(void 0, "shrink-0", className) };
|
|
31724
|
-
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" });
|
|
31725
31679
|
if (source === "AI_ASSISTANT") {
|
|
31726
|
-
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" }) });
|
|
31727
31681
|
}
|
|
31728
31682
|
return null;
|
|
31729
31683
|
}
|
|
31730
31684
|
function ExecutionTimestampCell({ timestamp, executionId }) {
|
|
31731
31685
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31732
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31733
|
-
/* @__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 })
|
|
31734
31688
|
] });
|
|
31735
31689
|
}
|
|
31736
31690
|
function ExecutionStatusCell({ status }) {
|
|
31737
31691
|
const presentation = scriptExecutionStatus(status);
|
|
31738
|
-
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")) }) });
|
|
31739
31693
|
}
|
|
31740
31694
|
function ExecutionDeviceCell({ name, organization }) {
|
|
31741
31695
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31742
31696
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-1", children: [
|
|
31743
31697
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPTK7GOIIcjs.MonitorIcon, { className: "size-6 shrink-0 text-ods-text-secondary" }),
|
|
31744
|
-
/* @__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 })
|
|
31745
31699
|
] }),
|
|
31746
|
-
organization && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31700
|
+
organization && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { variant: "h6", tone: "secondary", children: organization })
|
|
31747
31701
|
] });
|
|
31748
31702
|
}
|
|
31749
31703
|
function ExecutionInitiatorCell({
|
|
@@ -31756,15 +31710,15 @@ function ExecutionInitiatorCell({
|
|
|
31756
31710
|
avatar,
|
|
31757
31711
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
31758
31712
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
31759
|
-
typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31713
|
+
typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { children: name }) : name,
|
|
31760
31714
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExecutionSourceBadge, { source })
|
|
31761
31715
|
] }),
|
|
31762
|
-
scriptName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31716
|
+
scriptName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { variant: "h6", tone: "secondary", children: scriptName })
|
|
31763
31717
|
] })
|
|
31764
31718
|
] });
|
|
31765
31719
|
}
|
|
31766
31720
|
function ExecutionResultCell({ result, empty = null }) {
|
|
31767
|
-
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 });
|
|
31768
31722
|
}
|
|
31769
31723
|
function ScriptExecutionResult({
|
|
31770
31724
|
result,
|
|
@@ -31782,14 +31736,14 @@ function ScriptExecutionResult({
|
|
|
31782
31736
|
|
|
31783
31737
|
function ScriptNameCell({ name, description }) {
|
|
31784
31738
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31785
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31786
|
-
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 })
|
|
31787
31741
|
] });
|
|
31788
31742
|
}
|
|
31789
31743
|
function ScheduleDateTimeCell({ date, time }) {
|
|
31790
31744
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31791
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31792
|
-
/* @__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 })
|
|
31793
31747
|
] });
|
|
31794
31748
|
}
|
|
31795
31749
|
|
|
@@ -31875,7 +31829,7 @@ function OpenInNewTabCell({ href }) {
|
|
|
31875
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,
|
|
31876
31830
|
_chunkTF5D5MNOcjs.Button,
|
|
31877
31831
|
{
|
|
31878
|
-
onClick:
|
|
31832
|
+
onClick: _chunkUBPSA3RMcjs.openInNewTab.call(void 0, href),
|
|
31879
31833
|
variant: "outline",
|
|
31880
31834
|
size: "icon",
|
|
31881
31835
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
@@ -31908,7 +31862,7 @@ function ScriptExecutionsTable({
|
|
|
31908
31862
|
ExecutionInitiatorCell,
|
|
31909
31863
|
{
|
|
31910
31864
|
avatar: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31911
|
-
|
|
31865
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
31912
31866
|
{
|
|
31913
31867
|
variant: "round",
|
|
31914
31868
|
size: "md",
|
|
@@ -31988,7 +31942,7 @@ function ScriptSchedulesTable({
|
|
|
31988
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" })),
|
|
31989
31943
|
cell(
|
|
31990
31944
|
SCHEDULE_COLUMNS.dateTime,
|
|
31991
|
-
(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
|
|
31992
31946
|
),
|
|
31993
31947
|
cell(SCHEDULE_COLUMNS.repeat, (row) => row.repeat ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: VALUE_CLASS, children: row.repeat }) : null),
|
|
31994
31948
|
cell(SCHEDULE_COLUMNS.deviceCount, (row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: VALUE_CLASS, children: row.deviceCount }))
|
|
@@ -32024,9 +31978,9 @@ function ScriptSchedulesTable({
|
|
|
32024
31978
|
|
|
32025
31979
|
// src/components/features/scripts/shell-types.ts
|
|
32026
31980
|
var SCRIPT_SHELL_TYPES = [
|
|
32027
|
-
{ id:
|
|
32028
|
-
{ id:
|
|
32029
|
-
{ 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 }
|
|
32030
31984
|
];
|
|
32031
31985
|
function scriptShellType(value) {
|
|
32032
31986
|
return SCRIPT_SHELL_TYPES.find((shell) => shell.value === value);
|
|
@@ -32077,7 +32031,7 @@ function ScriptsTable({
|
|
|
32077
32031
|
SCRIPT_COLUMNS.authorId,
|
|
32078
32032
|
(row) => row.author ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
32079
32033
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32080
|
-
|
|
32034
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
32081
32035
|
{
|
|
32082
32036
|
variant: "round",
|
|
32083
32037
|
size: "sm",
|
|
@@ -32087,7 +32041,7 @@ function ScriptsTable({
|
|
|
32087
32041
|
initialsClassName: "text-ods-text-secondary"
|
|
32088
32042
|
}
|
|
32089
32043
|
),
|
|
32090
|
-
/* @__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 }) })
|
|
32091
32045
|
] }) : null
|
|
32092
32046
|
)
|
|
32093
32047
|
];
|
|
@@ -32208,7 +32162,7 @@ function slotValue(minutesOfDay) {
|
|
|
32208
32162
|
return `${String(hours).padStart(2, "0")}:${String(minutes).padStart(2, "0")}`;
|
|
32209
32163
|
}
|
|
32210
32164
|
function slotLabel(minutesOfDay) {
|
|
32211
|
-
return
|
|
32165
|
+
return _chunk5QP3K2CEcjs.formatTime.call(void 0, new Date(1970, 0, 1, Math.floor(minutesOfDay / 60), minutesOfDay % 60));
|
|
32212
32166
|
}
|
|
32213
32167
|
function getTimeSlotOptions(forDate, timeReference) {
|
|
32214
32168
|
const base = slotBaseMinutes(timeReference);
|
|
@@ -32429,9 +32383,9 @@ function ReconnectWindowFields({
|
|
|
32429
32383
|
invalid
|
|
32430
32384
|
}
|
|
32431
32385
|
),
|
|
32432
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
32433
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32434
|
-
/* @__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)) })
|
|
32435
32389
|
] })
|
|
32436
32390
|
] });
|
|
32437
32391
|
}
|
|
@@ -32499,7 +32453,7 @@ function ScheduleOfflineFields({ showErrors, disabled = false }) {
|
|
|
32499
32453
|
options
|
|
32500
32454
|
}
|
|
32501
32455
|
),
|
|
32502
|
-
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 }) })
|
|
32503
32457
|
]
|
|
32504
32458
|
}
|
|
32505
32459
|
) }) })
|
|
@@ -32608,8 +32562,8 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
|
|
|
32608
32562
|
// Dragging towards the edge of the screen — or past it — scrolls whatever
|
|
32609
32563
|
// actually scrolls there: the page, the layout's `<main>`, or the list
|
|
32610
32564
|
// itself when it has its own overflow.
|
|
32611
|
-
|
|
32612
|
-
|
|
32565
|
+
_chunkLJT2KRE2cjs.autoScrollAncestors.call(void 0, list),
|
|
32566
|
+
_chunkLJT2KRE2cjs.autoScrollBothWays.call(void 0, list),
|
|
32613
32567
|
// One target for the whole list: which slot a drop lands in is answered by
|
|
32614
32568
|
// geometry, so this only has to say "inside the list, or outside it".
|
|
32615
32569
|
_adapter.dropTargetForElements.call(void 0, {
|
|
@@ -32906,7 +32860,7 @@ function useSortableItem() {
|
|
|
32906
32860
|
return _combine.combine.call(void 0,
|
|
32907
32861
|
// The drag has to start as a "move", or its first frame is drawn with the
|
|
32908
32862
|
// copy cursor — see `drag-effect.ts`.
|
|
32909
|
-
|
|
32863
|
+
_chunkLJT2KRE2cjs.holdMoveDragEffect.call(void 0, item),
|
|
32910
32864
|
_adapter.draggable.call(void 0, {
|
|
32911
32865
|
element: item,
|
|
32912
32866
|
dragHandle: handle,
|
|
@@ -33330,24 +33284,24 @@ function ScheduleTimingFields({
|
|
|
33330
33284
|
// `''` reads as "no selection" to Radix, so the placeholder shows
|
|
33331
33285
|
// until a slot is picked — a date at midnight no longer
|
|
33332
33286
|
// masquerades as a chosen 12:00 AM.
|
|
33333
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33287
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkXI2CHCODcjs.Select, { value: field.value, onValueChange: field.onChange, disabled: fieldsDisabled, children: [
|
|
33334
33288
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33335
|
-
|
|
33289
|
+
_chunkXI2CHCODcjs.SelectTrigger,
|
|
33336
33290
|
{
|
|
33337
33291
|
className: "w-full",
|
|
33338
33292
|
error: _nullishCoalesce(pastTimeError, () => ( (showErrors ? _optionalChain([fieldState, 'access', _721 => _721.error, 'optionalAccess', _722 => _722.message]) : void 0))),
|
|
33339
33293
|
invalid: !!pastTimeError || showErrors && !!fieldState.error,
|
|
33340
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33294
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectValue, { placeholder: "Select time" })
|
|
33341
33295
|
}
|
|
33342
33296
|
),
|
|
33343
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33297
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.SelectContent, { children: timeSlots.length === 0 ? (
|
|
33344
33298
|
// Deliberately NOT a `SelectItem` — there is nothing here
|
|
33345
33299
|
// to select, and a selectable row would put a bogus value
|
|
33346
33300
|
// in the form. It replaces a popup that opened blank; the
|
|
33347
33301
|
// Date field carries the same sentence for whoever never
|
|
33348
33302
|
// opens this one.
|
|
33349
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 })
|
|
33350
|
-
) : 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)) })
|
|
33351
33305
|
] })
|
|
33352
33306
|
)
|
|
33353
33307
|
}
|
|
@@ -33361,14 +33315,14 @@ function ScheduleTimingFields({
|
|
|
33361
33315
|
name: "timeReference",
|
|
33362
33316
|
control,
|
|
33363
33317
|
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33364
|
-
|
|
33318
|
+
_chunkXI2CHCODcjs.Select,
|
|
33365
33319
|
{
|
|
33366
33320
|
value: field.value,
|
|
33367
33321
|
onValueChange: (next) => handleTimeReferenceChange(field.onChange, next),
|
|
33368
33322
|
disabled: fieldsDisabled,
|
|
33369
33323
|
children: [
|
|
33370
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33371
|
-
/* @__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)) })
|
|
33372
33326
|
]
|
|
33373
33327
|
}
|
|
33374
33328
|
)
|
|
@@ -33428,7 +33382,7 @@ function ScheduleTimingFields({
|
|
|
33428
33382
|
name: "repeatUnit",
|
|
33429
33383
|
control,
|
|
33430
33384
|
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33431
|
-
|
|
33385
|
+
_chunkXI2CHCODcjs.Select,
|
|
33432
33386
|
{
|
|
33433
33387
|
value: field.value,
|
|
33434
33388
|
onValueChange: (next) => {
|
|
@@ -33439,8 +33393,8 @@ function ScheduleTimingFields({
|
|
|
33439
33393
|
},
|
|
33440
33394
|
disabled: fieldsDisabled || !repeatEnabled,
|
|
33441
33395
|
children: [
|
|
33442
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33443
|
-
/* @__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)) })
|
|
33444
33398
|
]
|
|
33445
33399
|
}
|
|
33446
33400
|
)
|
|
@@ -33459,7 +33413,7 @@ function ScheduleFormFields({
|
|
|
33459
33413
|
disabled = false,
|
|
33460
33414
|
renderScriptSearch,
|
|
33461
33415
|
timeReferenceGate = "off",
|
|
33462
|
-
platforms =
|
|
33416
|
+
platforms = _chunkUBPSA3RMcjs.OS_PLATFORMS,
|
|
33463
33417
|
comingSoonPlatforms = [],
|
|
33464
33418
|
getTimeSlots,
|
|
33465
33419
|
nameLayout = "stacked",
|
|
@@ -33529,7 +33483,7 @@ function ScheduleFormFields({
|
|
|
33529
33483
|
platform.id
|
|
33530
33484
|
);
|
|
33531
33485
|
}) }),
|
|
33532
|
-
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, () => ( "")) }) })
|
|
33533
33487
|
]
|
|
33534
33488
|
}
|
|
33535
33489
|
);
|
|
@@ -33605,7 +33559,7 @@ function ScheduleFormFields({
|
|
|
33605
33559
|
// src/components/features/scripts/schedule-form/schedule-script-search-field.tsx
|
|
33606
33560
|
|
|
33607
33561
|
function ScriptPlatformIcons({ platforms }) {
|
|
33608
|
-
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)) });
|
|
33609
33563
|
}
|
|
33610
33564
|
function ScheduleScriptSearchField({
|
|
33611
33565
|
scriptId,
|
|
@@ -33631,7 +33585,7 @@ function ScheduleScriptSearchField({
|
|
|
33631
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: [
|
|
33632
33586
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFL2RMEDXcjs.Label, { className: "text-h4", children: "Select Script" }),
|
|
33633
33587
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33634
|
-
|
|
33588
|
+
_chunkXI2CHCODcjs.Autocomplete,
|
|
33635
33589
|
{
|
|
33636
33590
|
options,
|
|
33637
33591
|
value: scriptId || null,
|
|
@@ -33646,7 +33600,7 @@ function ScheduleScriptSearchField({
|
|
|
33646
33600
|
error,
|
|
33647
33601
|
invalid,
|
|
33648
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: [
|
|
33649
|
-
/* @__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 }) }),
|
|
33650
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]), () => ( [])) })
|
|
33651
33605
|
] })
|
|
33652
33606
|
}
|
|
@@ -33678,7 +33632,7 @@ function getKnowledgeBaseOpenColumn(getHref) {
|
|
|
33678
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,
|
|
33679
33633
|
_chunkTF5D5MNOcjs.Button,
|
|
33680
33634
|
{
|
|
33681
|
-
onClick:
|
|
33635
|
+
onClick: _chunkUBPSA3RMcjs.openInNewTab.call(void 0, getHref(row.original)),
|
|
33682
33636
|
variant: "outline",
|
|
33683
33637
|
size: "icon",
|
|
33684
33638
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
@@ -33704,9 +33658,9 @@ function getKnowledgeBaseColumns(mode) {
|
|
|
33704
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" }) }),
|
|
33705
33659
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
33706
33660
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
33707
|
-
/* @__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 }) }),
|
|
33708
33662
|
tagStatus && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33709
|
-
|
|
33663
|
+
_chunkHY6BCZH7cjs.Tag,
|
|
33710
33664
|
{
|
|
33711
33665
|
variant: KNOWLEDGE_BASE_STATUS_VARIANT[tagStatus],
|
|
33712
33666
|
label: tagStatus,
|
|
@@ -33714,7 +33668,7 @@ function getKnowledgeBaseColumns(mode) {
|
|
|
33714
33668
|
}
|
|
33715
33669
|
)
|
|
33716
33670
|
] }),
|
|
33717
|
-
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 })
|
|
33718
33672
|
] })
|
|
33719
33673
|
] });
|
|
33720
33674
|
},
|
|
@@ -33729,8 +33683,8 @@ function getKnowledgeBaseColumns(mode) {
|
|
|
33729
33683
|
const ts = mode === "archive" ? _nullishCoalesce(row.original.updatedAt, () => ( row.original.createdAt)) : row.original.createdAt;
|
|
33730
33684
|
if (!ts) return null;
|
|
33731
33685
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col whitespace-nowrap", children: [
|
|
33732
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-primary text-h4", children:
|
|
33733
|
-
/* @__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) })
|
|
33734
33688
|
] });
|
|
33735
33689
|
},
|
|
33736
33690
|
enableSorting: false,
|
|
@@ -33794,7 +33748,7 @@ function KnowledgeBaseArticleView({
|
|
|
33794
33748
|
className = "px-[var(--spacing-system-l)] pb-[var(--spacing-system-l)]"
|
|
33795
33749
|
}) {
|
|
33796
33750
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33797
|
-
|
|
33751
|
+
_chunkXI2CHCODcjs.PageLayout,
|
|
33798
33752
|
{
|
|
33799
33753
|
title,
|
|
33800
33754
|
backButton: onBack ? { label: "Back", onClick: onBack } : void 0,
|
|
@@ -33803,11 +33757,11 @@ function KnowledgeBaseArticleView({
|
|
|
33803
33757
|
menuActions,
|
|
33804
33758
|
className,
|
|
33805
33759
|
children: [
|
|
33806
|
-
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,
|
|
33807
|
-
/* @__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: [
|
|
33808
33762
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
33809
|
-
author.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33810
|
-
|
|
33763
|
+
author.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJT2KRE2cjs.DeletedUserAvatar, { size: "md" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33764
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
33811
33765
|
{
|
|
33812
33766
|
src: author.imageUrl,
|
|
33813
33767
|
fallback: _nullishCoalesce(author.name, () => ( "A")),
|
|
@@ -33817,12 +33771,12 @@ function KnowledgeBaseArticleView({
|
|
|
33817
33771
|
}
|
|
33818
33772
|
),
|
|
33819
33773
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
33820
|
-
/* @__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")) }),
|
|
33821
33775
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Author" })
|
|
33822
33776
|
] })
|
|
33823
33777
|
] }),
|
|
33824
33778
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 min-w-0 flex-col justify-center", children: [
|
|
33825
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33779
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { children: updatedLabel }),
|
|
33826
33780
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Updated" })
|
|
33827
33781
|
] }),
|
|
33828
33782
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -33833,7 +33787,7 @@ function KnowledgeBaseArticleView({
|
|
|
33833
33787
|
}
|
|
33834
33788
|
),
|
|
33835
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: [
|
|
33836
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33790
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { variant: KNOWLEDGE_BASE_STATUS_VARIANT[status], label: status }),
|
|
33837
33791
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Status" })
|
|
33838
33792
|
] })
|
|
33839
33793
|
] }) }),
|
|
@@ -33968,7 +33922,7 @@ function ConversationCard({
|
|
|
33968
33922
|
style: tint,
|
|
33969
33923
|
onClick: selection && ((event) => {
|
|
33970
33924
|
if (event.button !== 0 || _optionalChain([window, 'access', _733 => _733.getSelection, 'call', _734 => _734(), 'optionalAccess', _735 => _735.toString, 'call', _736 => _736()])) return;
|
|
33971
|
-
if (!
|
|
33925
|
+
if (!_chunkUBPSA3RMcjs.isOwnClick.call(void 0, event.target, event.currentTarget, { controls: true })) return;
|
|
33972
33926
|
selection.onToggle();
|
|
33973
33927
|
}),
|
|
33974
33928
|
children: [
|
|
@@ -33991,7 +33945,7 @@ function ConversationCard({
|
|
|
33991
33945
|
children: selection.pressed ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX4UZ62MYcjs.PlusIcon, {})
|
|
33992
33946
|
}
|
|
33993
33947
|
),
|
|
33994
|
-
/* @__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,
|
|
33995
33949
|
"p",
|
|
33996
33950
|
{
|
|
33997
33951
|
id: requestId,
|
|
@@ -34010,7 +33964,7 @@ function ConversationCard({
|
|
|
34010
33964
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: CONTEXT_TEXT_CLASS, style: partLinesStyle(_optionalChain([lines, 'optionalAccess', _737 => _737.context])), children: context.text })
|
|
34011
33965
|
] }),
|
|
34012
33966
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34013
|
-
|
|
33967
|
+
_chunkUBPSA3RMcjs.ChatTurn,
|
|
34014
33968
|
{
|
|
34015
33969
|
avatar: responder.avatar,
|
|
34016
33970
|
name: responder.name,
|
|
@@ -34026,17 +33980,17 @@ function ConversationCard({
|
|
|
34026
33980
|
),
|
|
34027
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: [
|
|
34028
33982
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: footerLabel }),
|
|
34029
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33983
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { as: "span", label: footerValue, variant: footerTone === "attention" ? "warning" : "badge" })
|
|
34030
33984
|
] })
|
|
34031
33985
|
]
|
|
34032
33986
|
}
|
|
34033
33987
|
);
|
|
34034
33988
|
}
|
|
34035
33989
|
function TurnSkeleton({ avatarPx, meta, children }) {
|
|
34036
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
34037
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34038
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
34039
|
-
/* @__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 }),
|
|
34040
33994
|
children
|
|
34041
33995
|
] })
|
|
34042
33996
|
] });
|
|
@@ -34073,7 +34027,7 @@ function ConversationCardSkeleton({
|
|
|
34073
34027
|
] }) }) }),
|
|
34074
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: [
|
|
34075
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" }),
|
|
34076
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34030
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { as: "span", label: "\xA0", variant: "badge", className: "invisible" })
|
|
34077
34031
|
] })
|
|
34078
34032
|
] });
|
|
34079
34033
|
}
|
|
@@ -34098,7 +34052,7 @@ function Highlights({ items, className }) {
|
|
|
34098
34052
|
if (items.length === 0) return null;
|
|
34099
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: [
|
|
34100
34054
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { size: HIGHLIGHT_ICON_PX, className: "shrink-0 text-ods-flamingo-cyan" }),
|
|
34101
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34055
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXI2CHCODcjs.TruncateText, { variant: "h6", triggerClassName: "flex-1", children: text })
|
|
34102
34056
|
] }, text)) });
|
|
34103
34057
|
}
|
|
34104
34058
|
function Example({
|
|
@@ -34134,7 +34088,7 @@ function Example({
|
|
|
34134
34088
|
mark(_nullishCoalesce(_optionalChain([requester, 'optionalAccess', _741 => _741.mark]), () => ( requesterMark))),
|
|
34135
34089
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
34136
34090
|
who(_nullishCoalesce(_optionalChain([requester, 'optionalAccess', _742 => _742.name]), () => ( labels.requester)), _nullishCoalesce(_optionalChain([requester, 'optionalAccess', _743 => _743.note]), () => ( labels.requesterNote))),
|
|
34137
|
-
/* @__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` })
|
|
34138
34092
|
] })
|
|
34139
34093
|
] }),
|
|
34140
34094
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 gap-2.5 border-t border-ods-border pt-3", children: [
|
|
@@ -34143,7 +34097,7 @@ function Example({
|
|
|
34143
34097
|
who(_nullishCoalesce(_optionalChain([responder, 'optionalAccess', _745 => _745.name]), () => ( labels.responder)), _nullishCoalesce(_optionalChain([responder, 'optionalAccess', _746 => _746.note]), () => ( labels.responderNote))),
|
|
34144
34098
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-start gap-2", children: [
|
|
34145
34099
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { size: 16, className: "mt-0.5 shrink-0 text-ods-flamingo-cyan" }),
|
|
34146
|
-
/* @__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 })
|
|
34147
34101
|
] })
|
|
34148
34102
|
] })
|
|
34149
34103
|
] })
|
|
@@ -34153,7 +34107,7 @@ function Example({
|
|
|
34153
34107
|
}
|
|
34154
34108
|
function ExampleSkeleton({ className }) {
|
|
34155
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: [
|
|
34156
|
-
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 }),
|
|
34157
34111
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
34158
34112
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "h6", className: "w-28" }),
|
|
34159
34113
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-h-[2lh] text-h4", children: [
|
|
@@ -34292,16 +34246,16 @@ function CapabilityExplorer({
|
|
|
34292
34246
|
),
|
|
34293
34247
|
children: [
|
|
34294
34248
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
34295
|
-
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 }) }),
|
|
34296
34250
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
34297
34251
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "h3", { className: "flex min-w-0 items-center gap-2 text-ods-text-primary text-h4", children: [
|
|
34298
|
-
/* @__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 }),
|
|
34299
34253
|
item.badge
|
|
34300
34254
|
] }),
|
|
34301
|
-
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 })
|
|
34302
34256
|
] })
|
|
34303
34257
|
] }),
|
|
34304
|
-
/* @__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 }),
|
|
34305
34259
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0 overflow-hidden rounded-lg border border-ods-border", children: renderScreen(item, { compact: true }) }),
|
|
34306
34260
|
item.example && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34307
34261
|
Example,
|
|
@@ -34373,7 +34327,7 @@ function CapabilityExplorer({
|
|
|
34373
34327
|
"span",
|
|
34374
34328
|
{
|
|
34375
34329
|
className: _chunk65VVJSQZcjs.cn.call(void 0, JOB_ICON_TILE_CLASS, selected ? "text-ods-flamingo-cyan" : "text-ods-text-secondary"),
|
|
34376
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34330
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.EntityIcon, { icon: { name: item.iconName }, size: 18 })
|
|
34377
34331
|
}
|
|
34378
34332
|
),
|
|
34379
34333
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "min-w-0 flex-1", children: [
|
|
@@ -34426,8 +34380,8 @@ function CapabilityExplorer({
|
|
|
34426
34380
|
),
|
|
34427
34381
|
children: [
|
|
34428
34382
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col overflow-hidden", children: [
|
|
34429
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34430
|
-
/* @__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 }),
|
|
34431
34385
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Highlights, { items: _nullishCoalesce(active.highlights, () => ( [])), className: "mt-auto" })
|
|
34432
34386
|
] }),
|
|
34433
34387
|
active.example && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|