@flamingo-stack/openframe-frontend-core 0.0.801 → 0.0.803
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-7MV23NNT.cjs → chunk-2X3N6MSR.cjs} +88 -0
- package/dist/{chunk-XYPNYTCV.cjs → chunk-6JVNUGN3.cjs} +3 -3
- package/dist/{chunk-3W2PBWD5.cjs → chunk-CACULEQS.cjs} +4 -4
- package/dist/{chunk-Z66FOMSA.cjs → chunk-H4T3YHYH.cjs} +646 -643
- package/dist/{chunk-SHOE6ATQ.cjs → chunk-HEMZOHNB.cjs} +13 -13
- package/dist/{chunk-QAUQYQWT.cjs → chunk-HVWMPUXK.cjs} +6 -6
- package/dist/{chunk-PY6SPYUR.cjs → chunk-I4BODSPV.cjs} +3 -3
- package/dist/{chunk-CRVXQYUZ.cjs → chunk-IE3CPPHJ.cjs} +24 -24
- package/dist/{chunk-E56LN23H.cjs → chunk-IYWX4GOG.cjs} +35 -13
- package/dist/{chunk-LEEBFBI4.cjs → chunk-JTDOBGKE.cjs} +41 -41
- package/dist/{chunk-QNIUDJAK.cjs → chunk-KVL3QRFX.cjs} +9 -9
- package/dist/{chunk-LOCJD7TD.cjs → chunk-MBZIARIL.cjs} +12 -12
- package/dist/{chunk-YUGX72P4.cjs → chunk-MII4RDO4.cjs} +61 -61
- package/dist/{chunk-PJMLRXAG.cjs → chunk-NNQXP2ZM.cjs} +6 -6
- package/dist/{chunk-BWR5ACK3.cjs → chunk-OG4XH6C5.cjs} +3 -1
- package/dist/{chunk-3YPEXJVQ.cjs → chunk-QFBRQ22U.cjs} +41 -41
- package/dist/{chunk-DYDS2P5G.cjs → chunk-T7B3FJY6.cjs} +2 -2
- package/dist/{chunk-DTBIIFZG.cjs → chunk-TELXF5WD.cjs} +14 -14
- package/dist/{chunk-7E4BC3AF.cjs → chunk-TVAU56UU.cjs} +46 -39
- package/dist/{chunk-THQKEA2T.cjs → chunk-VKSO3UYU.cjs} +26 -26
- package/dist/{chunk-CJSUMYTH.cjs → chunk-XOFGPSNP.cjs} +21 -21
- package/dist/{chunk-237MLBT7.cjs → chunk-YKQGYAG5.cjs} +55 -55
- package/dist/{cloud-tenants-X7QHAIX2.cjs → cloud-tenants-GKCZSLEV.cjs} +8 -8
- package/dist/components/case-studies/index.cjs +20 -20
- package/dist/components/chat/approval-batch-message.d.ts +3 -1
- package/dist/components/chat/approval-batch-message.d.ts.map +1 -1
- package/dist/components/chat/approval-batch-message.js +88 -0
- package/dist/components/chat/chat-composer.d.ts +3 -1
- package/dist/components/chat/chat-composer.d.ts.map +1 -1
- package/dist/components/chat/chat-composer.js +2 -0
- package/dist/components/chat/chat-context-memory-bar.d.ts +7 -1
- package/dist/components/chat/chat-context-memory-bar.d.ts.map +1 -1
- package/dist/components/chat/chat-context-memory-bar.js +11 -5
- package/dist/components/chat/embeddable-chat.d.ts +3 -0
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +1 -0
- package/dist/components/chat/index.cjs +4 -4
- package/dist/components/contact/index.cjs +9 -9
- package/dist/components/docs/index.cjs +12 -12
- package/dist/components/embeds/index.cjs +9 -9
- package/dist/components/faq/index.cjs +10 -10
- package/dist/components/features/board/ticket-card.js +5 -5
- package/dist/components/features/index.cjs +8 -8
- package/dist/components/help-center-pages/download-apps-page.d.ts +9 -2
- package/dist/components/help-center-pages/download-apps-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/download-apps-page.js +39 -15
- package/dist/components/help-center-pages/index.cjs +121 -96
- package/dist/components/index.cjs +44 -44
- package/dist/components/layout/page-layout.d.ts +1 -1
- package/dist/components/layout/page-layout.d.ts.map +1 -1
- package/dist/components/layout/title-block.d.ts +4 -2
- package/dist/components/layout/title-block.d.ts.map +1 -1
- package/dist/components/layout/title-block.js +21 -2
- package/dist/components/meeting-scheduler/index.cjs +45 -45
- package/dist/components/navigation/index.cjs +11 -11
- package/dist/components/onboarding-guides/index.cjs +10 -10
- package/dist/components/product-demo/index.cjs +19 -19
- package/dist/components/tickets/index.cjs +13 -13
- package/dist/components/ui/data-table/data-table-body.d.ts +6 -1
- package/dist/components/ui/data-table/data-table-body.d.ts.map +1 -1
- package/dist/components/ui/data-table/data-table-body.js +3 -1
- package/dist/components/ui/device-card.d.ts +6 -1
- package/dist/components/ui/device-card.d.ts.map +1 -1
- package/dist/components/ui/device-card.js +2 -1
- package/dist/components/ui/index.cjs +8 -8
- package/dist/components/ui/page-actions.d.ts.map +1 -1
- package/dist/components/ui/page-actions.js +15 -12
- package/dist/{devices-VBFYZVVG.cjs → devices-XIXLFYRJ.cjs} +9 -9
- package/dist/{embeddable-chat-XZDZOHFY.cjs → embeddable-chat-SVDMLAER.cjs} +63 -62
- package/dist/hooks/index.cjs +2 -2
- package/dist/index.cjs +14 -12
- package/dist/{knowledge-RJZJFD2Y.cjs → knowledge-3DKG5QG2.cjs} +9 -9
- package/dist/{logs-3WZ4GROE.cjs → logs-RIU2TTRZ.cjs} +16 -16
- package/dist/{policies-E6WQEXDF.cjs → policies-F2ZB2J4L.cjs} +12 -12
- package/dist/{remote-session-4LYKEZSY.cjs → remote-session-GBMM5UPQ.cjs} +4 -4
- package/dist/{scripts-JLCM42F4.cjs → scripts-XX5LMCRA.cjs} +15 -15
- package/dist/{software-update-BVBHAROC.cjs → software-update-VYBM7SC6.cjs} +12 -12
- package/dist/{tickets-board-3FBVYSXR.cjs → tickets-board-5QIIA24E.cjs} +7 -7
- package/dist/types/downloads.d.ts +5 -0
- package/dist/types/downloads.d.ts.map +1 -1
- package/dist/types/downloads.js +3 -1
- package/dist/types/index.cjs +2 -0
- package/package.json +1 -1
- package/src/components/chat/approval-batch-message.tsx +109 -1
- package/src/components/chat/chat-composer.tsx +4 -0
- package/src/components/chat/chat-context-memory-bar.tsx +28 -5
- package/src/components/chat/embeddable-chat.tsx +4 -0
- package/src/components/features/board/ticket-card.tsx +7 -6
- package/src/components/help-center-pages/download-apps-page.tsx +42 -13
- package/src/components/layout/page-layout.tsx +1 -1
- package/src/components/layout/title-block.tsx +22 -3
- package/src/components/ui/data-table/data-table-body.tsx +9 -0
- package/src/components/ui/device-card.tsx +7 -1
- package/src/components/ui/page-actions.tsx +28 -14
- package/src/types/downloads.ts +6 -0
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkTELXF5WDcjs = require('./chunk-TELXF5WD.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -36,7 +36,7 @@ var _chunkNG3RKTQUcjs = require('./chunk-NG3RKTQU.cjs');
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _chunkIYWX4GOGcjs = require('./chunk-IYWX4GOG.cjs');
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
var _chunkDEY6XXGOcjs = require('./chunk-DEY6XXGO.cjs');
|
|
@@ -52,7 +52,7 @@ var _chunkDEY6XXGOcjs = require('./chunk-DEY6XXGO.cjs');
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
var
|
|
55
|
+
var _chunkOG4XH6C5cjs = require('./chunk-OG4XH6C5.cjs');
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
|
|
@@ -107,7 +107,7 @@ var _chunkYR74H7Z3cjs = require('./chunk-YR74H7Z3.cjs');
|
|
|
107
107
|
|
|
108
108
|
|
|
109
109
|
|
|
110
|
-
var
|
|
110
|
+
var _chunkIE3CPPHJcjs = require('./chunk-IE3CPPHJ.cjs');
|
|
111
111
|
|
|
112
112
|
|
|
113
113
|
|
|
@@ -127,7 +127,7 @@ var _chunkCRVXQYUZcjs = require('./chunk-CRVXQYUZ.cjs');
|
|
|
127
127
|
|
|
128
128
|
|
|
129
129
|
|
|
130
|
-
var
|
|
130
|
+
var _chunkTVAU56UUcjs = require('./chunk-TVAU56UU.cjs');
|
|
131
131
|
|
|
132
132
|
|
|
133
133
|
|
|
@@ -141,7 +141,7 @@ var _chunk7E4BC3AFcjs = require('./chunk-7E4BC3AF.cjs');
|
|
|
141
141
|
|
|
142
142
|
|
|
143
143
|
|
|
144
|
-
var
|
|
144
|
+
var _chunk2X3N6MSRcjs = require('./chunk-2X3N6MSR.cjs');
|
|
145
145
|
|
|
146
146
|
|
|
147
147
|
|
|
@@ -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 = _chunkTVAU56UUcjs.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]);
|
|
@@ -904,7 +904,7 @@ function TimezoneSelect({
|
|
|
904
904
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
905
905
|
const options = _react.useMemo.call(void 0, () => timezoneOptions(value), [value]);
|
|
906
906
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
907
|
-
|
|
907
|
+
_chunkIYWX4GOGcjs.Autocomplete,
|
|
908
908
|
{
|
|
909
909
|
className,
|
|
910
910
|
fieldLoading: loading,
|
|
@@ -1719,20 +1719,20 @@ function DatePickerInput(props) {
|
|
|
1719
1719
|
) })
|
|
1720
1720
|
] }),
|
|
1721
1721
|
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1", children: [
|
|
1722
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1723
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1724
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1722
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIYWX4GOGcjs.Select, { value: hour, onValueChange: handleHourChange, disabled, children: [
|
|
1723
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectTrigger, { className: _chunk7JWFMAQBcjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectValue, { placeholder: "HH" }) }),
|
|
1724
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectContent, { children: hourOptions.map((h) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: h, children: h }, h)) })
|
|
1725
1725
|
] }),
|
|
1726
1726
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h4", children: ":" }),
|
|
1727
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1728
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1729
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1727
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIYWX4GOGcjs.Select, { value: minute, onValueChange: handleMinuteChange, disabled, children: [
|
|
1728
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectTrigger, { className: _chunk7JWFMAQBcjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectValue, { placeholder: "MM" }) }),
|
|
1729
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectContent, { children: minuteOptions.map((m) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: m, children: m }, m)) })
|
|
1730
1730
|
] }),
|
|
1731
|
-
!use24HourFormat && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1732
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1733
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1734
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1735
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1731
|
+
!use24HourFormat && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIYWX4GOGcjs.Select, { value: period, onValueChange: (val) => handlePeriodChange(val), disabled, children: [
|
|
1732
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectTrigger, { className: _chunk7JWFMAQBcjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectValue, { placeholder: "AM" }) }),
|
|
1733
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIYWX4GOGcjs.SelectContent, { children: [
|
|
1734
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: "AM", children: "AM" }),
|
|
1735
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: "PM", children: "PM" })
|
|
1736
1736
|
] })
|
|
1737
1737
|
] })
|
|
1738
1738
|
] })
|
|
@@ -1873,9 +1873,9 @@ function DatePickerInputSimple(props) {
|
|
|
1873
1873
|
}
|
|
1874
1874
|
) })
|
|
1875
1875
|
] }),
|
|
1876
|
-
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1877
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1878
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1876
|
+
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIYWX4GOGcjs.Select, { value: timeValue, onValueChange: handleTimeChange, disabled, children: [
|
|
1877
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectTrigger, { className: _chunk7JWFMAQBcjs.cn.call(void 0, timeSelectTriggerStyles, "flex-1"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectValue, { placeholder: "Select time", children: timeDisplayLabel || "Select time" }) }),
|
|
1878
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectContent, { children: timeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
1879
1879
|
] })
|
|
1880
1880
|
] });
|
|
1881
1881
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTTZEDDR5cjs.FieldWrapper, { label, error, errorSlot: "error" in props, className, children: content });
|
|
@@ -1894,14 +1894,14 @@ function DateFilterPanel({
|
|
|
1894
1894
|
className
|
|
1895
1895
|
}) {
|
|
1896
1896
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex flex-col gap-4", className), children: [
|
|
1897
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1898
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1897
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIYWX4GOGcjs.Select, { value: sort, onValueChange: (value) => onSortChange(value), children: [
|
|
1898
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.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: [
|
|
1899
1899
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ArrowUpDown, { className: "size-6 shrink-0 text-ods-text-secondary" }),
|
|
1900
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1900
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectValue, {}) })
|
|
1901
1901
|
] }) }),
|
|
1902
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1903
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1904
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1902
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIYWX4GOGcjs.SelectContent, { children: [
|
|
1903
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: "asc", children: ascLabel }),
|
|
1904
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: "desc", children: descLabel })
|
|
1905
1905
|
] })
|
|
1906
1906
|
] }),
|
|
1907
1907
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2181,7 +2181,7 @@ function Value({ value, depth }) {
|
|
|
2181
2181
|
}
|
|
2182
2182
|
if (typeof value === "string") {
|
|
2183
2183
|
if (ISO_DATE.test(value)) {
|
|
2184
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: value, className: "text-ods-text-secondary", children:
|
|
2184
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: value, className: "text-ods-text-secondary", children: _chunk2X3N6MSRcjs.formatRelativeTime.call(void 0, value) });
|
|
2185
2185
|
}
|
|
2186
2186
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-pre-wrap text-ods-text-primary", children: value });
|
|
2187
2187
|
}
|
|
@@ -2428,7 +2428,7 @@ function InfoCardValueRow({
|
|
|
2428
2428
|
copyAriaLabel,
|
|
2429
2429
|
loading: loadingProp
|
|
2430
2430
|
}) {
|
|
2431
|
-
const { copy, copied } =
|
|
2431
|
+
const { copy, copied } = _chunkOG4XH6C5cjs.useCopyToClipboard.call(void 0, );
|
|
2432
2432
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
2433
2433
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: VALUE_ROW_CLASS, children: [
|
|
2434
2434
|
loading && label === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h4", className: "w-20" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: ROW_LABEL_CLASS, children: showLabel ? _nullishCoalesce(label, () => ( "")) : "" }),
|
|
@@ -2710,7 +2710,7 @@ function CompactAssigneeDropdown({
|
|
|
2710
2710
|
onClick: handleTriggerClick,
|
|
2711
2711
|
"aria-label": "Change assignee",
|
|
2712
2712
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "w-auto shrink-0", className),
|
|
2713
|
-
children: currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2713
|
+
children: currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTELXF5WDcjs.DeletedUserAvatar, { size: "sm", accessibleLabel: `Deleted user: ${currentAssignee.name || currentAssignee.id}` }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2714
2714
|
_chunk6UKH22NQcjs.SquareAvatar,
|
|
2715
2715
|
{
|
|
2716
2716
|
src: currentAssignee.avatarSrc,
|
|
@@ -2772,7 +2772,7 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
2772
2772
|
if (isEditing) {
|
|
2773
2773
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "min-w-0", className), children: [
|
|
2774
2774
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2775
|
-
|
|
2775
|
+
_chunkIYWX4GOGcjs.Autocomplete,
|
|
2776
2776
|
{
|
|
2777
2777
|
options,
|
|
2778
2778
|
value: _nullishCoalesce(_optionalChain([currentAssignee, 'optionalAccess', _43 => _43.id]), () => ( null)),
|
|
@@ -2784,7 +2784,7 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
2784
2784
|
loading: isLoading,
|
|
2785
2785
|
showChevron: false,
|
|
2786
2786
|
startAdornment: hasAssignee ? currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2787
|
-
|
|
2787
|
+
_chunkTELXF5WDcjs.DeletedUserAvatar,
|
|
2788
2788
|
{
|
|
2789
2789
|
size: "sm",
|
|
2790
2790
|
className: "h-6 w-6",
|
|
@@ -2810,7 +2810,7 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
2810
2810
|
if (hasAssignee) {
|
|
2811
2811
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", className), children: [
|
|
2812
2812
|
currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2813
|
-
|
|
2813
|
+
_chunkTELXF5WDcjs.DeletedUserAvatar,
|
|
2814
2814
|
{
|
|
2815
2815
|
size: "md",
|
|
2816
2816
|
accessibleLabel: `Deleted user: ${currentAssignee.name || currentAssignee.id}`
|
|
@@ -2921,7 +2921,7 @@ function RowValue({ value }) {
|
|
|
2921
2921
|
}
|
|
2922
2922
|
case "status": {
|
|
2923
2923
|
const { type: _type, ...props } = value;
|
|
2924
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2924
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2X3N6MSRcjs.TicketStatusTag, { ...props });
|
|
2925
2925
|
}
|
|
2926
2926
|
case "custom":
|
|
2927
2927
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CustomValue, { content: value.content });
|
|
@@ -3021,7 +3021,7 @@ function MediaTypeSelector({
|
|
|
3021
3021
|
// changed) and cost an extra render pass on every change to say what the
|
|
3022
3022
|
// prop already said.
|
|
3023
3023
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3024
|
-
|
|
3024
|
+
_chunkIYWX4GOGcjs.Select,
|
|
3025
3025
|
{
|
|
3026
3026
|
value: value || void 0,
|
|
3027
3027
|
onValueChange: (next) => {
|
|
@@ -3031,8 +3031,8 @@ function MediaTypeSelector({
|
|
|
3031
3031
|
disabled,
|
|
3032
3032
|
defaultValue: value,
|
|
3033
3033
|
children: [
|
|
3034
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3035
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3034
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectTrigger, { className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectValue, { placeholder }) }),
|
|
3035
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectContent, { children: mediaTypeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: option.value, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
3036
3036
|
option.icon,
|
|
3037
3037
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: option.label })
|
|
3038
3038
|
] }) }, option.value)) })
|
|
@@ -4539,7 +4539,7 @@ function AdminFormDrawer({
|
|
|
4539
4539
|
"form",
|
|
4540
4540
|
{
|
|
4541
4541
|
id: formId,
|
|
4542
|
-
...
|
|
4542
|
+
..._chunkIE3CPPHJcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
4543
4543
|
className: "flex flex-col gap-[var(--spacing-system-lf)]",
|
|
4544
4544
|
onSubmit: (e) => {
|
|
4545
4545
|
e.preventDefault();
|
|
@@ -4646,7 +4646,7 @@ function AdminFormModal({
|
|
|
4646
4646
|
"form",
|
|
4647
4647
|
{
|
|
4648
4648
|
id: formId,
|
|
4649
|
-
...
|
|
4649
|
+
..._chunkIE3CPPHJcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
4650
4650
|
className: "flex min-h-0 flex-1 flex-col",
|
|
4651
4651
|
onSubmit: (e) => {
|
|
4652
4652
|
e.preventDefault();
|
|
@@ -6047,7 +6047,7 @@ function EmbedViewerFrame({
|
|
|
6047
6047
|
const controllerRef = _react.useRef.call(void 0, null);
|
|
6048
6048
|
_react.useEffect.call(void 0, () => {
|
|
6049
6049
|
if (!fullscreenControl) return void 0;
|
|
6050
|
-
const controller = new (0,
|
|
6050
|
+
const controller = new (0, _chunkIE3CPPHJcjs.FullscreenSwitchController)({
|
|
6051
6051
|
target: () => frameRef.current,
|
|
6052
6052
|
onFullscreenChange: setIsFullscreen
|
|
6053
6053
|
});
|
|
@@ -6141,7 +6141,7 @@ var KIND_HEADING = {
|
|
|
6141
6141
|
design: "Claude Design"
|
|
6142
6142
|
};
|
|
6143
6143
|
function ClaudeEmbed({ url, kind = "artifact", title, height, loading = "lazy" }) {
|
|
6144
|
-
const { src: mirrorSrc, status } =
|
|
6144
|
+
const { src: mirrorSrc, status } = _chunkOG4XH6C5cjs.useClaudeMirrorSrc.call(void 0, url);
|
|
6145
6145
|
const isProbing = status === "probing";
|
|
6146
6146
|
const embedUrl = isProbing ? null : _nullishCoalesce(mirrorSrc, () => ( _chunk6GCXQIUUcjs.toClaudeEmbedUrl.call(void 0, url)));
|
|
6147
6147
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -6711,12 +6711,12 @@ var OGLinkPreview = ({
|
|
|
6711
6711
|
children: [
|
|
6712
6712
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TILE_SOURCE_ROW_CLASS, children: [
|
|
6713
6713
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Favicon, { src: `https://www.google.com/s2/favicons?domain=${domain}&sz=32`, size: "w-4 h-4" }),
|
|
6714
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6714
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { as: "span", variant: "h6", className: "text-current", children: name }),
|
|
6715
6715
|
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 })
|
|
6716
6716
|
] }),
|
|
6717
6717
|
kicker != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-hidden text-ods-accent text-h5", style: lineClamp(1), children: kicker }),
|
|
6718
6718
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6719
|
-
|
|
6719
|
+
_chunkIYWX4GOGcjs.TruncateText,
|
|
6720
6720
|
{
|
|
6721
6721
|
lines: 2,
|
|
6722
6722
|
variant: "h3",
|
|
@@ -6725,7 +6725,7 @@ var OGLinkPreview = ({
|
|
|
6725
6725
|
children: curatedTitle || domainToTitle(domain)
|
|
6726
6726
|
}
|
|
6727
6727
|
),
|
|
6728
|
-
curatedDescription && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6728
|
+
curatedDescription && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { lines: 2, variant: "h6", tone: "secondary", children: curatedDescription })
|
|
6729
6729
|
]
|
|
6730
6730
|
}
|
|
6731
6731
|
);
|
|
@@ -6861,8 +6861,8 @@ var OGLinkPreview = ({
|
|
|
6861
6861
|
children: [
|
|
6862
6862
|
/* @__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 }) }),
|
|
6863
6863
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
6864
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6865
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6864
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { className: "font-semibold transition-colors group-hover:text-ods-accent", children: title }),
|
|
6865
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { tone: "secondary", children: description })
|
|
6866
6866
|
] }),
|
|
6867
6867
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExternalLinkIcon, {})
|
|
6868
6868
|
]
|
|
@@ -6909,7 +6909,7 @@ var OGLinkPreview = ({
|
|
|
6909
6909
|
),
|
|
6910
6910
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
6911
6911
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6912
|
-
|
|
6912
|
+
_chunkIYWX4GOGcjs.TruncateText,
|
|
6913
6913
|
{
|
|
6914
6914
|
lines: 2,
|
|
6915
6915
|
className: "min-h-[calc(var(--font-line-space-h4-body)*2)] font-semibold transition-colors group-hover:text-ods-accent",
|
|
@@ -6918,7 +6918,7 @@ var OGLinkPreview = ({
|
|
|
6918
6918
|
}
|
|
6919
6919
|
),
|
|
6920
6920
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6921
|
-
|
|
6921
|
+
_chunkIYWX4GOGcjs.TruncateText,
|
|
6922
6922
|
{
|
|
6923
6923
|
lines: 2,
|
|
6924
6924
|
tone: "secondary",
|
|
@@ -6928,9 +6928,9 @@ var OGLinkPreview = ({
|
|
|
6928
6928
|
}
|
|
6929
6929
|
),
|
|
6930
6930
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-2 text-ods-text-secondary text-h6", children: [
|
|
6931
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6931
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { as: "span", variant: "h6", className: "text-current", children: effectiveData.siteName }),
|
|
6932
6932
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "\u2022" }),
|
|
6933
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6933
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { as: "span", variant: "h6", className: "text-current", children: ogDomain }),
|
|
6934
6934
|
meta
|
|
6935
6935
|
] })
|
|
6936
6936
|
] })
|
|
@@ -7286,7 +7286,7 @@ var formatTimeAgo = (timestamp) => {
|
|
|
7286
7286
|
return `${Math.floor(diffSeconds / 86400)}d ago`;
|
|
7287
7287
|
};
|
|
7288
7288
|
function RedditEmbedClient({ url, maxWidth = 700, rel }) {
|
|
7289
|
-
const postLinkRel =
|
|
7289
|
+
const postLinkRel = _chunkTVAU56UUcjs.renderedLinkRel.call(void 0, rel, true);
|
|
7290
7290
|
const { redditProxyUrl } = useRichMarkdownRuntime();
|
|
7291
7291
|
const [redditData, setRedditData] = _react.useState.call(void 0, null);
|
|
7292
7292
|
const [loading, setLoading] = _react.useState.call(void 0, true);
|
|
@@ -7618,7 +7618,7 @@ var UserIcon3 = () => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "svg", { wid
|
|
|
7618
7618
|
] });
|
|
7619
7619
|
var XIcon = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2TEMEXDTcjs.XLogoIcon, { className: "h-5 w-5", color: "currentColor" });
|
|
7620
7620
|
function TwitterEmbedClient({ url, tweetId, maxWidth = 700, rel }) {
|
|
7621
|
-
const postLinkRel =
|
|
7621
|
+
const postLinkRel = _chunkTVAU56UUcjs.renderedLinkRel.call(void 0, rel, true);
|
|
7622
7622
|
const { twitterProxyUrl } = useRichMarkdownRuntime();
|
|
7623
7623
|
const [tweetData, setTweetData] = _react.useState.call(void 0, null);
|
|
7624
7624
|
const [fetchLoading, setLoading] = _react.useState.call(void 0, true);
|
|
@@ -7820,7 +7820,7 @@ function buildRichEmbedOverrides({
|
|
|
7820
7820
|
ogEndpointPath,
|
|
7821
7821
|
textSizes
|
|
7822
7822
|
}) {
|
|
7823
|
-
const standard =
|
|
7823
|
+
const standard = _chunkTVAU56UUcjs.buildStandardLeafRenderers.call(void 0, { textSizes });
|
|
7824
7824
|
return {
|
|
7825
7825
|
// Fence-language embeds (```youtube-embed etc.); everything else
|
|
7826
7826
|
// (mermaid, highlighted blocks, inline code) falls through to `standard`.
|
|
@@ -7956,14 +7956,14 @@ function buildRichEmbedOverrides({
|
|
|
7956
7956
|
// rich-markdown runtime (Supabase optimization on the hub, identity
|
|
7957
7957
|
// elsewhere). Guard against empty `![]()`.
|
|
7958
7958
|
img: ({ src, alt }) => {
|
|
7959
|
-
if (!
|
|
7959
|
+
if (!_chunkTVAU56UUcjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7960
7960
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownImage, { src: src.trim(), alt });
|
|
7961
7961
|
},
|
|
7962
7962
|
// Raw <iframe> tags in stored content (a pasted YouTube embed). A YouTube one becomes the same click-to-play
|
|
7963
7963
|
// facade as the `youtube-embed` fence: the raw iframe loaded YouTube's whole player (about 470 KB of script) with
|
|
7964
7964
|
// the page, on every post that carried one (CU-17tkuw5xp4q). Any other iframe loads when it nears the screen.
|
|
7965
7965
|
iframe: ({ node: _node, src, ...rest }) => {
|
|
7966
|
-
if (!
|
|
7966
|
+
if (!_chunkTVAU56UUcjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7967
7967
|
const url = src.trim();
|
|
7968
7968
|
if (_chunkYBTORXFYcjs.extractYouTubeId.call(void 0, url)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYBTORXFYcjs.Video, { kind: "youtube", url });
|
|
7969
7969
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "iframe", { ...rest, src: url, loading: "lazy" });
|
|
@@ -7971,7 +7971,7 @@ function buildRichEmbedOverrides({
|
|
|
7971
7971
|
// Raw <video> tags in stored content (blog publisher injection) route
|
|
7972
7972
|
// to the <Video> SSOT (MuxPlayer) so HLS manifests play everywhere.
|
|
7973
7973
|
video: ({ src, poster, className }) => {
|
|
7974
|
-
if (!
|
|
7974
|
+
if (!_chunkTVAU56UUcjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7975
7975
|
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, _chunkYBTORXFYcjs.Video, { kind: "file", url: src.trim(), poster: typeof poster === "string" ? poster : void 0 }) }) });
|
|
7976
7976
|
}
|
|
7977
7977
|
};
|
|
@@ -8080,7 +8080,7 @@ var processShortcodes = (content) => {
|
|
|
8080
8080
|
try {
|
|
8081
8081
|
const urlObj = new URL(url);
|
|
8082
8082
|
const hostname = urlObj.hostname.toLowerCase();
|
|
8083
|
-
const hostIs = (domain) =>
|
|
8083
|
+
const hostIs = (domain) => _chunkIE3CPPHJcjs.hostMatches.call(void 0, hostname, domain);
|
|
8084
8084
|
const isYouTubeVideo = hostIs("youtube.com") && urlObj.searchParams.has("v") || hostIs("youtu.be");
|
|
8085
8085
|
if (isYouTubeVideo || hostIs("reddit.com") || hostIs("twitter.com") || hostIs("x.com") || hostIs("figma.com")) {
|
|
8086
8086
|
return match;
|
|
@@ -8157,13 +8157,13 @@ var RichMarkdownInner = ({
|
|
|
8157
8157
|
},
|
|
8158
8158
|
[resolveLinkEndpointUrl, resolveSource]
|
|
8159
8159
|
);
|
|
8160
|
-
const textSizes = _react.useMemo.call(void 0, () =>
|
|
8160
|
+
const textSizes = _react.useMemo.call(void 0, () => _chunkTVAU56UUcjs.resolveTextSizeConfig.call(void 0, "article"), []);
|
|
8161
8161
|
const componentOverrides = _react.useMemo.call(void 0,
|
|
8162
8162
|
() => buildRichEmbedOverrides({ ogApiBaseUrl, ogEndpointPath, textSizes }),
|
|
8163
8163
|
[ogApiBaseUrl, ogEndpointPath, textSizes]
|
|
8164
8164
|
);
|
|
8165
8165
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8166
|
-
|
|
8166
|
+
_chunkTVAU56UUcjs.MarkdownEngine,
|
|
8167
8167
|
{
|
|
8168
8168
|
content,
|
|
8169
8169
|
className,
|
|
@@ -8187,7 +8187,7 @@ var RichMarkdownRendererImpl = ({
|
|
|
8187
8187
|
className = "",
|
|
8188
8188
|
sectionIds,
|
|
8189
8189
|
onInternalLinkClick,
|
|
8190
|
-
brokenLinks =
|
|
8190
|
+
brokenLinks = _chunkTVAU56UUcjs.NO_BROKEN_LINKS,
|
|
8191
8191
|
currentPath,
|
|
8192
8192
|
resolveSource = "openframe-docs",
|
|
8193
8193
|
resolveLinkEndpointUrl = "/api/docs/resolve-link",
|
|
@@ -9532,7 +9532,7 @@ function renderAdvancedPageContainer({
|
|
|
9532
9532
|
contentClassName,
|
|
9533
9533
|
showHeader = true
|
|
9534
9534
|
}, inScope = false) {
|
|
9535
|
-
const titleNode = title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9535
|
+
const titleNode = title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.PageTitle, { className: PAGE_CONTAINER_TITLE_CLASS, children: _chunkFAUVDMH4cjs.accentSentenceMarks.call(void 0, title) }) : inScope && title === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageContainerTitleSkeleton, {}) : null;
|
|
9536
9536
|
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;
|
|
9537
9537
|
const getActionsVariant = () => {
|
|
9538
9538
|
if (actionsVariant) return actionsVariant;
|
|
@@ -9541,7 +9541,7 @@ function renderAdvancedPageContainer({
|
|
|
9541
9541
|
};
|
|
9542
9542
|
const renderActions = () => {
|
|
9543
9543
|
if (!actions || actions.length === 0) return null;
|
|
9544
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9544
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.PageActions, { variant: getActionsVariant(), actions, menuActions });
|
|
9545
9545
|
};
|
|
9546
9546
|
const needsBottomPadding = actions && actions.length > 0 && getActionsVariant() === "primary-buttons";
|
|
9547
9547
|
const paddingClasses = {
|
|
@@ -9564,7 +9564,7 @@ function renderAdvancedPageContainer({
|
|
|
9564
9564
|
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: [
|
|
9565
9565
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
9566
9566
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9567
|
-
|
|
9567
|
+
_chunkIYWX4GOGcjs.BackButton,
|
|
9568
9568
|
{
|
|
9569
9569
|
onClick: backButton.onClick,
|
|
9570
9570
|
label: backButton.label,
|
|
@@ -9584,7 +9584,7 @@ function renderAdvancedPageContainer({
|
|
|
9584
9584
|
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: [
|
|
9585
9585
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
9586
9586
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9587
|
-
|
|
9587
|
+
_chunkIYWX4GOGcjs.BackButton,
|
|
9588
9588
|
{
|
|
9589
9589
|
onClick: backButton.onClick,
|
|
9590
9590
|
label: backButton.label,
|
|
@@ -9604,7 +9604,7 @@ function renderAdvancedPageContainer({
|
|
|
9604
9604
|
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: [
|
|
9605
9605
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
9606
9606
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9607
|
-
|
|
9607
|
+
_chunkIYWX4GOGcjs.BackButton,
|
|
9608
9608
|
{
|
|
9609
9609
|
onClick: backButton.onClick,
|
|
9610
9610
|
label: backButton.label,
|
|
@@ -9959,7 +9959,7 @@ var BenefitCardGrid = ({ children, className = "", columns = 2 }) => {
|
|
|
9959
9959
|
|
|
9960
9960
|
|
|
9961
9961
|
function PlatformBrowseButton({ item }) {
|
|
9962
|
-
const linkProps =
|
|
9962
|
+
const linkProps = _chunkTVAU56UUcjs.useNavLinkViaRuntime.call(void 0, { href: item.link, targetPlatform: item.targetPlatform });
|
|
9963
9963
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "outline", linkProps, rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-4 w-4" }), children: [
|
|
9964
9964
|
"Browse ",
|
|
9965
9965
|
item.buttonText
|
|
@@ -10478,10 +10478,10 @@ var OSTypeBadge = ({
|
|
|
10478
10478
|
if (!osType) {
|
|
10479
10479
|
return labelOnly ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "text-ods-text-secondary", className), children: "Unknown" }) : null;
|
|
10480
10480
|
}
|
|
10481
|
-
const normalized =
|
|
10481
|
+
const normalized = _chunkIE3CPPHJcjs.normalizeOSType.call(void 0, osType);
|
|
10482
10482
|
if (!normalized && !labelOnly) return null;
|
|
10483
|
-
const label =
|
|
10484
|
-
const IconComponent =
|
|
10483
|
+
const label = _chunkIE3CPPHJcjs.getOSLabel.call(void 0, osType);
|
|
10484
|
+
const IconComponent = _chunkIE3CPPHJcjs.getOSIcon.call(void 0, osType);
|
|
10485
10485
|
if (iconOnly && IconComponent) {
|
|
10486
10486
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: _chunk7JWFMAQBcjs.cn.call(void 0, iconSize, "text-ods-text-secondary", className) });
|
|
10487
10487
|
}
|
|
@@ -10522,6 +10522,7 @@ function DeviceCard({
|
|
|
10522
10522
|
statusTag,
|
|
10523
10523
|
onDeviceClick,
|
|
10524
10524
|
loading: loadingProp,
|
|
10525
|
+
showTags = true,
|
|
10525
10526
|
className,
|
|
10526
10527
|
...props
|
|
10527
10528
|
}) {
|
|
@@ -10603,7 +10604,7 @@ function DeviceCard({
|
|
|
10603
10604
|
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-28 max-w-full" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: formatLastSeen(device.lastSeen) })
|
|
10604
10605
|
] })
|
|
10605
10606
|
] }),
|
|
10606
|
-
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DEVICE_CARD_TAGS_ROW_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6UKH22NQcjs.Tag, { loading: true, label: "", variant: "outline", "data-loading-item": true }) }) : device.tags && device.tags.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DEVICE_CARD_TAGS_ROW_CLASS, children: device.tags.map((tag, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6UKH22NQcjs.Tag, { variant: "outline", label: tag, "data-loading-item": true }, index)) })
|
|
10607
|
+
!showTags ? null : loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DEVICE_CARD_TAGS_ROW_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6UKH22NQcjs.Tag, { loading: true, label: "", variant: "outline", "data-loading-item": true }) }) : device.tags && device.tags.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DEVICE_CARD_TAGS_ROW_CLASS, children: device.tags.map((tag, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6UKH22NQcjs.Tag, { variant: "outline", label: tag, "data-loading-item": true }, index)) })
|
|
10607
10608
|
]
|
|
10608
10609
|
}
|
|
10609
10610
|
);
|
|
@@ -10777,7 +10778,7 @@ function ComplianceLogo({
|
|
|
10777
10778
|
fallback = null,
|
|
10778
10779
|
className
|
|
10779
10780
|
}) {
|
|
10780
|
-
const standard =
|
|
10781
|
+
const standard = _chunkIE3CPPHJcjs.complianceStandardForName.call(void 0, ...names);
|
|
10781
10782
|
if (!standard) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: fallback });
|
|
10782
10783
|
const Official = standard.logo ? COMPLIANCE_LOGOS[standard.logo] : null;
|
|
10783
10784
|
return Official ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11634,7 +11635,7 @@ function OrganizationCardSkeleton({
|
|
|
11634
11635
|
..._chunk7JWFMAQBcjs.loadingItemProps.call(void 0, props),
|
|
11635
11636
|
children: [
|
|
11636
11637
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_HEADER_CLASS, children: [
|
|
11637
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11638
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.EntityImage, { src: null }),
|
|
11638
11639
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_TEXT_CLASS, children: [
|
|
11639
11640
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h3", className: "w-3/4" }),
|
|
11640
11641
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-1/2" })
|
|
@@ -11706,7 +11707,7 @@ function OrganizationCard({
|
|
|
11706
11707
|
}
|
|
11707
11708
|
),
|
|
11708
11709
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_HEADER_CLASS, children: [
|
|
11709
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11710
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.EntityImage, { src: fetchedImageUrl || organization.imageUrl, alt: organization.name }),
|
|
11710
11711
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_TEXT_CLASS, children: [
|
|
11711
11712
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "truncate text-ods-text-primary transition-colors text-h3", title: organization.name, children: organization.name }),
|
|
11712
11713
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11773,8 +11774,8 @@ function ServiceCard({
|
|
|
11773
11774
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-4", children: [
|
|
11774
11775
|
/* @__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 }),
|
|
11775
11776
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0", children: [
|
|
11776
|
-
loading && !title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h3", className: "w-40 max-w-full" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11777
|
-
loading && subtitle === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-56 max-w-full" }) : subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11777
|
+
loading && !title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h3", className: "w-40 max-w-full" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { variant: "h3", children: title }),
|
|
11778
|
+
loading && subtitle === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-56 max-w-full" }) : subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { variant: "h6", tone: "secondary", children: subtitle })
|
|
11778
11779
|
] })
|
|
11779
11780
|
] }),
|
|
11780
11781
|
tag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6UKH22NQcjs.Tag, { label: tag.label, variant: "outline", className: "shrink-0 self-start", loading })
|
|
@@ -11785,7 +11786,7 @@ function ServiceCard({
|
|
|
11785
11786
|
function ServiceCardRowItem({ row, loading: loadingProp }) {
|
|
11786
11787
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
11787
11788
|
const [revealed, setRevealed] = _react.useState.call(void 0, false);
|
|
11788
|
-
const { copy, copied } =
|
|
11789
|
+
const { copy, copied } = _chunkOG4XH6C5cjs.useCopyToClipboard.call(void 0, );
|
|
11789
11790
|
const { ref: valueRef, isTruncated: valueTruncated } = _chunkV4FXUIMHcjs.useIsTruncated.call(void 0, row.value);
|
|
11790
11791
|
const actions = _react.useMemo.call(void 0, () => rowActions(row), [row]);
|
|
11791
11792
|
const displayValue = row.isSecret ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MaskedValue, { value: row.value, isRevealed: revealed }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: row.value });
|
|
@@ -11913,14 +11914,14 @@ function PersonCell({
|
|
|
11913
11914
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6UKH22NQcjs.SquareAvatar, { size: scale.avatar, src: _nullishCoalesce(avatarUrl, () => ( void 0)), alt: displayName, fallback: displayName }),
|
|
11914
11915
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
11915
11916
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11916
|
-
|
|
11917
|
+
_chunkIYWX4GOGcjs.TruncateText,
|
|
11917
11918
|
{
|
|
11918
11919
|
variant: scale.primary,
|
|
11919
11920
|
className: onClick ? "text-ods-accent group-hover/person-cell:underline" : void 0,
|
|
11920
11921
|
children: displayName
|
|
11921
11922
|
}
|
|
11922
11923
|
),
|
|
11923
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11924
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { variant: "h6", tone: "secondary", children: secondary === void 0 ? "\xA0" : secondary || "\xB7" })
|
|
11924
11925
|
] })
|
|
11925
11926
|
] });
|
|
11926
11927
|
if (!onClick) return row;
|
|
@@ -12818,7 +12819,7 @@ function DataTableRowImpl({
|
|
|
12818
12819
|
const containerRef = _react.useRef.call(void 0, null);
|
|
12819
12820
|
const handleClick = _react.useCallback.call(void 0,
|
|
12820
12821
|
(e) => {
|
|
12821
|
-
if (!
|
|
12822
|
+
if (!_chunkIE3CPPHJcjs.isOwnClick.call(void 0, e.target, containerRef.current)) {
|
|
12822
12823
|
if (isLinkMode) e.preventDefault();
|
|
12823
12824
|
return;
|
|
12824
12825
|
}
|
|
@@ -12832,7 +12833,7 @@ function DataTableRowImpl({
|
|
|
12832
12833
|
if (!(target instanceof Element) || !_optionalChain([container, 'optionalAccess', _222 => _222.contains, 'call', _223 => _223(target)])) return;
|
|
12833
12834
|
const nestedLink = target.closest("a");
|
|
12834
12835
|
if (nestedLink && nestedLink !== container && container.contains(nestedLink)) return;
|
|
12835
|
-
if (!
|
|
12836
|
+
if (!_chunkIE3CPPHJcjs.isOwnClick.call(void 0, target, container) || target.closest(ROW_LINK_CONTROL_SELECTOR)) e.preventDefault();
|
|
12836
12837
|
}, []);
|
|
12837
12838
|
const containerClassName = _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
12838
12839
|
DATA_TABLE_ROW_FRAME_CLASS,
|
|
@@ -12947,7 +12948,8 @@ function DataTableBody({
|
|
|
12947
12948
|
onRowClick,
|
|
12948
12949
|
rowHref,
|
|
12949
12950
|
minRows,
|
|
12950
|
-
renderSubRow
|
|
12951
|
+
renderSubRow,
|
|
12952
|
+
loadingSubRows = false
|
|
12951
12953
|
}) {
|
|
12952
12954
|
const table = useDataTableContext();
|
|
12953
12955
|
const skeletonRows = _nullishCoalesce(_nullishCoalesce(skeletonRowsProp, () => ( dataTablePageSize(table))), () => ( (minRows && minRows > 0 ? minRows : DATA_TABLE_SKELETON_ROWS)));
|
|
@@ -12961,7 +12963,7 @@ function DataTableBody({
|
|
|
12961
12963
|
const skeletonRowClassName = typeof rowClassName === "string" ? rowClassName : void 0;
|
|
12962
12964
|
if (loading && loadingCells && hasRows) {
|
|
12963
12965
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12964
|
-
|
|
12966
|
+
_chunkTVAU56UUcjs.LoadingFallback,
|
|
12965
12967
|
{
|
|
12966
12968
|
label: "Loading results",
|
|
12967
12969
|
status: loadingRegion && !inScope,
|
|
@@ -12974,6 +12976,7 @@ function DataTableBody({
|
|
|
12974
12976
|
compact,
|
|
12975
12977
|
rowHeightClassName,
|
|
12976
12978
|
className: typeof rowClassName === "function" ? rowClassName(row.original, index) : rowClassName,
|
|
12979
|
+
subRow: loadingSubRows ? _optionalChain([renderSubRow, 'optionalCall', _228 => _228(row.original)]) : void 0,
|
|
12977
12980
|
"data-loading-item": true
|
|
12978
12981
|
},
|
|
12979
12982
|
row.id
|
|
@@ -13021,7 +13024,7 @@ function DataTableBody({
|
|
|
13021
13024
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, ROW_STACK_CLASSES, className), children: [
|
|
13022
13025
|
rows.map((row, index) => {
|
|
13023
13026
|
const item = row.original;
|
|
13024
|
-
const href = _nullishCoalesce(_optionalChain([rowHref, 'optionalCall',
|
|
13027
|
+
const href = _nullishCoalesce(_optionalChain([rowHref, 'optionalCall', _229 => _229(item)]), () => ( void 0));
|
|
13025
13028
|
const cls = typeof rowClassName === "function" ? rowClassName(item, index) : rowClassName;
|
|
13026
13029
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13027
13030
|
DataTableRow,
|
|
@@ -13032,7 +13035,7 @@ function DataTableBody({
|
|
|
13032
13035
|
compact,
|
|
13033
13036
|
rowHeightClassName,
|
|
13034
13037
|
className: cls,
|
|
13035
|
-
subRow: _optionalChain([renderSubRow, 'optionalCall',
|
|
13038
|
+
subRow: _optionalChain([renderSubRow, 'optionalCall', _230 => _230(item)]),
|
|
13036
13039
|
"data-loading-item": true
|
|
13037
13040
|
},
|
|
13038
13041
|
row.id
|
|
@@ -13088,7 +13091,7 @@ function DataTableColumnFilter({
|
|
|
13088
13091
|
pending = false
|
|
13089
13092
|
}) {
|
|
13090
13093
|
const currentValue = column.getFilterValue();
|
|
13091
|
-
const activeCount = _nullishCoalesce(_optionalChain([currentValue, 'optionalAccess',
|
|
13094
|
+
const activeCount = _nullishCoalesce(_optionalChain([currentValue, 'optionalAccess', _231 => _231.length]), () => ( 0));
|
|
13092
13095
|
const sections = _react.useMemo.call(void 0,
|
|
13093
13096
|
() => [
|
|
13094
13097
|
{
|
|
@@ -13220,7 +13223,7 @@ function DataTableHeader({
|
|
|
13220
13223
|
);
|
|
13221
13224
|
}
|
|
13222
13225
|
function keepsCellOnTablet(meta) {
|
|
13223
|
-
return Boolean(_optionalChain([meta, 'optionalAccess',
|
|
13226
|
+
return Boolean(_optionalChain([meta, 'optionalAccess', _232 => _232.filter])) || _optionalChain([meta, 'optionalAccess', _233 => _233.sortable]) === true || _optionalChain([meta, 'optionalAccess', _234 => _234.alwaysShowHeader]) === true;
|
|
13224
13227
|
}
|
|
13225
13228
|
var SHOW_FROM = {
|
|
13226
13229
|
md: "content-md:flex",
|
|
@@ -13258,11 +13261,11 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13258
13261
|
if (header.isPlaceholder) return null;
|
|
13259
13262
|
const column = header.column;
|
|
13260
13263
|
const meta = column.columnDef.meta;
|
|
13261
|
-
const filter = _optionalChain([meta, 'optionalAccess',
|
|
13264
|
+
const filter = _optionalChain([meta, 'optionalAccess', _235 => _235.filter]);
|
|
13262
13265
|
const keepOnTablet = keepsCellOnTablet(meta);
|
|
13263
|
-
const align = _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
13264
|
-
const canSort = _optionalChain([meta, 'optionalAccess',
|
|
13265
|
-
const sortDir = _optionalChain([sort, 'optionalAccess',
|
|
13266
|
+
const align = _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _236 => _236.align]), () => ( "left"));
|
|
13267
|
+
const canSort = _optionalChain([meta, 'optionalAccess', _237 => _237.sortable]) === true;
|
|
13268
|
+
const sortDir = _optionalChain([sort, 'optionalAccess', _238 => _238.id]) === column.id ? sort.desc ? "desc" : "asc" : false;
|
|
13266
13269
|
const filterTrigger = filter ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13267
13270
|
DataTableColumnFilter,
|
|
13268
13271
|
{
|
|
@@ -13281,7 +13284,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13281
13284
|
"items-stretch",
|
|
13282
13285
|
// Cells are hidden rather than dropped from the tree, so which columns
|
|
13283
13286
|
// exist never depends on when an effect ran.
|
|
13284
|
-
getCellVisibilityClasses(keepOnTablet, _optionalChain([meta, 'optionalAccess',
|
|
13287
|
+
getCellVisibilityClasses(keepOnTablet, _optionalChain([meta, 'optionalAccess', _239 => _239.hideAt])),
|
|
13285
13288
|
// Width applies from lg only. Stated as "always, neutralized below lg"
|
|
13286
13289
|
// because `meta.width` is an opaque consumer string that cannot be
|
|
13287
13290
|
// prefixed. Only `keepOnTablet` cells need the override — the rest are
|
|
@@ -13299,17 +13302,17 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13299
13302
|
// Specificity rather than `!important`: it stays a normal declaration, so a
|
|
13300
13303
|
// consumer that genuinely needs a tablet width can still take it back with a
|
|
13301
13304
|
// more specific rule — `!important` could only be answered with another one.
|
|
13302
|
-
_optionalChain([meta, 'optionalAccess',
|
|
13305
|
+
_optionalChain([meta, 'optionalAccess', _240 => _240.width]) || "min-w-0 flex-1",
|
|
13303
13306
|
keepOnTablet && "content-max-lg:[&&]:w-auto content-max-lg:[&&]:flex-none content-max-lg:[&&]:basis-auto",
|
|
13304
|
-
_optionalChain([meta, 'optionalAccess',
|
|
13307
|
+
_optionalChain([meta, 'optionalAccess', _241 => _241.headerClassName])
|
|
13305
13308
|
),
|
|
13306
13309
|
children: filterTrigger ? (
|
|
13307
13310
|
// Only a column that HAS a hint gets the extra row, so every existing
|
|
13308
13311
|
// filter header keeps its exact structure — the trigger stays a direct
|
|
13309
13312
|
// child of the cell.
|
|
13310
|
-
_optionalChain([meta, 'optionalAccess',
|
|
13313
|
+
_optionalChain([meta, 'optionalAccess', _242 => _242.hint]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13311
13314
|
filterTrigger,
|
|
13312
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13315
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIE3CPPHJcjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
13313
13316
|
] }) : filterTrigger
|
|
13314
13317
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13315
13318
|
"div",
|
|
@@ -13323,9 +13326,9 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13323
13326
|
keepOnTablet && "content-max-lg:justify-start",
|
|
13324
13327
|
canSort && "group cursor-pointer"
|
|
13325
13328
|
),
|
|
13326
|
-
onClick: canSort ? () => _optionalChain([onSortChange, 'optionalCall',
|
|
13329
|
+
onClick: canSort ? () => _optionalChain([onSortChange, 'optionalCall', _243 => _243(column.id)]) : void 0,
|
|
13327
13330
|
children: [
|
|
13328
|
-
_optionalChain([meta, 'optionalAccess',
|
|
13331
|
+
_optionalChain([meta, 'optionalAccess', _244 => _244.hint]) ? (
|
|
13329
13332
|
// The hint shares a LABEL GROUP with the text, pinned to the FIRST
|
|
13330
13333
|
// line (`items-start`): on a label that breaks onto a second line it
|
|
13331
13334
|
// reads beside the opening word instead of floating in the gap
|
|
@@ -13334,7 +13337,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13334
13337
|
// centred on the row.
|
|
13335
13338
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13336
13339
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
13337
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13340
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIE3CPPHJcjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
13338
13341
|
] })
|
|
13339
13342
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
13340
13343
|
canSort && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortIcon, { sorted: sortDir })
|
|
@@ -13348,7 +13351,7 @@ var DATA_TABLE_HEADER_LABEL_CLASS = "min-w-0 text-balance uppercase text-ods-tex
|
|
|
13348
13351
|
var DATA_TABLE_HEADER_LABEL_BAR_CLASS = "w-40 max-w-full";
|
|
13349
13352
|
function HeaderLabel({ header }) {
|
|
13350
13353
|
const headerDef = header.column.columnDef.header;
|
|
13351
|
-
if (_optionalChain([header, 'access',
|
|
13354
|
+
if (_optionalChain([header, 'access', _245 => _245.column, 'access', _246 => _246.columnDef, 'access', _247 => _247.meta, 'optionalAccess', _248 => _248.headerLoading])) {
|
|
13352
13355
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: DATA_TABLE_HEADER_LABEL_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: DATA_TABLE_HEADER_LABEL_BAR_CLASS }) });
|
|
13353
13356
|
}
|
|
13354
13357
|
if (headerDef === void 0) return null;
|
|
@@ -13402,9 +13405,9 @@ function DataTableInfiniteFooter({
|
|
|
13402
13405
|
loadMore.setSkeletonRows(requestedRows);
|
|
13403
13406
|
return () => loadMore.setSkeletonRows(0);
|
|
13404
13407
|
}, [loadMore, requestedRows]);
|
|
13405
|
-
const tableRows = _optionalChain([table, 'optionalAccess',
|
|
13406
|
-
const progressCount = _nullishCoalesce(loadedCount, () => ( _optionalChain([tableRows, 'optionalAccess',
|
|
13407
|
-
const lastRowId = _nullishCoalesce(_optionalChain([tableRows, 'optionalAccess',
|
|
13408
|
+
const tableRows = _optionalChain([table, 'optionalAccess', _249 => _249.getRowModel, 'call', _250 => _250(), 'access', _251 => _251.rows]);
|
|
13409
|
+
const progressCount = _nullishCoalesce(loadedCount, () => ( _optionalChain([tableRows, 'optionalAccess', _252 => _252.length])));
|
|
13410
|
+
const lastRowId = _nullishCoalesce(_optionalChain([tableRows, 'optionalAccess', _253 => _253[tableRows.length - 1], 'optionalAccess', _254 => _254.id]), () => ( ""));
|
|
13408
13411
|
const tail = progressCount === void 0 ? null : `${progressCount}:${lastRowId}`;
|
|
13409
13412
|
const [wasFetching, setWasFetching] = _react.useState.call(void 0, isFetchingNextPage);
|
|
13410
13413
|
const [tailAtFetchStart, setTailAtFetchStart] = _react.useState.call(void 0, null);
|
|
@@ -13425,7 +13428,7 @@ function DataTableInfiniteFooter({
|
|
|
13425
13428
|
if (!sentinel) return void 0;
|
|
13426
13429
|
const observer = new IntersectionObserver(
|
|
13427
13430
|
(entries) => {
|
|
13428
|
-
if (_optionalChain([entries, 'access',
|
|
13431
|
+
if (_optionalChain([entries, 'access', _255 => _255[0], 'optionalAccess', _256 => _256.isIntersecting])) onLoadMoreRef.current();
|
|
13429
13432
|
},
|
|
13430
13433
|
{ root: findScrollParent(sentinel), rootMargin }
|
|
13431
13434
|
);
|
|
@@ -13463,10 +13466,10 @@ function DataTableRowCount({
|
|
|
13463
13466
|
const inScope = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loading;
|
|
13464
13467
|
const count = _nullishCoalesce(totalCount, () => ( table.getRowModel().rows.length));
|
|
13465
13468
|
if (inScope) {
|
|
13466
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTableRowCountSkeleton, { label: _nullishCoalesce(_optionalChain([pluralize, 'optionalCall',
|
|
13469
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTableRowCountSkeleton, { label: _nullishCoalesce(_optionalChain([pluralize, 'optionalCall', _257 => _257(2, itemName)]), () => ( `${itemName}s`)), className });
|
|
13467
13470
|
}
|
|
13468
13471
|
if (hideWhenEmpty && count === 0) return null;
|
|
13469
|
-
const label = _nullishCoalesce(_optionalChain([pluralize, 'optionalCall',
|
|
13472
|
+
const label = _nullishCoalesce(_optionalChain([pluralize, 'optionalCall', _258 => _258(count, itemName)]), () => ( (count === 1 ? itemName : `${itemName}s`)));
|
|
13470
13473
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, ROW_COUNT_CLASS, className), children: [
|
|
13471
13474
|
count,
|
|
13472
13475
|
" ",
|
|
@@ -13573,7 +13576,7 @@ function PhoneInput({
|
|
|
13573
13576
|
placeholder = "Phone Number (optional)",
|
|
13574
13577
|
onKeyDown
|
|
13575
13578
|
}) {
|
|
13576
|
-
const { priority, others } = _react.useMemo.call(void 0, () =>
|
|
13579
|
+
const { priority, others } = _react.useMemo.call(void 0, () => _chunkIE3CPPHJcjs.getCountryPhoneData.call(void 0, ), []);
|
|
13577
13580
|
const selectedCountry = _react.useMemo.call(void 0,
|
|
13578
13581
|
() => [...priority, ...others].find((c) => c.code === countryCode),
|
|
13579
13582
|
[countryCode, priority, others]
|
|
@@ -13585,12 +13588,12 @@ function PhoneInput({
|
|
|
13585
13588
|
(phone) => {
|
|
13586
13589
|
if (!phone || digitCount(phone) === 0) {
|
|
13587
13590
|
setIsInvalid(false);
|
|
13588
|
-
_optionalChain([onValidationChange, 'optionalCall',
|
|
13591
|
+
_optionalChain([onValidationChange, 'optionalCall', _259 => _259(false)]);
|
|
13589
13592
|
return;
|
|
13590
13593
|
}
|
|
13591
|
-
const invalid = !
|
|
13594
|
+
const invalid = !_chunkIE3CPPHJcjs.validatePhoneNumber.call(void 0, phone, countryCode);
|
|
13592
13595
|
setIsInvalid(invalid);
|
|
13593
|
-
_optionalChain([onValidationChange, 'optionalCall',
|
|
13596
|
+
_optionalChain([onValidationChange, 'optionalCall', _260 => _260(invalid)]);
|
|
13594
13597
|
},
|
|
13595
13598
|
[countryCode, digitCount, onValidationChange]
|
|
13596
13599
|
);
|
|
@@ -13608,7 +13611,7 @@ function PhoneInput({
|
|
|
13608
13611
|
}, []);
|
|
13609
13612
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 gap-2", children: [
|
|
13610
13613
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13611
|
-
|
|
13614
|
+
_chunkIYWX4GOGcjs.Select,
|
|
13612
13615
|
{
|
|
13613
13616
|
value: countryCode,
|
|
13614
13617
|
onValueChange: (val) => {
|
|
@@ -13619,14 +13622,14 @@ function PhoneInput({
|
|
|
13619
13622
|
},
|
|
13620
13623
|
disabled,
|
|
13621
13624
|
children: [
|
|
13622
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13625
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectTrigger, { className: "w-[130px] shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectValue, { children: selectedCountry && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-1.5", children: [
|
|
13623
13626
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: selectedCountry.flag }),
|
|
13624
13627
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: selectedCountry.dialCode })
|
|
13625
13628
|
] }) }) }),
|
|
13626
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13627
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13628
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13629
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13629
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIYWX4GOGcjs.SelectContent, { className: "max-h-[300px] !w-[280px]", children: [
|
|
13630
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectGroup, { children: priority.map((country) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CountryOption, { country }, country.code)) }),
|
|
13631
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectSeparator, {}),
|
|
13632
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectGroup, { children: others.map((country) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CountryOption, { country }, country.code)) })
|
|
13630
13633
|
] })
|
|
13631
13634
|
]
|
|
13632
13635
|
}
|
|
@@ -13644,7 +13647,7 @@ function PhoneInput({
|
|
|
13644
13647
|
debouncedValidation(val);
|
|
13645
13648
|
} else if (digitCount(val) === 0) {
|
|
13646
13649
|
setIsInvalid(false);
|
|
13647
|
-
_optionalChain([onValidationChange, 'optionalCall',
|
|
13650
|
+
_optionalChain([onValidationChange, 'optionalCall', _261 => _261(false)]);
|
|
13648
13651
|
}
|
|
13649
13652
|
}
|
|
13650
13653
|
},
|
|
@@ -13658,7 +13661,7 @@ function PhoneInput({
|
|
|
13658
13661
|
] });
|
|
13659
13662
|
}
|
|
13660
13663
|
function CountryOption({ country }) {
|
|
13661
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13664
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: country.code, textValue: country.name, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-2", children: [
|
|
13662
13665
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0", children: country.flag }),
|
|
13663
13666
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary", children: country.dialCode }),
|
|
13664
13667
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-block max-w-[140px] overflow-hidden text-ellipsis whitespace-nowrap", children: country.name })
|
|
@@ -13764,7 +13767,7 @@ function SearchInput({
|
|
|
13764
13767
|
if (!showHiddenTags) return void 0;
|
|
13765
13768
|
const handleClick = (e) => {
|
|
13766
13769
|
const target = e.target;
|
|
13767
|
-
if (!_optionalChain([hiddenTagsRef, 'access',
|
|
13770
|
+
if (!_optionalChain([hiddenTagsRef, 'access', _262 => _262.current, 'optionalAccess', _263 => _263.contains, 'call', _264 => _264(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _265 => _265.current, 'optionalAccess', _266 => _266.contains, 'call', _267 => _267(target)])) {
|
|
13768
13771
|
setShowHiddenTags(false);
|
|
13769
13772
|
}
|
|
13770
13773
|
};
|
|
@@ -13775,7 +13778,7 @@ function SearchInput({
|
|
|
13775
13778
|
const popup = hiddenTagsPopupRef.current;
|
|
13776
13779
|
const badge = badgeRef.current;
|
|
13777
13780
|
if (!popup || !badge) return;
|
|
13778
|
-
const originLeft = _nullishCoalesce(_optionalChain([containerRef, 'access',
|
|
13781
|
+
const originLeft = _nullishCoalesce(_optionalChain([containerRef, 'access', _268 => _268.current, 'optionalAccess', _269 => _269.getBoundingClientRect, 'call', _270 => _270(), 'access', _271 => _271.left]), () => ( 0));
|
|
13779
13782
|
popup.style.left = `${badge.getBoundingClientRect().left - originLeft}px`;
|
|
13780
13783
|
});
|
|
13781
13784
|
const hiddenCount = filterChips.length - visibleCount;
|
|
@@ -13810,7 +13813,7 @@ function SearchInput({
|
|
|
13810
13813
|
} else {
|
|
13811
13814
|
setInternalValue(newVal);
|
|
13812
13815
|
}
|
|
13813
|
-
if (newVal === "" && currentValue !== "") _optionalChain([onSubmit, 'optionalCall',
|
|
13816
|
+
if (newVal === "" && currentValue !== "") _optionalChain([onSubmit, 'optionalCall', _272 => _272("")]);
|
|
13814
13817
|
if (!isOpen) setIsOpen(true);
|
|
13815
13818
|
setHighlightedIndex(-1);
|
|
13816
13819
|
};
|
|
@@ -13822,11 +13825,11 @@ function SearchInput({
|
|
|
13822
13825
|
} else {
|
|
13823
13826
|
setInternalValue("");
|
|
13824
13827
|
}
|
|
13825
|
-
if (currentValue !== "") _optionalChain([onSubmit, 'optionalCall',
|
|
13826
|
-
_optionalChain([inputRef, 'access',
|
|
13828
|
+
if (currentValue !== "") _optionalChain([onSubmit, 'optionalCall', _273 => _273("")]);
|
|
13829
|
+
_optionalChain([inputRef, 'access', _274 => _274.current, 'optionalAccess', _275 => _275.focus, 'call', _276 => _276()]);
|
|
13827
13830
|
};
|
|
13828
13831
|
const handleResultClick = (result, e) => {
|
|
13829
|
-
_optionalChain([onResultSelect, 'optionalCall',
|
|
13832
|
+
_optionalChain([onResultSelect, 'optionalCall', _277 => _277(
|
|
13830
13833
|
result,
|
|
13831
13834
|
e ? {
|
|
13832
13835
|
metaKey: e.metaKey,
|
|
@@ -13854,7 +13857,7 @@ function SearchInput({
|
|
|
13854
13857
|
if (highlightedIndex >= 0 && flatResults[highlightedIndex]) {
|
|
13855
13858
|
handleResultClick(flatResults[highlightedIndex]);
|
|
13856
13859
|
} else {
|
|
13857
|
-
_optionalChain([onSubmit, 'optionalCall',
|
|
13860
|
+
_optionalChain([onSubmit, 'optionalCall', _278 => _278(currentValue)]);
|
|
13858
13861
|
}
|
|
13859
13862
|
break;
|
|
13860
13863
|
case "Escape":
|
|
@@ -13939,7 +13942,7 @@ function SearchInput({
|
|
|
13939
13942
|
),
|
|
13940
13943
|
onClick: () => {
|
|
13941
13944
|
if (disabled) return;
|
|
13942
|
-
_optionalChain([inputRef, 'access',
|
|
13945
|
+
_optionalChain([inputRef, 'access', _279 => _279.current, 'optionalAccess', _280 => _280.focus, 'call', _281 => _281()]);
|
|
13943
13946
|
setIsOpen(true);
|
|
13944
13947
|
},
|
|
13945
13948
|
children: [
|
|
@@ -14024,10 +14027,10 @@ function SearchInput({
|
|
|
14024
14027
|
collisionPadding: { bottom: keyboardPadding },
|
|
14025
14028
|
onOpenAutoFocus: (e) => {
|
|
14026
14029
|
e.preventDefault();
|
|
14027
|
-
_optionalChain([inputRef, 'access',
|
|
14030
|
+
_optionalChain([inputRef, 'access', _282 => _282.current, 'optionalAccess', _283 => _283.focus, 'call', _284 => _284()]);
|
|
14028
14031
|
},
|
|
14029
14032
|
onInteractOutside: (e) => {
|
|
14030
|
-
if (_optionalChain([containerRef, 'access',
|
|
14033
|
+
if (_optionalChain([containerRef, 'access', _285 => _285.current, 'optionalAccess', _286 => _286.contains, 'call', _287 => _287(e.target)])) {
|
|
14031
14034
|
e.preventDefault();
|
|
14032
14035
|
}
|
|
14033
14036
|
},
|
|
@@ -14039,12 +14042,12 @@ function SearchInput({
|
|
|
14039
14042
|
)
|
|
14040
14043
|
] }),
|
|
14041
14044
|
showHiddenTags && hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14042
|
-
|
|
14045
|
+
_chunkIYWX4GOGcjs.HiddenTagsPopup,
|
|
14043
14046
|
{
|
|
14044
14047
|
ref: hiddenTagsPopupRef,
|
|
14045
14048
|
items: hiddenChips.map((chip) => ({ label: chip.label, value: chip.id })),
|
|
14046
14049
|
onRemove: (removedTag) => {
|
|
14047
|
-
_optionalChain([onFilterRemove, 'optionalCall',
|
|
14050
|
+
_optionalChain([onFilterRemove, 'optionalCall', _288 => _288(removedTag)]);
|
|
14048
14051
|
if (hiddenCount <= 1) setShowHiddenTags(false);
|
|
14049
14052
|
}
|
|
14050
14053
|
}
|
|
@@ -14086,7 +14089,7 @@ function FilterListItem({
|
|
|
14086
14089
|
}) {
|
|
14087
14090
|
const handleToggle = () => {
|
|
14088
14091
|
if (disabled) return;
|
|
14089
|
-
_optionalChain([onToggle, 'optionalCall',
|
|
14092
|
+
_optionalChain([onToggle, 'optionalCall', _289 => _289(!selected)]);
|
|
14090
14093
|
};
|
|
14091
14094
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14092
14095
|
"div",
|
|
@@ -14133,7 +14136,7 @@ function FilterListItem({
|
|
|
14133
14136
|
CheckboxPrimitive2.Root,
|
|
14134
14137
|
{
|
|
14135
14138
|
checked: selected,
|
|
14136
|
-
onCheckedChange: (c) => _optionalChain([onToggle, 'optionalCall',
|
|
14139
|
+
onCheckedChange: (c) => _optionalChain([onToggle, 'optionalCall', _290 => _290(c === true)]),
|
|
14137
14140
|
onClick: (e) => e.stopPropagation(),
|
|
14138
14141
|
disabled,
|
|
14139
14142
|
"aria-label": title,
|
|
@@ -14214,7 +14217,7 @@ function TagSearchInput({
|
|
|
14214
14217
|
if (!showHiddenTags) return void 0;
|
|
14215
14218
|
const handleClick = (e) => {
|
|
14216
14219
|
const target = e.target;
|
|
14217
|
-
if (!_optionalChain([hiddenTagsRef, 'access',
|
|
14220
|
+
if (!_optionalChain([hiddenTagsRef, 'access', _291 => _291.current, 'optionalAccess', _292 => _292.contains, 'call', _293 => _293(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _294 => _294.current, 'optionalAccess', _295 => _295.contains, 'call', _296 => _296(target)])) {
|
|
14218
14221
|
setShowHiddenTags(false);
|
|
14219
14222
|
}
|
|
14220
14223
|
};
|
|
@@ -14225,7 +14228,7 @@ function TagSearchInput({
|
|
|
14225
14228
|
const popup = hiddenTagsPopupRef.current;
|
|
14226
14229
|
const badge = badgeRef.current;
|
|
14227
14230
|
if (!popup || !badge) return;
|
|
14228
|
-
const originLeft = _nullishCoalesce(_optionalChain([wrapperRef, 'access',
|
|
14231
|
+
const originLeft = _nullishCoalesce(_optionalChain([wrapperRef, 'access', _297 => _297.current, 'optionalAccess', _298 => _298.getBoundingClientRect, 'call', _299 => _299(), 'access', _300 => _300.left]), () => ( 0));
|
|
14229
14232
|
popup.style.left = `${badge.getBoundingClientRect().left - originLeft}px`;
|
|
14230
14233
|
});
|
|
14231
14234
|
const hiddenCount = tags.length - visibleCount;
|
|
@@ -14237,13 +14240,13 @@ function TagSearchInput({
|
|
|
14237
14240
|
e.preventDefault();
|
|
14238
14241
|
onSubmit(searchValue);
|
|
14239
14242
|
}
|
|
14240
|
-
_optionalChain([onKeyDown, 'optionalCall',
|
|
14243
|
+
_optionalChain([onKeyDown, 'optionalCall', _301 => _301(e)]);
|
|
14241
14244
|
};
|
|
14242
14245
|
const handleClearAll = (e) => {
|
|
14243
14246
|
e.stopPropagation();
|
|
14244
14247
|
e.preventDefault();
|
|
14245
|
-
_optionalChain([onClearAll, 'optionalCall',
|
|
14246
|
-
_optionalChain([inputRef, 'access',
|
|
14248
|
+
_optionalChain([onClearAll, 'optionalCall', _302 => _302()]);
|
|
14249
|
+
_optionalChain([inputRef, 'access', _303 => _303.current, 'optionalAccess', _304 => _304.focus, 'call', _305 => _305()]);
|
|
14247
14250
|
};
|
|
14248
14251
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: wrapperRef, className: "relative", children: [
|
|
14249
14252
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -14266,7 +14269,7 @@ function TagSearchInput({
|
|
|
14266
14269
|
className
|
|
14267
14270
|
),
|
|
14268
14271
|
onClick: () => {
|
|
14269
|
-
if (!disabled) _optionalChain([inputRef, 'access',
|
|
14272
|
+
if (!disabled) _optionalChain([inputRef, 'access', _306 => _306.current, 'optionalAccess', _307 => _307.focus, 'call', _308 => _308()]);
|
|
14270
14273
|
},
|
|
14271
14274
|
children: [
|
|
14272
14275
|
/* @__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" }) }),
|
|
@@ -14331,7 +14334,7 @@ function TagSearchInput({
|
|
|
14331
14334
|
}
|
|
14332
14335
|
),
|
|
14333
14336
|
showHiddenTags && hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14334
|
-
|
|
14337
|
+
_chunkIYWX4GOGcjs.HiddenTagsPopup,
|
|
14335
14338
|
{
|
|
14336
14339
|
ref: hiddenTagsPopupRef,
|
|
14337
14340
|
items: hiddenTags,
|
|
@@ -14447,19 +14450,19 @@ function MarkdownLinkDialog({ isOpen, initial, editing, onSubmit, onRemove, onCl
|
|
|
14447
14450
|
),
|
|
14448
14451
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xsf)]", children: [
|
|
14449
14452
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14450
|
-
|
|
14453
|
+
_chunkTVAU56UUcjs.TabSelector,
|
|
14451
14454
|
{
|
|
14452
14455
|
label: "Search engines",
|
|
14453
14456
|
value: choice,
|
|
14454
14457
|
onValueChange: (value) => {
|
|
14455
|
-
const next = _nullishCoalesce(_optionalChain([LINK_REL_CHOICES, 'access',
|
|
14458
|
+
const next = _nullishCoalesce(_optionalChain([LINK_REL_CHOICES, 'access', _309 => _309.find, 'call', _310 => _310((option) => option.id === value), 'optionalAccess', _311 => _311.id]), () => ( "follow"));
|
|
14456
14459
|
setRel(next === "follow" ? [] : [next]);
|
|
14457
14460
|
},
|
|
14458
14461
|
items: LINK_REL_ITEMS,
|
|
14459
14462
|
variant: "secondary"
|
|
14460
14463
|
}
|
|
14461
14464
|
),
|
|
14462
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: _optionalChain([LINK_REL_CHOICES, 'access',
|
|
14465
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: _optionalChain([LINK_REL_CHOICES, 'access', _312 => _312.find, 'call', _313 => _313((option) => option.id === choice), 'optionalAccess', _314 => _314.hint]) })
|
|
14463
14466
|
] })
|
|
14464
14467
|
]
|
|
14465
14468
|
}
|
|
@@ -14484,7 +14487,7 @@ function useMarkdownLinkCommand() {
|
|
|
14484
14487
|
void (async () => {
|
|
14485
14488
|
try {
|
|
14486
14489
|
const mod = await Promise.resolve().then(() => _interopRequireWildcard(require("@uiw/react-md-editor")));
|
|
14487
|
-
if (!cancelled && _optionalChain([mod, 'access',
|
|
14490
|
+
if (!cancelled && _optionalChain([mod, 'access', _315 => _315.commands, 'optionalAccess', _316 => _316.getCommands])) setVendorCommands(mod.commands.getCommands());
|
|
14488
14491
|
} catch (error) {
|
|
14489
14492
|
console.error("Failed to load markdown editor toolbar commands:", error);
|
|
14490
14493
|
}
|
|
@@ -14504,7 +14507,7 @@ function useMarkdownLinkCommand() {
|
|
|
14504
14507
|
buttonProps: { "aria-label": "Add or edit a link (ctrl + l)", title: "Add or edit a link (ctrl + l)" },
|
|
14505
14508
|
icon: command.icon,
|
|
14506
14509
|
execute: (state, api) => {
|
|
14507
|
-
const existing =
|
|
14510
|
+
const existing = _chunkTVAU56UUcjs.findMarkdownLinkAt.call(void 0, state.text, state.selection.start, state.selection.end);
|
|
14508
14511
|
setPending(
|
|
14509
14512
|
existing ? {
|
|
14510
14513
|
api,
|
|
@@ -14532,10 +14535,10 @@ function useMarkdownLinkCommand() {
|
|
|
14532
14535
|
MarkdownLinkDialog,
|
|
14533
14536
|
{
|
|
14534
14537
|
isOpen: pending !== null,
|
|
14535
|
-
initial: _nullishCoalesce(_optionalChain([pending, 'optionalAccess',
|
|
14536
|
-
editing: _nullishCoalesce(_optionalChain([pending, 'optionalAccess',
|
|
14538
|
+
initial: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _317 => _317.initial]), () => ( EMPTY_LINK)),
|
|
14539
|
+
editing: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _318 => _318.editing]), () => ( false)),
|
|
14537
14540
|
onSubmit: (link) => {
|
|
14538
|
-
if (pending) write(pending,
|
|
14541
|
+
if (pending) write(pending, _chunkTVAU56UUcjs.formatMarkdownLink.call(void 0, link));
|
|
14539
14542
|
},
|
|
14540
14543
|
onRemove: () => {
|
|
14541
14544
|
if (pending) write(pending, pending.initial.text);
|
|
@@ -14666,7 +14669,7 @@ function MarkdownEditor({
|
|
|
14666
14669
|
try {
|
|
14667
14670
|
const mod = await Promise.resolve().then(() => _interopRequireWildcard(require("@uiw/react-md-editor")));
|
|
14668
14671
|
if (cancelled) return;
|
|
14669
|
-
if (_optionalChain([mod, 'access',
|
|
14672
|
+
if (_optionalChain([mod, 'access', _319 => _319.commands, 'optionalAccess', _320 => _320.getExtraCommands])) {
|
|
14670
14673
|
setDefaultExtraCommands(mod.commands.getExtraCommands());
|
|
14671
14674
|
}
|
|
14672
14675
|
} catch (error) {
|
|
@@ -14704,7 +14707,7 @@ function MarkdownEditor({
|
|
|
14704
14707
|
const isImage = _chunkFAUVDMH4cjs.fileMediaType.call(void 0, file) === "image";
|
|
14705
14708
|
const markdown = isImage ? `` : `[${file.name}](${url})`;
|
|
14706
14709
|
insertTextAtCursor(markdown);
|
|
14707
|
-
_optionalChain([onFileUploaded, 'optionalCall',
|
|
14710
|
+
_optionalChain([onFileUploaded, 'optionalCall', _321 => _321(url, file.name)]);
|
|
14708
14711
|
} catch (error) {
|
|
14709
14712
|
console.error("File upload failed:", error);
|
|
14710
14713
|
setUploadProgress("Upload failed. Please try again.");
|
|
@@ -14718,7 +14721,7 @@ function MarkdownEditor({
|
|
|
14718
14721
|
const handleFileInputChange = _react.useCallback.call(void 0,
|
|
14719
14722
|
(e) => {
|
|
14720
14723
|
const input = e.target;
|
|
14721
|
-
const file = _optionalChain([input, 'access',
|
|
14724
|
+
const file = _optionalChain([input, 'access', _322 => _322.files, 'optionalAccess', _323 => _323[0]]);
|
|
14722
14725
|
if (file) {
|
|
14723
14726
|
void handleFileUpload(file);
|
|
14724
14727
|
input.value = "";
|
|
@@ -14729,7 +14732,7 @@ function MarkdownEditor({
|
|
|
14729
14732
|
const handlePaste = _react.useCallback.call(void 0,
|
|
14730
14733
|
(e) => {
|
|
14731
14734
|
if (!onUploadFile) return;
|
|
14732
|
-
const items = _optionalChain([e, 'access',
|
|
14735
|
+
const items = _optionalChain([e, 'access', _324 => _324.clipboardData, 'optionalAccess', _325 => _325.items]);
|
|
14733
14736
|
if (!items) return;
|
|
14734
14737
|
for (const item of items) {
|
|
14735
14738
|
if (item.type.startsWith("image/")) {
|
|
@@ -14754,7 +14757,7 @@ function MarkdownEditor({
|
|
|
14754
14757
|
buttonProps: { "aria-label": "Upload file", title: "Upload file" },
|
|
14755
14758
|
icon: isUploading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "h-3 w-3 animate-spin" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Upload, { className: "h-3 w-3" }),
|
|
14756
14759
|
execute: () => {
|
|
14757
|
-
_optionalChain([fileInputRef, 'access',
|
|
14760
|
+
_optionalChain([fileInputRef, 'access', _326 => _326.current, 'optionalAccess', _327 => _327.click, 'call', _328 => _328()]);
|
|
14758
14761
|
}
|
|
14759
14762
|
} : null;
|
|
14760
14763
|
const extraCommands = uploadCommand ? [...defaultExtraCommands, uploadCommand] : defaultExtraCommands;
|
|
@@ -14766,7 +14769,7 @@ function MarkdownEditor({
|
|
|
14766
14769
|
const EDGE_ZONE = 60;
|
|
14767
14770
|
const MAX_SCROLL_SPEED = 15;
|
|
14768
14771
|
const findScrollParent2 = _react.useCallback.call(void 0, (el) => {
|
|
14769
|
-
let node = _optionalChain([el, 'optionalAccess',
|
|
14772
|
+
let node = _optionalChain([el, 'optionalAccess', _329 => _329.parentElement]);
|
|
14770
14773
|
while (node && node !== document.documentElement) {
|
|
14771
14774
|
const { overflowY } = window.getComputedStyle(node);
|
|
14772
14775
|
if ((overflowY === "auto" || overflowY === "scroll") && node.scrollHeight > node.clientHeight) {
|
|
@@ -14906,7 +14909,7 @@ function matchesAccept(file, accept) {
|
|
|
14906
14909
|
});
|
|
14907
14910
|
}
|
|
14908
14911
|
function dragHasFiles(e) {
|
|
14909
|
-
const types = _optionalChain([e, 'access',
|
|
14912
|
+
const types = _optionalChain([e, 'access', _330 => _330.dataTransfer, 'optionalAccess', _331 => _331.types]);
|
|
14910
14913
|
if (!types) return false;
|
|
14911
14914
|
for (let i = 0; i < types.length; i++) {
|
|
14912
14915
|
if (types[i] === "Files") return true;
|
|
@@ -15005,7 +15008,7 @@ function FileUpload({
|
|
|
15005
15008
|
e.stopPropagation();
|
|
15006
15009
|
setDragActive(false);
|
|
15007
15010
|
if (disabled) return;
|
|
15008
|
-
if (_optionalChain([e, 'access',
|
|
15011
|
+
if (_optionalChain([e, 'access', _332 => _332.dataTransfer, 'access', _333 => _333.files, 'optionalAccess', _334 => _334.length])) {
|
|
15009
15012
|
handleFiles(e.dataTransfer.files);
|
|
15010
15013
|
}
|
|
15011
15014
|
};
|
|
@@ -15033,7 +15036,7 @@ function FileUpload({
|
|
|
15033
15036
|
e.preventDefault();
|
|
15034
15037
|
dragCounter = 0;
|
|
15035
15038
|
setDragActive(false);
|
|
15036
|
-
if (_optionalChain([e, 'access',
|
|
15039
|
+
if (_optionalChain([e, 'access', _335 => _335.dataTransfer, 'optionalAccess', _336 => _336.files, 'optionalAccess', _337 => _337.length])) {
|
|
15037
15040
|
handleFilesRef.current(e.dataTransfer.files);
|
|
15038
15041
|
}
|
|
15039
15042
|
};
|
|
@@ -15055,7 +15058,7 @@ function FileUpload({
|
|
|
15055
15058
|
};
|
|
15056
15059
|
}, [acceptWindowDrops, disabled]);
|
|
15057
15060
|
const handleFileSelect = (e) => {
|
|
15058
|
-
if (_optionalChain([e, 'access',
|
|
15061
|
+
if (_optionalChain([e, 'access', _338 => _338.target, 'access', _339 => _339.files, 'optionalAccess', _340 => _340.length])) {
|
|
15059
15062
|
handleFiles(e.target.files);
|
|
15060
15063
|
}
|
|
15061
15064
|
};
|
|
@@ -15073,7 +15076,7 @@ function FileUpload({
|
|
|
15073
15076
|
const openDialog = async () => {
|
|
15074
15077
|
if (disabled) return;
|
|
15075
15078
|
if (!pickFiles) {
|
|
15076
|
-
_optionalChain([fileInputRef, 'access',
|
|
15079
|
+
_optionalChain([fileInputRef, 'access', _341 => _341.current, 'optionalAccess', _342 => _342.click, 'call', _343 => _343()]);
|
|
15077
15080
|
return;
|
|
15078
15081
|
}
|
|
15079
15082
|
try {
|
|
@@ -15151,7 +15154,7 @@ function FileUpload({
|
|
|
15151
15154
|
"data-tone": "error",
|
|
15152
15155
|
size: "icon-sm",
|
|
15153
15156
|
type: "button",
|
|
15154
|
-
onClick: () => _optionalChain([onRemoveManagedFile, 'optionalCall',
|
|
15157
|
+
onClick: () => _optionalChain([onRemoveManagedFile, 'optionalCall', _344 => _344(entry.id)]),
|
|
15155
15158
|
className: "shrink-0",
|
|
15156
15159
|
"aria-label": `Remove ${entry.fileName}`,
|
|
15157
15160
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYHH5EIOcjs.TrashIcon, { className: "text-ods-error" })
|
|
@@ -15291,7 +15294,7 @@ function ImageUploader({
|
|
|
15291
15294
|
onChange(file);
|
|
15292
15295
|
};
|
|
15293
15296
|
const handleFileSelect = (e) => {
|
|
15294
|
-
validateAndEmit(_optionalChain([e, 'access',
|
|
15297
|
+
validateAndEmit(_optionalChain([e, 'access', _345 => _345.target, 'access', _346 => _346.files, 'optionalAccess', _347 => _347[0]]));
|
|
15295
15298
|
if (inputRef.current) inputRef.current.value = "";
|
|
15296
15299
|
};
|
|
15297
15300
|
const handleDrag = (e) => {
|
|
@@ -15306,11 +15309,11 @@ function ImageUploader({
|
|
|
15306
15309
|
e.stopPropagation();
|
|
15307
15310
|
setDragActive(false);
|
|
15308
15311
|
if (!interactive) return;
|
|
15309
|
-
validateAndEmit(_optionalChain([e, 'access',
|
|
15312
|
+
validateAndEmit(_optionalChain([e, 'access', _348 => _348.dataTransfer, 'access', _349 => _349.files, 'optionalAccess', _350 => _350[0]]));
|
|
15310
15313
|
};
|
|
15311
15314
|
const openDialog = () => {
|
|
15312
15315
|
if (!interactive) return;
|
|
15313
|
-
_optionalChain([inputRef, 'access',
|
|
15316
|
+
_optionalChain([inputRef, 'access', _351 => _351.current, 'optionalAccess', _352 => _352.click, 'call', _353 => _353()]);
|
|
15314
15317
|
};
|
|
15315
15318
|
const handleRootKeyDown = (e) => {
|
|
15316
15319
|
if (hasImage || !interactive) return;
|
|
@@ -15477,21 +15480,21 @@ function ColorPresetSelect({
|
|
|
15477
15480
|
}) {
|
|
15478
15481
|
const selectedPreset = presets.find((p) => p.key === presetKey);
|
|
15479
15482
|
const isCustom = !selectedPreset;
|
|
15480
|
-
const displayLabel = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess',
|
|
15481
|
-
const displayColor = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess',
|
|
15483
|
+
const displayLabel = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _354 => _354.label]), () => ( "Custom"));
|
|
15484
|
+
const displayColor = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _355 => _355.color]), () => ( value));
|
|
15482
15485
|
const groups = [
|
|
15483
15486
|
{
|
|
15484
15487
|
items: [
|
|
15485
15488
|
...presets.map((p) => ({
|
|
15486
15489
|
id: p.key,
|
|
15487
15490
|
label: p.label,
|
|
15488
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15491
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2X3N6MSRcjs.ColorSwatch, { color: p.color }),
|
|
15489
15492
|
onClick: () => onChange({ color: p.color, preset: p.key })
|
|
15490
15493
|
})),
|
|
15491
15494
|
{
|
|
15492
15495
|
id: CUSTOM_PRESET_KEY,
|
|
15493
15496
|
label: "Custom",
|
|
15494
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15497
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2X3N6MSRcjs.ColorSwatch, { color: isCustom ? value : DEFAULT_CUSTOM_STATUS_COLOR }),
|
|
15495
15498
|
onClick: () => onChange({ color: value, preset: void 0 })
|
|
15496
15499
|
}
|
|
15497
15500
|
]
|
|
@@ -15508,7 +15511,7 @@ function ColorPresetSelect({
|
|
|
15508
15511
|
{
|
|
15509
15512
|
disabled,
|
|
15510
15513
|
"aria-label": `Color: ${displayLabel}`,
|
|
15511
|
-
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15514
|
+
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2X3N6MSRcjs.ColorSwatch, { color: displayColor }),
|
|
15512
15515
|
selectedLabel: displayLabel,
|
|
15513
15516
|
endIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TriggerChevron, {}),
|
|
15514
15517
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "group", className)
|
|
@@ -15646,7 +15649,7 @@ function ColorPickerInput({
|
|
|
15646
15649
|
{
|
|
15647
15650
|
disabled,
|
|
15648
15651
|
"aria-label": "Pick custom color",
|
|
15649
|
-
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15652
|
+
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2X3N6MSRcjs.ColorSwatch, { color: value }),
|
|
15650
15653
|
selectedLabel: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase", children: value }),
|
|
15651
15654
|
endIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TriggerChevron, {}),
|
|
15652
15655
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "group", className)
|
|
@@ -15727,7 +15730,7 @@ function TicketStatusConfigRow({
|
|
|
15727
15730
|
const previewVariant = _nullishCoalesce(systemTagVariant, () => ( (isSystem ? void 0 : "primary")));
|
|
15728
15731
|
const fieldRowOffset = "mt-[calc(var(--font-line-space-h4-body)+0.25rem)]";
|
|
15729
15732
|
const chip = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15730
|
-
|
|
15733
|
+
_chunk2X3N6MSRcjs.TicketStatusTag,
|
|
15731
15734
|
{
|
|
15732
15735
|
loading,
|
|
15733
15736
|
status: statusKey,
|
|
@@ -15791,7 +15794,7 @@ function TicketStatusConfigRow({
|
|
|
15791
15794
|
{
|
|
15792
15795
|
id: nameInputId,
|
|
15793
15796
|
value: name,
|
|
15794
|
-
onChange: (e) => _optionalChain([onNameChange, 'optionalCall',
|
|
15797
|
+
onChange: (e) => _optionalChain([onNameChange, 'optionalCall', _356 => _356(e.target.value)]),
|
|
15795
15798
|
disabled: isSystem,
|
|
15796
15799
|
readOnly: isSystem,
|
|
15797
15800
|
maxLength: 50
|
|
@@ -15844,9 +15847,9 @@ function TicketStatusConfigRow({
|
|
|
15844
15847
|
),
|
|
15845
15848
|
children: [
|
|
15846
15849
|
!isSystem && moveButtons,
|
|
15847
|
-
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,
|
|
15850
|
+
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, _chunkTELXF5WDcjs.TouchFriendlyTooltip, { content: systemTooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "bare", size: "icon-sm", type: "button", "aria-label": _nullishCoalesce(systemTooltip, () => ( "System status")), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRHC2FRVEcjs.InfoCircleIcon, { size: 24 }) }) }) }) : (
|
|
15848
15851
|
// The delete button is a static control: drawn for real in both forms, inert while the status is read.
|
|
15849
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.InertWhileLoading, { loading, className: "inline-flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15852
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.InertWhileLoading, { loading, className: "inline-flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTELXF5WDcjs.TouchFriendlyTooltip, { content: deleteDisabled && !loading ? deleteDisabledReason : void 0, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15850
15853
|
_chunkAHBTZ7DNcjs.Button,
|
|
15851
15854
|
{
|
|
15852
15855
|
type: "button",
|
|
@@ -15929,7 +15932,7 @@ function TestResultsTable({ rows, loading: loadingProp }) {
|
|
|
15929
15932
|
] }) }) });
|
|
15930
15933
|
}
|
|
15931
15934
|
function TestRunErrorBanner({ error, className }) {
|
|
15932
|
-
const { copy } =
|
|
15935
|
+
const { copy } = _chunkOG4XH6C5cjs.useCopyToClipboard.call(void 0, { successDescription: "Error message copied to clipboard" });
|
|
15933
15936
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
15934
15937
|
"div",
|
|
15935
15938
|
{
|
|
@@ -16356,14 +16359,14 @@ function TicketInfoSection({
|
|
|
16356
16359
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16357
16360
|
_chunk6UKH22NQcjs.SquareAvatar,
|
|
16358
16361
|
{
|
|
16359
|
-
src: _optionalChain([organization, 'optionalAccess',
|
|
16360
|
-
alt: _optionalChain([organization, 'optionalAccess',
|
|
16361
|
-
fallback: _optionalChain([organization, 'optionalAccess',
|
|
16362
|
+
src: _optionalChain([organization, 'optionalAccess', _357 => _357.imageSrc]),
|
|
16363
|
+
alt: _optionalChain([organization, 'optionalAccess', _358 => _358.name]),
|
|
16364
|
+
fallback: _optionalChain([organization, 'optionalAccess', _359 => _359.name]) || "Org",
|
|
16362
16365
|
size: "md",
|
|
16363
16366
|
className: "shrink-0"
|
|
16364
16367
|
}
|
|
16365
16368
|
),
|
|
16366
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: _optionalChain([organization, 'optionalAccess',
|
|
16369
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: _optionalChain([organization, 'optionalAccess', _360 => _360.name]) || "Unassigned", label: "Organization" })
|
|
16367
16370
|
] }),
|
|
16368
16371
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: assigned ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16369
16372
|
AssigneeDropdown,
|
|
@@ -16381,10 +16384,10 @@ function TicketInfoSection({
|
|
|
16381
16384
|
] }),
|
|
16382
16385
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "block truncate text-ods-text-secondary text-h6", children: "Assigned" })
|
|
16383
16386
|
] }) }),
|
|
16384
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: _optionalChain([device, 'optionalAccess',
|
|
16387
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: _optionalChain([device, 'optionalAccess', _361 => _361.name]) || "Unassigned", label: "Device", icon: _optionalChain([device, 'optionalAccess', _362 => _362.icon]), onClick: _optionalChain([device, 'optionalAccess', _363 => _363.onClick]) }),
|
|
16385
16388
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-4", children: [
|
|
16386
16389
|
(status || statusLabel) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16387
|
-
|
|
16390
|
+
_chunk2X3N6MSRcjs.TicketStatusTag,
|
|
16388
16391
|
{
|
|
16389
16392
|
status: _nullishCoalesce(status, () => ( "")),
|
|
16390
16393
|
label: statusLabel,
|
|
@@ -16414,7 +16417,7 @@ function TicketInfoSection({
|
|
|
16414
16417
|
expanded && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
16415
16418
|
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" }) }),
|
|
16416
16419
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-4 border-b border-ods-border bg-ods-bg p-4", children: [
|
|
16417
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16420
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTVAU56UUcjs.SimpleMarkdownRenderer, { content: description }),
|
|
16418
16421
|
attachments && attachments.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Attachments", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketAttachmentsList, { attachments }) }),
|
|
16419
16422
|
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, _chunk6UKH22NQcjs.Tag, { label: tag, variant: "outline", className: "max-w-full" }, tag)) }) }),
|
|
16420
16423
|
(notes || onAddNote) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Notes", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -16439,8 +16442,8 @@ function renderTicketStatusOption(option, isSelected) {
|
|
|
16439
16442
|
const { label, color } = option;
|
|
16440
16443
|
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: [
|
|
16441
16444
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
16442
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16443
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16445
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2X3N6MSRcjs.ColorSwatch, { color }),
|
|
16446
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { className: "text-inherit", children: label }) })
|
|
16444
16447
|
] }),
|
|
16445
16448
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
16446
16449
|
] });
|
|
@@ -16450,7 +16453,7 @@ function renderTicketAssigneeOption(option, isSelected) {
|
|
|
16450
16453
|
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: [
|
|
16451
16454
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
16452
16455
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6UKH22NQcjs.SquareAvatar, { src: imageUrl, alt: label, fallback: label, size: "sm", variant: "round" }),
|
|
16453
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16456
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { className: "text-inherit", children: label }) })
|
|
16454
16457
|
] }),
|
|
16455
16458
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
16456
16459
|
] });
|
|
@@ -16477,7 +16480,7 @@ function TakeOverTicketModal({
|
|
|
16477
16480
|
setAssigneeId(_nullishCoalesce(initialAssigneeId, () => ( null)));
|
|
16478
16481
|
}
|
|
16479
16482
|
}
|
|
16480
|
-
const selectedStatusId = _nullishCoalesce(_nullishCoalesce(statusId, () => ( _optionalChain([statusOptions, 'access',
|
|
16483
|
+
const selectedStatusId = _nullishCoalesce(_nullishCoalesce(statusId, () => ( _optionalChain([statusOptions, 'access', _364 => _364[0], 'optionalAccess', _365 => _365.value]))), () => ( null));
|
|
16481
16484
|
const selectedStatus = statusOptions.find((o) => o.value === selectedStatusId);
|
|
16482
16485
|
const selectedAssignee = assigneeOptions.find((o) => o.value === assigneeId);
|
|
16483
16486
|
const handleConfirm = () => {
|
|
@@ -16494,19 +16497,19 @@ function TakeOverTicketModal({
|
|
|
16494
16497
|
] }),
|
|
16495
16498
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)] md:flex-row", children: [
|
|
16496
16499
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16497
|
-
|
|
16500
|
+
_chunkIYWX4GOGcjs.Autocomplete,
|
|
16498
16501
|
{
|
|
16499
16502
|
label: "Status",
|
|
16500
16503
|
options: statusOptions,
|
|
16501
16504
|
value: selectedStatusId,
|
|
16502
16505
|
onChange: setStatusId,
|
|
16503
16506
|
placeholder: "Select Status",
|
|
16504
|
-
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16507
|
+
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2X3N6MSRcjs.ColorSwatch, { color: selectedStatus.color }) : void 0,
|
|
16505
16508
|
renderOption: renderTicketStatusOption
|
|
16506
16509
|
}
|
|
16507
16510
|
) }),
|
|
16508
16511
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16509
|
-
|
|
16512
|
+
_chunkIYWX4GOGcjs.Autocomplete,
|
|
16510
16513
|
{
|
|
16511
16514
|
label: "Assigned",
|
|
16512
16515
|
options: assigneeOptions,
|
|
@@ -16575,7 +16578,7 @@ function ReopenTicketModal({
|
|
|
16575
16578
|
setReason("");
|
|
16576
16579
|
}
|
|
16577
16580
|
}
|
|
16578
|
-
const selectedStatusId = _nullishCoalesce(_nullishCoalesce(statusId, () => ( _optionalChain([statusOptions, 'access',
|
|
16581
|
+
const selectedStatusId = _nullishCoalesce(_nullishCoalesce(statusId, () => ( _optionalChain([statusOptions, 'access', _366 => _366[0], 'optionalAccess', _367 => _367.value]))), () => ( null));
|
|
16579
16582
|
const selectedStatus = statusOptions.find((o) => o.value === selectedStatusId);
|
|
16580
16583
|
const selectedAssignee = assigneeOptions.find((o) => o.value === assigneeId);
|
|
16581
16584
|
const handleConfirm = () => {
|
|
@@ -16597,19 +16600,19 @@ function ReopenTicketModal({
|
|
|
16597
16600
|
] }),
|
|
16598
16601
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)] md:flex-row", children: [
|
|
16599
16602
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16600
|
-
|
|
16603
|
+
_chunkIYWX4GOGcjs.Autocomplete,
|
|
16601
16604
|
{
|
|
16602
16605
|
label: "Status",
|
|
16603
16606
|
options: statusOptions,
|
|
16604
16607
|
value: selectedStatusId,
|
|
16605
16608
|
onChange: setStatusId,
|
|
16606
16609
|
placeholder: "Select Status",
|
|
16607
|
-
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16610
|
+
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2X3N6MSRcjs.ColorSwatch, { color: selectedStatus.color }) : void 0,
|
|
16608
16611
|
renderOption: renderTicketStatusOption
|
|
16609
16612
|
}
|
|
16610
16613
|
) }),
|
|
16611
16614
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16612
|
-
|
|
16615
|
+
_chunkIYWX4GOGcjs.Autocomplete,
|
|
16613
16616
|
{
|
|
16614
16617
|
label: "Assigned",
|
|
16615
16618
|
options: assigneeOptions,
|
|
@@ -16816,7 +16819,7 @@ function usePhotoOrientations(urls) {
|
|
|
16816
16819
|
}
|
|
16817
16820
|
};
|
|
16818
16821
|
}, [key]);
|
|
16819
|
-
return _optionalChain([measured, 'optionalAccess',
|
|
16822
|
+
return _optionalChain([measured, 'optionalAccess', _368 => _368.key]) === key ? measured.byUrl : null;
|
|
16820
16823
|
}
|
|
16821
16824
|
function PhotoWall({
|
|
16822
16825
|
images,
|
|
@@ -16835,7 +16838,7 @@ function PhotoWall({
|
|
|
16835
16838
|
const root = rootRef.current;
|
|
16836
16839
|
if (!root) return void 0;
|
|
16837
16840
|
const read = () => setBox(
|
|
16838
|
-
(previous) => _optionalChain([previous, 'optionalAccess',
|
|
16841
|
+
(previous) => _optionalChain([previous, 'optionalAccess', _369 => _369.width]) === root.clientWidth && previous.height === root.clientHeight ? previous : { width: root.clientWidth, height: root.clientHeight }
|
|
16839
16842
|
);
|
|
16840
16843
|
read();
|
|
16841
16844
|
if (typeof ResizeObserver === "undefined") return void 0;
|
|
@@ -16895,11 +16898,11 @@ function PhotoWall({
|
|
|
16895
16898
|
if (images.length === 0 && !loading) return null;
|
|
16896
16899
|
const columnsToDraw = loading || !sizedUpFront && requestWidth === void 0 ? null : layout;
|
|
16897
16900
|
const gridStyle = {
|
|
16898
|
-
gridTemplateColumns: `repeat(${_optionalChain([columnsToDraw, 'optionalAccess',
|
|
16901
|
+
gridTemplateColumns: `repeat(${_optionalChain([columnsToDraw, 'optionalAccess', _370 => _370.length]) || columns}, minmax(0, 1fr))`,
|
|
16899
16902
|
gap: COLUMN_GAP_PX
|
|
16900
16903
|
};
|
|
16901
16904
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: rootRef, "aria-hidden": "true", className: _chunk7JWFMAQBcjs.cn.call(void 0, "grid overflow-hidden", className), style: gridStyle, children: columnsToDraw ? columnsToDraw.map((column, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16902
|
-
|
|
16905
|
+
_chunkTVAU56UUcjs.MarqueeWall,
|
|
16903
16906
|
{
|
|
16904
16907
|
axis: "y",
|
|
16905
16908
|
reverse: index % 2 === 1,
|
|
@@ -17129,7 +17132,7 @@ function ProductScreenFrame({
|
|
|
17129
17132
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "ods-content-area", pending && "product-screen-pending"),
|
|
17130
17133
|
style: screenStyle,
|
|
17131
17134
|
children: [
|
|
17132
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ods-content-scope", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingScope, { bare: true, active: pending, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17135
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ods-content-scope", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingScope, { bare: true, active: pending, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.PagePicture, { children }) }) }),
|
|
17133
17136
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
|
|
17134
17137
|
]
|
|
17135
17138
|
}
|
|
@@ -17248,7 +17251,7 @@ function subscribeToClock(onTick) {
|
|
|
17248
17251
|
}
|
|
17249
17252
|
function readClock() {
|
|
17250
17253
|
const parts = new Intl.DateTimeFormat(void 0, { hour: "numeric", minute: "2-digit" }).formatToParts(/* @__PURE__ */ new Date());
|
|
17251
|
-
const part = (type) => _nullishCoalesce(_optionalChain([parts, 'access',
|
|
17254
|
+
const part = (type) => _nullishCoalesce(_optionalChain([parts, 'access', _371 => _371.find, 'call', _372 => _372((p) => p.type === type), 'optionalAccess', _373 => _373.value]), () => ( ""));
|
|
17252
17255
|
return `${part("hour")}:${part("minute")}`;
|
|
17253
17256
|
}
|
|
17254
17257
|
function readDate() {
|
|
@@ -17267,7 +17270,7 @@ function PhoneFrame({ dateLabel, timeLabel, children, className }) {
|
|
|
17267
17270
|
"div",
|
|
17268
17271
|
{
|
|
17269
17272
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "h-[617px] w-[299px] shrink-0 rounded-[48px] border border-ods-border bg-black p-2.5", className),
|
|
17270
|
-
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "relative flex h-full flex-col overflow-hidden rounded-[38px]",
|
|
17273
|
+
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "relative flex h-full flex-col overflow-hidden rounded-[38px]", _chunkIYWX4GOGcjs.DEVICE_WALLPAPER_CLASS), children: [
|
|
17271
17274
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17272
17275
|
"div",
|
|
17273
17276
|
{
|
|
@@ -17459,7 +17462,7 @@ var TRIAL_TERM_ICONS = {
|
|
|
17459
17462
|
};
|
|
17460
17463
|
var DEFAULT_TRIAL_TERMS = ["cancel", "length", "noContract"];
|
|
17461
17464
|
function trialBenefits(trialDays, terms = DEFAULT_TRIAL_TERMS) {
|
|
17462
|
-
const labels =
|
|
17465
|
+
const labels = _chunkIE3CPPHJcjs.trialLabels.call(void 0, trialDays);
|
|
17463
17466
|
return terms.flatMap((term) => {
|
|
17464
17467
|
const label = labels[term];
|
|
17465
17468
|
return label ? [{ icon: TRIAL_TERM_ICONS[term], label }] : [];
|
|
@@ -17580,7 +17583,7 @@ var INCIDENT_TONE = {
|
|
|
17580
17583
|
approved: "success"
|
|
17581
17584
|
};
|
|
17582
17585
|
function IncidentStatusLine({ status, label, className }) {
|
|
17583
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17586
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2X3N6MSRcjs.StatusLine, { tone: INCIDENT_TONE[status], label, className });
|
|
17584
17587
|
}
|
|
17585
17588
|
var FEED_CLASS = "flex min-h-0 flex-1 flex-col gap-3 overflow-hidden p-4 md:px-5";
|
|
17586
17589
|
var FEED_BOTTOM_CLASS = "justify-end [mask-image:linear-gradient(180deg,transparent_0,#000_48px)]";
|
|
@@ -17772,7 +17775,7 @@ function SnapCarousel({
|
|
|
17772
17775
|
const auto = _chunkOJZBZH56cjs.useAutoplay.call(void 0, inView);
|
|
17773
17776
|
const count = items.length;
|
|
17774
17777
|
const slideStep = _react.useCallback.call(void 0, () => {
|
|
17775
|
-
const first = _optionalChain([trackRef, 'access',
|
|
17778
|
+
const first = _optionalChain([trackRef, 'access', _374 => _374.current, 'optionalAccess', _375 => _375.firstElementChild]);
|
|
17776
17779
|
return first ? first.offsetWidth + SNAP_CAROUSEL_GAP_PX : 0;
|
|
17777
17780
|
}, []);
|
|
17778
17781
|
const goTo = _react.useCallback.call(void 0,
|
|
@@ -17813,7 +17816,7 @@ function SnapCarousel({
|
|
|
17813
17816
|
const goNext = _react.useCallback.call(void 0, () => goTo(index >= count - 1 ? 0 : index + 1), [count, goTo, index]);
|
|
17814
17817
|
const canAutoAdvance = autoAdvanceMs > 0 && count > 1;
|
|
17815
17818
|
const playing = auto.playing && canAutoAdvance;
|
|
17816
|
-
const ranMs =
|
|
17819
|
+
const ranMs = _chunkOG4XH6C5cjs.useResumableTimeout.call(void 0, {
|
|
17817
17820
|
running: playing,
|
|
17818
17821
|
durationMs: autoAdvanceMs,
|
|
17819
17822
|
resetKey: index,
|
|
@@ -18164,10 +18167,10 @@ function AccountDetailsFields({
|
|
|
18164
18167
|
onKeyDown,
|
|
18165
18168
|
layout = "stacked"
|
|
18166
18169
|
}) {
|
|
18167
|
-
const firstNameErr =
|
|
18168
|
-
const lastNameErr =
|
|
18169
|
-
const passwordErr =
|
|
18170
|
-
const confirmErr =
|
|
18170
|
+
const firstNameErr = _chunkOG4XH6C5cjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _376 => _376.firstName]), firstName);
|
|
18171
|
+
const lastNameErr = _chunkOG4XH6C5cjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _377 => _377.lastName]), lastName);
|
|
18172
|
+
const passwordErr = _chunkOG4XH6C5cjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _378 => _378.password]), password);
|
|
18173
|
+
const confirmErr = _chunkOG4XH6C5cjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _379 => _379.confirmPassword]), confirmPassword);
|
|
18171
18174
|
const names = [
|
|
18172
18175
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18173
18176
|
_chunkTTZEDDR5cjs.Input,
|
|
@@ -18425,7 +18428,7 @@ function SsoProviderButtons({
|
|
|
18425
18428
|
disabled: disabled || (enabledProviders ? !enabledProviders.includes(provider) : false),
|
|
18426
18429
|
className: "disabled:bg-ods-bg",
|
|
18427
18430
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "h-5 w-5" }),
|
|
18428
|
-
onClick: () => _optionalChain([onSsoClick, 'optionalCall',
|
|
18431
|
+
onClick: () => _optionalChain([onSsoClick, 'optionalCall', _380 => _380(provider)]),
|
|
18429
18432
|
children: [
|
|
18430
18433
|
`${actionLabel} ${meta.name}`,
|
|
18431
18434
|
tag && // A child, not `rightIcon`: the Button lays its children out through a `contents` span,
|
|
@@ -18627,9 +18630,9 @@ function CreateOrganizationForm({
|
|
|
18627
18630
|
}) {
|
|
18628
18631
|
const hasSso = !!ssoProviders && ssoProviders.length > 0;
|
|
18629
18632
|
const fieldsDisabled = disabled || loading;
|
|
18630
|
-
const emailErr =
|
|
18631
|
-
const orgNameErr =
|
|
18632
|
-
const domainErr =
|
|
18633
|
+
const emailErr = _chunkOG4XH6C5cjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _381 => _381.email]), _nullishCoalesce(email, () => ( "")));
|
|
18634
|
+
const orgNameErr = _chunkOG4XH6C5cjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _382 => _382.organizationName]), organizationName);
|
|
18635
|
+
const domainErr = _chunkOG4XH6C5cjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _383 => _383.domain]), domain);
|
|
18633
18636
|
const handleKeyDown = (event) => {
|
|
18634
18637
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
18635
18638
|
onSubmit();
|
|
@@ -18660,11 +18663,11 @@ function CreateOrganizationForm({
|
|
|
18660
18663
|
label: "Email",
|
|
18661
18664
|
placeholder: "username@mail.com",
|
|
18662
18665
|
value: email,
|
|
18663
|
-
error: _nullishCoalesce(emailErr.error, () => ( _optionalChain([emailStatus, 'optionalAccess',
|
|
18664
|
-
errorVariant: emailErr.error ? "error" : _optionalChain([emailStatus, 'optionalAccess',
|
|
18666
|
+
error: _nullishCoalesce(emailErr.error, () => ( _optionalChain([emailStatus, 'optionalAccess', _384 => _384.message]))),
|
|
18667
|
+
errorVariant: emailErr.error ? "error" : _optionalChain([emailStatus, 'optionalAccess', _385 => _385.variant]),
|
|
18665
18668
|
disabled: fieldsDisabled,
|
|
18666
18669
|
onBlur: emailErr.onBlur,
|
|
18667
|
-
onChange: (event) => _optionalChain([onEmailChange, 'optionalCall',
|
|
18670
|
+
onChange: (event) => _optionalChain([onEmailChange, 'optionalCall', _386 => _386(event.target.value)]),
|
|
18668
18671
|
onKeyDown: handleKeyDown
|
|
18669
18672
|
}
|
|
18670
18673
|
),
|
|
@@ -18688,8 +18691,8 @@ function CreateOrganizationForm({
|
|
|
18688
18691
|
label: "Domain",
|
|
18689
18692
|
placeholder: domainPlaceholder,
|
|
18690
18693
|
value: domain,
|
|
18691
|
-
error: _nullishCoalesce(domainErr.error, () => ( _optionalChain([domainStatus, 'optionalAccess',
|
|
18692
|
-
errorVariant: domainErr.error ? "error" : _optionalChain([domainStatus, 'optionalAccess',
|
|
18694
|
+
error: _nullishCoalesce(domainErr.error, () => ( _optionalChain([domainStatus, 'optionalAccess', _387 => _387.message]))),
|
|
18695
|
+
errorVariant: domainErr.error ? "error" : _optionalChain([domainStatus, 'optionalAccess', _388 => _388.variant]),
|
|
18693
18696
|
disabled: fieldsDisabled,
|
|
18694
18697
|
onBlur: domainErr.onBlur,
|
|
18695
18698
|
endAdornment: domainSuffix ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: domainSuffix }) : void 0,
|
|
@@ -18724,7 +18727,7 @@ function CreateOrganizationForm({
|
|
|
18724
18727
|
label: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TermsAgreementLabel, { termsUrl, privacyPolicyUrl }),
|
|
18725
18728
|
checked: agreedToTerms,
|
|
18726
18729
|
disabled: fieldsDisabled,
|
|
18727
|
-
error: _optionalChain([errors, 'optionalAccess',
|
|
18730
|
+
error: _optionalChain([errors, 'optionalAccess', _389 => _389.terms]),
|
|
18728
18731
|
onCheckedChange: onAgreedToTermsChange
|
|
18729
18732
|
}
|
|
18730
18733
|
),
|
|
@@ -18857,14 +18860,14 @@ function LoginForm({
|
|
|
18857
18860
|
}) {
|
|
18858
18861
|
const fieldDisabled = disabled || loading;
|
|
18859
18862
|
const providersDisabled = fieldDisabled || ssoDisabled;
|
|
18860
|
-
const emailErr =
|
|
18863
|
+
const emailErr = _chunkOG4XH6C5cjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _390 => _390.email]), email);
|
|
18861
18864
|
const handleKeyDown = (event) => {
|
|
18862
18865
|
if (event.key !== "Enter" || event.repeat || fieldDisabled) return;
|
|
18863
18866
|
if (onSubmitClick) {
|
|
18864
18867
|
if (!submitDisabled) onSubmitClick();
|
|
18865
18868
|
return;
|
|
18866
18869
|
}
|
|
18867
|
-
_optionalChain([onEmailEnter, 'optionalCall',
|
|
18870
|
+
_optionalChain([onEmailEnter, 'optionalCall', _391 => _391()]);
|
|
18868
18871
|
};
|
|
18869
18872
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
18870
18873
|
"div",
|
|
@@ -18885,8 +18888,8 @@ function LoginForm({
|
|
|
18885
18888
|
label: "Email",
|
|
18886
18889
|
placeholder: emailPlaceholder,
|
|
18887
18890
|
value: email,
|
|
18888
|
-
error: _nullishCoalesce(emailErr.error, () => ( _optionalChain([emailStatus, 'optionalAccess',
|
|
18889
|
-
errorVariant: emailErr.error ? "error" : _optionalChain([emailStatus, 'optionalAccess',
|
|
18891
|
+
error: _nullishCoalesce(emailErr.error, () => ( _optionalChain([emailStatus, 'optionalAccess', _392 => _392.message]))),
|
|
18892
|
+
errorVariant: emailErr.error ? "error" : _optionalChain([emailStatus, 'optionalAccess', _393 => _393.variant]),
|
|
18890
18893
|
disabled: fieldDisabled,
|
|
18891
18894
|
onBlur: emailErr.onBlur,
|
|
18892
18895
|
onChange: (event) => onEmailChange(event.target.value),
|
|
@@ -19035,8 +19038,8 @@ function OpenFrameSsoLoginForm({
|
|
|
19035
19038
|
className
|
|
19036
19039
|
}) {
|
|
19037
19040
|
const fieldsDisabled = disabled || loading;
|
|
19038
|
-
const emailErr =
|
|
19039
|
-
const passwordErr =
|
|
19041
|
+
const emailErr = _chunkOG4XH6C5cjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _394 => _394.email]), email);
|
|
19042
|
+
const passwordErr = _chunkOG4XH6C5cjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _395 => _395.password]), password);
|
|
19040
19043
|
const handleKeyDown = (event) => {
|
|
19041
19044
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
19042
19045
|
onSubmit();
|
|
@@ -19141,7 +19144,7 @@ function OpenFrameSsoSignUpForm({
|
|
|
19141
19144
|
className
|
|
19142
19145
|
}) {
|
|
19143
19146
|
const fieldsDisabled = disabled || loading;
|
|
19144
|
-
const emailErr =
|
|
19147
|
+
const emailErr = _chunkOG4XH6C5cjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _396 => _396.email]), email);
|
|
19145
19148
|
const handleKeyDown = (event) => {
|
|
19146
19149
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
19147
19150
|
onSubmit();
|
|
@@ -19246,8 +19249,8 @@ function PasswordResetForm({
|
|
|
19246
19249
|
className
|
|
19247
19250
|
}) {
|
|
19248
19251
|
const fieldsDisabled = disabled || loading;
|
|
19249
|
-
const passwordErr =
|
|
19250
|
-
const confirmErr =
|
|
19252
|
+
const passwordErr = _chunkOG4XH6C5cjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _397 => _397.password]), password);
|
|
19253
|
+
const confirmErr = _chunkOG4XH6C5cjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _398 => _398.confirmPassword]), confirmPassword);
|
|
19251
19254
|
const handleKeyDown = (event) => {
|
|
19252
19255
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
19253
19256
|
onSubmit();
|
|
@@ -19372,7 +19375,7 @@ function SsoJoinForm({
|
|
|
19372
19375
|
}) {
|
|
19373
19376
|
const readingIdentity = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || identityLoading;
|
|
19374
19377
|
const fieldsDisabled = disabled || loading || readingIdentity;
|
|
19375
|
-
const displayName = _optionalChain([name, 'optionalAccess',
|
|
19378
|
+
const displayName = _optionalChain([name, 'optionalAccess', _399 => _399.trim, 'call', _400 => _400()]) || _optionalChain([email, 'optionalAccess', _401 => _401.trim, 'call', _402 => _402()]) || "";
|
|
19376
19379
|
const shownRoles = readingIdentity && roles.length === 0 ? [""] : roles;
|
|
19377
19380
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
19378
19381
|
"div",
|
|
@@ -19559,7 +19562,7 @@ function ChangelogManager({
|
|
|
19559
19562
|
descriptionLabel = "Description",
|
|
19560
19563
|
descriptionPlaceholder = "Detailed explanation of the change..."
|
|
19561
19564
|
}) {
|
|
19562
|
-
const tagLabelOf = (value) => _optionalChain([tagOptions, 'optionalAccess',
|
|
19565
|
+
const tagLabelOf = (value) => _optionalChain([tagOptions, 'optionalAccess', _403 => _403.find, 'call', _404 => _404((o) => o.value === value), 'optionalAccess', _405 => _405.label]);
|
|
19563
19566
|
const entryCount = entries.length;
|
|
19564
19567
|
const allExpanded = () => new Set(Array.from({ length: entryCount }, (_, i) => i));
|
|
19565
19568
|
const [expandedIndices, setExpandedIndices] = _react.useState.call(void 0,
|
|
@@ -19577,7 +19580,7 @@ function ChangelogManager({
|
|
|
19577
19580
|
title: "",
|
|
19578
19581
|
description: "",
|
|
19579
19582
|
...showVisibilityToggle && { visibility: "public" },
|
|
19580
|
-
..._optionalChain([tagOptions, 'optionalAccess',
|
|
19583
|
+
..._optionalChain([tagOptions, 'optionalAccess', _406 => _406.length]) && { tag: tagOptions[0].value }
|
|
19581
19584
|
};
|
|
19582
19585
|
onChange([...entries, newEntry]);
|
|
19583
19586
|
setExpandedIndices((prev) => /* @__PURE__ */ new Set([...prev, entries.length]));
|
|
@@ -19713,9 +19716,9 @@ function ChangelogManager({
|
|
|
19713
19716
|
] }),
|
|
19714
19717
|
tagOptions && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-1", children: [
|
|
19715
19718
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD47ZGOUcjs.Label, { className: "text-ods-text-secondary", children: tagLabel }),
|
|
19716
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
19717
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19718
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19719
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIYWX4GOGcjs.Select, { value: _nullishCoalesce(entry.tag, () => ( "")), onValueChange: (value) => updateEntry(index, "tag", value), children: [
|
|
19720
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectTrigger, { className: "bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectValue, { placeholder: tagLabel }) }),
|
|
19721
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectContent, { children: tagOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
19719
19722
|
] })
|
|
19720
19723
|
] })
|
|
19721
19724
|
] })
|
|
@@ -19845,12 +19848,12 @@ function CommandBox({
|
|
|
19845
19848
|
title,
|
|
19846
19849
|
lines: !fixedHeight && maxLines > 0 ? maxLines : void 0,
|
|
19847
19850
|
visibleLines: fixedHeight ? visibleLines : void 0,
|
|
19848
|
-
primaryActionLabel: _optionalChain([primaryAction, 'optionalAccess',
|
|
19849
|
-
primaryActionIcon: _optionalChain([primaryAction, 'optionalAccess',
|
|
19850
|
-
primaryActionVariant: _optionalChain([primaryAction, 'optionalAccess',
|
|
19851
|
-
secondaryActionLabel: _optionalChain([secondaryAction, 'optionalAccess',
|
|
19852
|
-
secondaryActionIcon: _optionalChain([secondaryAction, 'optionalAccess',
|
|
19853
|
-
secondaryActionVariant: _optionalChain([secondaryAction, 'optionalAccess',
|
|
19851
|
+
primaryActionLabel: _optionalChain([primaryAction, 'optionalAccess', _407 => _407.label]),
|
|
19852
|
+
primaryActionIcon: _optionalChain([primaryAction, 'optionalAccess', _408 => _408.icon]),
|
|
19853
|
+
primaryActionVariant: _optionalChain([primaryAction, 'optionalAccess', _409 => _409.variant]),
|
|
19854
|
+
secondaryActionLabel: _optionalChain([secondaryAction, 'optionalAccess', _410 => _410.label]),
|
|
19855
|
+
secondaryActionIcon: _optionalChain([secondaryAction, 'optionalAccess', _411 => _411.icon]),
|
|
19856
|
+
secondaryActionVariant: _optionalChain([secondaryAction, 'optionalAccess', _412 => _412.variant]),
|
|
19854
19857
|
showCopy: Boolean(onCopy),
|
|
19855
19858
|
className
|
|
19856
19859
|
}
|
|
@@ -20210,13 +20213,13 @@ var SectionSelector = ({
|
|
|
20210
20213
|
const listRef = _react.useRef.call(void 0, null);
|
|
20211
20214
|
_react.useEffect.call(void 0, () => {
|
|
20212
20215
|
const list = listRef.current;
|
|
20213
|
-
const active = _optionalChain([list, 'optionalAccess',
|
|
20216
|
+
const active = _optionalChain([list, 'optionalAccess', _413 => _413.querySelector, 'call', _414 => _414('[role="tab"][aria-selected="true"]')]);
|
|
20214
20217
|
if (!list || !active || list.scrollWidth <= list.clientWidth) return;
|
|
20215
20218
|
const offset = active.getBoundingClientRect().left - list.getBoundingClientRect().left;
|
|
20216
20219
|
list.scrollLeft += offset - (list.clientWidth - active.clientWidth) / 2;
|
|
20217
20220
|
}, [activeSection]);
|
|
20218
20221
|
const enabled = sections.filter((section) => !section.disabled && !disabled);
|
|
20219
|
-
const tabStopId = enabled.some((section) => section.id === activeSection) ? activeSection : _optionalChain([enabled, 'access',
|
|
20222
|
+
const tabStopId = enabled.some((section) => section.id === activeSection) ? activeSection : _optionalChain([enabled, 'access', _415 => _415[0], 'optionalAccess', _416 => _416.id]);
|
|
20220
20223
|
const onKeyDown = (event) => {
|
|
20221
20224
|
const step = event.key === "ArrowRight" || event.key === "ArrowDown" ? 1 : event.key === "ArrowLeft" || event.key === "ArrowUp" ? -1 : 0;
|
|
20222
20225
|
if (!step && event.key !== "Home" && event.key !== "End") return;
|
|
@@ -20229,7 +20232,7 @@ var SectionSelector = ({
|
|
|
20229
20232
|
const next = event.key === "Home" ? enabled[0] : event.key === "End" ? enabled[enabled.length - 1] : enabled[(at + step + enabled.length) % enabled.length];
|
|
20230
20233
|
onSectionChange(next.id);
|
|
20231
20234
|
requestAnimationFrame(
|
|
20232
|
-
() => _optionalChain([listRef, 'access',
|
|
20235
|
+
() => _optionalChain([listRef, 'access', _417 => _417.current, 'optionalAccess', _418 => _418.querySelector, 'call', _419 => _419('[role="tab"][aria-selected="true"]'), 'optionalAccess', _420 => _420.focus, 'call', _421 => _421()])
|
|
20233
20236
|
);
|
|
20234
20237
|
};
|
|
20235
20238
|
const getButtonWidthClasses = () => {
|
|
@@ -20272,10 +20275,10 @@ var getContentDimensions = (config) => {
|
|
|
20272
20275
|
const envMobileHeight = process.env.NEXT_PUBLIC_FIGMA_MOBILE_HEIGHT ? parseInt(process.env.NEXT_PUBLIC_FIGMA_MOBILE_HEIGHT) : null;
|
|
20273
20276
|
const envDesktopWidth = process.env.NEXT_PUBLIC_FIGMA_DESKTOP_WIDTH ? parseInt(process.env.NEXT_PUBLIC_FIGMA_DESKTOP_WIDTH) : null;
|
|
20274
20277
|
const envDesktopHeight = process.env.NEXT_PUBLIC_FIGMA_DESKTOP_HEIGHT ? parseInt(process.env.NEXT_PUBLIC_FIGMA_DESKTOP_HEIGHT) : null;
|
|
20275
|
-
const mobileWidth = _nullishCoalesce(_nullishCoalesce(envMobileWidth, () => ( _optionalChain([config, 'optionalAccess',
|
|
20276
|
-
const mobileHeight = _nullishCoalesce(_nullishCoalesce(envMobileHeight, () => ( _optionalChain([config, 'optionalAccess',
|
|
20277
|
-
const desktopWidth = _nullishCoalesce(_nullishCoalesce(envDesktopWidth, () => ( _optionalChain([config, 'optionalAccess',
|
|
20278
|
-
const desktopHeight = _nullishCoalesce(_nullishCoalesce(envDesktopHeight, () => ( _optionalChain([config, 'optionalAccess',
|
|
20278
|
+
const mobileWidth = _nullishCoalesce(_nullishCoalesce(envMobileWidth, () => ( _optionalChain([config, 'optionalAccess', _422 => _422.mobileContentDimensions, 'optionalAccess', _423 => _423.width]))), () => ( defaultMobile.width));
|
|
20279
|
+
const mobileHeight = _nullishCoalesce(_nullishCoalesce(envMobileHeight, () => ( _optionalChain([config, 'optionalAccess', _424 => _424.mobileContentDimensions, 'optionalAccess', _425 => _425.height]))), () => ( defaultMobile.height));
|
|
20280
|
+
const desktopWidth = _nullishCoalesce(_nullishCoalesce(envDesktopWidth, () => ( _optionalChain([config, 'optionalAccess', _426 => _426.desktopContentDimensions, 'optionalAccess', _427 => _427.width]))), () => ( defaultDesktop.width));
|
|
20281
|
+
const desktopHeight = _nullishCoalesce(_nullishCoalesce(envDesktopHeight, () => ( _optionalChain([config, 'optionalAccess', _428 => _428.desktopContentDimensions, 'optionalAccess', _429 => _429.height]))), () => ( defaultDesktop.height));
|
|
20279
20282
|
return {
|
|
20280
20283
|
mobile: { width: mobileWidth, height: mobileHeight },
|
|
20281
20284
|
desktop: { width: desktopWidth, height: desktopHeight }
|
|
@@ -20434,7 +20437,7 @@ function UnifiedUI({ state, handlers, config, iframeRef }) {
|
|
|
20434
20437
|
const contentDimensions = getContentDimensions(config);
|
|
20435
20438
|
const mobileHeight = contentDimensions.mobile.height;
|
|
20436
20439
|
const calculatedHeight = Math.max(mobileHeight + 100, 400);
|
|
20437
|
-
return `${Math.min(calculatedHeight, _optionalChain([window, 'optionalAccess',
|
|
20440
|
+
return `${Math.min(calculatedHeight, _optionalChain([window, 'optionalAccess', _430 => _430.innerHeight]) * 0.85 || 650)}px`;
|
|
20438
20441
|
})(),
|
|
20439
20442
|
minHeight: viewMode === "DESKTOP" ? "auto" : (() => {
|
|
20440
20443
|
const contentDimensions = getContentDimensions(config);
|
|
@@ -20529,7 +20532,7 @@ var FigmaPrototypeViewer = ({
|
|
|
20529
20532
|
const [isInitialized, setIsInitialized] = _react.useState.call(void 0, false);
|
|
20530
20533
|
const [currentNodeId, setCurrentNodeId] = _react.useState.call(void 0, null);
|
|
20531
20534
|
const [internalActiveSection, setInternalActiveSection] = _react.useState.call(void 0,
|
|
20532
|
-
config.defaultSectionId || _optionalChain([config, 'access',
|
|
20535
|
+
config.defaultSectionId || _optionalChain([config, 'access', _431 => _431.sections, 'access', _432 => _432[0], 'optionalAccess', _433 => _433.id]) || ""
|
|
20533
20536
|
);
|
|
20534
20537
|
const activeSection = externalActiveSection || internalActiveSection;
|
|
20535
20538
|
const [isNavigating, setIsNavigating] = _react.useState.call(void 0, false);
|
|
@@ -20627,19 +20630,19 @@ var FigmaPrototypeViewer = ({
|
|
|
20627
20630
|
setIframeState("READY");
|
|
20628
20631
|
break;
|
|
20629
20632
|
case "PRESENTED_NODE_CHANGED":
|
|
20630
|
-
if (_optionalChain([figmaEvent, 'access',
|
|
20633
|
+
if (_optionalChain([figmaEvent, 'access', _434 => _434.data, 'optionalAccess', _435 => _435.presentedNodeId])) {
|
|
20631
20634
|
setCurrentNodeId(figmaEvent.data.presentedNodeId);
|
|
20632
20635
|
if (!isNavigating) {
|
|
20633
20636
|
const matchingSection = configSections.find((s) => {
|
|
20634
|
-
const desktopMatch = s.startingNodeId === _optionalChain([figmaEvent, 'access',
|
|
20635
|
-
const mobileMatch = s.mobileStartingNodeId === _optionalChain([figmaEvent, 'access',
|
|
20637
|
+
const desktopMatch = s.startingNodeId === _optionalChain([figmaEvent, 'access', _436 => _436.data, 'optionalAccess', _437 => _437.presentedNodeId]) || s.startingNodeId.replace(":", "-") === _optionalChain([figmaEvent, 'access', _438 => _438.data, 'optionalAccess', _439 => _439.presentedNodeId]);
|
|
20638
|
+
const mobileMatch = s.mobileStartingNodeId === _optionalChain([figmaEvent, 'access', _440 => _440.data, 'optionalAccess', _441 => _441.presentedNodeId]) || _optionalChain([s, 'access', _442 => _442.mobileStartingNodeId, 'optionalAccess', _443 => _443.replace, 'call', _444 => _444(":", "-")]) === _optionalChain([figmaEvent, 'access', _445 => _445.data, 'optionalAccess', _446 => _446.presentedNodeId]);
|
|
20636
20639
|
return desktopMatch || mobileMatch;
|
|
20637
20640
|
});
|
|
20638
20641
|
if (matchingSection && matchingSection.id !== activeSection) {
|
|
20639
20642
|
if (!externalActiveSection) {
|
|
20640
20643
|
setInternalActiveSection(matchingSection.id);
|
|
20641
20644
|
}
|
|
20642
|
-
_optionalChain([onSectionChange, 'optionalCall',
|
|
20645
|
+
_optionalChain([onSectionChange, 'optionalCall', _447 => _447(matchingSection.id)]);
|
|
20643
20646
|
}
|
|
20644
20647
|
}
|
|
20645
20648
|
}
|
|
@@ -20653,7 +20656,7 @@ var FigmaPrototypeViewer = ({
|
|
|
20653
20656
|
const navigateToSection = _react.useCallback.call(void 0,
|
|
20654
20657
|
(sectionId) => {
|
|
20655
20658
|
const section = config.sections.find((s) => s.id === sectionId);
|
|
20656
|
-
if (!section || !_optionalChain([iframeRef, 'access',
|
|
20659
|
+
if (!section || !_optionalChain([iframeRef, 'access', _448 => _448.current, 'optionalAccess', _449 => _449.contentWindow]) || !isInitialized) {
|
|
20657
20660
|
return;
|
|
20658
20661
|
}
|
|
20659
20662
|
setIsNavigating(true);
|
|
@@ -20661,7 +20664,7 @@ var FigmaPrototypeViewer = ({
|
|
|
20661
20664
|
if (!externalActiveSection) {
|
|
20662
20665
|
setInternalActiveSection(sectionId);
|
|
20663
20666
|
}
|
|
20664
|
-
_optionalChain([config, 'access',
|
|
20667
|
+
_optionalChain([config, 'access', _450 => _450.onSectionChange, 'optionalCall', _451 => _451(sectionId)]);
|
|
20665
20668
|
const command = {
|
|
20666
20669
|
type: "NAVIGATE_TO_FRAME_AND_CLOSE_OVERLAYS",
|
|
20667
20670
|
data: { nodeId }
|
|
@@ -21000,7 +21003,7 @@ var FiltersDropdown = ({
|
|
|
21000
21003
|
defaults[section.id] = section.defaultSelected || [];
|
|
21001
21004
|
});
|
|
21002
21005
|
setSelectedFilters(defaults);
|
|
21003
|
-
_optionalChain([onReset, 'optionalCall',
|
|
21006
|
+
_optionalChain([onReset, 'optionalCall', _452 => _452()]);
|
|
21004
21007
|
setIsOpen(false);
|
|
21005
21008
|
};
|
|
21006
21009
|
const handleApply = () => {
|
|
@@ -21288,7 +21291,7 @@ function useMediaIntake({ existing, onUpload, onUploaded, kinds = "both" }) {
|
|
|
21288
21291
|
try {
|
|
21289
21292
|
const url = await onUpload(file, mediaType);
|
|
21290
21293
|
if (!url) throw new Error("no URL");
|
|
21291
|
-
_optionalChain([onUploaded, 'optionalCall',
|
|
21294
|
+
_optionalChain([onUploaded, 'optionalCall', _453 => _453({ file, mediaType, url })]);
|
|
21292
21295
|
} catch (error) {
|
|
21293
21296
|
console.error("Upload failed:", error);
|
|
21294
21297
|
failed.push(file.name);
|
|
@@ -21311,7 +21314,7 @@ function useMediaIntake({ existing, onUpload, onUploaded, kinds = "both" }) {
|
|
|
21311
21314
|
notice,
|
|
21312
21315
|
busy: pending.length > 0,
|
|
21313
21316
|
dropActive,
|
|
21314
|
-
open: () => _optionalChain([inputRef, 'access',
|
|
21317
|
+
open: () => _optionalChain([inputRef, 'access', _454 => _454.current, 'optionalAccess', _455 => _455.click, 'call', _456 => _456()]),
|
|
21315
21318
|
/** Spread on the element files may be dropped on (the area itself, or a whole gallery). */
|
|
21316
21319
|
dropHandlers: {
|
|
21317
21320
|
onDragOver: (event) => {
|
|
@@ -21496,17 +21499,17 @@ function MediaGalleryManager({
|
|
|
21496
21499
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
21497
21500
|
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" }),
|
|
21498
21501
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21499
|
-
|
|
21502
|
+
_chunkIYWX4GOGcjs.Select,
|
|
21500
21503
|
{
|
|
21501
21504
|
value: item.media_type,
|
|
21502
21505
|
onValueChange: (value) => update(index, { media_type: value }),
|
|
21503
21506
|
children: [
|
|
21504
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21505
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21506
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21507
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21508
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21509
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21507
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectTrigger, { className: "h-8 bg-ods-bg text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectValue, {}) }),
|
|
21508
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIYWX4GOGcjs.SelectContent, { className: "bg-ods-card", children: [
|
|
21509
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: "image", children: "Image" }),
|
|
21510
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: "video", children: "Video" }),
|
|
21511
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: "screenshot", children: "Screenshot" }),
|
|
21512
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: "demo", children: "Demo" })
|
|
21510
21513
|
] })
|
|
21511
21514
|
]
|
|
21512
21515
|
}
|
|
@@ -21654,9 +21657,9 @@ function PushButtonSelector({
|
|
|
21654
21657
|
const skeletonDescription = options.length > 0 ? options.some((option) => !!option.description) : optionDescriptions;
|
|
21655
21658
|
const scrollRef = _react.useRef.call(void 0, null);
|
|
21656
21659
|
const sentinelRef = _react.useRef.call(void 0, null);
|
|
21657
|
-
const lazyHasMore = _nullishCoalesce(_optionalChain([lazyLoad, 'optionalAccess',
|
|
21658
|
-
const lazyFetching = _nullishCoalesce(_optionalChain([lazyLoad, 'optionalAccess',
|
|
21659
|
-
const onLoadMore = _optionalChain([lazyLoad, 'optionalAccess',
|
|
21660
|
+
const lazyHasMore = _nullishCoalesce(_optionalChain([lazyLoad, 'optionalAccess', _457 => _457.hasMore]), () => ( false));
|
|
21661
|
+
const lazyFetching = _nullishCoalesce(_optionalChain([lazyLoad, 'optionalAccess', _458 => _458.isFetchingMore]), () => ( false));
|
|
21662
|
+
const onLoadMore = _optionalChain([lazyLoad, 'optionalAccess', _459 => _459.onLoadMore]);
|
|
21660
21663
|
const optionCount = options.length;
|
|
21661
21664
|
_react.useEffect.call(void 0, () => {
|
|
21662
21665
|
const sentinel = sentinelRef.current;
|
|
@@ -21890,7 +21893,7 @@ var MODEL_TOKEN_RATES_COPY = {
|
|
|
21890
21893
|
empty: "No token rates are in effect right now."
|
|
21891
21894
|
};
|
|
21892
21895
|
function providerMark(providerType, stated, className) {
|
|
21893
|
-
const Mark = _chunk5RGGUQ4Ycjs.findIcon.call(void 0,
|
|
21896
|
+
const Mark = _chunk5RGGUQ4Ycjs.findIcon.call(void 0, _chunkIE3CPPHJcjs.aiProvider.call(void 0, providerType, { icon: stated }).icon);
|
|
21894
21897
|
return Mark ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Mark, { className }) : void 0;
|
|
21895
21898
|
}
|
|
21896
21899
|
var PAD_X = "px-[var(--spacing-system-s)]";
|
|
@@ -21908,7 +21911,7 @@ var UNIT_LINE_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
|
21908
21911
|
var TABS_ROW_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0, "shrink-0 border-b border-ods-border py-[var(--spacing-system-xs)]", PAD_X);
|
|
21909
21912
|
var NUMBER_CELL = "w-16 shrink-0 whitespace-nowrap text-right tabular-nums";
|
|
21910
21913
|
function useProviderGroup(rates) {
|
|
21911
|
-
const groups =
|
|
21914
|
+
const groups = _chunkIE3CPPHJcjs.groupTokenRatesByProvider.call(void 0, rates);
|
|
21912
21915
|
const [picked, setPicked] = _react.useState.call(void 0, null);
|
|
21913
21916
|
return { groups, group: _nullishCoalesce(groups.find((candidate) => candidate.providerType === picked), () => ( groups[0])), setPicked };
|
|
21914
21917
|
}
|
|
@@ -21919,7 +21922,7 @@ function ProviderTabs({
|
|
|
21919
21922
|
className
|
|
21920
21923
|
}) {
|
|
21921
21924
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21922
|
-
|
|
21925
|
+
_chunkTVAU56UUcjs.TabSelector,
|
|
21923
21926
|
{
|
|
21924
21927
|
variant: "secondary",
|
|
21925
21928
|
scrollable: true,
|
|
@@ -21927,8 +21930,8 @@ function ProviderTabs({
|
|
|
21927
21930
|
onValueChange,
|
|
21928
21931
|
items: groups.map((candidate) => ({
|
|
21929
21932
|
id: candidate.providerType,
|
|
21930
|
-
label:
|
|
21931
|
-
icon: providerMark(candidate.providerType, _optionalChain([candidate, 'access',
|
|
21933
|
+
label: _chunkIE3CPPHJcjs.tokenRateProviderLabel.call(void 0, candidate.providerType, _optionalChain([candidate, 'access', _460 => _460.rates, 'access', _461 => _461[0], 'optionalAccess', _462 => _462.providerLabel])),
|
|
21934
|
+
icon: providerMark(candidate.providerType, _optionalChain([candidate, 'access', _463 => _463.rates, 'access', _464 => _464[0], 'optionalAccess', _465 => _465.providerIcon]), "size-full")
|
|
21932
21935
|
})),
|
|
21933
21936
|
className
|
|
21934
21937
|
}
|
|
@@ -22004,8 +22007,8 @@ function ModelTokenRatesTable({ rates }) {
|
|
|
22004
22007
|
] }),
|
|
22005
22008
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { role: "rowgroup", className: "min-h-0 flex-1 overflow-y-auto", children: group.rates.map((rate) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { "data-loading-item": true, role: "row", className: BODY_ROW_CLASS, children: [
|
|
22006
22009
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "rowheader", className: "min-w-0 flex-1 truncate", children: rate.displayName || rate.modelName }),
|
|
22007
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children:
|
|
22008
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children:
|
|
22010
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunkIE3CPPHJcjs.formatTokenRate.call(void 0, rate.inputTokenRate) }),
|
|
22011
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunkIE3CPPHJcjs.formatTokenRate.call(void 0, rate.outputTokenRate) })
|
|
22009
22012
|
] }, rate.modelName)) })
|
|
22010
22013
|
] }),
|
|
22011
22014
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: UNIT_LINE_CLASS, children: MODEL_TOKEN_RATES_COPY.unit })
|
|
@@ -22052,7 +22055,7 @@ function modelOption(rate) {
|
|
|
22052
22055
|
return {
|
|
22053
22056
|
label: rate.displayName || rate.modelName,
|
|
22054
22057
|
value: rate.modelName,
|
|
22055
|
-
description:
|
|
22058
|
+
description: _chunkIE3CPPHJcjs.tokenRateProviderLabel.call(void 0, rate.providerType, rate.providerLabel),
|
|
22056
22059
|
icon: providerMark(rate.providerType, rate.providerIcon, "size-full text-ods-text-secondary")
|
|
22057
22060
|
};
|
|
22058
22061
|
}
|
|
@@ -22105,10 +22108,10 @@ function ModelTokenExchange({
|
|
|
22105
22108
|
const failed = !loading && (status === "error" || status === "ready" && !rate);
|
|
22106
22109
|
const sliderId = _react.useId.call(void 0, );
|
|
22107
22110
|
const [chosen, setChosen] = _react.useState.call(void 0, null);
|
|
22108
|
-
const balance = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(chosen, () => ( defaultAmount)), () => ( _optionalChain([tokenPrice, 'optionalAccess',
|
|
22111
|
+
const balance = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(chosen, () => ( defaultAmount)), () => ( _optionalChain([tokenPrice, 'optionalAccess', _466 => _466.tokens]))), () => ( MODEL_TOKEN_EXCHANGE_BALANCE));
|
|
22109
22112
|
const max = Math.max(amountRange.max, balance, ...presets.map((preset) => preset.tokens));
|
|
22110
|
-
const tokens =
|
|
22111
|
-
const cost =
|
|
22113
|
+
const tokens = _chunkIE3CPPHJcjs.formatTokenAmount.call(void 0, balance);
|
|
22114
|
+
const cost = _chunkIE3CPPHJcjs.tokenCost.call(void 0, balance, tokenPrice);
|
|
22112
22115
|
const balancePrice = cost === null ? null : _chunk6UKH22NQcjs.formatPrice.call(void 0, cost);
|
|
22113
22116
|
const model = rate ? rate.displayName || rate.modelName : "";
|
|
22114
22117
|
const options = models.map(modelOption);
|
|
@@ -22151,7 +22154,7 @@ function ModelTokenExchange({
|
|
|
22151
22154
|
variant: preset.tokens === balance ? "accent" : "outline",
|
|
22152
22155
|
size: "small",
|
|
22153
22156
|
onClick: () => setChosen(preset.tokens),
|
|
22154
|
-
children: copy.buy.preset(
|
|
22157
|
+
children: copy.buy.preset(_chunkIE3CPPHJcjs.formatTokenAmount.call(void 0, preset.tokens), preset.label)
|
|
22155
22158
|
},
|
|
22156
22159
|
preset.label
|
|
22157
22160
|
)) })
|
|
@@ -22165,32 +22168,32 @@ function ModelTokenExchange({
|
|
|
22165
22168
|
skeletonCount: PROVIDER_SKELETON_ROWS,
|
|
22166
22169
|
optionDescriptions: false,
|
|
22167
22170
|
options: providers.map((providerType) => {
|
|
22168
|
-
const stated = _nullishCoalesce(models.find((option) => option.providerType === providerType), () => ( (_optionalChain([rate, 'optionalAccess',
|
|
22171
|
+
const stated = _nullishCoalesce(models.find((option) => option.providerType === providerType), () => ( (_optionalChain([rate, 'optionalAccess', _467 => _467.providerType]) === providerType ? rate : null)));
|
|
22169
22172
|
return {
|
|
22170
22173
|
id: providerType,
|
|
22171
|
-
name:
|
|
22172
|
-
icon: providerMark(providerType, _optionalChain([stated, 'optionalAccess',
|
|
22174
|
+
name: _chunkIE3CPPHJcjs.tokenRateProviderLabel.call(void 0, providerType, _optionalChain([stated, 'optionalAccess', _468 => _468.providerLabel])),
|
|
22175
|
+
icon: providerMark(providerType, _optionalChain([stated, 'optionalAccess', _469 => _469.providerIcon]), "size-8 text-ods-text-secondary")
|
|
22173
22176
|
};
|
|
22174
22177
|
}),
|
|
22175
22178
|
selectedIds: provider ? [provider] : [],
|
|
22176
22179
|
onSelectionChange: (ids) => {
|
|
22177
|
-
if (ids[0]) _optionalChain([onProviderChange, 'optionalCall',
|
|
22180
|
+
if (ids[0]) _optionalChain([onProviderChange, 'optionalCall', _470 => _470(ids[0])]);
|
|
22178
22181
|
},
|
|
22179
22182
|
multiSelect: false
|
|
22180
22183
|
}
|
|
22181
22184
|
),
|
|
22182
22185
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22183
|
-
|
|
22186
|
+
_chunkIYWX4GOGcjs.Autocomplete,
|
|
22184
22187
|
{
|
|
22185
22188
|
fieldLoading: loading,
|
|
22186
22189
|
label: copy.use.model,
|
|
22187
|
-
value: _nullishCoalesce(_optionalChain([rate, 'optionalAccess',
|
|
22190
|
+
value: _nullishCoalesce(_optionalChain([rate, 'optionalAccess', _471 => _471.modelName]), () => ( null)),
|
|
22188
22191
|
onChange: (modelName) => {
|
|
22189
|
-
if (modelName) _optionalChain([onPick, 'optionalCall',
|
|
22192
|
+
if (modelName) _optionalChain([onPick, 'optionalCall', _472 => _472(modelName)]);
|
|
22190
22193
|
},
|
|
22191
22194
|
options,
|
|
22192
22195
|
inputValue: query,
|
|
22193
|
-
onInputChange: (value) => _optionalChain([onQueryChange, 'optionalCall',
|
|
22196
|
+
onInputChange: (value) => _optionalChain([onQueryChange, 'optionalCall', _473 => _473(value)]),
|
|
22194
22197
|
disableClientFilter: true,
|
|
22195
22198
|
loading: searching && Boolean(query),
|
|
22196
22199
|
disabled: providers.length === 0,
|
|
@@ -22207,7 +22210,7 @@ function ModelTokenExchange({
|
|
|
22207
22210
|
{
|
|
22208
22211
|
size: "plain",
|
|
22209
22212
|
loading,
|
|
22210
|
-
figure:
|
|
22213
|
+
figure: _chunkIE3CPPHJcjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _474 => _474.inputTokenRate])),
|
|
22211
22214
|
words: copy.charge.input
|
|
22212
22215
|
}
|
|
22213
22216
|
),
|
|
@@ -22216,7 +22219,7 @@ function ModelTokenExchange({
|
|
|
22216
22219
|
{
|
|
22217
22220
|
size: "plain",
|
|
22218
22221
|
loading,
|
|
22219
|
-
figure:
|
|
22222
|
+
figure: _chunkIE3CPPHJcjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _475 => _475.outputTokenRate])),
|
|
22220
22223
|
words: copy.charge.output
|
|
22221
22224
|
}
|
|
22222
22225
|
)
|
|
@@ -22228,9 +22231,9 @@ function ModelTokenExchange({
|
|
|
22228
22231
|
className: "mt-auto flex flex-col rounded-md border border-ods-accent bg-ods-bg p-[var(--spacing-system-mf)]",
|
|
22229
22232
|
children: [
|
|
22230
22233
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[2lh] text-ods-text-secondary text-h4", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-full max-w-xs" }) : copy.charge.so(_nullishCoalesce(balancePrice, () => ( copy.buy.tokens(tokens))), model) }),
|
|
22231
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] whitespace-nowrap tabular-nums text-ods-text-primary text-h1", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-40" }) :
|
|
22234
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] whitespace-nowrap tabular-nums text-ods-text-primary text-h1", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-40" }) : _chunkIE3CPPHJcjs.formatTokenAmount.call(void 0, _chunkIE3CPPHJcjs.tokensForBalance.call(void 0, balance, rate.inputTokenRate)) }),
|
|
22232
22235
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-primary text-h3", children: copy.charge.read }),
|
|
22233
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-secondary text-h4", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-48" }) : copy.charge.orWritten(
|
|
22236
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-secondary text-h4", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-48" }) : copy.charge.orWritten(_chunkIE3CPPHJcjs.formatTokenAmount.call(void 0, _chunkIE3CPPHJcjs.tokensForBalance.call(void 0, balance, rate.outputTokenRate))) })
|
|
22234
22237
|
]
|
|
22235
22238
|
}
|
|
22236
22239
|
)
|
|
@@ -22777,14 +22780,14 @@ var ConfidenceBadge = ({
|
|
|
22777
22780
|
size = "sm",
|
|
22778
22781
|
className
|
|
22779
22782
|
}) => {
|
|
22780
|
-
const level =
|
|
22783
|
+
const level = _chunkIE3CPPHJcjs.getConfidenceLevel.call(void 0, confidence);
|
|
22781
22784
|
if (level === "none") {
|
|
22782
22785
|
return null;
|
|
22783
22786
|
}
|
|
22784
|
-
const label =
|
|
22785
|
-
const borderClass =
|
|
22786
|
-
const textClass =
|
|
22787
|
-
const bgClass =
|
|
22787
|
+
const label = _chunkIE3CPPHJcjs.getConfidenceLabel.call(void 0, confidence);
|
|
22788
|
+
const borderClass = _chunkIE3CPPHJcjs.getConfidenceBorderClass.call(void 0, confidence);
|
|
22789
|
+
const textClass = _chunkIE3CPPHJcjs.getConfidenceTextClass.call(void 0, confidence);
|
|
22790
|
+
const bgClass = _chunkIE3CPPHJcjs.getConfidenceBgClass.call(void 0, confidence);
|
|
22788
22791
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
22789
22792
|
"span",
|
|
22790
22793
|
{
|
|
@@ -22835,9 +22838,9 @@ function SEOEditorPreview({
|
|
|
22835
22838
|
const [isUploading, setIsUploading] = _react.useState.call(void 0, false);
|
|
22836
22839
|
const [fileInputRef, setFileInputRef] = _react.useState.call(void 0, null);
|
|
22837
22840
|
const seoTitleLength = (seoTitle || "").length;
|
|
22838
|
-
const seoTitleTooLong = seoTitleLength >
|
|
22841
|
+
const seoTitleTooLong = seoTitleLength > _chunkIE3CPPHJcjs.SEO_TITLE_MAX_LENGTH;
|
|
22839
22842
|
const seoDescriptionLength = (seoDescription || "").length;
|
|
22840
|
-
const seoDescriptionTooLong = seoDescriptionLength >
|
|
22843
|
+
const seoDescriptionTooLong = seoDescriptionLength > _chunkIE3CPPHJcjs.SEO_DESCRIPTION_MAX_LENGTH;
|
|
22841
22844
|
const displayTitle = seoTitle.trim() || title || "Untitled";
|
|
22842
22845
|
const displayDescription = seoDescription.trim() || summary || "No description";
|
|
22843
22846
|
const hasOgImage = ogImageUrl.trim();
|
|
@@ -22845,7 +22848,7 @@ function SEOEditorPreview({
|
|
|
22845
22848
|
const displayImage = hasOgImage || hasFeaturedImage;
|
|
22846
22849
|
const handleImageUpload = async (event) => {
|
|
22847
22850
|
if (!onOgImageUpload) return;
|
|
22848
|
-
const file = _optionalChain([event, 'access',
|
|
22851
|
+
const file = _optionalChain([event, 'access', _476 => _476.target, 'access', _477 => _477.files, 'optionalAccess', _478 => _478[0]]);
|
|
22849
22852
|
if (!file) return;
|
|
22850
22853
|
setIsUploading(true);
|
|
22851
22854
|
try {
|
|
@@ -22862,10 +22865,10 @@ function SEOEditorPreview({
|
|
|
22862
22865
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
22863
22866
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
22864
22867
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22865
|
-
|
|
22868
|
+
_chunkIE3CPPHJcjs.Field,
|
|
22866
22869
|
{
|
|
22867
22870
|
label: "SEO Title",
|
|
22868
|
-
error: seoTitleTooLong ? `Too long: search engines may truncate this title (keep it under ${
|
|
22871
|
+
error: seoTitleTooLong ? `Too long: search engines may truncate this title (keep it under ${_chunkIE3CPPHJcjs.SEO_TITLE_MAX_LENGTH})` : null,
|
|
22869
22872
|
labelExtras: aiConfidenceSeoTitle !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
22870
22873
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
|
|
22871
22874
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ConfidenceBadge, { confidence: aiConfidenceSeoTitle, showLabel: true, showPercentage: true, size: "sm" })
|
|
@@ -22880,7 +22883,7 @@ function SEOEditorPreview({
|
|
|
22880
22883
|
children: [
|
|
22881
22884
|
seoTitleLength,
|
|
22882
22885
|
"/",
|
|
22883
|
-
|
|
22886
|
+
_chunkIE3CPPHJcjs.SEO_TITLE_MAX_LENGTH
|
|
22884
22887
|
]
|
|
22885
22888
|
}
|
|
22886
22889
|
),
|
|
@@ -22891,7 +22894,7 @@ function SEOEditorPreview({
|
|
|
22891
22894
|
value: seoTitle || "",
|
|
22892
22895
|
onChange: (e) => onSeoTitleChange(e.target.value),
|
|
22893
22896
|
disabled,
|
|
22894
|
-
maxLength:
|
|
22897
|
+
maxLength: _chunkIE3CPPHJcjs.SEO_TITLE_MAX_LENGTH,
|
|
22895
22898
|
invalid: seoTitleTooLong,
|
|
22896
22899
|
placeholder: "Enter SEO meta title...",
|
|
22897
22900
|
className: "border-ods-border bg-ods-bg text-ods-text-primary"
|
|
@@ -22902,7 +22905,7 @@ function SEOEditorPreview({
|
|
|
22902
22905
|
!seoTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-accent text-h6", children: "Auto-populated from title" })
|
|
22903
22906
|
] }),
|
|
22904
22907
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22905
|
-
|
|
22908
|
+
_chunkIE3CPPHJcjs.Field,
|
|
22906
22909
|
{
|
|
22907
22910
|
label: "SEO Keywords",
|
|
22908
22911
|
labelExtras: aiConfidenceSeoKeywords !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -22934,10 +22937,10 @@ function SEOEditorPreview({
|
|
|
22934
22937
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
22935
22938
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
22936
22939
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22937
|
-
|
|
22940
|
+
_chunkIE3CPPHJcjs.Field,
|
|
22938
22941
|
{
|
|
22939
22942
|
label: "SEO Description",
|
|
22940
|
-
error: seoDescriptionTooLong ? `Too long: search engines may truncate this description (keep it under ${
|
|
22943
|
+
error: seoDescriptionTooLong ? `Too long: search engines may truncate this description (keep it under ${_chunkIE3CPPHJcjs.SEO_DESCRIPTION_MAX_LENGTH})` : null,
|
|
22941
22944
|
labelExtras: aiConfidenceSeoDescription !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
22942
22945
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
|
|
22943
22946
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -22960,7 +22963,7 @@ function SEOEditorPreview({
|
|
|
22960
22963
|
children: [
|
|
22961
22964
|
seoDescriptionLength,
|
|
22962
22965
|
"/",
|
|
22963
|
-
|
|
22966
|
+
_chunkIE3CPPHJcjs.SEO_DESCRIPTION_MAX_LENGTH
|
|
22964
22967
|
]
|
|
22965
22968
|
}
|
|
22966
22969
|
),
|
|
@@ -22971,7 +22974,7 @@ function SEOEditorPreview({
|
|
|
22971
22974
|
value: seoDescription || "",
|
|
22972
22975
|
onChange: (e) => onSeoDescriptionChange(e.target.value),
|
|
22973
22976
|
disabled,
|
|
22974
|
-
maxLength:
|
|
22977
|
+
maxLength: _chunkIE3CPPHJcjs.SEO_DESCRIPTION_MAX_LENGTH,
|
|
22975
22978
|
invalid: seoDescriptionTooLong,
|
|
22976
22979
|
placeholder: "Enter SEO meta description...",
|
|
22977
22980
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "resize-none border-ods-border bg-ods-bg text-ods-text-primary", SEO_MEDIA_BOX_HEIGHT)
|
|
@@ -23002,7 +23005,7 @@ function SEOEditorPreview({
|
|
|
23002
23005
|
type: "button",
|
|
23003
23006
|
variant: "outline",
|
|
23004
23007
|
size: "icon",
|
|
23005
|
-
onClick: () => _optionalChain([fileInputRef, 'optionalAccess',
|
|
23008
|
+
onClick: () => _optionalChain([fileInputRef, 'optionalAccess', _479 => _479.click, 'call', _480 => _480()]),
|
|
23006
23009
|
disabled: disabled || isUploading,
|
|
23007
23010
|
className: "rounded-full bg-white text-black opacity-0 hover:bg-gray-100 group-hover:opacity-100",
|
|
23008
23011
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Upload, { className: "h-4 w-4" })
|
|
@@ -23028,7 +23031,7 @@ function SEOEditorPreview({
|
|
|
23028
23031
|
SEO_MEDIA_BOX_HEIGHT,
|
|
23029
23032
|
"flex cursor-pointer flex-col items-center justify-center rounded-lg border-2 border-dashed border-ods-border bg-ods-bg-hover transition-colors hover:border-ods-accent"
|
|
23030
23033
|
),
|
|
23031
|
-
onClick: () => onOgImageUpload && _optionalChain([fileInputRef, 'optionalAccess',
|
|
23034
|
+
onClick: () => onOgImageUpload && _optionalChain([fileInputRef, 'optionalAccess', _481 => _481.click, 'call', _482 => _482()]),
|
|
23032
23035
|
children: isUploading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "h-8 w-8 animate-spin text-ods-accent" }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
23033
23036
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Upload, { className: "mb-2 h-8 w-8 text-ods-text-secondary" }),
|
|
23034
23037
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h6", children: onOgImageUpload ? "Click to upload OG image" : "No image" })
|
|
@@ -23124,7 +23127,7 @@ function socialIcon(platform) {
|
|
|
23124
23127
|
return _nullishCoalesce(_chunk5RGGUQ4Ycjs.iconOf.call(void 0, SOCIAL_ICONS[platform]), () => ( void 0));
|
|
23125
23128
|
}
|
|
23126
23129
|
function renderSocialIcon(platform) {
|
|
23127
|
-
const key = _nullishCoalesce(
|
|
23130
|
+
const key = _nullishCoalesce(_chunkIE3CPPHJcjs.normalizeSocialPlatform.call(void 0, platform), () => ( "website"));
|
|
23128
23131
|
const icon = _nullishCoalesce(socialIcon(key), () => ( socialIcon("website")));
|
|
23129
23132
|
return icon ? _react.createElement.call(void 0, icon, { className: "h-5 w-5" }) : null;
|
|
23130
23133
|
}
|
|
@@ -23202,7 +23205,7 @@ function SocialLinksManager({
|
|
|
23202
23205
|
className = ""
|
|
23203
23206
|
}) {
|
|
23204
23207
|
const addLink = () => {
|
|
23205
|
-
const firstPlatform = _optionalChain([platforms, 'access',
|
|
23208
|
+
const firstPlatform = _optionalChain([platforms, 'access', _483 => _483[0], 'optionalAccess', _484 => _484.name]) || "website";
|
|
23206
23209
|
onChange([...links, { platform: firstPlatform, url: "" }]);
|
|
23207
23210
|
};
|
|
23208
23211
|
const removeLink = (index) => {
|
|
@@ -23214,8 +23217,8 @@ function SocialLinksManager({
|
|
|
23214
23217
|
onChange(updated);
|
|
23215
23218
|
};
|
|
23216
23219
|
const getIcon = (link, platform) => {
|
|
23217
|
-
const iconKey = _optionalChain([platform, 'optionalAccess',
|
|
23218
|
-
const key =
|
|
23220
|
+
const iconKey = _optionalChain([platform, 'optionalAccess', _485 => _485.icon_name]) || link.platform;
|
|
23221
|
+
const key = _chunkIE3CPPHJcjs.normalizeSocialPlatform.call(void 0, iconKey);
|
|
23219
23222
|
if (!key) return null;
|
|
23220
23223
|
const icon = socialIcon(key);
|
|
23221
23224
|
return icon ? _react.createElement.call(void 0, icon, { className: "h-5 w-5 text-ods-text-secondary" }) : null;
|
|
@@ -23231,14 +23234,14 @@ function SocialLinksManager({
|
|
|
23231
23234
|
children: [
|
|
23232
23235
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-8 w-8 items-center justify-center", children: Icon }),
|
|
23233
23236
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid flex-1 grid-cols-2 gap-3", children: [
|
|
23234
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23235
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23236
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23237
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIYWX4GOGcjs.Select, { value: link.platform, onValueChange: (value) => updateLink(index, "platform", value), children: [
|
|
23238
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectValue, {}) }),
|
|
23239
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectContent, { children: platforms.map((p) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: p.name, children: p.display_name }, p.name)) })
|
|
23237
23240
|
] }) }),
|
|
23238
23241
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23239
23242
|
_chunkTTZEDDR5cjs.Input,
|
|
23240
23243
|
{
|
|
23241
|
-
placeholder: _optionalChain([platform, 'optionalAccess',
|
|
23244
|
+
placeholder: _optionalChain([platform, 'optionalAccess', _486 => _486.placeholder]) || "Profile URL",
|
|
23242
23245
|
value: link.url,
|
|
23243
23246
|
onChange: (e) => updateLink(index, "url", e.target.value),
|
|
23244
23247
|
onKeyDown: (e) => {
|
|
@@ -23251,15 +23254,15 @@ function SocialLinksManager({
|
|
|
23251
23254
|
)
|
|
23252
23255
|
] }),
|
|
23253
23256
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23254
|
-
|
|
23257
|
+
_chunkIYWX4GOGcjs.Select,
|
|
23255
23258
|
{
|
|
23256
23259
|
value: _nullishCoalesce(link.visibility, () => ( "external")),
|
|
23257
23260
|
onValueChange: (value) => updateLink(index, "visibility", value),
|
|
23258
23261
|
children: [
|
|
23259
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23260
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23261
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23262
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23262
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectTrigger, { className: "w-[120px] shrink-0", "aria-label": "Social link visibility", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectValue, {}) }),
|
|
23263
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIYWX4GOGcjs.SelectContent, { children: [
|
|
23264
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: "external", children: "Public" }),
|
|
23265
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: "internal", children: "Internal" })
|
|
23263
23266
|
] })
|
|
23264
23267
|
]
|
|
23265
23268
|
}
|
|
@@ -23683,7 +23686,7 @@ function VideoBitesDisplay({
|
|
|
23683
23686
|
filterPublished = true,
|
|
23684
23687
|
showTitle = true
|
|
23685
23688
|
}) {
|
|
23686
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23689
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTVAU56UUcjs.VideoBitesStrip, { bites, title, filterPublished, showTitle });
|
|
23687
23690
|
}
|
|
23688
23691
|
|
|
23689
23692
|
// src/components/features/walkthrough-video.tsx
|
|
@@ -23695,8 +23698,8 @@ var INLINE_CARD_BOX_CLASS = `${_chunk4WIJI4AKcjs.MEDIA_ASPECT.video} w-full roun
|
|
|
23695
23698
|
var FIRST_INTERACTION_EVENTS = ["scroll", "pointerdown", "keydown"];
|
|
23696
23699
|
var isAtEnd = (duration, time) => duration > 0 && duration - time < 1;
|
|
23697
23700
|
function theaterSeedFromLive(live, fallbackTime, fallbackMuted) {
|
|
23698
|
-
const time = _nullishCoalesce(_optionalChain([live, 'optionalAccess',
|
|
23699
|
-
const atEnd = isAtEnd(_nullishCoalesce(_optionalChain([live, 'optionalAccess',
|
|
23701
|
+
const time = _nullishCoalesce(_optionalChain([live, 'optionalAccess', _487 => _487.getCurrentTime, 'call', _488 => _488()]), () => ( 0));
|
|
23702
|
+
const atEnd = isAtEnd(_nullishCoalesce(_optionalChain([live, 'optionalAccess', _489 => _489.getDuration, 'call', _490 => _490()]), () => ( 0)), time);
|
|
23700
23703
|
return {
|
|
23701
23704
|
// At end -> start over, never rewind to an unrelated older anchor.
|
|
23702
23705
|
time: atEnd ? 0 : time > 0.5 ? time : fallbackTime,
|
|
@@ -23713,7 +23716,7 @@ function WalkthroughVideo({
|
|
|
23713
23716
|
onOpenChange,
|
|
23714
23717
|
defaultOpen,
|
|
23715
23718
|
defaultOpenPaused,
|
|
23716
|
-
deepLinkParam =
|
|
23719
|
+
deepLinkParam = _chunkIE3CPPHJcjs.WALKTHROUGH_OPEN_QUERY_PARAM,
|
|
23717
23720
|
autoPlayCard = false,
|
|
23718
23721
|
label = "Play Demo Video",
|
|
23719
23722
|
placement,
|
|
@@ -23730,19 +23733,19 @@ function WalkthroughVideo({
|
|
|
23730
23733
|
const inline = placement === "inline";
|
|
23731
23734
|
const inScope = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
23732
23735
|
const dismissEnabled = dismissal !== false;
|
|
23733
|
-
const storageKey = dismissEnabled && dismissal.storageKey ||
|
|
23734
|
-
const dismissalId = _optionalChain([video, 'optionalAccess',
|
|
23736
|
+
const storageKey = dismissEnabled && dismissal.storageKey || _chunkIE3CPPHJcjs.WALKTHROUGH_VIDEO_DISMISS_KEY;
|
|
23737
|
+
const dismissalId = _optionalChain([video, 'optionalAccess', _491 => _491.id]) != null ? String(video.id) : "dismissed";
|
|
23735
23738
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
23736
23739
|
const [dismissed, setDismissed] = _react.useState.call(void 0, false);
|
|
23737
23740
|
const hasVideo = video != null;
|
|
23738
|
-
const videoId = _optionalChain([video, 'optionalAccess',
|
|
23741
|
+
const videoId = _optionalChain([video, 'optionalAccess', _492 => _492.id]);
|
|
23739
23742
|
_react.useEffect.call(void 0, () => {
|
|
23740
23743
|
let idleHandle = null;
|
|
23741
23744
|
if (!hasVideo) return void 0;
|
|
23742
23745
|
let delayElapsed = false;
|
|
23743
23746
|
let interacted = inline;
|
|
23744
23747
|
const reveal = () => {
|
|
23745
|
-
if (dismissEnabled &&
|
|
23748
|
+
if (dismissEnabled && _chunkIE3CPPHJcjs.isWalkthroughDismissed.call(void 0, storageKey, dismissalId)) {
|
|
23746
23749
|
setDismissed(true);
|
|
23747
23750
|
return;
|
|
23748
23751
|
}
|
|
@@ -23779,13 +23782,13 @@ function WalkthroughVideo({
|
|
|
23779
23782
|
if (idleHandle !== null && typeof cic === "function") cic(idleHandle);
|
|
23780
23783
|
};
|
|
23781
23784
|
}, [appearDelayMs, dismissEnabled, storageKey, dismissalId, hasVideo, videoId, inline]);
|
|
23782
|
-
const hydrated =
|
|
23785
|
+
const hydrated = _chunkTVAU56UUcjs.useIsHydrated.call(void 0, );
|
|
23783
23786
|
const previewSuppressed = _react.useMemo.call(void 0, () => {
|
|
23784
23787
|
if (!hydrated) return false;
|
|
23785
23788
|
try {
|
|
23786
|
-
const reducedMotion = _nullishCoalesce(_optionalChain([window, 'access',
|
|
23789
|
+
const reducedMotion = _nullishCoalesce(_optionalChain([window, 'access', _493 => _493.matchMedia, 'optionalCall', _494 => _494("(prefers-reduced-motion: reduce)"), 'access', _495 => _495.matches]), () => ( false));
|
|
23787
23790
|
const conn = navigator.connection;
|
|
23788
|
-
const saveData = _optionalChain([conn, 'optionalAccess',
|
|
23791
|
+
const saveData = _optionalChain([conn, 'optionalAccess', _496 => _496.saveData]) === true || _optionalChain([conn, 'optionalAccess', _497 => _497.effectiveType]) === "2g" || _optionalChain([conn, 'optionalAccess', _498 => _498.effectiveType]) === "slow-2g";
|
|
23789
23792
|
return Boolean(reducedMotion || saveData);
|
|
23790
23793
|
} catch (e15) {
|
|
23791
23794
|
return false;
|
|
@@ -23811,7 +23814,7 @@ function WalkthroughVideo({
|
|
|
23811
23814
|
const endedLatchRef = _react.useRef.call(void 0, false);
|
|
23812
23815
|
const [hovered, setHovered] = _react.useState.call(void 0, false);
|
|
23813
23816
|
const [handoff, setHandoff] = _react.useState.call(void 0,
|
|
23814
|
-
() => autoPlayCard && !_optionalChain([video, 'optionalAccess',
|
|
23817
|
+
() => autoPlayCard && !_optionalChain([video, 'optionalAccess', _499 => _499.youtubeUrl]) ? { time: 0, muted: true, playing: true } : null
|
|
23815
23818
|
);
|
|
23816
23819
|
const [suspended, setSuspended] = _react.useState.call(void 0, false);
|
|
23817
23820
|
const [theaterStart, setTheaterStart] = _react.useState.call(void 0, { time: 0, muted: false });
|
|
@@ -23820,18 +23823,18 @@ function WalkthroughVideo({
|
|
|
23820
23823
|
const [cardMuted, setCardMuted] = _react.useState.call(void 0, false);
|
|
23821
23824
|
const [cardPaused, setCardPaused] = _react.useState.call(void 0, false);
|
|
23822
23825
|
const [userMuted, setUserMuted] = _react.useState.call(void 0, false);
|
|
23823
|
-
const isYouTube = Boolean(_optionalChain([video, 'optionalAccess',
|
|
23826
|
+
const isYouTube = Boolean(_optionalChain([video, 'optionalAccess', _500 => _500.youtubeUrl]));
|
|
23824
23827
|
const resumeMode = !open && handoff !== null && !isYouTube;
|
|
23825
23828
|
const previewAllowed = !previewSuppressed && !isYouTube;
|
|
23826
23829
|
const footerFadeKey = `${mounted ? 1 : 0}|${inline ? 1 : 0}|${hideNearSelector}|${pathname}`;
|
|
23827
|
-
const footerHidden = _optionalChain([footerObservation, 'optionalAccess',
|
|
23830
|
+
const footerHidden = _optionalChain([footerObservation, 'optionalAccess', _501 => _501.key]) === footerFadeKey && footerObservation.hidden;
|
|
23828
23831
|
_react.useEffect.call(void 0, () => {
|
|
23829
23832
|
if (!mounted) return void 0;
|
|
23830
23833
|
if (inline) return void 0;
|
|
23831
23834
|
const el = typeof document !== "undefined" ? document.querySelector(hideNearSelector) : null;
|
|
23832
23835
|
if (!el || typeof IntersectionObserver === "undefined") return void 0;
|
|
23833
23836
|
const io = new IntersectionObserver(
|
|
23834
|
-
(entries) => setFooterObservation({ key: footerFadeKey, hidden: _nullishCoalesce(_optionalChain([entries, 'access',
|
|
23837
|
+
(entries) => setFooterObservation({ key: footerFadeKey, hidden: _nullishCoalesce(_optionalChain([entries, 'access', _502 => _502[0], 'optionalAccess', _503 => _503.isIntersecting]), () => ( false)) }),
|
|
23835
23838
|
{ rootMargin: "0px 0px -40px 0px" }
|
|
23836
23839
|
);
|
|
23837
23840
|
io.observe(el);
|
|
@@ -23857,7 +23860,7 @@ function WalkthroughVideo({
|
|
|
23857
23860
|
if (!footerHidden) return;
|
|
23858
23861
|
const h = _nullishCoalesce(resumeHandleRef.current, () => ( previewHandleRef.current));
|
|
23859
23862
|
try {
|
|
23860
|
-
_optionalChain([h, 'optionalAccess',
|
|
23863
|
+
_optionalChain([h, 'optionalAccess', _504 => _504.pause, 'call', _505 => _505()]);
|
|
23861
23864
|
} catch (e17) {
|
|
23862
23865
|
}
|
|
23863
23866
|
}, [footerHidden, resumeMode, hovered]);
|
|
@@ -23876,30 +23879,30 @@ function WalkthroughVideo({
|
|
|
23876
23879
|
}, 400);
|
|
23877
23880
|
}
|
|
23878
23881
|
if (openProp === void 0) setOpenState(next);
|
|
23879
|
-
_optionalChain([onOpenChange, 'optionalCall',
|
|
23882
|
+
_optionalChain([onOpenChange, 'optionalCall', _506 => _506(next)]);
|
|
23880
23883
|
},
|
|
23881
23884
|
[openProp, onOpenChange]
|
|
23882
23885
|
);
|
|
23883
23886
|
const pausePreviewNow = _react.useCallback.call(void 0, () => {
|
|
23884
23887
|
const h = _nullishCoalesce(resumeHandleRef.current, () => ( previewHandleRef.current));
|
|
23885
23888
|
try {
|
|
23886
|
-
_optionalChain([h, 'optionalAccess',
|
|
23889
|
+
_optionalChain([h, 'optionalAccess', _507 => _507.pause, 'call', _508 => _508()]);
|
|
23887
23890
|
} catch (e18) {
|
|
23888
23891
|
}
|
|
23889
23892
|
setCardPaused(true);
|
|
23890
23893
|
}, [setCardPaused]);
|
|
23891
23894
|
const openTheater = _react.useCallback.call(void 0, () => {
|
|
23892
23895
|
const handleBeforePause = _nullishCoalesce(resumeHandleRef.current, () => ( previewHandleRef.current));
|
|
23893
|
-
const liveWasPlaying = _optionalChain([handleBeforePause, 'optionalAccess',
|
|
23896
|
+
const liveWasPlaying = _optionalChain([handleBeforePause, 'optionalAccess', _509 => _509.getPaused, 'call', _510 => _510()]) === false;
|
|
23894
23897
|
pausePreviewNow();
|
|
23895
23898
|
const liveHandle = _nullishCoalesce(resumeHandleRef.current, () => ( (cardModeRef.current === "preview" ? previewHandleRef.current : null)));
|
|
23896
|
-
const liveTime = _nullishCoalesce(_optionalChain([liveHandle, 'optionalAccess',
|
|
23897
|
-
const liveDuration = _nullishCoalesce(_optionalChain([liveHandle, 'optionalAccess',
|
|
23899
|
+
const liveTime = _nullishCoalesce(_optionalChain([liveHandle, 'optionalAccess', _511 => _511.getCurrentTime, 'call', _512 => _512()]), () => ( 0));
|
|
23900
|
+
const liveDuration = _nullishCoalesce(_optionalChain([liveHandle, 'optionalAccess', _513 => _513.getDuration, 'call', _514 => _514()]), () => ( 0));
|
|
23898
23901
|
const liveAtEnd = isAtEnd(liveDuration, liveTime);
|
|
23899
23902
|
const start = {
|
|
23900
23903
|
// At end -> start over. Falling back to `handoff.time` here would rewind
|
|
23901
23904
|
// to an unrelated older anchor (e.g. 3:20) instead of restarting.
|
|
23902
|
-
time: liveAtEnd ? 0 : liveTime > 0.5 ? liveTime : _nullishCoalesce(_optionalChain([handoff, 'optionalAccess',
|
|
23905
|
+
time: liveAtEnd ? 0 : liveTime > 0.5 ? liveTime : _nullishCoalesce(_optionalChain([handoff, 'optionalAccess', _515 => _515.time]), () => ( 0)),
|
|
23903
23906
|
// Live element wins over remembered intent (the theater's own chrome may
|
|
23904
23907
|
// have changed it) — EXCEPT when the element is muted only because
|
|
23905
23908
|
// autoplay policy forced it, which is not intent.
|
|
@@ -23927,7 +23930,7 @@ function WalkthroughVideo({
|
|
|
23927
23930
|
const selfDriven = selfDrivenFor === open;
|
|
23928
23931
|
if (openProp !== void 0 && !selfDriven) {
|
|
23929
23932
|
if (open) {
|
|
23930
|
-
setTheaterStart(theaterSeedFromLive(resumeHandleRef.current, _nullishCoalesce(_optionalChain([handoff, 'optionalAccess',
|
|
23933
|
+
setTheaterStart(theaterSeedFromLive(resumeHandleRef.current, _nullishCoalesce(_optionalChain([handoff, 'optionalAccess', _516 => _516.time]), () => ( 0)), userMuted));
|
|
23931
23934
|
setHovered(false);
|
|
23932
23935
|
setSuspended(false);
|
|
23933
23936
|
setHandoff(null);
|
|
@@ -24013,8 +24016,8 @@ function WalkthroughVideo({
|
|
|
24013
24016
|
});
|
|
24014
24017
|
_react.useEffect.call(void 0, () => {
|
|
24015
24018
|
if (resumeMode) {
|
|
24016
|
-
setCardMuted(_nullishCoalesce(_optionalChain([handoffRef, 'access',
|
|
24017
|
-
setCardPaused(_optionalChain([handoffRef, 'access',
|
|
24019
|
+
setCardMuted(_nullishCoalesce(_optionalChain([handoffRef, 'access', _517 => _517.current, 'optionalAccess', _518 => _518.muted]), () => ( false)));
|
|
24020
|
+
setCardPaused(_optionalChain([handoffRef, 'access', _519 => _519.current, 'optionalAccess', _520 => _520.playing]) === false);
|
|
24018
24021
|
}
|
|
24019
24022
|
}, [resumeMode]);
|
|
24020
24023
|
const [hoverSeeded, setHoverSeeded] = _react.useState.call(void 0, hovered);
|
|
@@ -24029,7 +24032,7 @@ function WalkthroughVideo({
|
|
|
24029
24032
|
(e) => {
|
|
24030
24033
|
e.stopPropagation();
|
|
24031
24034
|
pausePreviewNow();
|
|
24032
|
-
if (dismissEnabled)
|
|
24035
|
+
if (dismissEnabled) _chunkIE3CPPHJcjs.dismissWalkthrough.call(void 0, storageKey, dismissalId);
|
|
24033
24036
|
setDismissed(true);
|
|
24034
24037
|
},
|
|
24035
24038
|
[dismissEnabled, storageKey, dismissalId, pausePreviewNow]
|
|
@@ -24096,11 +24099,11 @@ function WalkthroughVideo({
|
|
|
24096
24099
|
},
|
|
24097
24100
|
[cardFallback.blocked, cardPaused, activeHandle, setCardPaused]
|
|
24098
24101
|
);
|
|
24099
|
-
const summaryTitle = _optionalChain([video, 'optionalAccess',
|
|
24100
|
-
const presenterAvatarSrc = _nullishCoalesce(_optionalChain([video, 'optionalAccess',
|
|
24102
|
+
const summaryTitle = _optionalChain([video, 'optionalAccess', _521 => _521.title]) || void 0;
|
|
24103
|
+
const presenterAvatarSrc = _nullishCoalesce(_optionalChain([video, 'optionalAccess', _522 => _522.presenterAvatarUrl]), () => ( null));
|
|
24101
24104
|
const embedUrlKey = _react.useMemo.call(void 0,
|
|
24102
|
-
() => `${_nullishCoalesce(_optionalChain([video, 'optionalAccess',
|
|
24103
|
-
[_optionalChain([video, 'optionalAccess',
|
|
24105
|
+
() => `${_nullishCoalesce(_optionalChain([video, 'optionalAccess', _523 => _523.mainVideoUrl]), () => ( ""))}|${_nullishCoalesce(_optionalChain([video, 'optionalAccess', _524 => _524.youtubeUrl]), () => ( ""))}`,
|
|
24106
|
+
[_optionalChain([video, 'optionalAccess', _525 => _525.mainVideoUrl]), _optionalChain([video, 'optionalAccess', _526 => _526.youtubeUrl])]
|
|
24104
24107
|
);
|
|
24105
24108
|
const cardActive = !open && previewAllowed && hovered && !resumeMode;
|
|
24106
24109
|
const cardMode = resumeMode ? "resume" : cardActive ? "preview" : "poster";
|
|
@@ -24161,7 +24164,7 @@ function WalkthroughVideo({
|
|
|
24161
24164
|
const el = e.target;
|
|
24162
24165
|
let keyboard = false;
|
|
24163
24166
|
try {
|
|
24164
|
-
keyboard = _nullishCoalesce(_optionalChain([el, 'access',
|
|
24167
|
+
keyboard = _nullishCoalesce(_optionalChain([el, 'access', _527 => _527.matches, 'optionalCall', _528 => _528(":focus-visible")]), () => ( false));
|
|
24165
24168
|
} catch (e23) {
|
|
24166
24169
|
keyboard = false;
|
|
24167
24170
|
}
|
|
@@ -24196,15 +24199,15 @@ function WalkthroughVideo({
|
|
|
24196
24199
|
previewHandleRef: cardMode === "resume" ? resumeHandleRef : previewHandleRef,
|
|
24197
24200
|
mutedIntent: userMuted,
|
|
24198
24201
|
continuation: cardMode === "resume",
|
|
24199
|
-
autoPlay: cardMode === "resume" && _optionalChain([handoff, 'optionalAccess',
|
|
24200
|
-
startTime: _optionalChain([resumeHandoff, 'optionalAccess',
|
|
24201
|
-
startMuted: _nullishCoalesce(_optionalChain([resumeHandoff, 'optionalAccess',
|
|
24202
|
+
autoPlay: cardMode === "resume" && _optionalChain([handoff, 'optionalAccess', _529 => _529.playing]) !== false && !footerHidden,
|
|
24203
|
+
startTime: _optionalChain([resumeHandoff, 'optionalAccess', _530 => _530.time]),
|
|
24204
|
+
startMuted: _nullishCoalesce(_optionalChain([resumeHandoff, 'optionalAccess', _531 => _531.muted]), () => ( false)),
|
|
24202
24205
|
onEnded: cardMode === "resume" ? () => setHandoff(null) : () => setCardPaused(true)
|
|
24203
24206
|
},
|
|
24204
24207
|
`card-${embedUrlKey}`
|
|
24205
24208
|
) }),
|
|
24206
24209
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24207
|
-
|
|
24210
|
+
_chunkTVAU56UUcjs.CardHitLayer,
|
|
24208
24211
|
{
|
|
24209
24212
|
label: video.title ? `${label}: ${video.title}` : label,
|
|
24210
24213
|
onPointerDown: pausePreviewNow,
|
|
@@ -24296,7 +24299,7 @@ function WalkthroughVideo({
|
|
|
24296
24299
|
{
|
|
24297
24300
|
onOpenAutoFocus: (e) => {
|
|
24298
24301
|
e.preventDefault();
|
|
24299
|
-
_optionalChain([closeButtonRef, 'access',
|
|
24302
|
+
_optionalChain([closeButtonRef, 'access', _532 => _532.current, 'optionalAccess', _533 => _533.focus, 'call', _534 => _534()]);
|
|
24300
24303
|
},
|
|
24301
24304
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
24302
24305
|
// PURE theater: just the video, centered on a dimmed backdrop.
|
|
@@ -24376,7 +24379,7 @@ function useWalkthroughVideo(opts) {
|
|
|
24376
24379
|
const { endpoint, initialData, enabled: enabledGiven = true, transformCaptionsUrl } = opts;
|
|
24377
24380
|
const inScope = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
24378
24381
|
const enabled = enabledGiven && !inScope;
|
|
24379
|
-
const captions =
|
|
24382
|
+
const captions = _chunkTVAU56UUcjs.useCaptions.call(void 0, );
|
|
24380
24383
|
const query = _reactquery.useQuery.call(void 0, {
|
|
24381
24384
|
queryKey: ["walkthrough-video", endpoint],
|
|
24382
24385
|
enabled,
|
|
@@ -24395,14 +24398,14 @@ function useWalkthroughVideo(opts) {
|
|
|
24395
24398
|
if (res.status === 404) return null;
|
|
24396
24399
|
if (!res.ok) throw new Error(`Walkthrough video request failed (${res.status})`);
|
|
24397
24400
|
const body = await res.json();
|
|
24398
|
-
return _nullishCoalesce(_optionalChain([body, 'optionalAccess',
|
|
24401
|
+
return _nullishCoalesce(_optionalChain([body, 'optionalAccess', _535 => _535.walkthroughVideo]), () => ( null));
|
|
24399
24402
|
},
|
|
24400
24403
|
// Per-observer transform — NEVER mutate the cached data. `select` also runs
|
|
24401
24404
|
// over `initialData`, so the SSR seed is rewritten too. Keeping the proxy
|
|
24402
24405
|
// rewrite here (not in queryFn) means a second consumer of the same
|
|
24403
24406
|
// endpoint can't inherit this observer's proxied captionsUrl from the cache.
|
|
24404
24407
|
select: (video) => {
|
|
24405
|
-
if (!_optionalChain([video, 'optionalAccess',
|
|
24408
|
+
if (!_optionalChain([video, 'optionalAccess', _536 => _536.captionsUrl])) return video;
|
|
24406
24409
|
if (transformCaptionsUrl && video.captionsUrl.startsWith("/")) {
|
|
24407
24410
|
return { ...video, captionsUrl: transformCaptionsUrl(video.captionsUrl) };
|
|
24408
24411
|
}
|
|
@@ -24449,7 +24452,7 @@ function VideoSourceSelector({
|
|
|
24449
24452
|
input.accept = "video/*";
|
|
24450
24453
|
input.onchange = async (e) => {
|
|
24451
24454
|
const target = e.target;
|
|
24452
|
-
const file = _optionalChain([target, 'access',
|
|
24455
|
+
const file = _optionalChain([target, 'access', _537 => _537.files, 'optionalAccess', _538 => _538[0]]);
|
|
24453
24456
|
if (!file) return;
|
|
24454
24457
|
setIsUploading(true);
|
|
24455
24458
|
setUploadProgress(0);
|
|
@@ -24627,7 +24630,7 @@ function SubtitlesEditor({
|
|
|
24627
24630
|
{
|
|
24628
24631
|
id,
|
|
24629
24632
|
value: subtitles || "",
|
|
24630
|
-
onChange: (e) => _optionalChain([onSubtitlesChange, 'optionalCall',
|
|
24633
|
+
onChange: (e) => _optionalChain([onSubtitlesChange, 'optionalCall', _539 => _539(e.target.value)]),
|
|
24631
24634
|
placeholder,
|
|
24632
24635
|
disabled: disabled || !onSubtitlesChange,
|
|
24633
24636
|
className: "h-full w-full resize-none border-0 bg-transparent p-4 text-ods-text-primary text-code placeholder:text-ods-text-secondary/50 focus:outline-none focus:ring-0",
|
|
@@ -24856,7 +24859,7 @@ var AIEnrichSection = ({
|
|
|
24856
24859
|
}) => {
|
|
24857
24860
|
const hasResults = status === "success" || status === "error";
|
|
24858
24861
|
const shouldDisable = disabled || !canEnrich;
|
|
24859
|
-
const unfilledFields = _optionalChain([requiredFields, 'optionalAccess',
|
|
24862
|
+
const unfilledFields = _optionalChain([requiredFields, 'optionalAccess', _540 => _540.filter, 'call', _541 => _541((f) => !f.isFilled)]) || [];
|
|
24860
24863
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
24861
24864
|
"div",
|
|
24862
24865
|
{
|
|
@@ -24888,7 +24891,7 @@ var AIEnrichSection = ({
|
|
|
24888
24891
|
{
|
|
24889
24892
|
id: "ai-enrich-custom-instructions",
|
|
24890
24893
|
value: _nullishCoalesce(customInstructions, () => ( "")),
|
|
24891
|
-
onChange: (e) => _optionalChain([onCustomInstructionsChange, 'optionalCall',
|
|
24894
|
+
onChange: (e) => _optionalChain([onCustomInstructionsChange, 'optionalCall', _542 => _542(e.target.value)]),
|
|
24892
24895
|
placeholder: customInstructionsPlaceholder,
|
|
24893
24896
|
disabled: loading,
|
|
24894
24897
|
maxLength: customInstructionsMaxLength,
|
|
@@ -25010,7 +25013,7 @@ function HighlightVideoSection({
|
|
|
25010
25013
|
input.accept = "video/*";
|
|
25011
25014
|
input.onchange = async (e) => {
|
|
25012
25015
|
const target = e.target;
|
|
25013
|
-
const file = _optionalChain([target, 'access',
|
|
25016
|
+
const file = _optionalChain([target, 'access', _543 => _543.files, 'optionalAccess', _544 => _544[0]]);
|
|
25014
25017
|
if (!file) return;
|
|
25015
25018
|
setUploadError(null);
|
|
25016
25019
|
try {
|
|
@@ -25030,19 +25033,19 @@ function HighlightVideoSection({
|
|
|
25030
25033
|
/* @__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: [
|
|
25031
25034
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD47ZGOUcjs.Label, { children: "Target Duration" }),
|
|
25032
25035
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25033
|
-
|
|
25036
|
+
_chunkIYWX4GOGcjs.Select,
|
|
25034
25037
|
{
|
|
25035
25038
|
value: targetDurationSeconds.toString(),
|
|
25036
25039
|
onValueChange: (value) => onTargetDurationChange(parseInt(value)),
|
|
25037
25040
|
disabled,
|
|
25038
25041
|
children: [
|
|
25039
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25040
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25041
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25042
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25043
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25044
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25045
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25042
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectTrigger, { className: "mt-1 bg-ods-bg-surface", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectValue, {}) }),
|
|
25043
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIYWX4GOGcjs.SelectContent, { className: "bg-ods-card", children: [
|
|
25044
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: "60", children: "1 minute" }),
|
|
25045
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: "120", children: "2 minutes" }),
|
|
25046
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: "180", children: "3 minutes (Recommended)" }),
|
|
25047
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: "240", children: "4 minutes" }),
|
|
25048
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: "300", children: "5 minutes" })
|
|
25046
25049
|
] })
|
|
25047
25050
|
]
|
|
25048
25051
|
}
|
|
@@ -25127,20 +25130,20 @@ function HighlightConfigSection({
|
|
|
25127
25130
|
disabled = false,
|
|
25128
25131
|
className = ""
|
|
25129
25132
|
}) {
|
|
25130
|
-
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,
|
|
25131
|
-
|
|
25133
|
+
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, _chunkIE3CPPHJcjs.Field, { label: "Target Duration", children: (f) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25134
|
+
_chunkIYWX4GOGcjs.Select,
|
|
25132
25135
|
{
|
|
25133
25136
|
value: targetDurationSeconds.toString(),
|
|
25134
25137
|
onValueChange: (value) => onTargetDurationChange(parseInt(value)),
|
|
25135
25138
|
disabled,
|
|
25136
25139
|
children: [
|
|
25137
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25138
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25139
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25140
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25141
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25142
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25143
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25140
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectTrigger, { id: f.id, className: "bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectValue, {}) }),
|
|
25141
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIYWX4GOGcjs.SelectContent, { className: "bg-ods-card", children: [
|
|
25142
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: "60", children: "1 minute" }),
|
|
25143
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: "120", children: "2 minutes" }),
|
|
25144
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: "180", children: "3 minutes (Recommended)" }),
|
|
25145
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: "240", children: "4 minutes" }),
|
|
25146
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: "300", children: "5 minutes" })
|
|
25144
25147
|
] })
|
|
25145
25148
|
]
|
|
25146
25149
|
}
|
|
@@ -25228,7 +25231,7 @@ var AIStatusIndicator = ({
|
|
|
25228
25231
|
}) => {
|
|
25229
25232
|
const config = statusConfig[status];
|
|
25230
25233
|
const displayText = message || config.label;
|
|
25231
|
-
const confidenceLabel = showConfidence && confidence !== void 0 ? `${
|
|
25234
|
+
const confidenceLabel = showConfidence && confidence !== void 0 ? `${_chunkIE3CPPHJcjs.getConfidenceLabel.call(void 0, confidence)} (${confidence}%)` : null;
|
|
25232
25235
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "inline-flex items-center gap-2 rounded-lg px-3 py-1.5", config.bgColor, className), children: [
|
|
25233
25236
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25234
25237
|
_chunkUNFCRSYIcjs.SparklesIcon,
|
|
@@ -25236,7 +25239,7 @@ var AIStatusIndicator = ({
|
|
|
25236
25239
|
size: 16,
|
|
25237
25240
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
25238
25241
|
status === "loading" && _chunk4WIJI4AKcjs.LIVE_PULSE_CLASS,
|
|
25239
|
-
confidence !== void 0 && status === "success" ?
|
|
25242
|
+
confidence !== void 0 && status === "success" ? _chunkIE3CPPHJcjs.getConfidenceTextClass.call(void 0, confidence) : config.color
|
|
25240
25243
|
)
|
|
25241
25244
|
}
|
|
25242
25245
|
),
|
|
@@ -25245,7 +25248,7 @@ var AIStatusIndicator = ({
|
|
|
25245
25248
|
{
|
|
25246
25249
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
25247
25250
|
"text-h6",
|
|
25248
|
-
confidence !== void 0 && status === "success" ?
|
|
25251
|
+
confidence !== void 0 && status === "success" ? _chunkIE3CPPHJcjs.getConfidenceTextClass.call(void 0, confidence) : config.color
|
|
25249
25252
|
),
|
|
25250
25253
|
children: displayText
|
|
25251
25254
|
}
|
|
@@ -25255,8 +25258,8 @@ var AIStatusIndicator = ({
|
|
|
25255
25258
|
{
|
|
25256
25259
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
25257
25260
|
"rounded-full border px-2 py-0.5 text-h6",
|
|
25258
|
-
|
|
25259
|
-
|
|
25261
|
+
_chunkIE3CPPHJcjs.getConfidenceBorderClass.call(void 0, confidence),
|
|
25262
|
+
_chunkIE3CPPHJcjs.getConfidenceTextClass.call(void 0, confidence)
|
|
25260
25263
|
),
|
|
25261
25264
|
children: confidenceLabel
|
|
25262
25265
|
}
|
|
@@ -25446,7 +25449,7 @@ function HighlightVideoPreview({
|
|
|
25446
25449
|
input.accept = "video/*";
|
|
25447
25450
|
input.onchange = async (e) => {
|
|
25448
25451
|
const target = e.target;
|
|
25449
|
-
const file = _optionalChain([target, 'access',
|
|
25452
|
+
const file = _optionalChain([target, 'access', _545 => _545.files, 'optionalAccess', _546 => _546[0]]);
|
|
25450
25453
|
if (!file) return;
|
|
25451
25454
|
await onUpload(file);
|
|
25452
25455
|
};
|
|
@@ -25625,7 +25628,7 @@ function HighlightVideoCombinedSection({
|
|
|
25625
25628
|
input.accept = "video/*";
|
|
25626
25629
|
input.onchange = async (e) => {
|
|
25627
25630
|
const target = e.target;
|
|
25628
|
-
const file = _optionalChain([target, 'access',
|
|
25631
|
+
const file = _optionalChain([target, 'access', _547 => _547.files, 'optionalAccess', _548 => _548[0]]);
|
|
25629
25632
|
if (!file) return;
|
|
25630
25633
|
await onUpload(file);
|
|
25631
25634
|
};
|
|
@@ -25832,7 +25835,7 @@ function ApprovalLevelView({
|
|
|
25832
25835
|
] });
|
|
25833
25836
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, READ_ONLY_ROW_CLASS, className), children: [
|
|
25834
25837
|
name,
|
|
25835
|
-
showLabel ? icon : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25838
|
+
showLabel ? icon : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTELXF5WDcjs.TouchFriendlyTooltip, { content: `${current.label}: ${current.hint}`, side: "top", children: icon })
|
|
25836
25839
|
] });
|
|
25837
25840
|
}
|
|
25838
25841
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, EDITABLE_ROW_CLASS, className), children: [
|
|
@@ -25846,7 +25849,7 @@ function ApprovalLevelView({
|
|
|
25846
25849
|
value,
|
|
25847
25850
|
disabled,
|
|
25848
25851
|
onValueChange: (next) => {
|
|
25849
|
-
if (next && next !== value) _optionalChain([onChange, 'optionalCall',
|
|
25852
|
+
if (next && next !== value) _optionalChain([onChange, 'optionalCall', _549 => _549(next)]);
|
|
25850
25853
|
},
|
|
25851
25854
|
"aria-labelledby": labelledBy,
|
|
25852
25855
|
children: APPROVAL_LEVELS.map((level) => {
|
|
@@ -25914,7 +25917,7 @@ var CATEGORY_LEVEL_COLUMN_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
|
25914
25917
|
CATEGORY_LEVEL_WIDTH
|
|
25915
25918
|
);
|
|
25916
25919
|
var CHEVRON_CLASS2 = "h-6 w-6 text-ods-text-primary transition-transform duration-300";
|
|
25917
|
-
var getApprovalLevelLabel = (level) => _nullishCoalesce(_optionalChain([APPROVAL_LEVEL_META, 'access',
|
|
25920
|
+
var getApprovalLevelLabel = (level) => _nullishCoalesce(_optionalChain([APPROVAL_LEVEL_META, 'access', _550 => _550[level], 'optionalAccess', _551 => _551.label]), () => ( level));
|
|
25918
25921
|
var ApprovalLevelDropdown = ({ value, onChange, allowClear = false, triggerClassName, contentClassName, disabled }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNL3G642Ucjs.DropdownMenu, { children: [
|
|
25919
25922
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNL3G642Ucjs.DropdownMenuTrigger, { asChild: true, disabled, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25920
25923
|
_chunkAHBTZ7DNcjs.Button,
|
|
@@ -25979,7 +25982,7 @@ var CategorySection = ({
|
|
|
25979
25982
|
}) => {
|
|
25980
25983
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingGiven;
|
|
25981
25984
|
const isExpanded = isExpandedProp && !loading;
|
|
25982
|
-
const { innerRef, containerStyle } =
|
|
25985
|
+
const { innerRef, containerStyle } = _chunk2X3N6MSRcjs.useCollapsible.call(void 0, { expanded: isExpanded, durationMs: 300 });
|
|
25983
25986
|
const handleBulkChange = (level) => onBulkLevelChange(category.id, level);
|
|
25984
25987
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
25985
25988
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -26136,7 +26139,7 @@ function OpenPolicyButton({ href, name }) {
|
|
|
26136
26139
|
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,
|
|
26137
26140
|
_chunkAHBTZ7DNcjs.Button,
|
|
26138
26141
|
{
|
|
26139
|
-
onClick: loading ? void 0 :
|
|
26142
|
+
onClick: loading ? void 0 : _chunkIE3CPPHJcjs.openInNewTab.call(void 0, href),
|
|
26140
26143
|
disabled: loading,
|
|
26141
26144
|
variant: "outline",
|
|
26142
26145
|
size: "icon",
|
|
@@ -26175,8 +26178,8 @@ function PoliciesTable({
|
|
|
26175
26178
|
accessorKey: "name",
|
|
26176
26179
|
header: "Name",
|
|
26177
26180
|
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: [
|
|
26178
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26179
|
-
row.original.description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26181
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { children: row.original.name }),
|
|
26182
|
+
row.original.description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { variant: "h6", tone: "secondary", children: row.original.description })
|
|
26180
26183
|
] }),
|
|
26181
26184
|
meta: { width: "flex-1 min-w-0" }
|
|
26182
26185
|
},
|
|
@@ -26318,7 +26321,7 @@ function PolicySummaryCards({ summary, isLoading = false, hasData = true, now })
|
|
|
26318
26321
|
DashboardInfoCard,
|
|
26319
26322
|
{
|
|
26320
26323
|
title: "Updated",
|
|
26321
|
-
value: hasData && summary.lastUpdatedAt ?
|
|
26324
|
+
value: hasData && summary.lastUpdatedAt ? _chunk2X3N6MSRcjs.formatRelativeTimeFrom.call(void 0, summary.lastUpdatedAt, _nullishCoalesce(now, () => ( /* @__PURE__ */ new Date()))) : EMPTY_VALUE,
|
|
26322
26325
|
valueClassName: "!text-h3",
|
|
26323
26326
|
tooltip: "Policy compliance stats are updated hourly. View a policy's devices for real-time status."
|
|
26324
26327
|
}
|
|
@@ -26335,7 +26338,7 @@ var POLICY_STATUS_CONFIG = {
|
|
|
26335
26338
|
};
|
|
26336
26339
|
function missingHostCount(policy) {
|
|
26337
26340
|
const responded = policy.passing_host_count + policy.failing_host_count;
|
|
26338
|
-
return (_nullishCoalesce(_optionalChain([policy, 'access',
|
|
26341
|
+
return (_nullishCoalesce(_optionalChain([policy, 'access', _552 => _552.hosts_include_any, 'optionalAccess', _553 => _553.length]), () => ( 0))) - responded;
|
|
26339
26342
|
}
|
|
26340
26343
|
function getPolicyStatus(policy) {
|
|
26341
26344
|
const failing = policy.failing_host_count;
|
|
@@ -26434,7 +26437,7 @@ function toValidInstant(iso) {
|
|
|
26434
26437
|
function formatLastRead(iso, now = /* @__PURE__ */ new Date()) {
|
|
26435
26438
|
const date = toValidInstant(iso);
|
|
26436
26439
|
if (!date) return TENANT_EMPTY_VALUE;
|
|
26437
|
-
return now.getTime() - date.getTime() < DAY_MS ?
|
|
26440
|
+
return now.getTime() - date.getTime() < DAY_MS ? _chunk2X3N6MSRcjs.formatRelativeTimeFrom.call(void 0, date, now) : _chunk3NGJ7NPTcjs.formatDate.call(void 0, date);
|
|
26438
26441
|
}
|
|
26439
26442
|
function usersCountLabel(count) {
|
|
26440
26443
|
if (count == null) return TENANT_EMPTY_VALUE;
|
|
@@ -26447,7 +26450,7 @@ function TenantAccessCell({ accessState, lastReadAt: lastReadAt2, now }) {
|
|
|
26447
26450
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
26448
26451
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26449
26452
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6UKH22NQcjs.Tag, { ...accessStateTag(accessState), loading, className: "self-start" }),
|
|
26450
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26453
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { variant: "h6", tone: "secondary", loading, children: `Last read: ${formatLastRead(lastReadAt2, now)}` })
|
|
26451
26454
|
] });
|
|
26452
26455
|
}
|
|
26453
26456
|
|
|
@@ -26459,9 +26462,9 @@ function TenantCell({ provider, name, domain }) {
|
|
|
26459
26462
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
26460
26463
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26461
26464
|
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.MediaSkeleton.Icon, { size: "md", className: "shrink-0" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Logo, { size: 24, role: "img", "aria-label": label, className: "shrink-0" }),
|
|
26462
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26465
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { children: name })
|
|
26463
26466
|
] }),
|
|
26464
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26467
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { variant: "h6", tone: "secondary", loading, children: _nullishCoalesce(domain, () => ( TENANT_EMPTY_VALUE)) })
|
|
26465
26468
|
] });
|
|
26466
26469
|
}
|
|
26467
26470
|
|
|
@@ -26472,9 +26475,9 @@ function TenantCustomerCell({ name, imageUrl, userCount }) {
|
|
|
26472
26475
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
26473
26476
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26474
26477
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6UKH22NQcjs.SquareAvatar, { src: _nullishCoalesce(imageUrl, () => ( void 0)), alt: name, fallback: name, size: "xs", variant: "square" }),
|
|
26475
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26478
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { children: name })
|
|
26476
26479
|
] }),
|
|
26477
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26480
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { variant: "h6", tone: "secondary", loading, children: usersCountLabel(userCount) })
|
|
26478
26481
|
] });
|
|
26479
26482
|
}
|
|
26480
26483
|
|
|
@@ -26510,7 +26513,7 @@ function OpenTenantButton({ href, name }) {
|
|
|
26510
26513
|
/* @__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,
|
|
26511
26514
|
_chunkAHBTZ7DNcjs.Button,
|
|
26512
26515
|
{
|
|
26513
|
-
onClick: loading ? void 0 :
|
|
26516
|
+
onClick: loading ? void 0 : _chunkIE3CPPHJcjs.openInNewTab.call(void 0, href),
|
|
26514
26517
|
disabled: loading,
|
|
26515
26518
|
variant: "outline",
|
|
26516
26519
|
size: "icon",
|
|
@@ -26642,13 +26645,13 @@ function WaitlistForm({
|
|
|
26642
26645
|
const [email, setEmail] = _react.useState.call(void 0, defaultEmail);
|
|
26643
26646
|
const [phone, setPhone] = _react.useState.call(void 0, defaultPhone);
|
|
26644
26647
|
const [countryCode, setCountryCode] = _react.useState.call(void 0, "US");
|
|
26645
|
-
const { toast } =
|
|
26646
|
-
const { honeypotInputProps, getSignals, resetSignals } =
|
|
26648
|
+
const { toast } = _chunkOG4XH6C5cjs.useToast.call(void 0, );
|
|
26649
|
+
const { honeypotInputProps, getSignals, resetSignals } = _chunkOG4XH6C5cjs.useHumanitySignals.call(void 0, );
|
|
26647
26650
|
const [smsConsent, setSmsConsent] = _react.useState.call(void 0, false);
|
|
26648
|
-
const isClient =
|
|
26651
|
+
const isClient = _chunkTVAU56UUcjs.useIsHydrated.call(void 0, );
|
|
26649
26652
|
const [isPhoneInvalid, setIsPhoneInvalid] = _react.useState.call(void 0, false);
|
|
26650
26653
|
const [showConsentError, setShowConsentError] = _react.useState.call(void 0, false);
|
|
26651
|
-
const rescue =
|
|
26654
|
+
const rescue = _chunkOG4XH6C5cjs.useFormRescue.call(void 0, {
|
|
26652
26655
|
form: rescueForm,
|
|
26653
26656
|
// The phone is reported as filled only; its value never leaves the form early.
|
|
26654
26657
|
fieldNames: ["email", "phone"],
|
|
@@ -26660,7 +26663,7 @@ function WaitlistForm({
|
|
|
26660
26663
|
_react.useEffect.call(void 0, () => {
|
|
26661
26664
|
rescue.track({ email, phone }, null);
|
|
26662
26665
|
}, [email, phone, rescue]);
|
|
26663
|
-
const isMailDomainGeneric =
|
|
26666
|
+
const isMailDomainGeneric = _chunkIE3CPPHJcjs.hasGenericEmailDomain.call(void 0, email);
|
|
26664
26667
|
const [syncedDefaultEmail, setSyncedDefaultEmail] = _react.useState.call(void 0, defaultEmail);
|
|
26665
26668
|
if (syncedDefaultEmail !== defaultEmail) {
|
|
26666
26669
|
setSyncedDefaultEmail(defaultEmail);
|
|
@@ -26694,7 +26697,7 @@ function WaitlistForm({
|
|
|
26694
26697
|
setShowConsentError(true);
|
|
26695
26698
|
return;
|
|
26696
26699
|
}
|
|
26697
|
-
const finalPhone = phone ?
|
|
26700
|
+
const finalPhone = phone ? _chunkIE3CPPHJcjs.formatPhoneE164.call(void 0, phone, countryCode) : void 0;
|
|
26698
26701
|
try {
|
|
26699
26702
|
await onRegister(email, finalPhone, getSignals(), rescue.submitFields());
|
|
26700
26703
|
rescue.complete();
|
|
@@ -26955,19 +26958,19 @@ function NotificationsProvider({
|
|
|
26955
26958
|
}, []);
|
|
26956
26959
|
const markRead = _react.useCallback.call(void 0, (id) => {
|
|
26957
26960
|
dispatch({ type: "markRead", id });
|
|
26958
|
-
void _optionalChain([actionsRef, 'access',
|
|
26961
|
+
void _optionalChain([actionsRef, 'access', _554 => _554.current, 'optionalAccess', _555 => _555.onMarkRead, 'optionalCall', _556 => _556(id)]);
|
|
26959
26962
|
}, []);
|
|
26960
26963
|
const markAllRead = _react.useCallback.call(void 0, () => {
|
|
26961
26964
|
dispatch({ type: "markAllRead" });
|
|
26962
|
-
void _optionalChain([actionsRef, 'access',
|
|
26965
|
+
void _optionalChain([actionsRef, 'access', _557 => _557.current, 'optionalAccess', _558 => _558.onMarkAllRead, 'optionalCall', _559 => _559()]);
|
|
26963
26966
|
}, []);
|
|
26964
26967
|
const markSettled = _react.useCallback.call(void 0, (id) => {
|
|
26965
26968
|
dispatch({ type: "markSettled", id });
|
|
26966
|
-
void _optionalChain([actionsRef, 'access',
|
|
26969
|
+
void _optionalChain([actionsRef, 'access', _560 => _560.current, 'optionalAccess', _561 => _561.onMarkSettled, 'optionalCall', _562 => _562(id)]);
|
|
26967
26970
|
}, []);
|
|
26968
26971
|
const remove = _react.useCallback.call(void 0, (id) => {
|
|
26969
26972
|
dispatch({ type: "remove", id });
|
|
26970
|
-
void _optionalChain([actionsRef, 'access',
|
|
26973
|
+
void _optionalChain([actionsRef, 'access', _563 => _563.current, 'optionalAccess', _564 => _564.onRemove, 'optionalCall', _565 => _565(id)]);
|
|
26971
26974
|
}, []);
|
|
26972
26975
|
const clear = _react.useCallback.call(void 0, () => dispatch({ type: "clear" }), []);
|
|
26973
26976
|
const open = _react.useCallback.call(void 0, () => setIsOpen(true), []);
|
|
@@ -26976,14 +26979,14 @@ function NotificationsProvider({
|
|
|
26976
26979
|
const setShowPopups = _react.useCallback.call(void 0,
|
|
26977
26980
|
(value2) => {
|
|
26978
26981
|
setShowPopupsState(value2);
|
|
26979
|
-
_optionalChain([onShowPopupsChange, 'optionalCall',
|
|
26982
|
+
_optionalChain([onShowPopupsChange, 'optionalCall', _566 => _566(value2)]);
|
|
26980
26983
|
},
|
|
26981
26984
|
[onShowPopupsChange]
|
|
26982
26985
|
);
|
|
26983
26986
|
const setShowDesktopPopups = _react.useCallback.call(void 0,
|
|
26984
26987
|
(value2) => {
|
|
26985
26988
|
setShowDesktopPopupsState(value2);
|
|
26986
|
-
_optionalChain([onShowDesktopPopupsChange, 'optionalCall',
|
|
26989
|
+
_optionalChain([onShowDesktopPopupsChange, 'optionalCall', _567 => _567(value2)]);
|
|
26987
26990
|
},
|
|
26988
26991
|
[onShowDesktopPopupsChange]
|
|
26989
26992
|
);
|
|
@@ -27099,7 +27102,7 @@ var AppLayoutDrawerRoot = ({
|
|
|
27099
27102
|
const handleOpenChange = _react.useCallback.call(void 0,
|
|
27100
27103
|
(next) => {
|
|
27101
27104
|
if (!isControlled) setInternalOpen(next);
|
|
27102
|
-
_optionalChain([onOpenChange, 'optionalCall',
|
|
27105
|
+
_optionalChain([onOpenChange, 'optionalCall', _568 => _568(next)]);
|
|
27103
27106
|
},
|
|
27104
27107
|
[isControlled, onOpenChange]
|
|
27105
27108
|
);
|
|
@@ -27116,9 +27119,9 @@ var AppLayoutDrawerRoot = ({
|
|
|
27116
27119
|
}
|
|
27117
27120
|
}));
|
|
27118
27121
|
_react.useEffect.call(void 0, () => {
|
|
27119
|
-
if (open) _optionalChain([coordination, 'optionalAccess',
|
|
27122
|
+
if (open) _optionalChain([coordination, 'optionalAccess', _569 => _569.notifyDrawerDidOpen, 'call', _570 => _570(selfHandle)]);
|
|
27120
27123
|
}, [open, coordination, selfHandle]);
|
|
27121
|
-
_react.useEffect.call(void 0, () => _optionalChain([coordination, 'optionalAccess',
|
|
27124
|
+
_react.useEffect.call(void 0, () => _optionalChain([coordination, 'optionalAccess', _571 => _571.registerDrawer, 'call', _572 => _572(selfHandle)]), [coordination, selfHandle]);
|
|
27122
27125
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DrawerOpenContext.Provider, { value: open, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogPrimitive3.Root, { ...rest, open, onOpenChange: handleOpenChange, modal, children }) });
|
|
27123
27126
|
};
|
|
27124
27127
|
AppLayoutDrawerRoot.displayName = "AppLayoutDrawer";
|
|
@@ -27340,10 +27343,10 @@ var AppLayoutDrawerContent = _react.forwardRef.call(void 0,
|
|
|
27340
27343
|
),
|
|
27341
27344
|
style,
|
|
27342
27345
|
onInteractOutside: (event) => {
|
|
27343
|
-
_optionalChain([onInteractOutside, 'optionalCall',
|
|
27346
|
+
_optionalChain([onInteractOutside, 'optionalCall', _573 => _573(event)]);
|
|
27344
27347
|
if (event.defaultPrevented) return;
|
|
27345
27348
|
const target = event.target;
|
|
27346
|
-
const isInsideContainer = !!target && !!_optionalChain([portalContainer, 'optionalAccess',
|
|
27349
|
+
const isInsideContainer = !!target && !!_optionalChain([portalContainer, 'optionalAccess', _574 => _574.contains, 'call', _575 => _575(target)]);
|
|
27347
27350
|
if (!isInsideContainer) {
|
|
27348
27351
|
event.preventDefault();
|
|
27349
27352
|
return;
|
|
@@ -27417,7 +27420,7 @@ var typeColorByVariant = {
|
|
|
27417
27420
|
error: "text-ods-error"
|
|
27418
27421
|
};
|
|
27419
27422
|
var progressColorByVariant2 = {
|
|
27420
|
-
...
|
|
27423
|
+
..._chunkOG4XH6C5cjs.progressColorByVariant,
|
|
27421
27424
|
default: "bg-ods-accent",
|
|
27422
27425
|
info: "bg-ods-accent"
|
|
27423
27426
|
};
|
|
@@ -27478,7 +27481,7 @@ function LoadedNotificationTile({
|
|
|
27478
27481
|
if (!counting) return void 0;
|
|
27479
27482
|
const remaining = Math.max(0, liveDurationMs - initialElapsed);
|
|
27480
27483
|
const timer = window.setTimeout(() => {
|
|
27481
|
-
_optionalChain([onSettle, 'optionalCall',
|
|
27484
|
+
_optionalChain([onSettle, 'optionalCall', _576 => _576(id)]);
|
|
27482
27485
|
}, remaining);
|
|
27483
27486
|
return () => window.clearTimeout(timer);
|
|
27484
27487
|
}, [id, counting, initialElapsed, liveDurationMs, onSettle]);
|
|
@@ -27511,7 +27514,7 @@ function LoadedNotificationTile({
|
|
|
27511
27514
|
height: 16,
|
|
27512
27515
|
unoptimized: true
|
|
27513
27516
|
}
|
|
27514
|
-
) : _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "size-1.5 rounded-full",
|
|
27517
|
+
) : _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "size-1.5 rounded-full", _chunkOG4XH6C5cjs.dotColorByVariant[accentVariant]) }))) }),
|
|
27515
27518
|
type ? lockscreen ? (
|
|
27516
27519
|
// A phone names the sender in plain words and never cuts them.
|
|
27517
27520
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 break-words text-ods-text-secondary text-h6", children: type })
|
|
@@ -27521,7 +27524,7 @@ function LoadedNotificationTile({
|
|
|
27521
27524
|
{
|
|
27522
27525
|
dateTime: createdAtIso,
|
|
27523
27526
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "shrink-0 whitespace-nowrap text-ods-text-secondary text-h6", lockscreen && "self-start"),
|
|
27524
|
-
children: _nullishCoalesce(timeLabel, () => (
|
|
27527
|
+
children: _nullishCoalesce(timeLabel, () => ( _chunk2X3N6MSRcjs.formatTicketRelativeTime.call(void 0, createdAtIso)))
|
|
27525
27528
|
}
|
|
27526
27529
|
) : null,
|
|
27527
27530
|
!lockscreen && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TILE_CONTROL_BOX_CLASS, children: [
|
|
@@ -27529,7 +27532,7 @@ function LoadedNotificationTile({
|
|
|
27529
27532
|
active: isLive,
|
|
27530
27533
|
label: "Dismiss notification",
|
|
27531
27534
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, { size: 16 }),
|
|
27532
|
-
onClick: () => _optionalChain([onSettle, 'optionalCall',
|
|
27535
|
+
onClick: () => _optionalChain([onSettle, 'optionalCall', _577 => _577(id)])
|
|
27533
27536
|
},
|
|
27534
27537
|
{
|
|
27535
27538
|
active: !isLive,
|
|
@@ -27787,7 +27790,7 @@ function DrawerScrollList({
|
|
|
27787
27790
|
if (!sentinel || !root) return void 0;
|
|
27788
27791
|
const observer = new IntersectionObserver(
|
|
27789
27792
|
(entries) => {
|
|
27790
|
-
if (_optionalChain([entries, 'access',
|
|
27793
|
+
if (_optionalChain([entries, 'access', _578 => _578[0], 'optionalAccess', _579 => _579.isIntersecting])) _optionalChain([loadMoreRef, 'access', _580 => _580.current, 'optionalCall', _581 => _581()]);
|
|
27791
27794
|
},
|
|
27792
27795
|
{ root, rootMargin: loadMoreRootMargin }
|
|
27793
27796
|
);
|
|
@@ -27802,7 +27805,7 @@ function DrawerScrollList({
|
|
|
27802
27805
|
className: "flex flex-1 flex-col gap-[var(--spacing-system-xs)] overflow-y-auto px-[var(--spacing-system-m)]",
|
|
27803
27806
|
children: isEmpty && !isLoadingMore ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmptyState, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
27804
27807
|
unreadNotifications.map((n) => {
|
|
27805
|
-
const custom = _optionalChain([renderTile, 'optionalCall',
|
|
27808
|
+
const custom = _optionalChain([renderTile, 'optionalCall', _582 => _582(n, { onComplete, onSettle, liveDurationMs })]);
|
|
27806
27809
|
if (custom) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: custom }, n.id);
|
|
27807
27810
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27808
27811
|
NotificationTile,
|
|
@@ -27846,7 +27849,7 @@ function ShowNotificationsToggleRow({ checked, onChange }) {
|
|
|
27846
27849
|
] });
|
|
27847
27850
|
}
|
|
27848
27851
|
function DesktopNotificationsToggleRow({ checked, onChange }) {
|
|
27849
|
-
const { supported, permission, request } =
|
|
27852
|
+
const { supported, permission, request } = _chunkOG4XH6C5cjs.useNotificationPermission.call(void 0, );
|
|
27850
27853
|
if (!supported) return null;
|
|
27851
27854
|
const blocked = permission === "denied";
|
|
27852
27855
|
const handleChange = async (value) => {
|
|
@@ -27913,7 +27916,7 @@ function NotificationPopups({
|
|
|
27913
27916
|
}) {
|
|
27914
27917
|
const ctx = useOptionalNotifications();
|
|
27915
27918
|
const [now, setNow] = _react.useState.call(void 0, () => Date.now());
|
|
27916
|
-
const hasAgeingNotifications = Boolean(_optionalChain([ctx, 'optionalAccess',
|
|
27919
|
+
const hasAgeingNotifications = Boolean(_optionalChain([ctx, 'optionalAccess', _583 => _583.notifications, 'access', _584 => _584.some, 'call', _585 => _585((n) => !n.read && !n.settled)]));
|
|
27917
27920
|
_react.useEffect.call(void 0, () => {
|
|
27918
27921
|
if (!hasAgeingNotifications) return void 0;
|
|
27919
27922
|
const id = setInterval(() => setNow(Date.now()), 500);
|
|
@@ -27956,7 +27959,7 @@ function NotificationPopups({
|
|
|
27956
27959
|
className
|
|
27957
27960
|
),
|
|
27958
27961
|
children: live.map((n) => {
|
|
27959
|
-
const custom = _optionalChain([renderTile, 'optionalCall',
|
|
27962
|
+
const custom = _optionalChain([renderTile, 'optionalCall', _586 => _586(n, { onComplete: markRead, onSettle: markSettled, liveDurationMs })]);
|
|
27960
27963
|
if (custom) {
|
|
27961
27964
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pointer-events-auto", children: custom }, n.id);
|
|
27962
27965
|
}
|
|
@@ -28003,21 +28006,21 @@ function isApprovalNotificationType(type) {
|
|
|
28003
28006
|
return typeof type === "string" && APPROVAL_REQUEST_TYPES.has(type);
|
|
28004
28007
|
}
|
|
28005
28008
|
function isApprovalNotification(notification) {
|
|
28006
|
-
return isApprovalNotificationType(_optionalChain([notification, 'access',
|
|
28009
|
+
return isApprovalNotificationType(_optionalChain([notification, 'access', _587 => _587.meta, 'optionalAccess', _588 => _588.notificationType]));
|
|
28007
28010
|
}
|
|
28008
28011
|
function getApprovalMeta(notification) {
|
|
28009
28012
|
if (!isApprovalNotification(notification)) return null;
|
|
28010
28013
|
const meta = notification.meta;
|
|
28011
|
-
const approvalRequestId = _optionalChain([meta, 'optionalAccess',
|
|
28012
|
-
const toolCalls = _optionalChain([meta, 'optionalAccess',
|
|
28014
|
+
const approvalRequestId = _optionalChain([meta, 'optionalAccess', _589 => _589.approvalRequestId]);
|
|
28015
|
+
const toolCalls = _optionalChain([meta, 'optionalAccess', _590 => _590.toolCalls]);
|
|
28013
28016
|
if (typeof approvalRequestId !== "string" || !Array.isArray(toolCalls)) return null;
|
|
28014
28017
|
return {
|
|
28015
28018
|
approvalRequestId,
|
|
28016
|
-
dialogId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
28017
|
-
ticketId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
28018
|
-
approvalType: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
28019
|
-
resolution: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
28020
|
-
resolvedByName: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
28019
|
+
dialogId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _591 => _591.dialogId]), () => ( null)),
|
|
28020
|
+
ticketId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _592 => _592.ticketId]), () => ( null)),
|
|
28021
|
+
approvalType: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _593 => _593.approvalType]), () => ( null)),
|
|
28022
|
+
resolution: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _594 => _594.resolution]), () => ( null)),
|
|
28023
|
+
resolvedByName: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _595 => _595.resolvedByName]), () => ( null)),
|
|
28021
28024
|
toolCalls
|
|
28022
28025
|
};
|
|
28023
28026
|
}
|
|
@@ -28072,10 +28075,10 @@ function ApprovalRequestNotificationTile({
|
|
|
28072
28075
|
const [processing, setProcessing] = _react.useState.call(void 0, false);
|
|
28073
28076
|
const [localStatus, setLocalStatus] = _react.useState.call(void 0, null);
|
|
28074
28077
|
const approval = getApprovalMeta(notification);
|
|
28075
|
-
const resolvedStatus = resolutionToStatus(_optionalChain([approval, 'optionalAccess',
|
|
28078
|
+
const resolvedStatus = resolutionToStatus(_optionalChain([approval, 'optionalAccess', _596 => _596.resolution]));
|
|
28076
28079
|
const status = resolvedStatus !== "pending" ? resolvedStatus : _nullishCoalesce(localStatus, () => ( "pending"));
|
|
28077
28080
|
const batchData = _react.useMemo.call(void 0, () => approval ? approvalMetaToBatchData(approval) : null, [approval]);
|
|
28078
|
-
const { innerRef, containerStyle } =
|
|
28081
|
+
const { innerRef, containerStyle } = _chunk2X3N6MSRcjs.useCollapsible.call(void 0, { expanded });
|
|
28079
28082
|
if (!approval || !batchData) return null;
|
|
28080
28083
|
const tileNotification = {
|
|
28081
28084
|
...notification,
|
|
@@ -28138,7 +28141,7 @@ function ApprovalRequestNotificationTile({
|
|
|
28138
28141
|
}
|
|
28139
28142
|
)
|
|
28140
28143
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
28141
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28144
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2X3N6MSRcjs.ApprovalStatusTag, { status }),
|
|
28142
28145
|
approval.resolvedByName ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: [
|
|
28143
28146
|
"by ",
|
|
28144
28147
|
approval.resolvedByName
|
|
@@ -28156,12 +28159,12 @@ function ApprovalRequestNotificationTile({
|
|
|
28156
28159
|
"aria-expanded": expanded,
|
|
28157
28160
|
"aria-label": toggleLabel,
|
|
28158
28161
|
className: APPROVAL_TOGGLE_BUTTON_CLASS,
|
|
28159
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28162
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2X3N6MSRcjs.ExpandChevron, { expanded })
|
|
28160
28163
|
}
|
|
28161
28164
|
)
|
|
28162
28165
|
] }),
|
|
28163
28166
|
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,
|
|
28164
|
-
|
|
28167
|
+
_chunk2X3N6MSRcjs.ApprovalBatchMessage,
|
|
28165
28168
|
{
|
|
28166
28169
|
data: batchData,
|
|
28167
28170
|
showExecutionStatus: false,
|
|
@@ -28398,7 +28401,7 @@ function TimeTrackerPanel({
|
|
|
28398
28401
|
] }),
|
|
28399
28402
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "grid gap-[var(--spacing-system-m)]", showCustomer && "grid-cols-2"), children: [
|
|
28400
28403
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28401
|
-
|
|
28404
|
+
_chunkIYWX4GOGcjs.Autocomplete,
|
|
28402
28405
|
{
|
|
28403
28406
|
value: selectedTicketId,
|
|
28404
28407
|
onChange: onSelectedTicketChange,
|
|
@@ -28409,12 +28412,12 @@ function TimeTrackerPanel({
|
|
|
28409
28412
|
error: showFieldError ? "Required if no notes added" : void 0,
|
|
28410
28413
|
disableClientFilter: !!onTicketSearch,
|
|
28411
28414
|
onInputChange: (value, reason) => {
|
|
28412
|
-
if (reason === "input") _optionalChain([onTicketSearch, 'optionalCall',
|
|
28415
|
+
if (reason === "input") _optionalChain([onTicketSearch, 'optionalCall', _597 => _597(value)]);
|
|
28413
28416
|
}
|
|
28414
28417
|
}
|
|
28415
28418
|
),
|
|
28416
28419
|
showCustomer && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28417
|
-
|
|
28420
|
+
_chunkIYWX4GOGcjs.Autocomplete,
|
|
28418
28421
|
{
|
|
28419
28422
|
value: _nullishCoalesce(selectedCustomerId, () => ( null)),
|
|
28420
28423
|
onChange: onSelectedCustomerChange,
|
|
@@ -28424,7 +28427,7 @@ function TimeTrackerPanel({
|
|
|
28424
28427
|
disabled: customerLocked,
|
|
28425
28428
|
disableClientFilter: !!onCustomerSearch,
|
|
28426
28429
|
onInputChange: (value, reason) => {
|
|
28427
|
-
if (reason === "input") _optionalChain([onCustomerSearch, 'optionalCall',
|
|
28430
|
+
if (reason === "input") _optionalChain([onCustomerSearch, 'optionalCall', _598 => _598(value)]);
|
|
28428
28431
|
},
|
|
28429
28432
|
startAdornment: customerStartAdornment,
|
|
28430
28433
|
renderOption: renderCustomerOption
|
|
@@ -28526,7 +28529,7 @@ function LastEntryRow({ entry, onClick }) {
|
|
|
28526
28529
|
{
|
|
28527
28530
|
variant: "outline",
|
|
28528
28531
|
size: "icon",
|
|
28529
|
-
onClick: () => _optionalChain([onClick, 'optionalCall',
|
|
28532
|
+
onClick: () => _optionalChain([onClick, 'optionalCall', _599 => _599(entry)]),
|
|
28530
28533
|
disabled: !onClick,
|
|
28531
28534
|
"aria-label": `Open entry: ${entry.title}`,
|
|
28532
28535
|
className: "h-12 w-12 shrink-0 [&_svg]:!size-6",
|
|
@@ -28605,29 +28608,29 @@ function HeaderButton({
|
|
|
28605
28608
|
function TimeTrackerHeaderButton({ className, disabled }) {
|
|
28606
28609
|
const ctx = useOptionalTimeTracker();
|
|
28607
28610
|
const elapsedLabel = useTrackerClock({
|
|
28608
|
-
status: _nullishCoalesce(_optionalChain([ctx, 'optionalAccess',
|
|
28609
|
-
runningSince: _optionalChain([ctx, 'optionalAccess',
|
|
28610
|
-
accumulatedMs: _optionalChain([ctx, 'optionalAccess',
|
|
28611
|
+
status: _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _600 => _600.status]), () => ( "ready")),
|
|
28612
|
+
runningSince: _optionalChain([ctx, 'optionalAccess', _601 => _601.runningSince]),
|
|
28613
|
+
accumulatedMs: _optionalChain([ctx, 'optionalAccess', _602 => _602.accumulatedMs])
|
|
28611
28614
|
});
|
|
28612
28615
|
const layoutContainer = useAppLayoutDrawerContainer();
|
|
28613
28616
|
const portalContainer = _chunkNL3G642Ucjs.usePortalContainer.call(void 0, );
|
|
28614
28617
|
const coordination = useAppLayoutDrawerCoordination();
|
|
28615
|
-
const isOpen = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess',
|
|
28618
|
+
const isOpen = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _603 => _603.isOpen]), () => ( false));
|
|
28616
28619
|
const isOpenRef = _react.useRef.call(void 0, isOpen);
|
|
28617
|
-
const closeRef = _react.useRef.call(void 0, _optionalChain([ctx, 'optionalAccess',
|
|
28620
|
+
const closeRef = _react.useRef.call(void 0, _optionalChain([ctx, 'optionalAccess', _604 => _604.close]));
|
|
28618
28621
|
_react.useEffect.call(void 0, () => {
|
|
28619
28622
|
isOpenRef.current = isOpen;
|
|
28620
|
-
closeRef.current = _optionalChain([ctx, 'optionalAccess',
|
|
28623
|
+
closeRef.current = _optionalChain([ctx, 'optionalAccess', _605 => _605.close]);
|
|
28621
28624
|
});
|
|
28622
28625
|
const [selfHandle] = _react.useState.call(void 0, () => ({
|
|
28623
28626
|
close: () => {
|
|
28624
|
-
if (isOpenRef.current) _optionalChain([closeRef, 'access',
|
|
28627
|
+
if (isOpenRef.current) _optionalChain([closeRef, 'access', _606 => _606.current, 'optionalCall', _607 => _607()]);
|
|
28625
28628
|
}
|
|
28626
28629
|
}));
|
|
28627
28630
|
_react.useEffect.call(void 0, () => {
|
|
28628
|
-
if (isOpen) _optionalChain([coordination, 'optionalAccess',
|
|
28631
|
+
if (isOpen) _optionalChain([coordination, 'optionalAccess', _608 => _608.notifyDrawerDidOpen, 'call', _609 => _609(selfHandle)]);
|
|
28629
28632
|
}, [isOpen, coordination, selfHandle]);
|
|
28630
|
-
_react.useEffect.call(void 0, () => _optionalChain([coordination, 'optionalAccess',
|
|
28633
|
+
_react.useEffect.call(void 0, () => _optionalChain([coordination, 'optionalAccess', _610 => _610.registerDrawer, 'call', _611 => _611(selfHandle)]), [coordination, selfHandle]);
|
|
28631
28634
|
if (!ctx) return null;
|
|
28632
28635
|
const { open, close, status } = ctx;
|
|
28633
28636
|
const isPaused = status === "paused";
|
|
@@ -28700,17 +28703,17 @@ function TimeTrackerHeaderButton({ className, disabled }) {
|
|
|
28700
28703
|
|
|
28701
28704
|
// src/components/features/devices/device-last-online.ts
|
|
28702
28705
|
function formatLastOnline(lastSeen) {
|
|
28703
|
-
return `Last Online: ${lastSeen ?
|
|
28706
|
+
return `Last Online: ${lastSeen ? _chunk2X3N6MSRcjs.formatRelativeTime.call(void 0, lastSeen) : "\u2014"}`;
|
|
28704
28707
|
}
|
|
28705
28708
|
|
|
28706
28709
|
// src/components/features/devices/device-name.ts
|
|
28707
28710
|
function getDeviceName(device) {
|
|
28708
|
-
return _optionalChain([device, 'optionalAccess',
|
|
28711
|
+
return _optionalChain([device, 'optionalAccess', _612 => _612.nickname]) || _optionalChain([device, 'optionalAccess', _613 => _613.displayName]) || _optionalChain([device, 'optionalAccess', _614 => _614.hostname]) || "";
|
|
28709
28712
|
}
|
|
28710
28713
|
function matchesDeviceName(device, search = "") {
|
|
28711
28714
|
const needle = search.trim().toLowerCase();
|
|
28712
28715
|
if (!needle) return true;
|
|
28713
|
-
return getDeviceName(device).toLowerCase().includes(needle) || (_nullishCoalesce(_optionalChain([device, 'optionalAccess',
|
|
28716
|
+
return getDeviceName(device).toLowerCase().includes(needle) || (_nullishCoalesce(_optionalChain([device, 'optionalAccess', _615 => _615.hostname]), () => ( ""))).toLowerCase().includes(needle);
|
|
28714
28717
|
}
|
|
28715
28718
|
|
|
28716
28719
|
// src/components/features/devices/devices-view-config.tsx
|
|
@@ -28849,7 +28852,7 @@ function getDeviceStatusConfig(status) {
|
|
|
28849
28852
|
}
|
|
28850
28853
|
}
|
|
28851
28854
|
function getDeviceOperatingSystem(osType) {
|
|
28852
|
-
return
|
|
28855
|
+
return _chunkIE3CPPHJcjs.getOSPlatformId.call(void 0, osType);
|
|
28853
28856
|
}
|
|
28854
28857
|
|
|
28855
28858
|
// src/components/features/devices/device-statuses.ts
|
|
@@ -28903,7 +28906,7 @@ var HIDDEN_DEVICE_STATUSES = [DEVICE_STATUS.ARCHIVED, DEVICE_STATUS.DELETED];
|
|
|
28903
28906
|
|
|
28904
28907
|
var DEFAULT_CLASS_NAME = "w-6 h-6 text-ods-text-secondary";
|
|
28905
28908
|
function renderDeviceTypeIcon(type, className = DEFAULT_CLASS_NAME) {
|
|
28906
|
-
switch (_optionalChain([type, 'optionalAccess',
|
|
28909
|
+
switch (_optionalChain([type, 'optionalAccess', _616 => _616.toLowerCase, 'call', _617 => _617()])) {
|
|
28907
28910
|
case "desktop":
|
|
28908
28911
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPTK7GOIIcjs.MonitorIcon, { className });
|
|
28909
28912
|
case "laptop":
|
|
@@ -29047,7 +29050,7 @@ function getDeviceActionsColumn(renderRowActions) {
|
|
|
29047
29050
|
function OpenDeviceButton({ device }) {
|
|
29048
29051
|
const { getDeviceHref } = useDevicesViewConfig();
|
|
29049
29052
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
29050
|
-
const href = loading ? void 0 : _optionalChain([getDeviceHref, 'optionalCall',
|
|
29053
|
+
const href = loading ? void 0 : _optionalChain([getDeviceHref, 'optionalCall', _618 => _618(device)]);
|
|
29051
29054
|
const open = (event) => {
|
|
29052
29055
|
event.preventDefault();
|
|
29053
29056
|
if (href) window.open(href, "_blank", "noopener,noreferrer");
|
|
@@ -29144,7 +29147,7 @@ function DevicesTableBody({
|
|
|
29144
29147
|
function OrganizationCell({ device }) {
|
|
29145
29148
|
const fullImageUrl = useDeviceImageUrl(device.organizationImageUrl, device.organizationImageHash);
|
|
29146
29149
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
29147
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29150
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.EntityImage, { src: fullImageUrl, alt: device.organization || "Customer", className: "size-12 content-md:size-12" }),
|
|
29148
29151
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OrganizationName, { name: device.organization }) })
|
|
29149
29152
|
] });
|
|
29150
29153
|
}
|
|
@@ -29157,10 +29160,10 @@ function DeviceLastSeen({ lastSeen }) {
|
|
|
29157
29160
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "hidden text-ods-text-secondary text-h6 content-md:flex", children: lastSeen ? formatDateTime(lastSeen) : "Never" });
|
|
29158
29161
|
}
|
|
29159
29162
|
function buildDeviceFilterOptions(deviceFilters) {
|
|
29160
|
-
const status = (_nullishCoalesce(_optionalChain([deviceFilters, 'optionalAccess',
|
|
29161
|
-
const os = (_nullishCoalesce(_optionalChain([deviceFilters, 'optionalAccess',
|
|
29163
|
+
const status = (_nullishCoalesce(_optionalChain([deviceFilters, 'optionalAccess', _619 => _619.statuses]), () => ( []))).filter((s) => DEFAULT_VISIBLE_STATUSES.includes(s.value)).map((s) => ({ id: s.value, label: getDeviceStatusConfig(s.value).label, value: s.value, count: s.count }));
|
|
29164
|
+
const os = (_nullishCoalesce(_optionalChain([deviceFilters, 'optionalAccess', _620 => _620.osTypes]), () => ( []))).map((o) => ({ id: o.value, label: o.value, value: o.value, count: o.count }));
|
|
29162
29165
|
const organization = uniqueById(
|
|
29163
|
-
(_nullishCoalesce(_optionalChain([deviceFilters, 'optionalAccess',
|
|
29166
|
+
(_nullishCoalesce(_optionalChain([deviceFilters, 'optionalAccess', _621 => _621.organizationIds]), () => ( []))).map((org) => ({
|
|
29164
29167
|
id: org.value,
|
|
29165
29168
|
label: org.label,
|
|
29166
29169
|
value: org.value,
|
|
@@ -29196,7 +29199,7 @@ function getDeviceTableColumns(deviceFilters, filtersPending) {
|
|
|
29196
29199
|
const device = row.original;
|
|
29197
29200
|
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: [
|
|
29198
29201
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeviceTypeTile, { type: device.type }),
|
|
29199
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29202
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { children: getDeviceName(device) }) })
|
|
29200
29203
|
] });
|
|
29201
29204
|
},
|
|
29202
29205
|
meta: { width: "flex-1 content-md:w-1/4" }
|
|
@@ -29254,7 +29257,7 @@ function isCompleteTag(tag) {
|
|
|
29254
29257
|
const i = tag.indexOf(":");
|
|
29255
29258
|
return i > 0 && i < tag.length - 1;
|
|
29256
29259
|
}
|
|
29257
|
-
var scrollMainToTop = () => _optionalChain([document, 'access',
|
|
29260
|
+
var scrollMainToTop = () => _optionalChain([document, 'access', _622 => _622.querySelector, 'call', _623 => _623("main"), 'optionalAccess', _624 => _624.scrollTo, 'call', _625 => _625({ top: 0, behavior: "instant" })]);
|
|
29258
29261
|
function useTagFilterModal({
|
|
29259
29262
|
tags,
|
|
29260
29263
|
deviceFilters,
|
|
@@ -29276,7 +29279,7 @@ function useTagFilterModal({
|
|
|
29276
29279
|
}));
|
|
29277
29280
|
}, [columns, isMdUp]);
|
|
29278
29281
|
const tagFilterKeys = _react.useMemo.call(void 0, () => {
|
|
29279
|
-
if (!_optionalChain([deviceFilters, 'optionalAccess',
|
|
29282
|
+
if (!_optionalChain([deviceFilters, 'optionalAccess', _626 => _626.tagKeys])) return [];
|
|
29280
29283
|
const grouped = /* @__PURE__ */ new Map();
|
|
29281
29284
|
for (const tag of deviceFilters.tagKeys) {
|
|
29282
29285
|
if (tag.key === "null") continue;
|
|
@@ -29368,7 +29371,7 @@ function CustomerCell({ device }) {
|
|
|
29368
29371
|
const fullImageUrl = useDeviceImageUrl(device.organizationImageUrl, device.organizationImageHash);
|
|
29369
29372
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
29370
29373
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29371
|
-
|
|
29374
|
+
_chunkIYWX4GOGcjs.EntityImage,
|
|
29372
29375
|
{
|
|
29373
29376
|
src: fullImageUrl,
|
|
29374
29377
|
alt: device.organization || "Customer",
|
|
@@ -29376,8 +29379,8 @@ function CustomerCell({ device }) {
|
|
|
29376
29379
|
}
|
|
29377
29380
|
),
|
|
29378
29381
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
29379
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29380
|
-
(device.organizationEmail || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29382
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { children: device.organization || "" }),
|
|
29383
|
+
(device.organizationEmail || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(device.organizationEmail, () => ( "")) })
|
|
29381
29384
|
] })
|
|
29382
29385
|
] });
|
|
29383
29386
|
}
|
|
@@ -29386,8 +29389,8 @@ function DeviceCell({ device }) {
|
|
|
29386
29389
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 items-center gap-3", children: [
|
|
29387
29390
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeviceTypeTile, { type: device.type }),
|
|
29388
29391
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col", children: [
|
|
29389
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29390
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29392
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { children: getDeviceName(device) }),
|
|
29393
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { variant: "h6", tone: "secondary", loading, children: formatLastOnline(device.last_seen || device.lastSeen) })
|
|
29391
29394
|
] })
|
|
29392
29395
|
] });
|
|
29393
29396
|
}
|
|
@@ -29469,7 +29472,7 @@ function DeviceSelector({
|
|
|
29469
29472
|
const clientToggleDevice = _react.useCallback.call(void 0,
|
|
29470
29473
|
(device) => {
|
|
29471
29474
|
if (disabled) return;
|
|
29472
|
-
if (_optionalChain([isDeviceDisabled, 'optionalCall',
|
|
29475
|
+
if (_optionalChain([isDeviceDisabled, 'optionalCall', _627 => _627(device)])) return;
|
|
29473
29476
|
const key = getDeviceKey(device);
|
|
29474
29477
|
if (key === void 0) return;
|
|
29475
29478
|
const current = selectedIdsRef.current;
|
|
@@ -29494,7 +29497,7 @@ function DeviceSelector({
|
|
|
29494
29497
|
return;
|
|
29495
29498
|
}
|
|
29496
29499
|
if (disabled) return;
|
|
29497
|
-
if (_optionalChain([isDeviceDisabled, 'optionalCall',
|
|
29500
|
+
if (_optionalChain([isDeviceDisabled, 'optionalCall', _628 => _628(device)])) return;
|
|
29498
29501
|
if (server.activeTab === "selected") {
|
|
29499
29502
|
server.onRemove(device);
|
|
29500
29503
|
return;
|
|
@@ -29555,7 +29558,7 @@ function DeviceSelector({
|
|
|
29555
29558
|
const base = addAllBehavior === "replace" ? /* @__PURE__ */ new Set() : new Set(selectedIds);
|
|
29556
29559
|
for (const d of client.filteredDevices) {
|
|
29557
29560
|
if (!matchesVisibleFilters(d)) continue;
|
|
29558
|
-
if (_optionalChain([isDeviceDisabled, 'optionalCall',
|
|
29561
|
+
if (_optionalChain([isDeviceDisabled, 'optionalCall', _629 => _629(d)])) continue;
|
|
29559
29562
|
const key = getDeviceKey(d);
|
|
29560
29563
|
if (key !== void 0) {
|
|
29561
29564
|
base.add(key);
|
|
@@ -29584,7 +29587,7 @@ function DeviceSelector({
|
|
|
29584
29587
|
const orgKey = _nullishCoalesce(d.organizationId, () => ( d.organization));
|
|
29585
29588
|
if (orgKey) {
|
|
29586
29589
|
const existing = orgCounts.get(orgKey);
|
|
29587
|
-
orgCounts.set(orgKey, { label: _nullishCoalesce(d.organization, () => ( orgKey)), count: (_nullishCoalesce(_optionalChain([existing, 'optionalAccess',
|
|
29590
|
+
orgCounts.set(orgKey, { label: _nullishCoalesce(d.organization, () => ( orgKey)), count: (_nullishCoalesce(_optionalChain([existing, 'optionalAccess', _630 => _630.count]), () => ( 0))) + 1 });
|
|
29588
29591
|
}
|
|
29589
29592
|
for (const tag of _nullishCoalesce(d.tags, () => ( []))) {
|
|
29590
29593
|
const vc = _nullishCoalesce(tagSeen.get(tag.key), () => ( /* @__PURE__ */ new Map()));
|
|
@@ -29607,18 +29610,18 @@ function DeviceSelector({
|
|
|
29607
29610
|
filteredCount: devices.length
|
|
29608
29611
|
};
|
|
29609
29612
|
}, [devices]);
|
|
29610
|
-
const deviceFilters = _nullishCoalesce(_optionalChain([server, 'optionalAccess',
|
|
29611
|
-
const serverFaceted = Boolean(_optionalChain([server, 'optionalAccess',
|
|
29613
|
+
const deviceFilters = _nullishCoalesce(_optionalChain([server, 'optionalAccess', _631 => _631.filterOptions]), () => ( clientDeviceFilters));
|
|
29614
|
+
const serverFaceted = Boolean(_optionalChain([server, 'optionalAccess', _632 => _632.filterOptions]));
|
|
29612
29615
|
const filterColumns = _react.useMemo.call(void 0, () => {
|
|
29613
29616
|
const columns2 = getDeviceFilterColumns(deviceFilters);
|
|
29614
29617
|
if (serverFaceted) return columns2;
|
|
29615
29618
|
return columns2.map((column) => ({
|
|
29616
29619
|
...column,
|
|
29617
|
-
filterOptions: _optionalChain([column, 'access',
|
|
29620
|
+
filterOptions: _optionalChain([column, 'access', _633 => _633.filterOptions, 'optionalAccess', _634 => _634.map, 'call', _635 => _635(({ count: _count, ...option }) => option)])
|
|
29618
29621
|
}));
|
|
29619
29622
|
}, [deviceFilters, serverFaceted]);
|
|
29620
29623
|
const statusFilterOptions = _react.useMemo.call(void 0, () => {
|
|
29621
|
-
const options = _nullishCoalesce(_optionalChain([filterColumns, 'access',
|
|
29624
|
+
const options = _nullishCoalesce(_optionalChain([filterColumns, 'access', _636 => _636.find, 'call', _637 => _637((column) => column.key === "status"), 'optionalAccess', _638 => _638.filterOptions]), () => ( []));
|
|
29622
29625
|
return [...options].sort((a, b) => {
|
|
29623
29626
|
if (a.value === DEVICE_STATUS.ARCHIVED) return 1;
|
|
29624
29627
|
if (b.value === DEVICE_STATUS.ARCHIVED) return -1;
|
|
@@ -29626,15 +29629,15 @@ function DeviceSelector({
|
|
|
29626
29629
|
});
|
|
29627
29630
|
}, [filterColumns]);
|
|
29628
29631
|
const orgFilterOptions = _react.useMemo.call(void 0,
|
|
29629
|
-
() => _nullishCoalesce(_optionalChain([filterColumns, 'access',
|
|
29632
|
+
() => _nullishCoalesce(_optionalChain([filterColumns, 'access', _639 => _639.find, 'call', _640 => _640((column) => column.key === "organization"), 'optionalAccess', _641 => _641.filterOptions]), () => ( [])),
|
|
29630
29633
|
[filterColumns]
|
|
29631
29634
|
);
|
|
29632
29635
|
const handleSetParams = _react.useCallback.call(void 0,
|
|
29633
29636
|
(params) => {
|
|
29634
29637
|
setColumnFilters([
|
|
29635
|
-
..._optionalChain([params, 'access',
|
|
29636
|
-
..._optionalChain([params, 'access',
|
|
29637
|
-
..._optionalChain([params, 'access',
|
|
29638
|
+
..._optionalChain([params, 'access', _642 => _642.statuses, 'optionalAccess', _643 => _643.length]) ? [{ id: "status", value: params.statuses }] : [],
|
|
29639
|
+
..._optionalChain([params, 'access', _644 => _644.osTypes, 'optionalAccess', _645 => _645.length]) ? [{ id: "os", value: params.osTypes }] : [],
|
|
29640
|
+
..._optionalChain([params, 'access', _646 => _646.organizationIds, 'optionalAccess', _647 => _647.length]) ? [{ id: "organization", value: params.organizationIds }] : []
|
|
29638
29641
|
]);
|
|
29639
29642
|
setSelectedTags(_nullishCoalesce(params.tags, () => ( [])));
|
|
29640
29643
|
},
|
|
@@ -29658,9 +29661,9 @@ function DeviceSelector({
|
|
|
29658
29661
|
const tagOptions = _react.useMemo.call(void 0, () => selectedTags.map((t) => ({ label: t, value: t })), [selectedTags]);
|
|
29659
29662
|
const tableFilters = _react.useMemo.call(void 0,
|
|
29660
29663
|
() => ({
|
|
29661
|
-
status: _nullishCoalesce(_optionalChain([columnFilters, 'access',
|
|
29662
|
-
os: _nullishCoalesce(_optionalChain([columnFilters, 'access',
|
|
29663
|
-
organization: _nullishCoalesce(_optionalChain([columnFilters, 'access',
|
|
29664
|
+
status: _nullishCoalesce(_optionalChain([columnFilters, 'access', _648 => _648.find, 'call', _649 => _649((f) => f.id === "status"), 'optionalAccess', _650 => _650.value]), () => ( [])),
|
|
29665
|
+
os: _nullishCoalesce(_optionalChain([columnFilters, 'access', _651 => _651.find, 'call', _652 => _652((f) => f.id === "os"), 'optionalAccess', _653 => _653.value]), () => ( [])),
|
|
29666
|
+
organization: _nullishCoalesce(_optionalChain([columnFilters, 'access', _654 => _654.find, 'call', _655 => _655((f) => f.id === "organization"), 'optionalAccess', _656 => _656.value]), () => ( []))
|
|
29664
29667
|
}),
|
|
29665
29668
|
[columnFilters]
|
|
29666
29669
|
);
|
|
@@ -29730,7 +29733,7 @@ function DeviceSelector({
|
|
|
29730
29733
|
id: "actions",
|
|
29731
29734
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InertInScope, { children: (() => {
|
|
29732
29735
|
const device = row.original;
|
|
29733
|
-
const disabledReason = _optionalChain([isDeviceDisabled, 'optionalCall',
|
|
29736
|
+
const disabledReason = _optionalChain([isDeviceDisabled, 'optionalCall', _657 => _657(device)]);
|
|
29734
29737
|
if (disabledReason) {
|
|
29735
29738
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex w-full items-center justify-end gap-2", children: [
|
|
29736
29739
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-pre-line text-right text-ods-text-secondary text-h6 content-max-md:hidden", children: disabledReason }),
|
|
@@ -29847,7 +29850,7 @@ function DeviceSelector({
|
|
|
29847
29850
|
showHeader && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29848
29851
|
DataTable.Header,
|
|
29849
29852
|
{
|
|
29850
|
-
rightSlot: _nullishCoalesce(bulkAction, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTable.RowCount, { itemName: "device", totalCount: _nullishCoalesce(totalCount, () => ( _optionalChain([server, 'optionalAccess',
|
|
29853
|
+
rightSlot: _nullishCoalesce(bulkAction, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTable.RowCount, { itemName: "device", totalCount: _nullishCoalesce(totalCount, () => ( _optionalChain([server, 'optionalAccess', _658 => _658.totalCount]))), loading })))
|
|
29851
29854
|
}
|
|
29852
29855
|
),
|
|
29853
29856
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -29934,7 +29937,7 @@ function DeviceSelector({
|
|
|
29934
29937
|
// src/components/features/devices/device-selector/narrowing.ts
|
|
29935
29938
|
var EMPTY_NARROWING = { columnFilters: [], tags: [] };
|
|
29936
29939
|
function narrowingToFilter(narrowing) {
|
|
29937
|
-
const column = (id) => _optionalChain([narrowing, 'access',
|
|
29940
|
+
const column = (id) => _optionalChain([narrowing, 'access', _659 => _659.columnFilters, 'access', _660 => _660.find, 'call', _661 => _661((f) => f.id === id), 'optionalAccess', _662 => _662.value]);
|
|
29938
29941
|
const tagPairs = narrowing.tags.flatMap((t) => {
|
|
29939
29942
|
const i = t.indexOf(":");
|
|
29940
29943
|
return i > 0 ? [{ key: t.slice(0, i), value: t.slice(i + 1) }] : [];
|
|
@@ -29943,9 +29946,9 @@ function narrowingToFilter(narrowing) {
|
|
|
29943
29946
|
const statuses = column("status");
|
|
29944
29947
|
const osTypes = column("os");
|
|
29945
29948
|
const organizationIds = column("organization");
|
|
29946
|
-
if (_optionalChain([statuses, 'optionalAccess',
|
|
29947
|
-
if (_optionalChain([osTypes, 'optionalAccess',
|
|
29948
|
-
if (_optionalChain([organizationIds, 'optionalAccess',
|
|
29949
|
+
if (_optionalChain([statuses, 'optionalAccess', _663 => _663.length])) filter.statuses = statuses;
|
|
29950
|
+
if (_optionalChain([osTypes, 'optionalAccess', _664 => _664.length])) filter.osTypes = osTypes;
|
|
29951
|
+
if (_optionalChain([organizationIds, 'optionalAccess', _665 => _665.length])) filter.organizationIds = organizationIds;
|
|
29949
29952
|
if (tagPairs.length) {
|
|
29950
29953
|
filter.tagKeys = tagPairs.map((t) => t.key);
|
|
29951
29954
|
filter.tagValues = tagPairs.map((t) => t.value);
|
|
@@ -29975,7 +29978,7 @@ function DevicesGrid({
|
|
|
29975
29978
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
29976
29979
|
const { getDeviceHref } = useDevicesViewConfig();
|
|
29977
29980
|
const handleDeviceClick = (device) => {
|
|
29978
|
-
const href = device.machineId || device.id ? _optionalChain([getDeviceHref, 'optionalCall',
|
|
29981
|
+
const href = device.machineId || device.id ? _optionalChain([getDeviceHref, 'optionalCall', _666 => _666(device)]) : void 0;
|
|
29979
29982
|
if (href) router.push(href);
|
|
29980
29983
|
};
|
|
29981
29984
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: isLoading && devices.length === 0 ? (
|
|
@@ -30135,7 +30138,7 @@ function DevicesList({
|
|
|
30135
30138
|
const onColumnFiltersChange = _react.useCallback.call(void 0,
|
|
30136
30139
|
(updater) => {
|
|
30137
30140
|
const next = typeof updater === "function" ? updater(columnFilters) : updater;
|
|
30138
|
-
const pick = (id) => _nullishCoalesce(_optionalChain([next, 'access',
|
|
30141
|
+
const pick = (id) => _nullishCoalesce(_optionalChain([next, 'access', _667 => _667.find, 'call', _668 => _668((f) => f.id === id), 'optionalAccess', _669 => _669.value]), () => ( []));
|
|
30139
30142
|
patch({ statuses: pick("status"), osTypes: pick("os"), organizationIds: pick("organization") });
|
|
30140
30143
|
},
|
|
30141
30144
|
[columnFilters, patch]
|
|
@@ -30187,7 +30190,7 @@ function DevicesList({
|
|
|
30187
30190
|
const handleClearAll = _react.useCallback.call(void 0, () => patch({ search: "", tags: [] }), [patch]);
|
|
30188
30191
|
const narrowed = isNarrowed(narrowing);
|
|
30189
30192
|
const isEmptyState = !isLoading && !isPending && !narrowed && devices.length === 0;
|
|
30190
|
-
const { toolbarRef, containerStyle, stickyHeaderOffset: measuredOffset } =
|
|
30193
|
+
const { toolbarRef, containerStyle, stickyHeaderOffset: measuredOffset } = _chunkOG4XH6C5cjs.useStickyToolbar.call(void 0, );
|
|
30191
30194
|
const headerOffset = _nullishCoalesce(stickyHeaderOffset, () => ( (stickyToolbar ? measuredOffset : void 0)));
|
|
30192
30195
|
const actionsColumn = _react.useMemo.call(void 0, () => rowActions2 ? getDeviceActionsColumn(rowActions2) : void 0, [rowActions2]);
|
|
30193
30196
|
return (
|
|
@@ -30359,7 +30362,7 @@ function DevicesPanelView({
|
|
|
30359
30362
|
}) {
|
|
30360
30363
|
const scoped = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
30361
30364
|
const loading = scoped || loadingGiven;
|
|
30362
|
-
const gridColumns = _nullishCoalesce(filterColumns, () => ( getDeviceFilterColumns(deviceFilters).filter((column) => !_optionalChain([hideFilters, 'optionalAccess',
|
|
30365
|
+
const gridColumns = _nullishCoalesce(filterColumns, () => ( getDeviceFilterColumns(deviceFilters).filter((column) => !_optionalChain([hideFilters, 'optionalAccess', _670 => _670.includes, 'call', _671 => _671(column.key)]))));
|
|
30363
30366
|
const list = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
30364
30367
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DevicesFilterToolbar, { ...toolbar, isLoading: loading }),
|
|
30365
30368
|
viewMode === "table" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -30416,7 +30419,7 @@ function DevicesPanelView({
|
|
|
30416
30419
|
] })
|
|
30417
30420
|
] });
|
|
30418
30421
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30419
|
-
|
|
30422
|
+
_chunkIYWX4GOGcjs.PageLayout,
|
|
30420
30423
|
{
|
|
30421
30424
|
title,
|
|
30422
30425
|
backButton,
|
|
@@ -30424,10 +30427,10 @@ function DevicesPanelView({
|
|
|
30424
30427
|
actionsVariant: "icon-buttons",
|
|
30425
30428
|
className,
|
|
30426
30429
|
selector: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30427
|
-
|
|
30430
|
+
_chunkTVAU56UUcjs.TabSelector,
|
|
30428
30431
|
{
|
|
30429
30432
|
value: viewMode,
|
|
30430
|
-
onValueChange: (value) => _optionalChain([onViewModeChange, 'optionalCall',
|
|
30433
|
+
onValueChange: (value) => _optionalChain([onViewModeChange, 'optionalCall', _672 => _672(value)]),
|
|
30431
30434
|
items: DEVICE_VIEW_MODE_ITEMS,
|
|
30432
30435
|
disabled: loading
|
|
30433
30436
|
}
|
|
@@ -30490,7 +30493,7 @@ var PACKAGE_SEARCH_LABEL = "Software Name";
|
|
|
30490
30493
|
var PACKAGE_SEARCH_PLACEHOLDER = "Search for Software";
|
|
30491
30494
|
function PackageSearchFieldPlaceholder({ error }) {
|
|
30492
30495
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30493
|
-
|
|
30496
|
+
_chunkIYWX4GOGcjs.Autocomplete,
|
|
30494
30497
|
{
|
|
30495
30498
|
label: PACKAGE_SEARCH_LABEL,
|
|
30496
30499
|
labelVariant: "large",
|
|
@@ -30545,16 +30548,16 @@ function SoftwareScheduleFields({
|
|
|
30545
30548
|
] }),
|
|
30546
30549
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
30547
30550
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD47ZGOUcjs.Label, { className: "text-h4", children: "Time" }),
|
|
30548
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30549
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30550
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30551
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIYWX4GOGcjs.Select, { value: time, onValueChange: onTimeChange, children: [
|
|
30552
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectValue, { placeholder: "Select time" }) }),
|
|
30553
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectContent, { children: timeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
30551
30554
|
] })
|
|
30552
30555
|
] }),
|
|
30553
30556
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
30554
30557
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD47ZGOUcjs.Label, { className: "text-h4", children: "Timezone" }),
|
|
30555
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30556
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30557
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30558
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIYWX4GOGcjs.Select, { value: timeReference, onValueChange: (value) => onTimeReferenceChange(value), children: [
|
|
30559
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectValue, {}) }),
|
|
30560
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectContent, { children: timing.timeReferenceOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
30558
30561
|
] })
|
|
30559
30562
|
] })
|
|
30560
30563
|
]
|
|
@@ -30620,22 +30623,22 @@ function newSoftwareRow(key) {
|
|
|
30620
30623
|
|
|
30621
30624
|
function InfoCell2({ value, label }) {
|
|
30622
30625
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
30623
|
-
/* @__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,
|
|
30626
|
+
/* @__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, _chunkIYWX4GOGcjs.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" }) }) }),
|
|
30624
30627
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: label })
|
|
30625
30628
|
] });
|
|
30626
30629
|
}
|
|
30627
30630
|
function SoftwareRowFields({ row, removable, onChange, onRemove, renderPackageSearch }) {
|
|
30628
30631
|
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: [
|
|
30629
30632
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30630
|
-
|
|
30633
|
+
_chunkIYWX4GOGcjs.Select,
|
|
30631
30634
|
{
|
|
30632
30635
|
value: row.packageManager,
|
|
30633
30636
|
onValueChange: (value) => onChange({ ...row, packageManager: value, pkg: null }),
|
|
30634
30637
|
children: [
|
|
30635
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30636
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30638
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectTrigger, { label: "Package Manager", labelVariant: "large", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectValue, {}) }),
|
|
30639
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectContent, { children: PACKAGE_MANAGERS.map((manager) => {
|
|
30637
30640
|
const Icon = PACKAGE_MANAGER_ICON[manager];
|
|
30638
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30641
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: manager, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
30639
30642
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { size: 20, className: "shrink-0 text-ods-text-secondary" }),
|
|
30640
30643
|
PACKAGE_MANAGER_LABEL[manager]
|
|
30641
30644
|
] }) }, manager);
|
|
@@ -30648,9 +30651,9 @@ function SoftwareRowFields({ row, removable, onChange, onRemove, renderPackageSe
|
|
|
30648
30651
|
value: row.pkg,
|
|
30649
30652
|
onChange: (pkg) => onChange({ ...row, pkg })
|
|
30650
30653
|
}) }),
|
|
30651
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: _optionalChain([row, 'access',
|
|
30654
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: _optionalChain([row, 'access', _673 => _673.pkg, 'optionalAccess', _674 => _674.description]), label: "Description" }),
|
|
30652
30655
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-end gap-[var(--spacing-system-lf)]", children: [
|
|
30653
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: _optionalChain([row, 'access',
|
|
30656
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: _optionalChain([row, 'access', _675 => _675.pkg, 'optionalAccess', _676 => _676.version]), label: "Current Version" }),
|
|
30654
30657
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30655
30658
|
_chunkAHBTZ7DNcjs.Button,
|
|
30656
30659
|
{
|
|
@@ -30733,7 +30736,7 @@ function SoftwareActionForm({
|
|
|
30733
30736
|
}
|
|
30734
30737
|
);
|
|
30735
30738
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30736
|
-
|
|
30739
|
+
_chunkIYWX4GOGcjs.PageLayout,
|
|
30737
30740
|
{
|
|
30738
30741
|
title: copy.formTitle,
|
|
30739
30742
|
backButton: onBack ? { label: "Back", onClick: onBack } : void 0,
|
|
@@ -30822,7 +30825,7 @@ function LogDrawer({
|
|
|
30822
30825
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-h-0 flex-1 space-y-4 overflow-y-auto", children: [
|
|
30823
30826
|
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 }) }),
|
|
30824
30827
|
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: [
|
|
30825
|
-
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,
|
|
30828
|
+
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, _chunkIYWX4GOGcjs.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 }),
|
|
30826
30829
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: field.label })
|
|
30827
30830
|
] }, typeof field.label === "string" ? field.label : "")) }),
|
|
30828
30831
|
children
|
|
@@ -30870,7 +30873,7 @@ function LogsPageView({
|
|
|
30870
30873
|
],
|
|
30871
30874
|
[onRefresh]
|
|
30872
30875
|
);
|
|
30873
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30876
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIYWX4GOGcjs.PageLayout, { title: "Logs", actions, showHeader, className, children: [
|
|
30874
30877
|
!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: [
|
|
30875
30878
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30876
30879
|
_chunkTTZEDDR5cjs.Input,
|
|
@@ -30959,11 +30962,11 @@ var ToolBadge = ({
|
|
|
30959
30962
|
iconClassName
|
|
30960
30963
|
}) => {
|
|
30961
30964
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
30962
|
-
const text = _nullishCoalesce(label, () => ( (toolType ?
|
|
30965
|
+
const text = _nullishCoalesce(label, () => ( (toolType ? _chunkIE3CPPHJcjs.getToolLabel.call(void 0, toolType) : "")));
|
|
30963
30966
|
const mark = _nullishCoalesce(icon, () => ( (toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHATRCNXJcjs.ToolIcon, { toolType, className: iconClassName, size: 16 }) : null)));
|
|
30964
30967
|
if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ToolBadgeSkeleton, { variant, icon: !!mark, className });
|
|
30965
30968
|
const linked = (node, linkClassName) => href && targetPlatform ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30966
|
-
|
|
30969
|
+
_chunkTVAU56UUcjs.NavLinkAnchorViaRuntime,
|
|
30967
30970
|
{
|
|
30968
30971
|
href,
|
|
30969
30972
|
targetPlatform,
|
|
@@ -31028,8 +31031,8 @@ function LogSourceCell({ device }) {
|
|
|
31028
31031
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
31029
31032
|
const { deviceName, organization } = logSourceLabels(device);
|
|
31030
31033
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-h-[60px] flex-col justify-center gap-1 py-2", children: [
|
|
31031
|
-
(deviceName || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31032
|
-
(organization || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31034
|
+
(deviceName || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { children: deviceName }),
|
|
31035
|
+
(organization || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(organization, () => ( "")) })
|
|
31033
31036
|
] });
|
|
31034
31037
|
}
|
|
31035
31038
|
function LogRowButton({
|
|
@@ -31084,8 +31087,8 @@ function LogsTableView({
|
|
|
31084
31087
|
accessorKey: "logId",
|
|
31085
31088
|
header: logIdHeader ? () => logIdHeader : "Log ID",
|
|
31086
31089
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col justify-center", children: [
|
|
31087
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31088
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31090
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { children: row.original.timestamp }),
|
|
31091
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { variant: "h6", tone: "secondary", children: row.original.logId })
|
|
31089
31092
|
] }),
|
|
31090
31093
|
enableSorting: false,
|
|
31091
31094
|
meta: { width: LOG_COLUMN_WIDTHS.logId, alwaysShowHeader: true }
|
|
@@ -31099,7 +31102,7 @@ function LogsTableView({
|
|
|
31099
31102
|
meta: {
|
|
31100
31103
|
width: LOG_COLUMN_WIDTHS.status,
|
|
31101
31104
|
filter: {
|
|
31102
|
-
options: _nullishCoalesce(_optionalChain([facets, 'optionalAccess',
|
|
31105
|
+
options: _nullishCoalesce(_optionalChain([facets, 'optionalAccess', _677 => _677.severities, 'access', _678 => _678.map, 'call', _679 => _679((severity) => ({
|
|
31103
31106
|
id: severity,
|
|
31104
31107
|
label: severity.charAt(0).toUpperCase() + severity.slice(1).toLowerCase(),
|
|
31105
31108
|
value: severity
|
|
@@ -31113,7 +31116,7 @@ function LogsTableView({
|
|
|
31113
31116
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31114
31117
|
ToolBadge,
|
|
31115
31118
|
{
|
|
31116
|
-
toolType:
|
|
31119
|
+
toolType: _chunkIE3CPPHJcjs.normalizeToolTypeWithFallback.call(void 0, row.original.source.toolType),
|
|
31117
31120
|
iconClassName: "h-4 w-4 content-md:h-6 content-md:w-6"
|
|
31118
31121
|
}
|
|
31119
31122
|
),
|
|
@@ -31123,9 +31126,9 @@ function LogsTableView({
|
|
|
31123
31126
|
width: LOG_COLUMN_WIDTHS.tool,
|
|
31124
31127
|
hideAt: "md",
|
|
31125
31128
|
filter: {
|
|
31126
|
-
options: _nullishCoalesce(_optionalChain([facets, 'optionalAccess',
|
|
31129
|
+
options: _nullishCoalesce(_optionalChain([facets, 'optionalAccess', _680 => _680.toolTypes, 'access', _681 => _681.map, 'call', _682 => _682((toolType) => ({
|
|
31127
31130
|
id: toolType,
|
|
31128
|
-
label:
|
|
31131
|
+
label: _chunkIE3CPPHJcjs.toToolLabel.call(void 0, toolType),
|
|
31129
31132
|
value: toolType
|
|
31130
31133
|
}))]), () => ( []))
|
|
31131
31134
|
}
|
|
@@ -31140,19 +31143,19 @@ function LogsTableView({
|
|
|
31140
31143
|
meta: {
|
|
31141
31144
|
width: LOG_COLUMN_WIDTHS.source,
|
|
31142
31145
|
hideAt: "md",
|
|
31143
|
-
filter: organizationLocked ? void 0 : { options: [..._nullishCoalesce(_optionalChain([facets, 'optionalAccess',
|
|
31146
|
+
filter: organizationLocked ? void 0 : { options: [..._nullishCoalesce(_optionalChain([facets, 'optionalAccess', _683 => _683.organizations]), () => ( []))] }
|
|
31144
31147
|
}
|
|
31145
31148
|
},
|
|
31146
31149
|
{
|
|
31147
31150
|
accessorKey: "description",
|
|
31148
31151
|
header: "Log Details",
|
|
31149
|
-
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31152
|
+
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { lines: 3, className: "text-ods-text-secondary text-h6", children: row.original.description.title }),
|
|
31150
31153
|
enableSorting: false,
|
|
31151
31154
|
meta: { width: LOG_COLUMN_WIDTHS.description, hideAt: "lg" }
|
|
31152
31155
|
},
|
|
31153
31156
|
{
|
|
31154
31157
|
id: "copy",
|
|
31155
|
-
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: _optionalChain([renderCopyAction, 'optionalCall',
|
|
31158
|
+
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: _optionalChain([renderCopyAction, 'optionalCall', _684 => _684(row.original)]) }),
|
|
31156
31159
|
enableSorting: false,
|
|
31157
31160
|
meta: { width: `${LOG_COLUMN_WIDTHS.action} ml-auto`, align: "right" }
|
|
31158
31161
|
},
|
|
@@ -31161,7 +31164,7 @@ function LogsTableView({
|
|
|
31161
31164
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31162
31165
|
LogRowButton,
|
|
31163
31166
|
{
|
|
31164
|
-
onClick: () => _optionalChain([onQuickView, 'optionalCall',
|
|
31167
|
+
onClick: () => _optionalChain([onQuickView, 'optionalCall', _685 => _685(row.original)]),
|
|
31165
31168
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMMLT7ASAcjs.EyeIcon, { className: "h-5 w-5" }),
|
|
31166
31169
|
label: "Quick view"
|
|
31167
31170
|
}
|
|
@@ -31174,7 +31177,7 @@ function LogsTableView({
|
|
|
31174
31177
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31175
31178
|
LogRowButton,
|
|
31176
31179
|
{
|
|
31177
|
-
onClick: getLogHref ?
|
|
31180
|
+
onClick: getLogHref ? _chunkIE3CPPHJcjs.openInNewTab.call(void 0, getLogHref(row.original)) : void 0,
|
|
31178
31181
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
31179
31182
|
label: "Open in new tab"
|
|
31180
31183
|
}
|
|
@@ -31183,14 +31186,14 @@ function LogsTableView({
|
|
|
31183
31186
|
meta: { width: LOG_COLUMN_WIDTHS.action, hideAt: "md", align: "right" }
|
|
31184
31187
|
}
|
|
31185
31188
|
];
|
|
31186
|
-
if (!_optionalChain([hiddenColumns, 'optionalAccess',
|
|
31189
|
+
if (!_optionalChain([hiddenColumns, 'optionalAccess', _686 => _686.length])) return all;
|
|
31187
31190
|
return all.filter((column) => !hiddenColumns.includes(columnId(column)));
|
|
31188
31191
|
}, [facets, getLogHref, organizationLocked, logIdHeader, renderCopyAction, onQuickView, hiddenColumns]);
|
|
31189
31192
|
const filterGroups = _react.useMemo.call(void 0,
|
|
31190
|
-
() => columns.filter((column) => _optionalChain([column, 'access',
|
|
31193
|
+
() => columns.filter((column) => _optionalChain([column, 'access', _687 => _687.meta, 'optionalAccess', _688 => _688.filter, 'optionalAccess', _689 => _689.options])).map((column) => ({
|
|
31191
31194
|
id: columnId(column),
|
|
31192
31195
|
title: typeof column.header === "string" ? column.header : "",
|
|
31193
|
-
options: _optionalChain([column, 'access',
|
|
31196
|
+
options: _optionalChain([column, 'access', _690 => _690.meta, 'optionalAccess', _691 => _691.filter, 'optionalAccess', _692 => _692.options]) || []
|
|
31194
31197
|
})),
|
|
31195
31198
|
[columns]
|
|
31196
31199
|
);
|
|
@@ -31223,14 +31226,14 @@ function LogsTableView({
|
|
|
31223
31226
|
onColumnFiltersChange: handleColumnFiltersChange
|
|
31224
31227
|
});
|
|
31225
31228
|
const hasActiveFilters = Object.values(filters).some((values) => values.length > 0);
|
|
31226
|
-
const hasQuery = Boolean(search) || hasActiveFilters || Boolean(_optionalChain([dateFilter, 'optionalAccess',
|
|
31229
|
+
const hasQuery = Boolean(search) || hasActiveFilters || Boolean(_optionalChain([dateFilter, 'optionalAccess', _693 => _693.range]));
|
|
31227
31230
|
const noRows = !loading && logs.length === 0;
|
|
31228
31231
|
const showEmptyState = !organizationLocked && !hasQuery && noRows;
|
|
31229
31232
|
const scoped = deviceScoped || organizationLocked;
|
|
31230
31233
|
const scopedEmpty = scoped && noRows;
|
|
31231
31234
|
const hideSearch = showEmptyState || scopedEmpty && !hasQuery;
|
|
31232
31235
|
_react.useEffect.call(void 0, () => {
|
|
31233
|
-
_optionalChain([onHideSearchChange, 'optionalCall',
|
|
31236
|
+
_optionalChain([onHideSearchChange, 'optionalCall', _694 => _694(hideSearch)]);
|
|
31234
31237
|
}, [hideSearch, onHideSearchChange]);
|
|
31235
31238
|
if (showEmptyState) {
|
|
31236
31239
|
const emptyProps = deviceScoped ? { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIK3ZQW3Dcjs.ClipboardListIcon, {}), title: EMPTY_TITLE, description: EMPTY_DESCRIPTION } : {
|
|
@@ -31339,28 +31342,28 @@ function ExecutionSourceBadge({ source, className }) {
|
|
|
31339
31342
|
const tagProps = { as: "span", variant: "outline", className: _chunk7JWFMAQBcjs.cn.call(void 0, "shrink-0", className) };
|
|
31340
31343
|
if (source === "SCHEDULED") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6UKH22NQcjs.Tag, { ...tagProps, label: "Scheduled" });
|
|
31341
31344
|
if (source === "AI_ASSISTANT") {
|
|
31342
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6UKH22NQcjs.Tag, { ...tagProps, label: "Mingo", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31345
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6UKH22NQcjs.Tag, { ...tagProps, label: "Mingo", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2X3N6MSRcjs.AgentMark, { agent: "mingo", className: "size-4" }) });
|
|
31343
31346
|
}
|
|
31344
31347
|
return null;
|
|
31345
31348
|
}
|
|
31346
31349
|
function ExecutionTimestampCell({ timestamp, executionId }) {
|
|
31347
31350
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31348
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31349
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31351
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { children: timestamp }),
|
|
31352
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { variant: "h6", tone: "secondary", children: executionId })
|
|
31350
31353
|
] });
|
|
31351
31354
|
}
|
|
31352
31355
|
function ExecutionStatusCell({ status }) {
|
|
31353
31356
|
const presentation = scriptExecutionStatus(status);
|
|
31354
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6UKH22NQcjs.Tag, { label: _nullishCoalesce(_optionalChain([presentation, 'optionalAccess',
|
|
31357
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6UKH22NQcjs.Tag, { label: _nullishCoalesce(_optionalChain([presentation, 'optionalAccess', _695 => _695.label]), () => ( String(_nullishCoalesce(status, () => ( ""))))), variant: _nullishCoalesce(_optionalChain([presentation, 'optionalAccess', _696 => _696.variant]), () => ( "grey")) }) });
|
|
31355
31358
|
}
|
|
31356
31359
|
function ExecutionDeviceCell({ name, organization }) {
|
|
31357
31360
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
31358
31361
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31359
31362
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-1", children: [
|
|
31360
31363
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPTK7GOIIcjs.MonitorIcon, { className: "size-6 shrink-0 text-ods-text-secondary" }),
|
|
31361
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31364
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { children: name }) : name })
|
|
31362
31365
|
] }),
|
|
31363
|
-
(organization || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31366
|
+
(organization || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(organization, () => ( "")) })
|
|
31364
31367
|
] });
|
|
31365
31368
|
}
|
|
31366
31369
|
function ExecutionInitiatorCell({
|
|
@@ -31373,16 +31376,16 @@ function ExecutionInitiatorCell({
|
|
|
31373
31376
|
avatar,
|
|
31374
31377
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
31375
31378
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
31376
|
-
typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31379
|
+
typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { children: name }) : name,
|
|
31377
31380
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExecutionSourceBadge, { source })
|
|
31378
31381
|
] }),
|
|
31379
|
-
scriptName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31382
|
+
scriptName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { variant: "h6", tone: "secondary", children: scriptName })
|
|
31380
31383
|
] })
|
|
31381
31384
|
] });
|
|
31382
31385
|
}
|
|
31383
31386
|
function ExecutionResultCell({ result, empty = null }) {
|
|
31384
31387
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
31385
|
-
return result || loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31388
|
+
return result || loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { lines: 2, children: _nullishCoalesce(result, () => ( "")) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: empty });
|
|
31386
31389
|
}
|
|
31387
31390
|
function ScriptExecutionResult({
|
|
31388
31391
|
result,
|
|
@@ -31402,14 +31405,14 @@ function ScriptExecutionResult({
|
|
|
31402
31405
|
|
|
31403
31406
|
function ScriptNameCell({ name, description }) {
|
|
31404
31407
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31405
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31406
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31408
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { children: name }),
|
|
31409
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { variant: "h6", tone: "secondary", children: description })
|
|
31407
31410
|
] });
|
|
31408
31411
|
}
|
|
31409
31412
|
function ScheduleDateTimeCell({ date, time }) {
|
|
31410
31413
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31411
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31412
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31414
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { children: date }),
|
|
31415
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { variant: "h6", tone: "secondary", children: time })
|
|
31413
31416
|
] });
|
|
31414
31417
|
}
|
|
31415
31418
|
|
|
@@ -31496,7 +31499,7 @@ function OpenInNewTabCell({ href }) {
|
|
|
31496
31499
|
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,
|
|
31497
31500
|
_chunkAHBTZ7DNcjs.Button,
|
|
31498
31501
|
{
|
|
31499
|
-
onClick: loading ? void 0 :
|
|
31502
|
+
onClick: loading ? void 0 : _chunkIE3CPPHJcjs.openInNewTab.call(void 0, href),
|
|
31500
31503
|
disabled: loading,
|
|
31501
31504
|
variant: "outline",
|
|
31502
31505
|
size: "icon",
|
|
@@ -31558,7 +31561,7 @@ function ScriptExecutionsTable({
|
|
|
31558
31561
|
[EXECUTION_COLUMNS.result.id]: (row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExecutionResultCell, { result: row.result }),
|
|
31559
31562
|
[EXECUTION_COLUMNS.open.id]: (row) => row.href !== void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OpenInNewTabCell, { href: row.href }) : null
|
|
31560
31563
|
};
|
|
31561
|
-
return layout.filter((column) => renderers[column.id] && !_optionalChain([hideColumns, 'optionalAccess',
|
|
31564
|
+
return layout.filter((column) => renderers[column.id] && !_optionalChain([hideColumns, 'optionalAccess', _697 => _697.includes, 'call', _698 => _698(column.id)])).map((column) => ({
|
|
31562
31565
|
id: column.id,
|
|
31563
31566
|
header: _nullishCoalesce(column.header, () => ( "")),
|
|
31564
31567
|
cell: ({ row }) => renderers[column.id](row.original),
|
|
@@ -31639,7 +31642,7 @@ function ScriptSchedulesTable({
|
|
|
31639
31642
|
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" })),
|
|
31640
31643
|
cell(
|
|
31641
31644
|
SCHEDULE_COLUMNS.dateTime,
|
|
31642
|
-
(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,
|
|
31645
|
+
(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, _chunkIYWX4GOGcjs.TruncateText, { tone: "secondary", children: row.trigger }) : null
|
|
31643
31646
|
),
|
|
31644
31647
|
cell(
|
|
31645
31648
|
SCHEDULE_COLUMNS.repeat,
|
|
@@ -31685,15 +31688,15 @@ function ScriptSchedulesTable({
|
|
|
31685
31688
|
|
|
31686
31689
|
// src/components/features/scripts/shell-types.ts
|
|
31687
31690
|
var SCRIPT_SHELL_TYPES = [
|
|
31688
|
-
{ id:
|
|
31689
|
-
{ id:
|
|
31690
|
-
{ id:
|
|
31691
|
+
{ id: _chunkIE3CPPHJcjs.ShellTypeValues.POWERSHELL, label: "PowerShell", value: "powershell", icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon },
|
|
31692
|
+
{ id: _chunkIE3CPPHJcjs.ShellTypeValues.CMD, label: "CMD", value: "cmd", icon: _chunkNIVJEJSGcjs.TerminalSquareIcon },
|
|
31693
|
+
{ id: _chunkIE3CPPHJcjs.ShellTypeValues.BASH, label: "Bash", value: "bash", icon: _chunkTRUW6DDAcjs.TerminalIcon }
|
|
31691
31694
|
];
|
|
31692
31695
|
function scriptShellType(value) {
|
|
31693
31696
|
return SCRIPT_SHELL_TYPES.find((shell) => shell.value === value);
|
|
31694
31697
|
}
|
|
31695
31698
|
function scriptShellLabel(value) {
|
|
31696
|
-
return _nullishCoalesce(_optionalChain([scriptShellType, 'call',
|
|
31699
|
+
return _nullishCoalesce(_optionalChain([scriptShellType, 'call', _699 => _699(value), 'optionalAccess', _700 => _700.label]), () => ( value));
|
|
31697
31700
|
}
|
|
31698
31701
|
|
|
31699
31702
|
// src/components/features/scripts/script-shell-badge.tsx
|
|
@@ -31706,10 +31709,10 @@ function ScriptShellBadge({ value, className, iconClassName }) {
|
|
|
31706
31709
|
] });
|
|
31707
31710
|
}
|
|
31708
31711
|
const shell = scriptShellType(value);
|
|
31709
|
-
const Icon = _optionalChain([shell, 'optionalAccess',
|
|
31712
|
+
const Icon = _optionalChain([shell, 'optionalAccess', _701 => _701.icon]);
|
|
31710
31713
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex items-center gap-2", className), children: [
|
|
31711
31714
|
Icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: _chunk7JWFMAQBcjs.cn.call(void 0, "h-5 w-5 text-ods-text-secondary", iconClassName) }),
|
|
31712
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([shell, 'optionalAccess',
|
|
31715
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([shell, 'optionalAccess', _702 => _702.label]), () => ( value)) })
|
|
31713
31716
|
] });
|
|
31714
31717
|
}
|
|
31715
31718
|
|
|
@@ -31763,7 +31766,7 @@ function ScriptsTable({
|
|
|
31763
31766
|
initialsClassName: "text-ods-text-secondary"
|
|
31764
31767
|
}
|
|
31765
31768
|
),
|
|
31766
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31769
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { children: row.author.name }) })
|
|
31767
31770
|
] }) : null
|
|
31768
31771
|
)
|
|
31769
31772
|
];
|
|
@@ -32061,7 +32064,7 @@ function ScheduleIntervalInput(props) {
|
|
|
32061
32064
|
onBlur: () => {
|
|
32062
32065
|
focused.current = false;
|
|
32063
32066
|
setText(value === null ? "" : String(value));
|
|
32064
|
-
_optionalChain([onBlur, 'optionalCall',
|
|
32067
|
+
_optionalChain([onBlur, 'optionalCall', _703 => _703()]);
|
|
32065
32068
|
},
|
|
32066
32069
|
onChange: (e) => {
|
|
32067
32070
|
const raw = e.target.value;
|
|
@@ -32110,9 +32113,9 @@ function ReconnectWindowFields({
|
|
|
32110
32113
|
invalid
|
|
32111
32114
|
}
|
|
32112
32115
|
),
|
|
32113
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
32114
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32115
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32116
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIYWX4GOGcjs.Select, { value: unit, onValueChange: (next) => onUnitChange(next), disabled, children: [
|
|
32117
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectTrigger, { className: controlWidth, "aria-label": "Stop retry after unit", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectValue, {}) }),
|
|
32118
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectContent, { children: DURATION_UNIT_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
32116
32119
|
] })
|
|
32117
32120
|
] });
|
|
32118
32121
|
}
|
|
@@ -32124,7 +32127,7 @@ function ScheduleOfflineFields({ showErrors, disabled = false }) {
|
|
|
32124
32127
|
const { field: intervalField, fieldState: intervalState } = _reacthookform.useController.call(void 0, { control, name: "reconnectInterval" });
|
|
32125
32128
|
const { field: unitField } = _reacthookform.useController.call(void 0, { control, name: "reconnectUnit" });
|
|
32126
32129
|
const windowDisabled = disabled || !isRetryOnReconnect(behaviorField.value);
|
|
32127
|
-
const intervalError = showErrors ? _optionalChain([intervalState, 'access',
|
|
32130
|
+
const intervalError = showErrors ? _optionalChain([intervalState, 'access', _704 => _704.error, 'optionalAccess', _705 => _705.message]) : void 0;
|
|
32128
32131
|
const handleUnitChange = (next) => {
|
|
32129
32132
|
unitField.onChange(next);
|
|
32130
32133
|
const snapped = snapReconnectInterval(intervalField.value, next);
|
|
@@ -32180,7 +32183,7 @@ function ScheduleOfflineFields({ showErrors, disabled = false }) {
|
|
|
32180
32183
|
options
|
|
32181
32184
|
}
|
|
32182
32185
|
),
|
|
32183
|
-
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,
|
|
32186
|
+
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, _chunkIYWX4GOGcjs.TruncateText, { variant: "h6", className: "text-ods-error", children: intervalError }) })
|
|
32184
32187
|
]
|
|
32185
32188
|
}
|
|
32186
32189
|
) }) })
|
|
@@ -32269,13 +32272,13 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
|
|
|
32269
32272
|
const [flipTick, setFlipTick] = _react.useState.call(void 0, 0);
|
|
32270
32273
|
const flipTimer = _react.useRef.call(void 0, null);
|
|
32271
32274
|
const readItems = _react.useCallback.call(void 0,
|
|
32272
|
-
() => [..._nullishCoalesce(_optionalChain([listRef, 'access',
|
|
32275
|
+
() => [..._nullishCoalesce(_optionalChain([listRef, 'access', _706 => _706.current, 'optionalAccess', _707 => _707.querySelectorAll, 'call', _708 => _708(`[${SORTABLE_ITEM_ATTRIBUTE}]`)]), () => ( []))],
|
|
32273
32276
|
[]
|
|
32274
32277
|
);
|
|
32275
32278
|
const reorder = _react.useCallback.call(void 0,
|
|
32276
32279
|
(from, to) => {
|
|
32277
32280
|
if (from === to) return;
|
|
32278
|
-
const label = _nullishCoalesce(_optionalChain([getItemLabelRef, 'access',
|
|
32281
|
+
const label = _nullishCoalesce(_optionalChain([getItemLabelRef, 'access', _709 => _709.current, 'optionalCall', _710 => _710(from)]), () => ( "Item"));
|
|
32279
32282
|
setAnnouncement(`${label} moved to position ${to + 1} of ${readItems().length}.`);
|
|
32280
32283
|
onReorderRef.current(from, to);
|
|
32281
32284
|
},
|
|
@@ -32289,8 +32292,8 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
|
|
|
32289
32292
|
// Dragging towards the edge of the screen — or past it — scrolls whatever
|
|
32290
32293
|
// actually scrolls there: the page, the layout's `<main>`, or the list
|
|
32291
32294
|
// itself when it has its own overflow.
|
|
32292
|
-
|
|
32293
|
-
|
|
32295
|
+
_chunkTELXF5WDcjs.autoScrollAncestors.call(void 0, list),
|
|
32296
|
+
_chunkTELXF5WDcjs.autoScrollBothWays.call(void 0, list),
|
|
32294
32297
|
// One target for the whole list: which slot a drop lands in is answered by
|
|
32295
32298
|
// geometry, so this only has to say "inside the list, or outside it".
|
|
32296
32299
|
_adapter.dropTargetForElements.call(void 0, {
|
|
@@ -32363,7 +32366,7 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
|
|
|
32363
32366
|
moving.push(item);
|
|
32364
32367
|
}
|
|
32365
32368
|
if (moving.length === 0) return;
|
|
32366
|
-
void _optionalChain([listRef, 'access',
|
|
32369
|
+
void _optionalChain([listRef, 'access', _711 => _711.current, 'optionalAccess', _712 => _712.offsetHeight]);
|
|
32367
32370
|
for (const item of moving) {
|
|
32368
32371
|
item.style.transition = `transform ${DROP_MS}ms ${EASING}`;
|
|
32369
32372
|
item.style.transform = "";
|
|
@@ -32530,8 +32533,8 @@ function SortableMoveButtons({ index, count, label, className }) {
|
|
|
32530
32533
|
if (to < 0 || to >= count) return;
|
|
32531
32534
|
reorder(index, to);
|
|
32532
32535
|
requestAnimationFrame(() => {
|
|
32533
|
-
if (step === -1 && to === 0) _optionalChain([downRef, 'access',
|
|
32534
|
-
if (step === 1 && to === count - 1) _optionalChain([upRef, 'access',
|
|
32536
|
+
if (step === -1 && to === 0) _optionalChain([downRef, 'access', _713 => _713.current, 'optionalAccess', _714 => _714.focus, 'call', _715 => _715()]);
|
|
32537
|
+
if (step === 1 && to === count - 1) _optionalChain([upRef, 'access', _716 => _716.current, 'optionalAccess', _717 => _717.focus, 'call', _718 => _718()]);
|
|
32535
32538
|
});
|
|
32536
32539
|
};
|
|
32537
32540
|
const subject = _nullishCoalesce(label, () => ( "item"));
|
|
@@ -32579,7 +32582,7 @@ function useSortableItem() {
|
|
|
32579
32582
|
const [handle, setHandle] = _react.useState.call(void 0, null);
|
|
32580
32583
|
const [isDragging, setIsDragging] = _react.useState.call(void 0, false);
|
|
32581
32584
|
const itemRef = _react.useCallback.call(void 0, (node) => {
|
|
32582
|
-
_optionalChain([node, 'optionalAccess',
|
|
32585
|
+
_optionalChain([node, 'optionalAccess', _719 => _719.setAttribute, 'call', _720 => _720(SORTABLE_ITEM_ATTRIBUTE, "")]);
|
|
32583
32586
|
setItem(node);
|
|
32584
32587
|
}, []);
|
|
32585
32588
|
_react.useEffect.call(void 0, () => {
|
|
@@ -32587,7 +32590,7 @@ function useSortableItem() {
|
|
|
32587
32590
|
return _combine.combine.call(void 0,
|
|
32588
32591
|
// The drag has to start as a "move", or its first frame is drawn with the
|
|
32589
32592
|
// copy cursor — see `drag-effect.ts`.
|
|
32590
|
-
|
|
32593
|
+
_chunkTELXF5WDcjs.holdMoveDragEffect.call(void 0, item),
|
|
32591
32594
|
_adapter.draggable.call(void 0, {
|
|
32592
32595
|
element: item,
|
|
32593
32596
|
dragHandle: handle,
|
|
@@ -32609,7 +32612,7 @@ function useSortableItem() {
|
|
|
32609
32612
|
if (from < 0 || to < 0 || to >= items.length) return;
|
|
32610
32613
|
event.preventDefault();
|
|
32611
32614
|
reorder(from, to);
|
|
32612
|
-
requestAnimationFrame(() => _optionalChain([handle, 'optionalAccess',
|
|
32615
|
+
requestAnimationFrame(() => _optionalChain([handle, 'optionalAccess', _721 => _721.focus, 'call', _722 => _722()]));
|
|
32613
32616
|
},
|
|
32614
32617
|
[inert, readItems, reorder, handle]
|
|
32615
32618
|
);
|
|
@@ -32632,7 +32635,7 @@ function ScheduleScriptPickerCard({
|
|
|
32632
32635
|
}) {
|
|
32633
32636
|
const { control, setValue, watch } = _reacthookform.useFormContext.call(void 0, );
|
|
32634
32637
|
const selected = watch(`scripts.${index}`);
|
|
32635
|
-
const runParamsLocked = disabled || !_optionalChain([selected, 'optionalAccess',
|
|
32638
|
+
const runParamsLocked = disabled || !_optionalChain([selected, 'optionalAccess', _723 => _723.scriptId]);
|
|
32636
32639
|
const { itemRef, dragHandleProps, isDragging, dragAndDropEnabled } = useSortableItem();
|
|
32637
32640
|
const isMdUp = _chunkAQXKXZWBcjs.useContentMdUp.call(void 0, );
|
|
32638
32641
|
const handleScriptPick = (row) => {
|
|
@@ -32666,7 +32669,7 @@ function ScheduleScriptPickerCard({
|
|
|
32666
32669
|
type: "button",
|
|
32667
32670
|
...dragHandleProps,
|
|
32668
32671
|
disabled,
|
|
32669
|
-
"aria-label": `Reorder ${_optionalChain([selected, 'optionalAccess',
|
|
32672
|
+
"aria-label": `Reorder ${_optionalChain([selected, 'optionalAccess', _724 => _724.name]) || `script ${index + 1}`}`,
|
|
32670
32673
|
className: `shrink-0 ${isDragging ? "cursor-grabbing" : "cursor-grab"}`,
|
|
32671
32674
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJAWIFYB2cjs.DraggerIcon, { size: 24 })
|
|
32672
32675
|
}
|
|
@@ -32677,18 +32680,18 @@ function ScheduleScriptPickerCard({
|
|
|
32677
32680
|
name: `scripts.${index}.scriptId`,
|
|
32678
32681
|
control,
|
|
32679
32682
|
render: ({ fieldState }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: renderScriptSearch({
|
|
32680
|
-
scriptId: _nullishCoalesce(_optionalChain([selected, 'optionalAccess',
|
|
32681
|
-
name: _nullishCoalesce(_optionalChain([selected, 'optionalAccess',
|
|
32683
|
+
scriptId: _nullishCoalesce(_optionalChain([selected, 'optionalAccess', _725 => _725.scriptId]), () => ( "")),
|
|
32684
|
+
name: _nullishCoalesce(_optionalChain([selected, 'optionalAccess', _726 => _726.name]), () => ( "")),
|
|
32682
32685
|
supportedPlatforms,
|
|
32683
32686
|
onPick: handleScriptPick,
|
|
32684
32687
|
disabled,
|
|
32685
|
-
error: showErrors ? _optionalChain([fieldState, 'access',
|
|
32688
|
+
error: showErrors ? _optionalChain([fieldState, 'access', _727 => _727.error, 'optionalAccess', _728 => _728.message]) : void 0,
|
|
32686
32689
|
invalid: showErrors && !!fieldState.error
|
|
32687
32690
|
}) })
|
|
32688
32691
|
}
|
|
32689
32692
|
),
|
|
32690
32693
|
!dragAndDropEnabled && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
32691
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortableMoveButtons, { index, count, label: _optionalChain([selected, 'optionalAccess',
|
|
32694
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortableMoveButtons, { index, count, label: _optionalChain([selected, 'optionalAccess', _729 => _729.name]) || `script ${index + 1}` }),
|
|
32692
32695
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32693
32696
|
_chunkAHBTZ7DNcjs.Button,
|
|
32694
32697
|
{
|
|
@@ -32729,7 +32732,7 @@ function ScheduleScriptPickerCard({
|
|
|
32729
32732
|
onChange: (e) => field.onChange(e.target.value ? Number(e.target.value) : UNSET_TIMEOUT),
|
|
32730
32733
|
disabled: runParamsLocked,
|
|
32731
32734
|
endAdornment: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h6", children: "Seconds" }),
|
|
32732
|
-
error: showErrors ? _optionalChain([fieldState, 'access',
|
|
32735
|
+
error: showErrors ? _optionalChain([fieldState, 'access', _730 => _730.error, 'optionalAccess', _731 => _731.message]) : void 0,
|
|
32733
32736
|
invalid: showErrors && !!fieldState.error
|
|
32734
32737
|
}
|
|
32735
32738
|
)
|
|
@@ -32983,7 +32986,7 @@ function ScheduleTimingFields({
|
|
|
32983
32986
|
fromDate: minDate,
|
|
32984
32987
|
disabled: fieldsDisabled,
|
|
32985
32988
|
className: "w-full",
|
|
32986
|
-
error: _nullishCoalesce(dateError, () => ( (showErrors ? _optionalChain([fieldState, 'access',
|
|
32989
|
+
error: _nullishCoalesce(dateError, () => ( (showErrors ? _optionalChain([fieldState, 'access', _732 => _732.error, 'optionalAccess', _733 => _733.message]) : void 0))),
|
|
32987
32990
|
invalid: !!dateError || showErrors && !!fieldState.error
|
|
32988
32991
|
}
|
|
32989
32992
|
),
|
|
@@ -33015,24 +33018,24 @@ function ScheduleTimingFields({
|
|
|
33015
33018
|
// `''` reads as "no selection" to Radix, so the placeholder shows
|
|
33016
33019
|
// until a slot is picked — a date at midnight no longer
|
|
33017
33020
|
// masquerades as a chosen 12:00 AM.
|
|
33018
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33021
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIYWX4GOGcjs.Select, { value: field.value, onValueChange: field.onChange, disabled: fieldsDisabled, children: [
|
|
33019
33022
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33020
|
-
|
|
33023
|
+
_chunkIYWX4GOGcjs.SelectTrigger,
|
|
33021
33024
|
{
|
|
33022
33025
|
className: "w-full",
|
|
33023
|
-
error: _nullishCoalesce(pastTimeError, () => ( (showErrors ? _optionalChain([fieldState, 'access',
|
|
33026
|
+
error: _nullishCoalesce(pastTimeError, () => ( (showErrors ? _optionalChain([fieldState, 'access', _734 => _734.error, 'optionalAccess', _735 => _735.message]) : void 0))),
|
|
33024
33027
|
invalid: !!pastTimeError || showErrors && !!fieldState.error,
|
|
33025
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33028
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectValue, { placeholder: "Select time" })
|
|
33026
33029
|
}
|
|
33027
33030
|
),
|
|
33028
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33031
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectContent, { children: timeSlots.length === 0 ? (
|
|
33029
33032
|
// Deliberately NOT a `SelectItem` — there is nothing here
|
|
33030
33033
|
// to select, and a selectable row would put a bogus value
|
|
33031
33034
|
// in the form. It replaces a popup that opened blank; the
|
|
33032
33035
|
// Date field carries the same sentence for whoever never
|
|
33033
33036
|
// opens this one.
|
|
33034
33037
|
/* @__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 })
|
|
33035
|
-
) : timeSlots.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33038
|
+
) : timeSlots.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
33036
33039
|
] })
|
|
33037
33040
|
)
|
|
33038
33041
|
}
|
|
@@ -33046,14 +33049,14 @@ function ScheduleTimingFields({
|
|
|
33046
33049
|
name: "timeReference",
|
|
33047
33050
|
control,
|
|
33048
33051
|
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33049
|
-
|
|
33052
|
+
_chunkIYWX4GOGcjs.Select,
|
|
33050
33053
|
{
|
|
33051
33054
|
value: field.value,
|
|
33052
33055
|
onValueChange: (next) => handleTimeReferenceChange(field.onChange, next),
|
|
33053
33056
|
disabled: fieldsDisabled,
|
|
33054
33057
|
children: [
|
|
33055
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33056
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33058
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectTrigger, { className: "w-full", "aria-label": "Timezone", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectValue, {}) }),
|
|
33059
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectContent, { children: SCHEDULE_TIME_REFERENCE_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
33057
33060
|
]
|
|
33058
33061
|
}
|
|
33059
33062
|
)
|
|
@@ -33100,7 +33103,7 @@ function ScheduleTimingFields({
|
|
|
33100
33103
|
recheckReconnectWindow();
|
|
33101
33104
|
},
|
|
33102
33105
|
disabled: fieldsDisabled || !repeatEnabled,
|
|
33103
|
-
error: showErrors ? _optionalChain([fieldState, 'access',
|
|
33106
|
+
error: showErrors ? _optionalChain([fieldState, 'access', _736 => _736.error, 'optionalAccess', _737 => _737.message]) : void 0,
|
|
33104
33107
|
invalid: showErrors && !!fieldState.error
|
|
33105
33108
|
}
|
|
33106
33109
|
)
|
|
@@ -33113,7 +33116,7 @@ function ScheduleTimingFields({
|
|
|
33113
33116
|
name: "repeatUnit",
|
|
33114
33117
|
control,
|
|
33115
33118
|
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33116
|
-
|
|
33119
|
+
_chunkIYWX4GOGcjs.Select,
|
|
33117
33120
|
{
|
|
33118
33121
|
value: field.value,
|
|
33119
33122
|
onValueChange: (next) => {
|
|
@@ -33124,8 +33127,8 @@ function ScheduleTimingFields({
|
|
|
33124
33127
|
},
|
|
33125
33128
|
disabled: fieldsDisabled || !repeatEnabled,
|
|
33126
33129
|
children: [
|
|
33127
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33128
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33130
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectValue, {}) }),
|
|
33131
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectContent, { children: DURATION_UNIT_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
33129
33132
|
]
|
|
33130
33133
|
}
|
|
33131
33134
|
)
|
|
@@ -33144,7 +33147,7 @@ function ScheduleFormFields({
|
|
|
33144
33147
|
disabled = false,
|
|
33145
33148
|
renderScriptSearch,
|
|
33146
33149
|
timeReferenceGate = "off",
|
|
33147
|
-
platforms =
|
|
33150
|
+
platforms = _chunkIE3CPPHJcjs.OS_PLATFORMS,
|
|
33148
33151
|
comingSoonPlatforms = [],
|
|
33149
33152
|
getTimeSlots,
|
|
33150
33153
|
nameLayout = "stacked",
|
|
@@ -33185,7 +33188,7 @@ function ScheduleFormFields({
|
|
|
33185
33188
|
onChange: field.onChange,
|
|
33186
33189
|
disabled,
|
|
33187
33190
|
className: "w-full",
|
|
33188
|
-
error: showErrors ? _optionalChain([fieldState, 'access',
|
|
33191
|
+
error: showErrors ? _optionalChain([fieldState, 'access', _738 => _738.error, 'optionalAccess', _739 => _739.message]) : void 0,
|
|
33189
33192
|
invalid: showErrors && !!fieldState.error
|
|
33190
33193
|
}
|
|
33191
33194
|
)
|
|
@@ -33214,7 +33217,7 @@ function ScheduleFormFields({
|
|
|
33214
33217
|
platform.id
|
|
33215
33218
|
);
|
|
33216
33219
|
}) }),
|
|
33217
|
-
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,
|
|
33220
|
+
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, _chunkIYWX4GOGcjs.TruncateText, { variant: "h6", className: "text-ods-error", children: _nullishCoalesce(formState.errors.supportedPlatforms.message, () => ( "")) }) })
|
|
33218
33221
|
]
|
|
33219
33222
|
}
|
|
33220
33223
|
);
|
|
@@ -33290,7 +33293,7 @@ function ScheduleFormFields({
|
|
|
33290
33293
|
// src/components/features/scripts/schedule-form/schedule-script-search-field.tsx
|
|
33291
33294
|
|
|
33292
33295
|
function ScriptPlatformIcons({ platforms }) {
|
|
33293
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex shrink-0 items-center gap-0.5", children:
|
|
33296
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex shrink-0 items-center gap-0.5", children: _chunkIE3CPPHJcjs.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)) });
|
|
33294
33297
|
}
|
|
33295
33298
|
function ScheduleScriptSearchField({
|
|
33296
33299
|
scriptId,
|
|
@@ -33307,7 +33310,7 @@ function ScheduleScriptSearchField({
|
|
|
33307
33310
|
invalid = false
|
|
33308
33311
|
}) {
|
|
33309
33312
|
const handleBlur = (e) => {
|
|
33310
|
-
if (!e.currentTarget.contains(e.relatedTarget)) _optionalChain([onClose, 'optionalCall',
|
|
33313
|
+
if (!e.currentTarget.contains(e.relatedTarget)) _optionalChain([onClose, 'optionalCall', _740 => _740()]);
|
|
33311
33314
|
};
|
|
33312
33315
|
const options = scripts.map((s) => ({ label: s.name, value: s.id }));
|
|
33313
33316
|
if (scriptId && !options.some((o) => o.value === scriptId)) {
|
|
@@ -33316,7 +33319,7 @@ function ScheduleScriptSearchField({
|
|
|
33316
33319
|
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: [
|
|
33317
33320
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD47ZGOUcjs.Label, { className: "text-h4", children: "Select Script" }),
|
|
33318
33321
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33319
|
-
|
|
33322
|
+
_chunkIYWX4GOGcjs.Autocomplete,
|
|
33320
33323
|
{
|
|
33321
33324
|
options,
|
|
33322
33325
|
value: scriptId || null,
|
|
@@ -33331,8 +33334,8 @@ function ScheduleScriptSearchField({
|
|
|
33331
33334
|
error,
|
|
33332
33335
|
invalid,
|
|
33333
33336
|
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: [
|
|
33334
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33335
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScriptPlatformIcons, { platforms: _nullishCoalesce(_optionalChain([scripts, 'access',
|
|
33337
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { className: isSelected ? "text-ods-accent" : void 0, children: option.label }) }),
|
|
33338
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScriptPlatformIcons, { platforms: _nullishCoalesce(_optionalChain([scripts, 'access', _741 => _741.find, 'call', _742 => _742((s) => s.id === option.value), 'optionalAccess', _743 => _743.supportedPlatforms]), () => ( [])) })
|
|
33336
33339
|
] })
|
|
33337
33340
|
}
|
|
33338
33341
|
)
|
|
@@ -33363,7 +33366,7 @@ function KnowledgeBaseOpenButton({ href }) {
|
|
|
33363
33366
|
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,
|
|
33364
33367
|
_chunkAHBTZ7DNcjs.Button,
|
|
33365
33368
|
{
|
|
33366
|
-
onClick: loading ? void 0 :
|
|
33369
|
+
onClick: loading ? void 0 : _chunkIE3CPPHJcjs.openInNewTab.call(void 0, href),
|
|
33367
33370
|
disabled: loading,
|
|
33368
33371
|
variant: "outline",
|
|
33369
33372
|
size: "icon",
|
|
@@ -33382,10 +33385,10 @@ function KnowledgeBaseNameCell({ item }) {
|
|
|
33382
33385
|
/* @__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" }) }),
|
|
33383
33386
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
33384
33387
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
33385
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33388
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { children: item.name }) }),
|
|
33386
33389
|
tagStatus && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6UKH22NQcjs.Tag, { variant: KNOWLEDGE_BASE_STATUS_VARIANT[tagStatus], label: tagStatus, className: "shrink-0" })
|
|
33387
33390
|
] }),
|
|
33388
|
-
item.type === "ARTICLE" && (item.summary || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33391
|
+
item.type === "ARTICLE" && (item.summary || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(item.summary, () => ( "")) })
|
|
33389
33392
|
] })
|
|
33390
33393
|
] });
|
|
33391
33394
|
}
|
|
@@ -33507,7 +33510,7 @@ function KnowledgeBaseArticleView({
|
|
|
33507
33510
|
className = "px-[var(--spacing-system-l)] pb-[var(--spacing-system-l)]"
|
|
33508
33511
|
}) {
|
|
33509
33512
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33510
|
-
|
|
33513
|
+
_chunkIYWX4GOGcjs.PageLayout,
|
|
33511
33514
|
{
|
|
33512
33515
|
title,
|
|
33513
33516
|
backButton: onBack ? { label: "Back", onClick: onBack } : void 0,
|
|
@@ -33519,7 +33522,7 @@ function KnowledgeBaseArticleView({
|
|
|
33519
33522
|
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, _chunk6UKH22NQcjs.Tag, { label: tag.label, variant: "outline", className: "max-w-full" }, tag.id)) }),
|
|
33520
33523
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYBTORXFYcjs.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: [
|
|
33521
33524
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
33522
|
-
author.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33525
|
+
author.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTELXF5WDcjs.DeletedUserAvatar, { size: "md" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33523
33526
|
_chunk6UKH22NQcjs.SquareAvatar,
|
|
33524
33527
|
{
|
|
33525
33528
|
src: author.imageUrl,
|
|
@@ -33530,12 +33533,12 @@ function KnowledgeBaseArticleView({
|
|
|
33530
33533
|
}
|
|
33531
33534
|
),
|
|
33532
33535
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
33533
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33536
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { className: author.deleted ? "text-ods-error" : void 0, children: _nullishCoalesce(author.name, () => ( "Unknown")) }),
|
|
33534
33537
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Author" })
|
|
33535
33538
|
] })
|
|
33536
33539
|
] }),
|
|
33537
33540
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 min-w-0 flex-col justify-center", children: [
|
|
33538
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33541
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { children: updatedLabel }),
|
|
33539
33542
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Updated" })
|
|
33540
33543
|
] }),
|
|
33541
33544
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -33613,7 +33616,7 @@ function TicketStatusConfigList({
|
|
|
33613
33616
|
) }) }) }) })
|
|
33614
33617
|
);
|
|
33615
33618
|
}
|
|
33616
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortableList, { onReorder, getItemLabel, className: _chunk7JWFMAQBcjs.cn.call(void 0, LIST_CLASS, className), children: items.map((item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortableRow, { index, count: items.length, label: _optionalChain([getItemLabel, 'optionalCall',
|
|
33619
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortableList, { onReorder, getItemLabel, className: _chunk7JWFMAQBcjs.cn.call(void 0, LIST_CLASS, className), children: items.map((item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortableRow, { index, count: items.length, label: _optionalChain([getItemLabel, 'optionalCall', _744 => _744(index)]), children: (args) => renderRow(item, args) }, item.id)) });
|
|
33617
33620
|
}
|
|
33618
33621
|
function SortableRow({
|
|
33619
33622
|
index,
|
|
@@ -33708,13 +33711,13 @@ function ConversationCard({
|
|
|
33708
33711
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
33709
33712
|
CARD_FRAME_CLASS,
|
|
33710
33713
|
selection && "cursor-pointer transition-colors hover:border-ods-border-hover",
|
|
33711
|
-
_optionalChain([selection, 'optionalAccess',
|
|
33714
|
+
_optionalChain([selection, 'optionalAccess', _745 => _745.pressed]) && "border-ods-accent ring-1 ring-ods-accent",
|
|
33712
33715
|
className
|
|
33713
33716
|
),
|
|
33714
33717
|
style: tint,
|
|
33715
33718
|
onClick: selection && ((event) => {
|
|
33716
|
-
if (event.button !== 0 || _optionalChain([window, 'access',
|
|
33717
|
-
if (!
|
|
33719
|
+
if (event.button !== 0 || _optionalChain([window, 'access', _746 => _746.getSelection, 'call', _747 => _747(), 'optionalAccess', _748 => _748.toString, 'call', _749 => _749()])) return;
|
|
33720
|
+
if (!_chunkIE3CPPHJcjs.isOwnClick.call(void 0, event.target, event.currentTarget, { controls: true })) return;
|
|
33718
33721
|
selection.onToggle();
|
|
33719
33722
|
}),
|
|
33720
33723
|
children: [
|
|
@@ -33737,7 +33740,7 @@ function ConversationCard({
|
|
|
33737
33740
|
)
|
|
33738
33741
|
),
|
|
33739
33742
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33740
|
-
|
|
33743
|
+
_chunkIE3CPPHJcjs.ChatTurn,
|
|
33741
33744
|
{
|
|
33742
33745
|
avatar: requester.avatar,
|
|
33743
33746
|
name: requester.name,
|
|
@@ -33755,10 +33758,10 @@ function ConversationCard({
|
|
|
33755
33758
|
),
|
|
33756
33759
|
context && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CONTEXT_BLOCK_CLASS, children: [
|
|
33757
33760
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: CONTEXT_LABEL_CLASS, children: context.label }),
|
|
33758
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: CONTEXT_TEXT_CLASS, style: partLinesStyle(_optionalChain([lines, 'optionalAccess',
|
|
33761
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: CONTEXT_TEXT_CLASS, style: partLinesStyle(_optionalChain([lines, 'optionalAccess', _750 => _750.context])), children: context.text })
|
|
33759
33762
|
] }),
|
|
33760
33763
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33761
|
-
|
|
33764
|
+
_chunkIE3CPPHJcjs.ChatTurn,
|
|
33762
33765
|
{
|
|
33763
33766
|
avatar: responder.avatar,
|
|
33764
33767
|
name: responder.name,
|
|
@@ -33766,7 +33769,7 @@ function ConversationCard({
|
|
|
33766
33769
|
time: responder.time,
|
|
33767
33770
|
className: ANSWER_BLOCK_CLASS,
|
|
33768
33771
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: OUTCOME_ROW_CLASS, children: [
|
|
33769
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: OUTCOME_TEXT_CLASS, style: partLinesStyle(_optionalChain([lines, 'optionalAccess',
|
|
33772
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: OUTCOME_TEXT_CLASS, style: partLinesStyle(_optionalChain([lines, 'optionalAccess', _751 => _751.outcome])), children: outcome }),
|
|
33770
33773
|
outcomeAside,
|
|
33771
33774
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: OUTCOME_CHECK_CLASS, style: OUTCOME_CHECK_STYLE, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHFNBMV5Mcjs.CheckCircleIcon, { size: 16, className: "text-ods-success", "aria-hidden": true }) })
|
|
33772
33775
|
] })
|
|
@@ -33795,15 +33798,15 @@ function ConversationCardSkeleton({
|
|
|
33795
33798
|
announce = true,
|
|
33796
33799
|
className
|
|
33797
33800
|
}) {
|
|
33798
|
-
const contextLines = partLines(_optionalChain([lines, 'optionalAccess',
|
|
33799
|
-
const outcomeLines = partLines(_optionalChain([lines, 'optionalAccess',
|
|
33801
|
+
const contextLines = partLines(_optionalChain([lines, 'optionalAccess', _752 => _752.context]));
|
|
33802
|
+
const outcomeLines = partLines(_optionalChain([lines, 'optionalAccess', _753 => _753.outcome]));
|
|
33800
33803
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkLKQ33CMYcjs.LoadingRegion, { label, announce, className: _chunk7JWFMAQBcjs.cn.call(void 0, CARD_FRAME_CLASS, className), children: [
|
|
33801
33804
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33802
33805
|
RequesterRow,
|
|
33803
33806
|
{
|
|
33804
33807
|
selection: selection && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.InertWhileLoading, { className: "contents", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectionToggle, { pressed: selection.pressed }) }),
|
|
33805
33808
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33806
|
-
|
|
33809
|
+
_chunkIE3CPPHJcjs.ChatTurn,
|
|
33807
33810
|
{
|
|
33808
33811
|
loading: true,
|
|
33809
33812
|
name: "",
|
|
@@ -33827,7 +33830,7 @@ function ConversationCardSkeleton({
|
|
|
33827
33830
|
] })
|
|
33828
33831
|
] }),
|
|
33829
33832
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33830
|
-
|
|
33833
|
+
_chunkIE3CPPHJcjs.ChatTurn,
|
|
33831
33834
|
{
|
|
33832
33835
|
loading: true,
|
|
33833
33836
|
name: "",
|
|
@@ -33908,7 +33911,7 @@ function Highlights({ items, className }) {
|
|
|
33908
33911
|
if (items.length === 0) return null;
|
|
33909
33912
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "grid grid-cols-1 gap-2", className), children: items.slice(0, HIGHLIGHTS_LIMIT).map((text) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "li", { "data-loading-item": true, className: HIGHLIGHT_ROW_CLASS, children: [
|
|
33910
33913
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { size: HIGHLIGHT_ICON_PX, className: "shrink-0 text-ods-flamingo-cyan" }),
|
|
33911
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33914
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { variant: "h6", triggerClassName: "flex-1", children: text })
|
|
33912
33915
|
] }, text)) });
|
|
33913
33916
|
}
|
|
33914
33917
|
function Example({
|
|
@@ -33941,19 +33944,19 @@ function Example({
|
|
|
33941
33944
|
),
|
|
33942
33945
|
children: [
|
|
33943
33946
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 gap-2.5", children: [
|
|
33944
|
-
mark(_nullishCoalesce(_optionalChain([requester, 'optionalAccess',
|
|
33947
|
+
mark(_nullishCoalesce(_optionalChain([requester, 'optionalAccess', _754 => _754.mark]), () => ( requesterMark))),
|
|
33945
33948
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
33946
|
-
who(_nullishCoalesce(_optionalChain([requester, 'optionalAccess',
|
|
33947
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33949
|
+
who(_nullishCoalesce(_optionalChain([requester, 'optionalAccess', _755 => _755.name]), () => ( labels.requester)), _nullishCoalesce(_optionalChain([requester, 'optionalAccess', _756 => _756.note]), () => ( labels.requesterNote))),
|
|
33950
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { lines: 2, variant: "h4", className: "min-h-[2lh]", children: `\u201C${example.request}\u201D` })
|
|
33948
33951
|
] })
|
|
33949
33952
|
] }),
|
|
33950
33953
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 gap-2.5 border-t border-ods-border pt-3", children: [
|
|
33951
|
-
mark(_nullishCoalesce(_optionalChain([responder, 'optionalAccess',
|
|
33954
|
+
mark(_nullishCoalesce(_optionalChain([responder, 'optionalAccess', _757 => _757.mark]), () => ( responderMark))),
|
|
33952
33955
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
33953
|
-
who(_nullishCoalesce(_optionalChain([responder, 'optionalAccess',
|
|
33956
|
+
who(_nullishCoalesce(_optionalChain([responder, 'optionalAccess', _758 => _758.name]), () => ( labels.responder)), _nullishCoalesce(_optionalChain([responder, 'optionalAccess', _759 => _759.note]), () => ( labels.responderNote))),
|
|
33954
33957
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-start gap-2", children: [
|
|
33955
33958
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { size: 16, className: "mt-0.5 shrink-0 text-ods-flamingo-cyan" }),
|
|
33956
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33959
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { lines: 2, variant: "h6", tone: "secondary", className: "min-h-[2lh]", triggerClassName: "flex-1", children: example.outcome })
|
|
33957
33960
|
] })
|
|
33958
33961
|
] })
|
|
33959
33962
|
] })
|
|
@@ -33963,7 +33966,7 @@ function Example({
|
|
|
33963
33966
|
}
|
|
33964
33967
|
function ExampleSkeleton({ className }) {
|
|
33965
33968
|
const turn = (first) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex min-w-0 gap-2.5", !first && "border-t border-ods-border pt-3"), children: [
|
|
33966
|
-
first ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6UKH22NQcjs.SquareAvatar, { loading: true, variant: "round", sizePx: EXAMPLE_MARK_PX, className: "shrink-0" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33969
|
+
first ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6UKH22NQcjs.SquareAvatar, { loading: true, variant: "round", sizePx: EXAMPLE_MARK_PX, className: "shrink-0" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2X3N6MSRcjs.AgentAvatar, { loading: true, agent: "", size: EXAMPLE_MARK_PX }),
|
|
33967
33970
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
33968
33971
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-28" }),
|
|
33969
33972
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-h-[2lh] text-h4", children: [
|
|
@@ -34092,13 +34095,13 @@ function CapabilityExplorer({
|
|
|
34092
34095
|
item.iconName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, JOB_ICON_TILE_CLASS, "text-ods-flamingo-cyan"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYBTORXFYcjs.EntityIcon, { icon: { name: item.iconName }, size: 18 }) }),
|
|
34093
34096
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
34094
34097
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "h3", { className: "flex min-w-0 items-center gap-2 text-ods-text-primary text-h4", children: [
|
|
34095
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34098
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { as: "span", variant: "h4", triggerClassName: "flex-1", children: item.title }),
|
|
34096
34099
|
item.badge
|
|
34097
34100
|
] }),
|
|
34098
|
-
item.caption && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34101
|
+
item.caption && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { variant: "h6", tone: "secondary", children: item.caption })
|
|
34099
34102
|
] })
|
|
34100
34103
|
] }),
|
|
34101
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34104
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { lines: 3, variant: "h6", tone: "secondary", className: "min-h-[3lh]", children: item.intro }),
|
|
34102
34105
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0 overflow-hidden rounded-lg border border-ods-border", children: renderScreen(item, { compact: true }) }),
|
|
34103
34106
|
item.example && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34104
34107
|
Example,
|
|
@@ -34127,7 +34130,7 @@ function CapabilityExplorer({
|
|
|
34127
34130
|
if (next === null) return;
|
|
34128
34131
|
event.preventDefault();
|
|
34129
34132
|
onActiveChange(items[next].id);
|
|
34130
|
-
_optionalChain([listRef, 'access',
|
|
34133
|
+
_optionalChain([listRef, 'access', _760 => _760.current, 'optionalAccess', _761 => _761.querySelectorAll, 'call', _762 => _762('[role="tab"]'), 'access', _763 => _763[next], 'optionalAccess', _764 => _764.focus, 'call', _765 => _765()]);
|
|
34131
34134
|
};
|
|
34132
34135
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
34133
34136
|
"div",
|
|
@@ -34215,8 +34218,8 @@ function CapabilityExplorer({
|
|
|
34215
34218
|
),
|
|
34216
34219
|
children: [
|
|
34217
34220
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: PANEL_INTRO_CLASS, children: [
|
|
34218
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34219
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34221
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { lines: 2, variant: "h2", className: "mb-2", children: active.title }),
|
|
34222
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYWX4GOGcjs.TruncateText, { lines: 3, variant: "h4", tone: "secondary", className: "min-h-[3lh]", children: active.intro }),
|
|
34220
34223
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Highlights, { items: _nullishCoalesce(active.highlights, () => ( [])), className: "mt-auto" })
|
|
34221
34224
|
] }),
|
|
34222
34225
|
active.example && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|