@flamingo-stack/openframe-frontend-core 0.0.767 → 0.0.769
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-KHISVNNH.cjs → chunk-3AZZFTT6.cjs} +6 -6
- package/dist/{chunk-DGNBXZXT.cjs → chunk-4EJU462O.cjs} +57 -30
- package/dist/{chunk-GJ5DHDFQ.cjs → chunk-5HWBW7WU.cjs} +12 -12
- package/dist/{chunk-IKXUJUXC.cjs → chunk-5O6PHVKO.cjs} +4 -4
- package/dist/{chunk-XZ6DKGT4.cjs → chunk-5QP3K2CE.cjs} +5 -5
- package/dist/{chunk-NO2DEFAP.cjs → chunk-BIHMMGRP.cjs} +80 -80
- package/dist/{chunk-YRFWOJF4.cjs → chunk-BLTNKLAX.cjs} +4 -4
- package/dist/{chunk-I7A5MPXA.cjs → chunk-D45Q3WEP.cjs} +3 -3
- package/dist/{chunk-WEPIWJGR.cjs → chunk-DEJB5WHZ.cjs} +26 -26
- package/dist/{chunk-GTONIRJU.cjs → chunk-EHJE3UWZ.cjs} +10 -16
- package/dist/{chunk-XIXR6BHI.cjs → chunk-EZTHTSWZ.cjs} +44 -44
- 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-MNIMYGFR.cjs → chunk-IEPWXEA6.cjs} +31 -31
- package/dist/{chunk-FVH53QZJ.cjs → chunk-L5WSNX4H.cjs} +517 -550
- package/dist/{chunk-MPTMT773.cjs → chunk-LJT2KRE2.cjs} +14 -14
- package/dist/{chunk-NBVZIHGS.cjs → chunk-MYA6NR2C.cjs} +2 -2
- package/dist/{chunk-ZV45VS6K.cjs → chunk-MZLWB5AH.cjs} +35 -44
- package/dist/{chunk-GQ7RGD4Y.cjs → chunk-QC47HVA4.cjs} +76 -76
- package/dist/{chunk-ZRDMGMY7.cjs → chunk-QS4G7CHU.cjs} +2 -2
- package/dist/{chunk-TPOLNGOW.cjs → chunk-SV6K7ZLA.cjs} +41 -41
- package/dist/{chunk-JBJVUQVH.cjs → chunk-UBPSA3RM.cjs} +87 -87
- package/dist/{chunk-7TJVYRHR.cjs → chunk-UIXWG2IW.cjs} +24 -24
- package/dist/{chunk-AAECWUNV.cjs → chunk-VFUMM6JC.cjs} +19 -11
- package/dist/{chunk-7ZU3AVEX.cjs → chunk-VVBRYOSI.cjs} +19 -19
- package/dist/{chunk-M2UU3CWX.cjs → chunk-YTPEJIAO.cjs} +5 -5
- 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-3BEIT4LX.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/features/remote-session/remote-session-keep-modals.d.ts.map +1 -1
- package/dist/components/features/remote-session/remote-session-keep-modals.js +1 -1
- package/dist/components/help-center-pages/index.cjs +98 -98
- package/dist/components/icon-display.d.ts.map +1 -1
- package/dist/components/icon-display.js +9 -1
- package/dist/components/index.cjs +74 -74
- package/dist/components/interactive-wrapper.d.ts.map +1 -1
- package/dist/components/interactive-wrapper.js +7 -1
- package/dist/components/layout/page-heading.d.ts.map +1 -1
- package/dist/components/layout/page-heading.js +8 -1
- package/dist/components/meeting-scheduler/directory.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +73 -73
- package/dist/components/navigation/index.cjs +16 -16
- package/dist/components/onboarding-guides/index.cjs +16 -16
- package/dist/components/product-demo/index.cjs +24 -24
- package/dist/components/related-content/index.cjs +7 -7
- package/dist/components/results-count.d.ts.map +1 -1
- package/dist/components/results-count.js +2 -2
- package/dist/components/tickets/index.cjs +19 -19
- package/dist/components/ui/avatar-stack.d.ts.map +1 -1
- package/dist/components/ui/avatar-stack.js +17 -9
- package/dist/components/ui/cursor-pagination.d.ts.map +1 -1
- package/dist/components/ui/data-table/data-table-row-count.js +1 -1
- package/dist/components/ui/date-picker.d.ts.map +1 -1
- package/dist/components/ui/date-picker.js +16 -3
- 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-ZCOK24D4.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-W47QGTEK.cjs} +14 -14
- package/dist/{logs-B3KCCMPE.cjs → logs-3DMPE2TM.cjs} +21 -21
- package/dist/{policies-ZTUIXSYZ.cjs → policies-UWHW765K.cjs} +17 -17
- package/dist/{remote-session-PPA5SXX7.cjs → remote-session-WVORQV7V.cjs} +7 -7
- package/dist/{scripts-FIFAHBS6.cjs → scripts-BH7V2ZC4.cjs} +20 -20
- package/dist/{software-update-62PLASQU.cjs → software-update-W6AAGJ2H.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/features/remote-session/remote-session-keep-modals.tsx +2 -1
- package/src/components/icon-display.tsx +6 -1
- package/src/components/interactive-wrapper.tsx +4 -1
- package/src/components/layout/page-heading.tsx +15 -3
- package/src/components/meeting-scheduler/directory.tsx +2 -1
- package/src/components/results-count.tsx +3 -2
- package/src/components/ui/avatar-stack.tsx +5 -1
- package/src/components/ui/button/button-styles.ts +0 -1
- package/src/components/ui/cursor-pagination.tsx +8 -1
- package/src/components/ui/data-table/data-table-row-count.tsx +1 -1
- package/src/components/ui/date-picker.tsx +41 -14
- 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 _chunkMZLWB5AHcjs = require('./chunk-MZLWB5AH.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
|
+
_chunkMZLWB5AHcjs.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);
|
|
@@ -1483,6 +1483,8 @@ var timeSelectTriggerStyles = _chunk65VVJSQZcjs.cn.call(void 0,
|
|
|
1483
1483
|
"cursor-pointer transition-colors duration-200",
|
|
1484
1484
|
"text-ods-text-primary"
|
|
1485
1485
|
);
|
|
1486
|
+
var DATE_POPOVER_COLLISION_PADDING = 16;
|
|
1487
|
+
var datePopoverBounds = "max-h-[var(--radix-popover-content-available-height)]";
|
|
1486
1488
|
function DatePicker(props) {
|
|
1487
1489
|
const {
|
|
1488
1490
|
placeholder = "Select date",
|
|
@@ -1554,12 +1556,15 @@ function DatePicker(props) {
|
|
|
1554
1556
|
{
|
|
1555
1557
|
className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
1556
1558
|
"z-[9999]",
|
|
1559
|
+
datePopoverBounds,
|
|
1560
|
+
"overflow-y-auto",
|
|
1557
1561
|
"animate-in fade-in-0 zoom-in-95",
|
|
1558
1562
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
1559
1563
|
"data-[side=bottom]:slide-in-from-top-2",
|
|
1560
1564
|
"data-[side=top]:slide-in-from-bottom-2"
|
|
1561
1565
|
),
|
|
1562
1566
|
sideOffset: 8,
|
|
1567
|
+
collisionPadding: DATE_POPOVER_COLLISION_PADDING,
|
|
1563
1568
|
align: "start",
|
|
1564
1569
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1565
1570
|
DatePickerCalendar,
|
|
@@ -1703,12 +1708,15 @@ function DatePickerInput(props) {
|
|
|
1703
1708
|
{
|
|
1704
1709
|
className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
1705
1710
|
"z-[9999]",
|
|
1711
|
+
datePopoverBounds,
|
|
1712
|
+
"overflow-y-auto",
|
|
1706
1713
|
"animate-in fade-in-0 zoom-in-95",
|
|
1707
1714
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
1708
1715
|
"data-[side=bottom]:slide-in-from-top-2",
|
|
1709
1716
|
"data-[side=top]:slide-in-from-bottom-2"
|
|
1710
1717
|
),
|
|
1711
1718
|
sideOffset: 8,
|
|
1719
|
+
collisionPadding: DATE_POPOVER_COLLISION_PADDING,
|
|
1712
1720
|
align: "start",
|
|
1713
1721
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1714
1722
|
DatePickerCalendar,
|
|
@@ -1726,20 +1734,20 @@ function DatePickerInput(props) {
|
|
|
1726
1734
|
) })
|
|
1727
1735
|
] }),
|
|
1728
1736
|
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,
|
|
1737
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.Select, { value: hour, onValueChange: handleHourChange, disabled, children: [
|
|
1738
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { className: _chunk65VVJSQZcjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, { placeholder: "HH" }) }),
|
|
1739
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { children: hourOptions.map((h) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: h, children: h }, h)) })
|
|
1732
1740
|
] }),
|
|
1733
1741
|
/* @__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,
|
|
1742
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.Select, { value: minute, onValueChange: handleMinuteChange, disabled, children: [
|
|
1743
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { className: _chunk65VVJSQZcjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, { placeholder: "MM" }) }),
|
|
1744
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { children: minuteOptions.map((m) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: m, children: m }, m)) })
|
|
1737
1745
|
] }),
|
|
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,
|
|
1746
|
+
!use24HourFormat && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.Select, { value: period, onValueChange: (val) => handlePeriodChange(val), disabled, children: [
|
|
1747
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { className: _chunk65VVJSQZcjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, { placeholder: "AM" }) }),
|
|
1748
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { children: [
|
|
1749
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "AM", children: "AM" }),
|
|
1750
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "PM", children: "PM" })
|
|
1743
1751
|
] })
|
|
1744
1752
|
] })
|
|
1745
1753
|
] })
|
|
@@ -1860,12 +1868,15 @@ function DatePickerInputSimple(props) {
|
|
|
1860
1868
|
{
|
|
1861
1869
|
className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
1862
1870
|
"z-[9999]",
|
|
1871
|
+
datePopoverBounds,
|
|
1872
|
+
"overflow-y-auto",
|
|
1863
1873
|
"animate-in fade-in-0 zoom-in-95",
|
|
1864
1874
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
1865
1875
|
"data-[side=bottom]:slide-in-from-top-2",
|
|
1866
1876
|
"data-[side=top]:slide-in-from-bottom-2"
|
|
1867
1877
|
),
|
|
1868
1878
|
sideOffset: 8,
|
|
1879
|
+
collisionPadding: DATE_POPOVER_COLLISION_PADDING,
|
|
1869
1880
|
align: "start",
|
|
1870
1881
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1871
1882
|
DatePickerCalendar,
|
|
@@ -1882,9 +1893,9 @@ function DatePickerInputSimple(props) {
|
|
|
1882
1893
|
}
|
|
1883
1894
|
) })
|
|
1884
1895
|
] }),
|
|
1885
|
-
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1886
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1887
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1896
|
+
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.Select, { value: timeValue, onValueChange: handleTimeChange, disabled, children: [
|
|
1897
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { className: _chunk65VVJSQZcjs.cn.call(void 0, timeSelectTriggerStyles, "flex-1"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, { placeholder: "Select time", children: timeDisplayLabel || "Select time" }) }),
|
|
1898
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { children: timeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
1888
1899
|
] })
|
|
1889
1900
|
] });
|
|
1890
1901
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYXDHVHB2cjs.FieldWrapper, { label, error, errorSlot: "error" in props, className, children: content });
|
|
@@ -1903,14 +1914,14 @@ function DateFilterPanel({
|
|
|
1903
1914
|
className
|
|
1904
1915
|
}) {
|
|
1905
1916
|
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,
|
|
1917
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.Select, { value: sort, onValueChange: (value) => onSortChange(value), children: [
|
|
1918
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.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
1919
|
/* @__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,
|
|
1920
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, {}) })
|
|
1910
1921
|
] }) }),
|
|
1911
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1912
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1913
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1922
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { children: [
|
|
1923
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "asc", children: ascLabel }),
|
|
1924
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "desc", children: descLabel })
|
|
1914
1925
|
] })
|
|
1915
1926
|
] }),
|
|
1916
1927
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1997,6 +2008,7 @@ function DateFilterMenu({
|
|
|
1997
2008
|
{
|
|
1998
2009
|
className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
1999
2010
|
"z-[9999] w-80 max-w-[calc(100vw-2rem)]",
|
|
2011
|
+
datePopoverBounds,
|
|
2000
2012
|
"flex flex-col gap-4 rounded-[6px] border border-ods-border bg-ods-bg p-4",
|
|
2001
2013
|
"animate-in fade-in-0 zoom-in-95",
|
|
2002
2014
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
@@ -2004,9 +2016,10 @@ function DateFilterMenu({
|
|
|
2004
2016
|
"data-[side=top]:slide-in-from-bottom-2"
|
|
2005
2017
|
),
|
|
2006
2018
|
sideOffset: 8,
|
|
2019
|
+
collisionPadding: DATE_POPOVER_COLLISION_PADDING,
|
|
2007
2020
|
align,
|
|
2008
2021
|
children: [
|
|
2009
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2022
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-0 overflow-y-auto", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2010
2023
|
DateFilterPanel,
|
|
2011
2024
|
{
|
|
2012
2025
|
mode,
|
|
@@ -2020,8 +2033,8 @@ function DateFilterMenu({
|
|
|
2020
2033
|
ascLabel,
|
|
2021
2034
|
descLabel
|
|
2022
2035
|
}
|
|
2023
|
-
),
|
|
2024
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-stretch gap-4", children: [
|
|
2036
|
+
) }),
|
|
2037
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full shrink-0 items-stretch gap-4", children: [
|
|
2025
2038
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { type: "button", variant: "outline", fullWidth: true, onClick: hasChanges ? handleReset : handleClose, children: hasChanges ? "Reset" : "Close" }),
|
|
2026
2039
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { type: "button", variant: "accent", fullWidth: true, onClick: handleApply, children: "Apply" })
|
|
2027
2040
|
] })
|
|
@@ -2188,7 +2201,7 @@ function Value({ value, depth }) {
|
|
|
2188
2201
|
}
|
|
2189
2202
|
if (typeof value === "string") {
|
|
2190
2203
|
if (ISO_DATE.test(value)) {
|
|
2191
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: value, className: "text-ods-text-secondary", children:
|
|
2204
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: value, className: "text-ods-text-secondary", children: _chunkEHJE3UWZcjs.formatRelativeTime.call(void 0, value) });
|
|
2192
2205
|
}
|
|
2193
2206
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-pre-wrap text-ods-text-primary", children: value });
|
|
2194
2207
|
}
|
|
@@ -2669,7 +2682,7 @@ function CompactAssigneeDropdown({
|
|
|
2669
2682
|
value: o.value,
|
|
2670
2683
|
label: o.label,
|
|
2671
2684
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2672
|
-
|
|
2685
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
2673
2686
|
{
|
|
2674
2687
|
src: o.imageUrl,
|
|
2675
2688
|
alt: o.label,
|
|
@@ -2703,8 +2716,8 @@ function CompactAssigneeDropdown({
|
|
|
2703
2716
|
"shrink-0 rounded-full focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-focus",
|
|
2704
2717
|
className
|
|
2705
2718
|
),
|
|
2706
|
-
children: currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2707
|
-
|
|
2719
|
+
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,
|
|
2720
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
2708
2721
|
{
|
|
2709
2722
|
src: currentAssignee.avatarSrc,
|
|
2710
2723
|
alt: currentAssignee.name,
|
|
@@ -2752,7 +2765,7 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
2752
2765
|
const opt = option;
|
|
2753
2766
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center gap-[var(--spacing-system-sf)]", children: [
|
|
2754
2767
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2755
|
-
|
|
2768
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
2756
2769
|
{
|
|
2757
2770
|
src: opt.imageUrl,
|
|
2758
2771
|
alt: opt.label,
|
|
@@ -2768,7 +2781,7 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
2768
2781
|
if (isEditing) {
|
|
2769
2782
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "min-w-0", className), children: [
|
|
2770
2783
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2771
|
-
|
|
2784
|
+
_chunkMZLWB5AHcjs.Autocomplete,
|
|
2772
2785
|
{
|
|
2773
2786
|
options,
|
|
2774
2787
|
value: _nullishCoalesce(_optionalChain([currentAssignee, 'optionalAccess', _35 => _35.id]), () => ( null)),
|
|
@@ -2780,14 +2793,14 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
2780
2793
|
loading: isLoading,
|
|
2781
2794
|
showChevron: false,
|
|
2782
2795
|
startAdornment: hasAssignee ? currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2783
|
-
|
|
2796
|
+
_chunkLJT2KRE2cjs.DeletedUserAvatar,
|
|
2784
2797
|
{
|
|
2785
2798
|
size: "sm",
|
|
2786
2799
|
className: "h-6 w-6",
|
|
2787
2800
|
accessibleLabel: `Deleted user: ${currentAssignee.name || currentAssignee.id}`
|
|
2788
2801
|
}
|
|
2789
2802
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2790
|
-
|
|
2803
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
2791
2804
|
{
|
|
2792
2805
|
src: currentAssignee.avatarSrc,
|
|
2793
2806
|
alt: currentAssignee.name,
|
|
@@ -2806,13 +2819,13 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
2806
2819
|
if (hasAssignee) {
|
|
2807
2820
|
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
2821
|
currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2809
|
-
|
|
2822
|
+
_chunkLJT2KRE2cjs.DeletedUserAvatar,
|
|
2810
2823
|
{
|
|
2811
2824
|
size: "md",
|
|
2812
2825
|
accessibleLabel: `Deleted user: ${currentAssignee.name || currentAssignee.id}`
|
|
2813
2826
|
}
|
|
2814
2827
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2815
|
-
|
|
2828
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
2816
2829
|
{
|
|
2817
2830
|
src: currentAssignee.avatarSrc,
|
|
2818
2831
|
alt: currentAssignee.name,
|
|
@@ -2886,7 +2899,7 @@ function TextValue({ value }) {
|
|
|
2886
2899
|
}
|
|
2887
2900
|
) : 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
2901
|
hasImage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2889
|
-
|
|
2902
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
2890
2903
|
{
|
|
2891
2904
|
src: imageSrc,
|
|
2892
2905
|
alt: text,
|
|
@@ -2906,7 +2919,7 @@ function RowValue({ value }) {
|
|
|
2906
2919
|
}
|
|
2907
2920
|
case "status": {
|
|
2908
2921
|
const { type: _type, ...props } = value;
|
|
2909
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2922
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.TicketStatusTag, { ...props });
|
|
2910
2923
|
}
|
|
2911
2924
|
case "custom":
|
|
2912
2925
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: value.content });
|
|
@@ -3004,7 +3017,7 @@ function MediaTypeSelector({
|
|
|
3004
3017
|
// changed) and cost an extra render pass on every change to say what the
|
|
3005
3018
|
// prop already said.
|
|
3006
3019
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3007
|
-
|
|
3020
|
+
_chunkMZLWB5AHcjs.Select,
|
|
3008
3021
|
{
|
|
3009
3022
|
value: value || void 0,
|
|
3010
3023
|
onValueChange: (next) => {
|
|
@@ -3014,8 +3027,8 @@ function MediaTypeSelector({
|
|
|
3014
3027
|
disabled,
|
|
3015
3028
|
defaultValue: value,
|
|
3016
3029
|
children: [
|
|
3017
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3018
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3030
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, { placeholder }) }),
|
|
3031
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { children: mediaTypeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: option.value, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
3019
3032
|
option.icon,
|
|
3020
3033
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: option.label })
|
|
3021
3034
|
] }) }, option.value)) })
|
|
@@ -3868,7 +3881,7 @@ function TagsManager({
|
|
|
3868
3881
|
}
|
|
3869
3882
|
),
|
|
3870
3883
|
selectedTags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3871
|
-
|
|
3884
|
+
_chunkHY6BCZH7cjs.Tag,
|
|
3872
3885
|
{
|
|
3873
3886
|
label: tag.name,
|
|
3874
3887
|
variant: "outline",
|
|
@@ -4427,10 +4440,10 @@ function useConfirm() {
|
|
|
4427
4440
|
},
|
|
4428
4441
|
[]
|
|
4429
4442
|
);
|
|
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,
|
|
4443
|
+
const dialog = pending ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.Modal, { isOpen: open, onClose: () => decide(false), children: [
|
|
4444
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalTitle, { children: pending.title }) }),
|
|
4445
|
+
/* @__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 }) }),
|
|
4446
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.ModalFooter, { children: [
|
|
4434
4447
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { variant: "outline", onClick: () => decide(false), children: "Cancel" }),
|
|
4435
4448
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { variant: "destructive", onClick: () => decide(true), children: "Confirm" })
|
|
4436
4449
|
] })
|
|
@@ -4508,7 +4521,7 @@ function AdminFormDrawer({
|
|
|
4508
4521
|
"form",
|
|
4509
4522
|
{
|
|
4510
4523
|
id: formId,
|
|
4511
|
-
...
|
|
4524
|
+
..._chunkUBPSA3RMcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
4512
4525
|
className: "flex flex-col gap-[var(--spacing-system-lf)]",
|
|
4513
4526
|
onSubmit: (e) => {
|
|
4514
4527
|
e.preventDefault();
|
|
@@ -4606,16 +4619,16 @@ function AdminFormModal({
|
|
|
4606
4619
|
body: "Your edits have not been saved. Close and discard them?"
|
|
4607
4620
|
});
|
|
4608
4621
|
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,
|
|
4622
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.Modal, { isOpen: true, onClose: guardedClose, size: effectiveSize, children: [
|
|
4623
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.ModalHeader, { children: [
|
|
4624
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalTitle, { children: title }),
|
|
4612
4625
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-ods-text-secondary text-h6", children: subtitle })
|
|
4613
4626
|
] }),
|
|
4614
4627
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4615
4628
|
"form",
|
|
4616
4629
|
{
|
|
4617
4630
|
id: formId,
|
|
4618
|
-
...
|
|
4631
|
+
..._chunkUBPSA3RMcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
4619
4632
|
className: "flex min-h-0 flex-1 flex-col",
|
|
4620
4633
|
onSubmit: (e) => {
|
|
4621
4634
|
e.preventDefault();
|
|
@@ -4633,7 +4646,7 @@ function AdminFormModal({
|
|
|
4633
4646
|
// a shrink-to-fit flex item pinned to the left of a 1400px panel).
|
|
4634
4647
|
// The placeholder owns its own layout and mirrors the column count so
|
|
4635
4648
|
// the modal doesn't visibly re-flow when the entity lands.
|
|
4636
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4649
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalContent, { children: loadingContent ? (
|
|
4637
4650
|
// The one announcement: a `loadingContent` with a region of its own takes `region={false}`.
|
|
4638
4651
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEANWBJHcjs.LoadingRegion, { label: "Loading", children: loadingContent })
|
|
4639
4652
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -4654,12 +4667,12 @@ function AdminFormModal({
|
|
|
4654
4667
|
] }, i)) }, col))
|
|
4655
4668
|
}
|
|
4656
4669
|
) })
|
|
4657
|
-
) : twoColumn ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4670
|
+
) : 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
4671
|
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { role: "alert", className: "shrink-0 text-ods-error text-h6", children: error })
|
|
4659
4672
|
]
|
|
4660
4673
|
}
|
|
4661
4674
|
),
|
|
4662
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4675
|
+
/* @__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
4676
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: footerExtras }),
|
|
4664
4677
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
4665
4678
|
footerStatus,
|
|
@@ -5407,7 +5420,7 @@ var TabBar = _react.memo.call(void 0, function TabBarImpl({
|
|
|
5407
5420
|
// as tall as its neighbours at every breakpoint. No hover shade:
|
|
5408
5421
|
// the tab is the target, and the cursor passes through to it.
|
|
5409
5422
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5410
|
-
|
|
5423
|
+
_chunkHY6BCZH7cjs.Tag,
|
|
5411
5424
|
{
|
|
5412
5425
|
as: "span",
|
|
5413
5426
|
"aria-hidden": true,
|
|
@@ -6005,7 +6018,7 @@ function EmbedViewerFrame({
|
|
|
6005
6018
|
const controllerRef = _react.useRef.call(void 0, null);
|
|
6006
6019
|
_react.useEffect.call(void 0, () => {
|
|
6007
6020
|
if (!fullscreenControl) return void 0;
|
|
6008
|
-
const controller = new (0,
|
|
6021
|
+
const controller = new (0, _chunkUBPSA3RMcjs.FullscreenSwitchController)({
|
|
6009
6022
|
target: () => frameRef.current,
|
|
6010
6023
|
onFullscreenChange: setIsFullscreen
|
|
6011
6024
|
});
|
|
@@ -6669,12 +6682,12 @@ var OGLinkPreview = ({
|
|
|
6669
6682
|
children: [
|
|
6670
6683
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TILE_SOURCE_ROW_CLASS, children: [
|
|
6671
6684
|
/* @__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,
|
|
6685
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { as: "span", variant: "h6", className: "text-current", children: name }),
|
|
6673
6686
|
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
6687
|
] }),
|
|
6675
6688
|
kicker != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-hidden text-ods-accent text-h5", style: lineClamp(1), children: kicker }),
|
|
6676
6689
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6677
|
-
|
|
6690
|
+
_chunkMZLWB5AHcjs.TruncateText,
|
|
6678
6691
|
{
|
|
6679
6692
|
lines: 2,
|
|
6680
6693
|
variant: "h3",
|
|
@@ -6683,7 +6696,7 @@ var OGLinkPreview = ({
|
|
|
6683
6696
|
children: curatedTitle || domainToTitle(domain)
|
|
6684
6697
|
}
|
|
6685
6698
|
),
|
|
6686
|
-
curatedDescription && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6699
|
+
curatedDescription && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { lines: 2, variant: "h6", tone: "secondary", children: curatedDescription })
|
|
6687
6700
|
]
|
|
6688
6701
|
}
|
|
6689
6702
|
);
|
|
@@ -6819,8 +6832,8 @@ var OGLinkPreview = ({
|
|
|
6819
6832
|
children: [
|
|
6820
6833
|
/* @__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
6834
|
/* @__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,
|
|
6835
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { className: "font-semibold transition-colors group-hover:text-ods-accent", children: title }),
|
|
6836
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { tone: "secondary", children: description })
|
|
6824
6837
|
] }),
|
|
6825
6838
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExternalLinkIcon, {})
|
|
6826
6839
|
]
|
|
@@ -6867,7 +6880,7 @@ var OGLinkPreview = ({
|
|
|
6867
6880
|
),
|
|
6868
6881
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
6869
6882
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6870
|
-
|
|
6883
|
+
_chunkMZLWB5AHcjs.TruncateText,
|
|
6871
6884
|
{
|
|
6872
6885
|
lines: 2,
|
|
6873
6886
|
className: "min-h-[calc(var(--font-line-space-h4-body)*2)] font-semibold transition-colors group-hover:text-ods-accent",
|
|
@@ -6876,7 +6889,7 @@ var OGLinkPreview = ({
|
|
|
6876
6889
|
}
|
|
6877
6890
|
),
|
|
6878
6891
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6879
|
-
|
|
6892
|
+
_chunkMZLWB5AHcjs.TruncateText,
|
|
6880
6893
|
{
|
|
6881
6894
|
lines: 2,
|
|
6882
6895
|
tone: "secondary",
|
|
@@ -6886,9 +6899,9 @@ var OGLinkPreview = ({
|
|
|
6886
6899
|
}
|
|
6887
6900
|
),
|
|
6888
6901
|
/* @__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,
|
|
6902
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { as: "span", variant: "h6", className: "text-current", children: effectiveData.siteName }),
|
|
6890
6903
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "\u2022" }),
|
|
6891
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6904
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { as: "span", variant: "h6", className: "text-current", children: ogDomain }),
|
|
6892
6905
|
meta
|
|
6893
6906
|
] })
|
|
6894
6907
|
] })
|
|
@@ -7049,7 +7062,7 @@ var MediaCarousel = _react.memo.call(void 0, function MediaCarouselImpl({
|
|
|
7049
7062
|
};
|
|
7050
7063
|
const displayImageSrc = (url) => transformImageSrc ? transformImageSrc(url) : url;
|
|
7051
7064
|
const renderVideo = (item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7052
|
-
|
|
7065
|
+
_chunk4EJU462Ocjs.Video,
|
|
7053
7066
|
{
|
|
7054
7067
|
url: item.src,
|
|
7055
7068
|
poster: item.poster ? displayImageSrc(item.poster) : void 0,
|
|
@@ -7244,7 +7257,7 @@ var formatTimeAgo = (timestamp) => {
|
|
|
7244
7257
|
return `${Math.floor(diffSeconds / 86400)}d ago`;
|
|
7245
7258
|
};
|
|
7246
7259
|
function RedditEmbedClient({ url, maxWidth = 700, rel }) {
|
|
7247
|
-
const postLinkRel =
|
|
7260
|
+
const postLinkRel = _chunkZXFOMNI5cjs.renderedLinkRel.call(void 0, rel, true);
|
|
7248
7261
|
const { redditProxyUrl } = useRichMarkdownRuntime();
|
|
7249
7262
|
const [redditData, setRedditData] = _react.useState.call(void 0, null);
|
|
7250
7263
|
const [loading, setLoading] = _react.useState.call(void 0, true);
|
|
@@ -7482,7 +7495,7 @@ function RedditEmbedClient({ url, maxWidth = 700, rel }) {
|
|
|
7482
7495
|
width: m.width,
|
|
7483
7496
|
height: m.height
|
|
7484
7497
|
}));
|
|
7485
|
-
const formatNumber =
|
|
7498
|
+
const formatNumber = _chunkHY6BCZH7cjs.formatLargeNumber;
|
|
7486
7499
|
const truncateText = (text, maxLength = 600) => {
|
|
7487
7500
|
if (text.length <= maxLength) return text;
|
|
7488
7501
|
return text.slice(0, maxLength) + "...";
|
|
@@ -7576,7 +7589,7 @@ var UserIcon3 = () => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "svg", { wid
|
|
|
7576
7589
|
] });
|
|
7577
7590
|
var XIcon = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2TEMEXDTcjs.XLogoIcon, { className: "h-5 w-5", color: "currentColor" });
|
|
7578
7591
|
function TwitterEmbedClient({ url, tweetId, maxWidth = 700, rel }) {
|
|
7579
|
-
const postLinkRel =
|
|
7592
|
+
const postLinkRel = _chunkZXFOMNI5cjs.renderedLinkRel.call(void 0, rel, true);
|
|
7580
7593
|
const { twitterProxyUrl } = useRichMarkdownRuntime();
|
|
7581
7594
|
const [tweetData, setTweetData] = _react.useState.call(void 0, null);
|
|
7582
7595
|
const [fetchLoading, setLoading] = _react.useState.call(void 0, true);
|
|
@@ -7778,7 +7791,7 @@ function buildRichEmbedOverrides({
|
|
|
7778
7791
|
ogEndpointPath,
|
|
7779
7792
|
textSizes
|
|
7780
7793
|
}) {
|
|
7781
|
-
const standard =
|
|
7794
|
+
const standard = _chunkZXFOMNI5cjs.buildStandardLeafRenderers.call(void 0, { textSizes });
|
|
7782
7795
|
return {
|
|
7783
7796
|
// Fence-language embeds (```youtube-embed etc.); everything else
|
|
7784
7797
|
// (mermaid, highlighted blocks, inline code) falls through to `standard`.
|
|
@@ -7788,7 +7801,7 @@ function buildRichEmbedOverrides({
|
|
|
7788
7801
|
const language = match ? match[1] : "";
|
|
7789
7802
|
const fenceText = () => String(children).replace(/\n$/, "").trim();
|
|
7790
7803
|
if (language === "youtube-embed") {
|
|
7791
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7804
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.Video, { kind: "youtube", url: fenceText() });
|
|
7792
7805
|
}
|
|
7793
7806
|
if (language === "reddit-embed") {
|
|
7794
7807
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RedditEmbedClient, { url: fenceText() });
|
|
@@ -7829,7 +7842,7 @@ function buildRichEmbedOverrides({
|
|
|
7829
7842
|
"data-figma-url": figmaUrl
|
|
7830
7843
|
} = divProps;
|
|
7831
7844
|
if (className === "youtube-embed" && videoId) {
|
|
7832
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7845
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.Video, { kind: "youtube", url: videoId });
|
|
7833
7846
|
}
|
|
7834
7847
|
if (className === "reddit-embed" && postUrl) {
|
|
7835
7848
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RedditEmbedClient, { url: postUrl });
|
|
@@ -7914,23 +7927,23 @@ function buildRichEmbedOverrides({
|
|
|
7914
7927
|
// rich-markdown runtime (Supabase optimization on the hub, identity
|
|
7915
7928
|
// elsewhere). Guard against empty `![]()`.
|
|
7916
7929
|
img: ({ src, alt }) => {
|
|
7917
|
-
if (!
|
|
7930
|
+
if (!_chunkZXFOMNI5cjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7918
7931
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownImage, { src: src.trim(), alt });
|
|
7919
7932
|
},
|
|
7920
7933
|
// Raw <iframe> tags in stored content (a pasted YouTube embed). A YouTube one becomes the same click-to-play
|
|
7921
7934
|
// facade as the `youtube-embed` fence: the raw iframe loaded YouTube's whole player (about 470 KB of script) with
|
|
7922
7935
|
// the page, on every post that carried one (CU-17tkuw5xp4q). Any other iframe loads when it nears the screen.
|
|
7923
7936
|
iframe: ({ node: _node, src, ...rest }) => {
|
|
7924
|
-
if (!
|
|
7937
|
+
if (!_chunkZXFOMNI5cjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7925
7938
|
const url = src.trim();
|
|
7926
|
-
if (
|
|
7939
|
+
if (_chunk4EJU462Ocjs.extractYouTubeId.call(void 0, url)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.Video, { kind: "youtube", url });
|
|
7927
7940
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "iframe", { ...rest, src: url, loading: "lazy" });
|
|
7928
7941
|
},
|
|
7929
7942
|
// Raw <video> tags in stored content (blog publisher injection) route
|
|
7930
7943
|
// to the <Video> SSOT (MuxPlayer) so HLS manifests play everywhere.
|
|
7931
7944
|
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,
|
|
7945
|
+
if (!_chunkZXFOMNI5cjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7946
|
+
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
7947
|
}
|
|
7935
7948
|
};
|
|
7936
7949
|
}
|
|
@@ -8038,7 +8051,7 @@ var processShortcodes = (content) => {
|
|
|
8038
8051
|
try {
|
|
8039
8052
|
const urlObj = new URL(url);
|
|
8040
8053
|
const hostname = urlObj.hostname.toLowerCase();
|
|
8041
|
-
const hostIs = (domain) =>
|
|
8054
|
+
const hostIs = (domain) => _chunkUBPSA3RMcjs.hostMatches.call(void 0, hostname, domain);
|
|
8042
8055
|
const isYouTubeVideo = hostIs("youtube.com") && urlObj.searchParams.has("v") || hostIs("youtu.be");
|
|
8043
8056
|
if (isYouTubeVideo || hostIs("reddit.com") || hostIs("twitter.com") || hostIs("x.com") || hostIs("figma.com")) {
|
|
8044
8057
|
return match;
|
|
@@ -8115,13 +8128,13 @@ var RichMarkdownInner = ({
|
|
|
8115
8128
|
},
|
|
8116
8129
|
[resolveLinkEndpointUrl, resolveSource]
|
|
8117
8130
|
);
|
|
8118
|
-
const textSizes = _react.useMemo.call(void 0, () =>
|
|
8131
|
+
const textSizes = _react.useMemo.call(void 0, () => _chunkZXFOMNI5cjs.resolveTextSizeConfig.call(void 0, "article"), []);
|
|
8119
8132
|
const componentOverrides = _react.useMemo.call(void 0,
|
|
8120
8133
|
() => buildRichEmbedOverrides({ ogApiBaseUrl, ogEndpointPath, textSizes }),
|
|
8121
8134
|
[ogApiBaseUrl, ogEndpointPath, textSizes]
|
|
8122
8135
|
);
|
|
8123
8136
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8124
|
-
|
|
8137
|
+
_chunkZXFOMNI5cjs.MarkdownEngine,
|
|
8125
8138
|
{
|
|
8126
8139
|
content,
|
|
8127
8140
|
className,
|
|
@@ -8145,7 +8158,7 @@ var RichMarkdownRendererImpl = ({
|
|
|
8145
8158
|
className = "",
|
|
8146
8159
|
sectionIds,
|
|
8147
8160
|
onInternalLinkClick,
|
|
8148
|
-
brokenLinks =
|
|
8161
|
+
brokenLinks = _chunkZXFOMNI5cjs.NO_BROKEN_LINKS,
|
|
8149
8162
|
currentPath,
|
|
8150
8163
|
resolveSource = "openframe-docs",
|
|
8151
8164
|
resolveLinkEndpointUrl = "/api/docs/resolve-link",
|
|
@@ -8190,7 +8203,7 @@ function RichMarkdownRendererSkeleton({
|
|
|
8190
8203
|
title,
|
|
8191
8204
|
className
|
|
8192
8205
|
}) {
|
|
8193
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8206
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZXFOMNI5cjs.MarkdownEngineSkeleton, { sections, title, textSize: "article", className });
|
|
8194
8207
|
}
|
|
8195
8208
|
|
|
8196
8209
|
// src/components/ui/release-changelog-section.tsx
|
|
@@ -9275,7 +9288,7 @@ function FilterModal({
|
|
|
9275
9288
|
const dateDefaultSort = _nullishCoalesce(_optionalChain([dateFilter, 'optionalAccess', _147 => _147.defaultSort]), () => ( "desc"));
|
|
9276
9289
|
const [draftDateSort, setDraftDateSort] = _react.useState.call(void 0, _nullishCoalesce(_optionalChain([dateFilter, 'optionalAccess', _148 => _148.sort]), () => ( dateDefaultSort)));
|
|
9277
9290
|
const [draftDateRange, setDraftDateRange] = _react.useState.call(void 0, _optionalChain([dateFilter, 'optionalAccess', _149 => _149.range]));
|
|
9278
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateFade } =
|
|
9291
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunkZXFOMNI5cjs.useScrollFade.call(void 0, );
|
|
9279
9292
|
const seedKey = `${JSON.stringify(currentFilters)}|${JSON.stringify(_nullishCoalesce(selectedTags, () => ( [])))}`;
|
|
9280
9293
|
const seedSourceRef = _react.useRef.call(void 0, { currentFilters, selectedTags, dateFilter, dateDefaultSort });
|
|
9281
9294
|
_react.useEffect.call(void 0, () => {
|
|
@@ -9321,15 +9334,15 @@ function FilterModal({
|
|
|
9321
9334
|
const hasTagFilter = !!tagFilterKeys && tagFilterKeys.length > 0 && !!onTagsChange;
|
|
9322
9335
|
const isEmpty = !isLoading && !hasSort && !hasFilterGroups && !hasTagFilter && !dateFilter;
|
|
9323
9336
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9324
|
-
|
|
9337
|
+
_chunk5QP3K2CEcjs.Modal,
|
|
9325
9338
|
{
|
|
9326
9339
|
isOpen,
|
|
9327
9340
|
onClose,
|
|
9328
9341
|
className: _chunk65VVJSQZcjs.cn.call(void 0, "max-h-[90vh] max-w-none md:max-w-[min(42rem,calc(100vw-2rem))]", className),
|
|
9329
9342
|
children: [
|
|
9330
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9343
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalTitle, { children: title }) }),
|
|
9331
9344
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9332
|
-
|
|
9345
|
+
_chunk5QP3K2CEcjs.ModalContent,
|
|
9333
9346
|
{
|
|
9334
9347
|
className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
9335
9348
|
"flex min-h-0 flex-1 flex-col",
|
|
@@ -9421,12 +9434,12 @@ function FilterModal({
|
|
|
9421
9434
|
] })
|
|
9422
9435
|
}
|
|
9423
9436
|
),
|
|
9424
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9425
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9437
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZXFOMNI5cjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop }),
|
|
9438
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZXFOMNI5cjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom })
|
|
9426
9439
|
] })
|
|
9427
9440
|
}
|
|
9428
9441
|
),
|
|
9429
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9442
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.ModalFooter, { children: [
|
|
9430
9443
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { variant: "outline", className: "h-11 flex-1", onClick: handleReset, children: resetButtonText }),
|
|
9431
9444
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { variant: "accent", className: "h-11 flex-1", onClick: handleApply, children: applyButtonText })
|
|
9432
9445
|
] })
|
|
@@ -9490,7 +9503,7 @@ function renderAdvancedPageContainer({
|
|
|
9490
9503
|
contentClassName,
|
|
9491
9504
|
showHeader = true
|
|
9492
9505
|
}, inScope = false) {
|
|
9493
|
-
const titleNode = title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9506
|
+
const titleNode = title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.PageTitle, { className: PAGE_CONTAINER_TITLE_CLASS, children: _chunk4EJU462Ocjs.accentSentenceMarks.call(void 0, title) }) : inScope && title === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageContainerTitleSkeleton, {}) : null;
|
|
9494
9507
|
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
9508
|
const getActionsVariant = () => {
|
|
9496
9509
|
if (actionsVariant) return actionsVariant;
|
|
@@ -9499,7 +9512,7 @@ function renderAdvancedPageContainer({
|
|
|
9499
9512
|
};
|
|
9500
9513
|
const renderActions = () => {
|
|
9501
9514
|
if (!actions || actions.length === 0) return null;
|
|
9502
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9515
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.PageActions, { variant: getActionsVariant(), actions, menuActions });
|
|
9503
9516
|
};
|
|
9504
9517
|
const needsBottomPadding = actions && actions.length > 0 && getActionsVariant() === "primary-buttons";
|
|
9505
9518
|
const paddingClasses = {
|
|
@@ -9522,7 +9535,7 @@ function renderAdvancedPageContainer({
|
|
|
9522
9535
|
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
9536
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
9524
9537
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9525
|
-
|
|
9538
|
+
_chunkMZLWB5AHcjs.BackButton,
|
|
9526
9539
|
{
|
|
9527
9540
|
onClick: backButton.onClick,
|
|
9528
9541
|
label: backButton.label,
|
|
@@ -9542,7 +9555,7 @@ function renderAdvancedPageContainer({
|
|
|
9542
9555
|
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
9556
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
9544
9557
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9545
|
-
|
|
9558
|
+
_chunkMZLWB5AHcjs.BackButton,
|
|
9546
9559
|
{
|
|
9547
9560
|
onClick: backButton.onClick,
|
|
9548
9561
|
label: backButton.label,
|
|
@@ -9562,7 +9575,7 @@ function renderAdvancedPageContainer({
|
|
|
9562
9575
|
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
9576
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
9564
9577
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9565
|
-
|
|
9578
|
+
_chunkMZLWB5AHcjs.BackButton,
|
|
9566
9579
|
{
|
|
9567
9580
|
onClick: backButton.onClick,
|
|
9568
9581
|
label: backButton.label,
|
|
@@ -9916,7 +9929,7 @@ var BenefitCardGrid = ({ children, className = "", columns = 2 }) => {
|
|
|
9916
9929
|
|
|
9917
9930
|
|
|
9918
9931
|
function PlatformBrowseButton({ item }) {
|
|
9919
|
-
const linkProps =
|
|
9932
|
+
const linkProps = _chunkZXFOMNI5cjs.useNavLinkViaRuntime.call(void 0, { href: item.link, targetPlatform: item.targetPlatform });
|
|
9920
9933
|
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
9934
|
"Browse ",
|
|
9922
9935
|
item.buttonText
|
|
@@ -10228,7 +10241,7 @@ function DashboardInfoCard({
|
|
|
10228
10241
|
if (percentage === void 0) return null;
|
|
10229
10242
|
if (percentageAsTag) {
|
|
10230
10243
|
const tagVariant = progressVariant === "warning" || progressVariant === "error" ? progressVariant : progressVariant === "success" ? "success" : "grey";
|
|
10231
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10244
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { variant: tagVariant, label: `${percentage}%` });
|
|
10232
10245
|
}
|
|
10233
10246
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: [
|
|
10234
10247
|
"(",
|
|
@@ -10299,7 +10312,7 @@ function DashboardInfoCard({
|
|
|
10299
10312
|
/* @__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
10313
|
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
10314
|
renderPercentage(),
|
|
10302
|
-
tooltip && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10315
|
+
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
10316
|
] }),
|
|
10304
10317
|
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
10318
|
] }),
|
|
@@ -10413,10 +10426,10 @@ var OSTypeBadge = ({
|
|
|
10413
10426
|
if (!osType) {
|
|
10414
10427
|
return labelOnly ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk65VVJSQZcjs.cn.call(void 0, "text-ods-text-secondary", className), children: "Unknown" }) : null;
|
|
10415
10428
|
}
|
|
10416
|
-
const normalized =
|
|
10429
|
+
const normalized = _chunkUBPSA3RMcjs.normalizeOSType.call(void 0, osType);
|
|
10417
10430
|
if (!normalized && !labelOnly) return null;
|
|
10418
|
-
const label =
|
|
10419
|
-
const IconComponent =
|
|
10431
|
+
const label = _chunkUBPSA3RMcjs.getOSLabel.call(void 0, osType);
|
|
10432
|
+
const IconComponent = _chunkUBPSA3RMcjs.getOSIcon.call(void 0, osType);
|
|
10420
10433
|
if (iconOnly && IconComponent) {
|
|
10421
10434
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: _chunk65VVJSQZcjs.cn.call(void 0, iconSize, "text-ods-text-secondary", className) });
|
|
10422
10435
|
}
|
|
@@ -10453,8 +10466,8 @@ function DeviceCard({
|
|
|
10453
10466
|
}) {
|
|
10454
10467
|
const formatLastSeen = (lastSeen) => {
|
|
10455
10468
|
if (!lastSeen) return null;
|
|
10456
|
-
const date =
|
|
10457
|
-
return date === "\u2014" ? null : `${date} ${
|
|
10469
|
+
const date = _chunk5QP3K2CEcjs.formatDate.call(void 0, lastSeen);
|
|
10470
|
+
return date === "\u2014" ? null : `${date} ${_chunk5QP3K2CEcjs.formatTime.call(void 0, lastSeen)}`;
|
|
10458
10471
|
};
|
|
10459
10472
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10460
10473
|
"div",
|
|
@@ -10513,7 +10526,7 @@ function DeviceCard({
|
|
|
10513
10526
|
] }),
|
|
10514
10527
|
(statusTag || device.lastSeen) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-2", children: [
|
|
10515
10528
|
statusTag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10516
|
-
|
|
10529
|
+
_chunkHY6BCZH7cjs.Tag,
|
|
10517
10530
|
{
|
|
10518
10531
|
variant: statusTag.variant,
|
|
10519
10532
|
icon: statusTag.icon,
|
|
@@ -10527,7 +10540,7 @@ function DeviceCard({
|
|
|
10527
10540
|
formatLastSeen(device.lastSeen)
|
|
10528
10541
|
] })
|
|
10529
10542
|
] }),
|
|
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,
|
|
10543
|
+
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
10544
|
]
|
|
10532
10545
|
}
|
|
10533
10546
|
);
|
|
@@ -10573,7 +10586,7 @@ function DataAttribution({ icon, source, lastUpdated, action }) {
|
|
|
10573
10586
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator3, {}),
|
|
10574
10587
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: UPDATED_CLASS, children: [
|
|
10575
10588
|
"Last updated: ",
|
|
10576
|
-
lastUpdated ?
|
|
10589
|
+
lastUpdated ? _chunkHY6BCZH7cjs.formatDate.call(void 0, lastUpdated) : "Never"
|
|
10577
10590
|
] }),
|
|
10578
10591
|
action ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ACTION_CLASS, children: action }) : null
|
|
10579
10592
|
] });
|
|
@@ -10701,7 +10714,7 @@ function ComplianceLogo({
|
|
|
10701
10714
|
fallback = null,
|
|
10702
10715
|
className
|
|
10703
10716
|
}) {
|
|
10704
|
-
const standard =
|
|
10717
|
+
const standard = _chunkUBPSA3RMcjs.complianceStandardForName.call(void 0, ...names);
|
|
10705
10718
|
if (!standard) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: fallback });
|
|
10706
10719
|
const Official = standard.logo ? COMPLIANCE_LOGOS[standard.logo] : null;
|
|
10707
10720
|
return Official ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10780,7 +10793,7 @@ function FeatureCardGridView({
|
|
|
10780
10793
|
if (allCardsHaveNoBorders) {
|
|
10781
10794
|
finalCardClassName = "bg-transparent p-0 overflow-visible border-0 shadow-none rounded-none";
|
|
10782
10795
|
}
|
|
10783
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10796
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.Card, { className: `${finalCardClassName} ${className}`, children: Array.from({ length: rows }, (_, rowIndex) => {
|
|
10784
10797
|
const startIndex = rowIndex * itemsPerRow;
|
|
10785
10798
|
const rowItems = items.slice(startIndex, startIndex + itemsPerRow);
|
|
10786
10799
|
const isLastRow = rowIndex === rows - 1;
|
|
@@ -10814,7 +10827,7 @@ function FeatureCardGridView({
|
|
|
10814
10827
|
item.icon && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start justify-between", children: [
|
|
10815
10828
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, item.icon, { size: 80, color: item.iconColor }),
|
|
10816
10829
|
item.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10817
|
-
|
|
10830
|
+
_chunk4EJU462Ocjs.StatusBadge,
|
|
10818
10831
|
{
|
|
10819
10832
|
text: item.badge.text,
|
|
10820
10833
|
variant: item.badge.variant || "card",
|
|
@@ -10823,7 +10836,7 @@ function FeatureCardGridView({
|
|
|
10823
10836
|
)
|
|
10824
10837
|
] }),
|
|
10825
10838
|
!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
|
-
|
|
10839
|
+
_chunk4EJU462Ocjs.StatusBadge,
|
|
10827
10840
|
{
|
|
10828
10841
|
text: item.badge.text,
|
|
10829
10842
|
variant: item.badge.variant || "card",
|
|
@@ -11004,27 +11017,13 @@ function FeatureList({
|
|
|
11004
11017
|
) : step }, index);
|
|
11005
11018
|
}) });
|
|
11006
11019
|
}
|
|
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
|
-
)) });
|
|
11020
|
+
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: [
|
|
11021
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ICON_BOX_CLASS, style: { width: iconBoxSize, height: iconBoxSize }, children: item.icon }),
|
|
11022
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: BOXED_TEXT_CLASS, children: [
|
|
11023
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h3", children: item.title }),
|
|
11024
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "normal-case tracking-normal text-ods-text-secondary text-h6", children: item.description })
|
|
11025
|
+
] })
|
|
11026
|
+
] }, index)) });
|
|
11028
11027
|
}
|
|
11029
11028
|
function FeatureListSkeleton({
|
|
11030
11029
|
count = FEATURE_LIST_SKELETON_COUNT,
|
|
@@ -11050,7 +11049,7 @@ function FeatureListSkeleton({
|
|
|
11050
11049
|
|
|
11051
11050
|
function SourceTooltip({ intro, sources, note, iconClassName, triggerAnchorProps }) {
|
|
11052
11051
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11053
|
-
|
|
11052
|
+
_chunkHY6BCZH7cjs.FloatingTooltip,
|
|
11054
11053
|
{
|
|
11055
11054
|
as: "span",
|
|
11056
11055
|
side: "top",
|
|
@@ -11438,7 +11437,7 @@ function OrganizationCardSkeleton({
|
|
|
11438
11437
|
"aria-hidden": true,
|
|
11439
11438
|
children: [
|
|
11440
11439
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_HEADER_CLASS, children: [
|
|
11441
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11440
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.EntityImageSkeleton, {}),
|
|
11442
11441
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_TEXT_CLASS, children: [
|
|
11443
11442
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "h3", className: "w-3/4" }),
|
|
11444
11443
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "h6", className: "w-1/2" })
|
|
@@ -11541,7 +11540,7 @@ function OrganizationCard({
|
|
|
11541
11540
|
}
|
|
11542
11541
|
),
|
|
11543
11542
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_HEADER_CLASS, children: [
|
|
11544
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11543
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.EntityImage, { src: fetchedImageUrl || organization.imageUrl, alt: organization.name }),
|
|
11545
11544
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_TEXT_CLASS, children: [
|
|
11546
11545
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "truncate text-ods-text-primary transition-colors text-h3", title: organization.name, children: organization.name }),
|
|
11547
11546
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11591,8 +11590,8 @@ function ServiceCard({ title, subtitle, icon, tag, rows, className }) {
|
|
|
11591
11590
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-4", children: [
|
|
11592
11591
|
/* @__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
11592
|
/* @__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,
|
|
11593
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h3", children: title }),
|
|
11594
|
+
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: subtitle })
|
|
11596
11595
|
] })
|
|
11597
11596
|
] }),
|
|
11598
11597
|
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 +11624,7 @@ function ServiceCardRowItem({ row }) {
|
|
|
11625
11624
|
),
|
|
11626
11625
|
children: [
|
|
11627
11626
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11628
|
-
|
|
11627
|
+
_chunkHY6BCZH7cjs.FloatingTooltip,
|
|
11629
11628
|
{
|
|
11630
11629
|
content: row.value,
|
|
11631
11630
|
side: "top",
|
|
@@ -11725,17 +11724,17 @@ function PersonCell({
|
|
|
11725
11724
|
const displayName = name || fallbackName;
|
|
11726
11725
|
const scale = PERSON_CELL_SIZE[size];
|
|
11727
11726
|
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,
|
|
11727
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.SquareAvatar, { size: scale.avatar, src: _nullishCoalesce(avatarUrl, () => ( void 0)), alt: displayName, fallback: displayName }),
|
|
11729
11728
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
11730
11729
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11731
|
-
|
|
11730
|
+
_chunkMZLWB5AHcjs.TruncateText,
|
|
11732
11731
|
{
|
|
11733
11732
|
variant: scale.primary,
|
|
11734
11733
|
className: onClick ? "text-ods-accent group-hover/person-cell:underline" : void 0,
|
|
11735
11734
|
children: displayName
|
|
11736
11735
|
}
|
|
11737
11736
|
),
|
|
11738
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11737
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: secondary === void 0 ? "\xA0" : secondary || "\xB7" })
|
|
11739
11738
|
] })
|
|
11740
11739
|
] });
|
|
11741
11740
|
if (!onClick) return row;
|
|
@@ -11753,7 +11752,7 @@ function PersonCell({
|
|
|
11753
11752
|
function PersonCellSkeleton({ size = "sm" }) {
|
|
11754
11753
|
const scale = PERSON_CELL_SIZE[size];
|
|
11755
11754
|
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,
|
|
11755
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.SquareAvatarSkeleton, { size: scale.avatar }),
|
|
11757
11756
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
11758
11757
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: scale.primary, className: "w-3/4" }),
|
|
11759
11758
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "h6", className: "w-1/2" })
|
|
@@ -11776,9 +11775,9 @@ function PeopleCell({ people, fallbackName = "Unassigned" }) {
|
|
|
11776
11775
|
);
|
|
11777
11776
|
}
|
|
11778
11777
|
const fullNames = people.map((p) => p.name || "Unknown").join(", ");
|
|
11779
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11778
|
+
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
11779
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-hidden": true, className: "shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11781
|
-
|
|
11780
|
+
_chunkVFUMM6JCcjs.AvatarStack,
|
|
11782
11781
|
{
|
|
11783
11782
|
size: "sm",
|
|
11784
11783
|
slots: PEOPLE_CELL_STACK_SLOTS,
|
|
@@ -11786,7 +11785,7 @@ function PeopleCell({ people, fallbackName = "Unassigned" }) {
|
|
|
11786
11785
|
}
|
|
11787
11786
|
) }),
|
|
11788
11787
|
/* @__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) =>
|
|
11788
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": true, children: people.map((p) => _chunkHY6BCZH7cjs.personFirstName.call(void 0, p.name, "Unknown")).join(" & ") }),
|
|
11790
11789
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: fullNames })
|
|
11791
11790
|
] })
|
|
11792
11791
|
] }) });
|
|
@@ -12495,7 +12494,7 @@ function TableHeader({
|
|
|
12495
12494
|
onFilterChange
|
|
12496
12495
|
}
|
|
12497
12496
|
),
|
|
12498
|
-
column.hint ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12497
|
+
column.hint ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUBPSA3RMcjs.InfoHint, { label: column.label, children: column.hint }) : null
|
|
12499
12498
|
] })
|
|
12500
12499
|
) : (
|
|
12501
12500
|
/* Non-filterable column — regular label with optional sort */
|
|
@@ -12521,7 +12520,7 @@ function TableHeader({
|
|
|
12521
12520
|
hint exists, so a hint-less header keeps its DOM. */
|
|
12522
12521
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
12523
12522
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TABLE_HEADER_LABEL_CLASS, children: column.label }),
|
|
12524
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12523
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUBPSA3RMcjs.InfoHint, { label: column.label, children: column.hint })
|
|
12525
12524
|
] })
|
|
12526
12525
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TABLE_HEADER_LABEL_CLASS, children: column.label }),
|
|
12527
12526
|
getSortIcon(column)
|
|
@@ -12631,7 +12630,7 @@ function TableRow({
|
|
|
12631
12630
|
const Row = animate && motionDiv ? motionDiv : "div";
|
|
12632
12631
|
const motionProps = animate ? { layout: "position", transition: { layout: { duration: 0.35, ease: [0.22, 1, 0.36, 1] } } } : {};
|
|
12633
12632
|
const handleRowClick = (e) => {
|
|
12634
|
-
if (!
|
|
12633
|
+
if (!_chunkUBPSA3RMcjs.isOwnClick.call(void 0, e.target, e.currentTarget)) return;
|
|
12635
12634
|
if (onClick) {
|
|
12636
12635
|
onClick(item);
|
|
12637
12636
|
}
|
|
@@ -13027,7 +13026,7 @@ function Table({
|
|
|
13027
13026
|
}
|
|
13028
13027
|
),
|
|
13029
13028
|
!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
|
-
|
|
13029
|
+
_chunkQS4G7CHUcjs.Pagination,
|
|
13031
13030
|
{
|
|
13032
13031
|
currentPage: pagePagination.currentPage,
|
|
13033
13032
|
totalPages: pagePagination.totalPages,
|
|
@@ -13060,7 +13059,7 @@ function TableDescriptionCell({ text, className, maxLines = 3 }) {
|
|
|
13060
13059
|
|
|
13061
13060
|
// src/components/ui/table/table-timestamp-cell.tsx
|
|
13062
13061
|
|
|
13063
|
-
var formatLocalTimestamp = (date) =>
|
|
13062
|
+
var formatLocalTimestamp = (date) => _chunkHY6BCZH7cjs.formatDateWithTimezone.call(void 0, date, _chunkHY6BCZH7cjs.VIEWER_TIMEZONE, "localeDateTime", { viewerLocale: true });
|
|
13064
13063
|
function formatTimestampValue(timestamp) {
|
|
13065
13064
|
if (timestamp instanceof Date) {
|
|
13066
13065
|
return formatLocalTimestamp(timestamp);
|
|
@@ -13409,7 +13408,7 @@ function DataTableRowImpl({
|
|
|
13409
13408
|
const containerRef = _react.useRef.call(void 0, null);
|
|
13410
13409
|
const handleClick = _react.useCallback.call(void 0,
|
|
13411
13410
|
(e) => {
|
|
13412
|
-
if (!
|
|
13411
|
+
if (!_chunkUBPSA3RMcjs.isOwnClick.call(void 0, e.target, containerRef.current)) {
|
|
13413
13412
|
if (isLinkMode) e.preventDefault();
|
|
13414
13413
|
return;
|
|
13415
13414
|
}
|
|
@@ -13859,7 +13858,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13859
13858
|
// child of the cell.
|
|
13860
13859
|
_optionalChain([meta, 'optionalAccess', _232 => _232.hint]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13861
13860
|
filterTrigger,
|
|
13862
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13861
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUBPSA3RMcjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
13863
13862
|
] }) : filterTrigger
|
|
13864
13863
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13865
13864
|
"div",
|
|
@@ -13884,7 +13883,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13884
13883
|
// centred on the row.
|
|
13885
13884
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13886
13885
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
13887
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13886
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUBPSA3RMcjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
13888
13887
|
] })
|
|
13889
13888
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
13890
13889
|
canSort && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortIcon, { sorted: sortDir })
|
|
@@ -13990,7 +13989,7 @@ function DataTableInfiniteFooter({
|
|
|
13990
13989
|
var ROW_COUNT_CLASS = "whitespace-nowrap text-ods-text-secondary text-h6";
|
|
13991
13990
|
function DataTableRowCountSkeleton({ label, className }) {
|
|
13992
13991
|
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
|
|
13992
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "inline-block w-6 align-top" }),
|
|
13994
13993
|
" ",
|
|
13995
13994
|
label
|
|
13996
13995
|
] });
|
|
@@ -14116,7 +14115,7 @@ function PhoneInput({
|
|
|
14116
14115
|
placeholder = "Phone Number (optional)",
|
|
14117
14116
|
onKeyDown
|
|
14118
14117
|
}) {
|
|
14119
|
-
const { priority, others } = _react.useMemo.call(void 0, () =>
|
|
14118
|
+
const { priority, others } = _react.useMemo.call(void 0, () => _chunkUBPSA3RMcjs.getCountryPhoneData.call(void 0, ), []);
|
|
14120
14119
|
const selectedCountry = _react.useMemo.call(void 0,
|
|
14121
14120
|
() => [...priority, ...others].find((c) => c.code === countryCode),
|
|
14122
14121
|
[countryCode, priority, others]
|
|
@@ -14131,7 +14130,7 @@ function PhoneInput({
|
|
|
14131
14130
|
_optionalChain([onValidationChange, 'optionalCall', _246 => _246(false)]);
|
|
14132
14131
|
return;
|
|
14133
14132
|
}
|
|
14134
|
-
const invalid = !
|
|
14133
|
+
const invalid = !_chunkUBPSA3RMcjs.validatePhoneNumber.call(void 0, phone, countryCode);
|
|
14135
14134
|
setIsInvalid(invalid);
|
|
14136
14135
|
_optionalChain([onValidationChange, 'optionalCall', _247 => _247(invalid)]);
|
|
14137
14136
|
},
|
|
@@ -14151,7 +14150,7 @@ function PhoneInput({
|
|
|
14151
14150
|
}, []);
|
|
14152
14151
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 gap-2", children: [
|
|
14153
14152
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14154
|
-
|
|
14153
|
+
_chunkMZLWB5AHcjs.Select,
|
|
14155
14154
|
{
|
|
14156
14155
|
value: countryCode,
|
|
14157
14156
|
onValueChange: (val) => {
|
|
@@ -14162,14 +14161,14 @@ function PhoneInput({
|
|
|
14162
14161
|
},
|
|
14163
14162
|
disabled,
|
|
14164
14163
|
children: [
|
|
14165
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14164
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { className: "w-[130px] shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, { children: selectedCountry && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-1.5", children: [
|
|
14166
14165
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: selectedCountry.flag }),
|
|
14167
14166
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: selectedCountry.dialCode })
|
|
14168
14167
|
] }) }) }),
|
|
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,
|
|
14168
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { className: "max-h-[300px] !w-[280px]", children: [
|
|
14169
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectGroup, { children: priority.map((country) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CountryOption, { country }, country.code)) }),
|
|
14170
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectSeparator, {}),
|
|
14171
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectGroup, { children: others.map((country) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CountryOption, { country }, country.code)) })
|
|
14173
14172
|
] })
|
|
14174
14173
|
]
|
|
14175
14174
|
}
|
|
@@ -14201,7 +14200,7 @@ function PhoneInput({
|
|
|
14201
14200
|
] });
|
|
14202
14201
|
}
|
|
14203
14202
|
function CountryOption({ country }) {
|
|
14204
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14203
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: country.code, textValue: country.name, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-2", children: [
|
|
14205
14204
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0", children: country.flag }),
|
|
14206
14205
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary", children: country.dialCode }),
|
|
14207
14206
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-block max-w-[140px] overflow-hidden text-ellipsis whitespace-nowrap", children: country.name })
|
|
@@ -14490,7 +14489,7 @@ function SearchInput({
|
|
|
14490
14489
|
/* @__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
14490
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: middleRef, className: "flex min-w-0 flex-1 items-center gap-2 overflow-hidden", children: [
|
|
14492
14491
|
visibleChips.map((chip) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14493
|
-
|
|
14492
|
+
_chunkHY6BCZH7cjs.Tag,
|
|
14494
14493
|
{
|
|
14495
14494
|
variant: chipVariantToTagVariant(chip.variant),
|
|
14496
14495
|
label: chip.label,
|
|
@@ -14586,7 +14585,7 @@ function SearchInput({
|
|
|
14586
14585
|
)
|
|
14587
14586
|
] }),
|
|
14588
14587
|
showHiddenTags && hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14589
|
-
|
|
14588
|
+
_chunkMZLWB5AHcjs.HiddenTagsPopup,
|
|
14590
14589
|
{
|
|
14591
14590
|
ref: hiddenTagsPopupRef,
|
|
14592
14591
|
items: hiddenChips.map((chip) => ({ label: chip.label, value: chip.id })),
|
|
@@ -14606,7 +14605,7 @@ function SearchInput({
|
|
|
14606
14605
|
}
|
|
14607
14606
|
),
|
|
14608
14607
|
/* @__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
|
-
|
|
14608
|
+
_chunkHY6BCZH7cjs.Tag,
|
|
14610
14609
|
{
|
|
14611
14610
|
variant: chipVariantToTagVariant(chip.variant),
|
|
14612
14611
|
label: chip.label,
|
|
@@ -14819,7 +14818,7 @@ function TagSearchInput({
|
|
|
14819
14818
|
/* @__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
14819
|
/* @__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
14820
|
visibleTags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14822
|
-
|
|
14821
|
+
_chunkHY6BCZH7cjs.Tag,
|
|
14823
14822
|
{
|
|
14824
14823
|
variant: "outline",
|
|
14825
14824
|
label: renderTag ? renderTag(tag) : tag.label,
|
|
@@ -14880,7 +14879,7 @@ function TagSearchInput({
|
|
|
14880
14879
|
}
|
|
14881
14880
|
),
|
|
14882
14881
|
showHiddenTags && hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14883
|
-
|
|
14882
|
+
_chunkMZLWB5AHcjs.HiddenTagsPopup,
|
|
14884
14883
|
{
|
|
14885
14884
|
ref: hiddenTagsPopupRef,
|
|
14886
14885
|
items: hiddenTags,
|
|
@@ -14907,7 +14906,7 @@ function TagSearchInput({
|
|
|
14907
14906
|
"aria-hidden": "true",
|
|
14908
14907
|
className: "pointer-events-none invisible absolute left-0 top-0 -z-10 flex gap-2",
|
|
14909
14908
|
children: tags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14910
|
-
|
|
14909
|
+
_chunkHY6BCZH7cjs.Tag,
|
|
14911
14910
|
{
|
|
14912
14911
|
variant: "outline",
|
|
14913
14912
|
label: renderTag ? renderTag(tag) : tag.label,
|
|
@@ -14970,8 +14969,8 @@ function MarkdownLinkDialog({ isOpen, initial, editing, onSubmit, onRemove, onCl
|
|
|
14970
14969
|
if (!trimmedUrl) return;
|
|
14971
14970
|
onSubmit({ text: text.trim(), url: trimmedUrl, rel });
|
|
14972
14971
|
};
|
|
14973
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14974
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14972
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.Modal, { isOpen, onClose, className: "text-left md:max-w-[560px]", children: [
|
|
14973
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalTitle, { children: editing ? "Edit link" : "Add link" }) }),
|
|
14975
14974
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14976
14975
|
"form",
|
|
14977
14976
|
{
|
|
@@ -14996,7 +14995,7 @@ function MarkdownLinkDialog({ isOpen, initial, editing, onSubmit, onRemove, onCl
|
|
|
14996
14995
|
),
|
|
14997
14996
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xsf)]", children: [
|
|
14998
14997
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14999
|
-
|
|
14998
|
+
_chunkZXFOMNI5cjs.TabSelector,
|
|
15000
14999
|
{
|
|
15001
15000
|
label: "Search engines",
|
|
15002
15001
|
value: choice,
|
|
@@ -15013,7 +15012,7 @@ function MarkdownLinkDialog({ isOpen, initial, editing, onSubmit, onRemove, onCl
|
|
|
15013
15012
|
]
|
|
15014
15013
|
}
|
|
15015
15014
|
),
|
|
15016
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
15015
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.ModalFooter, { children: [
|
|
15017
15016
|
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
15017
|
/* @__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
15018
|
] })
|
|
@@ -15053,7 +15052,7 @@ function useMarkdownLinkCommand() {
|
|
|
15053
15052
|
buttonProps: { "aria-label": "Add or edit a link (ctrl + l)", title: "Add or edit a link (ctrl + l)" },
|
|
15054
15053
|
icon: command.icon,
|
|
15055
15054
|
execute: (state, api) => {
|
|
15056
|
-
const existing =
|
|
15055
|
+
const existing = _chunkZXFOMNI5cjs.findMarkdownLinkAt.call(void 0, state.text, state.selection.start, state.selection.end);
|
|
15057
15056
|
setPending(
|
|
15058
15057
|
existing ? {
|
|
15059
15058
|
api,
|
|
@@ -15084,7 +15083,7 @@ function useMarkdownLinkCommand() {
|
|
|
15084
15083
|
initial: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _304 => _304.initial]), () => ( EMPTY_LINK)),
|
|
15085
15084
|
editing: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _305 => _305.editing]), () => ( false)),
|
|
15086
15085
|
onSubmit: (link) => {
|
|
15087
|
-
if (pending) write(pending,
|
|
15086
|
+
if (pending) write(pending, _chunkZXFOMNI5cjs.formatMarkdownLink.call(void 0, link));
|
|
15088
15087
|
},
|
|
15089
15088
|
onRemove: () => {
|
|
15090
15089
|
if (pending) write(pending, pending.initial.text);
|
|
@@ -15250,7 +15249,7 @@ function MarkdownEditor({
|
|
|
15250
15249
|
setUploadProgress(`Uploading ${file.name}...`);
|
|
15251
15250
|
try {
|
|
15252
15251
|
const url = await onUploadFile(file);
|
|
15253
|
-
const isImage =
|
|
15252
|
+
const isImage = _chunk4EJU462Ocjs.fileMediaType.call(void 0, file) === "image";
|
|
15254
15253
|
const markdown = isImage ? `` : `[${file.name}](${url})`;
|
|
15255
15254
|
insertTextAtCursor(markdown);
|
|
15256
15255
|
_optionalChain([onFileUploaded, 'optionalCall', _308 => _308(url, file.name)]);
|
|
@@ -15380,7 +15379,7 @@ function MarkdownEditor({
|
|
|
15380
15379
|
type: "file",
|
|
15381
15380
|
className: "hidden",
|
|
15382
15381
|
onChange: handleFileInputChange,
|
|
15383
|
-
accept: `${
|
|
15382
|
+
accept: `${_chunk4EJU462Ocjs.IMAGE_FILE_ACCEPT},.pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.zip,.txt`
|
|
15384
15383
|
}
|
|
15385
15384
|
),
|
|
15386
15385
|
/* @__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 +15780,7 @@ function matchesAccept2(file, accept) {
|
|
|
15781
15780
|
return patterns.some((pattern) => {
|
|
15782
15781
|
if (pattern.startsWith(".")) return fileName.endsWith(pattern);
|
|
15783
15782
|
if (pattern.endsWith("/*"))
|
|
15784
|
-
return fileType.startsWith(pattern.slice(0, -1)) ||
|
|
15783
|
+
return fileType.startsWith(pattern.slice(0, -1)) || _chunk4EJU462Ocjs.fileMediaType.call(void 0, file) === pattern.slice(0, -2);
|
|
15785
15784
|
return fileType === pattern;
|
|
15786
15785
|
});
|
|
15787
15786
|
}
|
|
@@ -15789,7 +15788,7 @@ function ImageUploader({
|
|
|
15789
15788
|
value,
|
|
15790
15789
|
onChange,
|
|
15791
15790
|
onRemove,
|
|
15792
|
-
accept =
|
|
15791
|
+
accept = _chunk4EJU462Ocjs.IMAGE_FILE_ACCEPT,
|
|
15793
15792
|
maxSize = DEFAULT_MAX_SIZE,
|
|
15794
15793
|
label = "Cover Image",
|
|
15795
15794
|
description = "(Click Here or Drag and Drop)",
|
|
@@ -16027,13 +16026,13 @@ function ColorPresetSelect({
|
|
|
16027
16026
|
...presets.map((p) => ({
|
|
16028
16027
|
id: p.key,
|
|
16029
16028
|
label: p.label,
|
|
16030
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16029
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ColorSwatch, { color: p.color }),
|
|
16031
16030
|
onClick: () => onChange({ color: p.color, preset: p.key })
|
|
16032
16031
|
})),
|
|
16033
16032
|
{
|
|
16034
16033
|
id: CUSTOM_PRESET_KEY,
|
|
16035
16034
|
label: "Custom",
|
|
16036
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16035
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ColorSwatch, { color: isCustom ? value : DEFAULT_CUSTOM_STATUS_COLOR }),
|
|
16037
16036
|
onClick: () => onChange({ color: value, preset: void 0 })
|
|
16038
16037
|
}
|
|
16039
16038
|
]
|
|
@@ -16050,7 +16049,7 @@ function ColorPresetSelect({
|
|
|
16050
16049
|
{
|
|
16051
16050
|
disabled,
|
|
16052
16051
|
"aria-label": `Color: ${displayLabel}`,
|
|
16053
|
-
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16052
|
+
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ColorSwatch, { color: displayColor }),
|
|
16054
16053
|
selectedLabel: displayLabel,
|
|
16055
16054
|
endIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TriggerChevron, {}),
|
|
16056
16055
|
className: _chunk65VVJSQZcjs.cn.call(void 0, "group", className)
|
|
@@ -16182,7 +16181,7 @@ function ColorPickerInput({ value, onChange, disabled, className }) {
|
|
|
16182
16181
|
{
|
|
16183
16182
|
disabled,
|
|
16184
16183
|
"aria-label": "Pick custom color",
|
|
16185
|
-
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16184
|
+
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ColorSwatch, { color: value }),
|
|
16186
16185
|
selectedLabel: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase", children: value }),
|
|
16187
16186
|
endIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TriggerChevron, {}),
|
|
16188
16187
|
className: _chunk65VVJSQZcjs.cn.call(void 0, "group", className)
|
|
@@ -16255,7 +16254,7 @@ function TicketStatusConfigRow({
|
|
|
16255
16254
|
const previewVariant = _nullishCoalesce(systemTagVariant, () => ( (isSystem ? void 0 : "primary")));
|
|
16256
16255
|
const fieldRowOffset = "mt-[calc(var(--font-line-space-h4-body)+0.25rem)]";
|
|
16257
16256
|
const chip = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16258
|
-
|
|
16257
|
+
_chunkEHJE3UWZcjs.TicketStatusTag,
|
|
16259
16258
|
{
|
|
16260
16259
|
status: statusKey,
|
|
16261
16260
|
label: name || " ",
|
|
@@ -16362,7 +16361,7 @@ function TicketStatusConfigRow({
|
|
|
16362
16361
|
),
|
|
16363
16362
|
children: [
|
|
16364
16363
|
!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,
|
|
16364
|
+
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
16365
|
"button",
|
|
16367
16366
|
{
|
|
16368
16367
|
type: "button",
|
|
@@ -16370,7 +16369,7 @@ function TicketStatusConfigRow({
|
|
|
16370
16369
|
className: "flex size-6 items-center justify-center text-ods-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-ods-focus",
|
|
16371
16370
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRHC2FRVEcjs.InfoCircleIcon, { size: 24 })
|
|
16372
16371
|
}
|
|
16373
|
-
) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16372
|
+
) }) }) : /* @__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
16373
|
_chunkTF5D5MNOcjs.Button,
|
|
16375
16374
|
{
|
|
16376
16375
|
type: "button",
|
|
@@ -16409,7 +16408,7 @@ var SKELETON_COLUMNS = 6;
|
|
|
16409
16408
|
function TestResultsSkeleton({
|
|
16410
16409
|
region = true
|
|
16411
16410
|
} = {}) {
|
|
16412
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEANWBJHcjs.LoadingRegion, { label: "Loading the test results", announce: region, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16411
|
+
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
16412
|
/* @__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
16413
|
/* @__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
16414
|
] }) }) });
|
|
@@ -16444,7 +16443,7 @@ function TestResultsTable({ rows, loading }) {
|
|
|
16444
16443
|
if (loading) {
|
|
16445
16444
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TestResultsSkeleton, {});
|
|
16446
16445
|
}
|
|
16447
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16446
|
+
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
16447
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTable.Header, { className: "flex flex-col" }),
|
|
16449
16448
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTable.Body, { loading: false })
|
|
16450
16449
|
] }) }) });
|
|
@@ -16506,7 +16505,7 @@ var TEST_RUN_STATUS_TAGS = {
|
|
|
16506
16505
|
function TestRunStatusStat({ status, className }) {
|
|
16507
16506
|
const tag = status === "idle" ? null : TEST_RUN_STATUS_TAGS[status];
|
|
16508
16507
|
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,
|
|
16508
|
+
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
16509
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: "Status" })
|
|
16511
16510
|
] });
|
|
16512
16511
|
}
|
|
@@ -16550,7 +16549,7 @@ function useTestRunState(campaign) {
|
|
|
16550
16549
|
const stopReason = _nullishCoalesce(campaign.stopReason, () => ( "completed"));
|
|
16551
16550
|
const status = isActive ? "running" : hasRun && isFinished ? stopReason === "completed" ? firstError ? "error" : "success" : stopReason : "idle";
|
|
16552
16551
|
const showTiming = hasRun && campaign.startedAt !== null && (campaign.isRunning || isFinished);
|
|
16553
|
-
const startedLabel = showTiming && campaign.startedAt ?
|
|
16552
|
+
const startedLabel = showTiming && campaign.startedAt ? _chunk5QP3K2CEcjs.formatTime.call(void 0, campaign.startedAt) : "00:00 PM";
|
|
16554
16553
|
const durationLabel = showTiming ? formatTestRunDuration(durationMs) : "00:00:00";
|
|
16555
16554
|
const displayRows = _react.useMemo.call(void 0,
|
|
16556
16555
|
() => campaign.results.map(
|
|
@@ -16589,7 +16588,7 @@ function TicketAttachmentsList({ attachments, className, size = "default" }) {
|
|
|
16589
16588
|
),
|
|
16590
16589
|
children: [
|
|
16591
16590
|
attachment.thumbnailSrc ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16592
|
-
|
|
16591
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
16593
16592
|
{
|
|
16594
16593
|
src: attachment.thumbnailSrc,
|
|
16595
16594
|
alt: attachment.fileName,
|
|
@@ -16682,7 +16681,7 @@ function TicketNoteCard({ note, onEdit, onDelete, className }) {
|
|
|
16682
16681
|
};
|
|
16683
16682
|
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
16683
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16685
|
-
|
|
16684
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
16686
16685
|
{
|
|
16687
16686
|
src: note.authorAvatar,
|
|
16688
16687
|
alt: note.authorName,
|
|
@@ -16858,7 +16857,7 @@ function TicketInfoSection({
|
|
|
16858
16857
|
/* @__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
16858
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
16860
16859
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16861
|
-
|
|
16860
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
16862
16861
|
{
|
|
16863
16862
|
src: _optionalChain([organization, 'optionalAccess', _344 => _344.imageSrc]),
|
|
16864
16863
|
alt: _optionalChain([organization, 'optionalAccess', _345 => _345.name]),
|
|
@@ -16888,7 +16887,7 @@ function TicketInfoSection({
|
|
|
16888
16887
|
/* @__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
16888
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-4", children: [
|
|
16890
16889
|
(status || statusLabel) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16891
|
-
|
|
16890
|
+
_chunkEHJE3UWZcjs.TicketStatusTag,
|
|
16892
16891
|
{
|
|
16893
16892
|
status: _nullishCoalesce(status, () => ( "")),
|
|
16894
16893
|
label: statusLabel,
|
|
@@ -16927,9 +16926,9 @@ function TicketInfoSection({
|
|
|
16927
16926
|
expanded && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
16928
16927
|
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
16928
|
/* @__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,
|
|
16929
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZXFOMNI5cjs.SimpleMarkdownRenderer, { content: description }),
|
|
16931
16930
|
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,
|
|
16931
|
+
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
16932
|
(notes || onAddNote) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Notes", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16934
16933
|
TicketNotesSection,
|
|
16935
16934
|
{
|
|
@@ -16952,8 +16951,8 @@ function renderTicketStatusOption(option, isSelected) {
|
|
|
16952
16951
|
const { label, color } = option;
|
|
16953
16952
|
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
16953
|
/* @__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,
|
|
16954
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ColorSwatch, { color }),
|
|
16955
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { className: "text-inherit", children: label }) })
|
|
16957
16956
|
] }),
|
|
16958
16957
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
16959
16958
|
] });
|
|
@@ -16962,8 +16961,8 @@ function renderTicketAssigneeOption(option, isSelected) {
|
|
|
16962
16961
|
const { label, imageUrl } = option;
|
|
16963
16962
|
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
16963
|
/* @__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,
|
|
16964
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.SquareAvatar, { src: imageUrl, alt: label, fallback: label, size: "sm", variant: "round" }),
|
|
16965
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { className: "text-inherit", children: label }) })
|
|
16967
16966
|
] }),
|
|
16968
16967
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
16969
16968
|
] });
|
|
@@ -16997,9 +16996,9 @@ function TakeOverTicketModal({
|
|
|
16997
16996
|
if (!selectedStatusId || !assigneeId || isPending) return;
|
|
16998
16997
|
onConfirm({ statusId: selectedStatusId, assigneeId });
|
|
16999
16998
|
};
|
|
17000
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16999
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
17001
17000
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
17002
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17001
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalTitle, { children: "Take Over Ticket" }) }),
|
|
17003
17002
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
17004
17003
|
"The ticket ",
|
|
17005
17004
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-accent", children: ticketRef }),
|
|
@@ -17007,19 +17006,19 @@ function TakeOverTicketModal({
|
|
|
17007
17006
|
] }),
|
|
17008
17007
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)] md:flex-row", children: [
|
|
17009
17008
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17010
|
-
|
|
17009
|
+
_chunkMZLWB5AHcjs.Autocomplete,
|
|
17011
17010
|
{
|
|
17012
17011
|
label: "Status",
|
|
17013
17012
|
options: statusOptions,
|
|
17014
17013
|
value: selectedStatusId,
|
|
17015
17014
|
onChange: setStatusId,
|
|
17016
17015
|
placeholder: "Select Status",
|
|
17017
|
-
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17016
|
+
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ColorSwatch, { color: selectedStatus.color }) : void 0,
|
|
17018
17017
|
renderOption: renderTicketStatusOption
|
|
17019
17018
|
}
|
|
17020
17019
|
) }),
|
|
17021
17020
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17022
|
-
|
|
17021
|
+
_chunkMZLWB5AHcjs.Autocomplete,
|
|
17023
17022
|
{
|
|
17024
17023
|
label: "Assigned",
|
|
17025
17024
|
options: assigneeOptions,
|
|
@@ -17028,7 +17027,7 @@ function TakeOverTicketModal({
|
|
|
17028
17027
|
placeholder: "Select Technician",
|
|
17029
17028
|
loading: assigneesLoading,
|
|
17030
17029
|
startAdornment: selectedAssignee ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17031
|
-
|
|
17030
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
17032
17031
|
{
|
|
17033
17032
|
src: selectedAssignee.imageUrl,
|
|
17034
17033
|
alt: selectedAssignee.label,
|
|
@@ -17041,7 +17040,7 @@ function TakeOverTicketModal({
|
|
|
17041
17040
|
}
|
|
17042
17041
|
) })
|
|
17043
17042
|
] }),
|
|
17044
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17043
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.ModalFooter, { children: [
|
|
17045
17044
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
17046
17045
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
17047
17046
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -17100,9 +17099,9 @@ function ReopenTicketModal({
|
|
|
17100
17099
|
reason: trimmedReason ? trimmedReason.slice(0, REASON_MAX_LENGTH) : null
|
|
17101
17100
|
});
|
|
17102
17101
|
};
|
|
17103
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17102
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
17104
17103
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
17105
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17104
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalTitle, { children: "Reopen Ticket" }) }),
|
|
17106
17105
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
17107
17106
|
"The ticket ",
|
|
17108
17107
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-accent", children: ticketRef }),
|
|
@@ -17110,19 +17109,19 @@ function ReopenTicketModal({
|
|
|
17110
17109
|
] }),
|
|
17111
17110
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)] md:flex-row", children: [
|
|
17112
17111
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17113
|
-
|
|
17112
|
+
_chunkMZLWB5AHcjs.Autocomplete,
|
|
17114
17113
|
{
|
|
17115
17114
|
label: "Status",
|
|
17116
17115
|
options: statusOptions,
|
|
17117
17116
|
value: selectedStatusId,
|
|
17118
17117
|
onChange: setStatusId,
|
|
17119
17118
|
placeholder: "Select Status",
|
|
17120
|
-
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17119
|
+
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ColorSwatch, { color: selectedStatus.color }) : void 0,
|
|
17121
17120
|
renderOption: renderTicketStatusOption
|
|
17122
17121
|
}
|
|
17123
17122
|
) }),
|
|
17124
17123
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17125
|
-
|
|
17124
|
+
_chunkMZLWB5AHcjs.Autocomplete,
|
|
17126
17125
|
{
|
|
17127
17126
|
label: "Assigned",
|
|
17128
17127
|
options: assigneeOptions,
|
|
@@ -17131,7 +17130,7 @@ function ReopenTicketModal({
|
|
|
17131
17130
|
placeholder: "Select Technician",
|
|
17132
17131
|
loading: assigneesLoading,
|
|
17133
17132
|
startAdornment: selectedAssignee ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17134
|
-
|
|
17133
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
17135
17134
|
{
|
|
17136
17135
|
src: selectedAssignee.imageUrl,
|
|
17137
17136
|
alt: selectedAssignee.label,
|
|
@@ -17155,7 +17154,7 @@ function ReopenTicketModal({
|
|
|
17155
17154
|
disabled: isPending
|
|
17156
17155
|
}
|
|
17157
17156
|
) }),
|
|
17158
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17157
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.ModalFooter, { children: [
|
|
17159
17158
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
17160
17159
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
17161
17160
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -17204,9 +17203,9 @@ function ReopenTicketRequestModal({
|
|
|
17204
17203
|
...showHandoffOption ? { handoffToTechnician: handoff } : {}
|
|
17205
17204
|
});
|
|
17206
17205
|
};
|
|
17207
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17206
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
17208
17207
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
17209
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17208
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalTitle, { children: "Reopen Ticket" }) }),
|
|
17210
17209
|
/* @__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
17210
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17212
17211
|
Textarea,
|
|
@@ -17230,7 +17229,7 @@ function ReopenTicketRequestModal({
|
|
|
17230
17229
|
disabled: isPending
|
|
17231
17230
|
}
|
|
17232
17231
|
),
|
|
17233
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17232
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.ModalFooter, { children: [
|
|
17234
17233
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1", children: "Cancel" }),
|
|
17235
17234
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { type: "button", variant: "accent", onClick: handleConfirm, loading: isPending, className: "flex-1", children: "Reopen Ticket" })
|
|
17236
17235
|
] })
|
|
@@ -17396,7 +17395,7 @@ function PhotoWall({
|
|
|
17396
17395
|
gap: COLUMN_GAP_PX
|
|
17397
17396
|
};
|
|
17398
17397
|
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
|
-
|
|
17398
|
+
_chunkZXFOMNI5cjs.MarqueeWall,
|
|
17400
17399
|
{
|
|
17401
17400
|
axis: "y",
|
|
17402
17401
|
reverse: index % 2 === 1,
|
|
@@ -17614,19 +17613,10 @@ function ProductScreenFrame({
|
|
|
17614
17613
|
className: _chunk65VVJSQZcjs.cn.call(void 0, "relative overflow-hidden", className),
|
|
17615
17614
|
style: { height },
|
|
17616
17615
|
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
|
-
) }) }),
|
|
17616
|
+
/* @__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: [
|
|
17617
|
+
/* @__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, _chunkMZLWB5AHcjs.PagePicture, { children }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.PagePicture, { children }) }),
|
|
17618
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
|
|
17619
|
+
] }) }) }),
|
|
17630
17620
|
fade && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17631
17621
|
"div",
|
|
17632
17622
|
{
|
|
@@ -17760,7 +17750,7 @@ function PhoneFrame({ dateLabel, timeLabel, children, className }) {
|
|
|
17760
17750
|
"div",
|
|
17761
17751
|
{
|
|
17762
17752
|
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]",
|
|
17753
|
+
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "relative flex h-full flex-col overflow-hidden rounded-[38px]", _chunkMZLWB5AHcjs.DEVICE_WALLPAPER_CLASS), children: [
|
|
17764
17754
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17765
17755
|
"div",
|
|
17766
17756
|
{
|
|
@@ -17952,7 +17942,7 @@ var TRIAL_TERM_ICONS = {
|
|
|
17952
17942
|
};
|
|
17953
17943
|
var DEFAULT_TRIAL_TERMS = ["cancel", "length", "noContract"];
|
|
17954
17944
|
function trialBenefits(trialDays, terms = DEFAULT_TRIAL_TERMS) {
|
|
17955
|
-
const labels =
|
|
17945
|
+
const labels = _chunkUBPSA3RMcjs.trialLabels.call(void 0, trialDays);
|
|
17956
17946
|
return terms.flatMap((term) => {
|
|
17957
17947
|
const label = labels[term];
|
|
17958
17948
|
return label ? [{ icon: TRIAL_TERM_ICONS[term], label }] : [];
|
|
@@ -18049,7 +18039,7 @@ function AnalyzingState({ label, className }) {
|
|
|
18049
18039
|
}) }),
|
|
18050
18040
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1.5 text-center text-ods-text-secondary text-h4", children: [
|
|
18051
18041
|
label,
|
|
18052
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18042
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ChatTypingIndicator, { "aria-hidden": true, size: "sm", dotClassName: "bg-ods-text-secondary motion-reduce:animate-none" })
|
|
18053
18043
|
] })
|
|
18054
18044
|
] });
|
|
18055
18045
|
}
|
|
@@ -18063,7 +18053,7 @@ var INCIDENT_TONE = {
|
|
|
18063
18053
|
approved: "success"
|
|
18064
18054
|
};
|
|
18065
18055
|
function IncidentStatusLine({ status, label, className }) {
|
|
18066
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18056
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.StatusLine, { tone: INCIDENT_TONE[status], label, className });
|
|
18067
18057
|
}
|
|
18068
18058
|
var FEED_CLASS = "flex min-h-0 flex-1 flex-col gap-3 overflow-hidden p-4 md:px-5";
|
|
18069
18059
|
var FEED_BOTTOM_CLASS = "justify-end [mask-image:linear-gradient(180deg,transparent_0,#000_48px)]";
|
|
@@ -18080,13 +18070,7 @@ function ItemMeta({ item }) {
|
|
|
18080
18070
|
item.time && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary text-h6", children: item.time })
|
|
18081
18071
|
] });
|
|
18082
18072
|
}
|
|
18083
|
-
function IncidentFeed({
|
|
18084
|
-
items,
|
|
18085
|
-
statusLabels,
|
|
18086
|
-
emptyLabel,
|
|
18087
|
-
anchor = "top",
|
|
18088
|
-
className
|
|
18089
|
-
}) {
|
|
18073
|
+
function IncidentFeed({ items, statusLabels, emptyLabel, anchor = "top", className }) {
|
|
18090
18074
|
const lastIndex = items.length - 1;
|
|
18091
18075
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, FEED_CLASS, anchor === "bottom" && FEED_BOTTOM_CLASS, className), children: [
|
|
18092
18076
|
items.length === 0 && emptyLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AnalyzingState, { label: emptyLabel, className: "m-auto" }),
|
|
@@ -18378,7 +18362,7 @@ function SuperUserBannerView({ tenantName, environmentLabel, className }) {
|
|
|
18378
18362
|
endAdornment: (
|
|
18379
18363
|
// Below `md` the chip would take the width the tenant name needs, and
|
|
18380
18364
|
// the name is the point of the strip: the chip waits for `md`.
|
|
18381
|
-
environmentLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18365
|
+
environmentLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { variant: "critical", label: environmentLabel, className: "uppercase max-md:hidden" }) : void 0
|
|
18382
18366
|
)
|
|
18383
18367
|
}
|
|
18384
18368
|
);
|
|
@@ -18857,7 +18841,7 @@ function SsoProviderButtons({
|
|
|
18857
18841
|
// where a long organization name would otherwise push the label out of a phone-width
|
|
18858
18842
|
// button. `block` over its inline-flex, because an ellipsis only renders on a block box.
|
|
18859
18843
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18860
|
-
|
|
18844
|
+
_chunk4EJU462Ocjs.StatusBadge,
|
|
18861
18845
|
{
|
|
18862
18846
|
text: tag,
|
|
18863
18847
|
variant: "button",
|
|
@@ -18916,7 +18900,7 @@ function CompleteAccountForm({
|
|
|
18916
18900
|
),
|
|
18917
18901
|
children: [
|
|
18918
18902
|
/* @__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:
|
|
18903
|
+
/* @__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
18904
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
18921
18905
|
] }),
|
|
18922
18906
|
ssoProviders && ssoProviders.length > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -19064,7 +19048,7 @@ function CreateOrganizationForm({
|
|
|
19064
19048
|
),
|
|
19065
19049
|
children: [
|
|
19066
19050
|
/* @__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:
|
|
19051
|
+
/* @__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
19052
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19069
19053
|
] }),
|
|
19070
19054
|
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 +19189,7 @@ function InviteLinkInvalidModal({
|
|
|
19205
19189
|
),
|
|
19206
19190
|
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
19191
|
/* @__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:
|
|
19192
|
+
/* @__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
19193
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19210
19194
|
"button",
|
|
19211
19195
|
{
|
|
@@ -19286,7 +19270,7 @@ function LoginForm({
|
|
|
19286
19270
|
),
|
|
19287
19271
|
children: [
|
|
19288
19272
|
/* @__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:
|
|
19273
|
+
/* @__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
19274
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19291
19275
|
] }),
|
|
19292
19276
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19412,7 +19396,7 @@ function NoAccountNotice({
|
|
|
19412
19396
|
),
|
|
19413
19397
|
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
19398
|
/* @__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:
|
|
19399
|
+
/* @__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
19400
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: description })
|
|
19417
19401
|
] }),
|
|
19418
19402
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { type: "button", variant: "outline", fullWidth: true, onClick: onBackToLogin, children: backLabel })
|
|
@@ -19461,7 +19445,7 @@ function OpenFrameSsoLoginForm({
|
|
|
19461
19445
|
),
|
|
19462
19446
|
children: [
|
|
19463
19447
|
/* @__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:
|
|
19448
|
+
/* @__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
19449
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19466
19450
|
] }),
|
|
19467
19451
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19566,7 +19550,7 @@ function OpenFrameSsoSignUpForm({
|
|
|
19566
19550
|
),
|
|
19567
19551
|
children: [
|
|
19568
19552
|
/* @__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:
|
|
19553
|
+
/* @__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
19554
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19571
19555
|
] }),
|
|
19572
19556
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19672,7 +19656,7 @@ function PasswordResetForm({
|
|
|
19672
19656
|
),
|
|
19673
19657
|
children: [
|
|
19674
19658
|
/* @__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:
|
|
19659
|
+
/* @__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
19660
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19677
19661
|
] }),
|
|
19678
19662
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19789,12 +19773,12 @@ function SsoJoinForm({
|
|
|
19789
19773
|
),
|
|
19790
19774
|
children: [
|
|
19791
19775
|
/* @__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:
|
|
19776
|
+
/* @__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
19777
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19794
19778
|
] }),
|
|
19795
19779
|
/* @__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
19780
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19797
|
-
|
|
19781
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
19798
19782
|
{
|
|
19799
19783
|
size: "lg",
|
|
19800
19784
|
variant: "round",
|
|
@@ -19808,7 +19792,7 @@ function SsoJoinForm({
|
|
|
19808
19792
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h4", children: displayName }),
|
|
19809
19793
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: organizationName })
|
|
19810
19794
|
] }),
|
|
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,
|
|
19795
|
+
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
19796
|
] }),
|
|
19813
19797
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19814
19798
|
CheckboxBlock,
|
|
@@ -20051,7 +20035,7 @@ function ChangelogManager({
|
|
|
20051
20035
|
),
|
|
20052
20036
|
/* @__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
20037
|
tagOptions && tagLabelOf(entry.tag) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20054
|
-
|
|
20038
|
+
_chunk4EJU462Ocjs.StatusBadge,
|
|
20055
20039
|
{
|
|
20056
20040
|
variant: "button",
|
|
20057
20041
|
singleLine: true,
|
|
@@ -20115,9 +20099,9 @@ function ChangelogManager({
|
|
|
20115
20099
|
] }),
|
|
20116
20100
|
tagOptions && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-1", children: [
|
|
20117
20101
|
/* @__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,
|
|
20102
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.Select, { value: _nullishCoalesce(entry.tag, () => ( "")), onValueChange: (value) => updateEntry(index, "tag", value), children: [
|
|
20103
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { className: "bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, { placeholder: tagLabel }) }),
|
|
20104
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { children: tagOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
20121
20105
|
] })
|
|
20122
20106
|
] })
|
|
20123
20107
|
] })
|
|
@@ -20270,30 +20254,13 @@ function CommandBox({
|
|
|
20270
20254
|
children: command
|
|
20271
20255
|
}
|
|
20272
20256
|
);
|
|
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;
|
|
20257
|
+
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
20258
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, COMMAND_BOX_CLASS, className), children: [
|
|
20283
20259
|
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: COMMAND_BOX_TITLE_CLASS, children: title }),
|
|
20284
20260
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: COMMAND_BOX_FRAME_CLASS, children: [
|
|
20285
20261
|
onCopy ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: COMMAND_BOX_COPY_ROW_CLASS, children: [
|
|
20286
20262
|
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
|
-
)
|
|
20263
|
+
/* @__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
20264
|
] }) : commandText,
|
|
20298
20265
|
(primaryAction || secondaryAction) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: COMMAND_BOX_ACTIONS_CLASS, children: [
|
|
20299
20266
|
secondaryAction && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -20415,11 +20382,11 @@ function EntityTagBadgesSkeleton({
|
|
|
20415
20382
|
i >= count && "content-md:hidden"
|
|
20416
20383
|
),
|
|
20417
20384
|
"data-loading-item": true,
|
|
20418
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20385
|
+
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
20386
|
},
|
|
20420
20387
|
i
|
|
20421
20388
|
)),
|
|
20422
|
-
overflow && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TAG_ITEM_CLASS, "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20389
|
+
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
20390
|
] });
|
|
20424
20391
|
}
|
|
20425
20392
|
function EntityTagBadges({
|
|
@@ -20456,7 +20423,7 @@ function EntityTagBadges({
|
|
|
20456
20423
|
const label = (tag.name || "").toUpperCase();
|
|
20457
20424
|
if (basePath && tag.slug) {
|
|
20458
20425
|
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
|
-
|
|
20426
|
+
_chunk4EJU462Ocjs.StatusBadge,
|
|
20460
20427
|
{
|
|
20461
20428
|
text: label,
|
|
20462
20429
|
variant: "card",
|
|
@@ -20464,7 +20431,7 @@ function EntityTagBadges({
|
|
|
20464
20431
|
}
|
|
20465
20432
|
) }, key);
|
|
20466
20433
|
}
|
|
20467
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: itemClass(index), "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20434
|
+
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
20435
|
}),
|
|
20469
20436
|
phoneOverflow === overflow ? overflow > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OverflowBadge, { count: overflow }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
20470
20437
|
phoneOverflow > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OverflowBadge, { count: phoneOverflow, className: "content-md:hidden" }),
|
|
@@ -20473,7 +20440,7 @@ function EntityTagBadges({
|
|
|
20473
20440
|
] });
|
|
20474
20441
|
}
|
|
20475
20442
|
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,
|
|
20443
|
+
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
20444
|
}
|
|
20478
20445
|
|
|
20479
20446
|
// src/components/features/error-boundary.tsx
|
|
@@ -20568,7 +20535,7 @@ var SectionButton = ({
|
|
|
20568
20535
|
}
|
|
20569
20536
|
),
|
|
20570
20537
|
section.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20571
|
-
|
|
20538
|
+
_chunk4EJU462Ocjs.StatusBadge,
|
|
20572
20539
|
{
|
|
20573
20540
|
text: section.badge.text,
|
|
20574
20541
|
variant: section.badge.variant || "button",
|
|
@@ -20587,7 +20554,7 @@ var SectionButton = ({
|
|
|
20587
20554
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-wrap items-start gap-2", children: [
|
|
20588
20555
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk65VVJSQZcjs.cn.call(void 0, titleClasses, "text-h3"), style: { textAlign: "left" }, children: section.title }),
|
|
20589
20556
|
section.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20590
|
-
|
|
20557
|
+
_chunk4EJU462Ocjs.StatusBadge,
|
|
20591
20558
|
{
|
|
20592
20559
|
text: section.badge.text,
|
|
20593
20560
|
variant: section.badge.variant || "button",
|
|
@@ -21652,15 +21619,15 @@ function useLoading() {
|
|
|
21652
21619
|
|
|
21653
21620
|
|
|
21654
21621
|
function isAlreadyThere(file, existing) {
|
|
21655
|
-
const key =
|
|
21622
|
+
const key = _chunk4EJU462Ocjs.mediaNameKey.call(void 0, file.name);
|
|
21656
21623
|
if (!key) return false;
|
|
21657
21624
|
return existing.some(
|
|
21658
|
-
(item) => (item.title ?
|
|
21625
|
+
(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
21626
|
);
|
|
21660
21627
|
}
|
|
21661
21628
|
var isFileDrag = (event) => Array.from(event.dataTransfer.types).includes("Files");
|
|
21662
|
-
var isVideoItem = (item) =>
|
|
21663
|
-
var MEDIA_KIND_ACCEPT = { image:
|
|
21629
|
+
var isVideoItem = (item) => _chunk4EJU462Ocjs.isVideoMedia.call(void 0, item) || item.media_type === "demo";
|
|
21630
|
+
var MEDIA_KIND_ACCEPT = { image: _chunk4EJU462Ocjs.IMAGE_FILE_ACCEPT, video: "video/*", both: _chunk4EJU462Ocjs.MEDIA_FILE_ACCEPT };
|
|
21664
21631
|
var MEDIA_KIND_COPY = {
|
|
21665
21632
|
image: { noun: "pictures", refusal: "Not a picture" },
|
|
21666
21633
|
video: { noun: "videos", refusal: "Not a video" },
|
|
@@ -21684,12 +21651,12 @@ function useMediaIntake({ existing, onUpload, onUploaded, kinds = "both" }) {
|
|
|
21684
21651
|
const seen = /* @__PURE__ */ new Set();
|
|
21685
21652
|
const accepted = [];
|
|
21686
21653
|
for (const file of files) {
|
|
21687
|
-
const mediaType =
|
|
21654
|
+
const mediaType = _chunk4EJU462Ocjs.fileMediaType.call(void 0, file);
|
|
21688
21655
|
if (!mediaType || kinds !== "both" && mediaType !== kinds) {
|
|
21689
21656
|
unsupported.push(file.name);
|
|
21690
21657
|
continue;
|
|
21691
21658
|
}
|
|
21692
|
-
const contentKey = await
|
|
21659
|
+
const contentKey = await _chunk4EJU462Ocjs.fileContentKey.call(void 0, file).catch(() => `${file.name}:${file.size}`);
|
|
21693
21660
|
if (seen.has(contentKey) || isAlreadyThere(file, existingRef.current)) {
|
|
21694
21661
|
duplicates.push(file.name);
|
|
21695
21662
|
continue;
|
|
@@ -21870,7 +21837,7 @@ function MediaGalleryManager({
|
|
|
21870
21837
|
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
21838
|
children: [
|
|
21872
21839
|
media.map((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21873
|
-
|
|
21840
|
+
_chunk4EJU462Ocjs.Card,
|
|
21874
21841
|
{
|
|
21875
21842
|
className: "group relative border-ods-border transition-colors hover:border-ods-accent/30",
|
|
21876
21843
|
draggable: true,
|
|
@@ -21895,7 +21862,7 @@ function MediaGalleryManager({
|
|
|
21895
21862
|
) }),
|
|
21896
21863
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative aspect-video overflow-hidden rounded-lg bg-ods-bg", children: isVideoItem(item) ? (
|
|
21897
21864
|
// <Video> SSOT (MuxPlayer): plays Mux HLS and MP4 alike; fit="cover" crops to the cell.
|
|
21898
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21865
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.Video, { kind: "file", url: item.media_url, fit: "cover", className: "h-full w-full" })
|
|
21899
21866
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21900
21867
|
_chunkE76ONBKFcjs.next_image_default,
|
|
21901
21868
|
{
|
|
@@ -21910,17 +21877,17 @@ function MediaGalleryManager({
|
|
|
21910
21877
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
21911
21878
|
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
21879
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21913
|
-
|
|
21880
|
+
_chunkMZLWB5AHcjs.Select,
|
|
21914
21881
|
{
|
|
21915
21882
|
value: item.media_type,
|
|
21916
21883
|
onValueChange: (value) => update(index, { media_type: value }),
|
|
21917
21884
|
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,
|
|
21885
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { className: "h-8 bg-ods-bg text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, {}) }),
|
|
21886
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { className: "bg-ods-card", children: [
|
|
21887
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "image", children: "Image" }),
|
|
21888
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "video", children: "Video" }),
|
|
21889
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "screenshot", children: "Screenshot" }),
|
|
21890
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "demo", children: "Demo" })
|
|
21924
21891
|
] })
|
|
21925
21892
|
]
|
|
21926
21893
|
}
|
|
@@ -21947,7 +21914,7 @@ function MediaGalleryManager({
|
|
|
21947
21914
|
},
|
|
21948
21915
|
_nullishCoalesce(item.id, () => ( `${item.media_url}-${index}`))
|
|
21949
21916
|
)),
|
|
21950
|
-
pending.map((name, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21917
|
+
pending.map((name, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4EJU462Ocjs.Card, { className: "border-ods-border", "aria-busy": "true", children: [
|
|
21951
21918
|
/* @__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
21919
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate p-3 text-ods-text-secondary text-h6", children: name })
|
|
21953
21920
|
] }, `pending-${name}-${index}`))
|
|
@@ -22301,7 +22268,7 @@ var MODEL_TOKEN_RATES_COPY = {
|
|
|
22301
22268
|
empty: "No token rates are in effect right now."
|
|
22302
22269
|
};
|
|
22303
22270
|
function providerMark(providerType, stated, className) {
|
|
22304
|
-
const Mark = _chunk5P4TDV7Vcjs.findIcon.call(void 0,
|
|
22271
|
+
const Mark = _chunk5P4TDV7Vcjs.findIcon.call(void 0, _chunkUBPSA3RMcjs.aiProvider.call(void 0, providerType, { icon: stated }).icon);
|
|
22305
22272
|
return Mark ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Mark, { className }) : void 0;
|
|
22306
22273
|
}
|
|
22307
22274
|
var PAD_X = "px-[var(--spacing-system-s)]";
|
|
@@ -22319,7 +22286,7 @@ var UNIT_LINE_CLASS = _chunk65VVJSQZcjs.cn.call(void 0,
|
|
|
22319
22286
|
var TABS_ROW_CLASS = _chunk65VVJSQZcjs.cn.call(void 0, "shrink-0 border-b border-ods-border py-[var(--spacing-system-xs)]", PAD_X);
|
|
22320
22287
|
var NUMBER_CELL = "w-16 shrink-0 whitespace-nowrap text-right tabular-nums";
|
|
22321
22288
|
function useProviderGroup(rates) {
|
|
22322
|
-
const groups =
|
|
22289
|
+
const groups = _chunkUBPSA3RMcjs.groupTokenRatesByProvider.call(void 0, rates);
|
|
22323
22290
|
const [picked, setPicked] = _react.useState.call(void 0, null);
|
|
22324
22291
|
return { groups, group: _nullishCoalesce(groups.find((candidate) => candidate.providerType === picked), () => ( groups[0])), setPicked };
|
|
22325
22292
|
}
|
|
@@ -22330,7 +22297,7 @@ function ProviderTabs({
|
|
|
22330
22297
|
className
|
|
22331
22298
|
}) {
|
|
22332
22299
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22333
|
-
|
|
22300
|
+
_chunkZXFOMNI5cjs.TabSelector,
|
|
22334
22301
|
{
|
|
22335
22302
|
variant: "secondary",
|
|
22336
22303
|
scrollable: true,
|
|
@@ -22338,7 +22305,7 @@ function ProviderTabs({
|
|
|
22338
22305
|
onValueChange,
|
|
22339
22306
|
items: groups.map((candidate) => ({
|
|
22340
22307
|
id: candidate.providerType,
|
|
22341
|
-
label:
|
|
22308
|
+
label: _chunkUBPSA3RMcjs.tokenRateProviderLabel.call(void 0, candidate.providerType, _optionalChain([candidate, 'access', _447 => _447.rates, 'access', _448 => _448[0], 'optionalAccess', _449 => _449.providerLabel])),
|
|
22342
22309
|
icon: providerMark(candidate.providerType, _optionalChain([candidate, 'access', _450 => _450.rates, 'access', _451 => _451[0], 'optionalAccess', _452 => _452.providerIcon]), "size-full")
|
|
22343
22310
|
})),
|
|
22344
22311
|
className
|
|
@@ -22416,8 +22383,8 @@ function ModelTokenRatesTable({ rates }) {
|
|
|
22416
22383
|
] }),
|
|
22417
22384
|
/* @__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
22385
|
/* @__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:
|
|
22386
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunkUBPSA3RMcjs.formatTokenRate.call(void 0, rate.inputTokenRate) }),
|
|
22387
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunkUBPSA3RMcjs.formatTokenRate.call(void 0, rate.outputTokenRate) })
|
|
22421
22388
|
] }, rate.modelName)) })
|
|
22422
22389
|
] }),
|
|
22423
22390
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: UNIT_LINE_CLASS, children: MODEL_TOKEN_RATES_COPY.unit })
|
|
@@ -22467,7 +22434,7 @@ function modelOption(rate) {
|
|
|
22467
22434
|
return {
|
|
22468
22435
|
label: rate.displayName || rate.modelName,
|
|
22469
22436
|
value: rate.modelName,
|
|
22470
|
-
description:
|
|
22437
|
+
description: _chunkUBPSA3RMcjs.tokenRateProviderLabel.call(void 0, rate.providerType, rate.providerLabel),
|
|
22471
22438
|
icon: providerMark(rate.providerType, rate.providerIcon, "size-full text-ods-text-secondary")
|
|
22472
22439
|
};
|
|
22473
22440
|
}
|
|
@@ -22521,9 +22488,9 @@ function ModelTokenExchange({
|
|
|
22521
22488
|
const [chosen, setChosen] = _react.useState.call(void 0, null);
|
|
22522
22489
|
const balance = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(chosen, () => ( defaultAmount)), () => ( _optionalChain([tokenPrice, 'optionalAccess', _453 => _453.tokens]))), () => ( MODEL_TOKEN_EXCHANGE_BALANCE));
|
|
22523
22490
|
const max = Math.max(amountRange.max, balance, ...presets.map((preset) => preset.tokens));
|
|
22524
|
-
const tokens =
|
|
22525
|
-
const cost =
|
|
22526
|
-
const balancePrice = cost === null ? null :
|
|
22491
|
+
const tokens = _chunkUBPSA3RMcjs.formatTokenAmount.call(void 0, balance);
|
|
22492
|
+
const cost = _chunkUBPSA3RMcjs.tokenCost.call(void 0, balance, tokenPrice);
|
|
22493
|
+
const balancePrice = cost === null ? null : _chunkHY6BCZH7cjs.formatPrice.call(void 0, cost);
|
|
22527
22494
|
const model = rate ? rate.displayName || rate.modelName : "";
|
|
22528
22495
|
const options = models.map(modelOption);
|
|
22529
22496
|
if (rate && !models.some((candidate) => candidate.modelName === rate.modelName)) options.unshift(modelOption(rate));
|
|
@@ -22564,7 +22531,7 @@ function ModelTokenExchange({
|
|
|
22564
22531
|
variant: preset.tokens === balance ? "accent" : "outline",
|
|
22565
22532
|
size: "small",
|
|
22566
22533
|
onClick: () => setChosen(preset.tokens),
|
|
22567
|
-
children: copy.buy.preset(
|
|
22534
|
+
children: copy.buy.preset(_chunkUBPSA3RMcjs.formatTokenAmount.call(void 0, preset.tokens), preset.label)
|
|
22568
22535
|
},
|
|
22569
22536
|
preset.label
|
|
22570
22537
|
)) })
|
|
@@ -22581,7 +22548,7 @@ function ModelTokenExchange({
|
|
|
22581
22548
|
const stated = _nullishCoalesce(models.find((option) => option.providerType === providerType), () => ( (_optionalChain([rate, 'optionalAccess', _454 => _454.providerType]) === providerType ? rate : null)));
|
|
22582
22549
|
return {
|
|
22583
22550
|
id: providerType,
|
|
22584
|
-
name:
|
|
22551
|
+
name: _chunkUBPSA3RMcjs.tokenRateProviderLabel.call(void 0, providerType, _optionalChain([stated, 'optionalAccess', _455 => _455.providerLabel])),
|
|
22585
22552
|
icon: providerMark(providerType, _optionalChain([stated, 'optionalAccess', _456 => _456.providerIcon]), "size-8 text-ods-text-secondary")
|
|
22586
22553
|
};
|
|
22587
22554
|
}),
|
|
@@ -22593,7 +22560,7 @@ function ModelTokenExchange({
|
|
|
22593
22560
|
}
|
|
22594
22561
|
),
|
|
22595
22562
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22596
|
-
|
|
22563
|
+
_chunkMZLWB5AHcjs.Autocomplete,
|
|
22597
22564
|
{
|
|
22598
22565
|
fieldLoading: loading,
|
|
22599
22566
|
label: copy.use.model,
|
|
@@ -22620,7 +22587,7 @@ function ModelTokenExchange({
|
|
|
22620
22587
|
{
|
|
22621
22588
|
size: "plain",
|
|
22622
22589
|
loading,
|
|
22623
|
-
figure:
|
|
22590
|
+
figure: _chunkUBPSA3RMcjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _461 => _461.inputTokenRate])),
|
|
22624
22591
|
words: copy.charge.input
|
|
22625
22592
|
}
|
|
22626
22593
|
),
|
|
@@ -22629,7 +22596,7 @@ function ModelTokenExchange({
|
|
|
22629
22596
|
{
|
|
22630
22597
|
size: "plain",
|
|
22631
22598
|
loading,
|
|
22632
|
-
figure:
|
|
22599
|
+
figure: _chunkUBPSA3RMcjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _462 => _462.outputTokenRate])),
|
|
22633
22600
|
words: copy.charge.output
|
|
22634
22601
|
}
|
|
22635
22602
|
)
|
|
@@ -22641,9 +22608,9 @@ function ModelTokenExchange({
|
|
|
22641
22608
|
className: "mt-auto flex flex-col rounded-md border border-ods-accent bg-ods-bg p-[var(--spacing-system-mf)]",
|
|
22642
22609
|
children: [
|
|
22643
22610
|
/* @__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" }) :
|
|
22611
|
+
/* @__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
22612
|
/* @__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(
|
|
22613
|
+
/* @__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
22614
|
]
|
|
22648
22615
|
}
|
|
22649
22616
|
)
|
|
@@ -23155,7 +23122,7 @@ var SelectButton = _react2.default.forwardRef(
|
|
|
23155
23122
|
}
|
|
23156
23123
|
)
|
|
23157
23124
|
] }),
|
|
23158
|
-
tag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23125
|
+
tag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { variant: tagVariant, className: "shrink-0", label: tag }),
|
|
23159
23126
|
selected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHFNBMV5Mcjs.CheckCircleIcon, { className: "size-4 shrink-0 text-ods-accent content-md:size-6" })
|
|
23160
23127
|
]
|
|
23161
23128
|
}
|
|
@@ -23182,14 +23149,14 @@ var ConfidenceBadge = ({
|
|
|
23182
23149
|
size = "sm",
|
|
23183
23150
|
className
|
|
23184
23151
|
}) => {
|
|
23185
|
-
const level =
|
|
23152
|
+
const level = _chunkUBPSA3RMcjs.getConfidenceLevel.call(void 0, confidence);
|
|
23186
23153
|
if (level === "none") {
|
|
23187
23154
|
return null;
|
|
23188
23155
|
}
|
|
23189
|
-
const label =
|
|
23190
|
-
const borderClass =
|
|
23191
|
-
const textClass =
|
|
23192
|
-
const bgClass =
|
|
23156
|
+
const label = _chunkUBPSA3RMcjs.getConfidenceLabel.call(void 0, confidence);
|
|
23157
|
+
const borderClass = _chunkUBPSA3RMcjs.getConfidenceBorderClass.call(void 0, confidence);
|
|
23158
|
+
const textClass = _chunkUBPSA3RMcjs.getConfidenceTextClass.call(void 0, confidence);
|
|
23159
|
+
const bgClass = _chunkUBPSA3RMcjs.getConfidenceBgClass.call(void 0, confidence);
|
|
23193
23160
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23194
23161
|
"span",
|
|
23195
23162
|
{
|
|
@@ -23240,9 +23207,9 @@ function SEOEditorPreview({
|
|
|
23240
23207
|
const [isUploading, setIsUploading] = _react.useState.call(void 0, false);
|
|
23241
23208
|
const [fileInputRef, setFileInputRef] = _react.useState.call(void 0, null);
|
|
23242
23209
|
const seoTitleLength = (seoTitle || "").length;
|
|
23243
|
-
const seoTitleTooLong = seoTitleLength >
|
|
23210
|
+
const seoTitleTooLong = seoTitleLength > _chunkUBPSA3RMcjs.SEO_TITLE_MAX_LENGTH;
|
|
23244
23211
|
const seoDescriptionLength = (seoDescription || "").length;
|
|
23245
|
-
const seoDescriptionTooLong = seoDescriptionLength >
|
|
23212
|
+
const seoDescriptionTooLong = seoDescriptionLength > _chunkUBPSA3RMcjs.SEO_DESCRIPTION_MAX_LENGTH;
|
|
23246
23213
|
const displayTitle = seoTitle.trim() || title || "Untitled";
|
|
23247
23214
|
const displayDescription = seoDescription.trim() || summary || "No description";
|
|
23248
23215
|
const hasOgImage = ogImageUrl.trim();
|
|
@@ -23267,10 +23234,10 @@ function SEOEditorPreview({
|
|
|
23267
23234
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
23268
23235
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
23269
23236
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23270
|
-
|
|
23237
|
+
_chunkUBPSA3RMcjs.Field,
|
|
23271
23238
|
{
|
|
23272
23239
|
label: "SEO Title",
|
|
23273
|
-
error: seoTitleTooLong ? `Too long: search engines may truncate this title (keep it under ${
|
|
23240
|
+
error: seoTitleTooLong ? `Too long: search engines may truncate this title (keep it under ${_chunkUBPSA3RMcjs.SEO_TITLE_MAX_LENGTH})` : null,
|
|
23274
23241
|
labelExtras: aiConfidenceSeoTitle !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
23275
23242
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
|
|
23276
23243
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ConfidenceBadge, { confidence: aiConfidenceSeoTitle, showLabel: true, showPercentage: true, size: "sm" })
|
|
@@ -23285,7 +23252,7 @@ function SEOEditorPreview({
|
|
|
23285
23252
|
children: [
|
|
23286
23253
|
seoTitleLength,
|
|
23287
23254
|
"/",
|
|
23288
|
-
|
|
23255
|
+
_chunkUBPSA3RMcjs.SEO_TITLE_MAX_LENGTH
|
|
23289
23256
|
]
|
|
23290
23257
|
}
|
|
23291
23258
|
),
|
|
@@ -23296,7 +23263,7 @@ function SEOEditorPreview({
|
|
|
23296
23263
|
value: seoTitle || "",
|
|
23297
23264
|
onChange: (e) => onSeoTitleChange(e.target.value),
|
|
23298
23265
|
disabled,
|
|
23299
|
-
maxLength:
|
|
23266
|
+
maxLength: _chunkUBPSA3RMcjs.SEO_TITLE_MAX_LENGTH,
|
|
23300
23267
|
invalid: seoTitleTooLong,
|
|
23301
23268
|
placeholder: "Enter SEO meta title...",
|
|
23302
23269
|
className: "border-ods-border bg-ods-bg text-ods-text-primary"
|
|
@@ -23307,7 +23274,7 @@ function SEOEditorPreview({
|
|
|
23307
23274
|
!seoTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-accent text-h6", children: "Auto-populated from title" })
|
|
23308
23275
|
] }),
|
|
23309
23276
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23310
|
-
|
|
23277
|
+
_chunkUBPSA3RMcjs.Field,
|
|
23311
23278
|
{
|
|
23312
23279
|
label: "SEO Keywords",
|
|
23313
23280
|
labelExtras: aiConfidenceSeoKeywords !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -23339,10 +23306,10 @@ function SEOEditorPreview({
|
|
|
23339
23306
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
23340
23307
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
23341
23308
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23342
|
-
|
|
23309
|
+
_chunkUBPSA3RMcjs.Field,
|
|
23343
23310
|
{
|
|
23344
23311
|
label: "SEO Description",
|
|
23345
|
-
error: seoDescriptionTooLong ? `Too long: search engines may truncate this description (keep it under ${
|
|
23312
|
+
error: seoDescriptionTooLong ? `Too long: search engines may truncate this description (keep it under ${_chunkUBPSA3RMcjs.SEO_DESCRIPTION_MAX_LENGTH})` : null,
|
|
23346
23313
|
labelExtras: aiConfidenceSeoDescription !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
23347
23314
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
|
|
23348
23315
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -23365,7 +23332,7 @@ function SEOEditorPreview({
|
|
|
23365
23332
|
children: [
|
|
23366
23333
|
seoDescriptionLength,
|
|
23367
23334
|
"/",
|
|
23368
|
-
|
|
23335
|
+
_chunkUBPSA3RMcjs.SEO_DESCRIPTION_MAX_LENGTH
|
|
23369
23336
|
]
|
|
23370
23337
|
}
|
|
23371
23338
|
),
|
|
@@ -23376,7 +23343,7 @@ function SEOEditorPreview({
|
|
|
23376
23343
|
value: seoDescription || "",
|
|
23377
23344
|
onChange: (e) => onSeoDescriptionChange(e.target.value),
|
|
23378
23345
|
disabled,
|
|
23379
|
-
maxLength:
|
|
23346
|
+
maxLength: _chunkUBPSA3RMcjs.SEO_DESCRIPTION_MAX_LENGTH,
|
|
23380
23347
|
invalid: seoDescriptionTooLong,
|
|
23381
23348
|
placeholder: "Enter SEO meta description...",
|
|
23382
23349
|
className: _chunk65VVJSQZcjs.cn.call(void 0, "resize-none border-ods-border bg-ods-bg text-ods-text-primary", SEO_MEDIA_BOX_HEIGHT)
|
|
@@ -23445,7 +23412,7 @@ function SEOEditorPreview({
|
|
|
23445
23412
|
{
|
|
23446
23413
|
ref: setFileInputRef,
|
|
23447
23414
|
type: "file",
|
|
23448
|
-
accept:
|
|
23415
|
+
accept: _chunk4EJU462Ocjs.IMAGE_FILE_ACCEPT,
|
|
23449
23416
|
onChange: handleImageUpload,
|
|
23450
23417
|
className: "hidden",
|
|
23451
23418
|
disabled: disabled || isUploading
|
|
@@ -23529,7 +23496,7 @@ function socialIcon(platform) {
|
|
|
23529
23496
|
return _nullishCoalesce(_chunk5P4TDV7Vcjs.iconOf.call(void 0, SOCIAL_ICONS[platform]), () => ( void 0));
|
|
23530
23497
|
}
|
|
23531
23498
|
function renderSocialIcon(platform) {
|
|
23532
|
-
const key = _nullishCoalesce(
|
|
23499
|
+
const key = _nullishCoalesce(_chunkUBPSA3RMcjs.normalizeSocialPlatform.call(void 0, platform), () => ( "website"));
|
|
23533
23500
|
const icon = _nullishCoalesce(socialIcon(key), () => ( socialIcon("website")));
|
|
23534
23501
|
return icon ? _react.createElement.call(void 0, icon, { className: "h-5 w-5" }) : null;
|
|
23535
23502
|
}
|
|
@@ -23616,7 +23583,7 @@ function SocialLinksManager({
|
|
|
23616
23583
|
};
|
|
23617
23584
|
const getIcon = (link, platform) => {
|
|
23618
23585
|
const iconKey = _optionalChain([platform, 'optionalAccess', _472 => _472.icon_name]) || link.platform;
|
|
23619
|
-
const key =
|
|
23586
|
+
const key = _chunkUBPSA3RMcjs.normalizeSocialPlatform.call(void 0, iconKey);
|
|
23620
23587
|
if (!key) return null;
|
|
23621
23588
|
const icon = socialIcon(key);
|
|
23622
23589
|
return icon ? _react.createElement.call(void 0, icon, { className: "h-5 w-5 text-ods-text-secondary" }) : null;
|
|
@@ -23632,9 +23599,9 @@ function SocialLinksManager({
|
|
|
23632
23599
|
children: [
|
|
23633
23600
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-8 w-8 items-center justify-center", children: Icon }),
|
|
23634
23601
|
/* @__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,
|
|
23602
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.Select, { value: link.platform, onValueChange: (value) => updateLink(index, "platform", value), children: [
|
|
23603
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, {}) }),
|
|
23604
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { children: platforms.map((p) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: p.name, children: p.display_name }, p.name)) })
|
|
23638
23605
|
] }) }),
|
|
23639
23606
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23640
23607
|
_chunkYXDHVHB2cjs.Input,
|
|
@@ -23652,15 +23619,15 @@ function SocialLinksManager({
|
|
|
23652
23619
|
)
|
|
23653
23620
|
] }),
|
|
23654
23621
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23655
|
-
|
|
23622
|
+
_chunkMZLWB5AHcjs.Select,
|
|
23656
23623
|
{
|
|
23657
23624
|
value: _nullishCoalesce(link.visibility, () => ( "external")),
|
|
23658
23625
|
onValueChange: (value) => updateLink(index, "visibility", value),
|
|
23659
23626
|
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,
|
|
23627
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { className: "w-[120px] shrink-0", "aria-label": "Social link visibility", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, {}) }),
|
|
23628
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { children: [
|
|
23629
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "external", children: "Public" }),
|
|
23630
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "internal", children: "Internal" })
|
|
23664
23631
|
] })
|
|
23665
23632
|
]
|
|
23666
23633
|
}
|
|
@@ -23752,7 +23719,7 @@ var StartWithOpenFrameButton = _react.forwardRef.call(void 0,
|
|
|
23752
23719
|
className: _chunk65VVJSQZcjs.cn.call(void 0, modeClassName, className),
|
|
23753
23720
|
style: customStyle,
|
|
23754
23721
|
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,
|
|
23722
|
+
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.StatusBadge, { text: "Beta", variant: "button", colorScheme: "yellow" }),
|
|
23756
23723
|
children
|
|
23757
23724
|
}
|
|
23758
23725
|
);
|
|
@@ -24079,11 +24046,11 @@ function WarningBlock({ title, icon = DEFAULT_ICON, children, className }) {
|
|
|
24079
24046
|
|
|
24080
24047
|
function VideoBitesDisplay({
|
|
24081
24048
|
bites,
|
|
24082
|
-
title =
|
|
24049
|
+
title = _chunk4EJU462Ocjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
24083
24050
|
filterPublished = true,
|
|
24084
24051
|
showTitle = true
|
|
24085
24052
|
}) {
|
|
24086
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24053
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZXFOMNI5cjs.VideoBitesStrip, { bites, title, filterPublished, showTitle });
|
|
24087
24054
|
}
|
|
24088
24055
|
|
|
24089
24056
|
// src/components/features/walkthrough-video.tsx
|
|
@@ -24113,7 +24080,7 @@ function WalkthroughVideo({
|
|
|
24113
24080
|
onOpenChange,
|
|
24114
24081
|
defaultOpen,
|
|
24115
24082
|
defaultOpenPaused,
|
|
24116
|
-
deepLinkParam =
|
|
24083
|
+
deepLinkParam = _chunkUBPSA3RMcjs.WALKTHROUGH_OPEN_QUERY_PARAM,
|
|
24117
24084
|
autoPlayCard = false,
|
|
24118
24085
|
label = "Play Demo Video",
|
|
24119
24086
|
placement,
|
|
@@ -24130,7 +24097,7 @@ function WalkthroughVideo({
|
|
|
24130
24097
|
const inline = placement === "inline";
|
|
24131
24098
|
const inScope = _chunkXFRBEXQNcjs.useLoadingScope.call(void 0, );
|
|
24132
24099
|
const dismissEnabled = dismissal !== false;
|
|
24133
|
-
const storageKey = dismissEnabled && dismissal.storageKey ||
|
|
24100
|
+
const storageKey = dismissEnabled && dismissal.storageKey || _chunkUBPSA3RMcjs.WALKTHROUGH_VIDEO_DISMISS_KEY;
|
|
24134
24101
|
const dismissalId = _optionalChain([video, 'optionalAccess', _478 => _478.id]) != null ? String(video.id) : "dismissed";
|
|
24135
24102
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
24136
24103
|
const [dismissed, setDismissed] = _react.useState.call(void 0, false);
|
|
@@ -24142,7 +24109,7 @@ function WalkthroughVideo({
|
|
|
24142
24109
|
let delayElapsed = false;
|
|
24143
24110
|
let interacted = inline;
|
|
24144
24111
|
const reveal = () => {
|
|
24145
|
-
if (dismissEnabled &&
|
|
24112
|
+
if (dismissEnabled && _chunkUBPSA3RMcjs.isWalkthroughDismissed.call(void 0, storageKey, dismissalId)) {
|
|
24146
24113
|
setDismissed(true);
|
|
24147
24114
|
return;
|
|
24148
24115
|
}
|
|
@@ -24179,7 +24146,7 @@ function WalkthroughVideo({
|
|
|
24179
24146
|
if (idleHandle !== null && typeof cic === "function") cic(idleHandle);
|
|
24180
24147
|
};
|
|
24181
24148
|
}, [appearDelayMs, dismissEnabled, storageKey, dismissalId, hasVideo, videoId, inline]);
|
|
24182
|
-
const hydrated =
|
|
24149
|
+
const hydrated = _chunkZXFOMNI5cjs.useIsHydrated.call(void 0, );
|
|
24183
24150
|
const previewSuppressed = _react.useMemo.call(void 0, () => {
|
|
24184
24151
|
if (!hydrated) return false;
|
|
24185
24152
|
try {
|
|
@@ -24429,7 +24396,7 @@ function WalkthroughVideo({
|
|
|
24429
24396
|
(e) => {
|
|
24430
24397
|
e.stopPropagation();
|
|
24431
24398
|
pausePreviewNow();
|
|
24432
|
-
if (dismissEnabled)
|
|
24399
|
+
if (dismissEnabled) _chunkUBPSA3RMcjs.dismissWalkthrough.call(void 0, storageKey, dismissalId);
|
|
24433
24400
|
setDismissed(true);
|
|
24434
24401
|
},
|
|
24435
24402
|
[dismissEnabled, storageKey, dismissalId, pausePreviewNow]
|
|
@@ -24580,7 +24547,7 @@ function WalkthroughVideo({
|
|
|
24580
24547
|
},
|
|
24581
24548
|
children: [
|
|
24582
24549
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pointer-events-none absolute inset-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24583
|
-
|
|
24550
|
+
_chunk4EJU462Ocjs.VideoHoverPreviewSurface,
|
|
24584
24551
|
{
|
|
24585
24552
|
url: video.mainVideoUrl || "",
|
|
24586
24553
|
posterUrl: video.posterUrl ? _chunkE76ONBKFcjs.resizedImageUrl.call(void 0, video.posterUrl, CARD_POSTER_WIDTH_PX) : video.posterUrl,
|
|
@@ -24604,7 +24571,7 @@ function WalkthroughVideo({
|
|
|
24604
24571
|
`card-${embedUrlKey}`
|
|
24605
24572
|
) }),
|
|
24606
24573
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24607
|
-
|
|
24574
|
+
_chunkZXFOMNI5cjs.CardHitLayer,
|
|
24608
24575
|
{
|
|
24609
24576
|
label: video.title ? `${label}: ${video.title}` : label,
|
|
24610
24577
|
onPointerDown: pausePreviewNow,
|
|
@@ -24613,7 +24580,7 @@ function WalkthroughVideo({
|
|
|
24613
24580
|
}
|
|
24614
24581
|
),
|
|
24615
24582
|
/* @__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,
|
|
24583
|
+
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
24584
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: summaryTitle || label })
|
|
24618
24585
|
] }),
|
|
24619
24586
|
showBigUnmute && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -24720,7 +24687,7 @@ function WalkthroughVideo({
|
|
|
24720
24687
|
children: [
|
|
24721
24688
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogPrimitive2.Title, { className: "sr-only", children: summaryTitle || "Walkthrough video" }),
|
|
24722
24689
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24723
|
-
|
|
24690
|
+
_chunk4EJU462Ocjs.Video,
|
|
24724
24691
|
{
|
|
24725
24692
|
kind: video.youtubeUrl ? "youtube" : "file",
|
|
24726
24693
|
url: video.youtubeUrl || video.mainVideoUrl,
|
|
@@ -24776,7 +24743,7 @@ function useWalkthroughVideo(opts) {
|
|
|
24776
24743
|
const { endpoint, initialData, enabled: enabledGiven = true, transformCaptionsUrl } = opts;
|
|
24777
24744
|
const inScope = _chunkXFRBEXQNcjs.useLoadingScope.call(void 0, );
|
|
24778
24745
|
const enabled = enabledGiven && !inScope;
|
|
24779
|
-
const captions =
|
|
24746
|
+
const captions = _chunkZXFOMNI5cjs.useCaptions.call(void 0, );
|
|
24780
24747
|
const query = _reactquery.useQuery.call(void 0, {
|
|
24781
24748
|
queryKey: ["walkthrough-video", endpoint],
|
|
24782
24749
|
enabled,
|
|
@@ -24974,7 +24941,7 @@ function VideoSourceSelector({
|
|
|
24974
24941
|
}
|
|
24975
24942
|
function DefaultVideoPreview({ videoUrl, onDelete, disabled }) {
|
|
24976
24943
|
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,
|
|
24944
|
+
/* @__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
24945
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24979
24946
|
"button",
|
|
24980
24947
|
{
|
|
@@ -25428,19 +25395,19 @@ function HighlightVideoSection({
|
|
|
25428
25395
|
/* @__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
25396
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFL2RMEDXcjs.Label, { children: "Target Duration" }),
|
|
25430
25397
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25431
|
-
|
|
25398
|
+
_chunkMZLWB5AHcjs.Select,
|
|
25432
25399
|
{
|
|
25433
25400
|
value: targetDurationSeconds.toString(),
|
|
25434
25401
|
onValueChange: (value) => onTargetDurationChange(parseInt(value)),
|
|
25435
25402
|
disabled,
|
|
25436
25403
|
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,
|
|
25404
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { className: "mt-1 bg-ods-bg-surface", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, {}) }),
|
|
25405
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { className: "bg-ods-card", children: [
|
|
25406
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "60", children: "1 minute" }),
|
|
25407
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "120", children: "2 minutes" }),
|
|
25408
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "180", children: "3 minutes (Recommended)" }),
|
|
25409
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "240", children: "4 minutes" }),
|
|
25410
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "300", children: "5 minutes" })
|
|
25444
25411
|
] })
|
|
25445
25412
|
]
|
|
25446
25413
|
}
|
|
@@ -25498,7 +25465,7 @@ function HighlightVideoSection({
|
|
|
25498
25465
|
// Default simple preview — the <Video> SSOT (MuxPlayer) plays
|
|
25499
25466
|
// MP4 and Mux HLS alike; aspect-video box reserves the height.
|
|
25500
25467
|
/* @__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,
|
|
25468
|
+
/* @__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
25469
|
onDeleteHighlight && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25503
25470
|
"button",
|
|
25504
25471
|
{
|
|
@@ -25525,20 +25492,20 @@ function HighlightConfigSection({
|
|
|
25525
25492
|
disabled = false,
|
|
25526
25493
|
className = ""
|
|
25527
25494
|
}) {
|
|
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
|
-
|
|
25495
|
+
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,
|
|
25496
|
+
_chunkMZLWB5AHcjs.Select,
|
|
25530
25497
|
{
|
|
25531
25498
|
value: targetDurationSeconds.toString(),
|
|
25532
25499
|
onValueChange: (value) => onTargetDurationChange(parseInt(value)),
|
|
25533
25500
|
disabled,
|
|
25534
25501
|
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,
|
|
25502
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { id: f.id, className: "bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, {}) }),
|
|
25503
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { className: "bg-ods-card", children: [
|
|
25504
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "60", children: "1 minute" }),
|
|
25505
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "120", children: "2 minutes" }),
|
|
25506
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "180", children: "3 minutes (Recommended)" }),
|
|
25507
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "240", children: "4 minutes" }),
|
|
25508
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "300", children: "5 minutes" })
|
|
25542
25509
|
] })
|
|
25543
25510
|
]
|
|
25544
25511
|
}
|
|
@@ -25626,7 +25593,7 @@ var AIStatusIndicator = ({
|
|
|
25626
25593
|
}) => {
|
|
25627
25594
|
const config = statusConfig[status];
|
|
25628
25595
|
const displayText = message || config.label;
|
|
25629
|
-
const confidenceLabel = showConfidence && confidence !== void 0 ? `${
|
|
25596
|
+
const confidenceLabel = showConfidence && confidence !== void 0 ? `${_chunkUBPSA3RMcjs.getConfidenceLabel.call(void 0, confidence)} (${confidence}%)` : null;
|
|
25630
25597
|
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
25598
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25632
25599
|
_chunkUNFCRSYIcjs.SparklesIcon,
|
|
@@ -25634,7 +25601,7 @@ var AIStatusIndicator = ({
|
|
|
25634
25601
|
size: 16,
|
|
25635
25602
|
className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
25636
25603
|
status === "loading" && _chunkXFRBEXQNcjs.LIVE_PULSE_CLASS,
|
|
25637
|
-
confidence !== void 0 && status === "success" ?
|
|
25604
|
+
confidence !== void 0 && status === "success" ? _chunkUBPSA3RMcjs.getConfidenceTextClass.call(void 0, confidence) : config.color
|
|
25638
25605
|
)
|
|
25639
25606
|
}
|
|
25640
25607
|
),
|
|
@@ -25643,7 +25610,7 @@ var AIStatusIndicator = ({
|
|
|
25643
25610
|
{
|
|
25644
25611
|
className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
25645
25612
|
"text-h6",
|
|
25646
|
-
confidence !== void 0 && status === "success" ?
|
|
25613
|
+
confidence !== void 0 && status === "success" ? _chunkUBPSA3RMcjs.getConfidenceTextClass.call(void 0, confidence) : config.color
|
|
25647
25614
|
),
|
|
25648
25615
|
children: displayText
|
|
25649
25616
|
}
|
|
@@ -25653,8 +25620,8 @@ var AIStatusIndicator = ({
|
|
|
25653
25620
|
{
|
|
25654
25621
|
className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
25655
25622
|
"rounded-full border px-2 py-0.5 text-h6",
|
|
25656
|
-
|
|
25657
|
-
|
|
25623
|
+
_chunkUBPSA3RMcjs.getConfidenceBorderClass.call(void 0, confidence),
|
|
25624
|
+
_chunkUBPSA3RMcjs.getConfidenceTextClass.call(void 0, confidence)
|
|
25658
25625
|
),
|
|
25659
25626
|
children: confidenceLabel
|
|
25660
25627
|
}
|
|
@@ -26230,7 +26197,7 @@ function ApprovalLevelView({
|
|
|
26230
26197
|
] });
|
|
26231
26198
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk65VVJSQZcjs.cn.call(void 0, READ_ONLY_ROW_CLASS, className), children: [
|
|
26232
26199
|
name,
|
|
26233
|
-
showLabel ? icon : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26200
|
+
showLabel ? icon : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJT2KRE2cjs.TouchFriendlyTooltip, { content: `${current.label}: ${current.hint}`, side: "top", children: icon })
|
|
26234
26201
|
] });
|
|
26235
26202
|
}
|
|
26236
26203
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, EDITABLE_ROW_CLASS, className), children: [
|
|
@@ -26353,7 +26320,7 @@ var PolicyRow = ({ policy, categoryId, editMode, onPermissionChange }) => {
|
|
|
26353
26320
|
] });
|
|
26354
26321
|
};
|
|
26355
26322
|
var CategorySection = ({ category, editMode, isExpanded, bulkLevel, onToggle, onBulkLevelChange, onPolicyPermissionChange }) => {
|
|
26356
|
-
const { innerRef, containerStyle } =
|
|
26323
|
+
const { innerRef, containerStyle } = _chunkEHJE3UWZcjs.useCollapsible.call(void 0, { expanded: isExpanded, durationMs: 300 });
|
|
26357
26324
|
const handleBulkChange = (level) => onBulkLevelChange(category.id, level);
|
|
26358
26325
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
26359
26326
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -26526,8 +26493,8 @@ function PoliciesTable({
|
|
|
26526
26493
|
accessorKey: "name",
|
|
26527
26494
|
header: "Name",
|
|
26528
26495
|
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,
|
|
26496
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: row.original.name }),
|
|
26497
|
+
row.original.description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: row.original.description })
|
|
26531
26498
|
] }),
|
|
26532
26499
|
meta: { width: "flex-1 min-w-0" }
|
|
26533
26500
|
},
|
|
@@ -26559,7 +26526,7 @@ function PoliciesTable({
|
|
|
26559
26526
|
cell: ({ row }) => {
|
|
26560
26527
|
const { status } = row.original;
|
|
26561
26528
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-start gap-1", children: [
|
|
26562
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26529
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { className: "self-start", label: status.label, variant: status.variant }),
|
|
26563
26530
|
status.note && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `text-h6 ${NOTE_TONE_CLASS[status.note.tone]}`, children: status.note.text })
|
|
26564
26531
|
] });
|
|
26565
26532
|
},
|
|
@@ -26581,7 +26548,7 @@ function PoliciesTable({
|
|
|
26581
26548
|
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
26549
|
_chunkTF5D5MNOcjs.Button,
|
|
26583
26550
|
{
|
|
26584
|
-
onClick:
|
|
26551
|
+
onClick: _chunkUBPSA3RMcjs.openInNewTab.call(void 0, row.original.href),
|
|
26585
26552
|
variant: "outline",
|
|
26586
26553
|
size: "icon",
|
|
26587
26554
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
@@ -26682,7 +26649,7 @@ function PolicySummaryCards({ summary, isLoading = false, hasData = true, now })
|
|
|
26682
26649
|
DashboardInfoCard,
|
|
26683
26650
|
{
|
|
26684
26651
|
title: "Updated",
|
|
26685
|
-
value: hasData && summary.lastUpdatedAt ?
|
|
26652
|
+
value: hasData && summary.lastUpdatedAt ? _chunkEHJE3UWZcjs.formatRelativeTimeFrom.call(void 0, summary.lastUpdatedAt, _nullishCoalesce(now, () => ( /* @__PURE__ */ new Date()))) : EMPTY_VALUE,
|
|
26686
26653
|
valueClassName: "!text-h3",
|
|
26687
26654
|
tooltip: "Policy compliance stats are updated hourly. View a policy's devices for real-time status."
|
|
26688
26655
|
}
|
|
@@ -26798,7 +26765,7 @@ function toValidInstant(iso) {
|
|
|
26798
26765
|
function formatLastRead(iso, now = /* @__PURE__ */ new Date()) {
|
|
26799
26766
|
const date = toValidInstant(iso);
|
|
26800
26767
|
if (!date) return TENANT_EMPTY_VALUE;
|
|
26801
|
-
return now.getTime() - date.getTime() < DAY_MS ?
|
|
26768
|
+
return now.getTime() - date.getTime() < DAY_MS ? _chunkEHJE3UWZcjs.formatRelativeTimeFrom.call(void 0, date, now) : _chunk5QP3K2CEcjs.formatDate.call(void 0, date);
|
|
26802
26769
|
}
|
|
26803
26770
|
function usersCountLabel(count) {
|
|
26804
26771
|
if (count == null) return TENANT_EMPTY_VALUE;
|
|
@@ -26809,8 +26776,8 @@ function usersCountLabel(count) {
|
|
|
26809
26776
|
|
|
26810
26777
|
function TenantAccessCell({ accessState, lastReadAt: lastReadAt2, now }) {
|
|
26811
26778
|
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,
|
|
26779
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { ...accessStateTag(accessState), className: "self-start" }),
|
|
26780
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: `Last read: ${formatLastRead(lastReadAt2, now)}` })
|
|
26814
26781
|
] });
|
|
26815
26782
|
}
|
|
26816
26783
|
|
|
@@ -26821,9 +26788,9 @@ function TenantCell({ provider, name, domain }) {
|
|
|
26821
26788
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
26822
26789
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26823
26790
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Logo, { size: 24, role: "img", "aria-label": label, className: "shrink-0" }),
|
|
26824
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26791
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: name })
|
|
26825
26792
|
] }),
|
|
26826
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26793
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(domain, () => ( TENANT_EMPTY_VALUE)) })
|
|
26827
26794
|
] });
|
|
26828
26795
|
}
|
|
26829
26796
|
|
|
@@ -26832,10 +26799,10 @@ function TenantCell({ provider, name, domain }) {
|
|
|
26832
26799
|
function TenantCustomerCell({ name, imageUrl, userCount }) {
|
|
26833
26800
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
26834
26801
|
/* @__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,
|
|
26802
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.SquareAvatar, { src: _nullishCoalesce(imageUrl, () => ( void 0)), alt: name, fallback: name, size: "xs", variant: "square" }),
|
|
26803
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: name })
|
|
26837
26804
|
] }),
|
|
26838
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26805
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: usersCountLabel(userCount) })
|
|
26839
26806
|
] });
|
|
26840
26807
|
}
|
|
26841
26808
|
|
|
@@ -26907,7 +26874,7 @@ function TenantsTableView({
|
|
|
26907
26874
|
/* @__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
26875
|
_chunkTF5D5MNOcjs.Button,
|
|
26909
26876
|
{
|
|
26910
|
-
onClick:
|
|
26877
|
+
onClick: _chunkUBPSA3RMcjs.openInNewTab.call(void 0, getHref(row.original)),
|
|
26911
26878
|
variant: "outline",
|
|
26912
26879
|
size: "icon",
|
|
26913
26880
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
@@ -26988,7 +26955,7 @@ function WaitlistForm({
|
|
|
26988
26955
|
const { toast } = _chunkXVFM6SJAcjs.useToast.call(void 0, );
|
|
26989
26956
|
const { honeypotInputProps, getSignals, resetSignals } = _chunkXVFM6SJAcjs.useHumanitySignals.call(void 0, );
|
|
26990
26957
|
const [smsConsent, setSmsConsent] = _react.useState.call(void 0, false);
|
|
26991
|
-
const isClient =
|
|
26958
|
+
const isClient = _chunkZXFOMNI5cjs.useIsHydrated.call(void 0, );
|
|
26992
26959
|
const [isPhoneInvalid, setIsPhoneInvalid] = _react.useState.call(void 0, false);
|
|
26993
26960
|
const [showConsentError, setShowConsentError] = _react.useState.call(void 0, false);
|
|
26994
26961
|
const rescue = _chunkXVFM6SJAcjs.useFormRescue.call(void 0, {
|
|
@@ -27003,7 +26970,7 @@ function WaitlistForm({
|
|
|
27003
26970
|
_react.useEffect.call(void 0, () => {
|
|
27004
26971
|
rescue.track({ email, phone }, null);
|
|
27005
26972
|
}, [email, phone, rescue]);
|
|
27006
|
-
const isMailDomainGeneric =
|
|
26973
|
+
const isMailDomainGeneric = _chunkUBPSA3RMcjs.hasGenericEmailDomain.call(void 0, email);
|
|
27007
26974
|
const [syncedDefaultEmail, setSyncedDefaultEmail] = _react.useState.call(void 0, defaultEmail);
|
|
27008
26975
|
if (syncedDefaultEmail !== defaultEmail) {
|
|
27009
26976
|
setSyncedDefaultEmail(defaultEmail);
|
|
@@ -27037,7 +27004,7 @@ function WaitlistForm({
|
|
|
27037
27004
|
setShowConsentError(true);
|
|
27038
27005
|
return;
|
|
27039
27006
|
}
|
|
27040
|
-
const finalPhone = phone ?
|
|
27007
|
+
const finalPhone = phone ? _chunkUBPSA3RMcjs.formatPhoneE164.call(void 0, phone, countryCode) : void 0;
|
|
27041
27008
|
try {
|
|
27042
27009
|
await onRegister(email, finalPhone, getSignals(), rescue.submitFields());
|
|
27043
27010
|
rescue.complete();
|
|
@@ -27849,7 +27816,7 @@ function NotificationTile({
|
|
|
27849
27816
|
{
|
|
27850
27817
|
dateTime: createdAtIso,
|
|
27851
27818
|
className: _chunk65VVJSQZcjs.cn.call(void 0, "shrink-0 whitespace-nowrap text-ods-text-secondary text-h6", lockscreen && "self-start"),
|
|
27852
|
-
children: _nullishCoalesce(timeLabel, () => (
|
|
27819
|
+
children: _nullishCoalesce(timeLabel, () => ( _chunkEHJE3UWZcjs.formatTicketRelativeTime.call(void 0, createdAtIso)))
|
|
27853
27820
|
}
|
|
27854
27821
|
) : null,
|
|
27855
27822
|
!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 +28313,13 @@ function getApprovalMeta(notification) {
|
|
|
28346
28313
|
function resolutionToStatus(resolution) {
|
|
28347
28314
|
switch (typeof resolution === "string" ? resolution.toUpperCase() : void 0) {
|
|
28348
28315
|
case "APPROVED":
|
|
28349
|
-
return
|
|
28316
|
+
return _chunk5QP3K2CEcjs.APPROVAL_STATUS.APPROVED;
|
|
28350
28317
|
case "REJECTED":
|
|
28351
|
-
return
|
|
28318
|
+
return _chunk5QP3K2CEcjs.APPROVAL_STATUS.REJECTED;
|
|
28352
28319
|
case "CANCELLED":
|
|
28353
|
-
return
|
|
28320
|
+
return _chunk5QP3K2CEcjs.APPROVAL_STATUS.CANCELLED;
|
|
28354
28321
|
default:
|
|
28355
|
-
return
|
|
28322
|
+
return _chunk5QP3K2CEcjs.APPROVAL_STATUS.PENDING;
|
|
28356
28323
|
}
|
|
28357
28324
|
}
|
|
28358
28325
|
function approvalMetaToBatchData(approval) {
|
|
@@ -28397,7 +28364,7 @@ function ApprovalRequestNotificationTile({
|
|
|
28397
28364
|
const resolvedStatus = resolutionToStatus(_optionalChain([approval, 'optionalAccess', _583 => _583.resolution]));
|
|
28398
28365
|
const status = resolvedStatus !== "pending" ? resolvedStatus : _nullishCoalesce(localStatus, () => ( "pending"));
|
|
28399
28366
|
const batchData = _react.useMemo.call(void 0, () => approval ? approvalMetaToBatchData(approval) : null, [approval]);
|
|
28400
|
-
const { innerRef, containerStyle } =
|
|
28367
|
+
const { innerRef, containerStyle } = _chunkEHJE3UWZcjs.useCollapsible.call(void 0, { expanded });
|
|
28401
28368
|
if (!approval || !batchData) return null;
|
|
28402
28369
|
const tileNotification = {
|
|
28403
28370
|
...notification,
|
|
@@ -28460,7 +28427,7 @@ function ApprovalRequestNotificationTile({
|
|
|
28460
28427
|
}
|
|
28461
28428
|
)
|
|
28462
28429
|
] }) : /* @__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,
|
|
28430
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ApprovalStatusTag, { status }),
|
|
28464
28431
|
approval.resolvedByName ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: [
|
|
28465
28432
|
"by ",
|
|
28466
28433
|
approval.resolvedByName
|
|
@@ -28478,12 +28445,12 @@ function ApprovalRequestNotificationTile({
|
|
|
28478
28445
|
"aria-expanded": expanded,
|
|
28479
28446
|
"aria-label": toggleLabel,
|
|
28480
28447
|
className: APPROVAL_TOGGLE_BUTTON_CLASS,
|
|
28481
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28448
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ExpandChevron, { expanded })
|
|
28482
28449
|
}
|
|
28483
28450
|
)
|
|
28484
28451
|
] }),
|
|
28485
28452
|
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
|
-
|
|
28453
|
+
_chunkEHJE3UWZcjs.ApprovalBatchMessage,
|
|
28487
28454
|
{
|
|
28488
28455
|
data: batchData,
|
|
28489
28456
|
showExecutionStatus: false,
|
|
@@ -28556,7 +28523,7 @@ function renderCustomerOption(option, isSelected) {
|
|
|
28556
28523
|
const { label, imageUrl } = option;
|
|
28557
28524
|
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
28525
|
/* @__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,
|
|
28526
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.SquareAvatar, { src: imageUrl, alt: label, fallback: label, size: "sm", variant: "square" }),
|
|
28560
28527
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", title: label, children: label })
|
|
28561
28528
|
] }),
|
|
28562
28529
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
@@ -28640,7 +28607,7 @@ function TimeTrackerPanel({
|
|
|
28640
28607
|
}));
|
|
28641
28608
|
const selectedCustomer = customerAutocompleteOptions.find((o) => o.value === selectedCustomerId);
|
|
28642
28609
|
const customerStartAdornment = selectedCustomer ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28643
|
-
|
|
28610
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
28644
28611
|
{
|
|
28645
28612
|
src: selectedCustomer.imageUrl,
|
|
28646
28613
|
alt: selectedCustomer.label,
|
|
@@ -28720,7 +28687,7 @@ function TimeTrackerPanel({
|
|
|
28720
28687
|
] }),
|
|
28721
28688
|
/* @__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
28689
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28723
|
-
|
|
28690
|
+
_chunkMZLWB5AHcjs.Autocomplete,
|
|
28724
28691
|
{
|
|
28725
28692
|
value: selectedTicketId,
|
|
28726
28693
|
onChange: onSelectedTicketChange,
|
|
@@ -28736,7 +28703,7 @@ function TimeTrackerPanel({
|
|
|
28736
28703
|
}
|
|
28737
28704
|
),
|
|
28738
28705
|
showCustomer && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28739
|
-
|
|
28706
|
+
_chunkMZLWB5AHcjs.Autocomplete,
|
|
28740
28707
|
{
|
|
28741
28708
|
value: _nullishCoalesce(selectedCustomerId, () => ( null)),
|
|
28742
28709
|
onChange: onSelectedCustomerChange,
|
|
@@ -28819,7 +28786,7 @@ var STATUS_TAG_SKIN = "gap-[var(--spacing-system-xs)] font-mono font-medium uppe
|
|
|
28819
28786
|
function StatusTag({ status }) {
|
|
28820
28787
|
if (status === "tracking") {
|
|
28821
28788
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28822
|
-
|
|
28789
|
+
_chunkHY6BCZH7cjs.Tag,
|
|
28823
28790
|
{
|
|
28824
28791
|
variant: "success",
|
|
28825
28792
|
className: STATUS_TAG_SKIN,
|
|
@@ -28829,9 +28796,9 @@ function StatusTag({ status }) {
|
|
|
28829
28796
|
);
|
|
28830
28797
|
}
|
|
28831
28798
|
if (status === "paused") {
|
|
28832
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28799
|
+
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
28800
|
}
|
|
28834
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28801
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { variant: "grey", className: STATUS_TAG_SKIN, label: "Ready to Track" });
|
|
28835
28802
|
}
|
|
28836
28803
|
function LastEntryRow({ entry, onClick }) {
|
|
28837
28804
|
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 +28994,7 @@ function TimeTrackerHeaderButton({ className, disabled }) {
|
|
|
29027
28994
|
|
|
29028
28995
|
// src/components/features/devices/device-last-online.ts
|
|
29029
28996
|
function formatLastOnline(lastSeen) {
|
|
29030
|
-
return `Last Online: ${lastSeen ?
|
|
28997
|
+
return `Last Online: ${lastSeen ? _chunkEHJE3UWZcjs.formatRelativeTime.call(void 0, lastSeen) : "\u2014"}`;
|
|
29031
28998
|
}
|
|
29032
28999
|
|
|
29033
29000
|
// src/components/features/devices/device-name.ts
|
|
@@ -29071,7 +29038,7 @@ var SELECTION_MODE_OPTIONS = [
|
|
|
29071
29038
|
label: "Select Devices by Criteria",
|
|
29072
29039
|
description: CRITERIA_MODE_DESCRIPTION,
|
|
29073
29040
|
disabled: true,
|
|
29074
|
-
trailing: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29041
|
+
trailing: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { label: "Coming Soon", variant: "grey" })
|
|
29075
29042
|
}
|
|
29076
29043
|
];
|
|
29077
29044
|
var SELECTION_MODE_OPTIONS_ENABLED = [
|
|
@@ -29176,7 +29143,7 @@ function getDeviceStatusConfig(status) {
|
|
|
29176
29143
|
}
|
|
29177
29144
|
}
|
|
29178
29145
|
function getDeviceOperatingSystem(osType) {
|
|
29179
|
-
return
|
|
29146
|
+
return _chunkUBPSA3RMcjs.getOSPlatformId.call(void 0, osType);
|
|
29180
29147
|
}
|
|
29181
29148
|
|
|
29182
29149
|
// src/components/features/devices/device-statuses.ts
|
|
@@ -29352,8 +29319,8 @@ function DevicesFilterToolbar({
|
|
|
29352
29319
|
|
|
29353
29320
|
|
|
29354
29321
|
function formatDateTime(input) {
|
|
29355
|
-
const date =
|
|
29356
|
-
return date === "\u2014" ? date : `${date} ${
|
|
29322
|
+
const date = _chunk5QP3K2CEcjs.formatDate.call(void 0, input);
|
|
29323
|
+
return date === "\u2014" ? date : `${date} ${_chunk5QP3K2CEcjs.formatTime.call(void 0, input)}`;
|
|
29357
29324
|
}
|
|
29358
29325
|
function uniqueById(options) {
|
|
29359
29326
|
const seen = /* @__PURE__ */ new Map();
|
|
@@ -29460,7 +29427,7 @@ function DevicesTableBody({
|
|
|
29460
29427
|
function OrganizationCell({ device }) {
|
|
29461
29428
|
const fullImageUrl = useDeviceImageUrl(device.organizationImageUrl, device.organizationImageHash);
|
|
29462
29429
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
29463
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29430
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.EntityImage, { src: fullImageUrl, alt: device.organization || "Customer", className: "size-12 content-md:size-12" }),
|
|
29464
29431
|
/* @__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
29432
|
] });
|
|
29466
29433
|
}
|
|
@@ -29504,7 +29471,7 @@ function getDeviceTableColumns(deviceFilters, filtersPending) {
|
|
|
29504
29471
|
const device = row.original;
|
|
29505
29472
|
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
29473
|
/* @__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,
|
|
29474
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: getDeviceName(device) }) })
|
|
29508
29475
|
] });
|
|
29509
29476
|
},
|
|
29510
29477
|
meta: { width: "flex-1 content-md:w-1/4" }
|
|
@@ -29517,7 +29484,7 @@ function getDeviceTableColumns(deviceFilters, filtersPending) {
|
|
|
29517
29484
|
const device = row.original;
|
|
29518
29485
|
const statusConfig2 = getDeviceStatusConfig(device.status);
|
|
29519
29486
|
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,
|
|
29487
|
+
/* @__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
29488
|
/* @__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
29489
|
] });
|
|
29523
29490
|
},
|
|
@@ -29675,7 +29642,7 @@ function CustomerCell({ device }) {
|
|
|
29675
29642
|
const fullImageUrl = useDeviceImageUrl(device.organizationImageUrl, device.organizationImageHash);
|
|
29676
29643
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
29677
29644
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29678
|
-
|
|
29645
|
+
_chunkMZLWB5AHcjs.EntityImage,
|
|
29679
29646
|
{
|
|
29680
29647
|
src: fullImageUrl,
|
|
29681
29648
|
alt: device.organization || "Customer",
|
|
@@ -29683,8 +29650,8 @@ function CustomerCell({ device }) {
|
|
|
29683
29650
|
}
|
|
29684
29651
|
),
|
|
29685
29652
|
/* @__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,
|
|
29653
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: device.organization || "" }),
|
|
29654
|
+
device.organizationEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: device.organizationEmail })
|
|
29688
29655
|
] })
|
|
29689
29656
|
] });
|
|
29690
29657
|
}
|
|
@@ -29979,8 +29946,8 @@ function DeviceSelector({
|
|
|
29979
29946
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 items-center gap-3", children: [
|
|
29980
29947
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeviceTypeTile, { type: device.type }),
|
|
29981
29948
|
/* @__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,
|
|
29949
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: getDeviceName(device) }),
|
|
29950
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: formatLastOnline(lastSeen) })
|
|
29984
29951
|
] })
|
|
29985
29952
|
] });
|
|
29986
29953
|
},
|
|
@@ -30015,7 +29982,7 @@ function DeviceSelector({
|
|
|
30015
29982
|
header: "STATUS",
|
|
30016
29983
|
cell: ({ row }) => {
|
|
30017
29984
|
const config = getDeviceStatusConfig(row.original.status);
|
|
30018
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29985
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { label: config.label, variant: config.variant, className: "w-min" });
|
|
30019
29986
|
},
|
|
30020
29987
|
enableSorting: false,
|
|
30021
29988
|
meta: {
|
|
@@ -30772,7 +30739,7 @@ function DevicesPanelView({
|
|
|
30772
30739
|
] })
|
|
30773
30740
|
] });
|
|
30774
30741
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30775
|
-
|
|
30742
|
+
_chunkMZLWB5AHcjs.PageLayout,
|
|
30776
30743
|
{
|
|
30777
30744
|
title,
|
|
30778
30745
|
backButton,
|
|
@@ -30780,7 +30747,7 @@ function DevicesPanelView({
|
|
|
30780
30747
|
actionsVariant: "icon-buttons",
|
|
30781
30748
|
className,
|
|
30782
30749
|
selector: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30783
|
-
|
|
30750
|
+
_chunkZXFOMNI5cjs.TabSelector,
|
|
30784
30751
|
{
|
|
30785
30752
|
value: viewMode,
|
|
30786
30753
|
onValueChange: (value) => _optionalChain([onViewModeChange, 'optionalCall', _659 => _659(value)]),
|
|
@@ -30846,7 +30813,7 @@ var PACKAGE_SEARCH_LABEL = "Software Name";
|
|
|
30846
30813
|
var PACKAGE_SEARCH_PLACEHOLDER = "Search for Software";
|
|
30847
30814
|
function PackageSearchFieldPlaceholder({ error }) {
|
|
30848
30815
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30849
|
-
|
|
30816
|
+
_chunkMZLWB5AHcjs.Autocomplete,
|
|
30850
30817
|
{
|
|
30851
30818
|
label: PACKAGE_SEARCH_LABEL,
|
|
30852
30819
|
labelVariant: "large",
|
|
@@ -30901,16 +30868,16 @@ function SoftwareScheduleFields({
|
|
|
30901
30868
|
] }),
|
|
30902
30869
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
30903
30870
|
/* @__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,
|
|
30871
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.Select, { value: time, onValueChange: onTimeChange, children: [
|
|
30872
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, { placeholder: "Select time" }) }),
|
|
30873
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { children: timeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
30907
30874
|
] })
|
|
30908
30875
|
] }),
|
|
30909
30876
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
30910
30877
|
/* @__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,
|
|
30878
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.Select, { value: timeReference, onValueChange: (value) => onTimeReferenceChange(value), children: [
|
|
30879
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, {}) }),
|
|
30880
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { children: timing.timeReferenceOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
30914
30881
|
] })
|
|
30915
30882
|
] })
|
|
30916
30883
|
]
|
|
@@ -30976,22 +30943,22 @@ function newSoftwareRow(key) {
|
|
|
30976
30943
|
|
|
30977
30944
|
function InfoCell2({ value, label }) {
|
|
30978
30945
|
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,
|
|
30946
|
+
/* @__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, _chunkMZLWB5AHcjs.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
30947
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: label })
|
|
30981
30948
|
] });
|
|
30982
30949
|
}
|
|
30983
30950
|
function SoftwareRowFields({ row, removable, onChange, onRemove, renderPackageSearch }) {
|
|
30984
30951
|
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
30952
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30986
|
-
|
|
30953
|
+
_chunkMZLWB5AHcjs.Select,
|
|
30987
30954
|
{
|
|
30988
30955
|
value: row.packageManager,
|
|
30989
30956
|
onValueChange: (value) => onChange({ ...row, packageManager: value, pkg: null }),
|
|
30990
30957
|
children: [
|
|
30991
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30992
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30958
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { label: "Package Manager", labelVariant: "large", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, {}) }),
|
|
30959
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { children: PACKAGE_MANAGERS.map((manager) => {
|
|
30993
30960
|
const Icon = PACKAGE_MANAGER_ICON[manager];
|
|
30994
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30961
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: manager, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
30995
30962
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { size: 20, className: "shrink-0 text-ods-text-secondary" }),
|
|
30996
30963
|
PACKAGE_MANAGER_LABEL[manager]
|
|
30997
30964
|
] }) }, manager);
|
|
@@ -31089,7 +31056,7 @@ function SoftwareActionForm({
|
|
|
31089
31056
|
}
|
|
31090
31057
|
);
|
|
31091
31058
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
31092
|
-
|
|
31059
|
+
_chunkMZLWB5AHcjs.PageLayout,
|
|
31093
31060
|
{
|
|
31094
31061
|
title: copy.formTitle,
|
|
31095
31062
|
backButton: onBack ? { label: "Back", onClick: onBack } : void 0,
|
|
@@ -31170,7 +31137,7 @@ function LogDrawer({
|
|
|
31170
31137
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, AppLayoutDrawerHeader, { children: [
|
|
31171
31138
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AppLayoutDrawerTitle, { children: "Log Details" }),
|
|
31172
31139
|
(statusTag || timestamp) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
31173
|
-
statusTag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31140
|
+
statusTag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { label: statusTag.label, variant: statusTag.variant }),
|
|
31174
31141
|
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h6", children: timestamp })
|
|
31175
31142
|
] })
|
|
31176
31143
|
] }),
|
|
@@ -31178,7 +31145,7 @@ function LogDrawer({
|
|
|
31178
31145
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-h-0 flex-1 space-y-4 overflow-y-auto", children: [
|
|
31179
31146
|
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
31147
|
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,
|
|
31148
|
+
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, _chunkMZLWB5AHcjs.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
31149
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: field.label })
|
|
31183
31150
|
] }, typeof field.label === "string" ? field.label : "")) }),
|
|
31184
31151
|
children
|
|
@@ -31226,7 +31193,7 @@ function LogsPageView({
|
|
|
31226
31193
|
],
|
|
31227
31194
|
[onRefresh]
|
|
31228
31195
|
);
|
|
31229
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
31196
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.PageLayout, { title: "Logs", actions, showHeader, className, children: [
|
|
31230
31197
|
!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
31198
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31232
31199
|
_chunkYXDHVHB2cjs.Input,
|
|
@@ -31314,11 +31281,11 @@ var ToolBadge = ({
|
|
|
31314
31281
|
iconClassName
|
|
31315
31282
|
}) => {
|
|
31316
31283
|
const loading = _chunkXFRBEXQNcjs.useLoadingScope.call(void 0, );
|
|
31317
|
-
const text = _nullishCoalesce(label, () => ( (toolType ?
|
|
31284
|
+
const text = _nullishCoalesce(label, () => ( (toolType ? _chunkUBPSA3RMcjs.getToolLabel.call(void 0, toolType) : "")));
|
|
31318
31285
|
const mark = _nullishCoalesce(icon, () => ( (toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk57B5RUYDcjs.ToolIcon, { toolType, className: iconClassName, size: 16 }) : null)));
|
|
31319
31286
|
if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ToolBadgeSkeleton, { variant, icon: !!mark, className });
|
|
31320
31287
|
const linked = (node, linkClassName) => href && targetPlatform ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31321
|
-
|
|
31288
|
+
_chunkZXFOMNI5cjs.NavLinkAnchorViaRuntime,
|
|
31322
31289
|
{
|
|
31323
31290
|
href,
|
|
31324
31291
|
targetPlatform,
|
|
@@ -31401,8 +31368,8 @@ function LogsTableView({
|
|
|
31401
31368
|
accessorKey: "logId",
|
|
31402
31369
|
header: logIdHeader ? () => logIdHeader : "Log ID",
|
|
31403
31370
|
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,
|
|
31371
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: row.original.timestamp }),
|
|
31372
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: row.original.logId })
|
|
31406
31373
|
] }),
|
|
31407
31374
|
enableSorting: false,
|
|
31408
31375
|
meta: { width: LOG_COLUMN_WIDTHS.logId, alwaysShowHeader: true }
|
|
@@ -31410,7 +31377,7 @@ function LogsTableView({
|
|
|
31410
31377
|
{
|
|
31411
31378
|
accessorKey: "status",
|
|
31412
31379
|
header: "Status",
|
|
31413
|
-
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31380
|
+
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
31381
|
enableSorting: false,
|
|
31415
31382
|
filterFn: multiSelect,
|
|
31416
31383
|
meta: {
|
|
@@ -31430,7 +31397,7 @@ function LogsTableView({
|
|
|
31430
31397
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31431
31398
|
ToolBadge,
|
|
31432
31399
|
{
|
|
31433
|
-
toolType:
|
|
31400
|
+
toolType: _chunkUBPSA3RMcjs.normalizeToolTypeWithFallback.call(void 0, row.original.source.toolType),
|
|
31434
31401
|
iconClassName: "h-4 w-4 content-md:h-6 content-md:w-6"
|
|
31435
31402
|
}
|
|
31436
31403
|
),
|
|
@@ -31442,7 +31409,7 @@ function LogsTableView({
|
|
|
31442
31409
|
filter: {
|
|
31443
31410
|
options: _nullishCoalesce(_optionalChain([facets, 'optionalAccess', _667 => _667.toolTypes, 'access', _668 => _668.map, 'call', _669 => _669((toolType) => ({
|
|
31444
31411
|
id: toolType,
|
|
31445
|
-
label:
|
|
31412
|
+
label: _chunkUBPSA3RMcjs.toToolLabel.call(void 0, toolType),
|
|
31446
31413
|
value: toolType
|
|
31447
31414
|
}))]), () => ( []))
|
|
31448
31415
|
}
|
|
@@ -31454,8 +31421,8 @@ function LogsTableView({
|
|
|
31454
31421
|
cell: ({ row }) => {
|
|
31455
31422
|
const { deviceName, organization } = logSourceLabels(row.original.device);
|
|
31456
31423
|
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,
|
|
31424
|
+
deviceName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: deviceName }),
|
|
31425
|
+
organization && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: organization })
|
|
31459
31426
|
] });
|
|
31460
31427
|
},
|
|
31461
31428
|
enableSorting: false,
|
|
@@ -31469,7 +31436,7 @@ function LogsTableView({
|
|
|
31469
31436
|
{
|
|
31470
31437
|
accessorKey: "description",
|
|
31471
31438
|
header: "Log Details",
|
|
31472
|
-
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31439
|
+
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { lines: 3, className: "text-ods-text-secondary text-h6", children: row.original.description.title }),
|
|
31473
31440
|
enableSorting: false,
|
|
31474
31441
|
meta: { width: LOG_COLUMN_WIDTHS.description, hideAt: "lg" }
|
|
31475
31442
|
},
|
|
@@ -31500,7 +31467,7 @@ function LogsTableView({
|
|
|
31500
31467
|
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
31468
|
_chunkTF5D5MNOcjs.Button,
|
|
31502
31469
|
{
|
|
31503
|
-
onClick: getLogHref ?
|
|
31470
|
+
onClick: getLogHref ? _chunkUBPSA3RMcjs.openInNewTab.call(void 0, getLogHref(row.original)) : void 0,
|
|
31504
31471
|
variant: "outline",
|
|
31505
31472
|
size: "icon",
|
|
31506
31473
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
@@ -31721,29 +31688,29 @@ function scriptExecutionStatus(status) {
|
|
|
31721
31688
|
|
|
31722
31689
|
function ExecutionSourceBadge({ source, className }) {
|
|
31723
31690
|
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,
|
|
31691
|
+
if (source === "SCHEDULED") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { ...tagProps, label: "Scheduled" });
|
|
31725
31692
|
if (source === "AI_ASSISTANT") {
|
|
31726
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31693
|
+
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
31694
|
}
|
|
31728
31695
|
return null;
|
|
31729
31696
|
}
|
|
31730
31697
|
function ExecutionTimestampCell({ timestamp, executionId }) {
|
|
31731
31698
|
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,
|
|
31699
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: timestamp }),
|
|
31700
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: executionId })
|
|
31734
31701
|
] });
|
|
31735
31702
|
}
|
|
31736
31703
|
function ExecutionStatusCell({ status }) {
|
|
31737
31704
|
const presentation = scriptExecutionStatus(status);
|
|
31738
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31705
|
+
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
31706
|
}
|
|
31740
31707
|
function ExecutionDeviceCell({ name, organization }) {
|
|
31741
31708
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31742
31709
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-1", children: [
|
|
31743
31710
|
/* @__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,
|
|
31711
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: name }) : name })
|
|
31745
31712
|
] }),
|
|
31746
|
-
organization && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31713
|
+
organization && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: organization })
|
|
31747
31714
|
] });
|
|
31748
31715
|
}
|
|
31749
31716
|
function ExecutionInitiatorCell({
|
|
@@ -31756,15 +31723,15 @@ function ExecutionInitiatorCell({
|
|
|
31756
31723
|
avatar,
|
|
31757
31724
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
31758
31725
|
/* @__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,
|
|
31726
|
+
typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: name }) : name,
|
|
31760
31727
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExecutionSourceBadge, { source })
|
|
31761
31728
|
] }),
|
|
31762
|
-
scriptName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31729
|
+
scriptName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: scriptName })
|
|
31763
31730
|
] })
|
|
31764
31731
|
] });
|
|
31765
31732
|
}
|
|
31766
31733
|
function ExecutionResultCell({ result, empty = null }) {
|
|
31767
|
-
return result ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31734
|
+
return result ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { lines: 2, children: result }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: empty });
|
|
31768
31735
|
}
|
|
31769
31736
|
function ScriptExecutionResult({
|
|
31770
31737
|
result,
|
|
@@ -31782,14 +31749,14 @@ function ScriptExecutionResult({
|
|
|
31782
31749
|
|
|
31783
31750
|
function ScriptNameCell({ name, description }) {
|
|
31784
31751
|
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,
|
|
31752
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: name }),
|
|
31753
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: description })
|
|
31787
31754
|
] });
|
|
31788
31755
|
}
|
|
31789
31756
|
function ScheduleDateTimeCell({ date, time }) {
|
|
31790
31757
|
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,
|
|
31758
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: date }),
|
|
31759
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: time })
|
|
31793
31760
|
] });
|
|
31794
31761
|
}
|
|
31795
31762
|
|
|
@@ -31875,7 +31842,7 @@ function OpenInNewTabCell({ href }) {
|
|
|
31875
31842
|
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
31843
|
_chunkTF5D5MNOcjs.Button,
|
|
31877
31844
|
{
|
|
31878
|
-
onClick:
|
|
31845
|
+
onClick: _chunkUBPSA3RMcjs.openInNewTab.call(void 0, href),
|
|
31879
31846
|
variant: "outline",
|
|
31880
31847
|
size: "icon",
|
|
31881
31848
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
@@ -31908,7 +31875,7 @@ function ScriptExecutionsTable({
|
|
|
31908
31875
|
ExecutionInitiatorCell,
|
|
31909
31876
|
{
|
|
31910
31877
|
avatar: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31911
|
-
|
|
31878
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
31912
31879
|
{
|
|
31913
31880
|
variant: "round",
|
|
31914
31881
|
size: "md",
|
|
@@ -31988,7 +31955,7 @@ function ScriptSchedulesTable({
|
|
|
31988
31955
|
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
31956
|
cell(
|
|
31990
31957
|
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,
|
|
31958
|
+
(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, _chunkMZLWB5AHcjs.TruncateText, { tone: "secondary", children: row.trigger }) : null
|
|
31992
31959
|
),
|
|
31993
31960
|
cell(SCHEDULE_COLUMNS.repeat, (row) => row.repeat ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: VALUE_CLASS, children: row.repeat }) : null),
|
|
31994
31961
|
cell(SCHEDULE_COLUMNS.deviceCount, (row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: VALUE_CLASS, children: row.deviceCount }))
|
|
@@ -32024,9 +31991,9 @@ function ScriptSchedulesTable({
|
|
|
32024
31991
|
|
|
32025
31992
|
// src/components/features/scripts/shell-types.ts
|
|
32026
31993
|
var SCRIPT_SHELL_TYPES = [
|
|
32027
|
-
{ id:
|
|
32028
|
-
{ id:
|
|
32029
|
-
{ id:
|
|
31994
|
+
{ id: _chunkUBPSA3RMcjs.ShellTypeValues.POWERSHELL, label: "PowerShell", value: "powershell", icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon },
|
|
31995
|
+
{ id: _chunkUBPSA3RMcjs.ShellTypeValues.CMD, label: "CMD", value: "cmd", icon: _chunkNIVJEJSGcjs.TerminalSquareIcon },
|
|
31996
|
+
{ id: _chunkUBPSA3RMcjs.ShellTypeValues.BASH, label: "Bash", value: "bash", icon: _chunkTRUW6DDAcjs.TerminalIcon }
|
|
32030
31997
|
];
|
|
32031
31998
|
function scriptShellType(value) {
|
|
32032
31999
|
return SCRIPT_SHELL_TYPES.find((shell) => shell.value === value);
|
|
@@ -32077,7 +32044,7 @@ function ScriptsTable({
|
|
|
32077
32044
|
SCRIPT_COLUMNS.authorId,
|
|
32078
32045
|
(row) => row.author ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
32079
32046
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32080
|
-
|
|
32047
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
32081
32048
|
{
|
|
32082
32049
|
variant: "round",
|
|
32083
32050
|
size: "sm",
|
|
@@ -32087,7 +32054,7 @@ function ScriptsTable({
|
|
|
32087
32054
|
initialsClassName: "text-ods-text-secondary"
|
|
32088
32055
|
}
|
|
32089
32056
|
),
|
|
32090
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32057
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: row.author.name }) })
|
|
32091
32058
|
] }) : null
|
|
32092
32059
|
)
|
|
32093
32060
|
];
|
|
@@ -32208,7 +32175,7 @@ function slotValue(minutesOfDay) {
|
|
|
32208
32175
|
return `${String(hours).padStart(2, "0")}:${String(minutes).padStart(2, "0")}`;
|
|
32209
32176
|
}
|
|
32210
32177
|
function slotLabel(minutesOfDay) {
|
|
32211
|
-
return
|
|
32178
|
+
return _chunk5QP3K2CEcjs.formatTime.call(void 0, new Date(1970, 0, 1, Math.floor(minutesOfDay / 60), minutesOfDay % 60));
|
|
32212
32179
|
}
|
|
32213
32180
|
function getTimeSlotOptions(forDate, timeReference) {
|
|
32214
32181
|
const base = slotBaseMinutes(timeReference);
|
|
@@ -32429,9 +32396,9 @@ function ReconnectWindowFields({
|
|
|
32429
32396
|
invalid
|
|
32430
32397
|
}
|
|
32431
32398
|
),
|
|
32432
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
32433
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32434
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32399
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.Select, { value: unit, onValueChange: (next) => onUnitChange(next), disabled, children: [
|
|
32400
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { className: controlWidth, "aria-label": "Stop retry after unit", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, {}) }),
|
|
32401
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { children: DURATION_UNIT_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
32435
32402
|
] })
|
|
32436
32403
|
] });
|
|
32437
32404
|
}
|
|
@@ -32499,7 +32466,7 @@ function ScheduleOfflineFields({ showErrors, disabled = false }) {
|
|
|
32499
32466
|
options
|
|
32500
32467
|
}
|
|
32501
32468
|
),
|
|
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,
|
|
32469
|
+
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, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", className: "text-ods-error", children: intervalError }) })
|
|
32503
32470
|
]
|
|
32504
32471
|
}
|
|
32505
32472
|
) }) })
|
|
@@ -32608,8 +32575,8 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
|
|
|
32608
32575
|
// Dragging towards the edge of the screen — or past it — scrolls whatever
|
|
32609
32576
|
// actually scrolls there: the page, the layout's `<main>`, or the list
|
|
32610
32577
|
// itself when it has its own overflow.
|
|
32611
|
-
|
|
32612
|
-
|
|
32578
|
+
_chunkLJT2KRE2cjs.autoScrollAncestors.call(void 0, list),
|
|
32579
|
+
_chunkLJT2KRE2cjs.autoScrollBothWays.call(void 0, list),
|
|
32613
32580
|
// One target for the whole list: which slot a drop lands in is answered by
|
|
32614
32581
|
// geometry, so this only has to say "inside the list, or outside it".
|
|
32615
32582
|
_adapter.dropTargetForElements.call(void 0, {
|
|
@@ -32906,7 +32873,7 @@ function useSortableItem() {
|
|
|
32906
32873
|
return _combine.combine.call(void 0,
|
|
32907
32874
|
// The drag has to start as a "move", or its first frame is drawn with the
|
|
32908
32875
|
// copy cursor — see `drag-effect.ts`.
|
|
32909
|
-
|
|
32876
|
+
_chunkLJT2KRE2cjs.holdMoveDragEffect.call(void 0, item),
|
|
32910
32877
|
_adapter.draggable.call(void 0, {
|
|
32911
32878
|
element: item,
|
|
32912
32879
|
dragHandle: handle,
|
|
@@ -33330,24 +33297,24 @@ function ScheduleTimingFields({
|
|
|
33330
33297
|
// `''` reads as "no selection" to Radix, so the placeholder shows
|
|
33331
33298
|
// until a slot is picked — a date at midnight no longer
|
|
33332
33299
|
// masquerades as a chosen 12:00 AM.
|
|
33333
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33300
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.Select, { value: field.value, onValueChange: field.onChange, disabled: fieldsDisabled, children: [
|
|
33334
33301
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33335
|
-
|
|
33302
|
+
_chunkMZLWB5AHcjs.SelectTrigger,
|
|
33336
33303
|
{
|
|
33337
33304
|
className: "w-full",
|
|
33338
33305
|
error: _nullishCoalesce(pastTimeError, () => ( (showErrors ? _optionalChain([fieldState, 'access', _721 => _721.error, 'optionalAccess', _722 => _722.message]) : void 0))),
|
|
33339
33306
|
invalid: !!pastTimeError || showErrors && !!fieldState.error,
|
|
33340
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33307
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, { placeholder: "Select time" })
|
|
33341
33308
|
}
|
|
33342
33309
|
),
|
|
33343
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33310
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { children: timeSlots.length === 0 ? (
|
|
33344
33311
|
// Deliberately NOT a `SelectItem` — there is nothing here
|
|
33345
33312
|
// to select, and a selectable row would put a bogus value
|
|
33346
33313
|
// in the form. It replaces a popup that opened blank; the
|
|
33347
33314
|
// Date field carries the same sentence for whoever never
|
|
33348
33315
|
// opens this one.
|
|
33349
33316
|
/* @__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,
|
|
33317
|
+
) : timeSlots.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
33351
33318
|
] })
|
|
33352
33319
|
)
|
|
33353
33320
|
}
|
|
@@ -33361,14 +33328,14 @@ function ScheduleTimingFields({
|
|
|
33361
33328
|
name: "timeReference",
|
|
33362
33329
|
control,
|
|
33363
33330
|
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33364
|
-
|
|
33331
|
+
_chunkMZLWB5AHcjs.Select,
|
|
33365
33332
|
{
|
|
33366
33333
|
value: field.value,
|
|
33367
33334
|
onValueChange: (next) => handleTimeReferenceChange(field.onChange, next),
|
|
33368
33335
|
disabled: fieldsDisabled,
|
|
33369
33336
|
children: [
|
|
33370
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33371
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33337
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { className: "w-full", "aria-label": "Timezone", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, {}) }),
|
|
33338
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { children: SCHEDULE_TIME_REFERENCE_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
33372
33339
|
]
|
|
33373
33340
|
}
|
|
33374
33341
|
)
|
|
@@ -33428,7 +33395,7 @@ function ScheduleTimingFields({
|
|
|
33428
33395
|
name: "repeatUnit",
|
|
33429
33396
|
control,
|
|
33430
33397
|
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33431
|
-
|
|
33398
|
+
_chunkMZLWB5AHcjs.Select,
|
|
33432
33399
|
{
|
|
33433
33400
|
value: field.value,
|
|
33434
33401
|
onValueChange: (next) => {
|
|
@@ -33439,8 +33406,8 @@ function ScheduleTimingFields({
|
|
|
33439
33406
|
},
|
|
33440
33407
|
disabled: fieldsDisabled || !repeatEnabled,
|
|
33441
33408
|
children: [
|
|
33442
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33443
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33409
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, {}) }),
|
|
33410
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { children: DURATION_UNIT_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
33444
33411
|
]
|
|
33445
33412
|
}
|
|
33446
33413
|
)
|
|
@@ -33459,7 +33426,7 @@ function ScheduleFormFields({
|
|
|
33459
33426
|
disabled = false,
|
|
33460
33427
|
renderScriptSearch,
|
|
33461
33428
|
timeReferenceGate = "off",
|
|
33462
|
-
platforms =
|
|
33429
|
+
platforms = _chunkUBPSA3RMcjs.OS_PLATFORMS,
|
|
33463
33430
|
comingSoonPlatforms = [],
|
|
33464
33431
|
getTimeSlots,
|
|
33465
33432
|
nameLayout = "stacked",
|
|
@@ -33529,7 +33496,7 @@ function ScheduleFormFields({
|
|
|
33529
33496
|
platform.id
|
|
33530
33497
|
);
|
|
33531
33498
|
}) }),
|
|
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,
|
|
33499
|
+
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, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", className: "text-ods-error", children: _nullishCoalesce(formState.errors.supportedPlatforms.message, () => ( "")) }) })
|
|
33533
33500
|
]
|
|
33534
33501
|
}
|
|
33535
33502
|
);
|
|
@@ -33605,7 +33572,7 @@ function ScheduleFormFields({
|
|
|
33605
33572
|
// src/components/features/scripts/schedule-form/schedule-script-search-field.tsx
|
|
33606
33573
|
|
|
33607
33574
|
function ScriptPlatformIcons({ platforms }) {
|
|
33608
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex shrink-0 items-center gap-0.5", children:
|
|
33575
|
+
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
33576
|
}
|
|
33610
33577
|
function ScheduleScriptSearchField({
|
|
33611
33578
|
scriptId,
|
|
@@ -33631,7 +33598,7 @@ function ScheduleScriptSearchField({
|
|
|
33631
33598
|
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
33599
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFL2RMEDXcjs.Label, { className: "text-h4", children: "Select Script" }),
|
|
33633
33600
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33634
|
-
|
|
33601
|
+
_chunkMZLWB5AHcjs.Autocomplete,
|
|
33635
33602
|
{
|
|
33636
33603
|
options,
|
|
33637
33604
|
value: scriptId || null,
|
|
@@ -33646,7 +33613,7 @@ function ScheduleScriptSearchField({
|
|
|
33646
33613
|
error,
|
|
33647
33614
|
invalid,
|
|
33648
33615
|
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,
|
|
33616
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { className: isSelected ? "text-ods-accent" : void 0, children: option.label }) }),
|
|
33650
33617
|
/* @__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
33618
|
] })
|
|
33652
33619
|
}
|
|
@@ -33678,7 +33645,7 @@ function getKnowledgeBaseOpenColumn(getHref) {
|
|
|
33678
33645
|
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
33646
|
_chunkTF5D5MNOcjs.Button,
|
|
33680
33647
|
{
|
|
33681
|
-
onClick:
|
|
33648
|
+
onClick: _chunkUBPSA3RMcjs.openInNewTab.call(void 0, getHref(row.original)),
|
|
33682
33649
|
variant: "outline",
|
|
33683
33650
|
size: "icon",
|
|
33684
33651
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
@@ -33704,9 +33671,9 @@ function getKnowledgeBaseColumns(mode) {
|
|
|
33704
33671
|
/* @__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
33672
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
33706
33673
|
/* @__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,
|
|
33674
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: item.name }) }),
|
|
33708
33675
|
tagStatus && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33709
|
-
|
|
33676
|
+
_chunkHY6BCZH7cjs.Tag,
|
|
33710
33677
|
{
|
|
33711
33678
|
variant: KNOWLEDGE_BASE_STATUS_VARIANT[tagStatus],
|
|
33712
33679
|
label: tagStatus,
|
|
@@ -33714,7 +33681,7 @@ function getKnowledgeBaseColumns(mode) {
|
|
|
33714
33681
|
}
|
|
33715
33682
|
)
|
|
33716
33683
|
] }),
|
|
33717
|
-
item.type === "ARTICLE" && item.summary && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33684
|
+
item.type === "ARTICLE" && item.summary && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: item.summary })
|
|
33718
33685
|
] })
|
|
33719
33686
|
] });
|
|
33720
33687
|
},
|
|
@@ -33729,8 +33696,8 @@ function getKnowledgeBaseColumns(mode) {
|
|
|
33729
33696
|
const ts = mode === "archive" ? _nullishCoalesce(row.original.updatedAt, () => ( row.original.createdAt)) : row.original.createdAt;
|
|
33730
33697
|
if (!ts) return null;
|
|
33731
33698
|
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:
|
|
33699
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-primary text-h4", children: _chunk5QP3K2CEcjs.formatDate.call(void 0, ts) }),
|
|
33700
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-heading-5 text-ods-text-secondary", children: _chunk5QP3K2CEcjs.formatTime.call(void 0, ts) })
|
|
33734
33701
|
] });
|
|
33735
33702
|
},
|
|
33736
33703
|
enableSorting: false,
|
|
@@ -33794,7 +33761,7 @@ function KnowledgeBaseArticleView({
|
|
|
33794
33761
|
className = "px-[var(--spacing-system-l)] pb-[var(--spacing-system-l)]"
|
|
33795
33762
|
}) {
|
|
33796
33763
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33797
|
-
|
|
33764
|
+
_chunkMZLWB5AHcjs.PageLayout,
|
|
33798
33765
|
{
|
|
33799
33766
|
title,
|
|
33800
33767
|
backButton: onBack ? { label: "Back", onClick: onBack } : void 0,
|
|
@@ -33803,11 +33770,11 @@ function KnowledgeBaseArticleView({
|
|
|
33803
33770
|
menuActions,
|
|
33804
33771
|
className,
|
|
33805
33772
|
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,
|
|
33773
|
+
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)) }),
|
|
33774
|
+
/* @__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
33775
|
/* @__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
|
-
|
|
33776
|
+
author.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJT2KRE2cjs.DeletedUserAvatar, { size: "md" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33777
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
33811
33778
|
{
|
|
33812
33779
|
src: author.imageUrl,
|
|
33813
33780
|
fallback: _nullishCoalesce(author.name, () => ( "A")),
|
|
@@ -33817,12 +33784,12 @@ function KnowledgeBaseArticleView({
|
|
|
33817
33784
|
}
|
|
33818
33785
|
),
|
|
33819
33786
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
33820
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33787
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { className: author.deleted ? "text-ods-error" : void 0, children: _nullishCoalesce(author.name, () => ( "Unknown")) }),
|
|
33821
33788
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Author" })
|
|
33822
33789
|
] })
|
|
33823
33790
|
] }),
|
|
33824
33791
|
/* @__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,
|
|
33792
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: updatedLabel }),
|
|
33826
33793
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Updated" })
|
|
33827
33794
|
] }),
|
|
33828
33795
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -33833,7 +33800,7 @@ function KnowledgeBaseArticleView({
|
|
|
33833
33800
|
}
|
|
33834
33801
|
),
|
|
33835
33802
|
/* @__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,
|
|
33803
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { variant: KNOWLEDGE_BASE_STATUS_VARIANT[status], label: status }),
|
|
33837
33804
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Status" })
|
|
33838
33805
|
] })
|
|
33839
33806
|
] }) }),
|
|
@@ -33968,7 +33935,7 @@ function ConversationCard({
|
|
|
33968
33935
|
style: tint,
|
|
33969
33936
|
onClick: selection && ((event) => {
|
|
33970
33937
|
if (event.button !== 0 || _optionalChain([window, 'access', _733 => _733.getSelection, 'call', _734 => _734(), 'optionalAccess', _735 => _735.toString, 'call', _736 => _736()])) return;
|
|
33971
|
-
if (!
|
|
33938
|
+
if (!_chunkUBPSA3RMcjs.isOwnClick.call(void 0, event.target, event.currentTarget, { controls: true })) return;
|
|
33972
33939
|
selection.onToggle();
|
|
33973
33940
|
}),
|
|
33974
33941
|
children: [
|
|
@@ -33991,7 +33958,7 @@ function ConversationCard({
|
|
|
33991
33958
|
children: selection.pressed ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX4UZ62MYcjs.PlusIcon, {})
|
|
33992
33959
|
}
|
|
33993
33960
|
),
|
|
33994
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33961
|
+
/* @__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
33962
|
"p",
|
|
33996
33963
|
{
|
|
33997
33964
|
id: requestId,
|
|
@@ -34010,7 +33977,7 @@ function ConversationCard({
|
|
|
34010
33977
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: CONTEXT_TEXT_CLASS, style: partLinesStyle(_optionalChain([lines, 'optionalAccess', _737 => _737.context])), children: context.text })
|
|
34011
33978
|
] }),
|
|
34012
33979
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34013
|
-
|
|
33980
|
+
_chunkUBPSA3RMcjs.ChatTurn,
|
|
34014
33981
|
{
|
|
34015
33982
|
avatar: responder.avatar,
|
|
34016
33983
|
name: responder.name,
|
|
@@ -34026,17 +33993,17 @@ function ConversationCard({
|
|
|
34026
33993
|
),
|
|
34027
33994
|
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
33995
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: footerLabel }),
|
|
34029
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33996
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { as: "span", label: footerValue, variant: footerTone === "attention" ? "warning" : "badge" })
|
|
34030
33997
|
] })
|
|
34031
33998
|
]
|
|
34032
33999
|
}
|
|
34033
34000
|
);
|
|
34034
34001
|
}
|
|
34035
34002
|
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,
|
|
34003
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkUBPSA3RMcjs.TURN_ROW_CLASS, children: [
|
|
34004
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.SquareAvatarSkeleton, { sizePx: avatarPx }),
|
|
34005
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkUBPSA3RMcjs.TURN_BODY_CLASS, children: [
|
|
34006
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUBPSA3RMcjs.ChatTurnNameSkeleton, { meta, time: true }),
|
|
34040
34007
|
children
|
|
34041
34008
|
] })
|
|
34042
34009
|
] });
|
|
@@ -34073,7 +34040,7 @@ function ConversationCardSkeleton({
|
|
|
34073
34040
|
] }) }) }),
|
|
34074
34041
|
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
34042
|
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,
|
|
34043
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { as: "span", label: "\xA0", variant: "badge", className: "invisible" })
|
|
34077
34044
|
] })
|
|
34078
34045
|
] });
|
|
34079
34046
|
}
|
|
@@ -34098,7 +34065,7 @@ function Highlights({ items, className }) {
|
|
|
34098
34065
|
if (items.length === 0) return null;
|
|
34099
34066
|
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
34067
|
/* @__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,
|
|
34068
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", triggerClassName: "flex-1", children: text })
|
|
34102
34069
|
] }, text)) });
|
|
34103
34070
|
}
|
|
34104
34071
|
function Example({
|
|
@@ -34134,7 +34101,7 @@ function Example({
|
|
|
34134
34101
|
mark(_nullishCoalesce(_optionalChain([requester, 'optionalAccess', _741 => _741.mark]), () => ( requesterMark))),
|
|
34135
34102
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
34136
34103
|
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,
|
|
34104
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { lines: 2, variant: "h4", className: "min-h-[2lh]", children: `\u201C${example.request}\u201D` })
|
|
34138
34105
|
] })
|
|
34139
34106
|
] }),
|
|
34140
34107
|
/* @__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 +34110,7 @@ function Example({
|
|
|
34143
34110
|
who(_nullishCoalesce(_optionalChain([responder, 'optionalAccess', _745 => _745.name]), () => ( labels.responder)), _nullishCoalesce(_optionalChain([responder, 'optionalAccess', _746 => _746.note]), () => ( labels.responderNote))),
|
|
34144
34111
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-start gap-2", children: [
|
|
34145
34112
|
/* @__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,
|
|
34113
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { lines: 2, variant: "h6", tone: "secondary", className: "min-h-[2lh]", triggerClassName: "flex-1", children: example.outcome })
|
|
34147
34114
|
] })
|
|
34148
34115
|
] })
|
|
34149
34116
|
] })
|
|
@@ -34153,7 +34120,7 @@ function Example({
|
|
|
34153
34120
|
}
|
|
34154
34121
|
function ExampleSkeleton({ className }) {
|
|
34155
34122
|
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,
|
|
34123
|
+
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
34124
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
34158
34125
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "h6", className: "w-28" }),
|
|
34159
34126
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-h-[2lh] text-h4", children: [
|
|
@@ -34292,16 +34259,16 @@ function CapabilityExplorer({
|
|
|
34292
34259
|
),
|
|
34293
34260
|
children: [
|
|
34294
34261
|
/* @__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,
|
|
34262
|
+
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
34263
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
34297
34264
|
/* @__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,
|
|
34265
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { as: "span", variant: "h4", triggerClassName: "flex-1", children: item.title }),
|
|
34299
34266
|
item.badge
|
|
34300
34267
|
] }),
|
|
34301
|
-
item.caption && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34268
|
+
item.caption && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: item.caption })
|
|
34302
34269
|
] })
|
|
34303
34270
|
] }),
|
|
34304
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34271
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { lines: 3, variant: "h6", tone: "secondary", className: "min-h-[3lh]", children: item.intro }),
|
|
34305
34272
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0 overflow-hidden rounded-lg border border-ods-border", children: renderScreen(item, { compact: true }) }),
|
|
34306
34273
|
item.example && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34307
34274
|
Example,
|
|
@@ -34373,7 +34340,7 @@ function CapabilityExplorer({
|
|
|
34373
34340
|
"span",
|
|
34374
34341
|
{
|
|
34375
34342
|
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,
|
|
34343
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.EntityIcon, { icon: { name: item.iconName }, size: 18 })
|
|
34377
34344
|
}
|
|
34378
34345
|
),
|
|
34379
34346
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "min-w-0 flex-1", children: [
|
|
@@ -34426,8 +34393,8 @@ function CapabilityExplorer({
|
|
|
34426
34393
|
),
|
|
34427
34394
|
children: [
|
|
34428
34395
|
/* @__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,
|
|
34396
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { lines: 2, variant: "h2", className: "mb-2", children: active.title }),
|
|
34397
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { lines: 3, variant: "h4", tone: "secondary", className: "min-h-[3lh]", children: active.intro }),
|
|
34431
34398
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Highlights, { items: _nullishCoalesce(active.highlights, () => ( [])), className: "mt-auto" })
|
|
34432
34399
|
] }),
|
|
34433
34400
|
active.example && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|