@flamingo-stack/openframe-frontend-core 0.0.811 → 0.0.812
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/{case-study-card-AMINZROX.cjs → case-study-card-3XLKCGLV.cjs} +5 -5
- package/dist/{chunk-VXMPVDOS.cjs → chunk-2IZHRVKD.cjs} +24 -24
- package/dist/{chunk-XYZBN6D7.cjs → chunk-4IU462LR.cjs} +2 -2
- package/dist/{chunk-STLJCAIZ.cjs → chunk-4SZKJPQJ.cjs} +2 -2
- package/dist/{chunk-ACCZCRXT.cjs → chunk-4ZTGCCNI.cjs} +11 -11
- package/dist/{chunk-VXXOUM2K.cjs → chunk-5DBW6ERF.cjs} +4 -0
- package/dist/{chunk-JNWJB4Z5.cjs → chunk-6LZ4BI7Z.cjs} +52 -52
- package/dist/{chunk-KVDUWXVZ.cjs → chunk-743MM5B6.cjs} +4 -4
- package/dist/{chunk-PCVY63WQ.cjs → chunk-7HNZHENA.cjs} +13 -13
- package/dist/{chunk-OQDPZOGC.cjs → chunk-7Q2PFKU3.cjs} +4 -4
- package/dist/{chunk-NZSWROGM.cjs → chunk-7TBXHZLB.cjs} +2 -2
- package/dist/{chunk-Q7QYAINS.cjs → chunk-COTJLBOS.cjs} +2 -2
- package/dist/{chunk-ZZO3FGPM.cjs → chunk-CUDJP7R7.cjs} +11 -11
- package/dist/{chunk-O32RLIN4.cjs → chunk-D2EPUQ35.cjs} +4 -4
- package/dist/{chunk-WX5WDSKV.cjs → chunk-D322VUSH.cjs} +498 -498
- package/dist/{chunk-CJ7W2SY4.cjs → chunk-DA2TWDGJ.cjs} +6 -6
- package/dist/{chunk-ZW25QUJK.cjs → chunk-E64HJMY6.cjs} +11 -11
- package/dist/{chunk-IQLXO6EI.cjs → chunk-EPMAMFQE.cjs} +89 -89
- package/dist/{chunk-66J7ZSI5.cjs → chunk-FCFLZPID.cjs} +36 -36
- package/dist/{chunk-TKK66KHU.cjs → chunk-JMAKYJ3Q.cjs} +6 -6
- package/dist/{chunk-O4MEG2ZS.cjs → chunk-JMRO7CK2.cjs} +21 -21
- package/dist/{chunk-CPP2APON.cjs → chunk-K7IX2NAG.cjs} +78 -78
- package/dist/{chunk-R55KNVPR.cjs → chunk-NEDFRRLM.cjs} +47 -47
- package/dist/{chunk-6GT3ZL27.cjs → chunk-OKI5KSUV.cjs} +28 -28
- package/dist/{chunk-CB77J5L7.cjs → chunk-PQ76VC2P.cjs} +187 -187
- package/dist/{chunk-XLEWM5X5.cjs → chunk-RSLLS6C4.cjs} +41 -41
- package/dist/{chunk-7Y6M4FW4.cjs → chunk-SC3I3YWM.cjs} +17 -17
- package/dist/{chunk-J6C7F63P.cjs → chunk-TCMUVY3M.cjs} +87 -87
- package/dist/{chunk-PMOMZSCX.cjs → chunk-TS4PKCG3.cjs} +2 -2
- package/dist/{chunk-GU3GJ5DH.cjs → chunk-VEN6MGNX.cjs} +33 -33
- package/dist/{chunk-MDBOYMCW.cjs → chunk-VPYGK4AV.cjs} +15 -15
- package/dist/{chunk-UP3TLY2V.cjs → chunk-VT2ACO3Z.cjs} +129 -129
- package/dist/{chunk-243TS7YL.cjs → chunk-VYLBW6ZV.cjs} +18 -18
- package/dist/{chunk-FK2WFU7R.cjs → chunk-WFJDKP2Q.cjs} +4 -4
- package/dist/{chunk-CLU2KJFB.cjs → chunk-XB7VPJNY.cjs} +3 -3
- package/dist/{chunk-CC3Q3MQG.cjs → chunk-XZKYU57A.cjs} +2 -2
- package/dist/{chunk-ERLMCSGF.cjs → chunk-ZFUNSXSH.cjs} +4 -4
- package/dist/{cloud-tenants-XGGQG7SO.cjs → cloud-tenants-CW3I7AIM.cjs} +17 -17
- package/dist/components/case-studies/index.cjs +33 -33
- package/dist/components/chat/index.cjs +13 -13
- package/dist/components/chat/utils/icon-registry.d.ts.map +1 -1
- package/dist/components/chat/utils/icon-registry.js +4 -0
- package/dist/components/contact/index.cjs +18 -18
- package/dist/components/docs/index.cjs +21 -21
- package/dist/components/embeds/index.cjs +18 -18
- package/dist/components/faq/index.cjs +19 -19
- package/dist/components/features/devices/devices-table-columns.d.ts.map +1 -1
- package/dist/components/features/devices/devices-table-columns.js +1 -1
- package/dist/components/features/index.cjs +17 -17
- package/dist/components/help-center-pages/index.cjs +118 -118
- package/dist/components/index.cjs +75 -75
- package/dist/components/meeting-scheduler/index.cjs +109 -63
- package/dist/components/meeting-scheduler/index.d.ts +30 -1
- package/dist/components/meeting-scheduler/index.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.js +43 -3
- package/dist/components/navigation/index.cjs +20 -20
- package/dist/components/onboarding-guides/index.cjs +20 -20
- package/dist/components/product-demo/index.cjs +28 -28
- package/dist/components/related-content/index.cjs +9 -9
- package/dist/components/tickets/index.cjs +24 -24
- package/dist/components/ui/index.cjs +17 -17
- package/dist/{devices-H5Y4DBVC.cjs → devices-KKRAB4Q2.cjs} +18 -18
- package/dist/{embeddable-chat-77ZOLCCK.cjs → embeddable-chat-5UO66U4F.cjs} +81 -81
- package/dist/hooks/index.cjs +6 -6
- package/dist/index.cjs +22 -22
- package/dist/{knowledge-MGH65HXM.cjs → knowledge-Z2PTGBA3.cjs} +18 -18
- package/dist/{logs-OL7ETVK6.cjs → logs-6T5VK2TY.cjs} +25 -25
- package/dist/{policies-BCECWQ3F.cjs → policies-JPIC5YDE.cjs} +21 -21
- package/dist/{remote-session-HML4UF7W.cjs → remote-session-VBVUMIUP.cjs} +6 -6
- package/dist/{scripts-XCD6V2JB.cjs → scripts-BSYJJFBQ.cjs} +24 -24
- package/dist/{software-update-U5ESXRG5.cjs → software-update-KVEYYORC.cjs} +21 -21
- package/dist/{tickets-board-EICQ5VLE.cjs → tickets-board-YRZ54JJS.cjs} +10 -10
- package/dist/utils/index.cjs +4 -0
- package/package.json +1 -1
- package/src/components/chat/utils/icon-registry.ts +4 -0
- package/src/components/features/devices/devices-table-columns.tsx +5 -2
- package/src/components/meeting-scheduler/index.tsx +85 -3
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkCUDJP7R7cjs = require('./chunk-CUDJP7R7.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -38,7 +38,7 @@ var _chunkSFUNXMY3cjs = require('./chunk-SFUNXMY3.cjs');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkVYLBW6ZVcjs = require('./chunk-VYLBW6ZV.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
var _chunkDEY6XXGOcjs = require('./chunk-DEY6XXGO.cjs');
|
|
@@ -54,7 +54,7 @@ var _chunkDEY6XXGOcjs = require('./chunk-DEY6XXGO.cjs');
|
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
var
|
|
57
|
+
var _chunkVEN6MGNXcjs = require('./chunk-VEN6MGNX.cjs');
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
@@ -110,7 +110,7 @@ var _chunkYR74H7Z3cjs = require('./chunk-YR74H7Z3.cjs');
|
|
|
110
110
|
|
|
111
111
|
|
|
112
112
|
|
|
113
|
-
var
|
|
113
|
+
var _chunkTCMUVY3Mcjs = require('./chunk-TCMUVY3M.cjs');
|
|
114
114
|
|
|
115
115
|
|
|
116
116
|
|
|
@@ -130,7 +130,7 @@ var _chunkJ6C7F63Pcjs = require('./chunk-J6C7F63P.cjs');
|
|
|
130
130
|
|
|
131
131
|
|
|
132
132
|
|
|
133
|
-
var
|
|
133
|
+
var _chunkPQ76VC2Pcjs = require('./chunk-PQ76VC2P.cjs');
|
|
134
134
|
|
|
135
135
|
|
|
136
136
|
|
|
@@ -144,7 +144,7 @@ var _chunkCB77J5L7cjs = require('./chunk-CB77J5L7.cjs');
|
|
|
144
144
|
|
|
145
145
|
|
|
146
146
|
|
|
147
|
-
var
|
|
147
|
+
var _chunkE64HJMY6cjs = require('./chunk-E64HJMY6.cjs');
|
|
148
148
|
|
|
149
149
|
|
|
150
150
|
|
|
@@ -159,7 +159,7 @@ var _chunkZW25QUJKcjs = require('./chunk-ZW25QUJK.cjs');
|
|
|
159
159
|
|
|
160
160
|
|
|
161
161
|
|
|
162
|
-
var
|
|
162
|
+
var _chunk7TBXHZLBcjs = require('./chunk-7TBXHZLB.cjs');
|
|
163
163
|
|
|
164
164
|
|
|
165
165
|
|
|
@@ -458,7 +458,7 @@ var _chunkXIBCMGBWcjs = require('./chunk-XIBCMGBW.cjs');
|
|
|
458
458
|
|
|
459
459
|
|
|
460
460
|
|
|
461
|
-
var
|
|
461
|
+
var _chunkZFUNSXSHcjs = require('./chunk-ZFUNSXSH.cjs');
|
|
462
462
|
|
|
463
463
|
|
|
464
464
|
|
|
@@ -466,7 +466,7 @@ var _chunkERLMCSGFcjs = require('./chunk-ERLMCSGF.cjs');
|
|
|
466
466
|
var _chunkCNTBGJA7cjs = require('./chunk-CNTBGJA7.cjs');
|
|
467
467
|
|
|
468
468
|
|
|
469
|
-
var
|
|
469
|
+
var _chunk4IU462LRcjs = require('./chunk-4IU462LR.cjs');
|
|
470
470
|
|
|
471
471
|
|
|
472
472
|
var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
@@ -489,7 +489,7 @@ var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
|
489
489
|
|
|
490
490
|
|
|
491
491
|
|
|
492
|
-
var
|
|
492
|
+
var _chunkVT2ACO3Zcjs = require('./chunk-VT2ACO3Z.cjs');
|
|
493
493
|
|
|
494
494
|
|
|
495
495
|
|
|
@@ -498,7 +498,7 @@ var _chunkUP3TLY2Vcjs = require('./chunk-UP3TLY2V.cjs');
|
|
|
498
498
|
|
|
499
499
|
|
|
500
500
|
|
|
501
|
-
var
|
|
501
|
+
var _chunkSC3I3YWMcjs = require('./chunk-SC3I3YWM.cjs');
|
|
502
502
|
|
|
503
503
|
|
|
504
504
|
|
|
@@ -506,7 +506,7 @@ var _chunk7Y6M4FW4cjs = require('./chunk-7Y6M4FW4.cjs');
|
|
|
506
506
|
|
|
507
507
|
|
|
508
508
|
|
|
509
|
-
var
|
|
509
|
+
var _chunk7Q2PFKU3cjs = require('./chunk-7Q2PFKU3.cjs');
|
|
510
510
|
|
|
511
511
|
|
|
512
512
|
|
|
@@ -532,7 +532,7 @@ var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
|
532
532
|
|
|
533
533
|
|
|
534
534
|
|
|
535
|
-
var
|
|
535
|
+
var _chunk4SZKJPQJcjs = require('./chunk-4SZKJPQJ.cjs');
|
|
536
536
|
|
|
537
537
|
|
|
538
538
|
|
|
@@ -561,7 +561,7 @@ var _chunkYSDB6HGQcjs = require('./chunk-YSDB6HGQ.cjs');
|
|
|
561
561
|
|
|
562
562
|
|
|
563
563
|
|
|
564
|
-
var
|
|
564
|
+
var _chunk5DBW6ERFcjs = require('./chunk-5DBW6ERF.cjs');
|
|
565
565
|
|
|
566
566
|
|
|
567
567
|
|
|
@@ -704,7 +704,7 @@ function ThemeProvider({ children, ...overrides }) {
|
|
|
704
704
|
var useTheme = _nextthemes.useTheme;
|
|
705
705
|
function useThemeToggle() {
|
|
706
706
|
const { resolvedTheme, theme, setTheme } = useTheme();
|
|
707
|
-
const mounted =
|
|
707
|
+
const mounted = _chunkPQ76VC2Pcjs.useIsHydrated.call(void 0, );
|
|
708
708
|
const active = mounted ? resolvedTheme === "light" || theme === "light" ? "light" : "dark" : DEFAULT_THEME;
|
|
709
709
|
const setOdsTheme = _react.useCallback.call(void 0, (next) => setTheme(next), [setTheme]);
|
|
710
710
|
const toggle = _react.useCallback.call(void 0, () => setTheme(active === "dark" ? "light" : "dark"), [active, setTheme]);
|
|
@@ -913,7 +913,7 @@ function TimezoneSelect({
|
|
|
913
913
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
914
914
|
const options = _react.useMemo.call(void 0, () => timezoneOptions(value), [value]);
|
|
915
915
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
916
|
-
|
|
916
|
+
_chunkVYLBW6ZVcjs.Autocomplete,
|
|
917
917
|
{
|
|
918
918
|
className,
|
|
919
919
|
fieldLoading: loading,
|
|
@@ -1728,20 +1728,20 @@ function DatePickerInput(props) {
|
|
|
1728
1728
|
) })
|
|
1729
1729
|
] }),
|
|
1730
1730
|
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1", children: [
|
|
1731
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1732
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1733
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1731
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVYLBW6ZVcjs.Select, { value: hour, onValueChange: handleHourChange, disabled, children: [
|
|
1732
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectTrigger, { className: _chunk7JWFMAQBcjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectValue, { placeholder: "HH" }) }),
|
|
1733
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectContent, { children: hourOptions.map((h) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: h, children: h }, h)) })
|
|
1734
1734
|
] }),
|
|
1735
1735
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h4", children: ":" }),
|
|
1736
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1737
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1738
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1736
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVYLBW6ZVcjs.Select, { value: minute, onValueChange: handleMinuteChange, disabled, children: [
|
|
1737
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectTrigger, { className: _chunk7JWFMAQBcjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectValue, { placeholder: "MM" }) }),
|
|
1738
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectContent, { children: minuteOptions.map((m) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: m, children: m }, m)) })
|
|
1739
1739
|
] }),
|
|
1740
|
-
!use24HourFormat && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1741
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1742
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1743
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1744
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1740
|
+
!use24HourFormat && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVYLBW6ZVcjs.Select, { value: period, onValueChange: (val) => handlePeriodChange(val), disabled, children: [
|
|
1741
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectTrigger, { className: _chunk7JWFMAQBcjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectValue, { placeholder: "AM" }) }),
|
|
1742
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVYLBW6ZVcjs.SelectContent, { children: [
|
|
1743
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: "AM", children: "AM" }),
|
|
1744
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: "PM", children: "PM" })
|
|
1745
1745
|
] })
|
|
1746
1746
|
] })
|
|
1747
1747
|
] })
|
|
@@ -1882,9 +1882,9 @@ function DatePickerInputSimple(props) {
|
|
|
1882
1882
|
}
|
|
1883
1883
|
) })
|
|
1884
1884
|
] }),
|
|
1885
|
-
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1886
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1887
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1885
|
+
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVYLBW6ZVcjs.Select, { value: timeValue, onValueChange: handleTimeChange, disabled, children: [
|
|
1886
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectTrigger, { className: _chunk7JWFMAQBcjs.cn.call(void 0, timeSelectTriggerStyles, "flex-1"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectValue, { placeholder: "Select time", children: timeDisplayLabel || "Select time" }) }),
|
|
1887
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectContent, { children: timeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
1888
1888
|
] })
|
|
1889
1889
|
] });
|
|
1890
1890
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7RM4NM2Ccjs.FieldWrapper, { label, error, errorSlot: "error" in props, className, children: content });
|
|
@@ -1903,14 +1903,14 @@ function DateFilterPanel({
|
|
|
1903
1903
|
className
|
|
1904
1904
|
}) {
|
|
1905
1905
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex flex-col gap-4", className), children: [
|
|
1906
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1907
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1906
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVYLBW6ZVcjs.Select, { value: sort, onValueChange: (value) => onSortChange(value), children: [
|
|
1907
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectTrigger, { className: "gap-2", "aria-label": "Sort direction", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
1908
1908
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ArrowUpDown, { className: "size-6 shrink-0 text-ods-text-secondary" }),
|
|
1909
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1909
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectValue, {}) })
|
|
1910
1910
|
] }) }),
|
|
1911
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1912
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1913
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1911
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVYLBW6ZVcjs.SelectContent, { children: [
|
|
1912
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: "asc", children: ascLabel }),
|
|
1913
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: "desc", children: descLabel })
|
|
1914
1914
|
] })
|
|
1915
1915
|
] }),
|
|
1916
1916
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2190,7 +2190,7 @@ function Value({ value, depth }) {
|
|
|
2190
2190
|
}
|
|
2191
2191
|
if (typeof value === "string") {
|
|
2192
2192
|
if (ISO_DATE.test(value)) {
|
|
2193
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: value, className: "text-ods-text-secondary", children:
|
|
2193
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: value, className: "text-ods-text-secondary", children: _chunkE64HJMY6cjs.formatRelativeTime.call(void 0, value) });
|
|
2194
2194
|
}
|
|
2195
2195
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-pre-wrap text-ods-text-primary", children: value });
|
|
2196
2196
|
}
|
|
@@ -2437,7 +2437,7 @@ function InfoCardValueRow({
|
|
|
2437
2437
|
copyAriaLabel,
|
|
2438
2438
|
loading: loadingProp
|
|
2439
2439
|
}) {
|
|
2440
|
-
const { copy, copied } =
|
|
2440
|
+
const { copy, copied } = _chunkVEN6MGNXcjs.useCopyToClipboard.call(void 0, );
|
|
2441
2441
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
2442
2442
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: VALUE_ROW_CLASS, children: [
|
|
2443
2443
|
loading && label === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h4", className: "w-20" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: ROW_LABEL_CLASS, children: showLabel ? _nullishCoalesce(label, () => ( "")) : "" }),
|
|
@@ -2520,8 +2520,8 @@ function SearchableSelect(allProps) {
|
|
|
2520
2520
|
const keyboardPadding = _chunk7Z536SPRcjs.useKeyboardCollisionPadding.call(void 0, );
|
|
2521
2521
|
const portalContainer = _chunkNL3G642Ucjs.usePortalContainer.call(void 0, );
|
|
2522
2522
|
if (!isOpen && search !== "") setSearch("");
|
|
2523
|
-
const listedOptions =
|
|
2524
|
-
const rememberedSelection =
|
|
2523
|
+
const listedOptions = _chunkVYLBW6ZVcjs.useSettledOptions.call(void 0, options, isLoading, serverSearch);
|
|
2524
|
+
const rememberedSelection = _chunkVYLBW6ZVcjs.useRememberedSelection.call(void 0, listedOptions, value != null ? [value] : [], serverSearch);
|
|
2525
2525
|
const filtered = _react.useMemo.call(void 0, () => {
|
|
2526
2526
|
if (serverSearch) return listedOptions;
|
|
2527
2527
|
const q = search.trim().toLowerCase();
|
|
@@ -2734,7 +2734,7 @@ function CompactAssigneeDropdown({
|
|
|
2734
2734
|
onClick: handleTriggerClick,
|
|
2735
2735
|
"aria-label": "Change assignee",
|
|
2736
2736
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "w-auto shrink-0", className),
|
|
2737
|
-
children: currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2737
|
+
children: currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCUDJP7R7cjs.DeletedUserAvatar, { size: "sm", accessibleLabel: `Deleted user: ${currentAssignee.name || currentAssignee.id}` }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2738
2738
|
_chunkU2MHQBL4cjs.SquareAvatar,
|
|
2739
2739
|
{
|
|
2740
2740
|
src: currentAssignee.avatarSrc,
|
|
@@ -2805,7 +2805,7 @@ function DefaultAssigneeDropdown({
|
|
|
2805
2805
|
if (isEditing) {
|
|
2806
2806
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "min-w-0", className), children: [
|
|
2807
2807
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2808
|
-
|
|
2808
|
+
_chunkVYLBW6ZVcjs.Autocomplete,
|
|
2809
2809
|
{
|
|
2810
2810
|
options,
|
|
2811
2811
|
value: _nullishCoalesce(_optionalChain([currentAssignee, 'optionalAccess', _45 => _45.id]), () => ( null)),
|
|
@@ -2819,7 +2819,7 @@ function DefaultAssigneeDropdown({
|
|
|
2819
2819
|
selectedOptions,
|
|
2820
2820
|
showChevron: false,
|
|
2821
2821
|
startAdornment: hasAssignee ? currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2822
|
-
|
|
2822
|
+
_chunkCUDJP7R7cjs.DeletedUserAvatar,
|
|
2823
2823
|
{
|
|
2824
2824
|
size: "sm",
|
|
2825
2825
|
className: "h-6 w-6",
|
|
@@ -2845,7 +2845,7 @@ function DefaultAssigneeDropdown({
|
|
|
2845
2845
|
if (hasAssignee) {
|
|
2846
2846
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", className), children: [
|
|
2847
2847
|
currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2848
|
-
|
|
2848
|
+
_chunkCUDJP7R7cjs.DeletedUserAvatar,
|
|
2849
2849
|
{
|
|
2850
2850
|
size: "md",
|
|
2851
2851
|
accessibleLabel: `Deleted user: ${currentAssignee.name || currentAssignee.id}`
|
|
@@ -2956,7 +2956,7 @@ function RowValue({ value }) {
|
|
|
2956
2956
|
}
|
|
2957
2957
|
case "status": {
|
|
2958
2958
|
const { type: _type, ...props } = value;
|
|
2959
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2959
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE64HJMY6cjs.TicketStatusTag, { ...props });
|
|
2960
2960
|
}
|
|
2961
2961
|
case "custom":
|
|
2962
2962
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CustomValue, { content: value.content });
|
|
@@ -3056,7 +3056,7 @@ function MediaTypeSelector({
|
|
|
3056
3056
|
// changed) and cost an extra render pass on every change to say what the
|
|
3057
3057
|
// prop already said.
|
|
3058
3058
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3059
|
-
|
|
3059
|
+
_chunkVYLBW6ZVcjs.Select,
|
|
3060
3060
|
{
|
|
3061
3061
|
value: value || void 0,
|
|
3062
3062
|
onValueChange: (next) => {
|
|
@@ -3066,8 +3066,8 @@ function MediaTypeSelector({
|
|
|
3066
3066
|
disabled,
|
|
3067
3067
|
defaultValue: value,
|
|
3068
3068
|
children: [
|
|
3069
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3070
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3069
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectTrigger, { className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectValue, { placeholder }) }),
|
|
3070
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectContent, { children: mediaTypeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: option.value, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
3071
3071
|
option.icon,
|
|
3072
3072
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: option.label })
|
|
3073
3073
|
] }) }, option.value)) })
|
|
@@ -4493,10 +4493,10 @@ function useConfirm() {
|
|
|
4493
4493
|
},
|
|
4494
4494
|
[]
|
|
4495
4495
|
);
|
|
4496
|
-
const dialog = pending ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4497
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4498
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4499
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4496
|
+
const dialog = pending ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7TBXHZLBcjs.Modal, { isOpen: open, onClose: () => decide(false), children: [
|
|
4497
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ModalTitle, { children: pending.title }) }),
|
|
4498
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ModalContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: pending.body }) }),
|
|
4499
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7TBXHZLBcjs.ModalFooter, { children: [
|
|
4500
4500
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "outline", onClick: () => decide(false), children: "Cancel" }),
|
|
4501
4501
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "destructive", onClick: () => decide(true), children: "Confirm" })
|
|
4502
4502
|
] })
|
|
@@ -4574,7 +4574,7 @@ function AdminFormDrawer({
|
|
|
4574
4574
|
"form",
|
|
4575
4575
|
{
|
|
4576
4576
|
id: formId,
|
|
4577
|
-
...
|
|
4577
|
+
..._chunkTCMUVY3Mcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
4578
4578
|
className: "flex flex-col gap-[var(--spacing-system-lf)]",
|
|
4579
4579
|
onSubmit: (e) => {
|
|
4580
4580
|
e.preventDefault();
|
|
@@ -4672,16 +4672,16 @@ function AdminFormModal({
|
|
|
4672
4672
|
body: "Your edits have not been saved. Close and discard them?"
|
|
4673
4673
|
});
|
|
4674
4674
|
if (!isOpen) return null;
|
|
4675
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4676
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4677
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4675
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7TBXHZLBcjs.Modal, { isOpen: true, onClose: guardedClose, size: effectiveSize, children: [
|
|
4676
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7TBXHZLBcjs.ModalHeader, { children: [
|
|
4677
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ModalTitle, { children: title }),
|
|
4678
4678
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-ods-text-secondary text-h6", children: subtitle })
|
|
4679
4679
|
] }),
|
|
4680
4680
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4681
4681
|
"form",
|
|
4682
4682
|
{
|
|
4683
4683
|
id: formId,
|
|
4684
|
-
...
|
|
4684
|
+
..._chunkTCMUVY3Mcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
4685
4685
|
className: "flex min-h-0 flex-1 flex-col",
|
|
4686
4686
|
onSubmit: (e) => {
|
|
4687
4687
|
e.preventDefault();
|
|
@@ -4699,7 +4699,7 @@ function AdminFormModal({
|
|
|
4699
4699
|
// a shrink-to-fit flex item pinned to the left of a 1400px panel).
|
|
4700
4700
|
// The placeholder owns its own layout and mirrors the column count so
|
|
4701
4701
|
// the modal doesn't visibly re-flow when the entity lands.
|
|
4702
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4702
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ModalContent, { children: loadingContent ? (
|
|
4703
4703
|
// The one announcement: a `loadingContent` with a region of its own takes `region={false}`.
|
|
4704
4704
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLKQ33CMYcjs.LoadingRegion, { label: "Loading", children: loadingContent })
|
|
4705
4705
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -4720,12 +4720,12 @@ function AdminFormModal({
|
|
|
4720
4720
|
] }, i)) }, col))
|
|
4721
4721
|
}
|
|
4722
4722
|
) })
|
|
4723
|
-
) : twoColumn ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4723
|
+
) : twoColumn ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ModalTwoColumn, { left: leftColumn, right: rightColumn }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ModalContent, { className: contentClassName, children }),
|
|
4724
4724
|
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { role: "alert", className: "shrink-0 text-ods-error text-h6", children: error })
|
|
4725
4725
|
]
|
|
4726
4726
|
}
|
|
4727
4727
|
),
|
|
4728
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4728
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ModalFooter, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center justify-between gap-[var(--spacing-system-xsf)]", children: [
|
|
4729
4729
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: footerExtras }),
|
|
4730
4730
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
4731
4731
|
footerStatus,
|
|
@@ -6082,7 +6082,7 @@ function EmbedViewerFrame({
|
|
|
6082
6082
|
const controllerRef = _react.useRef.call(void 0, null);
|
|
6083
6083
|
_react.useEffect.call(void 0, () => {
|
|
6084
6084
|
if (!fullscreenControl) return void 0;
|
|
6085
|
-
const controller = new (0,
|
|
6085
|
+
const controller = new (0, _chunkTCMUVY3Mcjs.FullscreenSwitchController)({
|
|
6086
6086
|
target: () => frameRef.current,
|
|
6087
6087
|
onFullscreenChange: setIsFullscreen
|
|
6088
6088
|
});
|
|
@@ -6176,9 +6176,9 @@ var KIND_HEADING = {
|
|
|
6176
6176
|
design: "Claude Design"
|
|
6177
6177
|
};
|
|
6178
6178
|
function ClaudeEmbed({ url, kind = "artifact", title, height, loading = "lazy" }) {
|
|
6179
|
-
const { src: mirrorSrc, status } =
|
|
6179
|
+
const { src: mirrorSrc, status } = _chunkVEN6MGNXcjs.useClaudeMirrorSrc.call(void 0, url);
|
|
6180
6180
|
const isProbing = status === "probing";
|
|
6181
|
-
const embedUrl = isProbing ? null : _nullishCoalesce(mirrorSrc, () => (
|
|
6181
|
+
const embedUrl = isProbing ? null : _nullishCoalesce(mirrorSrc, () => ( _chunkZFUNSXSHcjs.toClaudeEmbedUrl.call(void 0, url)));
|
|
6182
6182
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6183
6183
|
EmbedViewerFrame,
|
|
6184
6184
|
{
|
|
@@ -6253,12 +6253,12 @@ function SlidesViewToggle({ view, onChange }) {
|
|
|
6253
6253
|
}
|
|
6254
6254
|
function FigmaEmbed({ url, title, height, loading = "lazy" }) {
|
|
6255
6255
|
const [view, setView] = _react.useState.call(void 0, "present");
|
|
6256
|
-
const isSlides = url ?
|
|
6257
|
-
const embedSrc = url ?
|
|
6256
|
+
const isSlides = url ? _chunkZFUNSXSHcjs.isFigmaSlidesUrl.call(void 0, url) : false;
|
|
6257
|
+
const embedSrc = url ? _chunkZFUNSXSHcjs.toFigmaEmbedUrl.call(void 0, url, { slidesView: view }) : null;
|
|
6258
6258
|
const originalUrl = (() => {
|
|
6259
6259
|
if (!url) return null;
|
|
6260
6260
|
try {
|
|
6261
|
-
const parsed = new URL(
|
|
6261
|
+
const parsed = new URL(_chunkZFUNSXSHcjs.toFigmaOriginalUrl.call(void 0, url));
|
|
6262
6262
|
const host = parsed.hostname.toLowerCase();
|
|
6263
6263
|
const okHost = host === "figma.com" || host.endsWith(".figma.com");
|
|
6264
6264
|
const okProtocol = parsed.protocol === "https:" || parsed.protocol === "http:";
|
|
@@ -6479,7 +6479,7 @@ function MarkdownImage({ src, alt }) {
|
|
|
6479
6479
|
alt: _nullishCoalesce(alt, () => ( "No image available")),
|
|
6480
6480
|
width: DISPLAY_W,
|
|
6481
6481
|
height: Math.round(DISPLAY_W / ratio),
|
|
6482
|
-
sizes:
|
|
6482
|
+
sizes: _chunk5DBW6ERFcjs.IMAGE_SLOT.column,
|
|
6483
6483
|
loading: "lazy",
|
|
6484
6484
|
className: "mx-auto my-2 block h-auto w-full rounded-lg object-contain",
|
|
6485
6485
|
style: { maxWidth: `calc(${MAX_H_REM}rem * ${ratio})`, maxHeight: `${MAX_H_REM}rem` }
|
|
@@ -6547,8 +6547,8 @@ var Favicon = ({ src, size = "w-6 h-6" }) => /* @__PURE__ */ _jsxruntime.jsx.cal
|
|
|
6547
6547
|
src,
|
|
6548
6548
|
alt: "",
|
|
6549
6549
|
className: size,
|
|
6550
|
-
width:
|
|
6551
|
-
height:
|
|
6550
|
+
width: _chunk5DBW6ERFcjs.IMAGE_FIXED_PX.glyph,
|
|
6551
|
+
height: _chunk5DBW6ERFcjs.IMAGE_FIXED_PX.glyph,
|
|
6552
6552
|
unoptimized: true,
|
|
6553
6553
|
onError: (e) => {
|
|
6554
6554
|
const img = e.target;
|
|
@@ -6709,7 +6709,7 @@ var OGLinkPreview = ({
|
|
|
6709
6709
|
type: "website",
|
|
6710
6710
|
favicon: `https://www.google.com/s2/favicons?domain=${domain}&sz=32`
|
|
6711
6711
|
} : null)));
|
|
6712
|
-
const placeholderImageUrl =
|
|
6712
|
+
const placeholderImageUrl = _chunk4SZKJPQJcjs.useOgPlaceholderUrl.call(void 0, {
|
|
6713
6713
|
title: _optionalChain([effectiveData, 'optionalAccess', _124 => _124.title]),
|
|
6714
6714
|
siteName: _optionalChain([effectiveData, 'optionalAccess', _125 => _125.siteName]) || domain,
|
|
6715
6715
|
enabled: enablePlaceholder && !isTile
|
|
@@ -6725,7 +6725,7 @@ var OGLinkPreview = ({
|
|
|
6725
6725
|
const hasImage = !!resolvedImageUrl;
|
|
6726
6726
|
const isCuratedImage = _optionalChain([resolvedImage, 'optionalAccess', _129 => _129.source]) === "curated";
|
|
6727
6727
|
const isPlaceholder = _optionalChain([resolvedImage, 'optionalAccess', _130 => _130.source]) === "placeholder";
|
|
6728
|
-
const bgColor =
|
|
6728
|
+
const bgColor = _chunk4SZKJPQJcjs.useImageEdgeColor.call(void 0, _nullishCoalesce(resolvedImageUrl, () => ( null)), "var(--color-bg-surface)");
|
|
6729
6729
|
const renderSkeleton = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6730
6730
|
OGLinkPreviewSkeleton,
|
|
6731
6731
|
{
|
|
@@ -6746,12 +6746,12 @@ var OGLinkPreview = ({
|
|
|
6746
6746
|
children: [
|
|
6747
6747
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TILE_SOURCE_ROW_CLASS, children: [
|
|
6748
6748
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Favicon, { src: `https://www.google.com/s2/favicons?domain=${domain}&sz=32`, size: "w-4 h-4" }),
|
|
6749
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6749
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { as: "span", variant: "h6", className: "text-current", children: name }),
|
|
6750
6750
|
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 })
|
|
6751
6751
|
] }),
|
|
6752
6752
|
kicker != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-hidden text-ods-accent text-h5", style: lineClamp(1), children: kicker }),
|
|
6753
6753
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6754
|
-
|
|
6754
|
+
_chunkVYLBW6ZVcjs.TruncateText,
|
|
6755
6755
|
{
|
|
6756
6756
|
lines: 2,
|
|
6757
6757
|
variant: "h3",
|
|
@@ -6760,7 +6760,7 @@ var OGLinkPreview = ({
|
|
|
6760
6760
|
children: curatedTitle || domainToTitle(domain)
|
|
6761
6761
|
}
|
|
6762
6762
|
),
|
|
6763
|
-
curatedDescription && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6763
|
+
curatedDescription && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { lines: 2, variant: "h6", tone: "secondary", children: curatedDescription })
|
|
6764
6764
|
]
|
|
6765
6765
|
}
|
|
6766
6766
|
);
|
|
@@ -6802,7 +6802,7 @@ var OGLinkPreview = ({
|
|
|
6802
6802
|
alt: title,
|
|
6803
6803
|
className: "rounded-md object-cover",
|
|
6804
6804
|
fill: true,
|
|
6805
|
-
sizes:
|
|
6805
|
+
sizes: _chunk5DBW6ERFcjs.IMAGE_SLOT.full,
|
|
6806
6806
|
unoptimized: true
|
|
6807
6807
|
}
|
|
6808
6808
|
);
|
|
@@ -6827,7 +6827,7 @@ var OGLinkPreview = ({
|
|
|
6827
6827
|
alt: title,
|
|
6828
6828
|
className: "rounded-md object-contain transition-transform duration-300 group-hover:scale-105",
|
|
6829
6829
|
fill: true,
|
|
6830
|
-
sizes:
|
|
6830
|
+
sizes: _chunk5DBW6ERFcjs.IMAGE_SLOT.full,
|
|
6831
6831
|
unoptimized: true,
|
|
6832
6832
|
onError: handleImageError
|
|
6833
6833
|
}
|
|
@@ -6906,8 +6906,8 @@ var OGLinkPreview = ({
|
|
|
6906
6906
|
children: [
|
|
6907
6907
|
/* @__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 }) }),
|
|
6908
6908
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
6909
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6910
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6909
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { className: "font-semibold transition-colors group-hover:text-ods-accent", children: title }),
|
|
6910
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { tone: "secondary", children: description })
|
|
6911
6911
|
] }),
|
|
6912
6912
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExternalLinkIcon, {})
|
|
6913
6913
|
]
|
|
@@ -6943,8 +6943,8 @@ var OGLinkPreview = ({
|
|
|
6943
6943
|
src: logoSrc,
|
|
6944
6944
|
alt: publicationName || "",
|
|
6945
6945
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, DEFAULT_LOGO_CLASS, "object-contain"),
|
|
6946
|
-
width:
|
|
6947
|
-
height:
|
|
6946
|
+
width: _chunk5DBW6ERFcjs.IMAGE_FIXED_PX.glyph,
|
|
6947
|
+
height: _chunk5DBW6ERFcjs.IMAGE_FIXED_PX.glyph,
|
|
6948
6948
|
unoptimized: true,
|
|
6949
6949
|
onError: (e) => {
|
|
6950
6950
|
const img = e.target;
|
|
@@ -6954,7 +6954,7 @@ var OGLinkPreview = ({
|
|
|
6954
6954
|
),
|
|
6955
6955
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
6956
6956
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6957
|
-
|
|
6957
|
+
_chunkVYLBW6ZVcjs.TruncateText,
|
|
6958
6958
|
{
|
|
6959
6959
|
lines: 2,
|
|
6960
6960
|
className: "min-h-[calc(var(--font-line-space-h4-body)*2)] font-semibold transition-colors group-hover:text-ods-accent",
|
|
@@ -6963,7 +6963,7 @@ var OGLinkPreview = ({
|
|
|
6963
6963
|
}
|
|
6964
6964
|
),
|
|
6965
6965
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6966
|
-
|
|
6966
|
+
_chunkVYLBW6ZVcjs.TruncateText,
|
|
6967
6967
|
{
|
|
6968
6968
|
lines: 2,
|
|
6969
6969
|
tone: "secondary",
|
|
@@ -6973,9 +6973,9 @@ var OGLinkPreview = ({
|
|
|
6973
6973
|
}
|
|
6974
6974
|
),
|
|
6975
6975
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-2 text-ods-text-secondary text-h6", children: [
|
|
6976
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6976
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { as: "span", variant: "h6", className: "text-current", children: effectiveData.siteName }),
|
|
6977
6977
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "\u2022" }),
|
|
6978
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6978
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { as: "span", variant: "h6", className: "text-current", children: ogDomain }),
|
|
6979
6979
|
meta
|
|
6980
6980
|
] })
|
|
6981
6981
|
] })
|
|
@@ -7136,7 +7136,7 @@ var MediaCarousel = _react.memo.call(void 0, function MediaCarouselImpl({
|
|
|
7136
7136
|
};
|
|
7137
7137
|
const displayImageSrc = (url) => transformImageSrc ? transformImageSrc(url) : url;
|
|
7138
7138
|
const renderVideo = (item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7139
|
-
|
|
7139
|
+
_chunkSC3I3YWMcjs.Video,
|
|
7140
7140
|
{
|
|
7141
7141
|
url: item.src,
|
|
7142
7142
|
poster: item.poster ? displayImageSrc(item.poster) : void 0,
|
|
@@ -7186,7 +7186,7 @@ var MediaCarousel = _react.memo.call(void 0, function MediaCarouselImpl({
|
|
|
7186
7186
|
),
|
|
7187
7187
|
priority: mainImagePriority,
|
|
7188
7188
|
loading: mainImagePriority ? "eager" : "lazy",
|
|
7189
|
-
sizes:
|
|
7189
|
+
sizes: _chunk5DBW6ERFcjs.IMAGE_SLOT.full,
|
|
7190
7190
|
width: 1428,
|
|
7191
7191
|
height: 802,
|
|
7192
7192
|
unoptimized: true,
|
|
@@ -7331,7 +7331,7 @@ var formatTimeAgo = (timestamp) => {
|
|
|
7331
7331
|
return `${Math.floor(diffSeconds / 86400)}d ago`;
|
|
7332
7332
|
};
|
|
7333
7333
|
function RedditEmbedClient({ url, maxWidth = 700, rel }) {
|
|
7334
|
-
const postLinkRel =
|
|
7334
|
+
const postLinkRel = _chunkPQ76VC2Pcjs.renderedLinkRel.call(void 0, rel, true);
|
|
7335
7335
|
const { redditProxyUrl } = useRichMarkdownRuntime();
|
|
7336
7336
|
const [redditData, setRedditData] = _react.useState.call(void 0, null);
|
|
7337
7337
|
const [loading, setLoading] = _react.useState.call(void 0, true);
|
|
@@ -7663,7 +7663,7 @@ var UserIcon3 = () => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "svg", { wid
|
|
|
7663
7663
|
] });
|
|
7664
7664
|
var XIcon = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2TEMEXDTcjs.XLogoIcon, { className: "h-5 w-5", color: "currentColor" });
|
|
7665
7665
|
function TwitterEmbedClient({ url, tweetId, maxWidth = 700, rel }) {
|
|
7666
|
-
const postLinkRel =
|
|
7666
|
+
const postLinkRel = _chunkPQ76VC2Pcjs.renderedLinkRel.call(void 0, rel, true);
|
|
7667
7667
|
const { twitterProxyUrl } = useRichMarkdownRuntime();
|
|
7668
7668
|
const [tweetData, setTweetData] = _react.useState.call(void 0, null);
|
|
7669
7669
|
const [fetchLoading, setLoading] = _react.useState.call(void 0, true);
|
|
@@ -7865,7 +7865,7 @@ function buildRichEmbedOverrides({
|
|
|
7865
7865
|
ogEndpointPath,
|
|
7866
7866
|
textSizes
|
|
7867
7867
|
}) {
|
|
7868
|
-
const standard =
|
|
7868
|
+
const standard = _chunkPQ76VC2Pcjs.buildStandardLeafRenderers.call(void 0, { textSizes });
|
|
7869
7869
|
return {
|
|
7870
7870
|
// Fence-language embeds (```youtube-embed etc.); everything else
|
|
7871
7871
|
// (mermaid, highlighted blocks, inline code) falls through to `standard`.
|
|
@@ -7875,7 +7875,7 @@ function buildRichEmbedOverrides({
|
|
|
7875
7875
|
const language = match ? match[1] : "";
|
|
7876
7876
|
const fenceText = () => String(children).replace(/\n$/, "").trim();
|
|
7877
7877
|
if (language === "youtube-embed") {
|
|
7878
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7878
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSC3I3YWMcjs.Video, { kind: "youtube", url: fenceText() });
|
|
7879
7879
|
}
|
|
7880
7880
|
if (language === "reddit-embed") {
|
|
7881
7881
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RedditEmbedClient, { url: fenceText() });
|
|
@@ -7916,7 +7916,7 @@ function buildRichEmbedOverrides({
|
|
|
7916
7916
|
"data-figma-url": figmaUrl
|
|
7917
7917
|
} = divProps;
|
|
7918
7918
|
if (className === "youtube-embed" && videoId) {
|
|
7919
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7919
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSC3I3YWMcjs.Video, { kind: "youtube", url: videoId });
|
|
7920
7920
|
}
|
|
7921
7921
|
if (className === "reddit-embed" && postUrl) {
|
|
7922
7922
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RedditEmbedClient, { url: postUrl });
|
|
@@ -8001,23 +8001,23 @@ function buildRichEmbedOverrides({
|
|
|
8001
8001
|
// rich-markdown runtime (Supabase optimization on the hub, identity
|
|
8002
8002
|
// elsewhere). Guard against empty `![]()`.
|
|
8003
8003
|
img: ({ src, alt }) => {
|
|
8004
|
-
if (!
|
|
8004
|
+
if (!_chunkPQ76VC2Pcjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
8005
8005
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownImage, { src: src.trim(), alt });
|
|
8006
8006
|
},
|
|
8007
8007
|
// Raw <iframe> tags in stored content (a pasted YouTube embed). A YouTube one becomes the same click-to-play
|
|
8008
8008
|
// facade as the `youtube-embed` fence: the raw iframe loaded YouTube's whole player (about 470 KB of script) with
|
|
8009
8009
|
// the page, on every post that carried one (CU-17tkuw5xp4q). Any other iframe loads when it nears the screen.
|
|
8010
8010
|
iframe: ({ node: _node, src, ...rest }) => {
|
|
8011
|
-
if (!
|
|
8011
|
+
if (!_chunkPQ76VC2Pcjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
8012
8012
|
const url = src.trim();
|
|
8013
|
-
if (
|
|
8013
|
+
if (_chunkSC3I3YWMcjs.extractYouTubeId.call(void 0, url)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSC3I3YWMcjs.Video, { kind: "youtube", url });
|
|
8014
8014
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "iframe", { ...rest, src: url, loading: "lazy" });
|
|
8015
8015
|
},
|
|
8016
8016
|
// Raw <video> tags in stored content (blog publisher injection) route
|
|
8017
8017
|
// to the <Video> SSOT (MuxPlayer) so HLS manifests play everywhere.
|
|
8018
8018
|
video: ({ src, poster, className }) => {
|
|
8019
|
-
if (!
|
|
8020
|
-
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,
|
|
8019
|
+
if (!_chunkPQ76VC2Pcjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
8020
|
+
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, _chunkSC3I3YWMcjs.Video, { kind: "file", url: src.trim(), poster: typeof poster === "string" ? poster : void 0 }) }) });
|
|
8021
8021
|
}
|
|
8022
8022
|
};
|
|
8023
8023
|
}
|
|
@@ -8125,7 +8125,7 @@ var processShortcodes = (content) => {
|
|
|
8125
8125
|
try {
|
|
8126
8126
|
const urlObj = new URL(url);
|
|
8127
8127
|
const hostname = urlObj.hostname.toLowerCase();
|
|
8128
|
-
const hostIs = (domain) =>
|
|
8128
|
+
const hostIs = (domain) => _chunkTCMUVY3Mcjs.hostMatches.call(void 0, hostname, domain);
|
|
8129
8129
|
const isYouTubeVideo = hostIs("youtube.com") && urlObj.searchParams.has("v") || hostIs("youtu.be");
|
|
8130
8130
|
if (isYouTubeVideo || hostIs("reddit.com") || hostIs("twitter.com") || hostIs("x.com") || hostIs("figma.com")) {
|
|
8131
8131
|
return match;
|
|
@@ -8202,13 +8202,13 @@ var RichMarkdownInner = ({
|
|
|
8202
8202
|
},
|
|
8203
8203
|
[resolveLinkEndpointUrl, resolveSource]
|
|
8204
8204
|
);
|
|
8205
|
-
const textSizes = _react.useMemo.call(void 0, () =>
|
|
8205
|
+
const textSizes = _react.useMemo.call(void 0, () => _chunkPQ76VC2Pcjs.resolveTextSizeConfig.call(void 0, "article"), []);
|
|
8206
8206
|
const componentOverrides = _react.useMemo.call(void 0,
|
|
8207
8207
|
() => buildRichEmbedOverrides({ ogApiBaseUrl, ogEndpointPath, textSizes }),
|
|
8208
8208
|
[ogApiBaseUrl, ogEndpointPath, textSizes]
|
|
8209
8209
|
);
|
|
8210
8210
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8211
|
-
|
|
8211
|
+
_chunkPQ76VC2Pcjs.MarkdownEngine,
|
|
8212
8212
|
{
|
|
8213
8213
|
content,
|
|
8214
8214
|
className,
|
|
@@ -8233,7 +8233,7 @@ var RichMarkdownRendererImpl = ({
|
|
|
8233
8233
|
className = "",
|
|
8234
8234
|
sectionIds,
|
|
8235
8235
|
onInternalLinkClick,
|
|
8236
|
-
brokenLinks =
|
|
8236
|
+
brokenLinks = _chunkPQ76VC2Pcjs.NO_BROKEN_LINKS,
|
|
8237
8237
|
currentPath,
|
|
8238
8238
|
resolveSource = "openframe-docs",
|
|
8239
8239
|
resolveLinkEndpointUrl = "/api/docs/resolve-link",
|
|
@@ -9359,7 +9359,7 @@ function FilterModal({
|
|
|
9359
9359
|
const dateDefaultSort = _nullishCoalesce(_optionalChain([dateFilter, 'optionalAccess', _167 => _167.defaultSort]), () => ( "desc"));
|
|
9360
9360
|
const [draftDateSort, setDraftDateSort] = _react.useState.call(void 0, _nullishCoalesce(_optionalChain([dateFilter, 'optionalAccess', _168 => _168.sort]), () => ( dateDefaultSort)));
|
|
9361
9361
|
const [draftDateRange, setDraftDateRange] = _react.useState.call(void 0, _optionalChain([dateFilter, 'optionalAccess', _169 => _169.range]));
|
|
9362
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateFade } =
|
|
9362
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunk7TBXHZLBcjs.useScrollFade.call(void 0, );
|
|
9363
9363
|
const seedKey = `${JSON.stringify(currentFilters)}|${JSON.stringify(_nullishCoalesce(selectedTags, () => ( [])))}`;
|
|
9364
9364
|
const seedSourceRef = _react.useRef.call(void 0, { currentFilters, selectedTags, dateFilter, dateDefaultSort });
|
|
9365
9365
|
_react.useEffect.call(void 0, () => {
|
|
@@ -9405,15 +9405,15 @@ function FilterModal({
|
|
|
9405
9405
|
const hasTagFilter = !!tagFilterKeys && tagFilterKeys.length > 0 && !!onTagsChange;
|
|
9406
9406
|
const isEmpty = !isLoading && !hasSort && !hasFilterGroups && !hasTagFilter && !dateFilter;
|
|
9407
9407
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9408
|
-
|
|
9408
|
+
_chunk7TBXHZLBcjs.Modal,
|
|
9409
9409
|
{
|
|
9410
9410
|
isOpen,
|
|
9411
9411
|
onClose,
|
|
9412
9412
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "max-h-[90vh] max-w-none md:max-w-[min(42rem,calc(100vw-2rem))]", className),
|
|
9413
9413
|
children: [
|
|
9414
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9414
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ModalTitle, { children: title }) }),
|
|
9415
9415
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9416
|
-
|
|
9416
|
+
_chunk7TBXHZLBcjs.ModalContent,
|
|
9417
9417
|
{
|
|
9418
9418
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
9419
9419
|
"flex min-h-0 flex-1 flex-col",
|
|
@@ -9509,12 +9509,12 @@ function FilterModal({
|
|
|
9509
9509
|
)
|
|
9510
9510
|
}
|
|
9511
9511
|
),
|
|
9512
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9513
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9512
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop }),
|
|
9513
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom })
|
|
9514
9514
|
] })
|
|
9515
9515
|
}
|
|
9516
9516
|
),
|
|
9517
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9517
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7TBXHZLBcjs.ModalFooter, { children: [
|
|
9518
9518
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "outline", className: "h-11 flex-1", onClick: handleReset, children: resetButtonText }),
|
|
9519
9519
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "accent", className: "h-11 flex-1", onClick: handleApply, children: applyButtonText })
|
|
9520
9520
|
] })
|
|
@@ -9578,7 +9578,7 @@ function renderAdvancedPageContainer({
|
|
|
9578
9578
|
contentClassName,
|
|
9579
9579
|
showHeader = true
|
|
9580
9580
|
}, inScope = false) {
|
|
9581
|
-
const titleNode = title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9581
|
+
const titleNode = title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.PageTitle, { className: PAGE_CONTAINER_TITLE_CLASS, children: _chunkVT2ACO3Zcjs.accentSentenceMarks.call(void 0, title) }) : inScope && title === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageContainerTitleSkeleton, {}) : null;
|
|
9582
9582
|
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;
|
|
9583
9583
|
const getActionsVariant = () => {
|
|
9584
9584
|
if (actionsVariant) return actionsVariant;
|
|
@@ -9587,7 +9587,7 @@ function renderAdvancedPageContainer({
|
|
|
9587
9587
|
};
|
|
9588
9588
|
const renderActions = () => {
|
|
9589
9589
|
if (!actions || actions.length === 0) return null;
|
|
9590
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9590
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.PageActions, { variant: getActionsVariant(), actions, menuActions });
|
|
9591
9591
|
};
|
|
9592
9592
|
const needsBottomPadding = actions && actions.length > 0 && getActionsVariant() === "primary-buttons";
|
|
9593
9593
|
const paddingClasses = {
|
|
@@ -9610,7 +9610,7 @@ function renderAdvancedPageContainer({
|
|
|
9610
9610
|
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: [
|
|
9611
9611
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
9612
9612
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9613
|
-
|
|
9613
|
+
_chunkVYLBW6ZVcjs.BackButton,
|
|
9614
9614
|
{
|
|
9615
9615
|
onClick: backButton.onClick,
|
|
9616
9616
|
label: backButton.label,
|
|
@@ -9630,7 +9630,7 @@ function renderAdvancedPageContainer({
|
|
|
9630
9630
|
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: [
|
|
9631
9631
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
9632
9632
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9633
|
-
|
|
9633
|
+
_chunkVYLBW6ZVcjs.BackButton,
|
|
9634
9634
|
{
|
|
9635
9635
|
onClick: backButton.onClick,
|
|
9636
9636
|
label: backButton.label,
|
|
@@ -9650,7 +9650,7 @@ function renderAdvancedPageContainer({
|
|
|
9650
9650
|
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: [
|
|
9651
9651
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
9652
9652
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9653
|
-
|
|
9653
|
+
_chunkVYLBW6ZVcjs.BackButton,
|
|
9654
9654
|
{
|
|
9655
9655
|
onClick: backButton.onClick,
|
|
9656
9656
|
label: backButton.label,
|
|
@@ -10005,7 +10005,7 @@ var BenefitCardGrid = ({ children, className = "", columns = 2 }) => {
|
|
|
10005
10005
|
|
|
10006
10006
|
|
|
10007
10007
|
function PlatformBrowseButton({ item }) {
|
|
10008
|
-
const linkProps =
|
|
10008
|
+
const linkProps = _chunkPQ76VC2Pcjs.useNavLinkViaRuntime.call(void 0, { href: item.link, targetPlatform: item.targetPlatform });
|
|
10009
10009
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "outline", linkProps, rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-4 w-4" }), children: [
|
|
10010
10010
|
"Browse ",
|
|
10011
10011
|
item.buttonText
|
|
@@ -10524,10 +10524,10 @@ var OSTypeBadge = ({
|
|
|
10524
10524
|
if (!osType) {
|
|
10525
10525
|
return labelOnly ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "text-ods-text-secondary", className), children: "Unknown" }) : null;
|
|
10526
10526
|
}
|
|
10527
|
-
const normalized =
|
|
10527
|
+
const normalized = _chunkTCMUVY3Mcjs.normalizeOSType.call(void 0, osType);
|
|
10528
10528
|
if (!normalized && !labelOnly) return null;
|
|
10529
|
-
const label =
|
|
10530
|
-
const IconComponent =
|
|
10529
|
+
const label = _chunkTCMUVY3Mcjs.getOSLabel.call(void 0, osType);
|
|
10530
|
+
const IconComponent = _chunkTCMUVY3Mcjs.getOSIcon.call(void 0, osType);
|
|
10531
10531
|
if (iconOnly && IconComponent) {
|
|
10532
10532
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: _chunk7JWFMAQBcjs.cn.call(void 0, iconSize, "text-ods-text-secondary", className) });
|
|
10533
10533
|
}
|
|
@@ -10575,8 +10575,8 @@ function DeviceCard({
|
|
|
10575
10575
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || !!loadingProp;
|
|
10576
10576
|
const formatLastSeen = (lastSeen) => {
|
|
10577
10577
|
if (!lastSeen) return null;
|
|
10578
|
-
const date =
|
|
10579
|
-
return date === "\u2014" ? null : `${date} ${
|
|
10578
|
+
const date = _chunk7TBXHZLBcjs.formatDate.call(void 0, lastSeen);
|
|
10579
|
+
return date === "\u2014" ? null : `${date} ${_chunk7TBXHZLBcjs.formatTime.call(void 0, lastSeen)}`;
|
|
10580
10580
|
};
|
|
10581
10581
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10582
10582
|
"div",
|
|
@@ -10824,7 +10824,7 @@ function ComplianceLogo({
|
|
|
10824
10824
|
fallback = null,
|
|
10825
10825
|
className
|
|
10826
10826
|
}) {
|
|
10827
|
-
const standard =
|
|
10827
|
+
const standard = _chunkTCMUVY3Mcjs.complianceStandardForName.call(void 0, ...names);
|
|
10828
10828
|
if (!standard) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: fallback });
|
|
10829
10829
|
const Official = standard.logo ? COMPLIANCE_LOGOS[standard.logo] : null;
|
|
10830
10830
|
return Official ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10905,7 +10905,7 @@ function FeatureCardGridView({
|
|
|
10905
10905
|
if (allCardsHaveNoBorders) {
|
|
10906
10906
|
finalCardClassName = "bg-transparent p-0 overflow-visible border-0 shadow-none rounded-none";
|
|
10907
10907
|
}
|
|
10908
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10908
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSC3I3YWMcjs.Card, { className: `${finalCardClassName} ${className}`, children: Array.from({ length: rows }, (_, rowIndex) => {
|
|
10909
10909
|
const startIndex = rowIndex * itemsPerRow;
|
|
10910
10910
|
const rowItems = items.slice(startIndex, startIndex + itemsPerRow);
|
|
10911
10911
|
const isLastRow = rowIndex === rows - 1;
|
|
@@ -10939,7 +10939,7 @@ function FeatureCardGridView({
|
|
|
10939
10939
|
item.icon && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start justify-between", children: [
|
|
10940
10940
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, item.icon, { size: 80, color: item.iconColor }),
|
|
10941
10941
|
item.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10942
|
-
|
|
10942
|
+
_chunkSC3I3YWMcjs.StatusBadge,
|
|
10943
10943
|
{
|
|
10944
10944
|
text: item.badge.text,
|
|
10945
10945
|
variant: item.badge.variant || "card",
|
|
@@ -10948,7 +10948,7 @@ function FeatureCardGridView({
|
|
|
10948
10948
|
)
|
|
10949
10949
|
] }),
|
|
10950
10950
|
!item.icon && item.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-start justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10951
|
-
|
|
10951
|
+
_chunkSC3I3YWMcjs.StatusBadge,
|
|
10952
10952
|
{
|
|
10953
10953
|
text: item.badge.text,
|
|
10954
10954
|
variant: item.badge.variant || "card",
|
|
@@ -11681,7 +11681,7 @@ function OrganizationCardSkeleton({
|
|
|
11681
11681
|
..._chunk7JWFMAQBcjs.loadingItemProps.call(void 0, props),
|
|
11682
11682
|
children: [
|
|
11683
11683
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_HEADER_CLASS, children: [
|
|
11684
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11684
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.EntityImage, { src: null }),
|
|
11685
11685
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_TEXT_CLASS, children: [
|
|
11686
11686
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h3", className: "w-3/4" }),
|
|
11687
11687
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-1/2" })
|
|
@@ -11753,7 +11753,7 @@ function OrganizationCard({
|
|
|
11753
11753
|
}
|
|
11754
11754
|
),
|
|
11755
11755
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_HEADER_CLASS, children: [
|
|
11756
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11756
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.EntityImage, { src: fetchedImageUrl || organization.imageUrl, alt: organization.name }),
|
|
11757
11757
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_TEXT_CLASS, children: [
|
|
11758
11758
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "truncate text-ods-text-primary transition-colors text-h3", title: organization.name, children: organization.name }),
|
|
11759
11759
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11820,8 +11820,8 @@ function ServiceCard({
|
|
|
11820
11820
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-4", children: [
|
|
11821
11821
|
/* @__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 }),
|
|
11822
11822
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0", children: [
|
|
11823
|
-
loading && !title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h3", className: "w-40 max-w-full" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11824
|
-
loading && subtitle === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-56 max-w-full" }) : subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11823
|
+
loading && !title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h3", className: "w-40 max-w-full" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { variant: "h3", children: title }),
|
|
11824
|
+
loading && subtitle === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-56 max-w-full" }) : subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { variant: "h6", tone: "secondary", children: subtitle })
|
|
11825
11825
|
] })
|
|
11826
11826
|
] }),
|
|
11827
11827
|
tag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { label: tag.label, variant: "outline", className: "shrink-0 self-start", loading })
|
|
@@ -11832,7 +11832,7 @@ function ServiceCard({
|
|
|
11832
11832
|
function ServiceCardRowItem({ row, loading: loadingProp }) {
|
|
11833
11833
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
11834
11834
|
const [revealed, setRevealed] = _react.useState.call(void 0, false);
|
|
11835
|
-
const { copy, copied } =
|
|
11835
|
+
const { copy, copied } = _chunkVEN6MGNXcjs.useCopyToClipboard.call(void 0, );
|
|
11836
11836
|
const { ref: valueRef, isTruncated: valueTruncated } = _chunkLC65AC6Mcjs.useIsTruncated.call(void 0, row.value);
|
|
11837
11837
|
const actions = _react.useMemo.call(void 0, () => rowActions(row), [row]);
|
|
11838
11838
|
const displayValue = row.isSecret ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MaskedValue, { value: row.value, isRevealed: revealed }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: row.value });
|
|
@@ -11960,14 +11960,14 @@ function PersonCell({
|
|
|
11960
11960
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.SquareAvatar, { size: scale.avatar, src: _nullishCoalesce(avatarUrl, () => ( void 0)), alt: displayName, fallback: displayName }),
|
|
11961
11961
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
11962
11962
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11963
|
-
|
|
11963
|
+
_chunkVYLBW6ZVcjs.TruncateText,
|
|
11964
11964
|
{
|
|
11965
11965
|
variant: scale.primary,
|
|
11966
11966
|
className: onClick ? "text-ods-accent group-hover/person-cell:underline" : void 0,
|
|
11967
11967
|
children: displayName
|
|
11968
11968
|
}
|
|
11969
11969
|
),
|
|
11970
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11970
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { variant: "h6", tone: "secondary", children: secondary === void 0 ? "\xA0" : secondary || "\xB7" })
|
|
11971
11971
|
] })
|
|
11972
11972
|
] });
|
|
11973
11973
|
if (!onClick) return row;
|
|
@@ -12865,7 +12865,7 @@ function DataTableRowImpl({
|
|
|
12865
12865
|
const containerRef = _react.useRef.call(void 0, null);
|
|
12866
12866
|
const handleClick = _react.useCallback.call(void 0,
|
|
12867
12867
|
(e) => {
|
|
12868
|
-
if (!
|
|
12868
|
+
if (!_chunkTCMUVY3Mcjs.isOwnClick.call(void 0, e.target, containerRef.current)) {
|
|
12869
12869
|
if (isLinkMode) e.preventDefault();
|
|
12870
12870
|
return;
|
|
12871
12871
|
}
|
|
@@ -12879,7 +12879,7 @@ function DataTableRowImpl({
|
|
|
12879
12879
|
if (!(target instanceof Element) || !_optionalChain([container, 'optionalAccess', _224 => _224.contains, 'call', _225 => _225(target)])) return;
|
|
12880
12880
|
const nestedLink = target.closest("a");
|
|
12881
12881
|
if (nestedLink && nestedLink !== container && container.contains(nestedLink)) return;
|
|
12882
|
-
if (!
|
|
12882
|
+
if (!_chunkTCMUVY3Mcjs.isOwnClick.call(void 0, target, container) || target.closest(ROW_LINK_CONTROL_SELECTOR)) e.preventDefault();
|
|
12883
12883
|
}, []);
|
|
12884
12884
|
const containerClassName = _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
12885
12885
|
DATA_TABLE_ROW_FRAME_CLASS,
|
|
@@ -13009,7 +13009,7 @@ function DataTableBody({
|
|
|
13009
13009
|
const skeletonRowClassName = typeof rowClassName === "string" ? rowClassName : void 0;
|
|
13010
13010
|
if (loading && loadingCells && hasRows) {
|
|
13011
13011
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13012
|
-
|
|
13012
|
+
_chunkPQ76VC2Pcjs.LoadingFallback,
|
|
13013
13013
|
{
|
|
13014
13014
|
label: "Loading results",
|
|
13015
13015
|
status: loadingRegion && !inScope,
|
|
@@ -13358,7 +13358,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13358
13358
|
// child of the cell.
|
|
13359
13359
|
_optionalChain([meta, 'optionalAccess', _244 => _244.hint]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13360
13360
|
filterTrigger,
|
|
13361
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13361
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTCMUVY3Mcjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
13362
13362
|
] }) : filterTrigger
|
|
13363
13363
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13364
13364
|
"div",
|
|
@@ -13383,7 +13383,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13383
13383
|
// centred on the row.
|
|
13384
13384
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13385
13385
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
13386
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13386
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTCMUVY3Mcjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
13387
13387
|
] })
|
|
13388
13388
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
13389
13389
|
canSort && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortIcon, { sorted: sortDir })
|
|
@@ -13622,7 +13622,7 @@ function PhoneInput({
|
|
|
13622
13622
|
placeholder = "Phone Number (optional)",
|
|
13623
13623
|
onKeyDown
|
|
13624
13624
|
}) {
|
|
13625
|
-
const { priority, others } = _react.useMemo.call(void 0, () =>
|
|
13625
|
+
const { priority, others } = _react.useMemo.call(void 0, () => _chunkTCMUVY3Mcjs.getCountryPhoneData.call(void 0, ), []);
|
|
13626
13626
|
const selectedCountry = _react.useMemo.call(void 0,
|
|
13627
13627
|
() => [...priority, ...others].find((c) => c.code === countryCode),
|
|
13628
13628
|
[countryCode, priority, others]
|
|
@@ -13637,7 +13637,7 @@ function PhoneInput({
|
|
|
13637
13637
|
_optionalChain([onValidationChange, 'optionalCall', _261 => _261(false)]);
|
|
13638
13638
|
return;
|
|
13639
13639
|
}
|
|
13640
|
-
const invalid = !
|
|
13640
|
+
const invalid = !_chunkTCMUVY3Mcjs.validatePhoneNumber.call(void 0, phone, countryCode);
|
|
13641
13641
|
setIsInvalid(invalid);
|
|
13642
13642
|
_optionalChain([onValidationChange, 'optionalCall', _262 => _262(invalid)]);
|
|
13643
13643
|
},
|
|
@@ -13657,7 +13657,7 @@ function PhoneInput({
|
|
|
13657
13657
|
}, []);
|
|
13658
13658
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 gap-2", children: [
|
|
13659
13659
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13660
|
-
|
|
13660
|
+
_chunkVYLBW6ZVcjs.Select,
|
|
13661
13661
|
{
|
|
13662
13662
|
value: countryCode,
|
|
13663
13663
|
onValueChange: (val) => {
|
|
@@ -13668,14 +13668,14 @@ function PhoneInput({
|
|
|
13668
13668
|
},
|
|
13669
13669
|
disabled,
|
|
13670
13670
|
children: [
|
|
13671
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13671
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectTrigger, { className: "w-[130px] shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectValue, { children: selectedCountry && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-1.5", children: [
|
|
13672
13672
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: selectedCountry.flag }),
|
|
13673
13673
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: selectedCountry.dialCode })
|
|
13674
13674
|
] }) }) }),
|
|
13675
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13676
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13677
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13678
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13675
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVYLBW6ZVcjs.SelectContent, { className: "max-h-[300px] !w-[280px]", children: [
|
|
13676
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectGroup, { children: priority.map((country) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CountryOption, { country }, country.code)) }),
|
|
13677
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectSeparator, {}),
|
|
13678
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectGroup, { children: others.map((country) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CountryOption, { country }, country.code)) })
|
|
13679
13679
|
] })
|
|
13680
13680
|
]
|
|
13681
13681
|
}
|
|
@@ -13707,7 +13707,7 @@ function PhoneInput({
|
|
|
13707
13707
|
] });
|
|
13708
13708
|
}
|
|
13709
13709
|
function CountryOption({ country }) {
|
|
13710
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13710
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: country.code, textValue: country.name, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-2", children: [
|
|
13711
13711
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0", children: country.flag }),
|
|
13712
13712
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary", children: country.dialCode }),
|
|
13713
13713
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-block max-w-[140px] overflow-hidden text-ellipsis whitespace-nowrap", children: country.name })
|
|
@@ -14088,7 +14088,7 @@ function SearchInput({
|
|
|
14088
14088
|
)
|
|
14089
14089
|
] }),
|
|
14090
14090
|
showHiddenTags && hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14091
|
-
|
|
14091
|
+
_chunkVYLBW6ZVcjs.HiddenTagsPopup,
|
|
14092
14092
|
{
|
|
14093
14093
|
ref: hiddenTagsPopupRef,
|
|
14094
14094
|
items: hiddenChips.map((chip) => ({ label: chip.label, value: chip.id })),
|
|
@@ -14380,7 +14380,7 @@ function TagSearchInput({
|
|
|
14380
14380
|
}
|
|
14381
14381
|
),
|
|
14382
14382
|
showHiddenTags && hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14383
|
-
|
|
14383
|
+
_chunkVYLBW6ZVcjs.HiddenTagsPopup,
|
|
14384
14384
|
{
|
|
14385
14385
|
ref: hiddenTagsPopupRef,
|
|
14386
14386
|
items: hiddenTags,
|
|
@@ -14456,8 +14456,8 @@ function MarkdownLinkDialog({ isOpen, initial, editing, onSubmit, onRemove, onCl
|
|
|
14456
14456
|
if (!trimmedUrl) return;
|
|
14457
14457
|
onSubmit({ text: text.trim(), url: trimmedUrl, rel });
|
|
14458
14458
|
};
|
|
14459
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14460
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14459
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7TBXHZLBcjs.Modal, { isOpen, onClose, className: "text-left md:max-w-[560px]", children: [
|
|
14460
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ModalTitle, { children: editing ? "Edit link" : "Add link" }) }),
|
|
14461
14461
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14462
14462
|
"form",
|
|
14463
14463
|
{
|
|
@@ -14482,7 +14482,7 @@ function MarkdownLinkDialog({ isOpen, initial, editing, onSubmit, onRemove, onCl
|
|
|
14482
14482
|
),
|
|
14483
14483
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xsf)]", children: [
|
|
14484
14484
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14485
|
-
|
|
14485
|
+
_chunkPQ76VC2Pcjs.TabSelector,
|
|
14486
14486
|
{
|
|
14487
14487
|
label: "Search engines",
|
|
14488
14488
|
value: choice,
|
|
@@ -14499,7 +14499,7 @@ function MarkdownLinkDialog({ isOpen, initial, editing, onSubmit, onRemove, onCl
|
|
|
14499
14499
|
]
|
|
14500
14500
|
}
|
|
14501
14501
|
),
|
|
14502
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14502
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7TBXHZLBcjs.ModalFooter, { children: [
|
|
14503
14503
|
editing ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "button", variant: "outline", onClick: onRemove, className: "flex-1", children: "Remove link" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "button", variant: "outline", onClick: onClose, className: "flex-1", children: "Cancel" }),
|
|
14504
14504
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "submit", form: formId, variant: "accent", disabled: !trimmedUrl, className: "flex-1", children: editing ? "Save" : "Add link" })
|
|
14505
14505
|
] })
|
|
@@ -14539,7 +14539,7 @@ function useMarkdownLinkCommand() {
|
|
|
14539
14539
|
buttonProps: { "aria-label": "Add or edit a link (ctrl + l)", title: "Add or edit a link (ctrl + l)" },
|
|
14540
14540
|
icon: command.icon,
|
|
14541
14541
|
execute: (state, api) => {
|
|
14542
|
-
const existing =
|
|
14542
|
+
const existing = _chunkPQ76VC2Pcjs.findMarkdownLinkAt.call(void 0, state.text, state.selection.start, state.selection.end);
|
|
14543
14543
|
setPending(
|
|
14544
14544
|
existing ? {
|
|
14545
14545
|
api,
|
|
@@ -14570,7 +14570,7 @@ function useMarkdownLinkCommand() {
|
|
|
14570
14570
|
initial: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _319 => _319.initial]), () => ( EMPTY_LINK)),
|
|
14571
14571
|
editing: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _320 => _320.editing]), () => ( false)),
|
|
14572
14572
|
onSubmit: (link) => {
|
|
14573
|
-
if (pending) write(pending,
|
|
14573
|
+
if (pending) write(pending, _chunkPQ76VC2Pcjs.formatMarkdownLink.call(void 0, link));
|
|
14574
14574
|
},
|
|
14575
14575
|
onRemove: () => {
|
|
14576
14576
|
if (pending) write(pending, pending.initial.text);
|
|
@@ -14736,7 +14736,7 @@ function MarkdownEditor({
|
|
|
14736
14736
|
setUploadProgress(`Uploading ${file.name}...`);
|
|
14737
14737
|
try {
|
|
14738
14738
|
const url = await onUploadFile(file);
|
|
14739
|
-
const isImage =
|
|
14739
|
+
const isImage = _chunkVT2ACO3Zcjs.fileMediaType.call(void 0, file) === "image";
|
|
14740
14740
|
const markdown = isImage ? `` : `[${file.name}](${url})`;
|
|
14741
14741
|
insertTextAtCursor(markdown);
|
|
14742
14742
|
_optionalChain([onFileUploaded, 'optionalCall', _323 => _323(url, file.name)]);
|
|
@@ -14866,7 +14866,7 @@ function MarkdownEditor({
|
|
|
14866
14866
|
type: "file",
|
|
14867
14867
|
className: "hidden",
|
|
14868
14868
|
onChange: handleFileInputChange,
|
|
14869
|
-
accept: `${
|
|
14869
|
+
accept: `${_chunkVT2ACO3Zcjs.IMAGE_FILE_ACCEPT},.pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.zip,.txt`
|
|
14870
14870
|
}
|
|
14871
14871
|
),
|
|
14872
14872
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownEditorHeightContext.Provider, { value: height, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Suspense, { fallback: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownEditorFieldSkeleton, { height }), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -15280,7 +15280,7 @@ function matchesAccept2(file, accept) {
|
|
|
15280
15280
|
return patterns.some((pattern) => {
|
|
15281
15281
|
if (pattern.startsWith(".")) return fileName.endsWith(pattern);
|
|
15282
15282
|
if (pattern.endsWith("/*"))
|
|
15283
|
-
return fileType.startsWith(pattern.slice(0, -1)) ||
|
|
15283
|
+
return fileType.startsWith(pattern.slice(0, -1)) || _chunkVT2ACO3Zcjs.fileMediaType.call(void 0, file) === pattern.slice(0, -2);
|
|
15284
15284
|
return fileType === pattern;
|
|
15285
15285
|
});
|
|
15286
15286
|
}
|
|
@@ -15288,7 +15288,7 @@ function ImageUploader({
|
|
|
15288
15288
|
value,
|
|
15289
15289
|
onChange,
|
|
15290
15290
|
onRemove,
|
|
15291
|
-
accept =
|
|
15291
|
+
accept = _chunkVT2ACO3Zcjs.IMAGE_FILE_ACCEPT,
|
|
15292
15292
|
maxSize = DEFAULT_MAX_SIZE,
|
|
15293
15293
|
label = "Cover Image",
|
|
15294
15294
|
description = "(Click Here or Drag and Drop)",
|
|
@@ -15400,7 +15400,7 @@ function ImageUploader({
|
|
|
15400
15400
|
src: resolvedValue,
|
|
15401
15401
|
alt,
|
|
15402
15402
|
fill: true,
|
|
15403
|
-
sizes:
|
|
15403
|
+
sizes: _chunk5DBW6ERFcjs.IMAGE_SLOT.full,
|
|
15404
15404
|
unoptimized: true,
|
|
15405
15405
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
15406
15406
|
"pointer-events-none",
|
|
@@ -15520,13 +15520,13 @@ function ColorPresetSelect({
|
|
|
15520
15520
|
...presets.map((p) => ({
|
|
15521
15521
|
id: p.key,
|
|
15522
15522
|
label: p.label,
|
|
15523
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15523
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE64HJMY6cjs.ColorSwatch, { color: p.color }),
|
|
15524
15524
|
onClick: () => onChange({ color: p.color, preset: p.key })
|
|
15525
15525
|
})),
|
|
15526
15526
|
{
|
|
15527
15527
|
id: CUSTOM_PRESET_KEY,
|
|
15528
15528
|
label: "Custom",
|
|
15529
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15529
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE64HJMY6cjs.ColorSwatch, { color: isCustom ? value : DEFAULT_CUSTOM_STATUS_COLOR }),
|
|
15530
15530
|
onClick: () => onChange({ color: value, preset: void 0 })
|
|
15531
15531
|
}
|
|
15532
15532
|
]
|
|
@@ -15543,7 +15543,7 @@ function ColorPresetSelect({
|
|
|
15543
15543
|
{
|
|
15544
15544
|
disabled,
|
|
15545
15545
|
"aria-label": `Color: ${displayLabel}`,
|
|
15546
|
-
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15546
|
+
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE64HJMY6cjs.ColorSwatch, { color: displayColor }),
|
|
15547
15547
|
selectedLabel: displayLabel,
|
|
15548
15548
|
endIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TriggerChevron, {}),
|
|
15549
15549
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "group", className)
|
|
@@ -15564,7 +15564,7 @@ function HexInputs({ value, onChange }) {
|
|
|
15564
15564
|
}
|
|
15565
15565
|
const commit = () => {
|
|
15566
15566
|
const candidate = (draft.startsWith("#") ? draft : `#${draft}`).toLowerCase();
|
|
15567
|
-
if (
|
|
15567
|
+
if (_chunk7Q2PFKU3cjs.HEX_PATTERN.test(candidate)) onChange(candidate);
|
|
15568
15568
|
else setDraft(value);
|
|
15569
15569
|
};
|
|
15570
15570
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -15628,12 +15628,12 @@ function ChannelInput({
|
|
|
15628
15628
|
);
|
|
15629
15629
|
}
|
|
15630
15630
|
function RgbInputs({ value, onChange }) {
|
|
15631
|
-
const rgb = _nullishCoalesce(
|
|
15631
|
+
const rgb = _nullishCoalesce(_chunk7Q2PFKU3cjs.hexToRgb.call(void 0, value), () => ( { r: 0, g: 0, b: 0 }));
|
|
15632
15632
|
const update = (next) => {
|
|
15633
15633
|
const r = _nullishCoalesce(next.r, () => ( rgb.r));
|
|
15634
15634
|
const g = _nullishCoalesce(next.g, () => ( rgb.g));
|
|
15635
15635
|
const b = _nullishCoalesce(next.b, () => ( rgb.b));
|
|
15636
|
-
onChange(
|
|
15636
|
+
onChange(_chunk7Q2PFKU3cjs.rgbToHex.call(void 0, r, g, b));
|
|
15637
15637
|
};
|
|
15638
15638
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
15639
15639
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChannelInput, { value: rgb.r, min: 0, max: 255, ariaLabel: "Red", onCommit: (r) => update({ r }) }),
|
|
@@ -15642,14 +15642,14 @@ function RgbInputs({ value, onChange }) {
|
|
|
15642
15642
|
] });
|
|
15643
15643
|
}
|
|
15644
15644
|
function HslInputs({ value, onChange }) {
|
|
15645
|
-
const rgb = _nullishCoalesce(
|
|
15646
|
-
const hsl =
|
|
15645
|
+
const rgb = _nullishCoalesce(_chunk7Q2PFKU3cjs.hexToRgb.call(void 0, value), () => ( { r: 0, g: 0, b: 0 }));
|
|
15646
|
+
const hsl = _chunk7Q2PFKU3cjs.rgbToHsl.call(void 0, rgb.r, rgb.g, rgb.b);
|
|
15647
15647
|
const update = (next) => {
|
|
15648
15648
|
const h = _nullishCoalesce(next.h, () => ( hsl.h));
|
|
15649
15649
|
const s = _nullishCoalesce(next.s, () => ( hsl.s));
|
|
15650
15650
|
const l = _nullishCoalesce(next.l, () => ( hsl.l));
|
|
15651
|
-
const out =
|
|
15652
|
-
onChange(
|
|
15651
|
+
const out = _chunk7Q2PFKU3cjs.hslToRgb.call(void 0, h, s, l);
|
|
15652
|
+
onChange(_chunk7Q2PFKU3cjs.rgbToHex.call(void 0, out.r, out.g, out.b));
|
|
15653
15653
|
};
|
|
15654
15654
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
15655
15655
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChannelInput, { value: hsl.h, min: 0, max: 360, ariaLabel: "Hue", onCommit: (h) => update({ h }) }),
|
|
@@ -15681,7 +15681,7 @@ function ColorPickerInput({
|
|
|
15681
15681
|
{
|
|
15682
15682
|
disabled,
|
|
15683
15683
|
"aria-label": "Pick custom color",
|
|
15684
|
-
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15684
|
+
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE64HJMY6cjs.ColorSwatch, { color: value }),
|
|
15685
15685
|
selectedLabel: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase", children: value }),
|
|
15686
15686
|
endIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TriggerChevron, {}),
|
|
15687
15687
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "group", className)
|
|
@@ -15762,7 +15762,7 @@ function TicketStatusConfigRow({
|
|
|
15762
15762
|
const previewVariant = _nullishCoalesce(systemTagVariant, () => ( (isSystem ? void 0 : "primary")));
|
|
15763
15763
|
const fieldRowOffset = "mt-[calc(var(--font-line-space-h4-body)+0.25rem)]";
|
|
15764
15764
|
const chip = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15765
|
-
|
|
15765
|
+
_chunkE64HJMY6cjs.TicketStatusTag,
|
|
15766
15766
|
{
|
|
15767
15767
|
loading,
|
|
15768
15768
|
status: statusKey,
|
|
@@ -15879,9 +15879,9 @@ function TicketStatusConfigRow({
|
|
|
15879
15879
|
),
|
|
15880
15880
|
children: [
|
|
15881
15881
|
!isSystem && moveButtons,
|
|
15882
|
-
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,
|
|
15882
|
+
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, _chunkCUDJP7R7cjs.TouchFriendlyTooltip, { content: systemTooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "bare", size: "icon-sm", type: "button", "aria-label": _nullishCoalesce(systemTooltip, () => ( "System status")), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRHC2FRVEcjs.InfoCircleIcon, { size: 24 }) }) }) }) : (
|
|
15883
15883
|
// The delete button is a static control: drawn for real in both forms, inert while the status is read.
|
|
15884
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.InertWhileLoading, { loading, className: "inline-flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15884
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.InertWhileLoading, { loading, className: "inline-flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCUDJP7R7cjs.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,
|
|
15885
15885
|
_chunkAHBTZ7DNcjs.Button,
|
|
15886
15886
|
{
|
|
15887
15887
|
type: "button",
|
|
@@ -15922,7 +15922,7 @@ var TEST_RESULTS_SKELETON_COLUMNS = 6;
|
|
|
15922
15922
|
function TestResultsSkeleton({
|
|
15923
15923
|
region = true
|
|
15924
15924
|
} = {}) {
|
|
15925
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLKQ33CMYcjs.LoadingRegion, { label: "Loading the test results", announce: region, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15925
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLKQ33CMYcjs.LoadingRegion, { label: "Loading the test results", announce: region, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ScrollShadow, { axis: "horizontal", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-max min-w-full flex-col", children: [
|
|
15926
15926
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex", ROW_SHELL_CLASSES), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count: TEST_RESULTS_SKELETON_COLUMNS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 shrink-0 items-center", style: { width: RESULT_COLUMN_MIN_WIDTH }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h5", className: "w-3/4" }) }) }) }),
|
|
15927
15927
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DATA_TABLE_ROW_FRAME_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex", ROW_SHELL_CLASSES, ROW_HEIGHT_DESKTOP), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count: TEST_RESULTS_SKELETON_COLUMNS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, className: "shrink-0", style: { width: RESULT_COLUMN_MIN_WIDTH }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h4", className: "w-3/4" }) }) }) }) })
|
|
15928
15928
|
] }) }) });
|
|
@@ -15958,13 +15958,13 @@ function TestResultsTable({ rows, loading: loadingProp }) {
|
|
|
15958
15958
|
if (loading) {
|
|
15959
15959
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TestResultsSkeleton, {});
|
|
15960
15960
|
}
|
|
15961
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15961
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ScrollShadow, { axis: "horizontal", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { minWidth: Math.max(1, columnKeys.length) * RESULT_COLUMN_MIN_WIDTH }, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DataTable, { table, children: [
|
|
15962
15962
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTable.Header, { className: "flex flex-col" }),
|
|
15963
15963
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTable.Body, { loading: false })
|
|
15964
15964
|
] }) }) });
|
|
15965
15965
|
}
|
|
15966
15966
|
function TestRunErrorBanner({ error, className }) {
|
|
15967
|
-
const { copy } =
|
|
15967
|
+
const { copy } = _chunkVEN6MGNXcjs.useCopyToClipboard.call(void 0, { successDescription: "Error message copied to clipboard" });
|
|
15968
15968
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
15969
15969
|
"div",
|
|
15970
15970
|
{
|
|
@@ -16067,7 +16067,7 @@ function useTestRunState(campaign) {
|
|
|
16067
16067
|
const stopReason = _nullishCoalesce(campaign.stopReason, () => ( "completed"));
|
|
16068
16068
|
const status = isActive ? "running" : hasRun && isFinished ? stopReason === "completed" ? firstError ? "error" : "success" : stopReason : "idle";
|
|
16069
16069
|
const showTiming = hasRun && campaign.startedAt !== null && (campaign.isRunning || isFinished);
|
|
16070
|
-
const startedLabel = showTiming && campaign.startedAt ?
|
|
16070
|
+
const startedLabel = showTiming && campaign.startedAt ? _chunk7TBXHZLBcjs.formatTime.call(void 0, campaign.startedAt) : "00:00 PM";
|
|
16071
16071
|
const durationLabel = showTiming ? formatTestRunDuration(durationMs) : "00:00:00";
|
|
16072
16072
|
const displayRows = _react.useMemo.call(void 0,
|
|
16073
16073
|
() => campaign.results.map(
|
|
@@ -16420,7 +16420,7 @@ function TicketInfoSection({
|
|
|
16420
16420
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: _optionalChain([device, 'optionalAccess', _363 => _363.name]) || "Unassigned", label: "Device", icon: _optionalChain([device, 'optionalAccess', _364 => _364.icon]), onClick: _optionalChain([device, 'optionalAccess', _365 => _365.onClick]) }),
|
|
16421
16421
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-4", children: [
|
|
16422
16422
|
(status || statusLabel) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16423
|
-
|
|
16423
|
+
_chunkE64HJMY6cjs.TicketStatusTag,
|
|
16424
16424
|
{
|
|
16425
16425
|
status: _nullishCoalesce(status, () => ( "")),
|
|
16426
16426
|
label: statusLabel,
|
|
@@ -16450,7 +16450,7 @@ function TicketInfoSection({
|
|
|
16450
16450
|
expanded && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
16451
16451
|
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" }) }),
|
|
16452
16452
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-4 border-b border-ods-border bg-ods-bg p-4", children: [
|
|
16453
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16453
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPQ76VC2Pcjs.SimpleMarkdownRenderer, { content: description }),
|
|
16454
16454
|
attachments && attachments.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Attachments", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketAttachmentsList, { attachments }) }),
|
|
16455
16455
|
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, _chunkU2MHQBL4cjs.Tag, { label: tag, variant: "outline", className: "max-w-full" }, tag)) }) }),
|
|
16456
16456
|
(notes || onAddNote) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Notes", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -16475,8 +16475,8 @@ function renderTicketStatusOption(option, isSelected) {
|
|
|
16475
16475
|
const { label, color } = option;
|
|
16476
16476
|
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: [
|
|
16477
16477
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
16478
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16479
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16478
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE64HJMY6cjs.ColorSwatch, { color }),
|
|
16479
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { className: "text-inherit", children: label }) })
|
|
16480
16480
|
] }),
|
|
16481
16481
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
16482
16482
|
] });
|
|
@@ -16486,7 +16486,7 @@ function renderTicketAssigneeOption(option, isSelected) {
|
|
|
16486
16486
|
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: [
|
|
16487
16487
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
16488
16488
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.SquareAvatar, { src: imageUrl, alt: label, fallback: label, size: "sm", variant: "round" }),
|
|
16489
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16489
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { className: "text-inherit", children: label }) })
|
|
16490
16490
|
] }),
|
|
16491
16491
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
16492
16492
|
] });
|
|
@@ -16527,9 +16527,9 @@ function TakeOverTicketModal({
|
|
|
16527
16527
|
if (!selectedStatusId || !assigneeId || isPending) return;
|
|
16528
16528
|
onConfirm({ statusId: selectedStatusId, assigneeId });
|
|
16529
16529
|
};
|
|
16530
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16530
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7TBXHZLBcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
16531
16531
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
16532
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16532
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ModalTitle, { children: "Take Over Ticket" }) }),
|
|
16533
16533
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
16534
16534
|
"The ticket ",
|
|
16535
16535
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-accent", children: ticketRef }),
|
|
@@ -16537,19 +16537,19 @@ function TakeOverTicketModal({
|
|
|
16537
16537
|
] }),
|
|
16538
16538
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)] md:flex-row", children: [
|
|
16539
16539
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16540
|
-
|
|
16540
|
+
_chunkVYLBW6ZVcjs.Autocomplete,
|
|
16541
16541
|
{
|
|
16542
16542
|
label: "Status",
|
|
16543
16543
|
options: statusOptions,
|
|
16544
16544
|
value: selectedStatusId,
|
|
16545
16545
|
onChange: setStatusId,
|
|
16546
16546
|
placeholder: "Select Status",
|
|
16547
|
-
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16547
|
+
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE64HJMY6cjs.ColorSwatch, { color: selectedStatus.color }) : void 0,
|
|
16548
16548
|
renderOption: renderTicketStatusOption
|
|
16549
16549
|
}
|
|
16550
16550
|
) }),
|
|
16551
16551
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16552
|
-
|
|
16552
|
+
_chunkVYLBW6ZVcjs.Autocomplete,
|
|
16553
16553
|
{
|
|
16554
16554
|
label: "Assigned",
|
|
16555
16555
|
options: withTicketAssigneeAvatars(assigneeOptions),
|
|
@@ -16563,7 +16563,7 @@ function TakeOverTicketModal({
|
|
|
16563
16563
|
}
|
|
16564
16564
|
) })
|
|
16565
16565
|
] }),
|
|
16566
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16566
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7TBXHZLBcjs.ModalFooter, { children: [
|
|
16567
16567
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
16568
16568
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
16569
16569
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -16623,9 +16623,9 @@ function ReopenTicketModal({
|
|
|
16623
16623
|
reason: trimmedReason ? trimmedReason.slice(0, REASON_MAX_LENGTH) : null
|
|
16624
16624
|
});
|
|
16625
16625
|
};
|
|
16626
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16626
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7TBXHZLBcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
16627
16627
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
16628
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16628
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ModalTitle, { children: "Reopen Ticket" }) }),
|
|
16629
16629
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
16630
16630
|
"The ticket ",
|
|
16631
16631
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-accent", children: ticketRef }),
|
|
@@ -16633,19 +16633,19 @@ function ReopenTicketModal({
|
|
|
16633
16633
|
] }),
|
|
16634
16634
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)] md:flex-row", children: [
|
|
16635
16635
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16636
|
-
|
|
16636
|
+
_chunkVYLBW6ZVcjs.Autocomplete,
|
|
16637
16637
|
{
|
|
16638
16638
|
label: "Status",
|
|
16639
16639
|
options: statusOptions,
|
|
16640
16640
|
value: selectedStatusId,
|
|
16641
16641
|
onChange: setStatusId,
|
|
16642
16642
|
placeholder: "Select Status",
|
|
16643
|
-
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16643
|
+
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE64HJMY6cjs.ColorSwatch, { color: selectedStatus.color }) : void 0,
|
|
16644
16644
|
renderOption: renderTicketStatusOption
|
|
16645
16645
|
}
|
|
16646
16646
|
) }),
|
|
16647
16647
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16648
|
-
|
|
16648
|
+
_chunkVYLBW6ZVcjs.Autocomplete,
|
|
16649
16649
|
{
|
|
16650
16650
|
label: "Assigned",
|
|
16651
16651
|
options: withTicketAssigneeAvatars(assigneeOptions),
|
|
@@ -16670,7 +16670,7 @@ function ReopenTicketModal({
|
|
|
16670
16670
|
disabled: isPending
|
|
16671
16671
|
}
|
|
16672
16672
|
) }),
|
|
16673
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16673
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7TBXHZLBcjs.ModalFooter, { children: [
|
|
16674
16674
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
16675
16675
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
16676
16676
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -16719,9 +16719,9 @@ function ReopenTicketRequestModal({
|
|
|
16719
16719
|
...showHandoffOption ? { handoffToTechnician: handoff } : {}
|
|
16720
16720
|
});
|
|
16721
16721
|
};
|
|
16722
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16722
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7TBXHZLBcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
16723
16723
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
16724
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16724
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ModalTitle, { children: "Reopen Ticket" }) }),
|
|
16725
16725
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: "This ticket will be reopened and the AI assistant will continue helping you." }),
|
|
16726
16726
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16727
16727
|
Textarea,
|
|
@@ -16745,7 +16745,7 @@ function ReopenTicketRequestModal({
|
|
|
16745
16745
|
disabled: isPending
|
|
16746
16746
|
}
|
|
16747
16747
|
),
|
|
16748
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16748
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7TBXHZLBcjs.ModalFooter, { children: [
|
|
16749
16749
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1", children: "Cancel" }),
|
|
16750
16750
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "button", variant: "accent", onClick: handleConfirm, loading: isPending, className: "flex-1", children: "Reopen Ticket" })
|
|
16751
16751
|
] })
|
|
@@ -16769,7 +16769,7 @@ var FILL_FACTOR = 1.25;
|
|
|
16769
16769
|
var MAX_REPEATS = 8;
|
|
16770
16770
|
var MAX_PIXEL_DENSITY = 2;
|
|
16771
16771
|
function photoWallRequestWidth(columnWidth, pixelDensity) {
|
|
16772
|
-
return
|
|
16772
|
+
return _chunk5DBW6ERFcjs.imageWidthFor.call(void 0, columnWidth * Math.min(Math.max(1, pixelDensity), MAX_PIXEL_DENSITY));
|
|
16773
16773
|
}
|
|
16774
16774
|
function photoOrientation(naturalWidth, naturalHeight) {
|
|
16775
16775
|
if (!(naturalWidth > 0) || !(naturalHeight > 0)) return "wide";
|
|
@@ -16925,7 +16925,7 @@ function PhotoWall({
|
|
|
16925
16925
|
gap: COLUMN_GAP_PX
|
|
16926
16926
|
};
|
|
16927
16927
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: rootRef, "aria-hidden": "true", className: _chunk7JWFMAQBcjs.cn.call(void 0, "grid overflow-hidden", className), style: gridStyle, children: columnsToDraw ? columnsToDraw.map((column, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16928
|
-
|
|
16928
|
+
_chunkPQ76VC2Pcjs.MarqueeWall,
|
|
16929
16929
|
{
|
|
16930
16930
|
axis: "y",
|
|
16931
16931
|
reverse: index % 2 === 1,
|
|
@@ -17061,7 +17061,7 @@ function LazyMount({
|
|
|
17061
17061
|
// src/components/ui/app-window-frame.tsx
|
|
17062
17062
|
|
|
17063
17063
|
function AppWindowFrame({ title, children, footer, agent, className, bodyClassName }) {
|
|
17064
|
-
const tint =
|
|
17064
|
+
const tint = _chunk7Q2PFKU3cjs.useAgentTint.call(void 0, agent);
|
|
17065
17065
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17066
17066
|
"div",
|
|
17067
17067
|
{
|
|
@@ -17155,7 +17155,7 @@ function ProductScreenFrame({
|
|
|
17155
17155
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "ods-content-area", pending && "product-screen-pending"),
|
|
17156
17156
|
style: screenStyle,
|
|
17157
17157
|
children: [
|
|
17158
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ods-content-scope", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingScope, { bare: true, active: pending, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17158
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ods-content-scope", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingScope, { bare: true, active: pending, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.PagePicture, { children }) }) }),
|
|
17159
17159
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
|
|
17160
17160
|
]
|
|
17161
17161
|
}
|
|
@@ -17293,7 +17293,7 @@ function PhoneFrame({ dateLabel, timeLabel, children, className }) {
|
|
|
17293
17293
|
"div",
|
|
17294
17294
|
{
|
|
17295
17295
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "h-[617px] w-[299px] shrink-0 rounded-[48px] border border-ods-border bg-black p-2.5", className),
|
|
17296
|
-
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "relative flex h-full flex-col overflow-hidden rounded-[38px]",
|
|
17296
|
+
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "relative flex h-full flex-col overflow-hidden rounded-[38px]", _chunkVYLBW6ZVcjs.DEVICE_WALLPAPER_CLASS), children: [
|
|
17297
17297
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17298
17298
|
"div",
|
|
17299
17299
|
{
|
|
@@ -17485,7 +17485,7 @@ var TRIAL_TERM_ICONS = {
|
|
|
17485
17485
|
};
|
|
17486
17486
|
var DEFAULT_TRIAL_TERMS = ["cancel", "length", "noContract"];
|
|
17487
17487
|
function trialBenefits(trialDays, terms = DEFAULT_TRIAL_TERMS) {
|
|
17488
|
-
const labels =
|
|
17488
|
+
const labels = _chunkTCMUVY3Mcjs.trialLabels.call(void 0, trialDays);
|
|
17489
17489
|
return terms.flatMap((term) => {
|
|
17490
17490
|
const label = labels[term];
|
|
17491
17491
|
return label ? [{ icon: TRIAL_TERM_ICONS[term], label }] : [];
|
|
@@ -17592,7 +17592,7 @@ function AnalyzingState({ label, className }) {
|
|
|
17592
17592
|
}) }),
|
|
17593
17593
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1.5 text-center text-ods-text-secondary text-h4", children: [
|
|
17594
17594
|
label,
|
|
17595
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17595
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ChatTypingIndicator, { "aria-hidden": true, size: "sm", dotClassName: "bg-ods-text-secondary motion-reduce:animate-none" })
|
|
17596
17596
|
] })
|
|
17597
17597
|
] });
|
|
17598
17598
|
}
|
|
@@ -17606,7 +17606,7 @@ var INCIDENT_TONE = {
|
|
|
17606
17606
|
approved: "success"
|
|
17607
17607
|
};
|
|
17608
17608
|
function IncidentStatusLine({ status, label, className }) {
|
|
17609
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17609
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE64HJMY6cjs.StatusLine, { tone: INCIDENT_TONE[status], label, className });
|
|
17610
17610
|
}
|
|
17611
17611
|
var FEED_CLASS = "flex min-h-0 flex-1 flex-col gap-3 overflow-hidden p-4 md:px-5";
|
|
17612
17612
|
var FEED_BOTTOM_CLASS = "justify-end [mask-image:linear-gradient(180deg,transparent_0,#000_48px)]";
|
|
@@ -17839,7 +17839,7 @@ function SnapCarousel({
|
|
|
17839
17839
|
const goNext = _react.useCallback.call(void 0, () => goTo(index >= count - 1 ? 0 : index + 1), [count, goTo, index]);
|
|
17840
17840
|
const canAutoAdvance = autoAdvanceMs > 0 && count > 1;
|
|
17841
17841
|
const playing = auto.playing && canAutoAdvance;
|
|
17842
|
-
const ranMs =
|
|
17842
|
+
const ranMs = _chunkVEN6MGNXcjs.useResumableTimeout.call(void 0, {
|
|
17843
17843
|
running: playing,
|
|
17844
17844
|
durationMs: autoAdvanceMs,
|
|
17845
17845
|
resetKey: index,
|
|
@@ -18190,10 +18190,10 @@ function AccountDetailsFields({
|
|
|
18190
18190
|
onKeyDown,
|
|
18191
18191
|
layout = "stacked"
|
|
18192
18192
|
}) {
|
|
18193
|
-
const firstNameErr =
|
|
18194
|
-
const lastNameErr =
|
|
18195
|
-
const passwordErr =
|
|
18196
|
-
const confirmErr =
|
|
18193
|
+
const firstNameErr = _chunkVEN6MGNXcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _378 => _378.firstName]), firstName);
|
|
18194
|
+
const lastNameErr = _chunkVEN6MGNXcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _379 => _379.lastName]), lastName);
|
|
18195
|
+
const passwordErr = _chunkVEN6MGNXcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _380 => _380.password]), password);
|
|
18196
|
+
const confirmErr = _chunkVEN6MGNXcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _381 => _381.confirmPassword]), confirmPassword);
|
|
18197
18197
|
const names = [
|
|
18198
18198
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18199
18199
|
_chunk7RM4NM2Ccjs.Input,
|
|
@@ -18411,16 +18411,16 @@ function LabeledDivider({ label }) {
|
|
|
18411
18411
|
var PROVIDER_META = {
|
|
18412
18412
|
openframe: {
|
|
18413
18413
|
name: "OpenFrame",
|
|
18414
|
-
Icon:
|
|
18414
|
+
Icon: _chunk5DBW6ERFcjs.requireIcon.call(void 0, {
|
|
18415
18415
|
set: "OpenframeLogoIcon",
|
|
18416
18416
|
color: "var(--color-text-primary)",
|
|
18417
18417
|
secondaryColor: "var(--color-accent-primary)",
|
|
18418
18418
|
ownColor: true
|
|
18419
18419
|
})
|
|
18420
18420
|
},
|
|
18421
|
-
google: { name: "Google", Icon:
|
|
18422
|
-
microsoft: { name: "Microsoft", Icon:
|
|
18423
|
-
apple: { name: "Apple", Icon:
|
|
18421
|
+
google: { name: "Google", Icon: _chunk5DBW6ERFcjs.requireIcon.call(void 0, { set: "GoogleLogoIcon" }) },
|
|
18422
|
+
microsoft: { name: "Microsoft", Icon: _chunk5DBW6ERFcjs.requireIcon.call(void 0, { set: "MicrosoftLogoIcon" }) },
|
|
18423
|
+
apple: { name: "Apple", Icon: _chunk5DBW6ERFcjs.requireIcon.call(void 0, { set: "AppleLogoIcon" }) }
|
|
18424
18424
|
};
|
|
18425
18425
|
var SSO_PROVIDER_BUTTONS_CLASS = "flex flex-col gap-[var(--spacing-system-l)]";
|
|
18426
18426
|
var SSO_PROVIDERS_SKELETON_COUNT = 3;
|
|
@@ -18459,7 +18459,7 @@ function SsoProviderButtons({
|
|
|
18459
18459
|
// where a long organization name would otherwise push the label out of a phone-width
|
|
18460
18460
|
// button. `block` over its inline-flex, because an ellipsis only renders on a block box.
|
|
18461
18461
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18462
|
-
|
|
18462
|
+
_chunkSC3I3YWMcjs.StatusBadge,
|
|
18463
18463
|
{
|
|
18464
18464
|
text: tag,
|
|
18465
18465
|
variant: "button",
|
|
@@ -18519,7 +18519,7 @@ function CompleteAccountForm({
|
|
|
18519
18519
|
),
|
|
18520
18520
|
children: [
|
|
18521
18521
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
18522
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
18522
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkVT2ACO3Zcjs.accentSentenceMarks.call(void 0, title) }),
|
|
18523
18523
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
18524
18524
|
] }),
|
|
18525
18525
|
(ssoProvidersLoading || ssoProviders && ssoProviders.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -18653,9 +18653,9 @@ function CreateOrganizationForm({
|
|
|
18653
18653
|
}) {
|
|
18654
18654
|
const hasSso = !!ssoProviders && ssoProviders.length > 0;
|
|
18655
18655
|
const fieldsDisabled = disabled || loading;
|
|
18656
|
-
const emailErr =
|
|
18657
|
-
const orgNameErr =
|
|
18658
|
-
const domainErr =
|
|
18656
|
+
const emailErr = _chunkVEN6MGNXcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _383 => _383.email]), _nullishCoalesce(email, () => ( "")));
|
|
18657
|
+
const orgNameErr = _chunkVEN6MGNXcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _384 => _384.organizationName]), organizationName);
|
|
18658
|
+
const domainErr = _chunkVEN6MGNXcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _385 => _385.domain]), domain);
|
|
18659
18659
|
const handleKeyDown = (event) => {
|
|
18660
18660
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
18661
18661
|
onSubmit();
|
|
@@ -18670,7 +18670,7 @@ function CreateOrganizationForm({
|
|
|
18670
18670
|
),
|
|
18671
18671
|
children: [
|
|
18672
18672
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
18673
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
18673
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkVT2ACO3Zcjs.accentSentenceMarks.call(void 0, title) }),
|
|
18674
18674
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle === null ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: CREATE_ORGANIZATION_SUBTITLE_BAR_CLASS }) : subtitle })
|
|
18675
18675
|
] }),
|
|
18676
18676
|
email === void 0 ? null : emailReadOnly && emailReadOnlyLabel === null ? (
|
|
@@ -18817,7 +18817,7 @@ function InviteLinkInvalidModal({
|
|
|
18817
18817
|
),
|
|
18818
18818
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full max-w-[600px] flex-col gap-[var(--spacing-system-l)] rounded-md border border-ods-border bg-ods-card p-[var(--spacing-system-xl)]", children: [
|
|
18819
18819
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-mf)]", children: [
|
|
18820
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "flex-1 tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
18820
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "flex-1 tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkVT2ACO3Zcjs.accentSentenceMarks.call(void 0, title) }),
|
|
18821
18821
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18822
18822
|
_chunkAHBTZ7DNcjs.Button,
|
|
18823
18823
|
{
|
|
@@ -18883,7 +18883,7 @@ function LoginForm({
|
|
|
18883
18883
|
}) {
|
|
18884
18884
|
const fieldDisabled = disabled || loading;
|
|
18885
18885
|
const providersDisabled = fieldDisabled || ssoDisabled;
|
|
18886
|
-
const emailErr =
|
|
18886
|
+
const emailErr = _chunkVEN6MGNXcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _392 => _392.email]), email);
|
|
18887
18887
|
const handleKeyDown = (event) => {
|
|
18888
18888
|
if (event.key !== "Enter" || event.repeat || fieldDisabled) return;
|
|
18889
18889
|
if (onSubmitClick) {
|
|
@@ -18901,7 +18901,7 @@ function LoginForm({
|
|
|
18901
18901
|
),
|
|
18902
18902
|
children: [
|
|
18903
18903
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
18904
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
18904
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkVT2ACO3Zcjs.accentSentenceMarks.call(void 0, title) }),
|
|
18905
18905
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
18906
18906
|
] }),
|
|
18907
18907
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19028,7 +19028,7 @@ function NoAccountNotice({
|
|
|
19028
19028
|
),
|
|
19029
19029
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full max-w-[600px] flex-col gap-[var(--spacing-system-l)] rounded-md border border-ods-border bg-ods-card p-[var(--spacing-system-xl)]", children: [
|
|
19030
19030
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
19031
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19031
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkVT2ACO3Zcjs.accentSentenceMarks.call(void 0, title) }),
|
|
19032
19032
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: description })
|
|
19033
19033
|
] }),
|
|
19034
19034
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "button", variant: "outline", fullWidth: true, onClick: onBackToLogin, children: backLabel })
|
|
@@ -19061,8 +19061,8 @@ function OpenFrameSsoLoginForm({
|
|
|
19061
19061
|
className
|
|
19062
19062
|
}) {
|
|
19063
19063
|
const fieldsDisabled = disabled || loading;
|
|
19064
|
-
const emailErr =
|
|
19065
|
-
const passwordErr =
|
|
19064
|
+
const emailErr = _chunkVEN6MGNXcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _396 => _396.email]), email);
|
|
19065
|
+
const passwordErr = _chunkVEN6MGNXcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _397 => _397.password]), password);
|
|
19066
19066
|
const handleKeyDown = (event) => {
|
|
19067
19067
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
19068
19068
|
onSubmit();
|
|
@@ -19077,7 +19077,7 @@ function OpenFrameSsoLoginForm({
|
|
|
19077
19077
|
),
|
|
19078
19078
|
children: [
|
|
19079
19079
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
19080
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19080
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkVT2ACO3Zcjs.accentSentenceMarks.call(void 0, title) }),
|
|
19081
19081
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19082
19082
|
] }),
|
|
19083
19083
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19167,7 +19167,7 @@ function OpenFrameSsoSignUpForm({
|
|
|
19167
19167
|
className
|
|
19168
19168
|
}) {
|
|
19169
19169
|
const fieldsDisabled = disabled || loading;
|
|
19170
|
-
const emailErr =
|
|
19170
|
+
const emailErr = _chunkVEN6MGNXcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _398 => _398.email]), email);
|
|
19171
19171
|
const handleKeyDown = (event) => {
|
|
19172
19172
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
19173
19173
|
onSubmit();
|
|
@@ -19182,7 +19182,7 @@ function OpenFrameSsoSignUpForm({
|
|
|
19182
19182
|
),
|
|
19183
19183
|
children: [
|
|
19184
19184
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
19185
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19185
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkVT2ACO3Zcjs.accentSentenceMarks.call(void 0, title) }),
|
|
19186
19186
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19187
19187
|
] }),
|
|
19188
19188
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19272,8 +19272,8 @@ function PasswordResetForm({
|
|
|
19272
19272
|
className
|
|
19273
19273
|
}) {
|
|
19274
19274
|
const fieldsDisabled = disabled || loading;
|
|
19275
|
-
const passwordErr =
|
|
19276
|
-
const confirmErr =
|
|
19275
|
+
const passwordErr = _chunkVEN6MGNXcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _399 => _399.password]), password);
|
|
19276
|
+
const confirmErr = _chunkVEN6MGNXcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _400 => _400.confirmPassword]), confirmPassword);
|
|
19277
19277
|
const handleKeyDown = (event) => {
|
|
19278
19278
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
19279
19279
|
onSubmit();
|
|
@@ -19288,7 +19288,7 @@ function PasswordResetForm({
|
|
|
19288
19288
|
),
|
|
19289
19289
|
children: [
|
|
19290
19290
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
19291
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19291
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkVT2ACO3Zcjs.accentSentenceMarks.call(void 0, title) }),
|
|
19292
19292
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19293
19293
|
] }),
|
|
19294
19294
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19409,7 +19409,7 @@ function SsoJoinForm({
|
|
|
19409
19409
|
),
|
|
19410
19410
|
children: [
|
|
19411
19411
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
19412
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19412
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkVT2ACO3Zcjs.accentSentenceMarks.call(void 0, title) }),
|
|
19413
19413
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19414
19414
|
] }),
|
|
19415
19415
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-s)] rounded-md border border-ods-border bg-ods-bg p-[var(--spacing-system-m)]", children: [
|
|
@@ -19521,7 +19521,7 @@ function ProviderButton({ provider, onClick, disabled = false, loading = false }
|
|
|
19521
19521
|
disabled: disabled || isLoading,
|
|
19522
19522
|
variant: "outline",
|
|
19523
19523
|
size: "default",
|
|
19524
|
-
leftIcon: isLoading ? null : _react.createElement.call(void 0,
|
|
19524
|
+
leftIcon: isLoading ? null : _react.createElement.call(void 0, _chunk5DBW6ERFcjs.requireIcon.call(void 0, config.icon), { className: "h-5 w-5" }),
|
|
19525
19525
|
className: `h-[56px] w-full !font-bold !text-h6 hover:bg-ods-bg-hover content-md:!w-full ${isLoading ? "cursor-wait" : "cursor-pointer"} `,
|
|
19526
19526
|
"aria-label": config.displayName,
|
|
19527
19527
|
children: isLoading ? "Signing in..." : config.displayName
|
|
@@ -19675,7 +19675,7 @@ function ChangelogManager({
|
|
|
19675
19675
|
),
|
|
19676
19676
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: hasContent ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-primary text-h6", children: entry.title }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "italic text-ods-text-secondary text-h6", children: "New entry (click to edit)" }) }),
|
|
19677
19677
|
tagOptions && tagLabelOf(entry.tag) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19678
|
-
|
|
19678
|
+
_chunkSC3I3YWMcjs.StatusBadge,
|
|
19679
19679
|
{
|
|
19680
19680
|
variant: "button",
|
|
19681
19681
|
singleLine: true,
|
|
@@ -19739,9 +19739,9 @@ function ChangelogManager({
|
|
|
19739
19739
|
] }),
|
|
19740
19740
|
tagOptions && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-1", children: [
|
|
19741
19741
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD47ZGOUcjs.Label, { className: "text-ods-text-secondary", children: tagLabel }),
|
|
19742
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
19743
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19744
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19742
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVYLBW6ZVcjs.Select, { value: _nullishCoalesce(entry.tag, () => ( "")), onValueChange: (value) => updateEntry(index, "tag", value), children: [
|
|
19743
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectTrigger, { className: "bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectValue, { placeholder: tagLabel }) }),
|
|
19744
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectContent, { children: tagOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
19745
19745
|
] })
|
|
19746
19746
|
] })
|
|
19747
19747
|
] })
|
|
@@ -20034,7 +20034,7 @@ function EntityTagBadgesSkeleton({
|
|
|
20034
20034
|
}) {
|
|
20035
20035
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { "aria-hidden": true, className: _chunk7JWFMAQBcjs.cn.call(void 0, TAG_ROW_CLASS, className), children: [
|
|
20036
20036
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TAG_ITEM_CLASS, "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20037
|
-
|
|
20037
|
+
_chunkSC3I3YWMcjs.StatusBadge,
|
|
20038
20038
|
{
|
|
20039
20039
|
loading: true,
|
|
20040
20040
|
text: "",
|
|
@@ -20042,7 +20042,7 @@ function EntityTagBadgesSkeleton({
|
|
|
20042
20042
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "border", _nullishCoalesce(itemClassName, () => ( TAG_SKELETON_WIDTH_CLASS)))
|
|
20043
20043
|
}
|
|
20044
20044
|
) }) }),
|
|
20045
|
-
overflow && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TAG_ITEM_CLASS, "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20045
|
+
overflow && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TAG_ITEM_CLASS, "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSC3I3YWMcjs.StatusBadge, { loading: true, text: "", variant: "card", className: _chunk7JWFMAQBcjs.cn.call(void 0, "border", OVERFLOW_BADGE_SKELETON_CLASS) }) })
|
|
20046
20046
|
] });
|
|
20047
20047
|
}
|
|
20048
20048
|
function EntityTagBadges({
|
|
@@ -20070,7 +20070,7 @@ function EntityTagBadges({
|
|
|
20070
20070
|
const label = (tag.name || "").toUpperCase();
|
|
20071
20071
|
if (basePath && tag.slug) {
|
|
20072
20072
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _link2.default, { href: `${basePath}?tags=${tag.slug}`, className: itemClass(index), "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20073
|
-
|
|
20073
|
+
_chunkSC3I3YWMcjs.StatusBadge,
|
|
20074
20074
|
{
|
|
20075
20075
|
text: label,
|
|
20076
20076
|
variant: "card",
|
|
@@ -20078,7 +20078,7 @@ function EntityTagBadges({
|
|
|
20078
20078
|
}
|
|
20079
20079
|
) }, key);
|
|
20080
20080
|
}
|
|
20081
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: itemClass(index), "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20081
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: itemClass(index), "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSC3I3YWMcjs.StatusBadge, { text: label, variant: "card", className: BADGE_CLASS }) }, key);
|
|
20082
20082
|
}),
|
|
20083
20083
|
phoneOverflow === overflow ? overflow > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OverflowBadge, { count: overflow }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
20084
20084
|
phoneOverflow > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OverflowBadge, { count: phoneOverflow, className: "content-md:hidden" }),
|
|
@@ -20087,7 +20087,7 @@ function EntityTagBadges({
|
|
|
20087
20087
|
] });
|
|
20088
20088
|
}
|
|
20089
20089
|
function OverflowBadge({ count, className }) {
|
|
20090
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, TAG_ITEM_CLASS, className), "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20090
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, TAG_ITEM_CLASS, className), "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSC3I3YWMcjs.StatusBadge, { text: `+${count}`, variant: "card", className: _chunk7JWFMAQBcjs.cn.call(void 0, BADGE_CLASS, "text-ods-text-secondary") }) });
|
|
20091
20091
|
}
|
|
20092
20092
|
|
|
20093
20093
|
// src/components/features/error-boundary.tsx
|
|
@@ -20182,7 +20182,7 @@ var SectionButton = ({
|
|
|
20182
20182
|
}
|
|
20183
20183
|
),
|
|
20184
20184
|
section.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20185
|
-
|
|
20185
|
+
_chunkSC3I3YWMcjs.StatusBadge,
|
|
20186
20186
|
{
|
|
20187
20187
|
text: section.badge.text,
|
|
20188
20188
|
variant: section.badge.variant || "button",
|
|
@@ -20201,7 +20201,7 @@ var SectionButton = ({
|
|
|
20201
20201
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-wrap items-start gap-2", children: [
|
|
20202
20202
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, titleClasses, "text-h3"), style: { textAlign: "left" }, children: section.title }),
|
|
20203
20203
|
section.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20204
|
-
|
|
20204
|
+
_chunkSC3I3YWMcjs.StatusBadge,
|
|
20205
20205
|
{
|
|
20206
20206
|
text: section.badge.text,
|
|
20207
20207
|
variant: section.badge.variant || "button",
|
|
@@ -21264,15 +21264,15 @@ function useLoading() {
|
|
|
21264
21264
|
|
|
21265
21265
|
|
|
21266
21266
|
function isAlreadyThere(file, existing) {
|
|
21267
|
-
const key =
|
|
21267
|
+
const key = _chunkVT2ACO3Zcjs.mediaNameKey.call(void 0, file.name);
|
|
21268
21268
|
if (!key) return false;
|
|
21269
21269
|
return existing.some(
|
|
21270
|
-
(item) => (item.title ?
|
|
21270
|
+
(item) => (item.title ? _chunkVT2ACO3Zcjs.mediaNameKey.call(void 0, item.title) === key : false) || (item.media_url ? _chunkVT2ACO3Zcjs.mediaNameKey.call(void 0, item.media_url) === key : false)
|
|
21271
21271
|
);
|
|
21272
21272
|
}
|
|
21273
21273
|
var isFileDrag = (event) => Array.from(event.dataTransfer.types).includes("Files");
|
|
21274
|
-
var isVideoItem = (item) =>
|
|
21275
|
-
var MEDIA_KIND_ACCEPT = { image:
|
|
21274
|
+
var isVideoItem = (item) => _chunkVT2ACO3Zcjs.isVideoMedia.call(void 0, item) || item.media_type === "demo";
|
|
21275
|
+
var MEDIA_KIND_ACCEPT = { image: _chunkVT2ACO3Zcjs.IMAGE_FILE_ACCEPT, video: "video/*", both: _chunkVT2ACO3Zcjs.MEDIA_FILE_ACCEPT };
|
|
21276
21276
|
var MEDIA_KIND_COPY = {
|
|
21277
21277
|
image: { noun: "pictures", refusal: "Not a picture" },
|
|
21278
21278
|
video: { noun: "videos", refusal: "Not a video" },
|
|
@@ -21296,12 +21296,12 @@ function useMediaIntake({ existing, onUpload, onUploaded, kinds = "both" }) {
|
|
|
21296
21296
|
const seen = /* @__PURE__ */ new Set();
|
|
21297
21297
|
const accepted = [];
|
|
21298
21298
|
for (const file of files) {
|
|
21299
|
-
const mediaType =
|
|
21299
|
+
const mediaType = _chunkVT2ACO3Zcjs.fileMediaType.call(void 0, file);
|
|
21300
21300
|
if (!mediaType || kinds !== "both" && mediaType !== kinds) {
|
|
21301
21301
|
unsupported.push(file.name);
|
|
21302
21302
|
continue;
|
|
21303
21303
|
}
|
|
21304
|
-
const contentKey = await
|
|
21304
|
+
const contentKey = await _chunkVT2ACO3Zcjs.fileContentKey.call(void 0, file).catch(() => `${file.name}:${file.size}`);
|
|
21305
21305
|
if (seen.has(contentKey) || isAlreadyThere(file, existingRef.current)) {
|
|
21306
21306
|
duplicates.push(file.name);
|
|
21307
21307
|
continue;
|
|
@@ -21482,7 +21482,7 @@ function MediaGalleryManager({
|
|
|
21482
21482
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "grid grid-cols-1 gap-4 content-md:grid-cols-2", columns === 3 && "content-lg:grid-cols-3"),
|
|
21483
21483
|
children: [
|
|
21484
21484
|
media.map((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21485
|
-
|
|
21485
|
+
_chunkSC3I3YWMcjs.Card,
|
|
21486
21486
|
{
|
|
21487
21487
|
className: "group relative border-ods-border transition-colors hover:border-ods-accent/30",
|
|
21488
21488
|
draggable: true,
|
|
@@ -21507,7 +21507,7 @@ function MediaGalleryManager({
|
|
|
21507
21507
|
) }),
|
|
21508
21508
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative aspect-video overflow-hidden rounded-lg bg-ods-bg", children: isVideoItem(item) ? (
|
|
21509
21509
|
// <Video> SSOT (MuxPlayer): plays Mux HLS and MP4 alike; fit="cover" crops to the cell.
|
|
21510
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21510
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSC3I3YWMcjs.Video, { kind: "file", url: item.media_url, fit: "cover", className: "h-full w-full" })
|
|
21511
21511
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21512
21512
|
_chunkKUXHXLJQcjs.next_image_default,
|
|
21513
21513
|
{
|
|
@@ -21515,24 +21515,24 @@ function MediaGalleryManager({
|
|
|
21515
21515
|
alt: item.title || "Media",
|
|
21516
21516
|
fill: true,
|
|
21517
21517
|
className: "object-cover",
|
|
21518
|
-
sizes:
|
|
21518
|
+
sizes: _chunk5DBW6ERFcjs.IMAGE_SLOT.card
|
|
21519
21519
|
}
|
|
21520
21520
|
) }),
|
|
21521
21521
|
editableDetails ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2 p-3", children: [
|
|
21522
21522
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
21523
21523
|
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" }),
|
|
21524
21524
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21525
|
-
|
|
21525
|
+
_chunkVYLBW6ZVcjs.Select,
|
|
21526
21526
|
{
|
|
21527
21527
|
value: item.media_type,
|
|
21528
21528
|
onValueChange: (value) => update(index, { media_type: value }),
|
|
21529
21529
|
children: [
|
|
21530
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21531
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21532
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21533
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21534
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21535
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21530
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectTrigger, { className: "h-8 bg-ods-bg text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectValue, {}) }),
|
|
21531
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVYLBW6ZVcjs.SelectContent, { className: "bg-ods-card", children: [
|
|
21532
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: "image", children: "Image" }),
|
|
21533
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: "video", children: "Video" }),
|
|
21534
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: "screenshot", children: "Screenshot" }),
|
|
21535
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: "demo", children: "Demo" })
|
|
21536
21536
|
] })
|
|
21537
21537
|
]
|
|
21538
21538
|
}
|
|
@@ -21559,7 +21559,7 @@ function MediaGalleryManager({
|
|
|
21559
21559
|
},
|
|
21560
21560
|
_nullishCoalesce(item.id, () => ( `${item.media_url}-${index}`))
|
|
21561
21561
|
)),
|
|
21562
|
-
pending.map((name, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21562
|
+
pending.map((name, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkSC3I3YWMcjs.Card, { className: "border-ods-border", "aria-busy": "true", children: [
|
|
21563
21563
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex aspect-video items-center justify-center rounded-lg bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "h-8 w-8 animate-spin text-ods-accent" }) }),
|
|
21564
21564
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate p-3 text-ods-text-secondary text-h6", children: name })
|
|
21565
21565
|
] }, `pending-${name}-${index}`))
|
|
@@ -21916,7 +21916,7 @@ var MODEL_TOKEN_RATES_COPY = {
|
|
|
21916
21916
|
empty: "No token rates are in effect right now."
|
|
21917
21917
|
};
|
|
21918
21918
|
function providerMark(providerType, stated, className) {
|
|
21919
|
-
const Mark =
|
|
21919
|
+
const Mark = _chunk5DBW6ERFcjs.findIcon.call(void 0, _chunkTCMUVY3Mcjs.aiProvider.call(void 0, providerType, { icon: stated }).icon);
|
|
21920
21920
|
return Mark ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Mark, { className }) : void 0;
|
|
21921
21921
|
}
|
|
21922
21922
|
var PAD_X = "px-[var(--spacing-system-s)]";
|
|
@@ -21934,7 +21934,7 @@ var UNIT_LINE_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
|
21934
21934
|
var TABS_ROW_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0, "shrink-0 border-b border-ods-border py-[var(--spacing-system-xs)]", PAD_X);
|
|
21935
21935
|
var NUMBER_CELL = "w-16 shrink-0 whitespace-nowrap text-right tabular-nums";
|
|
21936
21936
|
function useProviderGroup(rates) {
|
|
21937
|
-
const groups =
|
|
21937
|
+
const groups = _chunkTCMUVY3Mcjs.groupTokenRatesByProvider.call(void 0, rates);
|
|
21938
21938
|
const [picked, setPicked] = _react.useState.call(void 0, null);
|
|
21939
21939
|
return { groups, group: _nullishCoalesce(groups.find((candidate) => candidate.providerType === picked), () => ( groups[0])), setPicked };
|
|
21940
21940
|
}
|
|
@@ -21945,7 +21945,7 @@ function ProviderTabs({
|
|
|
21945
21945
|
className
|
|
21946
21946
|
}) {
|
|
21947
21947
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21948
|
-
|
|
21948
|
+
_chunkPQ76VC2Pcjs.TabSelector,
|
|
21949
21949
|
{
|
|
21950
21950
|
variant: "secondary",
|
|
21951
21951
|
scrollable: true,
|
|
@@ -21953,7 +21953,7 @@ function ProviderTabs({
|
|
|
21953
21953
|
onValueChange,
|
|
21954
21954
|
items: groups.map((candidate) => ({
|
|
21955
21955
|
id: candidate.providerType,
|
|
21956
|
-
label:
|
|
21956
|
+
label: _chunkTCMUVY3Mcjs.tokenRateProviderLabel.call(void 0, candidate.providerType, _optionalChain([candidate, 'access', _462 => _462.rates, 'access', _463 => _463[0], 'optionalAccess', _464 => _464.providerLabel])),
|
|
21957
21957
|
icon: providerMark(candidate.providerType, _optionalChain([candidate, 'access', _465 => _465.rates, 'access', _466 => _466[0], 'optionalAccess', _467 => _467.providerIcon]), "size-full")
|
|
21958
21958
|
})),
|
|
21959
21959
|
className
|
|
@@ -22030,8 +22030,8 @@ function ModelTokenRatesTable({ rates }) {
|
|
|
22030
22030
|
] }),
|
|
22031
22031
|
/* @__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: [
|
|
22032
22032
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "rowheader", className: "min-w-0 flex-1 truncate", children: rate.displayName || rate.modelName }),
|
|
22033
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children:
|
|
22034
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children:
|
|
22033
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunkTCMUVY3Mcjs.formatTokenRate.call(void 0, rate.inputTokenRate) }),
|
|
22034
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunkTCMUVY3Mcjs.formatTokenRate.call(void 0, rate.outputTokenRate) })
|
|
22035
22035
|
] }, rate.modelName)) })
|
|
22036
22036
|
] }),
|
|
22037
22037
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: UNIT_LINE_CLASS, children: MODEL_TOKEN_RATES_COPY.unit })
|
|
@@ -22078,7 +22078,7 @@ function modelOption(rate) {
|
|
|
22078
22078
|
return {
|
|
22079
22079
|
label: rate.displayName || rate.modelName,
|
|
22080
22080
|
value: rate.modelName,
|
|
22081
|
-
description:
|
|
22081
|
+
description: _chunkTCMUVY3Mcjs.tokenRateProviderLabel.call(void 0, rate.providerType, rate.providerLabel),
|
|
22082
22082
|
icon: providerMark(rate.providerType, rate.providerIcon, "size-full text-ods-text-secondary")
|
|
22083
22083
|
};
|
|
22084
22084
|
}
|
|
@@ -22133,8 +22133,8 @@ function ModelTokenExchange({
|
|
|
22133
22133
|
const [chosen, setChosen] = _react.useState.call(void 0, null);
|
|
22134
22134
|
const balance = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(chosen, () => ( defaultAmount)), () => ( _optionalChain([tokenPrice, 'optionalAccess', _468 => _468.tokens]))), () => ( MODEL_TOKEN_EXCHANGE_BALANCE));
|
|
22135
22135
|
const max = Math.max(amountRange.max, balance, ...presets.map((preset) => preset.tokens));
|
|
22136
|
-
const tokens =
|
|
22137
|
-
const cost =
|
|
22136
|
+
const tokens = _chunkTCMUVY3Mcjs.formatTokenAmount.call(void 0, balance);
|
|
22137
|
+
const cost = _chunkTCMUVY3Mcjs.tokenCost.call(void 0, balance, tokenPrice);
|
|
22138
22138
|
const balancePrice = cost === null ? null : _chunkU2MHQBL4cjs.formatPrice.call(void 0, cost);
|
|
22139
22139
|
const model = rate ? rate.displayName || rate.modelName : "";
|
|
22140
22140
|
const options = models.map(modelOption);
|
|
@@ -22177,7 +22177,7 @@ function ModelTokenExchange({
|
|
|
22177
22177
|
variant: preset.tokens === balance ? "accent" : "outline",
|
|
22178
22178
|
size: "small",
|
|
22179
22179
|
onClick: () => setChosen(preset.tokens),
|
|
22180
|
-
children: copy.buy.preset(
|
|
22180
|
+
children: copy.buy.preset(_chunkTCMUVY3Mcjs.formatTokenAmount.call(void 0, preset.tokens), preset.label)
|
|
22181
22181
|
},
|
|
22182
22182
|
preset.label
|
|
22183
22183
|
)) })
|
|
@@ -22194,7 +22194,7 @@ function ModelTokenExchange({
|
|
|
22194
22194
|
const stated = _nullishCoalesce(models.find((option) => option.providerType === providerType), () => ( (_optionalChain([rate, 'optionalAccess', _469 => _469.providerType]) === providerType ? rate : null)));
|
|
22195
22195
|
return {
|
|
22196
22196
|
id: providerType,
|
|
22197
|
-
name:
|
|
22197
|
+
name: _chunkTCMUVY3Mcjs.tokenRateProviderLabel.call(void 0, providerType, _optionalChain([stated, 'optionalAccess', _470 => _470.providerLabel])),
|
|
22198
22198
|
icon: providerMark(providerType, _optionalChain([stated, 'optionalAccess', _471 => _471.providerIcon]), "size-8 text-ods-text-secondary")
|
|
22199
22199
|
};
|
|
22200
22200
|
}),
|
|
@@ -22206,7 +22206,7 @@ function ModelTokenExchange({
|
|
|
22206
22206
|
}
|
|
22207
22207
|
),
|
|
22208
22208
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22209
|
-
|
|
22209
|
+
_chunkVYLBW6ZVcjs.Autocomplete,
|
|
22210
22210
|
{
|
|
22211
22211
|
fieldLoading: loading,
|
|
22212
22212
|
label: copy.use.model,
|
|
@@ -22233,7 +22233,7 @@ function ModelTokenExchange({
|
|
|
22233
22233
|
{
|
|
22234
22234
|
size: "plain",
|
|
22235
22235
|
loading,
|
|
22236
|
-
figure:
|
|
22236
|
+
figure: _chunkTCMUVY3Mcjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _476 => _476.inputTokenRate])),
|
|
22237
22237
|
words: copy.charge.input
|
|
22238
22238
|
}
|
|
22239
22239
|
),
|
|
@@ -22242,7 +22242,7 @@ function ModelTokenExchange({
|
|
|
22242
22242
|
{
|
|
22243
22243
|
size: "plain",
|
|
22244
22244
|
loading,
|
|
22245
|
-
figure:
|
|
22245
|
+
figure: _chunkTCMUVY3Mcjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _477 => _477.outputTokenRate])),
|
|
22246
22246
|
words: copy.charge.output
|
|
22247
22247
|
}
|
|
22248
22248
|
)
|
|
@@ -22254,9 +22254,9 @@ function ModelTokenExchange({
|
|
|
22254
22254
|
className: "mt-auto flex flex-col rounded-md border border-ods-accent bg-ods-bg p-[var(--spacing-system-mf)]",
|
|
22255
22255
|
children: [
|
|
22256
22256
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[2lh] text-ods-text-secondary text-h4", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-full max-w-xs" }) : copy.charge.so(_nullishCoalesce(balancePrice, () => ( copy.buy.tokens(tokens))), model) }),
|
|
22257
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] whitespace-nowrap tabular-nums text-ods-text-primary text-h1", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-40" }) :
|
|
22257
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] whitespace-nowrap tabular-nums text-ods-text-primary text-h1", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-40" }) : _chunkTCMUVY3Mcjs.formatTokenAmount.call(void 0, _chunkTCMUVY3Mcjs.tokensForBalance.call(void 0, balance, rate.inputTokenRate)) }),
|
|
22258
22258
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-primary text-h3", children: copy.charge.read }),
|
|
22259
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-secondary text-h4", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-48" }) : copy.charge.orWritten(
|
|
22259
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-secondary text-h4", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-48" }) : copy.charge.orWritten(_chunkTCMUVY3Mcjs.formatTokenAmount.call(void 0, _chunkTCMUVY3Mcjs.tokensForBalance.call(void 0, balance, rate.outputTokenRate))) })
|
|
22260
22260
|
]
|
|
22261
22261
|
}
|
|
22262
22262
|
)
|
|
@@ -22398,7 +22398,7 @@ var ParallaxImageShowcase = ({
|
|
|
22398
22398
|
alt: leftImage.alt,
|
|
22399
22399
|
width: 800,
|
|
22400
22400
|
height: 500,
|
|
22401
|
-
sizes:
|
|
22401
|
+
sizes: _chunk5DBW6ERFcjs.IMAGE_SLOT.card,
|
|
22402
22402
|
className: "h-auto w-full object-contain",
|
|
22403
22403
|
style: shadow ? { boxShadow: "0 20px 40px rgba(0, 0, 0, 0.3)" } : {}
|
|
22404
22404
|
}
|
|
@@ -22420,7 +22420,7 @@ var ParallaxImageShowcase = ({
|
|
|
22420
22420
|
alt: centerImage.alt,
|
|
22421
22421
|
width: 800,
|
|
22422
22422
|
height: 500,
|
|
22423
|
-
sizes:
|
|
22423
|
+
sizes: _chunk5DBW6ERFcjs.IMAGE_SLOT.card,
|
|
22424
22424
|
className: "h-auto w-full object-contain",
|
|
22425
22425
|
style: shadow ? { boxShadow: "0 20px 40px rgba(0, 0, 0, 0.3)" } : {}
|
|
22426
22426
|
}
|
|
@@ -22442,7 +22442,7 @@ var ParallaxImageShowcase = ({
|
|
|
22442
22442
|
alt: rightImage.alt,
|
|
22443
22443
|
width: 800,
|
|
22444
22444
|
height: 500,
|
|
22445
|
-
sizes:
|
|
22445
|
+
sizes: _chunk5DBW6ERFcjs.IMAGE_SLOT.card,
|
|
22446
22446
|
className: "h-auto w-full object-contain",
|
|
22447
22447
|
style: shadow ? { boxShadow: "0 20px 40px rgba(0, 0, 0, 0.3)" } : {}
|
|
22448
22448
|
}
|
|
@@ -22467,7 +22467,7 @@ var ParallaxImageShowcase = ({
|
|
|
22467
22467
|
src: leftImage.src,
|
|
22468
22468
|
alt: leftImage.alt,
|
|
22469
22469
|
fill: true,
|
|
22470
|
-
sizes:
|
|
22470
|
+
sizes: _chunk5DBW6ERFcjs.IMAGE_SLOT.half,
|
|
22471
22471
|
className: "ods-card/50 border border-ods-border object-cover object-[left_top]"
|
|
22472
22472
|
}
|
|
22473
22473
|
),
|
|
@@ -22487,7 +22487,7 @@ var ParallaxImageShowcase = ({
|
|
|
22487
22487
|
src: centerImage.src,
|
|
22488
22488
|
alt: centerImage.alt,
|
|
22489
22489
|
fill: true,
|
|
22490
|
-
sizes:
|
|
22490
|
+
sizes: _chunk5DBW6ERFcjs.IMAGE_SLOT.half,
|
|
22491
22491
|
className: "ods-card/50 border border-ods-border object-cover object-[left_top]"
|
|
22492
22492
|
}
|
|
22493
22493
|
),
|
|
@@ -22508,7 +22508,7 @@ var ParallaxImageShowcase = ({
|
|
|
22508
22508
|
y,
|
|
22509
22509
|
rotate
|
|
22510
22510
|
},
|
|
22511
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKUXHXLJQcjs.next_image_default, { src: rightImage.src, alt: rightImage.alt, fill: true, sizes:
|
|
22511
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKUXHXLJQcjs.next_image_default, { src: rightImage.src, alt: rightImage.alt, fill: true, sizes: _chunk5DBW6ERFcjs.IMAGE_SLOT.full, className: "object-contain" })
|
|
22512
22512
|
}
|
|
22513
22513
|
),
|
|
22514
22514
|
centerImage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -22520,7 +22520,7 @@ var ParallaxImageShowcase = ({
|
|
|
22520
22520
|
y,
|
|
22521
22521
|
rotate
|
|
22522
22522
|
},
|
|
22523
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKUXHXLJQcjs.next_image_default, { src: centerImage.src, alt: centerImage.alt, fill: true, sizes:
|
|
22523
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKUXHXLJQcjs.next_image_default, { src: centerImage.src, alt: centerImage.alt, fill: true, sizes: _chunk5DBW6ERFcjs.IMAGE_SLOT.full, className: "object-contain" })
|
|
22524
22524
|
}
|
|
22525
22525
|
),
|
|
22526
22526
|
leftImage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -22532,7 +22532,7 @@ var ParallaxImageShowcase = ({
|
|
|
22532
22532
|
y,
|
|
22533
22533
|
rotate
|
|
22534
22534
|
},
|
|
22535
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKUXHXLJQcjs.next_image_default, { src: leftImage.src, alt: leftImage.alt, fill: true, sizes:
|
|
22535
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKUXHXLJQcjs.next_image_default, { src: leftImage.src, alt: leftImage.alt, fill: true, sizes: _chunk5DBW6ERFcjs.IMAGE_SLOT.full, className: "object-contain" })
|
|
22536
22536
|
}
|
|
22537
22537
|
)
|
|
22538
22538
|
] });
|
|
@@ -22677,7 +22677,7 @@ function PlatformFilterComponent({
|
|
|
22677
22677
|
variant: selectedPlatform === platform.value ? "accent" : "outline",
|
|
22678
22678
|
size,
|
|
22679
22679
|
onClick: () => onPlatformChange(platform.value),
|
|
22680
|
-
leftIcon: showIcons ?
|
|
22680
|
+
leftIcon: showIcons ? _chunkZFUNSXSHcjs.getSmallPlatformIcon.call(void 0, platform.value) : void 0,
|
|
22681
22681
|
className: "text-h3",
|
|
22682
22682
|
children: platform.label
|
|
22683
22683
|
},
|
|
@@ -22730,8 +22730,8 @@ var SelectButton = _react2.default.forwardRef(
|
|
|
22730
22730
|
src: image.src,
|
|
22731
22731
|
alt: image.alt,
|
|
22732
22732
|
className: "size-full object-cover",
|
|
22733
|
-
width:
|
|
22734
|
-
height:
|
|
22733
|
+
width: _chunk5DBW6ERFcjs.IMAGE_FIXED_PX.logoLg,
|
|
22734
|
+
height: _chunk5DBW6ERFcjs.IMAGE_FIXED_PX.logoLg,
|
|
22735
22735
|
unoptimized: true
|
|
22736
22736
|
}
|
|
22737
22737
|
) }),
|
|
@@ -22776,14 +22776,14 @@ var ConfidenceBadge = ({
|
|
|
22776
22776
|
size = "sm",
|
|
22777
22777
|
className
|
|
22778
22778
|
}) => {
|
|
22779
|
-
const level =
|
|
22779
|
+
const level = _chunkTCMUVY3Mcjs.getConfidenceLevel.call(void 0, confidence);
|
|
22780
22780
|
if (level === "none") {
|
|
22781
22781
|
return null;
|
|
22782
22782
|
}
|
|
22783
|
-
const label =
|
|
22784
|
-
const borderClass =
|
|
22785
|
-
const textClass =
|
|
22786
|
-
const bgClass =
|
|
22783
|
+
const label = _chunkTCMUVY3Mcjs.getConfidenceLabel.call(void 0, confidence);
|
|
22784
|
+
const borderClass = _chunkTCMUVY3Mcjs.getConfidenceBorderClass.call(void 0, confidence);
|
|
22785
|
+
const textClass = _chunkTCMUVY3Mcjs.getConfidenceTextClass.call(void 0, confidence);
|
|
22786
|
+
const bgClass = _chunkTCMUVY3Mcjs.getConfidenceBgClass.call(void 0, confidence);
|
|
22787
22787
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
22788
22788
|
"span",
|
|
22789
22789
|
{
|
|
@@ -22834,9 +22834,9 @@ function SEOEditorPreview({
|
|
|
22834
22834
|
const [isUploading, setIsUploading] = _react.useState.call(void 0, false);
|
|
22835
22835
|
const [fileInputRef, setFileInputRef] = _react.useState.call(void 0, null);
|
|
22836
22836
|
const seoTitleLength = (seoTitle || "").length;
|
|
22837
|
-
const seoTitleTooLong = seoTitleLength >
|
|
22837
|
+
const seoTitleTooLong = seoTitleLength > _chunkTCMUVY3Mcjs.SEO_TITLE_MAX_LENGTH;
|
|
22838
22838
|
const seoDescriptionLength = (seoDescription || "").length;
|
|
22839
|
-
const seoDescriptionTooLong = seoDescriptionLength >
|
|
22839
|
+
const seoDescriptionTooLong = seoDescriptionLength > _chunkTCMUVY3Mcjs.SEO_DESCRIPTION_MAX_LENGTH;
|
|
22840
22840
|
const displayTitle = seoTitle.trim() || title || "Untitled";
|
|
22841
22841
|
const displayDescription = seoDescription.trim() || summary || "No description";
|
|
22842
22842
|
const hasOgImage = ogImageUrl.trim();
|
|
@@ -22861,10 +22861,10 @@ function SEOEditorPreview({
|
|
|
22861
22861
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
22862
22862
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
22863
22863
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22864
|
-
|
|
22864
|
+
_chunkTCMUVY3Mcjs.Field,
|
|
22865
22865
|
{
|
|
22866
22866
|
label: "SEO Title",
|
|
22867
|
-
error: seoTitleTooLong ? `Too long: search engines may truncate this title (keep it under ${
|
|
22867
|
+
error: seoTitleTooLong ? `Too long: search engines may truncate this title (keep it under ${_chunkTCMUVY3Mcjs.SEO_TITLE_MAX_LENGTH})` : null,
|
|
22868
22868
|
labelExtras: aiConfidenceSeoTitle !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
22869
22869
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
|
|
22870
22870
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ConfidenceBadge, { confidence: aiConfidenceSeoTitle, showLabel: true, showPercentage: true, size: "sm" })
|
|
@@ -22879,7 +22879,7 @@ function SEOEditorPreview({
|
|
|
22879
22879
|
children: [
|
|
22880
22880
|
seoTitleLength,
|
|
22881
22881
|
"/",
|
|
22882
|
-
|
|
22882
|
+
_chunkTCMUVY3Mcjs.SEO_TITLE_MAX_LENGTH
|
|
22883
22883
|
]
|
|
22884
22884
|
}
|
|
22885
22885
|
),
|
|
@@ -22890,7 +22890,7 @@ function SEOEditorPreview({
|
|
|
22890
22890
|
value: seoTitle || "",
|
|
22891
22891
|
onChange: (e) => onSeoTitleChange(e.target.value),
|
|
22892
22892
|
disabled,
|
|
22893
|
-
maxLength:
|
|
22893
|
+
maxLength: _chunkTCMUVY3Mcjs.SEO_TITLE_MAX_LENGTH,
|
|
22894
22894
|
invalid: seoTitleTooLong,
|
|
22895
22895
|
placeholder: "Enter SEO meta title...",
|
|
22896
22896
|
className: "border-ods-border bg-ods-bg text-ods-text-primary"
|
|
@@ -22901,7 +22901,7 @@ function SEOEditorPreview({
|
|
|
22901
22901
|
!seoTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-accent text-h6", children: "Auto-populated from title" })
|
|
22902
22902
|
] }),
|
|
22903
22903
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22904
|
-
|
|
22904
|
+
_chunkTCMUVY3Mcjs.Field,
|
|
22905
22905
|
{
|
|
22906
22906
|
label: "SEO Keywords",
|
|
22907
22907
|
labelExtras: aiConfidenceSeoKeywords !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -22933,10 +22933,10 @@ function SEOEditorPreview({
|
|
|
22933
22933
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
22934
22934
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
22935
22935
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22936
|
-
|
|
22936
|
+
_chunkTCMUVY3Mcjs.Field,
|
|
22937
22937
|
{
|
|
22938
22938
|
label: "SEO Description",
|
|
22939
|
-
error: seoDescriptionTooLong ? `Too long: search engines may truncate this description (keep it under ${
|
|
22939
|
+
error: seoDescriptionTooLong ? `Too long: search engines may truncate this description (keep it under ${_chunkTCMUVY3Mcjs.SEO_DESCRIPTION_MAX_LENGTH})` : null,
|
|
22940
22940
|
labelExtras: aiConfidenceSeoDescription !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
22941
22941
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
|
|
22942
22942
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -22959,7 +22959,7 @@ function SEOEditorPreview({
|
|
|
22959
22959
|
children: [
|
|
22960
22960
|
seoDescriptionLength,
|
|
22961
22961
|
"/",
|
|
22962
|
-
|
|
22962
|
+
_chunkTCMUVY3Mcjs.SEO_DESCRIPTION_MAX_LENGTH
|
|
22963
22963
|
]
|
|
22964
22964
|
}
|
|
22965
22965
|
),
|
|
@@ -22970,7 +22970,7 @@ function SEOEditorPreview({
|
|
|
22970
22970
|
value: seoDescription || "",
|
|
22971
22971
|
onChange: (e) => onSeoDescriptionChange(e.target.value),
|
|
22972
22972
|
disabled,
|
|
22973
|
-
maxLength:
|
|
22973
|
+
maxLength: _chunkTCMUVY3Mcjs.SEO_DESCRIPTION_MAX_LENGTH,
|
|
22974
22974
|
invalid: seoDescriptionTooLong,
|
|
22975
22975
|
placeholder: "Enter SEO meta description...",
|
|
22976
22976
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "resize-none border-ods-border bg-ods-bg text-ods-text-primary", SEO_MEDIA_BOX_HEIGHT)
|
|
@@ -23039,7 +23039,7 @@ function SEOEditorPreview({
|
|
|
23039
23039
|
{
|
|
23040
23040
|
ref: setFileInputRef,
|
|
23041
23041
|
type: "file",
|
|
23042
|
-
accept:
|
|
23042
|
+
accept: _chunkVT2ACO3Zcjs.IMAGE_FILE_ACCEPT,
|
|
23043
23043
|
onChange: handleImageUpload,
|
|
23044
23044
|
className: "hidden",
|
|
23045
23045
|
disabled: disabled || isUploading
|
|
@@ -23120,10 +23120,10 @@ var SOCIAL_ICONS = {
|
|
|
23120
23120
|
};
|
|
23121
23121
|
function socialIcon(platform) {
|
|
23122
23122
|
if (!Object.prototype.hasOwnProperty.call(SOCIAL_ICONS, platform)) return void 0;
|
|
23123
|
-
return _nullishCoalesce(
|
|
23123
|
+
return _nullishCoalesce(_chunk5DBW6ERFcjs.iconOf.call(void 0, SOCIAL_ICONS[platform]), () => ( void 0));
|
|
23124
23124
|
}
|
|
23125
23125
|
function renderSocialIcon(platform) {
|
|
23126
|
-
const key = _nullishCoalesce(
|
|
23126
|
+
const key = _nullishCoalesce(_chunkTCMUVY3Mcjs.normalizeSocialPlatform.call(void 0, platform), () => ( "website"));
|
|
23127
23127
|
const icon = _nullishCoalesce(socialIcon(key), () => ( socialIcon("website")));
|
|
23128
23128
|
return icon ? _react.createElement.call(void 0, icon, { className: "h-5 w-5" }) : null;
|
|
23129
23129
|
}
|
|
@@ -23214,7 +23214,7 @@ function SocialLinksManager({
|
|
|
23214
23214
|
};
|
|
23215
23215
|
const getIcon = (link, platform) => {
|
|
23216
23216
|
const iconKey = _optionalChain([platform, 'optionalAccess', _487 => _487.icon_name]) || link.platform;
|
|
23217
|
-
const key =
|
|
23217
|
+
const key = _chunkTCMUVY3Mcjs.normalizeSocialPlatform.call(void 0, iconKey);
|
|
23218
23218
|
if (!key) return null;
|
|
23219
23219
|
const icon = socialIcon(key);
|
|
23220
23220
|
return icon ? _react.createElement.call(void 0, icon, { className: "h-5 w-5 text-ods-text-secondary" }) : null;
|
|
@@ -23230,9 +23230,9 @@ function SocialLinksManager({
|
|
|
23230
23230
|
children: [
|
|
23231
23231
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-8 w-8 items-center justify-center", children: Icon }),
|
|
23232
23232
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid flex-1 grid-cols-2 gap-3", children: [
|
|
23233
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23234
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23235
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23233
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVYLBW6ZVcjs.Select, { value: link.platform, onValueChange: (value) => updateLink(index, "platform", value), children: [
|
|
23234
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectValue, {}) }),
|
|
23235
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectContent, { children: platforms.map((p) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: p.name, children: p.display_name }, p.name)) })
|
|
23236
23236
|
] }) }),
|
|
23237
23237
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23238
23238
|
_chunk7RM4NM2Ccjs.Input,
|
|
@@ -23250,15 +23250,15 @@ function SocialLinksManager({
|
|
|
23250
23250
|
)
|
|
23251
23251
|
] }),
|
|
23252
23252
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23253
|
-
|
|
23253
|
+
_chunkVYLBW6ZVcjs.Select,
|
|
23254
23254
|
{
|
|
23255
23255
|
value: _nullishCoalesce(link.visibility, () => ( "external")),
|
|
23256
23256
|
onValueChange: (value) => updateLink(index, "visibility", value),
|
|
23257
23257
|
children: [
|
|
23258
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23259
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23260
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23261
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23258
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectTrigger, { className: "w-[120px] shrink-0", "aria-label": "Social link visibility", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectValue, {}) }),
|
|
23259
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVYLBW6ZVcjs.SelectContent, { children: [
|
|
23260
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: "external", children: "Public" }),
|
|
23261
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: "internal", children: "Internal" })
|
|
23262
23262
|
] })
|
|
23263
23263
|
]
|
|
23264
23264
|
}
|
|
@@ -23350,7 +23350,7 @@ var StartWithOpenFrameButton = _react.forwardRef.call(void 0,
|
|
|
23350
23350
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, modeClassName, className),
|
|
23351
23351
|
style: customStyle,
|
|
23352
23352
|
leftIcon: !loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHJZLKYOBcjs.OpenframeLogoIcon, { secondaryColor: iconLowerPath, className: "h-5 w-5", color: iconUpperPath }) : void 0,
|
|
23353
|
-
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23353
|
+
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSC3I3YWMcjs.StatusBadge, { text: "Beta", variant: "button", colorScheme: "yellow" }),
|
|
23354
23354
|
children
|
|
23355
23355
|
}
|
|
23356
23356
|
);
|
|
@@ -23678,11 +23678,11 @@ function WarningBlock({ title, icon = DEFAULT_ICON, children, className }) {
|
|
|
23678
23678
|
|
|
23679
23679
|
function VideoBitesDisplay({
|
|
23680
23680
|
bites,
|
|
23681
|
-
title =
|
|
23681
|
+
title = _chunkSC3I3YWMcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
23682
23682
|
filterPublished = true,
|
|
23683
23683
|
showTitle = true
|
|
23684
23684
|
}) {
|
|
23685
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23685
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPQ76VC2Pcjs.VideoBitesStrip, { bites, title, filterPublished, showTitle });
|
|
23686
23686
|
}
|
|
23687
23687
|
|
|
23688
23688
|
// src/components/features/walkthrough-video.tsx
|
|
@@ -23711,7 +23711,7 @@ function WalkthroughVideo({
|
|
|
23711
23711
|
onOpenChange,
|
|
23712
23712
|
defaultOpen,
|
|
23713
23713
|
defaultOpenPaused,
|
|
23714
|
-
deepLinkParam =
|
|
23714
|
+
deepLinkParam = _chunkTCMUVY3Mcjs.WALKTHROUGH_OPEN_QUERY_PARAM,
|
|
23715
23715
|
autoPlayCard = false,
|
|
23716
23716
|
label = "Play Demo Video",
|
|
23717
23717
|
placement,
|
|
@@ -23728,7 +23728,7 @@ function WalkthroughVideo({
|
|
|
23728
23728
|
const inline = placement === "inline";
|
|
23729
23729
|
const inScope = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
23730
23730
|
const dismissEnabled = dismissal !== false;
|
|
23731
|
-
const storageKey = dismissEnabled && dismissal.storageKey ||
|
|
23731
|
+
const storageKey = dismissEnabled && dismissal.storageKey || _chunkTCMUVY3Mcjs.WALKTHROUGH_VIDEO_DISMISS_KEY;
|
|
23732
23732
|
const dismissalId = _optionalChain([video, 'optionalAccess', _493 => _493.id]) != null ? String(video.id) : "dismissed";
|
|
23733
23733
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
23734
23734
|
const [dismissed, setDismissed] = _react.useState.call(void 0, false);
|
|
@@ -23740,7 +23740,7 @@ function WalkthroughVideo({
|
|
|
23740
23740
|
let delayElapsed = false;
|
|
23741
23741
|
let interacted = inline;
|
|
23742
23742
|
const reveal = () => {
|
|
23743
|
-
if (dismissEnabled &&
|
|
23743
|
+
if (dismissEnabled && _chunkTCMUVY3Mcjs.isWalkthroughDismissed.call(void 0, storageKey, dismissalId)) {
|
|
23744
23744
|
setDismissed(true);
|
|
23745
23745
|
return;
|
|
23746
23746
|
}
|
|
@@ -23777,7 +23777,7 @@ function WalkthroughVideo({
|
|
|
23777
23777
|
if (idleHandle !== null && typeof cic === "function") cic(idleHandle);
|
|
23778
23778
|
};
|
|
23779
23779
|
}, [appearDelayMs, dismissEnabled, storageKey, dismissalId, hasVideo, videoId, inline]);
|
|
23780
|
-
const hydrated =
|
|
23780
|
+
const hydrated = _chunkPQ76VC2Pcjs.useIsHydrated.call(void 0, );
|
|
23781
23781
|
const previewSuppressed = _react.useMemo.call(void 0, () => {
|
|
23782
23782
|
if (!hydrated) return false;
|
|
23783
23783
|
try {
|
|
@@ -24027,7 +24027,7 @@ function WalkthroughVideo({
|
|
|
24027
24027
|
(e) => {
|
|
24028
24028
|
e.stopPropagation();
|
|
24029
24029
|
pausePreviewNow();
|
|
24030
|
-
if (dismissEnabled)
|
|
24030
|
+
if (dismissEnabled) _chunkTCMUVY3Mcjs.dismissWalkthrough.call(void 0, storageKey, dismissalId);
|
|
24031
24031
|
setDismissed(true);
|
|
24032
24032
|
},
|
|
24033
24033
|
[dismissEnabled, storageKey, dismissalId, pausePreviewNow]
|
|
@@ -24178,15 +24178,15 @@ function WalkthroughVideo({
|
|
|
24178
24178
|
},
|
|
24179
24179
|
children: [
|
|
24180
24180
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pointer-events-none absolute inset-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24181
|
-
|
|
24181
|
+
_chunkSC3I3YWMcjs.VideoHoverPreviewSurface,
|
|
24182
24182
|
{
|
|
24183
24183
|
url: video.mainVideoUrl || "",
|
|
24184
|
-
posterUrl: video.posterUrl ? _chunkKUXHXLJQcjs.resizedImageUrl.call(void 0, video.posterUrl,
|
|
24184
|
+
posterUrl: video.posterUrl ? _chunkKUXHXLJQcjs.resizedImageUrl.call(void 0, video.posterUrl, _chunk5DBW6ERFcjs.IMAGE_WIDTHS[0]) : video.posterUrl,
|
|
24185
24185
|
active: cardActive,
|
|
24186
24186
|
isClone: false,
|
|
24187
24187
|
badge: "play",
|
|
24188
24188
|
fit: "cover",
|
|
24189
|
-
posterSizes:
|
|
24189
|
+
posterSizes: _chunk5DBW6ERFcjs.fixedImageSlot.call(void 0, "cover"),
|
|
24190
24190
|
posterInView: true,
|
|
24191
24191
|
preload: "none",
|
|
24192
24192
|
hideMutedBadge: true,
|
|
@@ -24202,7 +24202,7 @@ function WalkthroughVideo({
|
|
|
24202
24202
|
`card-${embedUrlKey}`
|
|
24203
24203
|
) }),
|
|
24204
24204
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24205
|
-
|
|
24205
|
+
_chunkPQ76VC2Pcjs.CardHitLayer,
|
|
24206
24206
|
{
|
|
24207
24207
|
label: video.title ? `${label}: ${video.title}` : label,
|
|
24208
24208
|
onPointerDown: pausePreviewNow,
|
|
@@ -24318,7 +24318,7 @@ function WalkthroughVideo({
|
|
|
24318
24318
|
children: [
|
|
24319
24319
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogPrimitive2.Title, { className: "sr-only", children: summaryTitle || "Walkthrough video" }),
|
|
24320
24320
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24321
|
-
|
|
24321
|
+
_chunkSC3I3YWMcjs.Video,
|
|
24322
24322
|
{
|
|
24323
24323
|
kind: video.youtubeUrl ? "youtube" : "file",
|
|
24324
24324
|
url: video.youtubeUrl || video.mainVideoUrl,
|
|
@@ -24374,7 +24374,7 @@ function useWalkthroughVideo(opts) {
|
|
|
24374
24374
|
const { endpoint, initialData, enabled: enabledGiven = true, transformCaptionsUrl } = opts;
|
|
24375
24375
|
const inScope = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
24376
24376
|
const enabled = enabledGiven && !inScope;
|
|
24377
|
-
const captions =
|
|
24377
|
+
const captions = _chunkPQ76VC2Pcjs.useCaptions.call(void 0, );
|
|
24378
24378
|
const query = _reactquery.useQuery.call(void 0, {
|
|
24379
24379
|
queryKey: ["walkthrough-video", endpoint],
|
|
24380
24380
|
enabled,
|
|
@@ -24572,7 +24572,7 @@ function VideoSourceSelector({
|
|
|
24572
24572
|
}
|
|
24573
24573
|
function DefaultVideoPreview({ videoUrl, onDelete, disabled }) {
|
|
24574
24574
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative overflow-hidden rounded-lg border border-ods-border", children: [
|
|
24575
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video max-h-[300px] w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24575
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video max-h-[300px] w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSC3I3YWMcjs.Video, { kind: "file", url: videoUrl }) }),
|
|
24576
24576
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24577
24577
|
_chunkAHBTZ7DNcjs.Button,
|
|
24578
24578
|
{
|
|
@@ -25028,19 +25028,19 @@ function HighlightVideoSection({
|
|
|
25028
25028
|
/* @__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: [
|
|
25029
25029
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD47ZGOUcjs.Label, { children: "Target Duration" }),
|
|
25030
25030
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25031
|
-
|
|
25031
|
+
_chunkVYLBW6ZVcjs.Select,
|
|
25032
25032
|
{
|
|
25033
25033
|
value: targetDurationSeconds.toString(),
|
|
25034
25034
|
onValueChange: (value) => onTargetDurationChange(parseInt(value)),
|
|
25035
25035
|
disabled,
|
|
25036
25036
|
children: [
|
|
25037
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25038
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25039
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25040
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25041
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25042
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25043
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25037
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectTrigger, { className: "mt-1 bg-ods-bg-surface", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectValue, {}) }),
|
|
25038
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVYLBW6ZVcjs.SelectContent, { className: "bg-ods-card", children: [
|
|
25039
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: "60", children: "1 minute" }),
|
|
25040
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: "120", children: "2 minutes" }),
|
|
25041
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: "180", children: "3 minutes (Recommended)" }),
|
|
25042
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: "240", children: "4 minutes" }),
|
|
25043
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: "300", children: "5 minutes" })
|
|
25044
25044
|
] })
|
|
25045
25045
|
]
|
|
25046
25046
|
}
|
|
@@ -25098,7 +25098,7 @@ function HighlightVideoSection({
|
|
|
25098
25098
|
// Default simple preview — the <Video> SSOT (MuxPlayer) plays
|
|
25099
25099
|
// MP4 and Mux HLS alike; aspect-video box reserves the height.
|
|
25100
25100
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative overflow-hidden rounded-lg border border-ods-border bg-black", children: [
|
|
25101
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video max-h-[300px] w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25101
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video max-h-[300px] w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSC3I3YWMcjs.Video, { kind: "file", url: highlightVideoUrl, poster: highlightVideoThumbnail || void 0 }) }),
|
|
25102
25102
|
onDeleteHighlight && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25103
25103
|
_chunkAHBTZ7DNcjs.Button,
|
|
25104
25104
|
{
|
|
@@ -25125,20 +25125,20 @@ function HighlightConfigSection({
|
|
|
25125
25125
|
disabled = false,
|
|
25126
25126
|
className = ""
|
|
25127
25127
|
}) {
|
|
25128
|
-
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,
|
|
25129
|
-
|
|
25128
|
+
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, _chunkTCMUVY3Mcjs.Field, { label: "Target Duration", children: (f) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25129
|
+
_chunkVYLBW6ZVcjs.Select,
|
|
25130
25130
|
{
|
|
25131
25131
|
value: targetDurationSeconds.toString(),
|
|
25132
25132
|
onValueChange: (value) => onTargetDurationChange(parseInt(value)),
|
|
25133
25133
|
disabled,
|
|
25134
25134
|
children: [
|
|
25135
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25136
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25137
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25138
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25139
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25140
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25141
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25135
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectTrigger, { id: f.id, className: "bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectValue, {}) }),
|
|
25136
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVYLBW6ZVcjs.SelectContent, { className: "bg-ods-card", children: [
|
|
25137
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: "60", children: "1 minute" }),
|
|
25138
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: "120", children: "2 minutes" }),
|
|
25139
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: "180", children: "3 minutes (Recommended)" }),
|
|
25140
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: "240", children: "4 minutes" }),
|
|
25141
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: "300", children: "5 minutes" })
|
|
25142
25142
|
] })
|
|
25143
25143
|
]
|
|
25144
25144
|
}
|
|
@@ -25226,7 +25226,7 @@ var AIStatusIndicator = ({
|
|
|
25226
25226
|
}) => {
|
|
25227
25227
|
const config = statusConfig[status];
|
|
25228
25228
|
const displayText = message || config.label;
|
|
25229
|
-
const confidenceLabel = showConfidence && confidence !== void 0 ? `${
|
|
25229
|
+
const confidenceLabel = showConfidence && confidence !== void 0 ? `${_chunkTCMUVY3Mcjs.getConfidenceLabel.call(void 0, confidence)} (${confidence}%)` : null;
|
|
25230
25230
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "inline-flex items-center gap-2 rounded-lg px-3 py-1.5", config.bgColor, className), children: [
|
|
25231
25231
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25232
25232
|
_chunkUNFCRSYIcjs.SparklesIcon,
|
|
@@ -25234,7 +25234,7 @@ var AIStatusIndicator = ({
|
|
|
25234
25234
|
size: 16,
|
|
25235
25235
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
25236
25236
|
status === "loading" && _chunk4WIJI4AKcjs.LIVE_PULSE_CLASS,
|
|
25237
|
-
confidence !== void 0 && status === "success" ?
|
|
25237
|
+
confidence !== void 0 && status === "success" ? _chunkTCMUVY3Mcjs.getConfidenceTextClass.call(void 0, confidence) : config.color
|
|
25238
25238
|
)
|
|
25239
25239
|
}
|
|
25240
25240
|
),
|
|
@@ -25243,7 +25243,7 @@ var AIStatusIndicator = ({
|
|
|
25243
25243
|
{
|
|
25244
25244
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
25245
25245
|
"text-h6",
|
|
25246
|
-
confidence !== void 0 && status === "success" ?
|
|
25246
|
+
confidence !== void 0 && status === "success" ? _chunkTCMUVY3Mcjs.getConfidenceTextClass.call(void 0, confidence) : config.color
|
|
25247
25247
|
),
|
|
25248
25248
|
children: displayText
|
|
25249
25249
|
}
|
|
@@ -25253,8 +25253,8 @@ var AIStatusIndicator = ({
|
|
|
25253
25253
|
{
|
|
25254
25254
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
25255
25255
|
"rounded-full border px-2 py-0.5 text-h6",
|
|
25256
|
-
|
|
25257
|
-
|
|
25256
|
+
_chunkTCMUVY3Mcjs.getConfidenceBorderClass.call(void 0, confidence),
|
|
25257
|
+
_chunkTCMUVY3Mcjs.getConfidenceTextClass.call(void 0, confidence)
|
|
25258
25258
|
),
|
|
25259
25259
|
children: confidenceLabel
|
|
25260
25260
|
}
|
|
@@ -25830,7 +25830,7 @@ function ApprovalLevelView({
|
|
|
25830
25830
|
] });
|
|
25831
25831
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, READ_ONLY_ROW_CLASS, className), children: [
|
|
25832
25832
|
name,
|
|
25833
|
-
showLabel ? icon : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25833
|
+
showLabel ? icon : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCUDJP7R7cjs.TouchFriendlyTooltip, { content: `${current.label}: ${current.hint}`, side: "top", children: icon })
|
|
25834
25834
|
] });
|
|
25835
25835
|
}
|
|
25836
25836
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, EDITABLE_ROW_CLASS, className), children: [
|
|
@@ -25938,7 +25938,7 @@ var PolicyRow = ({ policy, categoryId, editMode, onPermissionChange }) => {
|
|
|
25938
25938
|
if (level) onPermissionChange(categoryId, policy.id, level);
|
|
25939
25939
|
};
|
|
25940
25940
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-[var(--spacing-system-m)] border-b border-ods-border bg-ods-bg px-[var(--spacing-system-m)] py-[var(--spacing-system-sf)] last:border-b-0 content-md:items-center", children: [
|
|
25941
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ICON_TILE_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25941
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ICON_TILE_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4IU462LRcjs.ToolIcon, { toolType: policy.toolName, size: 16 }) }),
|
|
25942
25942
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
25943
25943
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-primary text-h4", title: policy.name, children: policy.name }),
|
|
25944
25944
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "break-all text-ods-text-secondary text-h6", children: policy.commandPattern }),
|
|
@@ -25977,7 +25977,7 @@ var CategorySection = ({
|
|
|
25977
25977
|
}) => {
|
|
25978
25978
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingGiven;
|
|
25979
25979
|
const isExpanded = isExpandedProp && !loading;
|
|
25980
|
-
const { innerRef, containerStyle } =
|
|
25980
|
+
const { innerRef, containerStyle } = _chunkE64HJMY6cjs.useCollapsible.call(void 0, { expanded: isExpanded, durationMs: 300 });
|
|
25981
25981
|
const handleBulkChange = (level) => onBulkLevelChange(category.id, level);
|
|
25982
25982
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
25983
25983
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -26134,7 +26134,7 @@ function OpenPolicyButton({ href, name }) {
|
|
|
26134
26134
|
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,
|
|
26135
26135
|
_chunkAHBTZ7DNcjs.Button,
|
|
26136
26136
|
{
|
|
26137
|
-
onClick: loading ? void 0 :
|
|
26137
|
+
onClick: loading ? void 0 : _chunkTCMUVY3Mcjs.openInNewTab.call(void 0, href),
|
|
26138
26138
|
disabled: loading,
|
|
26139
26139
|
variant: "outline",
|
|
26140
26140
|
size: "icon",
|
|
@@ -26173,8 +26173,8 @@ function PoliciesTable({
|
|
|
26173
26173
|
accessorKey: "name",
|
|
26174
26174
|
header: "Name",
|
|
26175
26175
|
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: [
|
|
26176
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26177
|
-
row.original.description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26176
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { children: row.original.name }),
|
|
26177
|
+
row.original.description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { variant: "h6", tone: "secondary", children: row.original.description })
|
|
26178
26178
|
] }),
|
|
26179
26179
|
meta: { width: "flex-1 min-w-0" }
|
|
26180
26180
|
},
|
|
@@ -26316,7 +26316,7 @@ function PolicySummaryCards({ summary, isLoading = false, hasData = true, now })
|
|
|
26316
26316
|
DashboardInfoCard,
|
|
26317
26317
|
{
|
|
26318
26318
|
title: "Updated",
|
|
26319
|
-
value: hasData && summary.lastUpdatedAt ?
|
|
26319
|
+
value: hasData && summary.lastUpdatedAt ? _chunkE64HJMY6cjs.formatRelativeTimeFrom.call(void 0, summary.lastUpdatedAt, _nullishCoalesce(now, () => ( /* @__PURE__ */ new Date()))) : EMPTY_VALUE,
|
|
26320
26320
|
valueClassName: "!text-h3",
|
|
26321
26321
|
tooltip: "Policy compliance stats are updated hourly. View a policy's devices for real-time status."
|
|
26322
26322
|
}
|
|
@@ -26432,7 +26432,7 @@ function toValidInstant(iso) {
|
|
|
26432
26432
|
function formatLastRead(iso, now = /* @__PURE__ */ new Date()) {
|
|
26433
26433
|
const date = toValidInstant(iso);
|
|
26434
26434
|
if (!date) return TENANT_EMPTY_VALUE;
|
|
26435
|
-
return now.getTime() - date.getTime() < DAY_MS ?
|
|
26435
|
+
return now.getTime() - date.getTime() < DAY_MS ? _chunkE64HJMY6cjs.formatRelativeTimeFrom.call(void 0, date, now) : _chunk7TBXHZLBcjs.formatDate.call(void 0, date);
|
|
26436
26436
|
}
|
|
26437
26437
|
function usersCountLabel(count) {
|
|
26438
26438
|
if (count == null) return TENANT_EMPTY_VALUE;
|
|
@@ -26445,7 +26445,7 @@ function TenantAccessCell({ accessState, lastReadAt: lastReadAt2, now }) {
|
|
|
26445
26445
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
26446
26446
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26447
26447
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { ...accessStateTag(accessState), loading, className: "self-start" }),
|
|
26448
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26448
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { variant: "h6", tone: "secondary", loading, children: `Last read: ${formatLastRead(lastReadAt2, now)}` })
|
|
26449
26449
|
] });
|
|
26450
26450
|
}
|
|
26451
26451
|
|
|
@@ -26457,9 +26457,9 @@ function TenantCell({ provider, name, domain }) {
|
|
|
26457
26457
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
26458
26458
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26459
26459
|
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.MediaSkeleton.Icon, { size: "md", className: "shrink-0" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Logo, { size: 24, role: "img", "aria-label": label, className: "shrink-0" }),
|
|
26460
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26460
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { children: name })
|
|
26461
26461
|
] }),
|
|
26462
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26462
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { variant: "h6", tone: "secondary", loading, children: _nullishCoalesce(domain, () => ( TENANT_EMPTY_VALUE)) })
|
|
26463
26463
|
] });
|
|
26464
26464
|
}
|
|
26465
26465
|
|
|
@@ -26470,9 +26470,9 @@ function TenantCustomerCell({ name, imageUrl, userCount }) {
|
|
|
26470
26470
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
26471
26471
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26472
26472
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.SquareAvatar, { src: _nullishCoalesce(imageUrl, () => ( void 0)), alt: name, fallback: name, size: "xs", variant: "square" }),
|
|
26473
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26473
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { children: name })
|
|
26474
26474
|
] }),
|
|
26475
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26475
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { variant: "h6", tone: "secondary", loading, children: usersCountLabel(userCount) })
|
|
26476
26476
|
] });
|
|
26477
26477
|
}
|
|
26478
26478
|
|
|
@@ -26508,7 +26508,7 @@ function OpenTenantButton({ href, name }) {
|
|
|
26508
26508
|
/* @__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,
|
|
26509
26509
|
_chunkAHBTZ7DNcjs.Button,
|
|
26510
26510
|
{
|
|
26511
|
-
onClick: loading ? void 0 :
|
|
26511
|
+
onClick: loading ? void 0 : _chunkTCMUVY3Mcjs.openInNewTab.call(void 0, href),
|
|
26512
26512
|
disabled: loading,
|
|
26513
26513
|
variant: "outline",
|
|
26514
26514
|
size: "icon",
|
|
@@ -26640,13 +26640,13 @@ function WaitlistForm({
|
|
|
26640
26640
|
const [email, setEmail] = _react.useState.call(void 0, defaultEmail);
|
|
26641
26641
|
const [phone, setPhone] = _react.useState.call(void 0, defaultPhone);
|
|
26642
26642
|
const [countryCode, setCountryCode] = _react.useState.call(void 0, "US");
|
|
26643
|
-
const { toast } =
|
|
26644
|
-
const { honeypotInputProps, getSignals, resetSignals } =
|
|
26643
|
+
const { toast } = _chunkVEN6MGNXcjs.useToast.call(void 0, );
|
|
26644
|
+
const { honeypotInputProps, getSignals, resetSignals } = _chunkVEN6MGNXcjs.useHumanitySignals.call(void 0, );
|
|
26645
26645
|
const [smsConsent, setSmsConsent] = _react.useState.call(void 0, false);
|
|
26646
|
-
const isClient =
|
|
26646
|
+
const isClient = _chunkPQ76VC2Pcjs.useIsHydrated.call(void 0, );
|
|
26647
26647
|
const [isPhoneInvalid, setIsPhoneInvalid] = _react.useState.call(void 0, false);
|
|
26648
26648
|
const [showConsentError, setShowConsentError] = _react.useState.call(void 0, false);
|
|
26649
|
-
const rescue =
|
|
26649
|
+
const rescue = _chunkVEN6MGNXcjs.useFormRescue.call(void 0, {
|
|
26650
26650
|
form: rescueForm,
|
|
26651
26651
|
// The phone is reported as filled only; its value never leaves the form early.
|
|
26652
26652
|
fieldNames: ["email", "phone"],
|
|
@@ -26658,7 +26658,7 @@ function WaitlistForm({
|
|
|
26658
26658
|
_react.useEffect.call(void 0, () => {
|
|
26659
26659
|
rescue.track({ email, phone }, null);
|
|
26660
26660
|
}, [email, phone, rescue]);
|
|
26661
|
-
const isMailDomainGeneric =
|
|
26661
|
+
const isMailDomainGeneric = _chunkTCMUVY3Mcjs.hasGenericEmailDomain.call(void 0, email);
|
|
26662
26662
|
const [syncedDefaultEmail, setSyncedDefaultEmail] = _react.useState.call(void 0, defaultEmail);
|
|
26663
26663
|
if (syncedDefaultEmail !== defaultEmail) {
|
|
26664
26664
|
setSyncedDefaultEmail(defaultEmail);
|
|
@@ -26692,7 +26692,7 @@ function WaitlistForm({
|
|
|
26692
26692
|
setShowConsentError(true);
|
|
26693
26693
|
return;
|
|
26694
26694
|
}
|
|
26695
|
-
const finalPhone = phone ?
|
|
26695
|
+
const finalPhone = phone ? _chunkTCMUVY3Mcjs.formatPhoneE164.call(void 0, phone, countryCode) : void 0;
|
|
26696
26696
|
try {
|
|
26697
26697
|
await onRegister(email, finalPhone, getSignals(), rescue.submitFields());
|
|
26698
26698
|
rescue.complete();
|
|
@@ -27415,7 +27415,7 @@ var typeColorByVariant = {
|
|
|
27415
27415
|
error: "text-ods-error"
|
|
27416
27416
|
};
|
|
27417
27417
|
var progressColorByVariant2 = {
|
|
27418
|
-
...
|
|
27418
|
+
..._chunkVEN6MGNXcjs.progressColorByVariant,
|
|
27419
27419
|
default: "bg-ods-accent",
|
|
27420
27420
|
info: "bg-ods-accent"
|
|
27421
27421
|
};
|
|
@@ -27505,11 +27505,11 @@ function LoadedNotificationTile({
|
|
|
27505
27505
|
alt: "",
|
|
27506
27506
|
onError: () => setFailedImageUrl(image),
|
|
27507
27507
|
className: "size-4 rounded-[2px] object-cover",
|
|
27508
|
-
width:
|
|
27509
|
-
height:
|
|
27508
|
+
width: _chunk5DBW6ERFcjs.IMAGE_FIXED_PX.icon,
|
|
27509
|
+
height: _chunk5DBW6ERFcjs.IMAGE_FIXED_PX.icon,
|
|
27510
27510
|
unoptimized: true
|
|
27511
27511
|
}
|
|
27512
|
-
) : _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "size-1.5 rounded-full",
|
|
27512
|
+
) : _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "size-1.5 rounded-full", _chunkVEN6MGNXcjs.dotColorByVariant[accentVariant]) }))) }),
|
|
27513
27513
|
type ? lockscreen ? (
|
|
27514
27514
|
// A phone names the sender in plain words and never cuts them.
|
|
27515
27515
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 break-words text-ods-text-secondary text-h6", children: type })
|
|
@@ -27519,7 +27519,7 @@ function LoadedNotificationTile({
|
|
|
27519
27519
|
{
|
|
27520
27520
|
dateTime: createdAtIso,
|
|
27521
27521
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "shrink-0 whitespace-nowrap text-ods-text-secondary text-h6", lockscreen && "self-start"),
|
|
27522
|
-
children: _nullishCoalesce(timeLabel, () => (
|
|
27522
|
+
children: _nullishCoalesce(timeLabel, () => ( _chunkE64HJMY6cjs.formatTicketRelativeTime.call(void 0, createdAtIso)))
|
|
27523
27523
|
}
|
|
27524
27524
|
) : null,
|
|
27525
27525
|
!lockscreen && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TILE_CONTROL_BOX_CLASS, children: [
|
|
@@ -27844,7 +27844,7 @@ function ShowNotificationsToggleRow({ checked, onChange }) {
|
|
|
27844
27844
|
] });
|
|
27845
27845
|
}
|
|
27846
27846
|
function DesktopNotificationsToggleRow({ checked, onChange }) {
|
|
27847
|
-
const { supported, permission, request } =
|
|
27847
|
+
const { supported, permission, request } = _chunkVEN6MGNXcjs.useNotificationPermission.call(void 0, );
|
|
27848
27848
|
if (!supported) return null;
|
|
27849
27849
|
const blocked = permission === "denied";
|
|
27850
27850
|
const handleChange = async (value) => {
|
|
@@ -28022,13 +28022,13 @@ function getApprovalMeta(notification) {
|
|
|
28022
28022
|
function resolutionToStatus(resolution) {
|
|
28023
28023
|
switch (typeof resolution === "string" ? resolution.toUpperCase() : void 0) {
|
|
28024
28024
|
case "APPROVED":
|
|
28025
|
-
return
|
|
28025
|
+
return _chunk7TBXHZLBcjs.APPROVAL_STATUS.APPROVED;
|
|
28026
28026
|
case "REJECTED":
|
|
28027
|
-
return
|
|
28027
|
+
return _chunk7TBXHZLBcjs.APPROVAL_STATUS.REJECTED;
|
|
28028
28028
|
case "CANCELLED":
|
|
28029
|
-
return
|
|
28029
|
+
return _chunk7TBXHZLBcjs.APPROVAL_STATUS.CANCELLED;
|
|
28030
28030
|
default:
|
|
28031
|
-
return
|
|
28031
|
+
return _chunk7TBXHZLBcjs.APPROVAL_STATUS.PENDING;
|
|
28032
28032
|
}
|
|
28033
28033
|
}
|
|
28034
28034
|
function approvalMetaToBatchData(approval) {
|
|
@@ -28073,7 +28073,7 @@ function ApprovalRequestNotificationTile({
|
|
|
28073
28073
|
const resolvedStatus = resolutionToStatus(_optionalChain([approval, 'optionalAccess', _598 => _598.resolution]));
|
|
28074
28074
|
const status = resolvedStatus !== "pending" ? resolvedStatus : _nullishCoalesce(localStatus, () => ( "pending"));
|
|
28075
28075
|
const batchData = _react.useMemo.call(void 0, () => approval ? approvalMetaToBatchData(approval) : null, [approval]);
|
|
28076
|
-
const { innerRef, containerStyle } =
|
|
28076
|
+
const { innerRef, containerStyle } = _chunkE64HJMY6cjs.useCollapsible.call(void 0, { expanded });
|
|
28077
28077
|
if (!approval || !batchData) return null;
|
|
28078
28078
|
const tileNotification = {
|
|
28079
28079
|
...notification,
|
|
@@ -28136,7 +28136,7 @@ function ApprovalRequestNotificationTile({
|
|
|
28136
28136
|
}
|
|
28137
28137
|
)
|
|
28138
28138
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
28139
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28139
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE64HJMY6cjs.ApprovalStatusTag, { status }),
|
|
28140
28140
|
approval.resolvedByName ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: [
|
|
28141
28141
|
"by ",
|
|
28142
28142
|
approval.resolvedByName
|
|
@@ -28154,12 +28154,12 @@ function ApprovalRequestNotificationTile({
|
|
|
28154
28154
|
"aria-expanded": expanded,
|
|
28155
28155
|
"aria-label": toggleLabel,
|
|
28156
28156
|
className: APPROVAL_TOGGLE_BUTTON_CLASS,
|
|
28157
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28157
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE64HJMY6cjs.ExpandChevron, { expanded })
|
|
28158
28158
|
}
|
|
28159
28159
|
)
|
|
28160
28160
|
] }),
|
|
28161
28161
|
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,
|
|
28162
|
-
|
|
28162
|
+
_chunkE64HJMY6cjs.ApprovalBatchMessage,
|
|
28163
28163
|
{
|
|
28164
28164
|
data: batchData,
|
|
28165
28165
|
showExecutionStatus: false,
|
|
@@ -28396,7 +28396,7 @@ function TimeTrackerPanel({
|
|
|
28396
28396
|
] }),
|
|
28397
28397
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "grid gap-[var(--spacing-system-m)]", showCustomer && "grid-cols-2"), children: [
|
|
28398
28398
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28399
|
-
|
|
28399
|
+
_chunkVYLBW6ZVcjs.Autocomplete,
|
|
28400
28400
|
{
|
|
28401
28401
|
value: selectedTicketId,
|
|
28402
28402
|
onChange: onSelectedTicketChange,
|
|
@@ -28412,7 +28412,7 @@ function TimeTrackerPanel({
|
|
|
28412
28412
|
}
|
|
28413
28413
|
),
|
|
28414
28414
|
showCustomer && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28415
|
-
|
|
28415
|
+
_chunkVYLBW6ZVcjs.Autocomplete,
|
|
28416
28416
|
{
|
|
28417
28417
|
value: _nullishCoalesce(selectedCustomerId, () => ( null)),
|
|
28418
28418
|
onChange: onSelectedCustomerChange,
|
|
@@ -28698,7 +28698,7 @@ function TimeTrackerHeaderButton({ className, disabled }) {
|
|
|
28698
28698
|
|
|
28699
28699
|
// src/components/features/devices/device-last-online.ts
|
|
28700
28700
|
function formatLastOnline(lastSeen) {
|
|
28701
|
-
return `Last Online: ${lastSeen ?
|
|
28701
|
+
return `Last Online: ${lastSeen ? _chunkE64HJMY6cjs.formatRelativeTime.call(void 0, lastSeen) : "\u2014"}`;
|
|
28702
28702
|
}
|
|
28703
28703
|
|
|
28704
28704
|
// src/components/features/devices/device-name.ts
|
|
@@ -28847,7 +28847,7 @@ function getDeviceStatusConfig(status) {
|
|
|
28847
28847
|
}
|
|
28848
28848
|
}
|
|
28849
28849
|
function getDeviceOperatingSystem(osType) {
|
|
28850
|
-
return
|
|
28850
|
+
return _chunkTCMUVY3Mcjs.getOSPlatformId.call(void 0, osType);
|
|
28851
28851
|
}
|
|
28852
28852
|
|
|
28853
28853
|
// src/components/features/devices/device-statuses.ts
|
|
@@ -29024,8 +29024,8 @@ function DevicesFilterToolbar({
|
|
|
29024
29024
|
|
|
29025
29025
|
|
|
29026
29026
|
function formatDateTime(input) {
|
|
29027
|
-
const date =
|
|
29028
|
-
return date === "\u2014" ? date : `${date} ${
|
|
29027
|
+
const date = _chunk7TBXHZLBcjs.formatDate.call(void 0, input);
|
|
29028
|
+
return date === "\u2014" ? date : `${date} ${_chunk7TBXHZLBcjs.formatTime.call(void 0, input)}`;
|
|
29029
29029
|
}
|
|
29030
29030
|
function uniqueById(options) {
|
|
29031
29031
|
const seen = /* @__PURE__ */ new Map();
|
|
@@ -29142,13 +29142,13 @@ function DevicesTableBody({
|
|
|
29142
29142
|
function OrganizationCell({ device }) {
|
|
29143
29143
|
const fullImageUrl = useDeviceImageUrl(device.organizationImageUrl, device.organizationImageHash);
|
|
29144
29144
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
29145
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29145
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.EntityImage, { src: fullImageUrl, alt: device.organization || "Customer", className: "size-12 content-md:size-12" }),
|
|
29146
29146
|
/* @__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 }) })
|
|
29147
29147
|
] });
|
|
29148
29148
|
}
|
|
29149
29149
|
function OrganizationName({ name }) {
|
|
29150
29150
|
if (_chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) && !name) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h4", className: "w-3/4" });
|
|
29151
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29151
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { lines: 2, children: _nullishCoalesce(name, () => ( "")) });
|
|
29152
29152
|
}
|
|
29153
29153
|
function DeviceLastSeen({ lastSeen }) {
|
|
29154
29154
|
if (_chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) && !lastSeen) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "hidden w-24 content-md:block" });
|
|
@@ -29194,7 +29194,7 @@ function getDeviceTableColumns(deviceFilters, filtersPending) {
|
|
|
29194
29194
|
const device = row.original;
|
|
29195
29195
|
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: [
|
|
29196
29196
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeviceTypeTile, { type: device.type }),
|
|
29197
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29197
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { children: getDeviceName(device) }) })
|
|
29198
29198
|
] });
|
|
29199
29199
|
},
|
|
29200
29200
|
meta: { width: "flex-1 content-md:w-1/4" }
|
|
@@ -29366,7 +29366,7 @@ function CustomerCell({ device }) {
|
|
|
29366
29366
|
const fullImageUrl = useDeviceImageUrl(device.organizationImageUrl, device.organizationImageHash);
|
|
29367
29367
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
29368
29368
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29369
|
-
|
|
29369
|
+
_chunkVYLBW6ZVcjs.EntityImage,
|
|
29370
29370
|
{
|
|
29371
29371
|
src: fullImageUrl,
|
|
29372
29372
|
alt: device.organization || "Customer",
|
|
@@ -29374,8 +29374,8 @@ function CustomerCell({ device }) {
|
|
|
29374
29374
|
}
|
|
29375
29375
|
),
|
|
29376
29376
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
29377
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29378
|
-
(device.organizationEmail || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29377
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { children: device.organization || "" }),
|
|
29378
|
+
(device.organizationEmail || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(device.organizationEmail, () => ( "")) })
|
|
29379
29379
|
] })
|
|
29380
29380
|
] });
|
|
29381
29381
|
}
|
|
@@ -29384,8 +29384,8 @@ function DeviceCell({ device }) {
|
|
|
29384
29384
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 items-center gap-3", children: [
|
|
29385
29385
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeviceTypeTile, { type: device.type }),
|
|
29386
29386
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col", children: [
|
|
29387
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29388
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29387
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { children: getDeviceName(device) }),
|
|
29388
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { variant: "h6", tone: "secondary", loading, children: formatLastOnline(device.last_seen || device.lastSeen) })
|
|
29389
29389
|
] })
|
|
29390
29390
|
] });
|
|
29391
29391
|
}
|
|
@@ -30185,7 +30185,7 @@ function DevicesList({
|
|
|
30185
30185
|
const handleClearAll = _react.useCallback.call(void 0, () => patch({ search: "", tags: [] }), [patch]);
|
|
30186
30186
|
const narrowed = isNarrowed(narrowing);
|
|
30187
30187
|
const isEmptyState = !isLoading && !isPending && !narrowed && devices.length === 0;
|
|
30188
|
-
const { toolbarRef, containerStyle, stickyHeaderOffset: measuredOffset } =
|
|
30188
|
+
const { toolbarRef, containerStyle, stickyHeaderOffset: measuredOffset } = _chunkVEN6MGNXcjs.useStickyToolbar.call(void 0, );
|
|
30189
30189
|
const headerOffset = _nullishCoalesce(stickyHeaderOffset, () => ( (stickyToolbar ? measuredOffset : void 0)));
|
|
30190
30190
|
const actionsColumn = _react.useMemo.call(void 0, () => rowActions2 ? getDeviceActionsColumn(rowActions2) : void 0, [rowActions2]);
|
|
30191
30191
|
return (
|
|
@@ -30414,7 +30414,7 @@ function DevicesPanelView({
|
|
|
30414
30414
|
] })
|
|
30415
30415
|
] });
|
|
30416
30416
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30417
|
-
|
|
30417
|
+
_chunkVYLBW6ZVcjs.PageLayout,
|
|
30418
30418
|
{
|
|
30419
30419
|
title,
|
|
30420
30420
|
backButton,
|
|
@@ -30422,7 +30422,7 @@ function DevicesPanelView({
|
|
|
30422
30422
|
actionsVariant: "icon-buttons",
|
|
30423
30423
|
className,
|
|
30424
30424
|
selector: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30425
|
-
|
|
30425
|
+
_chunkPQ76VC2Pcjs.TabSelector,
|
|
30426
30426
|
{
|
|
30427
30427
|
value: viewMode,
|
|
30428
30428
|
onValueChange: (value) => _optionalChain([onViewModeChange, 'optionalCall', _674 => _674(value)]),
|
|
@@ -30488,7 +30488,7 @@ var PACKAGE_SEARCH_LABEL = "Software Name";
|
|
|
30488
30488
|
var PACKAGE_SEARCH_PLACEHOLDER = "Search for Software";
|
|
30489
30489
|
function PackageSearchFieldPlaceholder({ error }) {
|
|
30490
30490
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30491
|
-
|
|
30491
|
+
_chunkVYLBW6ZVcjs.Autocomplete,
|
|
30492
30492
|
{
|
|
30493
30493
|
label: PACKAGE_SEARCH_LABEL,
|
|
30494
30494
|
labelVariant: "large",
|
|
@@ -30543,16 +30543,16 @@ function SoftwareScheduleFields({
|
|
|
30543
30543
|
] }),
|
|
30544
30544
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
30545
30545
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD47ZGOUcjs.Label, { className: "text-h4", children: "Time" }),
|
|
30546
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30547
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30548
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30546
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVYLBW6ZVcjs.Select, { value: time, onValueChange: onTimeChange, children: [
|
|
30547
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectValue, { placeholder: "Select time" }) }),
|
|
30548
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectContent, { children: timeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
30549
30549
|
] })
|
|
30550
30550
|
] }),
|
|
30551
30551
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
30552
30552
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD47ZGOUcjs.Label, { className: "text-h4", children: "Timezone" }),
|
|
30553
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30554
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30555
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30553
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVYLBW6ZVcjs.Select, { value: timeReference, onValueChange: (value) => onTimeReferenceChange(value), children: [
|
|
30554
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectValue, {}) }),
|
|
30555
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectContent, { children: timing.timeReferenceOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
30556
30556
|
] })
|
|
30557
30557
|
] })
|
|
30558
30558
|
]
|
|
@@ -30618,22 +30618,22 @@ function newSoftwareRow(key) {
|
|
|
30618
30618
|
|
|
30619
30619
|
function InfoCell2({ value, label }) {
|
|
30620
30620
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
30621
|
-
/* @__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,
|
|
30621
|
+
/* @__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, _chunkVYLBW6ZVcjs.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" }) }) }),
|
|
30622
30622
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: label })
|
|
30623
30623
|
] });
|
|
30624
30624
|
}
|
|
30625
30625
|
function SoftwareRowFields({ row, removable, onChange, onRemove, renderPackageSearch }) {
|
|
30626
30626
|
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: [
|
|
30627
30627
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30628
|
-
|
|
30628
|
+
_chunkVYLBW6ZVcjs.Select,
|
|
30629
30629
|
{
|
|
30630
30630
|
value: row.packageManager,
|
|
30631
30631
|
onValueChange: (value) => onChange({ ...row, packageManager: value, pkg: null }),
|
|
30632
30632
|
children: [
|
|
30633
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30634
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30633
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectTrigger, { label: "Package Manager", labelVariant: "large", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectValue, {}) }),
|
|
30634
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectContent, { children: PACKAGE_MANAGERS.map((manager) => {
|
|
30635
30635
|
const Icon = PACKAGE_MANAGER_ICON[manager];
|
|
30636
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30636
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: manager, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
30637
30637
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { size: 20, className: "shrink-0 text-ods-text-secondary" }),
|
|
30638
30638
|
PACKAGE_MANAGER_LABEL[manager]
|
|
30639
30639
|
] }) }, manager);
|
|
@@ -30731,7 +30731,7 @@ function SoftwareActionForm({
|
|
|
30731
30731
|
}
|
|
30732
30732
|
);
|
|
30733
30733
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30734
|
-
|
|
30734
|
+
_chunkVYLBW6ZVcjs.PageLayout,
|
|
30735
30735
|
{
|
|
30736
30736
|
title: copy.formTitle,
|
|
30737
30737
|
backButton: onBack ? { label: "Back", onClick: onBack } : void 0,
|
|
@@ -30820,7 +30820,7 @@ function LogDrawer({
|
|
|
30820
30820
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-h-0 flex-1 space-y-4 overflow-y-auto", children: [
|
|
30821
30821
|
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 }) }),
|
|
30822
30822
|
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: [
|
|
30823
|
-
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,
|
|
30823
|
+
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, _chunkVYLBW6ZVcjs.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 }),
|
|
30824
30824
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: field.label })
|
|
30825
30825
|
] }, typeof field.label === "string" ? field.label : "")) }),
|
|
30826
30826
|
children
|
|
@@ -30868,7 +30868,7 @@ function LogsPageView({
|
|
|
30868
30868
|
],
|
|
30869
30869
|
[onRefresh]
|
|
30870
30870
|
);
|
|
30871
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30871
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVYLBW6ZVcjs.PageLayout, { title: "Logs", actions, showHeader, className, children: [
|
|
30872
30872
|
!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: [
|
|
30873
30873
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30874
30874
|
_chunk7RM4NM2Ccjs.Input,
|
|
@@ -30957,11 +30957,11 @@ var ToolBadge = ({
|
|
|
30957
30957
|
iconClassName
|
|
30958
30958
|
}) => {
|
|
30959
30959
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
30960
|
-
const text = _nullishCoalesce(label, () => ( (toolType ?
|
|
30961
|
-
const mark = _nullishCoalesce(icon, () => ( (toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30960
|
+
const text = _nullishCoalesce(label, () => ( (toolType ? _chunkTCMUVY3Mcjs.getToolLabel.call(void 0, toolType) : "")));
|
|
30961
|
+
const mark = _nullishCoalesce(icon, () => ( (toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4IU462LRcjs.ToolIcon, { toolType, className: iconClassName, size: 16 }) : null)));
|
|
30962
30962
|
if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ToolBadgeSkeleton, { variant, icon: !!mark, className });
|
|
30963
30963
|
const linked = (node, linkClassName) => href && targetPlatform ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30964
|
-
|
|
30964
|
+
_chunkPQ76VC2Pcjs.NavLinkAnchorViaRuntime,
|
|
30965
30965
|
{
|
|
30966
30966
|
href,
|
|
30967
30967
|
targetPlatform,
|
|
@@ -31026,8 +31026,8 @@ function LogSourceCell({ device }) {
|
|
|
31026
31026
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
31027
31027
|
const { deviceName, organization } = logSourceLabels(device);
|
|
31028
31028
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-h-[60px] flex-col justify-center gap-1 py-2", children: [
|
|
31029
|
-
(deviceName || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31030
|
-
(organization || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31029
|
+
(deviceName || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { children: deviceName }),
|
|
31030
|
+
(organization || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(organization, () => ( "")) })
|
|
31031
31031
|
] });
|
|
31032
31032
|
}
|
|
31033
31033
|
function LogRowButton({
|
|
@@ -31082,8 +31082,8 @@ function LogsTableView({
|
|
|
31082
31082
|
accessorKey: "logId",
|
|
31083
31083
|
header: logIdHeader ? () => logIdHeader : "Log ID",
|
|
31084
31084
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col justify-center", children: [
|
|
31085
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31086
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31085
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { children: row.original.timestamp }),
|
|
31086
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { variant: "h6", tone: "secondary", children: row.original.logId })
|
|
31087
31087
|
] }),
|
|
31088
31088
|
enableSorting: false,
|
|
31089
31089
|
meta: { width: LOG_COLUMN_WIDTHS.logId, alwaysShowHeader: true }
|
|
@@ -31111,7 +31111,7 @@ function LogsTableView({
|
|
|
31111
31111
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31112
31112
|
ToolBadge,
|
|
31113
31113
|
{
|
|
31114
|
-
toolType:
|
|
31114
|
+
toolType: _chunkTCMUVY3Mcjs.normalizeToolTypeWithFallback.call(void 0, row.original.source.toolType),
|
|
31115
31115
|
iconClassName: "h-4 w-4 content-md:h-6 content-md:w-6"
|
|
31116
31116
|
}
|
|
31117
31117
|
),
|
|
@@ -31123,7 +31123,7 @@ function LogsTableView({
|
|
|
31123
31123
|
filter: {
|
|
31124
31124
|
options: _nullishCoalesce(_optionalChain([facets, 'optionalAccess', _682 => _682.toolTypes, 'access', _683 => _683.map, 'call', _684 => _684((toolType) => ({
|
|
31125
31125
|
id: toolType,
|
|
31126
|
-
label:
|
|
31126
|
+
label: _chunkTCMUVY3Mcjs.toToolLabel.call(void 0, toolType),
|
|
31127
31127
|
value: toolType
|
|
31128
31128
|
}))]), () => ( []))
|
|
31129
31129
|
}
|
|
@@ -31144,7 +31144,7 @@ function LogsTableView({
|
|
|
31144
31144
|
{
|
|
31145
31145
|
accessorKey: "description",
|
|
31146
31146
|
header: "Log Details",
|
|
31147
|
-
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31147
|
+
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { lines: 3, className: "text-ods-text-secondary text-h6", children: row.original.description.title }),
|
|
31148
31148
|
enableSorting: false,
|
|
31149
31149
|
meta: { width: LOG_COLUMN_WIDTHS.description, hideAt: "lg" }
|
|
31150
31150
|
},
|
|
@@ -31172,7 +31172,7 @@ function LogsTableView({
|
|
|
31172
31172
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31173
31173
|
LogRowButton,
|
|
31174
31174
|
{
|
|
31175
|
-
onClick: getLogHref ?
|
|
31175
|
+
onClick: getLogHref ? _chunkTCMUVY3Mcjs.openInNewTab.call(void 0, getLogHref(row.original)) : void 0,
|
|
31176
31176
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
31177
31177
|
label: "Open in new tab"
|
|
31178
31178
|
}
|
|
@@ -31337,14 +31337,14 @@ function ExecutionSourceBadge({ source, className }) {
|
|
|
31337
31337
|
const tagProps = { as: "span", variant: "outline", className: _chunk7JWFMAQBcjs.cn.call(void 0, "shrink-0", className) };
|
|
31338
31338
|
if (source === "SCHEDULED") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { ...tagProps, label: "Scheduled" });
|
|
31339
31339
|
if (source === "AI_ASSISTANT") {
|
|
31340
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { ...tagProps, label: "Mingo", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31340
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { ...tagProps, label: "Mingo", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE64HJMY6cjs.AgentMark, { agent: "mingo", className: "size-4" }) });
|
|
31341
31341
|
}
|
|
31342
31342
|
return null;
|
|
31343
31343
|
}
|
|
31344
31344
|
function ExecutionTimestampCell({ timestamp, executionId }) {
|
|
31345
31345
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31346
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31347
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31346
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { children: timestamp }),
|
|
31347
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { variant: "h6", tone: "secondary", children: executionId })
|
|
31348
31348
|
] });
|
|
31349
31349
|
}
|
|
31350
31350
|
function ExecutionStatusCell({ status }) {
|
|
@@ -31356,9 +31356,9 @@ function ExecutionDeviceCell({ name, organization }) {
|
|
|
31356
31356
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31357
31357
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-1", children: [
|
|
31358
31358
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPTK7GOIIcjs.MonitorIcon, { className: "size-6 shrink-0 text-ods-text-secondary" }),
|
|
31359
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31359
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { children: name }) : name })
|
|
31360
31360
|
] }),
|
|
31361
|
-
(organization || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31361
|
+
(organization || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(organization, () => ( "")) })
|
|
31362
31362
|
] });
|
|
31363
31363
|
}
|
|
31364
31364
|
function ExecutionInitiatorCell({
|
|
@@ -31371,16 +31371,16 @@ function ExecutionInitiatorCell({
|
|
|
31371
31371
|
avatar,
|
|
31372
31372
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
31373
31373
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
31374
|
-
typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31374
|
+
typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { children: name }) : name,
|
|
31375
31375
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExecutionSourceBadge, { source })
|
|
31376
31376
|
] }),
|
|
31377
|
-
scriptName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31377
|
+
scriptName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { variant: "h6", tone: "secondary", children: scriptName })
|
|
31378
31378
|
] })
|
|
31379
31379
|
] });
|
|
31380
31380
|
}
|
|
31381
31381
|
function ExecutionResultCell({ result, empty = null }) {
|
|
31382
31382
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
31383
|
-
return result || loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31383
|
+
return result || loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { lines: 2, children: _nullishCoalesce(result, () => ( "")) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: empty });
|
|
31384
31384
|
}
|
|
31385
31385
|
function ScriptExecutionResult({
|
|
31386
31386
|
result,
|
|
@@ -31400,14 +31400,14 @@ function ScriptExecutionResult({
|
|
|
31400
31400
|
|
|
31401
31401
|
function ScriptNameCell({ name, description }) {
|
|
31402
31402
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31403
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31404
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31403
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { children: name }),
|
|
31404
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { variant: "h6", tone: "secondary", children: description })
|
|
31405
31405
|
] });
|
|
31406
31406
|
}
|
|
31407
31407
|
function ScheduleDateTimeCell({ date, time }) {
|
|
31408
31408
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31409
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31410
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31409
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { children: date }),
|
|
31410
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { variant: "h6", tone: "secondary", children: time })
|
|
31411
31411
|
] });
|
|
31412
31412
|
}
|
|
31413
31413
|
|
|
@@ -31494,7 +31494,7 @@ function OpenInNewTabCell({ href }) {
|
|
|
31494
31494
|
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,
|
|
31495
31495
|
_chunkAHBTZ7DNcjs.Button,
|
|
31496
31496
|
{
|
|
31497
|
-
onClick: loading ? void 0 :
|
|
31497
|
+
onClick: loading ? void 0 : _chunkTCMUVY3Mcjs.openInNewTab.call(void 0, href),
|
|
31498
31498
|
disabled: loading,
|
|
31499
31499
|
variant: "outline",
|
|
31500
31500
|
size: "icon",
|
|
@@ -31637,7 +31637,7 @@ function ScriptSchedulesTable({
|
|
|
31637
31637
|
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" })),
|
|
31638
31638
|
cell(
|
|
31639
31639
|
SCHEDULE_COLUMNS.dateTime,
|
|
31640
|
-
(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,
|
|
31640
|
+
(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, _chunkVYLBW6ZVcjs.TruncateText, { tone: "secondary", children: row.trigger }) : null
|
|
31641
31641
|
),
|
|
31642
31642
|
cell(
|
|
31643
31643
|
SCHEDULE_COLUMNS.repeat,
|
|
@@ -31683,9 +31683,9 @@ function ScriptSchedulesTable({
|
|
|
31683
31683
|
|
|
31684
31684
|
// src/components/features/scripts/shell-types.ts
|
|
31685
31685
|
var SCRIPT_SHELL_TYPES = [
|
|
31686
|
-
{ id:
|
|
31687
|
-
{ id:
|
|
31688
|
-
{ id:
|
|
31686
|
+
{ id: _chunkTCMUVY3Mcjs.ShellTypeValues.POWERSHELL, label: "PowerShell", value: "powershell", icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon },
|
|
31687
|
+
{ id: _chunkTCMUVY3Mcjs.ShellTypeValues.CMD, label: "CMD", value: "cmd", icon: _chunkNIVJEJSGcjs.TerminalSquareIcon },
|
|
31688
|
+
{ id: _chunkTCMUVY3Mcjs.ShellTypeValues.BASH, label: "Bash", value: "bash", icon: _chunkTRUW6DDAcjs.TerminalIcon }
|
|
31689
31689
|
];
|
|
31690
31690
|
function scriptShellType(value) {
|
|
31691
31691
|
return SCRIPT_SHELL_TYPES.find((shell) => shell.value === value);
|
|
@@ -31761,7 +31761,7 @@ function ScriptsTable({
|
|
|
31761
31761
|
initialsClassName: "text-ods-text-secondary"
|
|
31762
31762
|
}
|
|
31763
31763
|
),
|
|
31764
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31764
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { children: row.author.name }) })
|
|
31765
31765
|
] }) : null
|
|
31766
31766
|
)
|
|
31767
31767
|
];
|
|
@@ -31887,7 +31887,7 @@ function slotValue(minutesOfDay) {
|
|
|
31887
31887
|
return `${String(hours).padStart(2, "0")}:${String(minutes).padStart(2, "0")}`;
|
|
31888
31888
|
}
|
|
31889
31889
|
function slotLabel(minutesOfDay) {
|
|
31890
|
-
return
|
|
31890
|
+
return _chunk7TBXHZLBcjs.formatTime.call(void 0, new Date(1970, 0, 1, Math.floor(minutesOfDay / 60), minutesOfDay % 60));
|
|
31891
31891
|
}
|
|
31892
31892
|
function getTimeSlotOptions(forDate, timeReference) {
|
|
31893
31893
|
const base = slotBaseMinutes(timeReference);
|
|
@@ -32109,7 +32109,7 @@ function ReconnectWindowFields({
|
|
|
32109
32109
|
}
|
|
32110
32110
|
),
|
|
32111
32111
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
32112
|
-
|
|
32112
|
+
_chunkVYLBW6ZVcjs.Select,
|
|
32113
32113
|
{
|
|
32114
32114
|
value: unit,
|
|
32115
32115
|
onValueChange: (value) => {
|
|
@@ -32118,8 +32118,8 @@ function ReconnectWindowFields({
|
|
|
32118
32118
|
},
|
|
32119
32119
|
disabled,
|
|
32120
32120
|
children: [
|
|
32121
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32122
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32121
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectTrigger, { className: controlWidth, "aria-label": "Stop retry after unit", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectValue, {}) }),
|
|
32122
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectContent, { children: DURATION_UNIT_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
32123
32123
|
]
|
|
32124
32124
|
}
|
|
32125
32125
|
)
|
|
@@ -32189,7 +32189,7 @@ function ScheduleOfflineFields({ showErrors, disabled = false }) {
|
|
|
32189
32189
|
options
|
|
32190
32190
|
}
|
|
32191
32191
|
),
|
|
32192
|
-
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,
|
|
32192
|
+
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, _chunkVYLBW6ZVcjs.TruncateText, { variant: "h6", className: "text-ods-error", children: intervalError }) })
|
|
32193
32193
|
]
|
|
32194
32194
|
}
|
|
32195
32195
|
) }) })
|
|
@@ -32298,8 +32298,8 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
|
|
|
32298
32298
|
// Dragging towards the edge of the screen — or past it — scrolls whatever
|
|
32299
32299
|
// actually scrolls there: the page, the layout's `<main>`, or the list
|
|
32300
32300
|
// itself when it has its own overflow.
|
|
32301
|
-
|
|
32302
|
-
|
|
32301
|
+
_chunkCUDJP7R7cjs.autoScrollAncestors.call(void 0, list),
|
|
32302
|
+
_chunkCUDJP7R7cjs.autoScrollBothWays.call(void 0, list),
|
|
32303
32303
|
// One target for the whole list: which slot a drop lands in is answered by
|
|
32304
32304
|
// geometry, so this only has to say "inside the list, or outside it".
|
|
32305
32305
|
_adapter.dropTargetForElements.call(void 0, {
|
|
@@ -32596,7 +32596,7 @@ function useSortableItem() {
|
|
|
32596
32596
|
return _combine.combine.call(void 0,
|
|
32597
32597
|
// The drag has to start as a "move", or its first frame is drawn with the
|
|
32598
32598
|
// copy cursor — see `drag-effect.ts`.
|
|
32599
|
-
|
|
32599
|
+
_chunkCUDJP7R7cjs.holdMoveDragEffect.call(void 0, item),
|
|
32600
32600
|
_adapter.draggable.call(void 0, {
|
|
32601
32601
|
element: item,
|
|
32602
32602
|
dragHandle: handle,
|
|
@@ -33024,24 +33024,24 @@ function ScheduleTimingFields({
|
|
|
33024
33024
|
// `''` reads as "no selection" to Radix, so the placeholder shows
|
|
33025
33025
|
// until a slot is picked — a date at midnight no longer
|
|
33026
33026
|
// masquerades as a chosen 12:00 AM.
|
|
33027
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33027
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVYLBW6ZVcjs.Select, { value: field.value, onValueChange: field.onChange, disabled: fieldsDisabled, children: [
|
|
33028
33028
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33029
|
-
|
|
33029
|
+
_chunkVYLBW6ZVcjs.SelectTrigger,
|
|
33030
33030
|
{
|
|
33031
33031
|
className: "w-full",
|
|
33032
33032
|
error: _nullishCoalesce(pastTimeError, () => ( (showErrors ? _optionalChain([fieldState, 'access', _736 => _736.error, 'optionalAccess', _737 => _737.message]) : void 0))),
|
|
33033
33033
|
invalid: !!pastTimeError || showErrors && !!fieldState.error,
|
|
33034
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33034
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectValue, { placeholder: "Select time" })
|
|
33035
33035
|
}
|
|
33036
33036
|
),
|
|
33037
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33037
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectContent, { children: timeSlots.length === 0 ? (
|
|
33038
33038
|
// Deliberately NOT a `SelectItem` — there is nothing here
|
|
33039
33039
|
// to select, and a selectable row would put a bogus value
|
|
33040
33040
|
// in the form. It replaces a popup that opened blank; the
|
|
33041
33041
|
// Date field carries the same sentence for whoever never
|
|
33042
33042
|
// opens this one.
|
|
33043
33043
|
/* @__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 })
|
|
33044
|
-
) : timeSlots.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33044
|
+
) : timeSlots.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
33045
33045
|
] })
|
|
33046
33046
|
)
|
|
33047
33047
|
}
|
|
@@ -33055,7 +33055,7 @@ function ScheduleTimingFields({
|
|
|
33055
33055
|
name: "timeReference",
|
|
33056
33056
|
control,
|
|
33057
33057
|
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33058
|
-
|
|
33058
|
+
_chunkVYLBW6ZVcjs.Select,
|
|
33059
33059
|
{
|
|
33060
33060
|
value: field.value,
|
|
33061
33061
|
onValueChange: (value) => {
|
|
@@ -33064,8 +33064,8 @@ function ScheduleTimingFields({
|
|
|
33064
33064
|
},
|
|
33065
33065
|
disabled: fieldsDisabled,
|
|
33066
33066
|
children: [
|
|
33067
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33068
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33067
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectTrigger, { className: "w-full", "aria-label": "Timezone", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectValue, {}) }),
|
|
33068
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectContent, { children: SCHEDULE_TIME_REFERENCE_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
33069
33069
|
]
|
|
33070
33070
|
}
|
|
33071
33071
|
)
|
|
@@ -33125,7 +33125,7 @@ function ScheduleTimingFields({
|
|
|
33125
33125
|
name: "repeatUnit",
|
|
33126
33126
|
control,
|
|
33127
33127
|
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33128
|
-
|
|
33128
|
+
_chunkVYLBW6ZVcjs.Select,
|
|
33129
33129
|
{
|
|
33130
33130
|
value: field.value,
|
|
33131
33131
|
onValueChange: (value) => {
|
|
@@ -33138,8 +33138,8 @@ function ScheduleTimingFields({
|
|
|
33138
33138
|
},
|
|
33139
33139
|
disabled: fieldsDisabled || !repeatEnabled,
|
|
33140
33140
|
children: [
|
|
33141
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33142
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33141
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectValue, {}) }),
|
|
33142
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectContent, { children: DURATION_UNIT_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
33143
33143
|
]
|
|
33144
33144
|
}
|
|
33145
33145
|
)
|
|
@@ -33158,7 +33158,7 @@ function ScheduleFormFields({
|
|
|
33158
33158
|
disabled = false,
|
|
33159
33159
|
renderScriptSearch,
|
|
33160
33160
|
timeReferenceGate = "off",
|
|
33161
|
-
platforms =
|
|
33161
|
+
platforms = _chunkTCMUVY3Mcjs.OS_PLATFORMS,
|
|
33162
33162
|
comingSoonPlatforms = [],
|
|
33163
33163
|
getTimeSlots,
|
|
33164
33164
|
nameLayout = "stacked",
|
|
@@ -33228,7 +33228,7 @@ function ScheduleFormFields({
|
|
|
33228
33228
|
platform.id
|
|
33229
33229
|
);
|
|
33230
33230
|
}) }),
|
|
33231
|
-
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,
|
|
33231
|
+
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, _chunkVYLBW6ZVcjs.TruncateText, { variant: "h6", className: "text-ods-error", children: _nullishCoalesce(formState.errors.supportedPlatforms.message, () => ( "")) }) })
|
|
33232
33232
|
]
|
|
33233
33233
|
}
|
|
33234
33234
|
);
|
|
@@ -33304,7 +33304,7 @@ function ScheduleFormFields({
|
|
|
33304
33304
|
// src/components/features/scripts/schedule-form/schedule-script-search-field.tsx
|
|
33305
33305
|
|
|
33306
33306
|
function ScriptPlatformIcons({ platforms }) {
|
|
33307
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex shrink-0 items-center gap-0.5", children:
|
|
33307
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex shrink-0 items-center gap-0.5", children: _chunkTCMUVY3Mcjs.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)) });
|
|
33308
33308
|
}
|
|
33309
33309
|
function ScheduleScriptSearchField({
|
|
33310
33310
|
scriptId,
|
|
@@ -33330,7 +33330,7 @@ function ScheduleScriptSearchField({
|
|
|
33330
33330
|
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: [
|
|
33331
33331
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD47ZGOUcjs.Label, { className: "text-h4", children: "Select Script" }),
|
|
33332
33332
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33333
|
-
|
|
33333
|
+
_chunkVYLBW6ZVcjs.Autocomplete,
|
|
33334
33334
|
{
|
|
33335
33335
|
options,
|
|
33336
33336
|
value: scriptId || null,
|
|
@@ -33345,7 +33345,7 @@ function ScheduleScriptSearchField({
|
|
|
33345
33345
|
error,
|
|
33346
33346
|
invalid,
|
|
33347
33347
|
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: [
|
|
33348
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33348
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { className: isSelected ? "text-ods-accent" : void 0, children: option.label }) }),
|
|
33349
33349
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScriptPlatformIcons, { platforms: _nullishCoalesce(_optionalChain([scripts, 'access', _743 => _743.find, 'call', _744 => _744((s) => s.id === option.value), 'optionalAccess', _745 => _745.supportedPlatforms]), () => ( [])) })
|
|
33350
33350
|
] })
|
|
33351
33351
|
}
|
|
@@ -33377,7 +33377,7 @@ function KnowledgeBaseOpenButton({ href }) {
|
|
|
33377
33377
|
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,
|
|
33378
33378
|
_chunkAHBTZ7DNcjs.Button,
|
|
33379
33379
|
{
|
|
33380
|
-
onClick: loading ? void 0 :
|
|
33380
|
+
onClick: loading ? void 0 : _chunkTCMUVY3Mcjs.openInNewTab.call(void 0, href),
|
|
33381
33381
|
disabled: loading,
|
|
33382
33382
|
variant: "outline",
|
|
33383
33383
|
size: "icon",
|
|
@@ -33396,10 +33396,10 @@ function KnowledgeBaseNameCell({ item }) {
|
|
|
33396
33396
|
/* @__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" }) }),
|
|
33397
33397
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
33398
33398
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
33399
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33399
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { children: item.name }) }),
|
|
33400
33400
|
tagStatus && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { variant: KNOWLEDGE_BASE_STATUS_VARIANT[tagStatus], label: tagStatus, className: "shrink-0" })
|
|
33401
33401
|
] }),
|
|
33402
|
-
item.type === "ARTICLE" && (item.summary || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33402
|
+
item.type === "ARTICLE" && (item.summary || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(item.summary, () => ( "")) })
|
|
33403
33403
|
] })
|
|
33404
33404
|
] });
|
|
33405
33405
|
}
|
|
@@ -33414,8 +33414,8 @@ function KnowledgeBaseDateCell({ item, mode }) {
|
|
|
33414
33414
|
const ts = mode === "archive" ? _nullishCoalesce(item.updatedAt, () => ( item.createdAt)) : item.createdAt;
|
|
33415
33415
|
if (!ts) return null;
|
|
33416
33416
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col whitespace-nowrap", children: [
|
|
33417
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-primary text-h4", children:
|
|
33418
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-heading-5 text-ods-text-secondary", children:
|
|
33417
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-primary text-h4", children: _chunk7TBXHZLBcjs.formatDate.call(void 0, ts) }),
|
|
33418
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-heading-5 text-ods-text-secondary", children: _chunk7TBXHZLBcjs.formatTime.call(void 0, ts) })
|
|
33419
33419
|
] });
|
|
33420
33420
|
}
|
|
33421
33421
|
function getKnowledgeBaseOpenColumn(getHref) {
|
|
@@ -33521,7 +33521,7 @@ function KnowledgeBaseArticleView({
|
|
|
33521
33521
|
className = "px-[var(--spacing-system-l)] pb-[var(--spacing-system-l)]"
|
|
33522
33522
|
}) {
|
|
33523
33523
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33524
|
-
|
|
33524
|
+
_chunkVYLBW6ZVcjs.PageLayout,
|
|
33525
33525
|
{
|
|
33526
33526
|
title,
|
|
33527
33527
|
backButton: onBack ? { label: "Back", onClick: onBack } : void 0,
|
|
@@ -33531,9 +33531,9 @@ function KnowledgeBaseArticleView({
|
|
|
33531
33531
|
className,
|
|
33532
33532
|
children: [
|
|
33533
33533
|
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, _chunkU2MHQBL4cjs.Tag, { label: tag.label, variant: "outline", className: "max-w-full" }, tag.id)) }),
|
|
33534
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33534
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSC3I3YWMcjs.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: [
|
|
33535
33535
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
33536
|
-
author.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33536
|
+
author.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCUDJP7R7cjs.DeletedUserAvatar, { size: "md" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33537
33537
|
_chunkU2MHQBL4cjs.SquareAvatar,
|
|
33538
33538
|
{
|
|
33539
33539
|
src: author.imageUrl,
|
|
@@ -33544,12 +33544,12 @@ function KnowledgeBaseArticleView({
|
|
|
33544
33544
|
}
|
|
33545
33545
|
),
|
|
33546
33546
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
33547
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33547
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { className: author.deleted ? "text-ods-error" : void 0, children: _nullishCoalesce(author.name, () => ( "Unknown")) }),
|
|
33548
33548
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Author" })
|
|
33549
33549
|
] })
|
|
33550
33550
|
] }),
|
|
33551
33551
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 min-w-0 flex-col justify-center", children: [
|
|
33552
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33552
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { children: updatedLabel }),
|
|
33553
33553
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Updated" })
|
|
33554
33554
|
] }),
|
|
33555
33555
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -33695,7 +33695,7 @@ function ConversationCard({
|
|
|
33695
33695
|
className,
|
|
33696
33696
|
loading: loadingProp
|
|
33697
33697
|
}) {
|
|
33698
|
-
const tint =
|
|
33698
|
+
const tint = _chunk7Q2PFKU3cjs.useAgentTint.call(void 0, agent);
|
|
33699
33699
|
const requestId = _react.useId.call(void 0, );
|
|
33700
33700
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
33701
33701
|
if (loading) {
|
|
@@ -33728,7 +33728,7 @@ function ConversationCard({
|
|
|
33728
33728
|
style: tint,
|
|
33729
33729
|
onClick: selection && ((event) => {
|
|
33730
33730
|
if (event.button !== 0 || _optionalChain([window, 'access', _748 => _748.getSelection, 'call', _749 => _749(), 'optionalAccess', _750 => _750.toString, 'call', _751 => _751()])) return;
|
|
33731
|
-
if (!
|
|
33731
|
+
if (!_chunkTCMUVY3Mcjs.isOwnClick.call(void 0, event.target, event.currentTarget, { controls: true })) return;
|
|
33732
33732
|
selection.onToggle();
|
|
33733
33733
|
}),
|
|
33734
33734
|
children: [
|
|
@@ -33751,7 +33751,7 @@ function ConversationCard({
|
|
|
33751
33751
|
)
|
|
33752
33752
|
),
|
|
33753
33753
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33754
|
-
|
|
33754
|
+
_chunkTCMUVY3Mcjs.ChatTurn,
|
|
33755
33755
|
{
|
|
33756
33756
|
avatar: requester.avatar,
|
|
33757
33757
|
name: requester.name,
|
|
@@ -33772,7 +33772,7 @@ function ConversationCard({
|
|
|
33772
33772
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: CONTEXT_TEXT_CLASS, style: partLinesStyle(_optionalChain([lines, 'optionalAccess', _752 => _752.context])), children: context.text })
|
|
33773
33773
|
] }),
|
|
33774
33774
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33775
|
-
|
|
33775
|
+
_chunkTCMUVY3Mcjs.ChatTurn,
|
|
33776
33776
|
{
|
|
33777
33777
|
avatar: responder.avatar,
|
|
33778
33778
|
name: responder.name,
|
|
@@ -33817,7 +33817,7 @@ function ConversationCardSkeleton({
|
|
|
33817
33817
|
{
|
|
33818
33818
|
selection: selection && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.InertWhileLoading, { className: "contents", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectionToggle, { pressed: selection.pressed }) }),
|
|
33819
33819
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33820
|
-
|
|
33820
|
+
_chunkTCMUVY3Mcjs.ChatTurn,
|
|
33821
33821
|
{
|
|
33822
33822
|
loading: true,
|
|
33823
33823
|
name: "",
|
|
@@ -33841,7 +33841,7 @@ function ConversationCardSkeleton({
|
|
|
33841
33841
|
] })
|
|
33842
33842
|
] }),
|
|
33843
33843
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33844
|
-
|
|
33844
|
+
_chunkTCMUVY3Mcjs.ChatTurn,
|
|
33845
33845
|
{
|
|
33846
33846
|
loading: true,
|
|
33847
33847
|
name: "",
|
|
@@ -33922,7 +33922,7 @@ function Highlights({ items, className }) {
|
|
|
33922
33922
|
if (items.length === 0) return null;
|
|
33923
33923
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "grid grid-cols-1 gap-2", className), children: items.slice(0, HIGHLIGHTS_LIMIT).map((text) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "li", { "data-loading-item": true, className: HIGHLIGHT_ROW_CLASS, children: [
|
|
33924
33924
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { size: HIGHLIGHT_ICON_PX, className: "shrink-0 text-ods-flamingo-cyan" }),
|
|
33925
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33925
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { variant: "h6", triggerClassName: "flex-1", children: text })
|
|
33926
33926
|
] }, text)) });
|
|
33927
33927
|
}
|
|
33928
33928
|
function Example({
|
|
@@ -33958,7 +33958,7 @@ function Example({
|
|
|
33958
33958
|
mark(_nullishCoalesce(_optionalChain([requester, 'optionalAccess', _756 => _756.mark]), () => ( requesterMark))),
|
|
33959
33959
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
33960
33960
|
who(_nullishCoalesce(_optionalChain([requester, 'optionalAccess', _757 => _757.name]), () => ( labels.requester)), _nullishCoalesce(_optionalChain([requester, 'optionalAccess', _758 => _758.note]), () => ( labels.requesterNote))),
|
|
33961
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33961
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { lines: 2, variant: "h4", className: "min-h-[2lh]", children: `\u201C${example.request}\u201D` })
|
|
33962
33962
|
] })
|
|
33963
33963
|
] }),
|
|
33964
33964
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 gap-2.5 border-t border-ods-border pt-3", children: [
|
|
@@ -33967,7 +33967,7 @@ function Example({
|
|
|
33967
33967
|
who(_nullishCoalesce(_optionalChain([responder, 'optionalAccess', _760 => _760.name]), () => ( labels.responder)), _nullishCoalesce(_optionalChain([responder, 'optionalAccess', _761 => _761.note]), () => ( labels.responderNote))),
|
|
33968
33968
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-start gap-2", children: [
|
|
33969
33969
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { size: 16, className: "mt-0.5 shrink-0 text-ods-flamingo-cyan" }),
|
|
33970
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33970
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { lines: 2, variant: "h6", tone: "secondary", className: "min-h-[2lh]", triggerClassName: "flex-1", children: example.outcome })
|
|
33971
33971
|
] })
|
|
33972
33972
|
] })
|
|
33973
33973
|
] })
|
|
@@ -33977,7 +33977,7 @@ function Example({
|
|
|
33977
33977
|
}
|
|
33978
33978
|
function ExampleSkeleton({ className }) {
|
|
33979
33979
|
const turn = (first) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex min-w-0 gap-2.5", !first && "border-t border-ods-border pt-3"), children: [
|
|
33980
|
-
first ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.SquareAvatar, { loading: true, variant: "round", sizePx: EXAMPLE_MARK_PX, className: "shrink-0" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33980
|
+
first ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.SquareAvatar, { loading: true, variant: "round", sizePx: EXAMPLE_MARK_PX, className: "shrink-0" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE64HJMY6cjs.AgentAvatar, { loading: true, agent: "", size: EXAMPLE_MARK_PX }),
|
|
33981
33981
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
33982
33982
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-28" }),
|
|
33983
33983
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-h-[2lh] text-h4", children: [
|
|
@@ -34103,16 +34103,16 @@ function CapabilityExplorer({
|
|
|
34103
34103
|
readItems: true,
|
|
34104
34104
|
renderItem: (item) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "article", { className: _chunk7JWFMAQBcjs.cn.call(void 0, CARD_CLASS2, CARD_HEIGHT_CLASS), children: [
|
|
34105
34105
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CARD_HEAD_ROW_CLASS, children: [
|
|
34106
|
-
item.iconName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, JOB_ICON_TILE_CLASS, "text-ods-flamingo-cyan"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34106
|
+
item.iconName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, JOB_ICON_TILE_CLASS, "text-ods-flamingo-cyan"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSC3I3YWMcjs.EntityIcon, { icon: { name: item.iconName }, size: 18 }) }),
|
|
34107
34107
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
34108
34108
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "h3", { className: "flex min-w-0 items-center gap-2 text-ods-text-primary text-h4", children: [
|
|
34109
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34109
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { as: "span", variant: "h4", triggerClassName: "flex-1", children: item.title }),
|
|
34110
34110
|
item.badge
|
|
34111
34111
|
] }),
|
|
34112
|
-
item.caption && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34112
|
+
item.caption && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { variant: "h6", tone: "secondary", children: item.caption })
|
|
34113
34113
|
] })
|
|
34114
34114
|
] }),
|
|
34115
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34115
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { lines: 3, variant: "h6", tone: "secondary", className: "min-h-[3lh]", children: item.intro }),
|
|
34116
34116
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0 overflow-hidden rounded-lg border border-ods-border", children: renderScreen(item, { compact: true }) }),
|
|
34117
34117
|
item.example && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34118
34118
|
Example,
|
|
@@ -34183,7 +34183,7 @@ function CapabilityExplorer({
|
|
|
34183
34183
|
"span",
|
|
34184
34184
|
{
|
|
34185
34185
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, JOB_ICON_TILE_CLASS, selected ? "text-ods-flamingo-cyan" : "text-ods-text-secondary"),
|
|
34186
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34186
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSC3I3YWMcjs.EntityIcon, { icon: { name: item.iconName }, size: 18 })
|
|
34187
34187
|
}
|
|
34188
34188
|
),
|
|
34189
34189
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "min-w-0 flex-1", children: [
|
|
@@ -34229,8 +34229,8 @@ function CapabilityExplorer({
|
|
|
34229
34229
|
),
|
|
34230
34230
|
children: [
|
|
34231
34231
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: PANEL_INTRO_CLASS, children: [
|
|
34232
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34233
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34232
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { lines: 2, variant: "h2", className: "mb-2", children: active.title }),
|
|
34233
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVYLBW6ZVcjs.TruncateText, { lines: 3, variant: "h4", tone: "secondary", className: "min-h-[3lh]", children: active.intro }),
|
|
34234
34234
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Highlights, { items: _nullishCoalesce(active.highlights, () => ( [])), className: "mt-auto" })
|
|
34235
34235
|
] }),
|
|
34236
34236
|
active.example && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|