@flamingo-stack/openframe-frontend-core 0.0.829 → 0.0.830
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-DU6AF77X.cjs → chunk-2BGLALP5.cjs} +14 -14
- package/dist/{chunk-MFYSV7DE.cjs → chunk-56EP4QM2.cjs} +24 -24
- package/dist/{chunk-IHRMX3X6.cjs → chunk-5KSPG3TV.cjs} +357 -357
- package/dist/{chunk-UO6F6LLI.cjs → chunk-5LED4QHZ.cjs} +508 -451
- package/dist/{chunk-IMDYB77M.cjs → chunk-CAGQAMJ6.cjs} +21 -21
- package/dist/{chunk-4DUVTJ6A.cjs → chunk-D2LXFMZI.cjs} +22 -22
- package/dist/{chunk-LNXRTVOY.cjs → chunk-DUGOOTER.cjs} +11 -11
- package/dist/{chunk-R3PKAIX3.cjs → chunk-E6W4YDPS.cjs} +2 -2
- package/dist/{chunk-AH4YWTWZ.cjs → chunk-FFFN4IY2.cjs} +5 -5
- package/dist/{chunk-THPAGFT6.cjs → chunk-HYCMMECU.cjs} +44 -44
- package/dist/{chunk-UE5ZBCJ4.cjs → chunk-HYGWRUEM.cjs} +3 -3
- package/dist/{chunk-ZJXLNIWC.cjs → chunk-M75723HD.cjs} +8 -8
- package/dist/{chunk-IBQ3CSKL.cjs → chunk-PUXYAHH3.cjs} +3 -3
- package/dist/{chunk-3B6ZE4EZ.cjs → chunk-QTLWU6FY.cjs} +5 -5
- package/dist/{chunk-HMC2IWV4.cjs → chunk-RRPID7Z7.cjs} +6 -6
- package/dist/{chunk-6WNSZ5XP.cjs → chunk-SAW7V7CU.cjs} +13 -13
- package/dist/{chunk-4ZIKDOPY.cjs → chunk-TUMSVFVS.cjs} +4 -4
- package/dist/{chunk-DWSU35QQ.cjs → chunk-ULF4ZOUM.cjs} +57 -57
- package/dist/{chunk-IFLGIBFZ.cjs → chunk-WCCE4WF3.cjs} +50 -50
- package/dist/{chunk-7PZQ7SHB.cjs → chunk-WWDNLMB7.cjs} +16 -16
- package/dist/{chunk-PRZAEPGG.cjs → chunk-WZYBUJJG.cjs} +41 -41
- package/dist/{chunk-YHQDB5QJ.cjs → chunk-X425BGXS.cjs} +2 -2
- package/dist/{chunk-BIG3O33P.cjs → chunk-YJZ7R3W5.cjs} +28 -2
- package/dist/{cloud-tenants-YVCSVVIS.cjs → cloud-tenants-4KQQPXPM.cjs} +9 -9
- package/dist/components/case-studies/index.cjs +21 -21
- package/dist/components/chat/embeddable-chat.d.ts +3 -3
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +21 -14
- package/dist/components/chat/guide-welcome.d.ts +5 -16
- package/dist/components/chat/guide-welcome.d.ts.map +1 -1
- package/dist/components/chat/guide-welcome.js +4 -29
- package/dist/components/chat/index.cjs +9 -5
- package/dist/components/chat/mingo-quick-action-wall.d.ts +42 -16
- package/dist/components/chat/mingo-quick-action-wall.d.ts.map +1 -1
- package/dist/components/chat/mingo-quick-action-wall.js +105 -19
- package/dist/components/chat/mingo-welcome.d.ts +6 -13
- package/dist/components/chat/mingo-welcome.d.ts.map +1 -1
- package/dist/components/chat/mingo-welcome.js +5 -9
- package/dist/components/chat/quick-action-chip.d.ts +8 -2
- package/dist/components/chat/quick-action-chip.d.ts.map +1 -1
- package/dist/components/chat/quick-action-chip.js +18 -8
- package/dist/components/contact/index.cjs +10 -10
- package/dist/components/docs/index.cjs +13 -13
- package/dist/components/embeds/index.cjs +10 -10
- package/dist/components/faq/index.cjs +11 -11
- package/dist/components/features/index.cjs +9 -9
- package/dist/components/help-center-pages/index.cjs +71 -71
- package/dist/components/index.cjs +47 -43
- package/dist/components/meeting-scheduler/index.cjs +41 -41
- package/dist/components/navigation/index.cjs +12 -12
- package/dist/components/onboarding-guides/index.cjs +11 -11
- package/dist/components/product-demo/index.cjs +20 -20
- package/dist/components/tickets/index.cjs +14 -14
- package/dist/components/ui/actions-menu.d.ts.map +1 -1
- package/dist/components/ui/actions-menu.js +27 -1
- package/dist/components/ui/index.cjs +13 -9
- package/dist/{devices-AW6BERJF.cjs → devices-H6C4NMIY.cjs} +10 -10
- package/dist/{embeddable-chat-ZJIOMMSA.cjs → embeddable-chat-KUESE7P6.cjs} +104 -97
- package/dist/index.cjs +17 -13
- package/dist/{knowledge-PEOXTIVS.cjs → knowledge-O6IBO5Y5.cjs} +10 -10
- package/dist/{logs-CYA7H4KM.cjs → logs-Y2UCF24Z.cjs} +16 -16
- package/dist/{policies-M6QSFL5G.cjs → policies-J6O3RLJT.cjs} +13 -13
- package/dist/{remote-session-QGFG5WAL.cjs → remote-session-RVTFWSU4.cjs} +5 -5
- package/dist/{scripts-Y46ECDDP.cjs → scripts-N67MM4T2.cjs} +16 -16
- package/dist/{software-update-OTC2DGQZ.cjs → software-update-HB7F6KNG.cjs} +13 -13
- package/dist/{tickets-board-KCH6ITUV.cjs → tickets-board-2K3PBCNW.cjs} +8 -8
- package/package.json +1 -1
- package/src/components/chat/embeddable-chat.tsx +29 -45
- package/src/components/chat/guide-welcome.tsx +12 -57
- package/src/components/chat/mingo-quick-action-wall.tsx +166 -31
- package/src/components/chat/mingo-welcome.tsx +16 -35
- package/src/components/chat/quick-action-chip.tsx +32 -8
- package/src/components/ui/actions-menu.tsx +35 -1
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunk2BGLALP5cjs = require('./chunk-2BGLALP5.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkWWDNLMB7cjs = require('./chunk-WWDNLMB7.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
@@ -36,7 +36,7 @@ var _chunk7PZQ7SHBcjs = require('./chunk-7PZQ7SHB.cjs');
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _chunkX425BGXScjs = require('./chunk-X425BGXS.cjs');
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
var _chunkDEY6XXGOcjs = require('./chunk-DEY6XXGO.cjs');
|
|
@@ -101,7 +101,7 @@ var _chunk5SZ4ILU3cjs = require('./chunk-5SZ4ILU3.cjs');
|
|
|
101
101
|
|
|
102
102
|
|
|
103
103
|
|
|
104
|
-
var
|
|
104
|
+
var _chunk56EP4QM2cjs = require('./chunk-56EP4QM2.cjs');
|
|
105
105
|
|
|
106
106
|
|
|
107
107
|
|
|
@@ -128,7 +128,7 @@ var _chunkOT6P57ZScjs = require('./chunk-OT6P57ZS.cjs');
|
|
|
128
128
|
|
|
129
129
|
|
|
130
130
|
|
|
131
|
-
var
|
|
131
|
+
var _chunk5LED4QHZcjs = require('./chunk-5LED4QHZ.cjs');
|
|
132
132
|
|
|
133
133
|
|
|
134
134
|
|
|
@@ -158,14 +158,14 @@ var _chunkIBD2FPSXcjs = require('./chunk-IBD2FPSX.cjs');
|
|
|
158
158
|
|
|
159
159
|
|
|
160
160
|
|
|
161
|
-
var
|
|
161
|
+
var _chunkQTLWU6FYcjs = require('./chunk-QTLWU6FY.cjs');
|
|
162
162
|
|
|
163
163
|
|
|
164
164
|
|
|
165
165
|
|
|
166
166
|
|
|
167
167
|
|
|
168
|
-
var
|
|
168
|
+
var _chunkYJZ7R3W5cjs = require('./chunk-YJZ7R3W5.cjs');
|
|
169
169
|
|
|
170
170
|
|
|
171
171
|
var _chunkLNUFH4E2cjs = require('./chunk-LNUFH4E2.cjs');
|
|
@@ -714,7 +714,7 @@ function ThemeProvider({ children, ...overrides }) {
|
|
|
714
714
|
var useTheme = _nextthemes.useTheme;
|
|
715
715
|
function useThemeToggle() {
|
|
716
716
|
const { resolvedTheme, theme, setTheme } = useTheme();
|
|
717
|
-
const mounted =
|
|
717
|
+
const mounted = _chunk5LED4QHZcjs.useIsHydrated.call(void 0, );
|
|
718
718
|
const active = mounted ? resolvedTheme === "light" || theme === "light" ? "light" : "dark" : DEFAULT_THEME;
|
|
719
719
|
const setOdsTheme = _react.useCallback.call(void 0, (next) => setTheme(next), [setTheme]);
|
|
720
720
|
const toggle = _react.useCallback.call(void 0, () => setTheme(active === "dark" ? "light" : "dark"), [active, setTheme]);
|
|
@@ -923,7 +923,7 @@ function TimezoneSelect({
|
|
|
923
923
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
924
924
|
const options = _react.useMemo.call(void 0, () => timezoneOptions(value), [value]);
|
|
925
925
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
926
|
-
|
|
926
|
+
_chunk2BGLALP5cjs.Autocomplete,
|
|
927
927
|
{
|
|
928
928
|
className,
|
|
929
929
|
fieldLoading: loading,
|
|
@@ -1739,20 +1739,20 @@ function DatePickerInput(props) {
|
|
|
1739
1739
|
) })
|
|
1740
1740
|
] }),
|
|
1741
1741
|
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1", children: [
|
|
1742
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1743
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1744
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1742
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2BGLALP5cjs.Select, { value: hour, onValueChange: handleHourChange, disabled, children: [
|
|
1743
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectTrigger, { className: _chunk63A4GZMBcjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectValue, { placeholder: "HH" }) }),
|
|
1744
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectContent, { children: hourOptions.map((h) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: h, children: h }, h)) })
|
|
1745
1745
|
] }),
|
|
1746
1746
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h4", children: ":" }),
|
|
1747
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1748
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1749
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1747
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2BGLALP5cjs.Select, { value: minute, onValueChange: handleMinuteChange, disabled, children: [
|
|
1748
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectTrigger, { className: _chunk63A4GZMBcjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectValue, { placeholder: "MM" }) }),
|
|
1749
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectContent, { children: minuteOptions.map((m) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: m, children: m }, m)) })
|
|
1750
1750
|
] }),
|
|
1751
|
-
!use24HourFormat && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1752
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1753
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1754
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1755
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1751
|
+
!use24HourFormat && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2BGLALP5cjs.Select, { value: period, onValueChange: (val) => handlePeriodChange(val), disabled, children: [
|
|
1752
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectTrigger, { className: _chunk63A4GZMBcjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectValue, { placeholder: "AM" }) }),
|
|
1753
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2BGLALP5cjs.SelectContent, { children: [
|
|
1754
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: "AM", children: "AM" }),
|
|
1755
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: "PM", children: "PM" })
|
|
1756
1756
|
] })
|
|
1757
1757
|
] })
|
|
1758
1758
|
] })
|
|
@@ -1893,9 +1893,9 @@ function DatePickerInputSimple(props) {
|
|
|
1893
1893
|
}
|
|
1894
1894
|
) })
|
|
1895
1895
|
] }),
|
|
1896
|
-
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1897
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1898
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1896
|
+
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2BGLALP5cjs.Select, { value: timeValue, onValueChange: handleTimeChange, disabled, children: [
|
|
1897
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectTrigger, { className: _chunk63A4GZMBcjs.cn.call(void 0, timeSelectTriggerStyles, "flex-1"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectValue, { placeholder: "Select time", children: timeDisplayLabel || "Select time" }) }),
|
|
1898
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectContent, { children: timeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
1899
1899
|
] })
|
|
1900
1900
|
] });
|
|
1901
1901
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWF6TNZ3cjs.FieldWrapper, { label, error, errorSlot: "error" in props, className, children: content });
|
|
@@ -1914,14 +1914,14 @@ function DateFilterPanel({
|
|
|
1914
1914
|
className
|
|
1915
1915
|
}) {
|
|
1916
1916
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex flex-col gap-4", className), children: [
|
|
1917
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1918
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1917
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2BGLALP5cjs.Select, { value: sort, onValueChange: (value) => onSortChange(value), children: [
|
|
1918
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.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: [
|
|
1919
1919
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ArrowUpDown, { className: "size-6 shrink-0 text-ods-text-secondary" }),
|
|
1920
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1920
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectValue, {}) })
|
|
1921
1921
|
] }) }),
|
|
1922
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1923
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1924
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1922
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2BGLALP5cjs.SelectContent, { children: [
|
|
1923
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: "asc", children: ascLabel }),
|
|
1924
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: "desc", children: descLabel })
|
|
1925
1925
|
] })
|
|
1926
1926
|
] }),
|
|
1927
1927
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2201,7 +2201,7 @@ function Value({ value, depth }) {
|
|
|
2201
2201
|
}
|
|
2202
2202
|
if (typeof value === "string") {
|
|
2203
2203
|
if (ISO_DATE.test(value)) {
|
|
2204
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: value, className: "text-ods-text-secondary", children:
|
|
2204
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: value, className: "text-ods-text-secondary", children: _chunkQTLWU6FYcjs.formatRelativeTime.call(void 0, value) });
|
|
2205
2205
|
}
|
|
2206
2206
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-pre-wrap text-ods-text-primary", children: value });
|
|
2207
2207
|
}
|
|
@@ -2531,8 +2531,8 @@ function SearchableSelect(allProps) {
|
|
|
2531
2531
|
const keyboardPadding = _chunk7Z536SPRcjs.useKeyboardCollisionPadding.call(void 0, );
|
|
2532
2532
|
const portalContainer = _chunkS3QXLD4Xcjs.usePortalContainer.call(void 0, );
|
|
2533
2533
|
if (!isOpen && search !== "") setSearch("");
|
|
2534
|
-
const listedOptions =
|
|
2535
|
-
const rememberedSelection =
|
|
2534
|
+
const listedOptions = _chunk2BGLALP5cjs.useSettledOptions.call(void 0, options, isLoading, serverSearch);
|
|
2535
|
+
const rememberedSelection = _chunk2BGLALP5cjs.useRememberedSelection.call(void 0, listedOptions, value != null ? [value] : [], serverSearch);
|
|
2536
2536
|
const filtered = _react.useMemo.call(void 0, () => {
|
|
2537
2537
|
if (serverSearch) return listedOptions;
|
|
2538
2538
|
const q = search.trim().toLowerCase();
|
|
@@ -2745,7 +2745,7 @@ function CompactAssigneeDropdown({
|
|
|
2745
2745
|
onClick: handleTriggerClick,
|
|
2746
2746
|
"aria-label": "Change assignee",
|
|
2747
2747
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "w-auto shrink-0", className),
|
|
2748
|
-
children: currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2748
|
+
children: currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWDNLMB7cjs.DeletedUserAvatar, { size: "sm", accessibleLabel: `Deleted user: ${currentAssignee.name || currentAssignee.id}` }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2749
2749
|
_chunkGRHF5SWLcjs.SquareAvatar,
|
|
2750
2750
|
{
|
|
2751
2751
|
src: currentAssignee.avatarSrc,
|
|
@@ -2816,7 +2816,7 @@ function DefaultAssigneeDropdown({
|
|
|
2816
2816
|
if (isEditing) {
|
|
2817
2817
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "min-w-0", className), children: [
|
|
2818
2818
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2819
|
-
|
|
2819
|
+
_chunk2BGLALP5cjs.Autocomplete,
|
|
2820
2820
|
{
|
|
2821
2821
|
options,
|
|
2822
2822
|
value: _nullishCoalesce(_optionalChain([currentAssignee, 'optionalAccess', _45 => _45.id]), () => ( null)),
|
|
@@ -2830,7 +2830,7 @@ function DefaultAssigneeDropdown({
|
|
|
2830
2830
|
selectedOptions,
|
|
2831
2831
|
showChevron: false,
|
|
2832
2832
|
startAdornment: hasAssignee ? currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2833
|
-
|
|
2833
|
+
_chunkWWDNLMB7cjs.DeletedUserAvatar,
|
|
2834
2834
|
{
|
|
2835
2835
|
size: "sm",
|
|
2836
2836
|
className: "h-6 w-6",
|
|
@@ -2856,7 +2856,7 @@ function DefaultAssigneeDropdown({
|
|
|
2856
2856
|
if (hasAssignee) {
|
|
2857
2857
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", className), children: [
|
|
2858
2858
|
currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2859
|
-
|
|
2859
|
+
_chunkWWDNLMB7cjs.DeletedUserAvatar,
|
|
2860
2860
|
{
|
|
2861
2861
|
size: "md",
|
|
2862
2862
|
accessibleLabel: `Deleted user: ${currentAssignee.name || currentAssignee.id}`
|
|
@@ -2967,7 +2967,7 @@ function RowValue({ value }) {
|
|
|
2967
2967
|
}
|
|
2968
2968
|
case "status": {
|
|
2969
2969
|
const { type: _type, ...props } = value;
|
|
2970
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2970
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.TicketStatusTag, { ...props });
|
|
2971
2971
|
}
|
|
2972
2972
|
case "custom":
|
|
2973
2973
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CustomValue, { content: value.content });
|
|
@@ -3067,7 +3067,7 @@ function MediaTypeSelector({
|
|
|
3067
3067
|
// changed) and cost an extra render pass on every change to say what the
|
|
3068
3068
|
// prop already said.
|
|
3069
3069
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3070
|
-
|
|
3070
|
+
_chunk2BGLALP5cjs.Select,
|
|
3071
3071
|
{
|
|
3072
3072
|
value: value || void 0,
|
|
3073
3073
|
onValueChange: (next) => {
|
|
@@ -3077,8 +3077,8 @@ function MediaTypeSelector({
|
|
|
3077
3077
|
disabled,
|
|
3078
3078
|
defaultValue: value,
|
|
3079
3079
|
children: [
|
|
3080
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3081
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3080
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectTrigger, { className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectValue, { placeholder }) }),
|
|
3081
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectContent, { children: mediaTypeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: option.value, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
3082
3082
|
option.icon,
|
|
3083
3083
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: option.label })
|
|
3084
3084
|
] }) }, option.value)) })
|
|
@@ -4561,14 +4561,14 @@ function AdminFormDrawer({
|
|
|
4561
4561
|
else onClose();
|
|
4562
4562
|
};
|
|
4563
4563
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4564
|
-
|
|
4564
|
+
_chunkX425BGXScjs.Drawer,
|
|
4565
4565
|
{
|
|
4566
4566
|
open: isOpen,
|
|
4567
4567
|
onOpenChange: (open) => {
|
|
4568
4568
|
if (!open) requestClose();
|
|
4569
4569
|
},
|
|
4570
4570
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4571
|
-
|
|
4571
|
+
_chunkX425BGXScjs.DrawerContent,
|
|
4572
4572
|
{
|
|
4573
4573
|
side: "right",
|
|
4574
4574
|
resizable: true,
|
|
@@ -4577,15 +4577,15 @@ function AdminFormDrawer({
|
|
|
4577
4577
|
storageKey,
|
|
4578
4578
|
panelClassName: "max-md:w-[calc(100vw-1rem)]",
|
|
4579
4579
|
children: [
|
|
4580
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4581
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4582
|
-
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4580
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkX425BGXScjs.DrawerHeader, { children: [
|
|
4581
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX425BGXScjs.DrawerTitle, { children: title }),
|
|
4582
|
+
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX425BGXScjs.DrawerDescription, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: subtitle }) })
|
|
4583
4583
|
] }),
|
|
4584
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4584
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX425BGXScjs.DrawerBody, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4585
4585
|
"form",
|
|
4586
4586
|
{
|
|
4587
4587
|
id: formId,
|
|
4588
|
-
...
|
|
4588
|
+
..._chunk56EP4QM2cjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
4589
4589
|
className: "flex flex-col gap-[var(--spacing-system-lf)]",
|
|
4590
4590
|
onSubmit: (e) => {
|
|
4591
4591
|
e.preventDefault();
|
|
@@ -4692,7 +4692,7 @@ function AdminFormModal({
|
|
|
4692
4692
|
"form",
|
|
4693
4693
|
{
|
|
4694
4694
|
id: formId,
|
|
4695
|
-
...
|
|
4695
|
+
..._chunk56EP4QM2cjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
4696
4696
|
className: "flex min-h-0 flex-1 flex-col",
|
|
4697
4697
|
onSubmit: (e) => {
|
|
4698
4698
|
e.preventDefault();
|
|
@@ -6063,7 +6063,7 @@ function EmbedViewerFrame({
|
|
|
6063
6063
|
const controllerRef = _react.useRef.call(void 0, null);
|
|
6064
6064
|
_react.useEffect.call(void 0, () => {
|
|
6065
6065
|
if (!fullscreenControl) return void 0;
|
|
6066
|
-
const controller = new (0,
|
|
6066
|
+
const controller = new (0, _chunk56EP4QM2cjs.FullscreenSwitchController)({
|
|
6067
6067
|
target: () => frameRef.current,
|
|
6068
6068
|
onFullscreenChange: setIsFullscreen
|
|
6069
6069
|
});
|
|
@@ -6727,12 +6727,12 @@ var OGLinkPreview = ({
|
|
|
6727
6727
|
children: [
|
|
6728
6728
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TILE_SOURCE_ROW_CLASS, children: [
|
|
6729
6729
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Favicon, { src: `https://www.google.com/s2/favicons?domain=${domain}&sz=32`, size: "w-4 h-4" }),
|
|
6730
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6730
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { as: "span", variant: "h6", className: "text-current", children: name }),
|
|
6731
6731
|
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 })
|
|
6732
6732
|
] }),
|
|
6733
6733
|
kicker != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-hidden text-ods-accent text-h5", style: lineClamp(1), children: kicker }),
|
|
6734
6734
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6735
|
-
|
|
6735
|
+
_chunk2BGLALP5cjs.TruncateText,
|
|
6736
6736
|
{
|
|
6737
6737
|
lines: 2,
|
|
6738
6738
|
variant: "h3",
|
|
@@ -6741,7 +6741,7 @@ var OGLinkPreview = ({
|
|
|
6741
6741
|
children: curatedTitle || domainToTitle(domain)
|
|
6742
6742
|
}
|
|
6743
6743
|
),
|
|
6744
|
-
curatedDescription && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6744
|
+
curatedDescription && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { lines: 2, variant: "h6", tone: "secondary", children: curatedDescription })
|
|
6745
6745
|
]
|
|
6746
6746
|
}
|
|
6747
6747
|
);
|
|
@@ -6887,8 +6887,8 @@ var OGLinkPreview = ({
|
|
|
6887
6887
|
children: [
|
|
6888
6888
|
/* @__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 }) }),
|
|
6889
6889
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
6890
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6891
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6890
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { className: "font-semibold transition-colors group-hover:text-ods-accent", children: title }),
|
|
6891
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { tone: "secondary", children: description })
|
|
6892
6892
|
] }),
|
|
6893
6893
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExternalLinkIcon, {})
|
|
6894
6894
|
]
|
|
@@ -6935,7 +6935,7 @@ var OGLinkPreview = ({
|
|
|
6935
6935
|
),
|
|
6936
6936
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
6937
6937
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6938
|
-
|
|
6938
|
+
_chunk2BGLALP5cjs.TruncateText,
|
|
6939
6939
|
{
|
|
6940
6940
|
lines: 2,
|
|
6941
6941
|
className: "min-h-[calc(var(--font-line-space-h4-body)*2)] font-semibold transition-colors group-hover:text-ods-accent",
|
|
@@ -6944,7 +6944,7 @@ var OGLinkPreview = ({
|
|
|
6944
6944
|
}
|
|
6945
6945
|
),
|
|
6946
6946
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6947
|
-
|
|
6947
|
+
_chunk2BGLALP5cjs.TruncateText,
|
|
6948
6948
|
{
|
|
6949
6949
|
lines: 2,
|
|
6950
6950
|
tone: "secondary",
|
|
@@ -6954,9 +6954,9 @@ var OGLinkPreview = ({
|
|
|
6954
6954
|
}
|
|
6955
6955
|
),
|
|
6956
6956
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-2 text-ods-text-secondary text-h6", children: [
|
|
6957
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6957
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { as: "span", variant: "h6", className: "text-current", children: effectiveData.siteName }),
|
|
6958
6958
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "\u2022" }),
|
|
6959
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6959
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { as: "span", variant: "h6", className: "text-current", children: ogDomain }),
|
|
6960
6960
|
meta
|
|
6961
6961
|
] })
|
|
6962
6962
|
] })
|
|
@@ -7312,7 +7312,7 @@ var formatTimeAgo = (timestamp) => {
|
|
|
7312
7312
|
return `${Math.floor(diffSeconds / 86400)}d ago`;
|
|
7313
7313
|
};
|
|
7314
7314
|
function RedditEmbedClient({ url, maxWidth = 700, rel }) {
|
|
7315
|
-
const postLinkRel =
|
|
7315
|
+
const postLinkRel = _chunk5LED4QHZcjs.renderedLinkRel.call(void 0, rel, true);
|
|
7316
7316
|
const { redditProxyUrl } = useRichMarkdownRuntime();
|
|
7317
7317
|
const [redditData, setRedditData] = _react.useState.call(void 0, null);
|
|
7318
7318
|
const [loading, setLoading] = _react.useState.call(void 0, true);
|
|
@@ -7644,7 +7644,7 @@ var UserIcon3 = () => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "svg", { wid
|
|
|
7644
7644
|
] });
|
|
7645
7645
|
var XIcon = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2TEMEXDTcjs.XLogoIcon, { className: "h-5 w-5", color: "currentColor" });
|
|
7646
7646
|
function TwitterEmbedClient({ url, tweetId, maxWidth = 700, rel }) {
|
|
7647
|
-
const postLinkRel =
|
|
7647
|
+
const postLinkRel = _chunk5LED4QHZcjs.renderedLinkRel.call(void 0, rel, true);
|
|
7648
7648
|
const { twitterProxyUrl } = useRichMarkdownRuntime();
|
|
7649
7649
|
const [tweetData, setTweetData] = _react.useState.call(void 0, null);
|
|
7650
7650
|
const [fetchLoading, setLoading] = _react.useState.call(void 0, true);
|
|
@@ -7846,7 +7846,7 @@ function buildRichEmbedOverrides({
|
|
|
7846
7846
|
ogEndpointPath,
|
|
7847
7847
|
textSizes
|
|
7848
7848
|
}) {
|
|
7849
|
-
const standard =
|
|
7849
|
+
const standard = _chunk5LED4QHZcjs.buildStandardLeafRenderers.call(void 0, { textSizes });
|
|
7850
7850
|
return {
|
|
7851
7851
|
// Fence-language embeds (```youtube-embed etc.); everything else
|
|
7852
7852
|
// (mermaid, highlighted blocks, inline code) falls through to `standard`.
|
|
@@ -7982,14 +7982,14 @@ function buildRichEmbedOverrides({
|
|
|
7982
7982
|
// rich-markdown runtime (Supabase optimization on the hub, identity
|
|
7983
7983
|
// elsewhere). Guard against empty `![]()`.
|
|
7984
7984
|
img: ({ src, alt }) => {
|
|
7985
|
-
if (!
|
|
7985
|
+
if (!_chunk5LED4QHZcjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7986
7986
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownImage, { src: src.trim(), alt });
|
|
7987
7987
|
},
|
|
7988
7988
|
// Raw <iframe> tags in stored content (a pasted YouTube embed). A YouTube one becomes the same click-to-play
|
|
7989
7989
|
// facade as the `youtube-embed` fence: the raw iframe loaded YouTube's whole player (about 470 KB of script) with
|
|
7990
7990
|
// the page, on every post that carried one (CU-17tkuw5xp4q). Any other iframe loads when it nears the screen.
|
|
7991
7991
|
iframe: ({ node: _node, src, ...rest }) => {
|
|
7992
|
-
if (!
|
|
7992
|
+
if (!_chunk5LED4QHZcjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7993
7993
|
const url = src.trim();
|
|
7994
7994
|
if (_chunk6GPMVHJNcjs.extractYouTubeId.call(void 0, url)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6GPMVHJNcjs.Video, { kind: "youtube", url });
|
|
7995
7995
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "iframe", { ...rest, src: url, loading: "lazy" });
|
|
@@ -7997,7 +7997,7 @@ function buildRichEmbedOverrides({
|
|
|
7997
7997
|
// Raw <video> tags in stored content (blog publisher injection) route
|
|
7998
7998
|
// to the <Video> SSOT (MuxPlayer) so HLS manifests play everywhere.
|
|
7999
7999
|
video: ({ src, poster, className }) => {
|
|
8000
|
-
if (!
|
|
8000
|
+
if (!_chunk5LED4QHZcjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
8001
8001
|
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, _chunk6GPMVHJNcjs.Video, { kind: "file", url: src.trim(), poster: typeof poster === "string" ? poster : void 0 }) }) });
|
|
8002
8002
|
}
|
|
8003
8003
|
};
|
|
@@ -8183,13 +8183,13 @@ var RichMarkdownInner = ({
|
|
|
8183
8183
|
},
|
|
8184
8184
|
[resolveLinkEndpointUrl, resolveSource]
|
|
8185
8185
|
);
|
|
8186
|
-
const textSizes = _react.useMemo.call(void 0, () =>
|
|
8186
|
+
const textSizes = _react.useMemo.call(void 0, () => _chunk5LED4QHZcjs.resolveTextSizeConfig.call(void 0, "article"), []);
|
|
8187
8187
|
const componentOverrides = _react.useMemo.call(void 0,
|
|
8188
8188
|
() => buildRichEmbedOverrides({ ogApiBaseUrl, ogEndpointPath, textSizes }),
|
|
8189
8189
|
[ogApiBaseUrl, ogEndpointPath, textSizes]
|
|
8190
8190
|
);
|
|
8191
8191
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8192
|
-
|
|
8192
|
+
_chunk5LED4QHZcjs.MarkdownEngine,
|
|
8193
8193
|
{
|
|
8194
8194
|
content,
|
|
8195
8195
|
className,
|
|
@@ -8214,7 +8214,7 @@ var RichMarkdownRendererImpl = ({
|
|
|
8214
8214
|
className = "",
|
|
8215
8215
|
sectionIds,
|
|
8216
8216
|
onInternalLinkClick,
|
|
8217
|
-
brokenLinks =
|
|
8217
|
+
brokenLinks = _chunk5LED4QHZcjs.NO_BROKEN_LINKS,
|
|
8218
8218
|
currentPath,
|
|
8219
8219
|
resolveSource = "openframe-docs",
|
|
8220
8220
|
resolveLinkEndpointUrl = "/api/docs/resolve-link",
|
|
@@ -9559,7 +9559,7 @@ function renderAdvancedPageContainer({
|
|
|
9559
9559
|
contentClassName,
|
|
9560
9560
|
showHeader = true
|
|
9561
9561
|
}, inScope = false) {
|
|
9562
|
-
const titleNode = title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9562
|
+
const titleNode = title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.PageTitle, { className: PAGE_CONTAINER_TITLE_CLASS, children: _chunkFMSAN6SRcjs.accentSentenceMarks.call(void 0, title) }) : inScope && title === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageContainerTitleSkeleton, {}) : null;
|
|
9563
9563
|
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;
|
|
9564
9564
|
const getActionsVariant = () => {
|
|
9565
9565
|
if (actionsVariant) return actionsVariant;
|
|
@@ -9568,7 +9568,7 @@ function renderAdvancedPageContainer({
|
|
|
9568
9568
|
};
|
|
9569
9569
|
const renderActions = () => {
|
|
9570
9570
|
if (!actions || actions.length === 0) return null;
|
|
9571
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9571
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.PageActions, { variant: getActionsVariant(), actions, menuActions });
|
|
9572
9572
|
};
|
|
9573
9573
|
const needsBottomPadding = actions && actions.length > 0 && getActionsVariant() === "primary-buttons";
|
|
9574
9574
|
const paddingClasses = {
|
|
@@ -9591,7 +9591,7 @@ function renderAdvancedPageContainer({
|
|
|
9591
9591
|
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: [
|
|
9592
9592
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
9593
9593
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9594
|
-
|
|
9594
|
+
_chunk2BGLALP5cjs.BackButton,
|
|
9595
9595
|
{
|
|
9596
9596
|
onClick: backButton.onClick,
|
|
9597
9597
|
label: backButton.label,
|
|
@@ -9611,7 +9611,7 @@ function renderAdvancedPageContainer({
|
|
|
9611
9611
|
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: [
|
|
9612
9612
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
9613
9613
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9614
|
-
|
|
9614
|
+
_chunk2BGLALP5cjs.BackButton,
|
|
9615
9615
|
{
|
|
9616
9616
|
onClick: backButton.onClick,
|
|
9617
9617
|
label: backButton.label,
|
|
@@ -9631,7 +9631,7 @@ function renderAdvancedPageContainer({
|
|
|
9631
9631
|
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: [
|
|
9632
9632
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
9633
9633
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9634
|
-
|
|
9634
|
+
_chunk2BGLALP5cjs.BackButton,
|
|
9635
9635
|
{
|
|
9636
9636
|
onClick: backButton.onClick,
|
|
9637
9637
|
label: backButton.label,
|
|
@@ -9986,7 +9986,7 @@ var BenefitCardGrid = ({ children, className = "", columns = 2 }) => {
|
|
|
9986
9986
|
|
|
9987
9987
|
|
|
9988
9988
|
function PlatformBrowseButton({ item }) {
|
|
9989
|
-
const linkProps =
|
|
9989
|
+
const linkProps = _chunk5LED4QHZcjs.useNavLinkViaRuntime.call(void 0, { href: item.link, targetPlatform: item.targetPlatform });
|
|
9990
9990
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "outline", linkProps, rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-4 w-4" }), children: [
|
|
9991
9991
|
"Browse ",
|
|
9992
9992
|
item.buttonText
|
|
@@ -10505,10 +10505,10 @@ var OSTypeBadge = ({
|
|
|
10505
10505
|
if (!osType) {
|
|
10506
10506
|
return labelOnly ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, "text-ods-text-secondary", className), children: "Unknown" }) : null;
|
|
10507
10507
|
}
|
|
10508
|
-
const normalized =
|
|
10508
|
+
const normalized = _chunk56EP4QM2cjs.normalizeOSType.call(void 0, osType);
|
|
10509
10509
|
if (!normalized && !labelOnly) return null;
|
|
10510
|
-
const label =
|
|
10511
|
-
const IconComponent =
|
|
10510
|
+
const label = _chunk56EP4QM2cjs.getOSLabel.call(void 0, osType);
|
|
10511
|
+
const IconComponent = _chunk56EP4QM2cjs.getOSIcon.call(void 0, osType);
|
|
10512
10512
|
if (iconOnly && IconComponent) {
|
|
10513
10513
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: _chunk63A4GZMBcjs.cn.call(void 0, iconSize, "text-ods-text-secondary", className) });
|
|
10514
10514
|
}
|
|
@@ -10805,7 +10805,7 @@ function ComplianceLogo({
|
|
|
10805
10805
|
fallback = null,
|
|
10806
10806
|
className
|
|
10807
10807
|
}) {
|
|
10808
|
-
const standard =
|
|
10808
|
+
const standard = _chunk56EP4QM2cjs.complianceStandardForName.call(void 0, ...names);
|
|
10809
10809
|
if (!standard) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: fallback });
|
|
10810
10810
|
const Official = standard.logo ? COMPLIANCE_LOGOS[standard.logo] : null;
|
|
10811
10811
|
return Official ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11462,7 +11462,7 @@ function DropdownButton({
|
|
|
11462
11462
|
}
|
|
11463
11463
|
),
|
|
11464
11464
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11465
|
-
|
|
11465
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
11466
11466
|
{
|
|
11467
11467
|
groups: _nullishCoalesce(groups, () => ( [{ items: _nullishCoalesce(items, () => ( [])) }])),
|
|
11468
11468
|
open,
|
|
@@ -11525,7 +11525,7 @@ function DropdownButton({
|
|
|
11525
11525
|
)
|
|
11526
11526
|
);
|
|
11527
11527
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11528
|
-
|
|
11528
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
11529
11529
|
{
|
|
11530
11530
|
groups: _nullishCoalesce(groups, () => ( [{ items: _nullishCoalesce(items, () => ( [])) }])),
|
|
11531
11531
|
open,
|
|
@@ -11662,7 +11662,7 @@ function OrganizationCardSkeleton({
|
|
|
11662
11662
|
..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props),
|
|
11663
11663
|
children: [
|
|
11664
11664
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_HEADER_CLASS, children: [
|
|
11665
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11665
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.EntityImage, { src: null }),
|
|
11666
11666
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_TEXT_CLASS, children: [
|
|
11667
11667
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h3", className: "w-3/4" }),
|
|
11668
11668
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h6", className: "w-1/2" })
|
|
@@ -11734,7 +11734,7 @@ function OrganizationCard({
|
|
|
11734
11734
|
}
|
|
11735
11735
|
),
|
|
11736
11736
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_HEADER_CLASS, children: [
|
|
11737
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11737
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.EntityImage, { src: fetchedImageUrl || organization.imageUrl, alt: organization.name }),
|
|
11738
11738
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_TEXT_CLASS, children: [
|
|
11739
11739
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "truncate text-ods-text-primary transition-colors text-h3", title: organization.name, children: organization.name }),
|
|
11740
11740
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11801,8 +11801,8 @@ function ServiceCard({
|
|
|
11801
11801
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-4", children: [
|
|
11802
11802
|
/* @__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 }),
|
|
11803
11803
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0", children: [
|
|
11804
|
-
loading && !title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h3", className: "w-40 max-w-full" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11805
|
-
loading && subtitle === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h6", className: "w-56 max-w-full" }) : subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11804
|
+
loading && !title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h3", className: "w-40 max-w-full" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { variant: "h3", children: title }),
|
|
11805
|
+
loading && subtitle === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h6", className: "w-56 max-w-full" }) : subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { variant: "h6", tone: "secondary", children: subtitle })
|
|
11806
11806
|
] })
|
|
11807
11807
|
] }),
|
|
11808
11808
|
tag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGRHF5SWLcjs.Tag, { label: tag.label, variant: "outline", className: "shrink-0 self-start", loading })
|
|
@@ -11942,14 +11942,14 @@ function PersonCell({
|
|
|
11942
11942
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGRHF5SWLcjs.SquareAvatar, { size: scale.avatar, src: _nullishCoalesce(avatarUrl, () => ( void 0)), alt: displayName, fallback: displayName }),
|
|
11943
11943
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
11944
11944
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11945
|
-
|
|
11945
|
+
_chunk2BGLALP5cjs.TruncateText,
|
|
11946
11946
|
{
|
|
11947
11947
|
variant: scale.primary,
|
|
11948
11948
|
className: onClick ? "text-ods-accent group-hover/person-cell:underline" : void 0,
|
|
11949
11949
|
children: displayName
|
|
11950
11950
|
}
|
|
11951
11951
|
),
|
|
11952
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11952
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { variant: "h6", tone: "secondary", children: secondary === void 0 ? "\xA0" : secondary || "\xB7" })
|
|
11953
11953
|
] })
|
|
11954
11954
|
] });
|
|
11955
11955
|
if (!onClick) return row;
|
|
@@ -12185,9 +12185,9 @@ function TruncatedCell({ value, className }) {
|
|
|
12185
12185
|
setIsTruncated(el.scrollWidth > el.clientWidth);
|
|
12186
12186
|
}
|
|
12187
12187
|
}, []);
|
|
12188
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12189
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12190
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12188
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipProvider, { delayDuration: 300, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYJZ7R3W5cjs.Tooltip, { open: isTruncated ? void 0 : false, children: [
|
|
12189
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipTrigger, { asChild: true, onMouseEnter: checkTruncation, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { ref: textRef, className: _chunk63A4GZMBcjs.cn.call(void 0, "block truncate", className), children: value }) }),
|
|
12190
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipContent, { side: "top", className: "max-w-xs break-words", children: value })
|
|
12191
12191
|
] }) });
|
|
12192
12192
|
}
|
|
12193
12193
|
|
|
@@ -12211,9 +12211,9 @@ function TruncatedHeaderCell({ value, width }) {
|
|
|
12211
12211
|
setIsTruncated(el.scrollWidth > el.clientWidth);
|
|
12212
12212
|
}
|
|
12213
12213
|
}, []);
|
|
12214
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12215
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12216
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12214
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipProvider, { delayDuration: 300, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYJZ7R3W5cjs.Tooltip, { open: isTruncated ? void 0 : false, children: [
|
|
12215
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipTrigger, { asChild: true, onMouseEnter: checkTruncation, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: QUERY_REPORT_HEADER_CELL_CLASS, style: { width }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: textRef, className: "truncate text-ods-text-secondary text-h5", children: value }) }) }),
|
|
12216
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipContent, { side: "bottom", className: "max-w-xs break-words", children: value })
|
|
12217
12217
|
] }) });
|
|
12218
12218
|
}
|
|
12219
12219
|
|
|
@@ -12847,7 +12847,7 @@ function DataTableRowImpl({
|
|
|
12847
12847
|
const containerRef = _react.useRef.call(void 0, null);
|
|
12848
12848
|
const handleClick = _react.useCallback.call(void 0,
|
|
12849
12849
|
(e) => {
|
|
12850
|
-
if (!
|
|
12850
|
+
if (!_chunk56EP4QM2cjs.isOwnClick.call(void 0, e.target, containerRef.current)) {
|
|
12851
12851
|
if (isLinkMode) e.preventDefault();
|
|
12852
12852
|
return;
|
|
12853
12853
|
}
|
|
@@ -12861,7 +12861,7 @@ function DataTableRowImpl({
|
|
|
12861
12861
|
if (!(target instanceof Element) || !_optionalChain([container, 'optionalAccess', _224 => _224.contains, 'call', _225 => _225(target)])) return;
|
|
12862
12862
|
const nestedLink = target.closest("a");
|
|
12863
12863
|
if (nestedLink && nestedLink !== container && container.contains(nestedLink)) return;
|
|
12864
|
-
if (!
|
|
12864
|
+
if (!_chunk56EP4QM2cjs.isOwnClick.call(void 0, target, container) || target.closest(ROW_LINK_CONTROL_SELECTOR)) e.preventDefault();
|
|
12865
12865
|
}, []);
|
|
12866
12866
|
const containerClassName = _chunk63A4GZMBcjs.cn.call(void 0,
|
|
12867
12867
|
DATA_TABLE_ROW_FRAME_CLASS,
|
|
@@ -12991,7 +12991,7 @@ function DataTableBody({
|
|
|
12991
12991
|
const skeletonRowClassName = typeof rowClassName === "string" ? rowClassName : void 0;
|
|
12992
12992
|
if (loading && loadingCells && hasRows) {
|
|
12993
12993
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12994
|
-
|
|
12994
|
+
_chunk5LED4QHZcjs.LoadingFallback,
|
|
12995
12995
|
{
|
|
12996
12996
|
label: "Loading results",
|
|
12997
12997
|
status: loadingRegion && !inScope,
|
|
@@ -13340,7 +13340,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13340
13340
|
// child of the cell.
|
|
13341
13341
|
_optionalChain([meta, 'optionalAccess', _244 => _244.hint]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13342
13342
|
filterTrigger,
|
|
13343
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13343
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk56EP4QM2cjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
13344
13344
|
] }) : filterTrigger
|
|
13345
13345
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13346
13346
|
"div",
|
|
@@ -13365,7 +13365,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13365
13365
|
// centred on the row.
|
|
13366
13366
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13367
13367
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
13368
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13368
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk56EP4QM2cjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
13369
13369
|
] })
|
|
13370
13370
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
13371
13371
|
canSort && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortIcon, { sorted: sortDir })
|
|
@@ -13604,7 +13604,7 @@ function PhoneInput({
|
|
|
13604
13604
|
placeholder = "Phone Number (optional)",
|
|
13605
13605
|
onKeyDown
|
|
13606
13606
|
}) {
|
|
13607
|
-
const { priority, others } = _react.useMemo.call(void 0, () =>
|
|
13607
|
+
const { priority, others } = _react.useMemo.call(void 0, () => _chunk56EP4QM2cjs.getCountryPhoneData.call(void 0, ), []);
|
|
13608
13608
|
const selectedCountry = _react.useMemo.call(void 0,
|
|
13609
13609
|
() => [...priority, ...others].find((c) => c.code === countryCode),
|
|
13610
13610
|
[countryCode, priority, others]
|
|
@@ -13619,7 +13619,7 @@ function PhoneInput({
|
|
|
13619
13619
|
_optionalChain([onValidationChange, 'optionalCall', _261 => _261(false)]);
|
|
13620
13620
|
return;
|
|
13621
13621
|
}
|
|
13622
|
-
const invalid = !
|
|
13622
|
+
const invalid = !_chunk56EP4QM2cjs.validatePhoneNumber.call(void 0, phone, countryCode);
|
|
13623
13623
|
setIsInvalid(invalid);
|
|
13624
13624
|
_optionalChain([onValidationChange, 'optionalCall', _262 => _262(invalid)]);
|
|
13625
13625
|
},
|
|
@@ -13639,7 +13639,7 @@ function PhoneInput({
|
|
|
13639
13639
|
}, []);
|
|
13640
13640
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 gap-2", children: [
|
|
13641
13641
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13642
|
-
|
|
13642
|
+
_chunk2BGLALP5cjs.Select,
|
|
13643
13643
|
{
|
|
13644
13644
|
value: countryCode,
|
|
13645
13645
|
onValueChange: (val) => {
|
|
@@ -13650,14 +13650,14 @@ function PhoneInput({
|
|
|
13650
13650
|
},
|
|
13651
13651
|
disabled,
|
|
13652
13652
|
children: [
|
|
13653
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13653
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectTrigger, { className: "w-[130px] shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectValue, { children: selectedCountry && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-1.5", children: [
|
|
13654
13654
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: selectedCountry.flag }),
|
|
13655
13655
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: selectedCountry.dialCode })
|
|
13656
13656
|
] }) }) }),
|
|
13657
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13658
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13659
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13660
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13657
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2BGLALP5cjs.SelectContent, { className: "max-h-[300px] !w-[280px]", children: [
|
|
13658
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectGroup, { children: priority.map((country) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CountryOption, { country }, country.code)) }),
|
|
13659
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectSeparator, {}),
|
|
13660
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectGroup, { children: others.map((country) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CountryOption, { country }, country.code)) })
|
|
13661
13661
|
] })
|
|
13662
13662
|
]
|
|
13663
13663
|
}
|
|
@@ -13689,7 +13689,7 @@ function PhoneInput({
|
|
|
13689
13689
|
] });
|
|
13690
13690
|
}
|
|
13691
13691
|
function CountryOption({ country }) {
|
|
13692
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13692
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: country.code, textValue: country.name, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-2", children: [
|
|
13693
13693
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0", children: country.flag }),
|
|
13694
13694
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary", children: country.dialCode }),
|
|
13695
13695
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-block max-w-[140px] overflow-hidden text-ellipsis whitespace-nowrap", children: country.name })
|
|
@@ -14057,7 +14057,7 @@ function MarkdownLinkDialog({ isOpen, initial, editing, onSubmit, onRemove, onCl
|
|
|
14057
14057
|
),
|
|
14058
14058
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xsf)]", children: [
|
|
14059
14059
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14060
|
-
|
|
14060
|
+
_chunk5LED4QHZcjs.TabSelector,
|
|
14061
14061
|
{
|
|
14062
14062
|
label: "Search engines",
|
|
14063
14063
|
value: choice,
|
|
@@ -14114,7 +14114,7 @@ function useMarkdownLinkCommand() {
|
|
|
14114
14114
|
buttonProps: { "aria-label": "Add or edit a link (ctrl + l)", title: "Add or edit a link (ctrl + l)" },
|
|
14115
14115
|
icon: command.icon,
|
|
14116
14116
|
execute: (state, api) => {
|
|
14117
|
-
const existing =
|
|
14117
|
+
const existing = _chunk5LED4QHZcjs.findMarkdownLinkAt.call(void 0, state.text, state.selection.start, state.selection.end);
|
|
14118
14118
|
setPending(
|
|
14119
14119
|
existing ? {
|
|
14120
14120
|
api,
|
|
@@ -14145,7 +14145,7 @@ function useMarkdownLinkCommand() {
|
|
|
14145
14145
|
initial: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _292 => _292.initial]), () => ( EMPTY_LINK)),
|
|
14146
14146
|
editing: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _293 => _293.editing]), () => ( false)),
|
|
14147
14147
|
onSubmit: (link) => {
|
|
14148
|
-
if (pending) write(pending,
|
|
14148
|
+
if (pending) write(pending, _chunk5LED4QHZcjs.formatMarkdownLink.call(void 0, link));
|
|
14149
14149
|
},
|
|
14150
14150
|
onRemove: () => {
|
|
14151
14151
|
if (pending) write(pending, pending.initial.text);
|
|
@@ -15097,20 +15097,20 @@ function ColorPresetSelect({
|
|
|
15097
15097
|
...presets.map((p) => ({
|
|
15098
15098
|
id: p.key,
|
|
15099
15099
|
label: p.label,
|
|
15100
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15100
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.ColorSwatch, { color: p.color }),
|
|
15101
15101
|
onClick: () => onChange({ color: p.color, preset: p.key })
|
|
15102
15102
|
})),
|
|
15103
15103
|
{
|
|
15104
15104
|
id: CUSTOM_PRESET_KEY,
|
|
15105
15105
|
label: "Custom",
|
|
15106
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15106
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.ColorSwatch, { color: isCustom ? value : DEFAULT_CUSTOM_STATUS_COLOR }),
|
|
15107
15107
|
onClick: () => onChange({ color: value, preset: void 0 })
|
|
15108
15108
|
}
|
|
15109
15109
|
]
|
|
15110
15110
|
}
|
|
15111
15111
|
];
|
|
15112
15112
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15113
|
-
|
|
15113
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
15114
15114
|
{
|
|
15115
15115
|
groups,
|
|
15116
15116
|
align: "start",
|
|
@@ -15120,7 +15120,7 @@ function ColorPresetSelect({
|
|
|
15120
15120
|
{
|
|
15121
15121
|
disabled,
|
|
15122
15122
|
"aria-label": `Color: ${displayLabel}`,
|
|
15123
|
-
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15123
|
+
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.ColorSwatch, { color: displayColor }),
|
|
15124
15124
|
selectedLabel: displayLabel,
|
|
15125
15125
|
endIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TriggerChevron, {}),
|
|
15126
15126
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "group", className)
|
|
@@ -15258,7 +15258,7 @@ function ColorPickerInput({
|
|
|
15258
15258
|
{
|
|
15259
15259
|
disabled,
|
|
15260
15260
|
"aria-label": "Pick custom color",
|
|
15261
|
-
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15261
|
+
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.ColorSwatch, { color: value }),
|
|
15262
15262
|
selectedLabel: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase", children: value }),
|
|
15263
15263
|
endIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TriggerChevron, {}),
|
|
15264
15264
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "group", className)
|
|
@@ -15279,7 +15279,7 @@ function ColorPickerInput({
|
|
|
15279
15279
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactcolorful.HexColorPicker, { color: value, onChange }),
|
|
15280
15280
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
15281
15281
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15282
|
-
|
|
15282
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
15283
15283
|
{
|
|
15284
15284
|
groups: formatGroups,
|
|
15285
15285
|
align: "start",
|
|
@@ -15339,7 +15339,7 @@ function TicketStatusConfigRow({
|
|
|
15339
15339
|
const previewVariant = _nullishCoalesce(systemTagVariant, () => ( (isSystem ? void 0 : "primary")));
|
|
15340
15340
|
const fieldRowOffset = "mt-[calc(var(--font-line-space-h4-body)+0.25rem)]";
|
|
15341
15341
|
const chip = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15342
|
-
|
|
15342
|
+
_chunkQTLWU6FYcjs.TicketStatusTag,
|
|
15343
15343
|
{
|
|
15344
15344
|
loading,
|
|
15345
15345
|
status: statusKey,
|
|
@@ -15456,9 +15456,9 @@ function TicketStatusConfigRow({
|
|
|
15456
15456
|
),
|
|
15457
15457
|
children: [
|
|
15458
15458
|
!isSystem && moveButtons,
|
|
15459
|
-
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,
|
|
15459
|
+
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, _chunkWWDNLMB7cjs.TouchFriendlyTooltip, { content: systemTooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.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 }) }) }) }) : (
|
|
15460
15460
|
// The delete button is a static control: drawn for real in both forms, inert while the status is read.
|
|
15461
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.InertWhileLoading, { loading, className: "inline-flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15461
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.InertWhileLoading, { loading, className: "inline-flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWDNLMB7cjs.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,
|
|
15462
15462
|
_chunkFCZAUK4Dcjs.Button,
|
|
15463
15463
|
{
|
|
15464
15464
|
type: "button",
|
|
@@ -15997,7 +15997,7 @@ function TicketInfoSection({
|
|
|
15997
15997
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: _optionalChain([device, 'optionalAccess', _336 => _336.name]) || "Unassigned", label: "Device", icon: _optionalChain([device, 'optionalAccess', _337 => _337.icon]), onClick: _optionalChain([device, 'optionalAccess', _338 => _338.onClick]) }),
|
|
15998
15998
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-4", children: [
|
|
15999
15999
|
(status || statusLabel) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16000
|
-
|
|
16000
|
+
_chunkQTLWU6FYcjs.TicketStatusTag,
|
|
16001
16001
|
{
|
|
16002
16002
|
status: _nullishCoalesce(status, () => ( "")),
|
|
16003
16003
|
label: statusLabel,
|
|
@@ -16027,7 +16027,7 @@ function TicketInfoSection({
|
|
|
16027
16027
|
expanded && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
16028
16028
|
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" }) }),
|
|
16029
16029
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-4 border-b border-ods-border bg-ods-bg p-4", children: [
|
|
16030
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16030
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5LED4QHZcjs.SimpleMarkdownRenderer, { content: description }),
|
|
16031
16031
|
attachments && attachments.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Attachments", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketAttachmentsList, { attachments }) }),
|
|
16032
16032
|
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, _chunkGRHF5SWLcjs.Tag, { label: tag, variant: "outline", className: "max-w-full" }, tag)) }) }),
|
|
16033
16033
|
(notes || onAddNote) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Notes", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -16052,8 +16052,8 @@ function renderTicketStatusOption(option, isSelected) {
|
|
|
16052
16052
|
const { label, color } = option;
|
|
16053
16053
|
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: [
|
|
16054
16054
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
16055
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16056
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16055
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.ColorSwatch, { color }),
|
|
16056
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { className: "text-inherit", children: label }) })
|
|
16057
16057
|
] }),
|
|
16058
16058
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
16059
16059
|
] });
|
|
@@ -16063,7 +16063,7 @@ function renderTicketAssigneeOption(option, isSelected) {
|
|
|
16063
16063
|
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: [
|
|
16064
16064
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
16065
16065
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGRHF5SWLcjs.SquareAvatar, { src: imageUrl, alt: label, fallback: label, size: "sm", variant: "round" }),
|
|
16066
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16066
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { className: "text-inherit", children: label }) })
|
|
16067
16067
|
] }),
|
|
16068
16068
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
16069
16069
|
] });
|
|
@@ -16114,19 +16114,19 @@ function TakeOverTicketModal({
|
|
|
16114
16114
|
] }),
|
|
16115
16115
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)] md:flex-row", children: [
|
|
16116
16116
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16117
|
-
|
|
16117
|
+
_chunk2BGLALP5cjs.Autocomplete,
|
|
16118
16118
|
{
|
|
16119
16119
|
label: "Status",
|
|
16120
16120
|
options: statusOptions,
|
|
16121
16121
|
value: selectedStatusId,
|
|
16122
16122
|
onChange: setStatusId,
|
|
16123
16123
|
placeholder: "Select Status",
|
|
16124
|
-
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16124
|
+
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.ColorSwatch, { color: selectedStatus.color }) : void 0,
|
|
16125
16125
|
renderOption: renderTicketStatusOption
|
|
16126
16126
|
}
|
|
16127
16127
|
) }),
|
|
16128
16128
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16129
|
-
|
|
16129
|
+
_chunk2BGLALP5cjs.Autocomplete,
|
|
16130
16130
|
{
|
|
16131
16131
|
label: "Assigned",
|
|
16132
16132
|
options: withTicketAssigneeAvatars(assigneeOptions),
|
|
@@ -16210,19 +16210,19 @@ function ReopenTicketModal({
|
|
|
16210
16210
|
] }),
|
|
16211
16211
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)] md:flex-row", children: [
|
|
16212
16212
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16213
|
-
|
|
16213
|
+
_chunk2BGLALP5cjs.Autocomplete,
|
|
16214
16214
|
{
|
|
16215
16215
|
label: "Status",
|
|
16216
16216
|
options: statusOptions,
|
|
16217
16217
|
value: selectedStatusId,
|
|
16218
16218
|
onChange: setStatusId,
|
|
16219
16219
|
placeholder: "Select Status",
|
|
16220
|
-
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16220
|
+
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.ColorSwatch, { color: selectedStatus.color }) : void 0,
|
|
16221
16221
|
renderOption: renderTicketStatusOption
|
|
16222
16222
|
}
|
|
16223
16223
|
) }),
|
|
16224
16224
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16225
|
-
|
|
16225
|
+
_chunk2BGLALP5cjs.Autocomplete,
|
|
16226
16226
|
{
|
|
16227
16227
|
label: "Assigned",
|
|
16228
16228
|
options: withTicketAssigneeAvatars(assigneeOptions),
|
|
@@ -16502,7 +16502,7 @@ function PhotoWall({
|
|
|
16502
16502
|
gap: COLUMN_GAP_PX
|
|
16503
16503
|
};
|
|
16504
16504
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: rootRef, "aria-hidden": "true", className: _chunk63A4GZMBcjs.cn.call(void 0, "grid overflow-hidden", className), style: gridStyle, children: columnsToDraw ? columnsToDraw.map((column, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16505
|
-
|
|
16505
|
+
_chunk5LED4QHZcjs.MarqueeWall,
|
|
16506
16506
|
{
|
|
16507
16507
|
axis: "y",
|
|
16508
16508
|
reverse: index % 2 === 1,
|
|
@@ -16732,7 +16732,7 @@ function ProductScreenFrame({
|
|
|
16732
16732
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "ods-content-area", pending && "product-screen-pending"),
|
|
16733
16733
|
style: screenStyle,
|
|
16734
16734
|
children: [
|
|
16735
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ods-content-scope", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingScope, { bare: true, active: pending, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16735
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ods-content-scope", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingScope, { bare: true, active: pending, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.PagePicture, { children }) }) }),
|
|
16736
16736
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
|
|
16737
16737
|
]
|
|
16738
16738
|
}
|
|
@@ -16870,7 +16870,7 @@ function PhoneFrame({ dateLabel, timeLabel, children, className }) {
|
|
|
16870
16870
|
"div",
|
|
16871
16871
|
{
|
|
16872
16872
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "h-[617px] w-[299px] shrink-0 rounded-[48px] border border-ods-border bg-black p-2.5", className),
|
|
16873
|
-
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "relative flex h-full flex-col overflow-hidden rounded-[38px]",
|
|
16873
|
+
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "relative flex h-full flex-col overflow-hidden rounded-[38px]", _chunk2BGLALP5cjs.DEVICE_WALLPAPER_CLASS), children: [
|
|
16874
16874
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16875
16875
|
"div",
|
|
16876
16876
|
{
|
|
@@ -17047,7 +17047,7 @@ function LoadingLabel({ label, typical }) {
|
|
|
17047
17047
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: label.split(/(\{\w+\})/).map(
|
|
17048
17048
|
(part, index) => /^\{\w+\}$/.test(part) ? (
|
|
17049
17049
|
// biome-ignore lint/suspicious/noArrayIndexKey: the parts of one fixed string never reorder
|
|
17050
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17050
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5LED4QHZcjs.TextHold, { children: typical }, index)
|
|
17051
17051
|
) : part
|
|
17052
17052
|
) });
|
|
17053
17053
|
}
|
|
@@ -17062,7 +17062,7 @@ var TRIAL_TERM_ICONS = {
|
|
|
17062
17062
|
};
|
|
17063
17063
|
var DEFAULT_TRIAL_TERMS = ["cancel", "length", "noContract"];
|
|
17064
17064
|
function trialBenefits(trialDays, terms = DEFAULT_TRIAL_TERMS) {
|
|
17065
|
-
const labels =
|
|
17065
|
+
const labels = _chunk56EP4QM2cjs.trialLabels.call(void 0, trialDays);
|
|
17066
17066
|
return terms.flatMap((term) => {
|
|
17067
17067
|
const label = labels[term];
|
|
17068
17068
|
return label ? [{ icon: TRIAL_TERM_ICONS[term], label }] : [];
|
|
@@ -17183,7 +17183,7 @@ var INCIDENT_TONE = {
|
|
|
17183
17183
|
approved: "success"
|
|
17184
17184
|
};
|
|
17185
17185
|
function IncidentStatusLine({ status, label, className }) {
|
|
17186
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17186
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.StatusLine, { tone: INCIDENT_TONE[status], label, className });
|
|
17187
17187
|
}
|
|
17188
17188
|
var FEED_CLASS = "flex min-h-0 flex-1 flex-col gap-3 overflow-hidden p-4 md:px-5";
|
|
17189
17189
|
var FEED_BOTTOM_CLASS = "justify-end [mask-image:linear-gradient(180deg,transparent_0,#000_48px)]";
|
|
@@ -19316,9 +19316,9 @@ function ChangelogManager({
|
|
|
19316
19316
|
] }),
|
|
19317
19317
|
tagOptions && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-1", children: [
|
|
19318
19318
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3MBQRCQcjs.Label, { className: "text-ods-text-secondary", children: tagLabel }),
|
|
19319
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
19320
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19321
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19319
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2BGLALP5cjs.Select, { value: _nullishCoalesce(entry.tag, () => ( "")), onValueChange: (value) => updateEntry(index, "tag", value), children: [
|
|
19320
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectTrigger, { className: "bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectValue, { placeholder: tagLabel }) }),
|
|
19321
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectContent, { children: tagOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
19322
19322
|
] })
|
|
19323
19323
|
] })
|
|
19324
19324
|
] })
|
|
@@ -21099,17 +21099,17 @@ function MediaGalleryManager({
|
|
|
21099
21099
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
21100
21100
|
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" }),
|
|
21101
21101
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21102
|
-
|
|
21102
|
+
_chunk2BGLALP5cjs.Select,
|
|
21103
21103
|
{
|
|
21104
21104
|
value: item.media_type,
|
|
21105
21105
|
onValueChange: (value) => update(index, { media_type: value }),
|
|
21106
21106
|
children: [
|
|
21107
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21108
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21109
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21110
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21111
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21112
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21107
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectTrigger, { className: "h-8 bg-ods-bg text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectValue, {}) }),
|
|
21108
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2BGLALP5cjs.SelectContent, { className: "bg-ods-card", children: [
|
|
21109
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: "image", children: "Image" }),
|
|
21110
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: "video", children: "Video" }),
|
|
21111
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: "screenshot", children: "Screenshot" }),
|
|
21112
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: "demo", children: "Demo" })
|
|
21113
21113
|
] })
|
|
21114
21114
|
]
|
|
21115
21115
|
}
|
|
@@ -21369,9 +21369,9 @@ function PushButtonSelector({
|
|
|
21369
21369
|
option.id
|
|
21370
21370
|
);
|
|
21371
21371
|
if (option.disabled && option.disabledReason) {
|
|
21372
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21373
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21374
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21372
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYJZ7R3W5cjs.Tooltip, { children: [
|
|
21373
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipTrigger, { asChild: true, children: optionEl }),
|
|
21374
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipContent, { className: "max-w-xs", children: option.disabledReason })
|
|
21375
21375
|
] }, option.id);
|
|
21376
21376
|
}
|
|
21377
21377
|
return optionEl;
|
|
@@ -21410,7 +21410,7 @@ function PushButtonSelector({
|
|
|
21410
21410
|
lazyLoad.isFetchingMore ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { label: "Loading more options", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OptionRowSkeleton, {}) }) : null
|
|
21411
21411
|
] }) : null
|
|
21412
21412
|
] });
|
|
21413
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21413
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipProvider, { delayDuration: 150, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, SELECTOR_STACK_CLASS, className), children: [
|
|
21414
21414
|
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: SELECTOR_TITLE_CLASS, children: title }),
|
|
21415
21415
|
searchInput,
|
|
21416
21416
|
lazyLoad ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -21493,7 +21493,7 @@ var MODEL_TOKEN_RATES_COPY = {
|
|
|
21493
21493
|
empty: "No token rates are in effect right now."
|
|
21494
21494
|
};
|
|
21495
21495
|
function providerMark(providerType, stated, className) {
|
|
21496
|
-
const Mark = _chunk2HQNXX2Kcjs.findIcon.call(void 0,
|
|
21496
|
+
const Mark = _chunk2HQNXX2Kcjs.findIcon.call(void 0, _chunk56EP4QM2cjs.aiProvider.call(void 0, providerType, { icon: stated }).icon);
|
|
21497
21497
|
return Mark ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Mark, { className }) : void 0;
|
|
21498
21498
|
}
|
|
21499
21499
|
var PAD_X = "px-[var(--spacing-system-s)]";
|
|
@@ -21511,7 +21511,7 @@ var UNIT_LINE_CLASS = _chunk63A4GZMBcjs.cn.call(void 0,
|
|
|
21511
21511
|
var TABS_ROW_CLASS = _chunk63A4GZMBcjs.cn.call(void 0, "shrink-0 border-b border-ods-border py-[var(--spacing-system-xs)]", PAD_X);
|
|
21512
21512
|
var NUMBER_CELL = "w-16 shrink-0 whitespace-nowrap text-right tabular-nums";
|
|
21513
21513
|
function useProviderGroup(rates) {
|
|
21514
|
-
const groups =
|
|
21514
|
+
const groups = _chunk56EP4QM2cjs.groupTokenRatesByProvider.call(void 0, rates);
|
|
21515
21515
|
const [picked, setPicked] = _react.useState.call(void 0, null);
|
|
21516
21516
|
return { groups, group: _nullishCoalesce(groups.find((candidate) => candidate.providerType === picked), () => ( groups[0])), setPicked };
|
|
21517
21517
|
}
|
|
@@ -21522,7 +21522,7 @@ function ProviderTabs({
|
|
|
21522
21522
|
className
|
|
21523
21523
|
}) {
|
|
21524
21524
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21525
|
-
|
|
21525
|
+
_chunk5LED4QHZcjs.TabSelector,
|
|
21526
21526
|
{
|
|
21527
21527
|
variant: "secondary",
|
|
21528
21528
|
scrollable: true,
|
|
@@ -21530,7 +21530,7 @@ function ProviderTabs({
|
|
|
21530
21530
|
onValueChange,
|
|
21531
21531
|
items: groups.map((candidate) => ({
|
|
21532
21532
|
id: candidate.providerType,
|
|
21533
|
-
label:
|
|
21533
|
+
label: _chunk56EP4QM2cjs.tokenRateProviderLabel.call(void 0, candidate.providerType, _optionalChain([candidate, 'access', _435 => _435.rates, 'access', _436 => _436[0], 'optionalAccess', _437 => _437.providerLabel])),
|
|
21534
21534
|
icon: providerMark(candidate.providerType, _optionalChain([candidate, 'access', _438 => _438.rates, 'access', _439 => _439[0], 'optionalAccess', _440 => _440.providerIcon]), "size-full")
|
|
21535
21535
|
})),
|
|
21536
21536
|
className
|
|
@@ -21607,8 +21607,8 @@ function ModelTokenRatesTable({ rates }) {
|
|
|
21607
21607
|
] }),
|
|
21608
21608
|
/* @__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: [
|
|
21609
21609
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "rowheader", className: "min-w-0 flex-1 truncate", children: rate.displayName || rate.modelName }),
|
|
21610
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children:
|
|
21611
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children:
|
|
21610
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunk56EP4QM2cjs.formatTokenRate.call(void 0, rate.inputTokenRate) }),
|
|
21611
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunk56EP4QM2cjs.formatTokenRate.call(void 0, rate.outputTokenRate) })
|
|
21612
21612
|
] }, rate.modelName)) })
|
|
21613
21613
|
] }),
|
|
21614
21614
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: UNIT_LINE_CLASS, children: MODEL_TOKEN_RATES_COPY.unit })
|
|
@@ -21655,7 +21655,7 @@ function modelOption(rate) {
|
|
|
21655
21655
|
return {
|
|
21656
21656
|
label: rate.displayName || rate.modelName,
|
|
21657
21657
|
value: rate.modelName,
|
|
21658
|
-
description:
|
|
21658
|
+
description: _chunk56EP4QM2cjs.tokenRateProviderLabel.call(void 0, rate.providerType, rate.providerLabel),
|
|
21659
21659
|
icon: providerMark(rate.providerType, rate.providerIcon, "size-full text-ods-text-secondary")
|
|
21660
21660
|
};
|
|
21661
21661
|
}
|
|
@@ -21710,8 +21710,8 @@ function ModelTokenExchange({
|
|
|
21710
21710
|
const [chosen, setChosen] = _react.useState.call(void 0, null);
|
|
21711
21711
|
const balance = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(chosen, () => ( defaultAmount)), () => ( _optionalChain([tokenPrice, 'optionalAccess', _441 => _441.tokens]))), () => ( MODEL_TOKEN_EXCHANGE_BALANCE));
|
|
21712
21712
|
const max = Math.max(amountRange.max, balance, ...presets.map((preset) => preset.tokens));
|
|
21713
|
-
const tokens =
|
|
21714
|
-
const cost =
|
|
21713
|
+
const tokens = _chunk56EP4QM2cjs.formatTokenAmount.call(void 0, balance);
|
|
21714
|
+
const cost = _chunk56EP4QM2cjs.tokenCost.call(void 0, balance, tokenPrice);
|
|
21715
21715
|
const balancePrice = cost === null ? null : _chunkGRHF5SWLcjs.formatPrice.call(void 0, cost);
|
|
21716
21716
|
const model = rate ? rate.displayName || rate.modelName : "";
|
|
21717
21717
|
const options = models.map(modelOption);
|
|
@@ -21754,7 +21754,7 @@ function ModelTokenExchange({
|
|
|
21754
21754
|
variant: preset.tokens === balance ? "accent" : "outline",
|
|
21755
21755
|
size: "small",
|
|
21756
21756
|
onClick: () => setChosen(preset.tokens),
|
|
21757
|
-
children: copy.buy.preset(
|
|
21757
|
+
children: copy.buy.preset(_chunk56EP4QM2cjs.formatTokenAmount.call(void 0, preset.tokens), preset.label)
|
|
21758
21758
|
},
|
|
21759
21759
|
preset.label
|
|
21760
21760
|
)) })
|
|
@@ -21771,7 +21771,7 @@ function ModelTokenExchange({
|
|
|
21771
21771
|
const stated = _nullishCoalesce(models.find((option) => option.providerType === providerType), () => ( (_optionalChain([rate, 'optionalAccess', _442 => _442.providerType]) === providerType ? rate : null)));
|
|
21772
21772
|
return {
|
|
21773
21773
|
id: providerType,
|
|
21774
|
-
name:
|
|
21774
|
+
name: _chunk56EP4QM2cjs.tokenRateProviderLabel.call(void 0, providerType, _optionalChain([stated, 'optionalAccess', _443 => _443.providerLabel])),
|
|
21775
21775
|
icon: providerMark(providerType, _optionalChain([stated, 'optionalAccess', _444 => _444.providerIcon]), "size-8 text-ods-text-secondary")
|
|
21776
21776
|
};
|
|
21777
21777
|
}),
|
|
@@ -21783,7 +21783,7 @@ function ModelTokenExchange({
|
|
|
21783
21783
|
}
|
|
21784
21784
|
),
|
|
21785
21785
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21786
|
-
|
|
21786
|
+
_chunk2BGLALP5cjs.Autocomplete,
|
|
21787
21787
|
{
|
|
21788
21788
|
fieldLoading: loading,
|
|
21789
21789
|
label: copy.use.model,
|
|
@@ -21810,7 +21810,7 @@ function ModelTokenExchange({
|
|
|
21810
21810
|
{
|
|
21811
21811
|
size: "plain",
|
|
21812
21812
|
loading,
|
|
21813
|
-
figure:
|
|
21813
|
+
figure: _chunk56EP4QM2cjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _449 => _449.inputTokenRate])),
|
|
21814
21814
|
words: copy.charge.input
|
|
21815
21815
|
}
|
|
21816
21816
|
),
|
|
@@ -21819,7 +21819,7 @@ function ModelTokenExchange({
|
|
|
21819
21819
|
{
|
|
21820
21820
|
size: "plain",
|
|
21821
21821
|
loading,
|
|
21822
|
-
figure:
|
|
21822
|
+
figure: _chunk56EP4QM2cjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _450 => _450.outputTokenRate])),
|
|
21823
21823
|
words: copy.charge.output
|
|
21824
21824
|
}
|
|
21825
21825
|
)
|
|
@@ -21831,9 +21831,9 @@ function ModelTokenExchange({
|
|
|
21831
21831
|
className: "mt-auto flex flex-col rounded-md border border-ods-accent bg-ods-bg p-[var(--spacing-system-mf)]",
|
|
21832
21832
|
children: [
|
|
21833
21833
|
/* @__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, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-full max-w-xs" }) : copy.charge.so(_nullishCoalesce(balancePrice, () => ( copy.buy.tokens(tokens))), model) }),
|
|
21834
|
-
/* @__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, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-40" }) :
|
|
21834
|
+
/* @__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, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-40" }) : _chunk56EP4QM2cjs.formatTokenAmount.call(void 0, _chunk56EP4QM2cjs.tokensForBalance.call(void 0, balance, rate.inputTokenRate)) }),
|
|
21835
21835
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-primary text-h3", children: copy.charge.read }),
|
|
21836
|
-
/* @__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, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-48" }) : copy.charge.orWritten(
|
|
21836
|
+
/* @__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, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-48" }) : copy.charge.orWritten(_chunk56EP4QM2cjs.formatTokenAmount.call(void 0, _chunk56EP4QM2cjs.tokensForBalance.call(void 0, balance, rate.outputTokenRate))) })
|
|
21837
21837
|
]
|
|
21838
21838
|
}
|
|
21839
21839
|
)
|
|
@@ -22353,14 +22353,14 @@ var ConfidenceBadge = ({
|
|
|
22353
22353
|
size = "sm",
|
|
22354
22354
|
className
|
|
22355
22355
|
}) => {
|
|
22356
|
-
const level =
|
|
22356
|
+
const level = _chunk56EP4QM2cjs.getConfidenceLevel.call(void 0, confidence);
|
|
22357
22357
|
if (level === "none") {
|
|
22358
22358
|
return null;
|
|
22359
22359
|
}
|
|
22360
|
-
const label =
|
|
22361
|
-
const borderClass =
|
|
22362
|
-
const textClass =
|
|
22363
|
-
const bgClass =
|
|
22360
|
+
const label = _chunk56EP4QM2cjs.getConfidenceLabel.call(void 0, confidence);
|
|
22361
|
+
const borderClass = _chunk56EP4QM2cjs.getConfidenceBorderClass.call(void 0, confidence);
|
|
22362
|
+
const textClass = _chunk56EP4QM2cjs.getConfidenceTextClass.call(void 0, confidence);
|
|
22363
|
+
const bgClass = _chunk56EP4QM2cjs.getConfidenceBgClass.call(void 0, confidence);
|
|
22364
22364
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
22365
22365
|
"span",
|
|
22366
22366
|
{
|
|
@@ -22411,9 +22411,9 @@ function SEOEditorPreview({
|
|
|
22411
22411
|
const [isUploading, setIsUploading] = _react.useState.call(void 0, false);
|
|
22412
22412
|
const [fileInputRef, setFileInputRef] = _react.useState.call(void 0, null);
|
|
22413
22413
|
const seoTitleLength = (seoTitle || "").length;
|
|
22414
|
-
const seoTitleTooLong = seoTitleLength >
|
|
22414
|
+
const seoTitleTooLong = seoTitleLength > _chunk56EP4QM2cjs.SEO_TITLE_MAX_LENGTH;
|
|
22415
22415
|
const seoDescriptionLength = (seoDescription || "").length;
|
|
22416
|
-
const seoDescriptionTooLong = seoDescriptionLength >
|
|
22416
|
+
const seoDescriptionTooLong = seoDescriptionLength > _chunk56EP4QM2cjs.SEO_DESCRIPTION_MAX_LENGTH;
|
|
22417
22417
|
const displayTitle = seoTitle.trim() || title || "Untitled";
|
|
22418
22418
|
const displayDescription = seoDescription.trim() || summary || "No description";
|
|
22419
22419
|
const hasOgImage = ogImageUrl.trim();
|
|
@@ -22438,10 +22438,10 @@ function SEOEditorPreview({
|
|
|
22438
22438
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
22439
22439
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
22440
22440
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22441
|
-
|
|
22441
|
+
_chunk56EP4QM2cjs.Field,
|
|
22442
22442
|
{
|
|
22443
22443
|
label: "SEO Title",
|
|
22444
|
-
error: seoTitleTooLong ? `Too long: search engines may truncate this title (keep it under ${
|
|
22444
|
+
error: seoTitleTooLong ? `Too long: search engines may truncate this title (keep it under ${_chunk56EP4QM2cjs.SEO_TITLE_MAX_LENGTH})` : null,
|
|
22445
22445
|
labelExtras: aiConfidenceSeoTitle !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
22446
22446
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
|
|
22447
22447
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ConfidenceBadge, { confidence: aiConfidenceSeoTitle, showLabel: true, showPercentage: true, size: "sm" })
|
|
@@ -22456,7 +22456,7 @@ function SEOEditorPreview({
|
|
|
22456
22456
|
children: [
|
|
22457
22457
|
seoTitleLength,
|
|
22458
22458
|
"/",
|
|
22459
|
-
|
|
22459
|
+
_chunk56EP4QM2cjs.SEO_TITLE_MAX_LENGTH
|
|
22460
22460
|
]
|
|
22461
22461
|
}
|
|
22462
22462
|
),
|
|
@@ -22467,7 +22467,7 @@ function SEOEditorPreview({
|
|
|
22467
22467
|
value: seoTitle || "",
|
|
22468
22468
|
onChange: (e) => onSeoTitleChange(e.target.value),
|
|
22469
22469
|
disabled,
|
|
22470
|
-
maxLength:
|
|
22470
|
+
maxLength: _chunk56EP4QM2cjs.SEO_TITLE_MAX_LENGTH,
|
|
22471
22471
|
invalid: seoTitleTooLong,
|
|
22472
22472
|
placeholder: "Enter SEO meta title...",
|
|
22473
22473
|
className: "border-ods-border bg-ods-bg text-ods-text-primary"
|
|
@@ -22478,7 +22478,7 @@ function SEOEditorPreview({
|
|
|
22478
22478
|
!seoTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-accent text-h6", children: "Auto-populated from title" })
|
|
22479
22479
|
] }),
|
|
22480
22480
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22481
|
-
|
|
22481
|
+
_chunk56EP4QM2cjs.Field,
|
|
22482
22482
|
{
|
|
22483
22483
|
label: "SEO Keywords",
|
|
22484
22484
|
labelExtras: aiConfidenceSeoKeywords !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -22510,10 +22510,10 @@ function SEOEditorPreview({
|
|
|
22510
22510
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
22511
22511
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
22512
22512
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22513
|
-
|
|
22513
|
+
_chunk56EP4QM2cjs.Field,
|
|
22514
22514
|
{
|
|
22515
22515
|
label: "SEO Description",
|
|
22516
|
-
error: seoDescriptionTooLong ? `Too long: search engines may truncate this description (keep it under ${
|
|
22516
|
+
error: seoDescriptionTooLong ? `Too long: search engines may truncate this description (keep it under ${_chunk56EP4QM2cjs.SEO_DESCRIPTION_MAX_LENGTH})` : null,
|
|
22517
22517
|
labelExtras: aiConfidenceSeoDescription !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
22518
22518
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
|
|
22519
22519
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -22536,7 +22536,7 @@ function SEOEditorPreview({
|
|
|
22536
22536
|
children: [
|
|
22537
22537
|
seoDescriptionLength,
|
|
22538
22538
|
"/",
|
|
22539
|
-
|
|
22539
|
+
_chunk56EP4QM2cjs.SEO_DESCRIPTION_MAX_LENGTH
|
|
22540
22540
|
]
|
|
22541
22541
|
}
|
|
22542
22542
|
),
|
|
@@ -22547,7 +22547,7 @@ function SEOEditorPreview({
|
|
|
22547
22547
|
value: seoDescription || "",
|
|
22548
22548
|
onChange: (e) => onSeoDescriptionChange(e.target.value),
|
|
22549
22549
|
disabled,
|
|
22550
|
-
maxLength:
|
|
22550
|
+
maxLength: _chunk56EP4QM2cjs.SEO_DESCRIPTION_MAX_LENGTH,
|
|
22551
22551
|
invalid: seoDescriptionTooLong,
|
|
22552
22552
|
placeholder: "Enter SEO meta description...",
|
|
22553
22553
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "resize-none border-ods-border bg-ods-bg text-ods-text-primary", SEO_MEDIA_BOX_HEIGHT)
|
|
@@ -22807,9 +22807,9 @@ function SocialLinksManager({
|
|
|
22807
22807
|
children: [
|
|
22808
22808
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-8 w-8 items-center justify-center", children: Icon }),
|
|
22809
22809
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid flex-1 grid-cols-2 gap-3", children: [
|
|
22810
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
22811
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22812
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22810
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2BGLALP5cjs.Select, { value: link.platform, onValueChange: (value) => updateLink(index, "platform", value), children: [
|
|
22811
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectValue, {}) }),
|
|
22812
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectContent, { children: platforms.map((p) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: p.name, children: p.display_name }, p.name)) })
|
|
22813
22813
|
] }) }),
|
|
22814
22814
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22815
22815
|
_chunkSWF6TNZ3cjs.Input,
|
|
@@ -22827,15 +22827,15 @@ function SocialLinksManager({
|
|
|
22827
22827
|
)
|
|
22828
22828
|
] }),
|
|
22829
22829
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
22830
|
-
|
|
22830
|
+
_chunk2BGLALP5cjs.Select,
|
|
22831
22831
|
{
|
|
22832
22832
|
value: _nullishCoalesce(link.visibility, () => ( "external")),
|
|
22833
22833
|
onValueChange: (value) => updateLink(index, "visibility", value),
|
|
22834
22834
|
children: [
|
|
22835
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22836
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
22837
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22838
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22835
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectTrigger, { className: "w-[120px] shrink-0", "aria-label": "Social link visibility", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectValue, {}) }),
|
|
22836
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2BGLALP5cjs.SelectContent, { children: [
|
|
22837
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: "external", children: "Public" }),
|
|
22838
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: "internal", children: "Internal" })
|
|
22839
22839
|
] })
|
|
22840
22840
|
]
|
|
22841
22841
|
}
|
|
@@ -23259,7 +23259,7 @@ function VideoBitesDisplay({
|
|
|
23259
23259
|
filterPublished = true,
|
|
23260
23260
|
showTitle = true
|
|
23261
23261
|
}) {
|
|
23262
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23262
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5LED4QHZcjs.VideoBitesStrip, { bites, title, filterPublished, showTitle });
|
|
23263
23263
|
}
|
|
23264
23264
|
|
|
23265
23265
|
// src/components/features/walkthrough-video.tsx
|
|
@@ -23288,7 +23288,7 @@ function WalkthroughVideo({
|
|
|
23288
23288
|
onOpenChange,
|
|
23289
23289
|
defaultOpen,
|
|
23290
23290
|
defaultOpenPaused,
|
|
23291
|
-
deepLinkParam =
|
|
23291
|
+
deepLinkParam = _chunk56EP4QM2cjs.WALKTHROUGH_OPEN_QUERY_PARAM,
|
|
23292
23292
|
autoPlayCard = false,
|
|
23293
23293
|
label = "Play Demo Video",
|
|
23294
23294
|
placement,
|
|
@@ -23305,7 +23305,7 @@ function WalkthroughVideo({
|
|
|
23305
23305
|
const inline = placement === "inline";
|
|
23306
23306
|
const inScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
23307
23307
|
const dismissEnabled = dismissal !== false;
|
|
23308
|
-
const storageKey = dismissEnabled && dismissal.storageKey ||
|
|
23308
|
+
const storageKey = dismissEnabled && dismissal.storageKey || _chunk56EP4QM2cjs.WALKTHROUGH_VIDEO_DISMISS_KEY;
|
|
23309
23309
|
const dismissalId = _optionalChain([video, 'optionalAccess', _466 => _466.id]) != null ? String(video.id) : "dismissed";
|
|
23310
23310
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
23311
23311
|
const [dismissed, setDismissed] = _react.useState.call(void 0, false);
|
|
@@ -23317,7 +23317,7 @@ function WalkthroughVideo({
|
|
|
23317
23317
|
let delayElapsed = false;
|
|
23318
23318
|
let interacted = inline;
|
|
23319
23319
|
const reveal = () => {
|
|
23320
|
-
if (dismissEnabled &&
|
|
23320
|
+
if (dismissEnabled && _chunk56EP4QM2cjs.isWalkthroughDismissed.call(void 0, storageKey, dismissalId)) {
|
|
23321
23321
|
setDismissed(true);
|
|
23322
23322
|
return;
|
|
23323
23323
|
}
|
|
@@ -23354,7 +23354,7 @@ function WalkthroughVideo({
|
|
|
23354
23354
|
if (idleHandle !== null && typeof cic === "function") cic(idleHandle);
|
|
23355
23355
|
};
|
|
23356
23356
|
}, [appearDelayMs, dismissEnabled, storageKey, dismissalId, hasVideo, videoId, inline]);
|
|
23357
|
-
const hydrated =
|
|
23357
|
+
const hydrated = _chunk5LED4QHZcjs.useIsHydrated.call(void 0, );
|
|
23358
23358
|
const previewSuppressed = _react.useMemo.call(void 0, () => {
|
|
23359
23359
|
if (!hydrated) return false;
|
|
23360
23360
|
try {
|
|
@@ -23604,7 +23604,7 @@ function WalkthroughVideo({
|
|
|
23604
23604
|
(e) => {
|
|
23605
23605
|
e.stopPropagation();
|
|
23606
23606
|
pausePreviewNow();
|
|
23607
|
-
if (dismissEnabled)
|
|
23607
|
+
if (dismissEnabled) _chunk56EP4QM2cjs.dismissWalkthrough.call(void 0, storageKey, dismissalId);
|
|
23608
23608
|
setDismissed(true);
|
|
23609
23609
|
},
|
|
23610
23610
|
[dismissEnabled, storageKey, dismissalId, pausePreviewNow]
|
|
@@ -23779,7 +23779,7 @@ function WalkthroughVideo({
|
|
|
23779
23779
|
`card-${embedUrlKey}`
|
|
23780
23780
|
) }),
|
|
23781
23781
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23782
|
-
|
|
23782
|
+
_chunk5LED4QHZcjs.CardHitLayer,
|
|
23783
23783
|
{
|
|
23784
23784
|
label: video.title ? `${label}: ${video.title}` : label,
|
|
23785
23785
|
onPointerDown: pausePreviewNow,
|
|
@@ -23951,7 +23951,7 @@ function useWalkthroughVideo(opts) {
|
|
|
23951
23951
|
const { endpoint, initialData, enabled: enabledGiven = true, transformCaptionsUrl } = opts;
|
|
23952
23952
|
const inScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
23953
23953
|
const enabled = enabledGiven && !inScope;
|
|
23954
|
-
const captions =
|
|
23954
|
+
const captions = _chunk5LED4QHZcjs.useCaptions.call(void 0, );
|
|
23955
23955
|
const query = _reactquery.useQuery.call(void 0, {
|
|
23956
23956
|
queryKey: ["walkthrough-video", endpoint],
|
|
23957
23957
|
enabled,
|
|
@@ -24605,19 +24605,19 @@ function HighlightVideoSection({
|
|
|
24605
24605
|
/* @__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: [
|
|
24606
24606
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3MBQRCQcjs.Label, { children: "Target Duration" }),
|
|
24607
24607
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
24608
|
-
|
|
24608
|
+
_chunk2BGLALP5cjs.Select,
|
|
24609
24609
|
{
|
|
24610
24610
|
value: targetDurationSeconds.toString(),
|
|
24611
24611
|
onValueChange: (value) => onTargetDurationChange(parseInt(value)),
|
|
24612
24612
|
disabled,
|
|
24613
24613
|
children: [
|
|
24614
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24615
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
24616
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24617
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24618
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24619
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24620
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24614
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectTrigger, { className: "mt-1 bg-ods-bg-surface", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectValue, {}) }),
|
|
24615
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2BGLALP5cjs.SelectContent, { className: "bg-ods-card", children: [
|
|
24616
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: "60", children: "1 minute" }),
|
|
24617
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: "120", children: "2 minutes" }),
|
|
24618
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: "180", children: "3 minutes (Recommended)" }),
|
|
24619
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: "240", children: "4 minutes" }),
|
|
24620
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: "300", children: "5 minutes" })
|
|
24621
24621
|
] })
|
|
24622
24622
|
]
|
|
24623
24623
|
}
|
|
@@ -24702,20 +24702,20 @@ function HighlightConfigSection({
|
|
|
24702
24702
|
disabled = false,
|
|
24703
24703
|
className = ""
|
|
24704
24704
|
}) {
|
|
24705
|
-
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,
|
|
24706
|
-
|
|
24705
|
+
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, _chunk56EP4QM2cjs.Field, { label: "Target Duration", children: (f) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
24706
|
+
_chunk2BGLALP5cjs.Select,
|
|
24707
24707
|
{
|
|
24708
24708
|
value: targetDurationSeconds.toString(),
|
|
24709
24709
|
onValueChange: (value) => onTargetDurationChange(parseInt(value)),
|
|
24710
24710
|
disabled,
|
|
24711
24711
|
children: [
|
|
24712
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24713
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
24714
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24715
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24716
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24717
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24718
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24712
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectTrigger, { id: f.id, className: "bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectValue, {}) }),
|
|
24713
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2BGLALP5cjs.SelectContent, { className: "bg-ods-card", children: [
|
|
24714
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: "60", children: "1 minute" }),
|
|
24715
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: "120", children: "2 minutes" }),
|
|
24716
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: "180", children: "3 minutes (Recommended)" }),
|
|
24717
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: "240", children: "4 minutes" }),
|
|
24718
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: "300", children: "5 minutes" })
|
|
24719
24719
|
] })
|
|
24720
24720
|
]
|
|
24721
24721
|
}
|
|
@@ -24803,7 +24803,7 @@ var AIStatusIndicator = ({
|
|
|
24803
24803
|
}) => {
|
|
24804
24804
|
const config = statusConfig[status];
|
|
24805
24805
|
const displayText = message || config.label;
|
|
24806
|
-
const confidenceLabel = showConfidence && confidence !== void 0 ? `${
|
|
24806
|
+
const confidenceLabel = showConfidence && confidence !== void 0 ? `${_chunk56EP4QM2cjs.getConfidenceLabel.call(void 0, confidence)} (${confidence}%)` : null;
|
|
24807
24807
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "inline-flex items-center gap-2 rounded-lg px-3 py-1.5", config.bgColor, className), children: [
|
|
24808
24808
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24809
24809
|
_chunkUNFCRSYIcjs.SparklesIcon,
|
|
@@ -24811,7 +24811,7 @@ var AIStatusIndicator = ({
|
|
|
24811
24811
|
size: 16,
|
|
24812
24812
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
24813
24813
|
status === "loading" && _chunk3TOWCFIKcjs.LIVE_PULSE_CLASS,
|
|
24814
|
-
confidence !== void 0 && status === "success" ?
|
|
24814
|
+
confidence !== void 0 && status === "success" ? _chunk56EP4QM2cjs.getConfidenceTextClass.call(void 0, confidence) : config.color
|
|
24815
24815
|
)
|
|
24816
24816
|
}
|
|
24817
24817
|
),
|
|
@@ -24820,7 +24820,7 @@ var AIStatusIndicator = ({
|
|
|
24820
24820
|
{
|
|
24821
24821
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
24822
24822
|
"text-h6",
|
|
24823
|
-
confidence !== void 0 && status === "success" ?
|
|
24823
|
+
confidence !== void 0 && status === "success" ? _chunk56EP4QM2cjs.getConfidenceTextClass.call(void 0, confidence) : config.color
|
|
24824
24824
|
),
|
|
24825
24825
|
children: displayText
|
|
24826
24826
|
}
|
|
@@ -24830,8 +24830,8 @@ var AIStatusIndicator = ({
|
|
|
24830
24830
|
{
|
|
24831
24831
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
24832
24832
|
"rounded-full border px-2 py-0.5 text-h6",
|
|
24833
|
-
|
|
24834
|
-
|
|
24833
|
+
_chunk56EP4QM2cjs.getConfidenceBorderClass.call(void 0, confidence),
|
|
24834
|
+
_chunk56EP4QM2cjs.getConfidenceTextClass.call(void 0, confidence)
|
|
24835
24835
|
),
|
|
24836
24836
|
children: confidenceLabel
|
|
24837
24837
|
}
|
|
@@ -25407,12 +25407,12 @@ function ApprovalLevelView({
|
|
|
25407
25407
|
] });
|
|
25408
25408
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, READ_ONLY_ROW_CLASS, className), children: [
|
|
25409
25409
|
name,
|
|
25410
|
-
showLabel ? icon : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25410
|
+
showLabel ? icon : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWDNLMB7cjs.TouchFriendlyTooltip, { content: `${current.label}: ${current.hint}`, side: "top", children: icon })
|
|
25411
25411
|
] });
|
|
25412
25412
|
}
|
|
25413
25413
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, EDITABLE_ROW_CLASS, className), children: [
|
|
25414
25414
|
name,
|
|
25415
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25415
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipProvider, { delayDuration: 150, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25416
25416
|
ToggleGroup,
|
|
25417
25417
|
{
|
|
25418
25418
|
type: "single",
|
|
@@ -25429,8 +25429,8 @@ function ApprovalLevelView({
|
|
|
25429
25429
|
return (
|
|
25430
25430
|
// A plain tooltip (hover and keyboard focus): a tap must SELECT the level, and on
|
|
25431
25431
|
// touch the name beside the group says what is in force.
|
|
25432
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25433
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25432
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYJZ7R3W5cjs.Tooltip, { children: [
|
|
25433
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25434
25434
|
ToggleGroupItem,
|
|
25435
25435
|
{
|
|
25436
25436
|
value: level,
|
|
@@ -25439,7 +25439,7 @@ function ApprovalLevelView({
|
|
|
25439
25439
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { size: ICON_PX, "aria-hidden": true })
|
|
25440
25440
|
}
|
|
25441
25441
|
) }),
|
|
25442
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25442
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYJZ7R3W5cjs.TooltipContent, { side: "top", className: "max-w-xs", children: [
|
|
25443
25443
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "b", { children: label }),
|
|
25444
25444
|
": ",
|
|
25445
25445
|
hint
|
|
@@ -25452,7 +25452,7 @@ function ApprovalLevelView({
|
|
|
25452
25452
|
] });
|
|
25453
25453
|
}
|
|
25454
25454
|
function ApprovalLevelSkeleton({ editable = false, showLabel = true, className }) {
|
|
25455
|
-
const name = showLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: LEVEL_NAME_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25455
|
+
const name = showLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: LEVEL_NAME_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5LED4QHZcjs.TextHold, { children: LONGEST_LEVEL_LABEL }) }) : null;
|
|
25456
25456
|
if (!editable) {
|
|
25457
25457
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { "aria-hidden": true, className: _chunk63A4GZMBcjs.cn.call(void 0, READ_ONLY_ROW_CLASS, className), children: [
|
|
25458
25458
|
name,
|
|
@@ -25554,7 +25554,7 @@ var CategorySection = ({
|
|
|
25554
25554
|
}) => {
|
|
25555
25555
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingGiven;
|
|
25556
25556
|
const isExpanded = isExpandedProp && !loading;
|
|
25557
|
-
const { innerRef, containerStyle } =
|
|
25557
|
+
const { innerRef, containerStyle } = _chunkQTLWU6FYcjs.useCollapsible.call(void 0, { expanded: isExpanded, durationMs: 300 });
|
|
25558
25558
|
const handleBulkChange = (level) => onBulkLevelChange(category.id, level);
|
|
25559
25559
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
25560
25560
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -25711,7 +25711,7 @@ function OpenPolicyButton({ href, name }) {
|
|
|
25711
25711
|
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,
|
|
25712
25712
|
_chunkFCZAUK4Dcjs.Button,
|
|
25713
25713
|
{
|
|
25714
|
-
onClick: loading ? void 0 :
|
|
25714
|
+
onClick: loading ? void 0 : _chunk56EP4QM2cjs.openInNewTab.call(void 0, href),
|
|
25715
25715
|
disabled: loading,
|
|
25716
25716
|
variant: "outline",
|
|
25717
25717
|
size: "icon",
|
|
@@ -25750,8 +25750,8 @@ function PoliciesTable({
|
|
|
25750
25750
|
accessorKey: "name",
|
|
25751
25751
|
header: "Name",
|
|
25752
25752
|
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: [
|
|
25753
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25754
|
-
row.original.description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25753
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { children: row.original.name }),
|
|
25754
|
+
row.original.description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { variant: "h6", tone: "secondary", children: row.original.description })
|
|
25755
25755
|
] }),
|
|
25756
25756
|
meta: { width: "flex-1 min-w-0" }
|
|
25757
25757
|
},
|
|
@@ -25893,7 +25893,7 @@ function PolicySummaryCards({ summary, isLoading = false, hasData = true, now })
|
|
|
25893
25893
|
DashboardInfoCard,
|
|
25894
25894
|
{
|
|
25895
25895
|
title: "Updated",
|
|
25896
|
-
value: hasData && summary.lastUpdatedAt ?
|
|
25896
|
+
value: hasData && summary.lastUpdatedAt ? _chunkQTLWU6FYcjs.formatRelativeTimeFrom.call(void 0, summary.lastUpdatedAt, _nullishCoalesce(now, () => ( /* @__PURE__ */ new Date()))) : EMPTY_VALUE,
|
|
25897
25897
|
valueClassName: "!text-h3",
|
|
25898
25898
|
tooltip: "Policy compliance stats are updated hourly. View a policy's devices for real-time status."
|
|
25899
25899
|
}
|
|
@@ -26009,7 +26009,7 @@ function toValidInstant(iso) {
|
|
|
26009
26009
|
function formatLastRead(iso, now = /* @__PURE__ */ new Date()) {
|
|
26010
26010
|
const date = toValidInstant(iso);
|
|
26011
26011
|
if (!date) return TENANT_EMPTY_VALUE;
|
|
26012
|
-
return now.getTime() - date.getTime() < DAY_MS ?
|
|
26012
|
+
return now.getTime() - date.getTime() < DAY_MS ? _chunkQTLWU6FYcjs.formatRelativeTimeFrom.call(void 0, date, now) : _chunkIBD2FPSXcjs.formatDate.call(void 0, date);
|
|
26013
26013
|
}
|
|
26014
26014
|
function usersCountLabel(count) {
|
|
26015
26015
|
if (count == null) return TENANT_EMPTY_VALUE;
|
|
@@ -26022,7 +26022,7 @@ function TenantAccessCell({ accessState, lastReadAt: lastReadAt2, now }) {
|
|
|
26022
26022
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
26023
26023
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26024
26024
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGRHF5SWLcjs.Tag, { ...accessStateTag(accessState), loading, className: "self-start" }),
|
|
26025
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26025
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { variant: "h6", tone: "secondary", loading, children: `Last read: ${formatLastRead(lastReadAt2, now)}` })
|
|
26026
26026
|
] });
|
|
26027
26027
|
}
|
|
26028
26028
|
|
|
@@ -26034,9 +26034,9 @@ function TenantCell({ provider, name, domain }) {
|
|
|
26034
26034
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
26035
26035
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26036
26036
|
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.MediaSkeleton.Icon, { size: "md", className: "shrink-0" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Logo, { size: 24, role: "img", "aria-label": label, className: "shrink-0" }),
|
|
26037
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26037
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { children: name })
|
|
26038
26038
|
] }),
|
|
26039
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26039
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { variant: "h6", tone: "secondary", loading, children: _nullishCoalesce(domain, () => ( TENANT_EMPTY_VALUE)) })
|
|
26040
26040
|
] });
|
|
26041
26041
|
}
|
|
26042
26042
|
|
|
@@ -26047,9 +26047,9 @@ function TenantCustomerCell({ name, imageUrl, userCount }) {
|
|
|
26047
26047
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
26048
26048
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26049
26049
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGRHF5SWLcjs.SquareAvatar, { src: _nullishCoalesce(imageUrl, () => ( void 0)), alt: name, fallback: name, size: "xs", variant: "square" }),
|
|
26050
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26050
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { children: name })
|
|
26051
26051
|
] }),
|
|
26052
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26052
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { variant: "h6", tone: "secondary", loading, children: usersCountLabel(userCount) })
|
|
26053
26053
|
] });
|
|
26054
26054
|
}
|
|
26055
26055
|
|
|
@@ -26085,7 +26085,7 @@ function OpenTenantButton({ href, name }) {
|
|
|
26085
26085
|
/* @__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,
|
|
26086
26086
|
_chunkFCZAUK4Dcjs.Button,
|
|
26087
26087
|
{
|
|
26088
|
-
onClick: loading ? void 0 :
|
|
26088
|
+
onClick: loading ? void 0 : _chunk56EP4QM2cjs.openInNewTab.call(void 0, href),
|
|
26089
26089
|
disabled: loading,
|
|
26090
26090
|
variant: "outline",
|
|
26091
26091
|
size: "icon",
|
|
@@ -26220,7 +26220,7 @@ function WaitlistForm({
|
|
|
26220
26220
|
const { toast } = _chunkAY6XJOINcjs.useToast.call(void 0, );
|
|
26221
26221
|
const { honeypotInputProps, getSignals, resetSignals } = _chunkAY6XJOINcjs.useHumanitySignals.call(void 0, );
|
|
26222
26222
|
const [smsConsent, setSmsConsent] = _react.useState.call(void 0, false);
|
|
26223
|
-
const isClient =
|
|
26223
|
+
const isClient = _chunk5LED4QHZcjs.useIsHydrated.call(void 0, );
|
|
26224
26224
|
const [isPhoneInvalid, setIsPhoneInvalid] = _react.useState.call(void 0, false);
|
|
26225
26225
|
const [showConsentError, setShowConsentError] = _react.useState.call(void 0, false);
|
|
26226
26226
|
const rescue = _chunkAY6XJOINcjs.useFormRescue.call(void 0, {
|
|
@@ -26235,7 +26235,7 @@ function WaitlistForm({
|
|
|
26235
26235
|
_react.useEffect.call(void 0, () => {
|
|
26236
26236
|
rescue.track({ email, phone }, null);
|
|
26237
26237
|
}, [email, phone, rescue]);
|
|
26238
|
-
const isMailDomainGeneric =
|
|
26238
|
+
const isMailDomainGeneric = _chunk56EP4QM2cjs.hasGenericEmailDomain.call(void 0, email);
|
|
26239
26239
|
const [syncedDefaultEmail, setSyncedDefaultEmail] = _react.useState.call(void 0, defaultEmail);
|
|
26240
26240
|
if (syncedDefaultEmail !== defaultEmail) {
|
|
26241
26241
|
setSyncedDefaultEmail(defaultEmail);
|
|
@@ -26269,7 +26269,7 @@ function WaitlistForm({
|
|
|
26269
26269
|
setShowConsentError(true);
|
|
26270
26270
|
return;
|
|
26271
26271
|
}
|
|
26272
|
-
const finalPhone = phone ?
|
|
26272
|
+
const finalPhone = phone ? _chunk56EP4QM2cjs.formatPhoneE164.call(void 0, phone, countryCode) : void 0;
|
|
26273
26273
|
try {
|
|
26274
26274
|
await onRegister(email, finalPhone, getSignals(), rescue.submitFields());
|
|
26275
26275
|
rescue.complete();
|
|
@@ -26856,7 +26856,7 @@ var AppLayoutDrawerContent = _react.forwardRef.call(void 0,
|
|
|
26856
26856
|
}, [mobileBreakpoint]);
|
|
26857
26857
|
const panelRef = _react.useRef.call(void 0, null);
|
|
26858
26858
|
const available = useContainerExtent(resizable, isHorizontal, portalContainer);
|
|
26859
|
-
const { size, setSize, clampSize } =
|
|
26859
|
+
const { size, setSize, clampSize } = _chunkX425BGXScjs.useResizablePanelSize.call(void 0, {
|
|
26860
26860
|
enabled: resizable,
|
|
26861
26861
|
minSize,
|
|
26862
26862
|
maxSize,
|
|
@@ -26876,7 +26876,7 @@ var AppLayoutDrawerContent = _react.forwardRef.call(void 0,
|
|
|
26876
26876
|
"data-state": open ? "open" : "closed",
|
|
26877
26877
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
26878
26878
|
"absolute inset-0 z-[102] outline-none data-[state=closed]:pointer-events-none data-[state=open]:pointer-events-auto data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
26879
|
-
|
|
26879
|
+
_chunkX425BGXScjs.OVERLAY_BACKDROP_CLASS,
|
|
26880
26880
|
// Persist mode only: hold the fade-out's final (transparent) frame
|
|
26881
26881
|
// so the backdrop doesn't snap back to opacity 1 and dim the whole
|
|
26882
26882
|
// content area while the drawer is "closed" (see PERSIST_CLOSED_HOLD).
|
|
@@ -26919,7 +26919,7 @@ var AppLayoutDrawerContent = _react.forwardRef.call(void 0,
|
|
|
26919
26919
|
children: [
|
|
26920
26920
|
props["aria-label"] ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogPrimitive3.Title, { className: "sr-only", children: props["aria-label"] }) : null,
|
|
26921
26921
|
applyInlineSize && (!persist || open) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26922
|
-
|
|
26922
|
+
_chunk5LED4QHZcjs.PanelResizeHandle,
|
|
26923
26923
|
{
|
|
26924
26924
|
variant: "inLayout",
|
|
26925
26925
|
side: resolvedSide,
|
|
@@ -26958,11 +26958,11 @@ var AppLayoutDrawerContent = _react.forwardRef.call(void 0,
|
|
|
26958
26958
|
}
|
|
26959
26959
|
);
|
|
26960
26960
|
AppLayoutDrawerContent.displayName = "AppLayoutDrawerContent";
|
|
26961
|
-
var AppLayoutDrawerHeader =
|
|
26962
|
-
var AppLayoutDrawerTitle =
|
|
26963
|
-
var AppLayoutDrawerDescription =
|
|
26964
|
-
var AppLayoutDrawerBody =
|
|
26965
|
-
var AppLayoutDrawerFooter =
|
|
26961
|
+
var AppLayoutDrawerHeader = _chunkX425BGXScjs.DrawerHeader;
|
|
26962
|
+
var AppLayoutDrawerTitle = _chunkX425BGXScjs.DrawerTitle;
|
|
26963
|
+
var AppLayoutDrawerDescription = _chunkX425BGXScjs.DrawerDescription;
|
|
26964
|
+
var AppLayoutDrawerBody = _chunkX425BGXScjs.DrawerBody;
|
|
26965
|
+
var AppLayoutDrawerFooter = _chunkX425BGXScjs.DrawerFooter;
|
|
26966
26966
|
|
|
26967
26967
|
// src/components/features/notifications/notification-tile.tsx
|
|
26968
26968
|
|
|
@@ -27085,7 +27085,7 @@ function LoadedNotificationTile({
|
|
|
27085
27085
|
{
|
|
27086
27086
|
dateTime: createdAtIso,
|
|
27087
27087
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "shrink-0 whitespace-nowrap text-ods-text-secondary text-h6", lockscreen && "self-start"),
|
|
27088
|
-
children: _nullishCoalesce(timeLabel, () => (
|
|
27088
|
+
children: _nullishCoalesce(timeLabel, () => ( _chunkQTLWU6FYcjs.formatTicketRelativeTime.call(void 0, createdAtIso)))
|
|
27089
27089
|
}
|
|
27090
27090
|
) : null,
|
|
27091
27091
|
!lockscreen && (isLive || onComplete) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TILE_CONTROL_BOX_CLASS, children: [
|
|
@@ -27253,7 +27253,7 @@ function NotificationDrawer({
|
|
|
27253
27253
|
const unreadNotifications = notifications.filter((n) => !n.read);
|
|
27254
27254
|
const content = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
27255
27255
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "px-[var(--spacing-system-m)] pt-[var(--spacing-system-m)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27256
|
-
|
|
27256
|
+
_chunkX425BGXScjs.DrawerTitle,
|
|
27257
27257
|
{
|
|
27258
27258
|
hideClose: !showClose,
|
|
27259
27259
|
className: "truncate",
|
|
@@ -27316,8 +27316,8 @@ function NotificationDrawer({
|
|
|
27316
27316
|
}
|
|
27317
27317
|
) });
|
|
27318
27318
|
}
|
|
27319
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27320
|
-
|
|
27319
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX425BGXScjs.Drawer, { open: isOpen, onOpenChange: (v) => v ? open() : close(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27320
|
+
_chunkX425BGXScjs.DrawerContent,
|
|
27321
27321
|
{
|
|
27322
27322
|
side: "right",
|
|
27323
27323
|
"aria-describedby": void 0,
|
|
@@ -27642,7 +27642,7 @@ function ApprovalRequestNotificationTile({
|
|
|
27642
27642
|
const resolvedStatus = resolutionToStatus(_optionalChain([approval, 'optionalAccess', _571 => _571.resolution]));
|
|
27643
27643
|
const status = resolvedStatus !== "pending" ? resolvedStatus : _nullishCoalesce(localStatus, () => ( "pending"));
|
|
27644
27644
|
const batchData = _react.useMemo.call(void 0, () => approval ? approvalMetaToBatchData(approval) : null, [approval]);
|
|
27645
|
-
const { innerRef, containerStyle } =
|
|
27645
|
+
const { innerRef, containerStyle } = _chunkQTLWU6FYcjs.useCollapsible.call(void 0, { expanded });
|
|
27646
27646
|
if (!approval || !batchData) return null;
|
|
27647
27647
|
const tileNotification = {
|
|
27648
27648
|
...notification,
|
|
@@ -27705,7 +27705,7 @@ function ApprovalRequestNotificationTile({
|
|
|
27705
27705
|
}
|
|
27706
27706
|
)
|
|
27707
27707
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
27708
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27708
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.ApprovalStatusTag, { status }),
|
|
27709
27709
|
approval.resolvedByName ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: [
|
|
27710
27710
|
"by ",
|
|
27711
27711
|
approval.resolvedByName
|
|
@@ -27723,12 +27723,12 @@ function ApprovalRequestNotificationTile({
|
|
|
27723
27723
|
"aria-expanded": expanded,
|
|
27724
27724
|
"aria-label": toggleLabel,
|
|
27725
27725
|
className: APPROVAL_TOGGLE_BUTTON_CLASS,
|
|
27726
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27726
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.ExpandChevron, { expanded })
|
|
27727
27727
|
}
|
|
27728
27728
|
)
|
|
27729
27729
|
] }),
|
|
27730
27730
|
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,
|
|
27731
|
-
|
|
27731
|
+
_chunkQTLWU6FYcjs.ApprovalBatchMessage,
|
|
27732
27732
|
{
|
|
27733
27733
|
data: batchData,
|
|
27734
27734
|
showExecutionStatus: false,
|
|
@@ -27965,7 +27965,7 @@ function TimeTrackerPanel({
|
|
|
27965
27965
|
] }),
|
|
27966
27966
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "grid gap-[var(--spacing-system-m)]", showCustomer && "grid-cols-2"), children: [
|
|
27967
27967
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27968
|
-
|
|
27968
|
+
_chunk2BGLALP5cjs.Autocomplete,
|
|
27969
27969
|
{
|
|
27970
27970
|
value: selectedTicketId,
|
|
27971
27971
|
onChange: onSelectedTicketChange,
|
|
@@ -27981,7 +27981,7 @@ function TimeTrackerPanel({
|
|
|
27981
27981
|
}
|
|
27982
27982
|
),
|
|
27983
27983
|
showCustomer && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27984
|
-
|
|
27984
|
+
_chunk2BGLALP5cjs.Autocomplete,
|
|
27985
27985
|
{
|
|
27986
27986
|
value: _nullishCoalesce(selectedCustomerId, () => ( null)),
|
|
27987
27987
|
onChange: onSelectedCustomerChange,
|
|
@@ -28274,7 +28274,7 @@ function TimeTrackerHeaderButton({
|
|
|
28274
28274
|
"data-state": isOpen ? "open" : "closed",
|
|
28275
28275
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
28276
28276
|
layoutContainer ? "absolute inset-0 z-[102]" : "fixed inset-0 z-[1299]",
|
|
28277
|
-
|
|
28277
|
+
_chunkX425BGXScjs.OVERLAY_BACKDROP_CLASS,
|
|
28278
28278
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0",
|
|
28279
28279
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0"
|
|
28280
28280
|
)
|
|
@@ -28301,7 +28301,7 @@ function TimeTrackerHeaderButton({
|
|
|
28301
28301
|
|
|
28302
28302
|
// src/components/features/devices/device-last-online.ts
|
|
28303
28303
|
function formatLastOnline(lastSeen) {
|
|
28304
|
-
return `Last Online: ${lastSeen ?
|
|
28304
|
+
return `Last Online: ${lastSeen ? _chunkQTLWU6FYcjs.formatRelativeTime.call(void 0, lastSeen) : "\u2014"}`;
|
|
28305
28305
|
}
|
|
28306
28306
|
|
|
28307
28307
|
// src/components/features/devices/device-name.ts
|
|
@@ -28450,7 +28450,7 @@ function getDeviceStatusConfig(status) {
|
|
|
28450
28450
|
}
|
|
28451
28451
|
}
|
|
28452
28452
|
function getDeviceOperatingSystem(osType) {
|
|
28453
|
-
return
|
|
28453
|
+
return _chunk56EP4QM2cjs.getOSPlatformId.call(void 0, osType);
|
|
28454
28454
|
}
|
|
28455
28455
|
|
|
28456
28456
|
// src/components/features/devices/device-statuses.ts
|
|
@@ -28746,13 +28746,13 @@ function DevicesTableBody({
|
|
|
28746
28746
|
function OrganizationCell({ device }) {
|
|
28747
28747
|
const fullImageUrl = useDeviceImageUrl(device.organizationImageUrl, device.organizationImageHash);
|
|
28748
28748
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
28749
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28749
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.EntityImage, { src: fullImageUrl, alt: device.organization || "Customer", className: "size-12 content-md:size-12" }),
|
|
28750
28750
|
/* @__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 }) })
|
|
28751
28751
|
] });
|
|
28752
28752
|
}
|
|
28753
28753
|
function OrganizationName({ name }) {
|
|
28754
28754
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) && !name) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h4", className: "w-3/4" });
|
|
28755
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28755
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { lines: 2, children: _nullishCoalesce(name, () => ( "")) });
|
|
28756
28756
|
}
|
|
28757
28757
|
function DeviceLastSeen({ lastSeen }) {
|
|
28758
28758
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) && !lastSeen) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h6", className: "hidden w-24 content-md:block" });
|
|
@@ -28798,7 +28798,7 @@ function getDeviceTableColumns(deviceFilters, filtersPending) {
|
|
|
28798
28798
|
const device = row.original;
|
|
28799
28799
|
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: [
|
|
28800
28800
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeviceTypeTile, { type: device.type }),
|
|
28801
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28801
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { children: getDeviceName(device) }) })
|
|
28802
28802
|
] });
|
|
28803
28803
|
},
|
|
28804
28804
|
meta: { width: "flex-1 content-md:w-1/4" }
|
|
@@ -28970,7 +28970,7 @@ function CustomerCell({ device }) {
|
|
|
28970
28970
|
const fullImageUrl = useDeviceImageUrl(device.organizationImageUrl, device.organizationImageHash);
|
|
28971
28971
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
28972
28972
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28973
|
-
|
|
28973
|
+
_chunk2BGLALP5cjs.EntityImage,
|
|
28974
28974
|
{
|
|
28975
28975
|
src: fullImageUrl,
|
|
28976
28976
|
alt: device.organization || "Customer",
|
|
@@ -28978,8 +28978,8 @@ function CustomerCell({ device }) {
|
|
|
28978
28978
|
}
|
|
28979
28979
|
),
|
|
28980
28980
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
28981
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28982
|
-
(device.organizationEmail || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28981
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { children: device.organization || "" }),
|
|
28982
|
+
(device.organizationEmail || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(device.organizationEmail, () => ( "")) })
|
|
28983
28983
|
] })
|
|
28984
28984
|
] });
|
|
28985
28985
|
}
|
|
@@ -28988,8 +28988,8 @@ function DeviceCell({ device }) {
|
|
|
28988
28988
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 items-center gap-3", children: [
|
|
28989
28989
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeviceTypeTile, { type: device.type }),
|
|
28990
28990
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col", children: [
|
|
28991
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28992
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28991
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { children: getDeviceName(device) }),
|
|
28992
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { variant: "h6", tone: "secondary", loading, children: formatLastOnline(device.last_seen || device.lastSeen) })
|
|
28993
28993
|
] })
|
|
28994
28994
|
] });
|
|
28995
28995
|
}
|
|
@@ -30018,7 +30018,7 @@ function DevicesPanelView({
|
|
|
30018
30018
|
] })
|
|
30019
30019
|
] });
|
|
30020
30020
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30021
|
-
|
|
30021
|
+
_chunk2BGLALP5cjs.PageLayout,
|
|
30022
30022
|
{
|
|
30023
30023
|
title,
|
|
30024
30024
|
backButton,
|
|
@@ -30026,7 +30026,7 @@ function DevicesPanelView({
|
|
|
30026
30026
|
actionsVariant: "icon-buttons",
|
|
30027
30027
|
className,
|
|
30028
30028
|
selector: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30029
|
-
|
|
30029
|
+
_chunk5LED4QHZcjs.TabSelector,
|
|
30030
30030
|
{
|
|
30031
30031
|
value: viewMode,
|
|
30032
30032
|
onValueChange: (value) => _optionalChain([onViewModeChange, 'optionalCall', _654 => _654(value)]),
|
|
@@ -30092,7 +30092,7 @@ var PACKAGE_SEARCH_LABEL = "Software Name";
|
|
|
30092
30092
|
var PACKAGE_SEARCH_PLACEHOLDER = "Search for Software";
|
|
30093
30093
|
function PackageSearchFieldPlaceholder({ error }) {
|
|
30094
30094
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30095
|
-
|
|
30095
|
+
_chunk2BGLALP5cjs.Autocomplete,
|
|
30096
30096
|
{
|
|
30097
30097
|
label: PACKAGE_SEARCH_LABEL,
|
|
30098
30098
|
labelVariant: "large",
|
|
@@ -30147,16 +30147,16 @@ function SoftwareScheduleFields({
|
|
|
30147
30147
|
] }),
|
|
30148
30148
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
30149
30149
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3MBQRCQcjs.Label, { className: "text-h4", children: "Time" }),
|
|
30150
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30151
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30152
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30150
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2BGLALP5cjs.Select, { value: time, onValueChange: onTimeChange, children: [
|
|
30151
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectValue, { placeholder: "Select time" }) }),
|
|
30152
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectContent, { children: timeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
30153
30153
|
] })
|
|
30154
30154
|
] }),
|
|
30155
30155
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
30156
30156
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3MBQRCQcjs.Label, { className: "text-h4", children: "Timezone" }),
|
|
30157
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30158
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30159
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30157
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2BGLALP5cjs.Select, { value: timeReference, onValueChange: (value) => onTimeReferenceChange(value), children: [
|
|
30158
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectValue, {}) }),
|
|
30159
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectContent, { children: timing.timeReferenceOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
30160
30160
|
] })
|
|
30161
30161
|
] })
|
|
30162
30162
|
]
|
|
@@ -30222,22 +30222,22 @@ function newSoftwareRow(key) {
|
|
|
30222
30222
|
|
|
30223
30223
|
function InfoCell2({ value, label }) {
|
|
30224
30224
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
30225
|
-
/* @__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,
|
|
30225
|
+
/* @__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, _chunk2BGLALP5cjs.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" }) }) }),
|
|
30226
30226
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: label })
|
|
30227
30227
|
] });
|
|
30228
30228
|
}
|
|
30229
30229
|
function SoftwareRowFields({ row, removable, onChange, onRemove, renderPackageSearch }) {
|
|
30230
30230
|
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: [
|
|
30231
30231
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30232
|
-
|
|
30232
|
+
_chunk2BGLALP5cjs.Select,
|
|
30233
30233
|
{
|
|
30234
30234
|
value: row.packageManager,
|
|
30235
30235
|
onValueChange: (value) => onChange({ ...row, packageManager: value, pkg: null }),
|
|
30236
30236
|
children: [
|
|
30237
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30238
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30237
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectTrigger, { label: "Package Manager", labelVariant: "large", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectValue, {}) }),
|
|
30238
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectContent, { children: PACKAGE_MANAGERS.map((manager) => {
|
|
30239
30239
|
const Icon = PACKAGE_MANAGER_ICON[manager];
|
|
30240
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30240
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: manager, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
30241
30241
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { size: 20, className: "shrink-0 text-ods-text-secondary" }),
|
|
30242
30242
|
PACKAGE_MANAGER_LABEL[manager]
|
|
30243
30243
|
] }) }, manager);
|
|
@@ -30335,7 +30335,7 @@ function SoftwareActionForm({
|
|
|
30335
30335
|
}
|
|
30336
30336
|
);
|
|
30337
30337
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30338
|
-
|
|
30338
|
+
_chunk2BGLALP5cjs.PageLayout,
|
|
30339
30339
|
{
|
|
30340
30340
|
title: copy.formTitle,
|
|
30341
30341
|
backButton: onBack ? { label: "Back", onClick: onBack } : void 0,
|
|
@@ -30424,7 +30424,7 @@ function LogDrawer({
|
|
|
30424
30424
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-h-0 flex-1 space-y-4 overflow-y-auto", children: [
|
|
30425
30425
|
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 }) }),
|
|
30426
30426
|
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: [
|
|
30427
|
-
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,
|
|
30427
|
+
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, _chunk2BGLALP5cjs.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 }),
|
|
30428
30428
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: field.label })
|
|
30429
30429
|
] }, typeof field.label === "string" ? field.label : "")) }),
|
|
30430
30430
|
children
|
|
@@ -30472,7 +30472,7 @@ function LogsPageView({
|
|
|
30472
30472
|
],
|
|
30473
30473
|
[onRefresh]
|
|
30474
30474
|
);
|
|
30475
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30475
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2BGLALP5cjs.PageLayout, { title: "Logs", actions, showHeader, className, children: [
|
|
30476
30476
|
!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: [
|
|
30477
30477
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30478
30478
|
_chunkSWF6TNZ3cjs.Input,
|
|
@@ -30561,11 +30561,11 @@ var ToolBadge = ({
|
|
|
30561
30561
|
iconClassName
|
|
30562
30562
|
}) => {
|
|
30563
30563
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
30564
|
-
const text = _nullishCoalesce(label, () => ( (toolType ?
|
|
30564
|
+
const text = _nullishCoalesce(label, () => ( (toolType ? _chunk56EP4QM2cjs.getToolLabel.call(void 0, toolType) : "")));
|
|
30565
30565
|
const mark = _nullishCoalesce(icon, () => ( (toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKPGKTEEBcjs.ToolIcon, { toolType, className: iconClassName, size: 16 }) : null)));
|
|
30566
30566
|
if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ToolBadgeSkeleton, { variant, icon: !!mark, className });
|
|
30567
30567
|
const linked = (node, linkClassName) => href && targetPlatform ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30568
|
-
|
|
30568
|
+
_chunk5LED4QHZcjs.NavLinkAnchorViaRuntime,
|
|
30569
30569
|
{
|
|
30570
30570
|
href,
|
|
30571
30571
|
targetPlatform,
|
|
@@ -30630,8 +30630,8 @@ function LogSourceCell({ device }) {
|
|
|
30630
30630
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
30631
30631
|
const { deviceName, organization } = logSourceLabels(device);
|
|
30632
30632
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-h-[60px] flex-col justify-center gap-1 py-2", children: [
|
|
30633
|
-
(deviceName || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30634
|
-
(organization || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30633
|
+
(deviceName || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { children: deviceName }),
|
|
30634
|
+
(organization || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(organization, () => ( "")) })
|
|
30635
30635
|
] });
|
|
30636
30636
|
}
|
|
30637
30637
|
function LogRowButton({
|
|
@@ -30686,8 +30686,8 @@ function LogsTableView({
|
|
|
30686
30686
|
accessorKey: "logId",
|
|
30687
30687
|
header: logIdHeader ? () => logIdHeader : "Log ID",
|
|
30688
30688
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col justify-center", children: [
|
|
30689
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30690
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30689
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { children: row.original.timestamp }),
|
|
30690
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { variant: "h6", tone: "secondary", children: row.original.logId })
|
|
30691
30691
|
] }),
|
|
30692
30692
|
enableSorting: false,
|
|
30693
30693
|
meta: { width: LOG_COLUMN_WIDTHS.logId, alwaysShowHeader: true }
|
|
@@ -30715,7 +30715,7 @@ function LogsTableView({
|
|
|
30715
30715
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30716
30716
|
ToolBadge,
|
|
30717
30717
|
{
|
|
30718
|
-
toolType:
|
|
30718
|
+
toolType: _chunk56EP4QM2cjs.normalizeToolTypeWithFallback.call(void 0, row.original.source.toolType),
|
|
30719
30719
|
iconClassName: "h-4 w-4 content-md:h-6 content-md:w-6"
|
|
30720
30720
|
}
|
|
30721
30721
|
),
|
|
@@ -30727,7 +30727,7 @@ function LogsTableView({
|
|
|
30727
30727
|
filter: {
|
|
30728
30728
|
options: _nullishCoalesce(_optionalChain([facets, 'optionalAccess', _662 => _662.toolTypes, 'access', _663 => _663.map, 'call', _664 => _664((toolType) => ({
|
|
30729
30729
|
id: toolType,
|
|
30730
|
-
label:
|
|
30730
|
+
label: _chunk56EP4QM2cjs.toToolLabel.call(void 0, toolType),
|
|
30731
30731
|
value: toolType
|
|
30732
30732
|
}))]), () => ( []))
|
|
30733
30733
|
}
|
|
@@ -30748,7 +30748,7 @@ function LogsTableView({
|
|
|
30748
30748
|
{
|
|
30749
30749
|
accessorKey: "description",
|
|
30750
30750
|
header: "Log Details",
|
|
30751
|
-
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30751
|
+
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { lines: 3, className: "text-ods-text-secondary text-h6", children: row.original.description.title }),
|
|
30752
30752
|
enableSorting: false,
|
|
30753
30753
|
meta: { width: LOG_COLUMN_WIDTHS.description, hideAt: "lg" }
|
|
30754
30754
|
},
|
|
@@ -30776,7 +30776,7 @@ function LogsTableView({
|
|
|
30776
30776
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30777
30777
|
LogRowButton,
|
|
30778
30778
|
{
|
|
30779
|
-
onClick: getLogHref ?
|
|
30779
|
+
onClick: getLogHref ? _chunk56EP4QM2cjs.openInNewTab.call(void 0, getLogHref(row.original)) : void 0,
|
|
30780
30780
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
30781
30781
|
label: "Open in new tab"
|
|
30782
30782
|
}
|
|
@@ -30941,14 +30941,14 @@ function ExecutionSourceBadge({ source, className }) {
|
|
|
30941
30941
|
const tagProps = { as: "span", variant: "outline", className: _chunk63A4GZMBcjs.cn.call(void 0, "shrink-0", className) };
|
|
30942
30942
|
if (source === "SCHEDULED") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGRHF5SWLcjs.Tag, { ...tagProps, label: "Scheduled" });
|
|
30943
30943
|
if (source === "AI_ASSISTANT") {
|
|
30944
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGRHF5SWLcjs.Tag, { ...tagProps, label: "Mingo", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30944
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGRHF5SWLcjs.Tag, { ...tagProps, label: "Mingo", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.AgentMark, { agent: "mingo", className: "size-4" }) });
|
|
30945
30945
|
}
|
|
30946
30946
|
return null;
|
|
30947
30947
|
}
|
|
30948
30948
|
function ExecutionTimestampCell({ timestamp, executionId }) {
|
|
30949
30949
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
30950
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30951
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30950
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { children: timestamp }),
|
|
30951
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { variant: "h6", tone: "secondary", children: executionId })
|
|
30952
30952
|
] });
|
|
30953
30953
|
}
|
|
30954
30954
|
function ExecutionStatusCell({ status }) {
|
|
@@ -30960,9 +30960,9 @@ function ExecutionDeviceCell({ name, organization }) {
|
|
|
30960
30960
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
30961
30961
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-1", children: [
|
|
30962
30962
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPTK7GOIIcjs.MonitorIcon, { className: "size-6 shrink-0 text-ods-text-secondary" }),
|
|
30963
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30963
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { children: name }) : name })
|
|
30964
30964
|
] }),
|
|
30965
|
-
(organization || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30965
|
+
(organization || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(organization, () => ( "")) })
|
|
30966
30966
|
] });
|
|
30967
30967
|
}
|
|
30968
30968
|
function ExecutionInitiatorCell({
|
|
@@ -30975,16 +30975,16 @@ function ExecutionInitiatorCell({
|
|
|
30975
30975
|
avatar,
|
|
30976
30976
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
30977
30977
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
30978
|
-
typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30978
|
+
typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { children: name }) : name,
|
|
30979
30979
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExecutionSourceBadge, { source })
|
|
30980
30980
|
] }),
|
|
30981
|
-
scriptName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30981
|
+
scriptName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { variant: "h6", tone: "secondary", children: scriptName })
|
|
30982
30982
|
] })
|
|
30983
30983
|
] });
|
|
30984
30984
|
}
|
|
30985
30985
|
function ExecutionResultCell({ result, empty = null }) {
|
|
30986
30986
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
30987
|
-
return result || loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30987
|
+
return result || loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { lines: 2, children: _nullishCoalesce(result, () => ( "")) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: empty });
|
|
30988
30988
|
}
|
|
30989
30989
|
function ScriptExecutionResult({
|
|
30990
30990
|
result,
|
|
@@ -31004,14 +31004,14 @@ function ScriptExecutionResult({
|
|
|
31004
31004
|
|
|
31005
31005
|
function ScriptNameCell({ name, description }) {
|
|
31006
31006
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31007
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31008
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31007
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { children: name }),
|
|
31008
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { variant: "h6", tone: "secondary", children: description })
|
|
31009
31009
|
] });
|
|
31010
31010
|
}
|
|
31011
31011
|
function ScheduleDateTimeCell({ date, time }) {
|
|
31012
31012
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31013
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31014
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31013
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { children: date }),
|
|
31014
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { variant: "h6", tone: "secondary", children: time })
|
|
31015
31015
|
] });
|
|
31016
31016
|
}
|
|
31017
31017
|
|
|
@@ -31098,7 +31098,7 @@ function OpenInNewTabCell({ href }) {
|
|
|
31098
31098
|
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,
|
|
31099
31099
|
_chunkFCZAUK4Dcjs.Button,
|
|
31100
31100
|
{
|
|
31101
|
-
onClick: loading ? void 0 :
|
|
31101
|
+
onClick: loading ? void 0 : _chunk56EP4QM2cjs.openInNewTab.call(void 0, href),
|
|
31102
31102
|
disabled: loading,
|
|
31103
31103
|
variant: "outline",
|
|
31104
31104
|
size: "icon",
|
|
@@ -31241,7 +31241,7 @@ function ScriptSchedulesTable({
|
|
|
31241
31241
|
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" })),
|
|
31242
31242
|
cell(
|
|
31243
31243
|
SCHEDULE_COLUMNS.dateTime,
|
|
31244
|
-
(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,
|
|
31244
|
+
(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, _chunk2BGLALP5cjs.TruncateText, { tone: "secondary", children: row.trigger }) : null
|
|
31245
31245
|
),
|
|
31246
31246
|
cell(
|
|
31247
31247
|
SCHEDULE_COLUMNS.repeat,
|
|
@@ -31287,9 +31287,9 @@ function ScriptSchedulesTable({
|
|
|
31287
31287
|
|
|
31288
31288
|
// src/components/features/scripts/shell-types.ts
|
|
31289
31289
|
var SCRIPT_SHELL_TYPES = [
|
|
31290
|
-
{ id:
|
|
31291
|
-
{ id:
|
|
31292
|
-
{ id:
|
|
31290
|
+
{ id: _chunk56EP4QM2cjs.ShellTypeValues.POWERSHELL, label: "PowerShell", value: "powershell", icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon },
|
|
31291
|
+
{ id: _chunk56EP4QM2cjs.ShellTypeValues.CMD, label: "CMD", value: "cmd", icon: _chunkNIVJEJSGcjs.TerminalSquareIcon },
|
|
31292
|
+
{ id: _chunk56EP4QM2cjs.ShellTypeValues.BASH, label: "Bash", value: "bash", icon: _chunkTRUW6DDAcjs.TerminalIcon }
|
|
31293
31293
|
];
|
|
31294
31294
|
function scriptShellType(value) {
|
|
31295
31295
|
return SCRIPT_SHELL_TYPES.find((shell) => shell.value === value);
|
|
@@ -31365,7 +31365,7 @@ function ScriptsTable({
|
|
|
31365
31365
|
initialsClassName: "text-ods-text-secondary"
|
|
31366
31366
|
}
|
|
31367
31367
|
),
|
|
31368
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31368
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { children: row.author.name }) })
|
|
31369
31369
|
] }) : null
|
|
31370
31370
|
)
|
|
31371
31371
|
];
|
|
@@ -31713,7 +31713,7 @@ function ReconnectWindowFields({
|
|
|
31713
31713
|
}
|
|
31714
31714
|
),
|
|
31715
31715
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
31716
|
-
|
|
31716
|
+
_chunk2BGLALP5cjs.Select,
|
|
31717
31717
|
{
|
|
31718
31718
|
value: unit,
|
|
31719
31719
|
onValueChange: (value) => {
|
|
@@ -31722,8 +31722,8 @@ function ReconnectWindowFields({
|
|
|
31722
31722
|
},
|
|
31723
31723
|
disabled,
|
|
31724
31724
|
children: [
|
|
31725
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31726
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31725
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectTrigger, { className: controlWidth, "aria-label": "Stop retry after unit", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectValue, {}) }),
|
|
31726
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectContent, { children: DURATION_UNIT_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
31727
31727
|
]
|
|
31728
31728
|
}
|
|
31729
31729
|
)
|
|
@@ -31793,7 +31793,7 @@ function ScheduleOfflineFields({ showErrors, disabled = false }) {
|
|
|
31793
31793
|
options
|
|
31794
31794
|
}
|
|
31795
31795
|
),
|
|
31796
|
-
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,
|
|
31796
|
+
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, _chunk2BGLALP5cjs.TruncateText, { variant: "h6", className: "text-ods-error", children: intervalError }) })
|
|
31797
31797
|
]
|
|
31798
31798
|
}
|
|
31799
31799
|
) }) })
|
|
@@ -31902,8 +31902,8 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
|
|
|
31902
31902
|
// Dragging towards the edge of the screen — or past it — scrolls whatever
|
|
31903
31903
|
// actually scrolls there: the page, the layout's `<main>`, or the list
|
|
31904
31904
|
// itself when it has its own overflow.
|
|
31905
|
-
|
|
31906
|
-
|
|
31905
|
+
_chunkWWDNLMB7cjs.autoScrollAncestors.call(void 0, list),
|
|
31906
|
+
_chunkWWDNLMB7cjs.autoScrollBothWays.call(void 0, list),
|
|
31907
31907
|
// One target for the whole list: which slot a drop lands in is answered by
|
|
31908
31908
|
// geometry, so this only has to say "inside the list, or outside it".
|
|
31909
31909
|
_adapter.dropTargetForElements.call(void 0, {
|
|
@@ -32201,7 +32201,7 @@ function useSortableItem() {
|
|
|
32201
32201
|
return _combine.combine.call(void 0,
|
|
32202
32202
|
// The drag has to start as a "move", or its first frame is drawn with the
|
|
32203
32203
|
// copy cursor — see `drag-effect.ts`.
|
|
32204
|
-
|
|
32204
|
+
_chunkWWDNLMB7cjs.holdMoveDragEffect.call(void 0, item),
|
|
32205
32205
|
_adapter.draggable.call(void 0, {
|
|
32206
32206
|
element: item,
|
|
32207
32207
|
dragHandle: handle,
|
|
@@ -32631,24 +32631,24 @@ function ScheduleTimingFields({
|
|
|
32631
32631
|
// `''` reads as "no selection" to Radix, so the placeholder shows
|
|
32632
32632
|
// until a slot is picked — a date at midnight no longer
|
|
32633
32633
|
// masquerades as a chosen 12:00 AM.
|
|
32634
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
32634
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2BGLALP5cjs.Select, { value: field.value, onValueChange: field.onChange, disabled: fieldsDisabled, children: [
|
|
32635
32635
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32636
|
-
|
|
32636
|
+
_chunk2BGLALP5cjs.SelectTrigger,
|
|
32637
32637
|
{
|
|
32638
32638
|
className: "w-full",
|
|
32639
32639
|
error: _nullishCoalesce(pastTimeError, () => ( (showErrors ? _optionalChain([fieldState, 'access', _716 => _716.error, 'optionalAccess', _717 => _717.message]) : void 0))),
|
|
32640
32640
|
invalid: !!pastTimeError || showErrors && !!fieldState.error,
|
|
32641
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32641
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectValue, { placeholder: "Select time" })
|
|
32642
32642
|
}
|
|
32643
32643
|
),
|
|
32644
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32644
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectContent, { children: timeSlots.length === 0 ? (
|
|
32645
32645
|
// Deliberately NOT a `SelectItem` — there is nothing here
|
|
32646
32646
|
// to select, and a selectable row would put a bogus value
|
|
32647
32647
|
// in the form. It replaces a popup that opened blank; the
|
|
32648
32648
|
// Date field carries the same sentence for whoever never
|
|
32649
32649
|
// opens this one.
|
|
32650
32650
|
/* @__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 })
|
|
32651
|
-
) : timeSlots.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32651
|
+
) : timeSlots.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
32652
32652
|
] })
|
|
32653
32653
|
)
|
|
32654
32654
|
}
|
|
@@ -32662,7 +32662,7 @@ function ScheduleTimingFields({
|
|
|
32662
32662
|
name: "timeReference",
|
|
32663
32663
|
control,
|
|
32664
32664
|
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
32665
|
-
|
|
32665
|
+
_chunk2BGLALP5cjs.Select,
|
|
32666
32666
|
{
|
|
32667
32667
|
value: field.value,
|
|
32668
32668
|
onValueChange: (value) => {
|
|
@@ -32671,8 +32671,8 @@ function ScheduleTimingFields({
|
|
|
32671
32671
|
},
|
|
32672
32672
|
disabled: fieldsDisabled,
|
|
32673
32673
|
children: [
|
|
32674
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32675
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32674
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectTrigger, { className: "w-full", "aria-label": "Timezone", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectValue, {}) }),
|
|
32675
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectContent, { children: SCHEDULE_TIME_REFERENCE_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
32676
32676
|
]
|
|
32677
32677
|
}
|
|
32678
32678
|
)
|
|
@@ -32732,7 +32732,7 @@ function ScheduleTimingFields({
|
|
|
32732
32732
|
name: "repeatUnit",
|
|
32733
32733
|
control,
|
|
32734
32734
|
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
32735
|
-
|
|
32735
|
+
_chunk2BGLALP5cjs.Select,
|
|
32736
32736
|
{
|
|
32737
32737
|
value: field.value,
|
|
32738
32738
|
onValueChange: (value) => {
|
|
@@ -32745,8 +32745,8 @@ function ScheduleTimingFields({
|
|
|
32745
32745
|
},
|
|
32746
32746
|
disabled: fieldsDisabled || !repeatEnabled,
|
|
32747
32747
|
children: [
|
|
32748
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32749
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32748
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectValue, {}) }),
|
|
32749
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectContent, { children: DURATION_UNIT_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
32750
32750
|
]
|
|
32751
32751
|
}
|
|
32752
32752
|
)
|
|
@@ -32765,7 +32765,7 @@ function ScheduleFormFields({
|
|
|
32765
32765
|
disabled = false,
|
|
32766
32766
|
renderScriptSearch,
|
|
32767
32767
|
timeReferenceGate = "off",
|
|
32768
|
-
platforms =
|
|
32768
|
+
platforms = _chunk56EP4QM2cjs.OS_PLATFORMS,
|
|
32769
32769
|
comingSoonPlatforms = [],
|
|
32770
32770
|
getTimeSlots,
|
|
32771
32771
|
nameLayout = "stacked",
|
|
@@ -32835,7 +32835,7 @@ function ScheduleFormFields({
|
|
|
32835
32835
|
platform.id
|
|
32836
32836
|
);
|
|
32837
32837
|
}) }),
|
|
32838
|
-
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,
|
|
32838
|
+
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, _chunk2BGLALP5cjs.TruncateText, { variant: "h6", className: "text-ods-error", children: _nullishCoalesce(formState.errors.supportedPlatforms.message, () => ( "")) }) })
|
|
32839
32839
|
]
|
|
32840
32840
|
}
|
|
32841
32841
|
);
|
|
@@ -32911,7 +32911,7 @@ function ScheduleFormFields({
|
|
|
32911
32911
|
// src/components/features/scripts/schedule-form/schedule-script-search-field.tsx
|
|
32912
32912
|
|
|
32913
32913
|
function ScriptPlatformIcons({ platforms }) {
|
|
32914
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex shrink-0 items-center gap-0.5", children:
|
|
32914
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex shrink-0 items-center gap-0.5", children: _chunk56EP4QM2cjs.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)) });
|
|
32915
32915
|
}
|
|
32916
32916
|
function ScheduleScriptSearchField({
|
|
32917
32917
|
scriptId,
|
|
@@ -32937,7 +32937,7 @@ function ScheduleScriptSearchField({
|
|
|
32937
32937
|
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: [
|
|
32938
32938
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3MBQRCQcjs.Label, { className: "text-h4", children: "Select Script" }),
|
|
32939
32939
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32940
|
-
|
|
32940
|
+
_chunk2BGLALP5cjs.Autocomplete,
|
|
32941
32941
|
{
|
|
32942
32942
|
options,
|
|
32943
32943
|
value: scriptId || null,
|
|
@@ -32952,7 +32952,7 @@ function ScheduleScriptSearchField({
|
|
|
32952
32952
|
error,
|
|
32953
32953
|
invalid,
|
|
32954
32954
|
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: [
|
|
32955
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32955
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { className: isSelected ? "text-ods-accent" : void 0, children: option.label }) }),
|
|
32956
32956
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScriptPlatformIcons, { platforms: _nullishCoalesce(_optionalChain([scripts, 'access', _723 => _723.find, 'call', _724 => _724((s) => s.id === option.value), 'optionalAccess', _725 => _725.supportedPlatforms]), () => ( [])) })
|
|
32957
32957
|
] })
|
|
32958
32958
|
}
|
|
@@ -32984,7 +32984,7 @@ function KnowledgeBaseOpenButton({ href }) {
|
|
|
32984
32984
|
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,
|
|
32985
32985
|
_chunkFCZAUK4Dcjs.Button,
|
|
32986
32986
|
{
|
|
32987
|
-
onClick: loading ? void 0 :
|
|
32987
|
+
onClick: loading ? void 0 : _chunk56EP4QM2cjs.openInNewTab.call(void 0, href),
|
|
32988
32988
|
disabled: loading,
|
|
32989
32989
|
variant: "outline",
|
|
32990
32990
|
size: "icon",
|
|
@@ -33003,10 +33003,10 @@ function KnowledgeBaseNameCell({ item }) {
|
|
|
33003
33003
|
/* @__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" }) }),
|
|
33004
33004
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
33005
33005
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
33006
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33006
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { children: item.name }) }),
|
|
33007
33007
|
tagStatus && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGRHF5SWLcjs.Tag, { variant: KNOWLEDGE_BASE_STATUS_VARIANT[tagStatus], label: tagStatus, className: "shrink-0" })
|
|
33008
33008
|
] }),
|
|
33009
|
-
item.type === "ARTICLE" && (item.summary || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33009
|
+
item.type === "ARTICLE" && (item.summary || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(item.summary, () => ( "")) })
|
|
33010
33010
|
] })
|
|
33011
33011
|
] });
|
|
33012
33012
|
}
|
|
@@ -33128,7 +33128,7 @@ function KnowledgeBaseArticleView({
|
|
|
33128
33128
|
className = "px-[var(--spacing-system-l)] pb-[var(--spacing-system-l)]"
|
|
33129
33129
|
}) {
|
|
33130
33130
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33131
|
-
|
|
33131
|
+
_chunk2BGLALP5cjs.PageLayout,
|
|
33132
33132
|
{
|
|
33133
33133
|
title,
|
|
33134
33134
|
backButton: onBack ? { label: "Back", onClick: onBack } : void 0,
|
|
@@ -33140,7 +33140,7 @@ function KnowledgeBaseArticleView({
|
|
|
33140
33140
|
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, _chunkGRHF5SWLcjs.Tag, { label: tag.label, variant: "outline", className: "max-w-full" }, tag.id)) }),
|
|
33141
33141
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6GPMVHJNcjs.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: [
|
|
33142
33142
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
33143
|
-
author.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33143
|
+
author.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWDNLMB7cjs.DeletedUserAvatar, { size: "md" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33144
33144
|
_chunkGRHF5SWLcjs.SquareAvatar,
|
|
33145
33145
|
{
|
|
33146
33146
|
src: author.imageUrl,
|
|
@@ -33151,12 +33151,12 @@ function KnowledgeBaseArticleView({
|
|
|
33151
33151
|
}
|
|
33152
33152
|
),
|
|
33153
33153
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
33154
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33154
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { className: author.deleted ? "text-ods-error" : void 0, children: _nullishCoalesce(author.name, () => ( "Unknown")) }),
|
|
33155
33155
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Author" })
|
|
33156
33156
|
] })
|
|
33157
33157
|
] }),
|
|
33158
33158
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 min-w-0 flex-col justify-center", children: [
|
|
33159
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33159
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { children: updatedLabel }),
|
|
33160
33160
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Updated" })
|
|
33161
33161
|
] }),
|
|
33162
33162
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -33335,7 +33335,7 @@ function ConversationCard({
|
|
|
33335
33335
|
style: tint,
|
|
33336
33336
|
onClick: selection && ((event) => {
|
|
33337
33337
|
if (event.button !== 0 || _optionalChain([window, 'access', _728 => _728.getSelection, 'call', _729 => _729(), 'optionalAccess', _730 => _730.toString, 'call', _731 => _731()])) return;
|
|
33338
|
-
if (!
|
|
33338
|
+
if (!_chunk56EP4QM2cjs.isOwnClick.call(void 0, event.target, event.currentTarget, { controls: true })) return;
|
|
33339
33339
|
selection.onToggle();
|
|
33340
33340
|
}),
|
|
33341
33341
|
children: [
|
|
@@ -33358,7 +33358,7 @@ function ConversationCard({
|
|
|
33358
33358
|
)
|
|
33359
33359
|
),
|
|
33360
33360
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33361
|
-
|
|
33361
|
+
_chunk56EP4QM2cjs.ChatTurn,
|
|
33362
33362
|
{
|
|
33363
33363
|
avatar: requester.avatar,
|
|
33364
33364
|
name: requester.name,
|
|
@@ -33379,7 +33379,7 @@ function ConversationCard({
|
|
|
33379
33379
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: CONTEXT_TEXT_CLASS, style: partLinesStyle(_optionalChain([lines, 'optionalAccess', _732 => _732.context])), children: context.text })
|
|
33380
33380
|
] }),
|
|
33381
33381
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33382
|
-
|
|
33382
|
+
_chunk56EP4QM2cjs.ChatTurn,
|
|
33383
33383
|
{
|
|
33384
33384
|
avatar: responder.avatar,
|
|
33385
33385
|
name: responder.name,
|
|
@@ -33424,7 +33424,7 @@ function ConversationCardSkeleton({
|
|
|
33424
33424
|
{
|
|
33425
33425
|
selection: selection && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.InertWhileLoading, { className: "contents", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectionToggle, { pressed: selection.pressed }) }),
|
|
33426
33426
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33427
|
-
|
|
33427
|
+
_chunk56EP4QM2cjs.ChatTurn,
|
|
33428
33428
|
{
|
|
33429
33429
|
loading: true,
|
|
33430
33430
|
name: "",
|
|
@@ -33448,7 +33448,7 @@ function ConversationCardSkeleton({
|
|
|
33448
33448
|
] })
|
|
33449
33449
|
] }),
|
|
33450
33450
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33451
|
-
|
|
33451
|
+
_chunk56EP4QM2cjs.ChatTurn,
|
|
33452
33452
|
{
|
|
33453
33453
|
loading: true,
|
|
33454
33454
|
name: "",
|
|
@@ -33529,7 +33529,7 @@ function Highlights({ items, className }) {
|
|
|
33529
33529
|
if (items.length === 0) return null;
|
|
33530
33530
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: _chunk63A4GZMBcjs.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: [
|
|
33531
33531
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { size: HIGHLIGHT_ICON_PX, className: "shrink-0 text-ods-flamingo-cyan" }),
|
|
33532
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33532
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { variant: "h6", triggerClassName: "flex-1", children: text })
|
|
33533
33533
|
] }, text)) });
|
|
33534
33534
|
}
|
|
33535
33535
|
function Example({
|
|
@@ -33565,7 +33565,7 @@ function Example({
|
|
|
33565
33565
|
mark(_nullishCoalesce(_optionalChain([requester, 'optionalAccess', _736 => _736.mark]), () => ( requesterMark))),
|
|
33566
33566
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
33567
33567
|
who(_nullishCoalesce(_optionalChain([requester, 'optionalAccess', _737 => _737.name]), () => ( labels.requester)), _nullishCoalesce(_optionalChain([requester, 'optionalAccess', _738 => _738.note]), () => ( labels.requesterNote))),
|
|
33568
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33568
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { lines: 2, variant: "h4", className: "min-h-[2lh]", children: `\u201C${example.request}\u201D` })
|
|
33569
33569
|
] })
|
|
33570
33570
|
] }),
|
|
33571
33571
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 gap-2.5 border-t border-ods-border pt-3", children: [
|
|
@@ -33574,7 +33574,7 @@ function Example({
|
|
|
33574
33574
|
who(_nullishCoalesce(_optionalChain([responder, 'optionalAccess', _740 => _740.name]), () => ( labels.responder)), _nullishCoalesce(_optionalChain([responder, 'optionalAccess', _741 => _741.note]), () => ( labels.responderNote))),
|
|
33575
33575
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-start gap-2", children: [
|
|
33576
33576
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { size: 16, className: "mt-0.5 shrink-0 text-ods-flamingo-cyan" }),
|
|
33577
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33577
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { lines: 2, variant: "h6", tone: "secondary", className: "min-h-[2lh]", triggerClassName: "flex-1", children: example.outcome })
|
|
33578
33578
|
] })
|
|
33579
33579
|
] })
|
|
33580
33580
|
] })
|
|
@@ -33584,7 +33584,7 @@ function Example({
|
|
|
33584
33584
|
}
|
|
33585
33585
|
function ExampleSkeleton({ className }) {
|
|
33586
33586
|
const turn = (first) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex min-w-0 gap-2.5", !first && "border-t border-ods-border pt-3"), children: [
|
|
33587
|
-
first ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGRHF5SWLcjs.SquareAvatar, { loading: true, variant: "round", sizePx: EXAMPLE_MARK_PX, className: "shrink-0" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33587
|
+
first ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGRHF5SWLcjs.SquareAvatar, { loading: true, variant: "round", sizePx: EXAMPLE_MARK_PX, className: "shrink-0" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.AgentAvatar, { loading: true, agent: "", size: EXAMPLE_MARK_PX }),
|
|
33588
33588
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
33589
33589
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h6", className: "w-28" }),
|
|
33590
33590
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-h-[2lh] text-h4", children: [
|
|
@@ -33713,13 +33713,13 @@ function CapabilityExplorer({
|
|
|
33713
33713
|
item.iconName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, JOB_ICON_TILE_CLASS, "text-ods-flamingo-cyan"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6GPMVHJNcjs.EntityIcon, { icon: { name: item.iconName }, size: 18 }) }),
|
|
33714
33714
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
33715
33715
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "h3", { className: "flex min-w-0 items-center gap-2 text-ods-text-primary text-h4", children: [
|
|
33716
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33716
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { as: "span", variant: "h4", triggerClassName: "flex-1", children: item.title }),
|
|
33717
33717
|
item.badge
|
|
33718
33718
|
] }),
|
|
33719
|
-
item.caption && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33719
|
+
item.caption && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { variant: "h6", tone: "secondary", children: item.caption })
|
|
33720
33720
|
] })
|
|
33721
33721
|
] }),
|
|
33722
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33722
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { lines: 3, variant: "h6", tone: "secondary", className: "min-h-[3lh]", children: item.intro }),
|
|
33723
33723
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0 overflow-hidden rounded-lg border border-ods-border", children: renderScreen(item, { compact: true }) }),
|
|
33724
33724
|
item.example && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33725
33725
|
Example,
|
|
@@ -33836,8 +33836,8 @@ function CapabilityExplorer({
|
|
|
33836
33836
|
),
|
|
33837
33837
|
children: [
|
|
33838
33838
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: PANEL_INTRO_CLASS, children: [
|
|
33839
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33840
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33839
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { lines: 2, variant: "h2", className: "mb-2", children: active.title }),
|
|
33840
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.TruncateText, { lines: 3, variant: "h4", tone: "secondary", className: "min-h-[3lh]", children: active.intro }),
|
|
33841
33841
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Highlights, { items: _nullishCoalesce(active.highlights, () => ( [])), className: "mt-auto" })
|
|
33842
33842
|
] }),
|
|
33843
33843
|
active.example && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|