@flamingo-stack/openframe-frontend-core 0.0.783 → 0.0.784
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/{chunk-TS6TISIF.cjs → chunk-4LQKUZQL.cjs} +15 -15
- package/dist/{chunk-KRXHRL3W.cjs → chunk-4T2ZBCVJ.cjs} +55 -55
- package/dist/{chunk-WHNI4QTG.cjs → chunk-6F3IS3RD.cjs} +3 -3
- package/dist/{chunk-YU23M33V.cjs → chunk-CBDSML44.cjs} +32 -32
- package/dist/{chunk-3PKORICR.cjs → chunk-CZPUVFON.cjs} +51 -51
- package/dist/{chunk-RL45AU2C.cjs → chunk-FQE5MGRD.cjs} +11 -11
- package/dist/{chunk-WS7IDGEL.cjs → chunk-GI5QCHOV.cjs} +6 -6
- package/dist/{chunk-E2ZZOYSM.cjs → chunk-GMIXTXAO.cjs} +15 -3
- package/dist/{chunk-LGISRUGF.cjs → chunk-GTYVI4QR.cjs} +4 -4
- package/dist/{chunk-H3RHAN6B.cjs → chunk-JYLECAIR.cjs} +41 -41
- package/dist/{chunk-AFSVWR3X.cjs → chunk-KVPHCBQV.cjs} +12 -12
- package/dist/{chunk-URFAMWCA.cjs → chunk-L33AEGH4.cjs} +22 -22
- package/dist/{chunk-THOGSAFH.cjs → chunk-MYXC6PEG.cjs} +329 -329
- package/dist/{chunk-XKDJ5ISQ.cjs → chunk-MZQGHDTE.cjs} +3 -3
- package/dist/{chunk-6NEWJ6I2.cjs → chunk-NZJ5WW2D.cjs} +21 -21
- package/dist/{chunk-62TMGBRO.cjs → chunk-STYH4ISW.cjs} +23 -23
- package/dist/{chunk-APO7GMZQ.cjs → chunk-U5R4MY4F.cjs} +4 -4
- package/dist/{chunk-PQSTPJQQ.cjs → chunk-V5PJQ4C2.cjs} +6 -6
- package/dist/{chunk-7OJMOG34.cjs → chunk-WMXNSSJZ.cjs} +48 -48
- package/dist/{chunk-BAJB3JF3.cjs → chunk-XVFESSEB.cjs} +7 -7
- package/dist/{cloud-tenants-QYW3MPPP.cjs → cloud-tenants-HUFCDOSC.cjs} +6 -6
- package/dist/components/case-studies/index.cjs +18 -18
- package/dist/components/chat/index.cjs +4 -4
- package/dist/components/contact/index.cjs +7 -7
- package/dist/components/docs/index.cjs +10 -10
- package/dist/components/embeds/index.cjs +7 -7
- package/dist/components/faq/index.cjs +8 -8
- package/dist/components/features/board/board-column.d.ts +1 -1
- package/dist/components/features/board/board-column.d.ts.map +1 -1
- package/dist/components/features/board/ticket-card.d.ts +1 -1
- package/dist/components/features/board/ticket-card.d.ts.map +1 -1
- package/dist/components/features/index.cjs +6 -6
- package/dist/components/help-center-pages/index.cjs +72 -72
- package/dist/components/index.cjs +40 -40
- package/dist/components/media-carousel.d.ts +1 -1
- package/dist/components/media-carousel.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +38 -38
- package/dist/components/navigation/app-header.d.ts +1 -1
- package/dist/components/navigation/app-header.d.ts.map +1 -1
- package/dist/components/navigation/index.cjs +9 -9
- package/dist/components/navigation/mobile-burger-menu.d.ts +1 -1
- package/dist/components/navigation/mobile-burger-menu.d.ts.map +1 -1
- package/dist/components/navigation/navigation-sidebar-item.d.ts +1 -1
- package/dist/components/navigation/navigation-sidebar-item.d.ts.map +1 -1
- package/dist/components/onboarding-guides/index.cjs +8 -8
- package/dist/components/product-demo/index.cjs +16 -16
- package/dist/components/tickets/index.cjs +11 -11
- package/dist/components/ui/index.cjs +6 -6
- package/dist/components/ui/markdown/engine.d.ts +1 -1
- package/dist/components/ui/markdown/engine.d.ts.map +1 -1
- package/dist/components/ui/modal-v2.d.ts.map +1 -1
- package/dist/components/ui/modal-v2.js +16 -4
- package/dist/{devices-DMMMEO2B.cjs → devices-KRWVEY76.cjs} +7 -7
- package/dist/{embeddable-chat-OSSPL7L4.cjs → embeddable-chat-AZEPJAPN.cjs} +65 -65
- package/dist/index.cjs +10 -10
- package/dist/{knowledge-XQQXVV6C.cjs → knowledge-Z3FM7U3W.cjs} +7 -7
- package/dist/{logs-BHKMDCBP.cjs → logs-CNJYF5CO.cjs} +14 -14
- package/dist/{policies-5IY7QUED.cjs → policies-U32LUDZ4.cjs} +10 -10
- package/dist/{remote-session-IEOWFBF7.cjs → remote-session-ST6JEZML.cjs} +5 -5
- package/dist/{scripts-ZQXRBGVK.cjs → scripts-2Y6ISOOK.cjs} +13 -13
- package/dist/{software-update-RGFRYL3N.cjs → software-update-EEN7PQR3.cjs} +10 -10
- package/package.json +3 -3
- package/src/components/ui/modal-v2.tsx +22 -4
|
@@ -36,7 +36,7 @@ var _chunkZFOMRALUcjs = require('./chunk-ZFOMRALU.cjs');
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _chunk4LQKUZQLcjs = require('./chunk-4LQKUZQL.cjs');
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
var _chunkDEY6XXGOcjs = require('./chunk-DEY6XXGO.cjs');
|
|
@@ -107,7 +107,7 @@ var _chunkUPQMFK5Bcjs = require('./chunk-UPQMFK5B.cjs');
|
|
|
107
107
|
|
|
108
108
|
|
|
109
109
|
|
|
110
|
-
var
|
|
110
|
+
var _chunkSTYH4ISWcjs = require('./chunk-STYH4ISW.cjs');
|
|
111
111
|
|
|
112
112
|
|
|
113
113
|
|
|
@@ -127,7 +127,7 @@ var _chunk62TMGBROcjs = require('./chunk-62TMGBRO.cjs');
|
|
|
127
127
|
|
|
128
128
|
|
|
129
129
|
|
|
130
|
-
var
|
|
130
|
+
var _chunkWMXNSSJZcjs = require('./chunk-WMXNSSJZ.cjs');
|
|
131
131
|
|
|
132
132
|
|
|
133
133
|
|
|
@@ -156,7 +156,7 @@ var _chunkBE4OUWTAcjs = require('./chunk-BE4OUWTA.cjs');
|
|
|
156
156
|
|
|
157
157
|
|
|
158
158
|
|
|
159
|
-
var
|
|
159
|
+
var _chunkGMIXTXAOcjs = require('./chunk-GMIXTXAO.cjs');
|
|
160
160
|
|
|
161
161
|
|
|
162
162
|
|
|
@@ -695,7 +695,7 @@ function ThemeProvider({ children, ...overrides }) {
|
|
|
695
695
|
var useTheme = _nextthemes.useTheme;
|
|
696
696
|
function useThemeToggle() {
|
|
697
697
|
const { resolvedTheme, theme, setTheme } = useTheme();
|
|
698
|
-
const mounted =
|
|
698
|
+
const mounted = _chunkWMXNSSJZcjs.useIsHydrated.call(void 0, );
|
|
699
699
|
const active = mounted ? resolvedTheme === "light" || theme === "light" ? "light" : "dark" : DEFAULT_THEME;
|
|
700
700
|
const setOdsTheme = _react.useCallback.call(void 0, (next) => setTheme(next), [setTheme]);
|
|
701
701
|
const toggle = _react.useCallback.call(void 0, () => setTheme(active === "dark" ? "light" : "dark"), [active, setTheme]);
|
|
@@ -904,7 +904,7 @@ function TimezoneSelect({
|
|
|
904
904
|
const loading = _chunkMGEUZRNQcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
905
905
|
const options = _react.useMemo.call(void 0, () => timezoneOptions(value), [value]);
|
|
906
906
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
907
|
-
|
|
907
|
+
_chunk4LQKUZQLcjs.Autocomplete,
|
|
908
908
|
{
|
|
909
909
|
className,
|
|
910
910
|
fieldLoading: loading,
|
|
@@ -1719,20 +1719,20 @@ function DatePickerInput(props) {
|
|
|
1719
1719
|
) })
|
|
1720
1720
|
] }),
|
|
1721
1721
|
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1", children: [
|
|
1722
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1723
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1724
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1722
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4LQKUZQLcjs.Select, { value: hour, onValueChange: handleHourChange, disabled, children: [
|
|
1723
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectTrigger, { className: _chunkMGEUZRNQcjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectValue, { placeholder: "HH" }) }),
|
|
1724
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectContent, { children: hourOptions.map((h) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: h, children: h }, h)) })
|
|
1725
1725
|
] }),
|
|
1726
1726
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h4", children: ":" }),
|
|
1727
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1728
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1729
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1727
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4LQKUZQLcjs.Select, { value: minute, onValueChange: handleMinuteChange, disabled, children: [
|
|
1728
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectTrigger, { className: _chunkMGEUZRNQcjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectValue, { placeholder: "MM" }) }),
|
|
1729
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectContent, { children: minuteOptions.map((m) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: m, children: m }, m)) })
|
|
1730
1730
|
] }),
|
|
1731
|
-
!use24HourFormat && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1732
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1733
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1734
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1735
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1731
|
+
!use24HourFormat && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4LQKUZQLcjs.Select, { value: period, onValueChange: (val) => handlePeriodChange(val), disabled, children: [
|
|
1732
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectTrigger, { className: _chunkMGEUZRNQcjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectValue, { placeholder: "AM" }) }),
|
|
1733
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4LQKUZQLcjs.SelectContent, { children: [
|
|
1734
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: "AM", children: "AM" }),
|
|
1735
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: "PM", children: "PM" })
|
|
1736
1736
|
] })
|
|
1737
1737
|
] })
|
|
1738
1738
|
] })
|
|
@@ -1873,9 +1873,9 @@ function DatePickerInputSimple(props) {
|
|
|
1873
1873
|
}
|
|
1874
1874
|
) })
|
|
1875
1875
|
] }),
|
|
1876
|
-
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1877
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1878
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1876
|
+
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4LQKUZQLcjs.Select, { value: timeValue, onValueChange: handleTimeChange, disabled, children: [
|
|
1877
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectTrigger, { className: _chunkMGEUZRNQcjs.cn.call(void 0, timeSelectTriggerStyles, "flex-1"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectValue, { placeholder: "Select time", children: timeDisplayLabel || "Select time" }) }),
|
|
1878
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectContent, { children: timeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
1879
1879
|
] })
|
|
1880
1880
|
] });
|
|
1881
1881
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHQ2UGT4cjs.FieldWrapper, { label, error, errorSlot: "error" in props, className, children: content });
|
|
@@ -1894,14 +1894,14 @@ function DateFilterPanel({
|
|
|
1894
1894
|
className
|
|
1895
1895
|
}) {
|
|
1896
1896
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkMGEUZRNQcjs.cn.call(void 0, "flex flex-col gap-4", className), children: [
|
|
1897
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1898
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1897
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4LQKUZQLcjs.Select, { value: sort, onValueChange: (value) => onSortChange(value), children: [
|
|
1898
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectTrigger, { className: "gap-2", "aria-label": "Sort direction", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
1899
1899
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ArrowUpDown, { className: "size-6 shrink-0 text-ods-text-secondary" }),
|
|
1900
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1900
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectValue, {}) })
|
|
1901
1901
|
] }) }),
|
|
1902
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1903
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1904
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1902
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4LQKUZQLcjs.SelectContent, { children: [
|
|
1903
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: "asc", children: ascLabel }),
|
|
1904
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: "desc", children: descLabel })
|
|
1905
1905
|
] })
|
|
1906
1906
|
] }),
|
|
1907
1907
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2772,7 +2772,7 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
2772
2772
|
if (isEditing) {
|
|
2773
2773
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkMGEUZRNQcjs.cn.call(void 0, "min-w-0", className), children: [
|
|
2774
2774
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2775
|
-
|
|
2775
|
+
_chunk4LQKUZQLcjs.Autocomplete,
|
|
2776
2776
|
{
|
|
2777
2777
|
options,
|
|
2778
2778
|
value: _nullishCoalesce(_optionalChain([currentAssignee, 'optionalAccess', _43 => _43.id]), () => ( null)),
|
|
@@ -3021,7 +3021,7 @@ function MediaTypeSelector({
|
|
|
3021
3021
|
// changed) and cost an extra render pass on every change to say what the
|
|
3022
3022
|
// prop already said.
|
|
3023
3023
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3024
|
-
|
|
3024
|
+
_chunk4LQKUZQLcjs.Select,
|
|
3025
3025
|
{
|
|
3026
3026
|
value: value || void 0,
|
|
3027
3027
|
onValueChange: (next) => {
|
|
@@ -3031,8 +3031,8 @@ function MediaTypeSelector({
|
|
|
3031
3031
|
disabled,
|
|
3032
3032
|
defaultValue: value,
|
|
3033
3033
|
children: [
|
|
3034
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3035
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3034
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectTrigger, { className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectValue, { placeholder }) }),
|
|
3035
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectContent, { children: mediaTypeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: option.value, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
3036
3036
|
option.icon,
|
|
3037
3037
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: option.label })
|
|
3038
3038
|
] }) }, option.value)) })
|
|
@@ -4458,10 +4458,10 @@ function useConfirm() {
|
|
|
4458
4458
|
},
|
|
4459
4459
|
[]
|
|
4460
4460
|
);
|
|
4461
|
-
const dialog = pending ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4462
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4463
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4464
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4461
|
+
const dialog = pending ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGMIXTXAOcjs.Modal, { isOpen: open, onClose: () => decide(false), children: [
|
|
4462
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGMIXTXAOcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGMIXTXAOcjs.ModalTitle, { children: pending.title }) }),
|
|
4463
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGMIXTXAOcjs.ModalContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: pending.body }) }),
|
|
4464
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGMIXTXAOcjs.ModalFooter, { children: [
|
|
4465
4465
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLS6DZENcjs.Button, { variant: "outline", onClick: () => decide(false), children: "Cancel" }),
|
|
4466
4466
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLS6DZENcjs.Button, { variant: "destructive", onClick: () => decide(true), children: "Confirm" })
|
|
4467
4467
|
] })
|
|
@@ -4539,7 +4539,7 @@ function AdminFormDrawer({
|
|
|
4539
4539
|
"form",
|
|
4540
4540
|
{
|
|
4541
4541
|
id: formId,
|
|
4542
|
-
...
|
|
4542
|
+
..._chunkSTYH4ISWcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
4543
4543
|
className: "flex flex-col gap-[var(--spacing-system-lf)]",
|
|
4544
4544
|
onSubmit: (e) => {
|
|
4545
4545
|
e.preventDefault();
|
|
@@ -4637,16 +4637,16 @@ function AdminFormModal({
|
|
|
4637
4637
|
body: "Your edits have not been saved. Close and discard them?"
|
|
4638
4638
|
});
|
|
4639
4639
|
if (!isOpen) return null;
|
|
4640
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4641
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4642
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4640
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGMIXTXAOcjs.Modal, { isOpen: true, onClose: guardedClose, size: effectiveSize, children: [
|
|
4641
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGMIXTXAOcjs.ModalHeader, { children: [
|
|
4642
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGMIXTXAOcjs.ModalTitle, { children: title }),
|
|
4643
4643
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-ods-text-secondary text-h6", children: subtitle })
|
|
4644
4644
|
] }),
|
|
4645
4645
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4646
4646
|
"form",
|
|
4647
4647
|
{
|
|
4648
4648
|
id: formId,
|
|
4649
|
-
...
|
|
4649
|
+
..._chunkSTYH4ISWcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
4650
4650
|
className: "flex min-h-0 flex-1 flex-col",
|
|
4651
4651
|
onSubmit: (e) => {
|
|
4652
4652
|
e.preventDefault();
|
|
@@ -4664,7 +4664,7 @@ function AdminFormModal({
|
|
|
4664
4664
|
// a shrink-to-fit flex item pinned to the left of a 1400px panel).
|
|
4665
4665
|
// The placeholder owns its own layout and mirrors the column count so
|
|
4666
4666
|
// the modal doesn't visibly re-flow when the entity lands.
|
|
4667
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4667
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGMIXTXAOcjs.ModalContent, { children: loadingContent ? (
|
|
4668
4668
|
// The one announcement: a `loadingContent` with a region of its own takes `region={false}`.
|
|
4669
4669
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkA3UZFFR3cjs.LoadingRegion, { label: "Loading", children: loadingContent })
|
|
4670
4670
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -4685,12 +4685,12 @@ function AdminFormModal({
|
|
|
4685
4685
|
] }, i)) }, col))
|
|
4686
4686
|
}
|
|
4687
4687
|
) })
|
|
4688
|
-
) : twoColumn ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4688
|
+
) : twoColumn ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGMIXTXAOcjs.ModalTwoColumn, { left: leftColumn, right: rightColumn }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGMIXTXAOcjs.ModalContent, { className: contentClassName, children }),
|
|
4689
4689
|
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { role: "alert", className: "shrink-0 text-ods-error text-h6", children: error })
|
|
4690
4690
|
]
|
|
4691
4691
|
}
|
|
4692
4692
|
),
|
|
4693
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4693
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGMIXTXAOcjs.ModalFooter, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center justify-between gap-[var(--spacing-system-xsf)]", children: [
|
|
4694
4694
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: footerExtras }),
|
|
4695
4695
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
4696
4696
|
footerStatus,
|
|
@@ -6040,7 +6040,7 @@ function EmbedViewerFrame({
|
|
|
6040
6040
|
const controllerRef = _react.useRef.call(void 0, null);
|
|
6041
6041
|
_react.useEffect.call(void 0, () => {
|
|
6042
6042
|
if (!fullscreenControl) return void 0;
|
|
6043
|
-
const controller = new (0,
|
|
6043
|
+
const controller = new (0, _chunkSTYH4ISWcjs.FullscreenSwitchController)({
|
|
6044
6044
|
target: () => frameRef.current,
|
|
6045
6045
|
onFullscreenChange: setIsFullscreen
|
|
6046
6046
|
});
|
|
@@ -6704,12 +6704,12 @@ var OGLinkPreview = ({
|
|
|
6704
6704
|
children: [
|
|
6705
6705
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TILE_SOURCE_ROW_CLASS, children: [
|
|
6706
6706
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Favicon, { src: `https://www.google.com/s2/favicons?domain=${domain}&sz=32`, size: "w-4 h-4" }),
|
|
6707
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6707
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { as: "span", variant: "h6", className: "text-current", children: name }),
|
|
6708
6708
|
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 })
|
|
6709
6709
|
] }),
|
|
6710
6710
|
kicker != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-hidden text-ods-accent text-h5", style: lineClamp(1), children: kicker }),
|
|
6711
6711
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6712
|
-
|
|
6712
|
+
_chunk4LQKUZQLcjs.TruncateText,
|
|
6713
6713
|
{
|
|
6714
6714
|
lines: 2,
|
|
6715
6715
|
variant: "h3",
|
|
@@ -6718,7 +6718,7 @@ var OGLinkPreview = ({
|
|
|
6718
6718
|
children: curatedTitle || domainToTitle(domain)
|
|
6719
6719
|
}
|
|
6720
6720
|
),
|
|
6721
|
-
curatedDescription && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6721
|
+
curatedDescription && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { lines: 2, variant: "h6", tone: "secondary", children: curatedDescription })
|
|
6722
6722
|
]
|
|
6723
6723
|
}
|
|
6724
6724
|
);
|
|
@@ -6854,8 +6854,8 @@ var OGLinkPreview = ({
|
|
|
6854
6854
|
children: [
|
|
6855
6855
|
/* @__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 }) }),
|
|
6856
6856
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
6857
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6858
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6857
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { className: "font-semibold transition-colors group-hover:text-ods-accent", children: title }),
|
|
6858
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { tone: "secondary", children: description })
|
|
6859
6859
|
] }),
|
|
6860
6860
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExternalLinkIcon, {})
|
|
6861
6861
|
]
|
|
@@ -6902,7 +6902,7 @@ var OGLinkPreview = ({
|
|
|
6902
6902
|
),
|
|
6903
6903
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
6904
6904
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6905
|
-
|
|
6905
|
+
_chunk4LQKUZQLcjs.TruncateText,
|
|
6906
6906
|
{
|
|
6907
6907
|
lines: 2,
|
|
6908
6908
|
className: "min-h-[calc(var(--font-line-space-h4-body)*2)] font-semibold transition-colors group-hover:text-ods-accent",
|
|
@@ -6911,7 +6911,7 @@ var OGLinkPreview = ({
|
|
|
6911
6911
|
}
|
|
6912
6912
|
),
|
|
6913
6913
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6914
|
-
|
|
6914
|
+
_chunk4LQKUZQLcjs.TruncateText,
|
|
6915
6915
|
{
|
|
6916
6916
|
lines: 2,
|
|
6917
6917
|
tone: "secondary",
|
|
@@ -6921,9 +6921,9 @@ var OGLinkPreview = ({
|
|
|
6921
6921
|
}
|
|
6922
6922
|
),
|
|
6923
6923
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-2 text-ods-text-secondary text-h6", children: [
|
|
6924
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6924
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { as: "span", variant: "h6", className: "text-current", children: effectiveData.siteName }),
|
|
6925
6925
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "\u2022" }),
|
|
6926
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6926
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { as: "span", variant: "h6", className: "text-current", children: ogDomain }),
|
|
6927
6927
|
meta
|
|
6928
6928
|
] })
|
|
6929
6929
|
] })
|
|
@@ -7279,7 +7279,7 @@ var formatTimeAgo = (timestamp) => {
|
|
|
7279
7279
|
return `${Math.floor(diffSeconds / 86400)}d ago`;
|
|
7280
7280
|
};
|
|
7281
7281
|
function RedditEmbedClient({ url, maxWidth = 700, rel }) {
|
|
7282
|
-
const postLinkRel =
|
|
7282
|
+
const postLinkRel = _chunkWMXNSSJZcjs.renderedLinkRel.call(void 0, rel, true);
|
|
7283
7283
|
const { redditProxyUrl } = useRichMarkdownRuntime();
|
|
7284
7284
|
const [redditData, setRedditData] = _react.useState.call(void 0, null);
|
|
7285
7285
|
const [loading, setLoading] = _react.useState.call(void 0, true);
|
|
@@ -7611,7 +7611,7 @@ var UserIcon3 = () => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "svg", { wid
|
|
|
7611
7611
|
] });
|
|
7612
7612
|
var XIcon = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2TEMEXDTcjs.XLogoIcon, { className: "h-5 w-5", color: "currentColor" });
|
|
7613
7613
|
function TwitterEmbedClient({ url, tweetId, maxWidth = 700, rel }) {
|
|
7614
|
-
const postLinkRel =
|
|
7614
|
+
const postLinkRel = _chunkWMXNSSJZcjs.renderedLinkRel.call(void 0, rel, true);
|
|
7615
7615
|
const { twitterProxyUrl } = useRichMarkdownRuntime();
|
|
7616
7616
|
const [tweetData, setTweetData] = _react.useState.call(void 0, null);
|
|
7617
7617
|
const [fetchLoading, setLoading] = _react.useState.call(void 0, true);
|
|
@@ -7813,7 +7813,7 @@ function buildRichEmbedOverrides({
|
|
|
7813
7813
|
ogEndpointPath,
|
|
7814
7814
|
textSizes
|
|
7815
7815
|
}) {
|
|
7816
|
-
const standard =
|
|
7816
|
+
const standard = _chunkWMXNSSJZcjs.buildStandardLeafRenderers.call(void 0, { textSizes });
|
|
7817
7817
|
return {
|
|
7818
7818
|
// Fence-language embeds (```youtube-embed etc.); everything else
|
|
7819
7819
|
// (mermaid, highlighted blocks, inline code) falls through to `standard`.
|
|
@@ -7949,14 +7949,14 @@ function buildRichEmbedOverrides({
|
|
|
7949
7949
|
// rich-markdown runtime (Supabase optimization on the hub, identity
|
|
7950
7950
|
// elsewhere). Guard against empty `![]()`.
|
|
7951
7951
|
img: ({ src, alt }) => {
|
|
7952
|
-
if (!
|
|
7952
|
+
if (!_chunkWMXNSSJZcjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7953
7953
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownImage, { src: src.trim(), alt });
|
|
7954
7954
|
},
|
|
7955
7955
|
// Raw <iframe> tags in stored content (a pasted YouTube embed). A YouTube one becomes the same click-to-play
|
|
7956
7956
|
// facade as the `youtube-embed` fence: the raw iframe loaded YouTube's whole player (about 470 KB of script) with
|
|
7957
7957
|
// the page, on every post that carried one (CU-17tkuw5xp4q). Any other iframe loads when it nears the screen.
|
|
7958
7958
|
iframe: ({ node: _node, src, ...rest }) => {
|
|
7959
|
-
if (!
|
|
7959
|
+
if (!_chunkWMXNSSJZcjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7960
7960
|
const url = src.trim();
|
|
7961
7961
|
if (_chunkODDUGLYFcjs.extractYouTubeId.call(void 0, url)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkODDUGLYFcjs.Video, { kind: "youtube", url });
|
|
7962
7962
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "iframe", { ...rest, src: url, loading: "lazy" });
|
|
@@ -7964,7 +7964,7 @@ function buildRichEmbedOverrides({
|
|
|
7964
7964
|
// Raw <video> tags in stored content (blog publisher injection) route
|
|
7965
7965
|
// to the <Video> SSOT (MuxPlayer) so HLS manifests play everywhere.
|
|
7966
7966
|
video: ({ src, poster, className }) => {
|
|
7967
|
-
if (!
|
|
7967
|
+
if (!_chunkWMXNSSJZcjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7968
7968
|
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, _chunkODDUGLYFcjs.Video, { kind: "file", url: src.trim(), poster: typeof poster === "string" ? poster : void 0 }) }) });
|
|
7969
7969
|
}
|
|
7970
7970
|
};
|
|
@@ -8073,7 +8073,7 @@ var processShortcodes = (content) => {
|
|
|
8073
8073
|
try {
|
|
8074
8074
|
const urlObj = new URL(url);
|
|
8075
8075
|
const hostname = urlObj.hostname.toLowerCase();
|
|
8076
|
-
const hostIs = (domain) =>
|
|
8076
|
+
const hostIs = (domain) => _chunkSTYH4ISWcjs.hostMatches.call(void 0, hostname, domain);
|
|
8077
8077
|
const isYouTubeVideo = hostIs("youtube.com") && urlObj.searchParams.has("v") || hostIs("youtu.be");
|
|
8078
8078
|
if (isYouTubeVideo || hostIs("reddit.com") || hostIs("twitter.com") || hostIs("x.com") || hostIs("figma.com")) {
|
|
8079
8079
|
return match;
|
|
@@ -8150,13 +8150,13 @@ var RichMarkdownInner = ({
|
|
|
8150
8150
|
},
|
|
8151
8151
|
[resolveLinkEndpointUrl, resolveSource]
|
|
8152
8152
|
);
|
|
8153
|
-
const textSizes = _react.useMemo.call(void 0, () =>
|
|
8153
|
+
const textSizes = _react.useMemo.call(void 0, () => _chunkWMXNSSJZcjs.resolveTextSizeConfig.call(void 0, "article"), []);
|
|
8154
8154
|
const componentOverrides = _react.useMemo.call(void 0,
|
|
8155
8155
|
() => buildRichEmbedOverrides({ ogApiBaseUrl, ogEndpointPath, textSizes }),
|
|
8156
8156
|
[ogApiBaseUrl, ogEndpointPath, textSizes]
|
|
8157
8157
|
);
|
|
8158
8158
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8159
|
-
|
|
8159
|
+
_chunkWMXNSSJZcjs.MarkdownEngine,
|
|
8160
8160
|
{
|
|
8161
8161
|
content,
|
|
8162
8162
|
className,
|
|
@@ -8180,7 +8180,7 @@ var RichMarkdownRendererImpl = ({
|
|
|
8180
8180
|
className = "",
|
|
8181
8181
|
sectionIds,
|
|
8182
8182
|
onInternalLinkClick,
|
|
8183
|
-
brokenLinks =
|
|
8183
|
+
brokenLinks = _chunkWMXNSSJZcjs.NO_BROKEN_LINKS,
|
|
8184
8184
|
currentPath,
|
|
8185
8185
|
resolveSource = "openframe-docs",
|
|
8186
8186
|
resolveLinkEndpointUrl = "/api/docs/resolve-link",
|
|
@@ -9306,7 +9306,7 @@ function FilterModal({
|
|
|
9306
9306
|
const dateDefaultSort = _nullishCoalesce(_optionalChain([dateFilter, 'optionalAccess', _165 => _165.defaultSort]), () => ( "desc"));
|
|
9307
9307
|
const [draftDateSort, setDraftDateSort] = _react.useState.call(void 0, _nullishCoalesce(_optionalChain([dateFilter, 'optionalAccess', _166 => _166.sort]), () => ( dateDefaultSort)));
|
|
9308
9308
|
const [draftDateRange, setDraftDateRange] = _react.useState.call(void 0, _optionalChain([dateFilter, 'optionalAccess', _167 => _167.range]));
|
|
9309
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateFade } =
|
|
9309
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunkGMIXTXAOcjs.useScrollFade.call(void 0, );
|
|
9310
9310
|
const seedKey = `${JSON.stringify(currentFilters)}|${JSON.stringify(_nullishCoalesce(selectedTags, () => ( [])))}`;
|
|
9311
9311
|
const seedSourceRef = _react.useRef.call(void 0, { currentFilters, selectedTags, dateFilter, dateDefaultSort });
|
|
9312
9312
|
_react.useEffect.call(void 0, () => {
|
|
@@ -9352,15 +9352,15 @@ function FilterModal({
|
|
|
9352
9352
|
const hasTagFilter = !!tagFilterKeys && tagFilterKeys.length > 0 && !!onTagsChange;
|
|
9353
9353
|
const isEmpty = !isLoading && !hasSort && !hasFilterGroups && !hasTagFilter && !dateFilter;
|
|
9354
9354
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9355
|
-
|
|
9355
|
+
_chunkGMIXTXAOcjs.Modal,
|
|
9356
9356
|
{
|
|
9357
9357
|
isOpen,
|
|
9358
9358
|
onClose,
|
|
9359
9359
|
className: _chunkMGEUZRNQcjs.cn.call(void 0, "max-h-[90vh] max-w-none md:max-w-[min(42rem,calc(100vw-2rem))]", className),
|
|
9360
9360
|
children: [
|
|
9361
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9361
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGMIXTXAOcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGMIXTXAOcjs.ModalTitle, { children: title }) }),
|
|
9362
9362
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9363
|
-
|
|
9363
|
+
_chunkGMIXTXAOcjs.ModalContent,
|
|
9364
9364
|
{
|
|
9365
9365
|
className: _chunkMGEUZRNQcjs.cn.call(void 0,
|
|
9366
9366
|
"flex min-h-0 flex-1 flex-col",
|
|
@@ -9456,12 +9456,12 @@ function FilterModal({
|
|
|
9456
9456
|
)
|
|
9457
9457
|
}
|
|
9458
9458
|
),
|
|
9459
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9460
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9459
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGMIXTXAOcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop }),
|
|
9460
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGMIXTXAOcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom })
|
|
9461
9461
|
] })
|
|
9462
9462
|
}
|
|
9463
9463
|
),
|
|
9464
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9464
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGMIXTXAOcjs.ModalFooter, { children: [
|
|
9465
9465
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLS6DZENcjs.Button, { variant: "outline", className: "h-11 flex-1", onClick: handleReset, children: resetButtonText }),
|
|
9466
9466
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLS6DZENcjs.Button, { variant: "accent", className: "h-11 flex-1", onClick: handleApply, children: applyButtonText })
|
|
9467
9467
|
] })
|
|
@@ -9525,7 +9525,7 @@ function renderAdvancedPageContainer({
|
|
|
9525
9525
|
contentClassName,
|
|
9526
9526
|
showHeader = true
|
|
9527
9527
|
}, inScope = false) {
|
|
9528
|
-
const titleNode = title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9528
|
+
const titleNode = title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.PageTitle, { className: PAGE_CONTAINER_TITLE_CLASS, children: _chunk5XAWVXNIcjs.accentSentenceMarks.call(void 0, title) }) : inScope && title === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageContainerTitleSkeleton, {}) : null;
|
|
9529
9529
|
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;
|
|
9530
9530
|
const getActionsVariant = () => {
|
|
9531
9531
|
if (actionsVariant) return actionsVariant;
|
|
@@ -9534,7 +9534,7 @@ function renderAdvancedPageContainer({
|
|
|
9534
9534
|
};
|
|
9535
9535
|
const renderActions = () => {
|
|
9536
9536
|
if (!actions || actions.length === 0) return null;
|
|
9537
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9537
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.PageActions, { variant: getActionsVariant(), actions, menuActions });
|
|
9538
9538
|
};
|
|
9539
9539
|
const needsBottomPadding = actions && actions.length > 0 && getActionsVariant() === "primary-buttons";
|
|
9540
9540
|
const paddingClasses = {
|
|
@@ -9557,7 +9557,7 @@ function renderAdvancedPageContainer({
|
|
|
9557
9557
|
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: [
|
|
9558
9558
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
9559
9559
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9560
|
-
|
|
9560
|
+
_chunk4LQKUZQLcjs.BackButton,
|
|
9561
9561
|
{
|
|
9562
9562
|
onClick: backButton.onClick,
|
|
9563
9563
|
label: backButton.label,
|
|
@@ -9577,7 +9577,7 @@ function renderAdvancedPageContainer({
|
|
|
9577
9577
|
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: [
|
|
9578
9578
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
9579
9579
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9580
|
-
|
|
9580
|
+
_chunk4LQKUZQLcjs.BackButton,
|
|
9581
9581
|
{
|
|
9582
9582
|
onClick: backButton.onClick,
|
|
9583
9583
|
label: backButton.label,
|
|
@@ -9597,7 +9597,7 @@ function renderAdvancedPageContainer({
|
|
|
9597
9597
|
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: [
|
|
9598
9598
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
9599
9599
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9600
|
-
|
|
9600
|
+
_chunk4LQKUZQLcjs.BackButton,
|
|
9601
9601
|
{
|
|
9602
9602
|
onClick: backButton.onClick,
|
|
9603
9603
|
label: backButton.label,
|
|
@@ -9952,7 +9952,7 @@ var BenefitCardGrid = ({ children, className = "", columns = 2 }) => {
|
|
|
9952
9952
|
|
|
9953
9953
|
|
|
9954
9954
|
function PlatformBrowseButton({ item }) {
|
|
9955
|
-
const linkProps =
|
|
9955
|
+
const linkProps = _chunkWMXNSSJZcjs.useNavLinkViaRuntime.call(void 0, { href: item.link, targetPlatform: item.targetPlatform });
|
|
9956
9956
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFLS6DZENcjs.Button, { variant: "outline", linkProps, rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-4 w-4" }), children: [
|
|
9957
9957
|
"Browse ",
|
|
9958
9958
|
item.buttonText
|
|
@@ -10460,10 +10460,10 @@ var OSTypeBadge = ({
|
|
|
10460
10460
|
if (!osType) {
|
|
10461
10461
|
return labelOnly ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkMGEUZRNQcjs.cn.call(void 0, "text-ods-text-secondary", className), children: "Unknown" }) : null;
|
|
10462
10462
|
}
|
|
10463
|
-
const normalized =
|
|
10463
|
+
const normalized = _chunkSTYH4ISWcjs.normalizeOSType.call(void 0, osType);
|
|
10464
10464
|
if (!normalized && !labelOnly) return null;
|
|
10465
|
-
const label =
|
|
10466
|
-
const IconComponent =
|
|
10465
|
+
const label = _chunkSTYH4ISWcjs.getOSLabel.call(void 0, osType);
|
|
10466
|
+
const IconComponent = _chunkSTYH4ISWcjs.getOSIcon.call(void 0, osType);
|
|
10467
10467
|
if (iconOnly && IconComponent) {
|
|
10468
10468
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: _chunkMGEUZRNQcjs.cn.call(void 0, iconSize, "text-ods-text-secondary", className) });
|
|
10469
10469
|
}
|
|
@@ -10510,8 +10510,8 @@ function DeviceCard({
|
|
|
10510
10510
|
const loading = _chunkMGEUZRNQcjs.useLoadingScope.call(void 0, ) || !!loadingProp;
|
|
10511
10511
|
const formatLastSeen = (lastSeen) => {
|
|
10512
10512
|
if (!lastSeen) return null;
|
|
10513
|
-
const date =
|
|
10514
|
-
return date === "\u2014" ? null : `${date} ${
|
|
10513
|
+
const date = _chunkGMIXTXAOcjs.formatDate.call(void 0, lastSeen);
|
|
10514
|
+
return date === "\u2014" ? null : `${date} ${_chunkGMIXTXAOcjs.formatTime.call(void 0, lastSeen)}`;
|
|
10515
10515
|
};
|
|
10516
10516
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10517
10517
|
"div",
|
|
@@ -10759,7 +10759,7 @@ function ComplianceLogo({
|
|
|
10759
10759
|
fallback = null,
|
|
10760
10760
|
className
|
|
10761
10761
|
}) {
|
|
10762
|
-
const standard =
|
|
10762
|
+
const standard = _chunkSTYH4ISWcjs.complianceStandardForName.call(void 0, ...names);
|
|
10763
10763
|
if (!standard) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: fallback });
|
|
10764
10764
|
const Official = standard.logo ? COMPLIANCE_LOGOS[standard.logo] : null;
|
|
10765
10765
|
return Official ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11497,7 +11497,7 @@ function OrganizationCardSkeleton({
|
|
|
11497
11497
|
..._chunkMGEUZRNQcjs.loadingItemProps.call(void 0, props),
|
|
11498
11498
|
children: [
|
|
11499
11499
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_HEADER_CLASS, children: [
|
|
11500
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11500
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.EntityImage, { src: null }),
|
|
11501
11501
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_TEXT_CLASS, children: [
|
|
11502
11502
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNNNRN4OFcjs.TextLineSkeleton, { type: "h3", className: "w-3/4" }),
|
|
11503
11503
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNNNRN4OFcjs.TextLineSkeleton, { type: "h6", className: "w-1/2" })
|
|
@@ -11569,7 +11569,7 @@ function OrganizationCard({
|
|
|
11569
11569
|
}
|
|
11570
11570
|
),
|
|
11571
11571
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_HEADER_CLASS, children: [
|
|
11572
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11572
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.EntityImage, { src: fetchedImageUrl || organization.imageUrl, alt: organization.name }),
|
|
11573
11573
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_TEXT_CLASS, children: [
|
|
11574
11574
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "truncate text-ods-text-primary transition-colors text-h3", title: organization.name, children: organization.name }),
|
|
11575
11575
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11636,8 +11636,8 @@ function ServiceCard({
|
|
|
11636
11636
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-4", children: [
|
|
11637
11637
|
/* @__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 }),
|
|
11638
11638
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0", children: [
|
|
11639
|
-
loading && !title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNNNRN4OFcjs.TextLineSkeleton, { type: "h3", className: "w-40 max-w-full" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11640
|
-
loading && subtitle === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNNNRN4OFcjs.TextLineSkeleton, { type: "h6", className: "w-56 max-w-full" }) : subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11639
|
+
loading && !title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNNNRN4OFcjs.TextLineSkeleton, { type: "h3", className: "w-40 max-w-full" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { variant: "h3", children: title }),
|
|
11640
|
+
loading && subtitle === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNNNRN4OFcjs.TextLineSkeleton, { type: "h6", className: "w-56 max-w-full" }) : subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { variant: "h6", tone: "secondary", children: subtitle })
|
|
11641
11641
|
] })
|
|
11642
11642
|
] }),
|
|
11643
11643
|
tag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZJS45HQZcjs.Tag, { label: tag.label, variant: "outline", className: "shrink-0 self-start", loading })
|
|
@@ -11776,14 +11776,14 @@ function PersonCell({
|
|
|
11776
11776
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZJS45HQZcjs.SquareAvatar, { size: scale.avatar, src: _nullishCoalesce(avatarUrl, () => ( void 0)), alt: displayName, fallback: displayName }),
|
|
11777
11777
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
11778
11778
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11779
|
-
|
|
11779
|
+
_chunk4LQKUZQLcjs.TruncateText,
|
|
11780
11780
|
{
|
|
11781
11781
|
variant: scale.primary,
|
|
11782
11782
|
className: onClick ? "text-ods-accent group-hover/person-cell:underline" : void 0,
|
|
11783
11783
|
children: displayName
|
|
11784
11784
|
}
|
|
11785
11785
|
),
|
|
11786
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11786
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { variant: "h6", tone: "secondary", children: secondary === void 0 ? "\xA0" : secondary || "\xB7" })
|
|
11787
11787
|
] })
|
|
11788
11788
|
] });
|
|
11789
11789
|
if (!onClick) return row;
|
|
@@ -12680,7 +12680,7 @@ function DataTableRowImpl({
|
|
|
12680
12680
|
const containerRef = _react.useRef.call(void 0, null);
|
|
12681
12681
|
const handleClick = _react.useCallback.call(void 0,
|
|
12682
12682
|
(e) => {
|
|
12683
|
-
if (!
|
|
12683
|
+
if (!_chunkSTYH4ISWcjs.isOwnClick.call(void 0, e.target, containerRef.current)) {
|
|
12684
12684
|
if (isLinkMode) e.preventDefault();
|
|
12685
12685
|
return;
|
|
12686
12686
|
}
|
|
@@ -12813,7 +12813,7 @@ function DataTableBody({
|
|
|
12813
12813
|
const skeletonRowClassName = typeof rowClassName === "string" ? rowClassName : void 0;
|
|
12814
12814
|
if (loading && loadingCells && hasRows) {
|
|
12815
12815
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12816
|
-
|
|
12816
|
+
_chunkWMXNSSJZcjs.LoadingFallback,
|
|
12817
12817
|
{
|
|
12818
12818
|
label: "Loading results",
|
|
12819
12819
|
status: loadingRegion && !inScope,
|
|
@@ -13161,7 +13161,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13161
13161
|
// child of the cell.
|
|
13162
13162
|
_optionalChain([meta, 'optionalAccess', _239 => _239.hint]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13163
13163
|
filterTrigger,
|
|
13164
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13164
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSTYH4ISWcjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
13165
13165
|
] }) : filterTrigger
|
|
13166
13166
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13167
13167
|
"div",
|
|
@@ -13186,7 +13186,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13186
13186
|
// centred on the row.
|
|
13187
13187
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13188
13188
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
13189
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13189
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSTYH4ISWcjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
13190
13190
|
] })
|
|
13191
13191
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
13192
13192
|
canSort && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortIcon, { sorted: sortDir })
|
|
@@ -13425,7 +13425,7 @@ function PhoneInput({
|
|
|
13425
13425
|
placeholder = "Phone Number (optional)",
|
|
13426
13426
|
onKeyDown
|
|
13427
13427
|
}) {
|
|
13428
|
-
const { priority, others } = _react.useMemo.call(void 0, () =>
|
|
13428
|
+
const { priority, others } = _react.useMemo.call(void 0, () => _chunkSTYH4ISWcjs.getCountryPhoneData.call(void 0, ), []);
|
|
13429
13429
|
const selectedCountry = _react.useMemo.call(void 0,
|
|
13430
13430
|
() => [...priority, ...others].find((c) => c.code === countryCode),
|
|
13431
13431
|
[countryCode, priority, others]
|
|
@@ -13440,7 +13440,7 @@ function PhoneInput({
|
|
|
13440
13440
|
_optionalChain([onValidationChange, 'optionalCall', _256 => _256(false)]);
|
|
13441
13441
|
return;
|
|
13442
13442
|
}
|
|
13443
|
-
const invalid = !
|
|
13443
|
+
const invalid = !_chunkSTYH4ISWcjs.validatePhoneNumber.call(void 0, phone, countryCode);
|
|
13444
13444
|
setIsInvalid(invalid);
|
|
13445
13445
|
_optionalChain([onValidationChange, 'optionalCall', _257 => _257(invalid)]);
|
|
13446
13446
|
},
|
|
@@ -13460,7 +13460,7 @@ function PhoneInput({
|
|
|
13460
13460
|
}, []);
|
|
13461
13461
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 gap-2", children: [
|
|
13462
13462
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13463
|
-
|
|
13463
|
+
_chunk4LQKUZQLcjs.Select,
|
|
13464
13464
|
{
|
|
13465
13465
|
value: countryCode,
|
|
13466
13466
|
onValueChange: (val) => {
|
|
@@ -13471,14 +13471,14 @@ function PhoneInput({
|
|
|
13471
13471
|
},
|
|
13472
13472
|
disabled,
|
|
13473
13473
|
children: [
|
|
13474
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13474
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectTrigger, { className: "w-[130px] shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectValue, { children: selectedCountry && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-1.5", children: [
|
|
13475
13475
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: selectedCountry.flag }),
|
|
13476
13476
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: selectedCountry.dialCode })
|
|
13477
13477
|
] }) }) }),
|
|
13478
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13479
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13480
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13481
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13478
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4LQKUZQLcjs.SelectContent, { className: "max-h-[300px] !w-[280px]", children: [
|
|
13479
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectGroup, { children: priority.map((country) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CountryOption, { country }, country.code)) }),
|
|
13480
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectSeparator, {}),
|
|
13481
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectGroup, { children: others.map((country) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CountryOption, { country }, country.code)) })
|
|
13482
13482
|
] })
|
|
13483
13483
|
]
|
|
13484
13484
|
}
|
|
@@ -13510,7 +13510,7 @@ function PhoneInput({
|
|
|
13510
13510
|
] });
|
|
13511
13511
|
}
|
|
13512
13512
|
function CountryOption({ country }) {
|
|
13513
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13513
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: country.code, textValue: country.name, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-2", children: [
|
|
13514
13514
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0", children: country.flag }),
|
|
13515
13515
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary", children: country.dialCode }),
|
|
13516
13516
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-block max-w-[140px] overflow-hidden text-ellipsis whitespace-nowrap", children: country.name })
|
|
@@ -13891,7 +13891,7 @@ function SearchInput({
|
|
|
13891
13891
|
)
|
|
13892
13892
|
] }),
|
|
13893
13893
|
showHiddenTags && hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13894
|
-
|
|
13894
|
+
_chunk4LQKUZQLcjs.HiddenTagsPopup,
|
|
13895
13895
|
{
|
|
13896
13896
|
ref: hiddenTagsPopupRef,
|
|
13897
13897
|
items: hiddenChips.map((chip) => ({ label: chip.label, value: chip.id })),
|
|
@@ -14183,7 +14183,7 @@ function TagSearchInput({
|
|
|
14183
14183
|
}
|
|
14184
14184
|
),
|
|
14185
14185
|
showHiddenTags && hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14186
|
-
|
|
14186
|
+
_chunk4LQKUZQLcjs.HiddenTagsPopup,
|
|
14187
14187
|
{
|
|
14188
14188
|
ref: hiddenTagsPopupRef,
|
|
14189
14189
|
items: hiddenTags,
|
|
@@ -14273,8 +14273,8 @@ function MarkdownLinkDialog({ isOpen, initial, editing, onSubmit, onRemove, onCl
|
|
|
14273
14273
|
if (!trimmedUrl) return;
|
|
14274
14274
|
onSubmit({ text: text.trim(), url: trimmedUrl, rel });
|
|
14275
14275
|
};
|
|
14276
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14277
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14276
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGMIXTXAOcjs.Modal, { isOpen, onClose, className: "text-left md:max-w-[560px]", children: [
|
|
14277
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGMIXTXAOcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGMIXTXAOcjs.ModalTitle, { children: editing ? "Edit link" : "Add link" }) }),
|
|
14278
14278
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14279
14279
|
"form",
|
|
14280
14280
|
{
|
|
@@ -14299,7 +14299,7 @@ function MarkdownLinkDialog({ isOpen, initial, editing, onSubmit, onRemove, onCl
|
|
|
14299
14299
|
),
|
|
14300
14300
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xsf)]", children: [
|
|
14301
14301
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14302
|
-
|
|
14302
|
+
_chunkWMXNSSJZcjs.TabSelector,
|
|
14303
14303
|
{
|
|
14304
14304
|
label: "Search engines",
|
|
14305
14305
|
value: choice,
|
|
@@ -14316,7 +14316,7 @@ function MarkdownLinkDialog({ isOpen, initial, editing, onSubmit, onRemove, onCl
|
|
|
14316
14316
|
]
|
|
14317
14317
|
}
|
|
14318
14318
|
),
|
|
14319
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14319
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGMIXTXAOcjs.ModalFooter, { children: [
|
|
14320
14320
|
editing ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLS6DZENcjs.Button, { type: "button", variant: "outline", onClick: onRemove, className: "flex-1", children: "Remove link" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLS6DZENcjs.Button, { type: "button", variant: "outline", onClick: onClose, className: "flex-1", children: "Cancel" }),
|
|
14321
14321
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLS6DZENcjs.Button, { type: "submit", form: formId, variant: "accent", disabled: !trimmedUrl, className: "flex-1", children: editing ? "Save" : "Add link" })
|
|
14322
14322
|
] })
|
|
@@ -14356,7 +14356,7 @@ function useMarkdownLinkCommand() {
|
|
|
14356
14356
|
buttonProps: { "aria-label": "Add or edit a link (ctrl + l)", title: "Add or edit a link (ctrl + l)" },
|
|
14357
14357
|
icon: command.icon,
|
|
14358
14358
|
execute: (state, api) => {
|
|
14359
|
-
const existing =
|
|
14359
|
+
const existing = _chunkWMXNSSJZcjs.findMarkdownLinkAt.call(void 0, state.text, state.selection.start, state.selection.end);
|
|
14360
14360
|
setPending(
|
|
14361
14361
|
existing ? {
|
|
14362
14362
|
api,
|
|
@@ -14387,7 +14387,7 @@ function useMarkdownLinkCommand() {
|
|
|
14387
14387
|
initial: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _314 => _314.initial]), () => ( EMPTY_LINK)),
|
|
14388
14388
|
editing: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _315 => _315.editing]), () => ( false)),
|
|
14389
14389
|
onSubmit: (link) => {
|
|
14390
|
-
if (pending) write(pending,
|
|
14390
|
+
if (pending) write(pending, _chunkWMXNSSJZcjs.formatMarkdownLink.call(void 0, link));
|
|
14391
14391
|
},
|
|
14392
14392
|
onRemove: () => {
|
|
14393
14393
|
if (pending) write(pending, pending.initial.text);
|
|
@@ -15739,7 +15739,7 @@ var TEST_RESULTS_SKELETON_COLUMNS = 6;
|
|
|
15739
15739
|
function TestResultsSkeleton({
|
|
15740
15740
|
region = true
|
|
15741
15741
|
} = {}) {
|
|
15742
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkA3UZFFR3cjs.LoadingRegion, { label: "Loading the test results", announce: region, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15742
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkA3UZFFR3cjs.LoadingRegion, { label: "Loading the test results", announce: region, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGMIXTXAOcjs.ScrollShadow, { axis: "horizontal", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-max min-w-full flex-col", children: [
|
|
15743
15743
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkMGEUZRNQcjs.cn.call(void 0, "flex", ROW_SHELL_CLASSES), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMGEUZRNQcjs.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, _chunkNNNRN4OFcjs.TextLineSkeleton, { type: "h5", className: "w-3/4" }) }) }) }),
|
|
15744
15744
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DATA_TABLE_ROW_FRAME_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkMGEUZRNQcjs.cn.call(void 0, "flex", ROW_SHELL_CLASSES, ROW_HEIGHT_DESKTOP), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMGEUZRNQcjs.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, _chunkNNNRN4OFcjs.TextLineSkeleton, { type: "h4", className: "w-3/4" }) }) }) }) })
|
|
15745
15745
|
] }) }) });
|
|
@@ -15775,7 +15775,7 @@ function TestResultsTable({ rows, loading: loadingProp }) {
|
|
|
15775
15775
|
if (loading) {
|
|
15776
15776
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TestResultsSkeleton, {});
|
|
15777
15777
|
}
|
|
15778
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15778
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGMIXTXAOcjs.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: [
|
|
15779
15779
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTable.Header, { className: "flex flex-col" }),
|
|
15780
15780
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTable.Body, { loading: false })
|
|
15781
15781
|
] }) }) });
|
|
@@ -15884,7 +15884,7 @@ function useTestRunState(campaign) {
|
|
|
15884
15884
|
const stopReason = _nullishCoalesce(campaign.stopReason, () => ( "completed"));
|
|
15885
15885
|
const status = isActive ? "running" : hasRun && isFinished ? stopReason === "completed" ? firstError ? "error" : "success" : stopReason : "idle";
|
|
15886
15886
|
const showTiming = hasRun && campaign.startedAt !== null && (campaign.isRunning || isFinished);
|
|
15887
|
-
const startedLabel = showTiming && campaign.startedAt ?
|
|
15887
|
+
const startedLabel = showTiming && campaign.startedAt ? _chunkGMIXTXAOcjs.formatTime.call(void 0, campaign.startedAt) : "00:00 PM";
|
|
15888
15888
|
const durationLabel = showTiming ? formatTestRunDuration(durationMs) : "00:00:00";
|
|
15889
15889
|
const displayRows = _react.useMemo.call(void 0,
|
|
15890
15890
|
() => campaign.results.map(
|
|
@@ -16266,7 +16266,7 @@ function TicketInfoSection({
|
|
|
16266
16266
|
expanded && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
16267
16267
|
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" }) }),
|
|
16268
16268
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-4 border-b border-ods-border bg-ods-bg p-4", children: [
|
|
16269
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16269
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWMXNSSJZcjs.SimpleMarkdownRenderer, { content: description }),
|
|
16270
16270
|
attachments && attachments.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Attachments", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketAttachmentsList, { attachments }) }),
|
|
16271
16271
|
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, _chunkZJS45HQZcjs.Tag, { label: tag, variant: "outline", className: "max-w-full" }, tag)) }) }),
|
|
16272
16272
|
(notes || onAddNote) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Notes", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -16292,7 +16292,7 @@ function renderTicketStatusOption(option, isSelected) {
|
|
|
16292
16292
|
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: [
|
|
16293
16293
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
16294
16294
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBE4OUWTAcjs.ColorSwatch, { color }),
|
|
16295
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16295
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { className: "text-inherit", children: label }) })
|
|
16296
16296
|
] }),
|
|
16297
16297
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
16298
16298
|
] });
|
|
@@ -16302,7 +16302,7 @@ function renderTicketAssigneeOption(option, isSelected) {
|
|
|
16302
16302
|
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: [
|
|
16303
16303
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
16304
16304
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZJS45HQZcjs.SquareAvatar, { src: imageUrl, alt: label, fallback: label, size: "sm", variant: "round" }),
|
|
16305
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16305
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { className: "text-inherit", children: label }) })
|
|
16306
16306
|
] }),
|
|
16307
16307
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
16308
16308
|
] });
|
|
@@ -16336,9 +16336,9 @@ function TakeOverTicketModal({
|
|
|
16336
16336
|
if (!selectedStatusId || !assigneeId || isPending) return;
|
|
16337
16337
|
onConfirm({ statusId: selectedStatusId, assigneeId });
|
|
16338
16338
|
};
|
|
16339
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16339
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGMIXTXAOcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
16340
16340
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
16341
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16341
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGMIXTXAOcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGMIXTXAOcjs.ModalTitle, { children: "Take Over Ticket" }) }),
|
|
16342
16342
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
16343
16343
|
"The ticket ",
|
|
16344
16344
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-accent", children: ticketRef }),
|
|
@@ -16346,7 +16346,7 @@ function TakeOverTicketModal({
|
|
|
16346
16346
|
] }),
|
|
16347
16347
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)] md:flex-row", children: [
|
|
16348
16348
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16349
|
-
|
|
16349
|
+
_chunk4LQKUZQLcjs.Autocomplete,
|
|
16350
16350
|
{
|
|
16351
16351
|
label: "Status",
|
|
16352
16352
|
options: statusOptions,
|
|
@@ -16358,7 +16358,7 @@ function TakeOverTicketModal({
|
|
|
16358
16358
|
}
|
|
16359
16359
|
) }),
|
|
16360
16360
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16361
|
-
|
|
16361
|
+
_chunk4LQKUZQLcjs.Autocomplete,
|
|
16362
16362
|
{
|
|
16363
16363
|
label: "Assigned",
|
|
16364
16364
|
options: assigneeOptions,
|
|
@@ -16380,7 +16380,7 @@ function TakeOverTicketModal({
|
|
|
16380
16380
|
}
|
|
16381
16381
|
) })
|
|
16382
16382
|
] }),
|
|
16383
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16383
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGMIXTXAOcjs.ModalFooter, { children: [
|
|
16384
16384
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLS6DZENcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
16385
16385
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
16386
16386
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -16439,9 +16439,9 @@ function ReopenTicketModal({
|
|
|
16439
16439
|
reason: trimmedReason ? trimmedReason.slice(0, REASON_MAX_LENGTH) : null
|
|
16440
16440
|
});
|
|
16441
16441
|
};
|
|
16442
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16442
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGMIXTXAOcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
16443
16443
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
16444
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16444
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGMIXTXAOcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGMIXTXAOcjs.ModalTitle, { children: "Reopen Ticket" }) }),
|
|
16445
16445
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
16446
16446
|
"The ticket ",
|
|
16447
16447
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-accent", children: ticketRef }),
|
|
@@ -16449,7 +16449,7 @@ function ReopenTicketModal({
|
|
|
16449
16449
|
] }),
|
|
16450
16450
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)] md:flex-row", children: [
|
|
16451
16451
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16452
|
-
|
|
16452
|
+
_chunk4LQKUZQLcjs.Autocomplete,
|
|
16453
16453
|
{
|
|
16454
16454
|
label: "Status",
|
|
16455
16455
|
options: statusOptions,
|
|
@@ -16461,7 +16461,7 @@ function ReopenTicketModal({
|
|
|
16461
16461
|
}
|
|
16462
16462
|
) }),
|
|
16463
16463
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16464
|
-
|
|
16464
|
+
_chunk4LQKUZQLcjs.Autocomplete,
|
|
16465
16465
|
{
|
|
16466
16466
|
label: "Assigned",
|
|
16467
16467
|
options: assigneeOptions,
|
|
@@ -16494,7 +16494,7 @@ function ReopenTicketModal({
|
|
|
16494
16494
|
disabled: isPending
|
|
16495
16495
|
}
|
|
16496
16496
|
) }),
|
|
16497
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16497
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGMIXTXAOcjs.ModalFooter, { children: [
|
|
16498
16498
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLS6DZENcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
16499
16499
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
16500
16500
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -16543,9 +16543,9 @@ function ReopenTicketRequestModal({
|
|
|
16543
16543
|
...showHandoffOption ? { handoffToTechnician: handoff } : {}
|
|
16544
16544
|
});
|
|
16545
16545
|
};
|
|
16546
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16546
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGMIXTXAOcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
16547
16547
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
16548
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16548
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGMIXTXAOcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGMIXTXAOcjs.ModalTitle, { children: "Reopen Ticket" }) }),
|
|
16549
16549
|
/* @__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." }),
|
|
16550
16550
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16551
16551
|
Textarea,
|
|
@@ -16569,7 +16569,7 @@ function ReopenTicketRequestModal({
|
|
|
16569
16569
|
disabled: isPending
|
|
16570
16570
|
}
|
|
16571
16571
|
),
|
|
16572
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16572
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGMIXTXAOcjs.ModalFooter, { children: [
|
|
16573
16573
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLS6DZENcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1", children: "Cancel" }),
|
|
16574
16574
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLS6DZENcjs.Button, { type: "button", variant: "accent", onClick: handleConfirm, loading: isPending, className: "flex-1", children: "Reopen Ticket" })
|
|
16575
16575
|
] })
|
|
@@ -16751,7 +16751,7 @@ function PhotoWall({
|
|
|
16751
16751
|
gap: COLUMN_GAP_PX
|
|
16752
16752
|
};
|
|
16753
16753
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: rootRef, "aria-hidden": "true", className: _chunkMGEUZRNQcjs.cn.call(void 0, "grid overflow-hidden", className), style: gridStyle, children: columnsToDraw ? columnsToDraw.map((column, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16754
|
-
|
|
16754
|
+
_chunkWMXNSSJZcjs.MarqueeWall,
|
|
16755
16755
|
{
|
|
16756
16756
|
axis: "y",
|
|
16757
16757
|
reverse: index % 2 === 1,
|
|
@@ -16981,7 +16981,7 @@ function ProductScreenFrame({
|
|
|
16981
16981
|
className: _chunkMGEUZRNQcjs.cn.call(void 0, "ods-content-area", pending && "product-screen-pending"),
|
|
16982
16982
|
style: screenStyle,
|
|
16983
16983
|
children: [
|
|
16984
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ods-content-scope", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMGEUZRNQcjs.LoadingScope, { bare: true, active: pending, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16984
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ods-content-scope", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMGEUZRNQcjs.LoadingScope, { bare: true, active: pending, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.PagePicture, { children }) }) }),
|
|
16985
16985
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
|
|
16986
16986
|
]
|
|
16987
16987
|
}
|
|
@@ -17119,7 +17119,7 @@ function PhoneFrame({ dateLabel, timeLabel, children, className }) {
|
|
|
17119
17119
|
"div",
|
|
17120
17120
|
{
|
|
17121
17121
|
className: _chunkMGEUZRNQcjs.cn.call(void 0, "h-[617px] w-[299px] shrink-0 rounded-[48px] border border-ods-border bg-black p-2.5", className),
|
|
17122
|
-
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkMGEUZRNQcjs.cn.call(void 0, "relative flex h-full flex-col overflow-hidden rounded-[38px]",
|
|
17122
|
+
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkMGEUZRNQcjs.cn.call(void 0, "relative flex h-full flex-col overflow-hidden rounded-[38px]", _chunk4LQKUZQLcjs.DEVICE_WALLPAPER_CLASS), children: [
|
|
17123
17123
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17124
17124
|
"div",
|
|
17125
17125
|
{
|
|
@@ -17311,7 +17311,7 @@ var TRIAL_TERM_ICONS = {
|
|
|
17311
17311
|
};
|
|
17312
17312
|
var DEFAULT_TRIAL_TERMS = ["cancel", "length", "noContract"];
|
|
17313
17313
|
function trialBenefits(trialDays, terms = DEFAULT_TRIAL_TERMS) {
|
|
17314
|
-
const labels =
|
|
17314
|
+
const labels = _chunkSTYH4ISWcjs.trialLabels.call(void 0, trialDays);
|
|
17315
17315
|
return terms.flatMap((term) => {
|
|
17316
17316
|
const label = labels[term];
|
|
17317
17317
|
return label ? [{ icon: TRIAL_TERM_ICONS[term], label }] : [];
|
|
@@ -17418,7 +17418,7 @@ function AnalyzingState({ label, className }) {
|
|
|
17418
17418
|
}) }),
|
|
17419
17419
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1.5 text-center text-ods-text-secondary text-h4", children: [
|
|
17420
17420
|
label,
|
|
17421
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17421
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGMIXTXAOcjs.ChatTypingIndicator, { "aria-hidden": true, size: "sm", dotClassName: "bg-ods-text-secondary motion-reduce:animate-none" })
|
|
17422
17422
|
] })
|
|
17423
17423
|
] });
|
|
17424
17424
|
}
|
|
@@ -19568,9 +19568,9 @@ function ChangelogManager({
|
|
|
19568
19568
|
] }),
|
|
19569
19569
|
tagOptions && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-1", children: [
|
|
19570
19570
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOMTH355Icjs.Label, { className: "text-ods-text-secondary", children: tagLabel }),
|
|
19571
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
19572
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19573
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19571
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4LQKUZQLcjs.Select, { value: _nullishCoalesce(entry.tag, () => ( "")), onValueChange: (value) => updateEntry(index, "tag", value), children: [
|
|
19572
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectTrigger, { className: "bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectValue, { placeholder: tagLabel }) }),
|
|
19573
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectContent, { children: tagOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
19574
19574
|
] })
|
|
19575
19575
|
] })
|
|
19576
19576
|
] })
|
|
@@ -21351,17 +21351,17 @@ function MediaGalleryManager({
|
|
|
21351
21351
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
21352
21352
|
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" }),
|
|
21353
21353
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21354
|
-
|
|
21354
|
+
_chunk4LQKUZQLcjs.Select,
|
|
21355
21355
|
{
|
|
21356
21356
|
value: item.media_type,
|
|
21357
21357
|
onValueChange: (value) => update(index, { media_type: value }),
|
|
21358
21358
|
children: [
|
|
21359
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21360
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21361
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21362
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21363
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21364
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21359
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectTrigger, { className: "h-8 bg-ods-bg text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectValue, {}) }),
|
|
21360
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4LQKUZQLcjs.SelectContent, { className: "bg-ods-card", children: [
|
|
21361
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: "image", children: "Image" }),
|
|
21362
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: "video", children: "Video" }),
|
|
21363
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: "screenshot", children: "Screenshot" }),
|
|
21364
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: "demo", children: "Demo" })
|
|
21365
21365
|
] })
|
|
21366
21366
|
]
|
|
21367
21367
|
}
|
|
@@ -21745,7 +21745,7 @@ var MODEL_TOKEN_RATES_COPY = {
|
|
|
21745
21745
|
empty: "No token rates are in effect right now."
|
|
21746
21746
|
};
|
|
21747
21747
|
function providerMark(providerType, stated, className) {
|
|
21748
|
-
const Mark = _chunkCS5SZJFVcjs.findIcon.call(void 0,
|
|
21748
|
+
const Mark = _chunkCS5SZJFVcjs.findIcon.call(void 0, _chunkSTYH4ISWcjs.aiProvider.call(void 0, providerType, { icon: stated }).icon);
|
|
21749
21749
|
return Mark ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Mark, { className }) : void 0;
|
|
21750
21750
|
}
|
|
21751
21751
|
var PAD_X = "px-[var(--spacing-system-s)]";
|
|
@@ -21763,7 +21763,7 @@ var UNIT_LINE_CLASS = _chunkMGEUZRNQcjs.cn.call(void 0,
|
|
|
21763
21763
|
var TABS_ROW_CLASS = _chunkMGEUZRNQcjs.cn.call(void 0, "shrink-0 border-b border-ods-border py-[var(--spacing-system-xs)]", PAD_X);
|
|
21764
21764
|
var NUMBER_CELL = "w-16 shrink-0 whitespace-nowrap text-right tabular-nums";
|
|
21765
21765
|
function useProviderGroup(rates) {
|
|
21766
|
-
const groups =
|
|
21766
|
+
const groups = _chunkSTYH4ISWcjs.groupTokenRatesByProvider.call(void 0, rates);
|
|
21767
21767
|
const [picked, setPicked] = _react.useState.call(void 0, null);
|
|
21768
21768
|
return { groups, group: _nullishCoalesce(groups.find((candidate) => candidate.providerType === picked), () => ( groups[0])), setPicked };
|
|
21769
21769
|
}
|
|
@@ -21774,7 +21774,7 @@ function ProviderTabs({
|
|
|
21774
21774
|
className
|
|
21775
21775
|
}) {
|
|
21776
21776
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21777
|
-
|
|
21777
|
+
_chunkWMXNSSJZcjs.TabSelector,
|
|
21778
21778
|
{
|
|
21779
21779
|
variant: "secondary",
|
|
21780
21780
|
scrollable: true,
|
|
@@ -21782,7 +21782,7 @@ function ProviderTabs({
|
|
|
21782
21782
|
onValueChange,
|
|
21783
21783
|
items: groups.map((candidate) => ({
|
|
21784
21784
|
id: candidate.providerType,
|
|
21785
|
-
label:
|
|
21785
|
+
label: _chunkSTYH4ISWcjs.tokenRateProviderLabel.call(void 0, candidate.providerType, _optionalChain([candidate, 'access', _457 => _457.rates, 'access', _458 => _458[0], 'optionalAccess', _459 => _459.providerLabel])),
|
|
21786
21786
|
icon: providerMark(candidate.providerType, _optionalChain([candidate, 'access', _460 => _460.rates, 'access', _461 => _461[0], 'optionalAccess', _462 => _462.providerIcon]), "size-full")
|
|
21787
21787
|
})),
|
|
21788
21788
|
className
|
|
@@ -21859,8 +21859,8 @@ function ModelTokenRatesTable({ rates }) {
|
|
|
21859
21859
|
] }),
|
|
21860
21860
|
/* @__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: [
|
|
21861
21861
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "rowheader", className: "min-w-0 flex-1 truncate", children: rate.displayName || rate.modelName }),
|
|
21862
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children:
|
|
21863
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children:
|
|
21862
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunkSTYH4ISWcjs.formatTokenRate.call(void 0, rate.inputTokenRate) }),
|
|
21863
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunkSTYH4ISWcjs.formatTokenRate.call(void 0, rate.outputTokenRate) })
|
|
21864
21864
|
] }, rate.modelName)) })
|
|
21865
21865
|
] }),
|
|
21866
21866
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: UNIT_LINE_CLASS, children: MODEL_TOKEN_RATES_COPY.unit })
|
|
@@ -21907,7 +21907,7 @@ function modelOption(rate) {
|
|
|
21907
21907
|
return {
|
|
21908
21908
|
label: rate.displayName || rate.modelName,
|
|
21909
21909
|
value: rate.modelName,
|
|
21910
|
-
description:
|
|
21910
|
+
description: _chunkSTYH4ISWcjs.tokenRateProviderLabel.call(void 0, rate.providerType, rate.providerLabel),
|
|
21911
21911
|
icon: providerMark(rate.providerType, rate.providerIcon, "size-full text-ods-text-secondary")
|
|
21912
21912
|
};
|
|
21913
21913
|
}
|
|
@@ -21962,8 +21962,8 @@ function ModelTokenExchange({
|
|
|
21962
21962
|
const [chosen, setChosen] = _react.useState.call(void 0, null);
|
|
21963
21963
|
const balance = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(chosen, () => ( defaultAmount)), () => ( _optionalChain([tokenPrice, 'optionalAccess', _463 => _463.tokens]))), () => ( MODEL_TOKEN_EXCHANGE_BALANCE));
|
|
21964
21964
|
const max = Math.max(amountRange.max, balance, ...presets.map((preset) => preset.tokens));
|
|
21965
|
-
const tokens =
|
|
21966
|
-
const cost =
|
|
21965
|
+
const tokens = _chunkSTYH4ISWcjs.formatTokenAmount.call(void 0, balance);
|
|
21966
|
+
const cost = _chunkSTYH4ISWcjs.tokenCost.call(void 0, balance, tokenPrice);
|
|
21967
21967
|
const balancePrice = cost === null ? null : _chunkZJS45HQZcjs.formatPrice.call(void 0, cost);
|
|
21968
21968
|
const model = rate ? rate.displayName || rate.modelName : "";
|
|
21969
21969
|
const options = models.map(modelOption);
|
|
@@ -22006,7 +22006,7 @@ function ModelTokenExchange({
|
|
|
22006
22006
|
variant: preset.tokens === balance ? "accent" : "outline",
|
|
22007
22007
|
size: "small",
|
|
22008
22008
|
onClick: () => setChosen(preset.tokens),
|
|
22009
|
-
children: copy.buy.preset(
|
|
22009
|
+
children: copy.buy.preset(_chunkSTYH4ISWcjs.formatTokenAmount.call(void 0, preset.tokens), preset.label)
|
|
22010
22010
|
},
|
|
22011
22011
|
preset.label
|
|
22012
22012
|
)) })
|
|
@@ -22023,7 +22023,7 @@ function ModelTokenExchange({
|
|
|
22023
22023
|
const stated = _nullishCoalesce(models.find((option) => option.providerType === providerType), () => ( (_optionalChain([rate, 'optionalAccess', _464 => _464.providerType]) === providerType ? rate : null)));
|
|
22024
22024
|
return {
|
|
22025
22025
|
id: providerType,
|
|
22026
|
-
name:
|
|
22026
|
+
name: _chunkSTYH4ISWcjs.tokenRateProviderLabel.call(void 0, providerType, _optionalChain([stated, 'optionalAccess', _465 => _465.providerLabel])),
|
|
22027
22027
|
icon: providerMark(providerType, _optionalChain([stated, 'optionalAccess', _466 => _466.providerIcon]), "size-8 text-ods-text-secondary")
|
|
22028
22028
|
};
|
|
22029
22029
|
}),
|
|
@@ -22035,7 +22035,7 @@ function ModelTokenExchange({
|
|
|
22035
22035
|
}
|
|
22036
22036
|
),
|
|
22037
22037
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22038
|
-
|
|
22038
|
+
_chunk4LQKUZQLcjs.Autocomplete,
|
|
22039
22039
|
{
|
|
22040
22040
|
fieldLoading: loading,
|
|
22041
22041
|
label: copy.use.model,
|
|
@@ -22062,7 +22062,7 @@ function ModelTokenExchange({
|
|
|
22062
22062
|
{
|
|
22063
22063
|
size: "plain",
|
|
22064
22064
|
loading,
|
|
22065
|
-
figure:
|
|
22065
|
+
figure: _chunkSTYH4ISWcjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _471 => _471.inputTokenRate])),
|
|
22066
22066
|
words: copy.charge.input
|
|
22067
22067
|
}
|
|
22068
22068
|
),
|
|
@@ -22071,7 +22071,7 @@ function ModelTokenExchange({
|
|
|
22071
22071
|
{
|
|
22072
22072
|
size: "plain",
|
|
22073
22073
|
loading,
|
|
22074
|
-
figure:
|
|
22074
|
+
figure: _chunkSTYH4ISWcjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _472 => _472.outputTokenRate])),
|
|
22075
22075
|
words: copy.charge.output
|
|
22076
22076
|
}
|
|
22077
22077
|
)
|
|
@@ -22083,9 +22083,9 @@ function ModelTokenExchange({
|
|
|
22083
22083
|
className: "mt-auto flex flex-col rounded-md border border-ods-accent bg-ods-bg p-[var(--spacing-system-mf)]",
|
|
22084
22084
|
children: [
|
|
22085
22085
|
/* @__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, _chunkNNNRN4OFcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-full max-w-xs" }) : copy.charge.so(_nullishCoalesce(balancePrice, () => ( copy.buy.tokens(tokens))), model) }),
|
|
22086
|
-
/* @__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, _chunkNNNRN4OFcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-40" }) :
|
|
22086
|
+
/* @__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, _chunkNNNRN4OFcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-40" }) : _chunkSTYH4ISWcjs.formatTokenAmount.call(void 0, _chunkSTYH4ISWcjs.tokensForBalance.call(void 0, balance, rate.inputTokenRate)) }),
|
|
22087
22087
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-primary text-h3", children: copy.charge.read }),
|
|
22088
|
-
/* @__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, _chunkNNNRN4OFcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-48" }) : copy.charge.orWritten(
|
|
22088
|
+
/* @__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, _chunkNNNRN4OFcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-48" }) : copy.charge.orWritten(_chunkSTYH4ISWcjs.formatTokenAmount.call(void 0, _chunkSTYH4ISWcjs.tokensForBalance.call(void 0, balance, rate.outputTokenRate))) })
|
|
22089
22089
|
]
|
|
22090
22090
|
}
|
|
22091
22091
|
)
|
|
@@ -22632,14 +22632,14 @@ var ConfidenceBadge = ({
|
|
|
22632
22632
|
size = "sm",
|
|
22633
22633
|
className
|
|
22634
22634
|
}) => {
|
|
22635
|
-
const level =
|
|
22635
|
+
const level = _chunkSTYH4ISWcjs.getConfidenceLevel.call(void 0, confidence);
|
|
22636
22636
|
if (level === "none") {
|
|
22637
22637
|
return null;
|
|
22638
22638
|
}
|
|
22639
|
-
const label =
|
|
22640
|
-
const borderClass =
|
|
22641
|
-
const textClass =
|
|
22642
|
-
const bgClass =
|
|
22639
|
+
const label = _chunkSTYH4ISWcjs.getConfidenceLabel.call(void 0, confidence);
|
|
22640
|
+
const borderClass = _chunkSTYH4ISWcjs.getConfidenceBorderClass.call(void 0, confidence);
|
|
22641
|
+
const textClass = _chunkSTYH4ISWcjs.getConfidenceTextClass.call(void 0, confidence);
|
|
22642
|
+
const bgClass = _chunkSTYH4ISWcjs.getConfidenceBgClass.call(void 0, confidence);
|
|
22643
22643
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
22644
22644
|
"span",
|
|
22645
22645
|
{
|
|
@@ -22690,9 +22690,9 @@ function SEOEditorPreview({
|
|
|
22690
22690
|
const [isUploading, setIsUploading] = _react.useState.call(void 0, false);
|
|
22691
22691
|
const [fileInputRef, setFileInputRef] = _react.useState.call(void 0, null);
|
|
22692
22692
|
const seoTitleLength = (seoTitle || "").length;
|
|
22693
|
-
const seoTitleTooLong = seoTitleLength >
|
|
22693
|
+
const seoTitleTooLong = seoTitleLength > _chunkSTYH4ISWcjs.SEO_TITLE_MAX_LENGTH;
|
|
22694
22694
|
const seoDescriptionLength = (seoDescription || "").length;
|
|
22695
|
-
const seoDescriptionTooLong = seoDescriptionLength >
|
|
22695
|
+
const seoDescriptionTooLong = seoDescriptionLength > _chunkSTYH4ISWcjs.SEO_DESCRIPTION_MAX_LENGTH;
|
|
22696
22696
|
const displayTitle = seoTitle.trim() || title || "Untitled";
|
|
22697
22697
|
const displayDescription = seoDescription.trim() || summary || "No description";
|
|
22698
22698
|
const hasOgImage = ogImageUrl.trim();
|
|
@@ -22717,10 +22717,10 @@ function SEOEditorPreview({
|
|
|
22717
22717
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
22718
22718
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
22719
22719
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22720
|
-
|
|
22720
|
+
_chunkSTYH4ISWcjs.Field,
|
|
22721
22721
|
{
|
|
22722
22722
|
label: "SEO Title",
|
|
22723
|
-
error: seoTitleTooLong ? `Too long: search engines may truncate this title (keep it under ${
|
|
22723
|
+
error: seoTitleTooLong ? `Too long: search engines may truncate this title (keep it under ${_chunkSTYH4ISWcjs.SEO_TITLE_MAX_LENGTH})` : null,
|
|
22724
22724
|
labelExtras: aiConfidenceSeoTitle !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
22725
22725
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
|
|
22726
22726
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ConfidenceBadge, { confidence: aiConfidenceSeoTitle, showLabel: true, showPercentage: true, size: "sm" })
|
|
@@ -22735,7 +22735,7 @@ function SEOEditorPreview({
|
|
|
22735
22735
|
children: [
|
|
22736
22736
|
seoTitleLength,
|
|
22737
22737
|
"/",
|
|
22738
|
-
|
|
22738
|
+
_chunkSTYH4ISWcjs.SEO_TITLE_MAX_LENGTH
|
|
22739
22739
|
]
|
|
22740
22740
|
}
|
|
22741
22741
|
),
|
|
@@ -22746,7 +22746,7 @@ function SEOEditorPreview({
|
|
|
22746
22746
|
value: seoTitle || "",
|
|
22747
22747
|
onChange: (e) => onSeoTitleChange(e.target.value),
|
|
22748
22748
|
disabled,
|
|
22749
|
-
maxLength:
|
|
22749
|
+
maxLength: _chunkSTYH4ISWcjs.SEO_TITLE_MAX_LENGTH,
|
|
22750
22750
|
invalid: seoTitleTooLong,
|
|
22751
22751
|
placeholder: "Enter SEO meta title...",
|
|
22752
22752
|
className: "border-ods-border bg-ods-bg text-ods-text-primary"
|
|
@@ -22757,7 +22757,7 @@ function SEOEditorPreview({
|
|
|
22757
22757
|
!seoTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-accent text-h6", children: "Auto-populated from title" })
|
|
22758
22758
|
] }),
|
|
22759
22759
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22760
|
-
|
|
22760
|
+
_chunkSTYH4ISWcjs.Field,
|
|
22761
22761
|
{
|
|
22762
22762
|
label: "SEO Keywords",
|
|
22763
22763
|
labelExtras: aiConfidenceSeoKeywords !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -22789,10 +22789,10 @@ function SEOEditorPreview({
|
|
|
22789
22789
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
22790
22790
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
22791
22791
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22792
|
-
|
|
22792
|
+
_chunkSTYH4ISWcjs.Field,
|
|
22793
22793
|
{
|
|
22794
22794
|
label: "SEO Description",
|
|
22795
|
-
error: seoDescriptionTooLong ? `Too long: search engines may truncate this description (keep it under ${
|
|
22795
|
+
error: seoDescriptionTooLong ? `Too long: search engines may truncate this description (keep it under ${_chunkSTYH4ISWcjs.SEO_DESCRIPTION_MAX_LENGTH})` : null,
|
|
22796
22796
|
labelExtras: aiConfidenceSeoDescription !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
22797
22797
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
|
|
22798
22798
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -22815,7 +22815,7 @@ function SEOEditorPreview({
|
|
|
22815
22815
|
children: [
|
|
22816
22816
|
seoDescriptionLength,
|
|
22817
22817
|
"/",
|
|
22818
|
-
|
|
22818
|
+
_chunkSTYH4ISWcjs.SEO_DESCRIPTION_MAX_LENGTH
|
|
22819
22819
|
]
|
|
22820
22820
|
}
|
|
22821
22821
|
),
|
|
@@ -22826,7 +22826,7 @@ function SEOEditorPreview({
|
|
|
22826
22826
|
value: seoDescription || "",
|
|
22827
22827
|
onChange: (e) => onSeoDescriptionChange(e.target.value),
|
|
22828
22828
|
disabled,
|
|
22829
|
-
maxLength:
|
|
22829
|
+
maxLength: _chunkSTYH4ISWcjs.SEO_DESCRIPTION_MAX_LENGTH,
|
|
22830
22830
|
invalid: seoDescriptionTooLong,
|
|
22831
22831
|
placeholder: "Enter SEO meta description...",
|
|
22832
22832
|
className: _chunkMGEUZRNQcjs.cn.call(void 0, "resize-none border-ods-border bg-ods-bg text-ods-text-primary", SEO_MEDIA_BOX_HEIGHT)
|
|
@@ -22979,7 +22979,7 @@ function socialIcon(platform) {
|
|
|
22979
22979
|
return _nullishCoalesce(_chunkCS5SZJFVcjs.iconOf.call(void 0, SOCIAL_ICONS[platform]), () => ( void 0));
|
|
22980
22980
|
}
|
|
22981
22981
|
function renderSocialIcon(platform) {
|
|
22982
|
-
const key = _nullishCoalesce(
|
|
22982
|
+
const key = _nullishCoalesce(_chunkSTYH4ISWcjs.normalizeSocialPlatform.call(void 0, platform), () => ( "website"));
|
|
22983
22983
|
const icon = _nullishCoalesce(socialIcon(key), () => ( socialIcon("website")));
|
|
22984
22984
|
return icon ? _react.createElement.call(void 0, icon, { className: "h-5 w-5" }) : null;
|
|
22985
22985
|
}
|
|
@@ -23070,7 +23070,7 @@ function SocialLinksManager({
|
|
|
23070
23070
|
};
|
|
23071
23071
|
const getIcon = (link, platform) => {
|
|
23072
23072
|
const iconKey = _optionalChain([platform, 'optionalAccess', _482 => _482.icon_name]) || link.platform;
|
|
23073
|
-
const key =
|
|
23073
|
+
const key = _chunkSTYH4ISWcjs.normalizeSocialPlatform.call(void 0, iconKey);
|
|
23074
23074
|
if (!key) return null;
|
|
23075
23075
|
const icon = socialIcon(key);
|
|
23076
23076
|
return icon ? _react.createElement.call(void 0, icon, { className: "h-5 w-5 text-ods-text-secondary" }) : null;
|
|
@@ -23086,9 +23086,9 @@ function SocialLinksManager({
|
|
|
23086
23086
|
children: [
|
|
23087
23087
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-8 w-8 items-center justify-center", children: Icon }),
|
|
23088
23088
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid flex-1 grid-cols-2 gap-3", children: [
|
|
23089
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23090
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23091
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23089
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4LQKUZQLcjs.Select, { value: link.platform, onValueChange: (value) => updateLink(index, "platform", value), children: [
|
|
23090
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectValue, {}) }),
|
|
23091
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectContent, { children: platforms.map((p) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: p.name, children: p.display_name }, p.name)) })
|
|
23092
23092
|
] }) }),
|
|
23093
23093
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23094
23094
|
_chunkEHQ2UGT4cjs.Input,
|
|
@@ -23106,15 +23106,15 @@ function SocialLinksManager({
|
|
|
23106
23106
|
)
|
|
23107
23107
|
] }),
|
|
23108
23108
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23109
|
-
|
|
23109
|
+
_chunk4LQKUZQLcjs.Select,
|
|
23110
23110
|
{
|
|
23111
23111
|
value: _nullishCoalesce(link.visibility, () => ( "external")),
|
|
23112
23112
|
onValueChange: (value) => updateLink(index, "visibility", value),
|
|
23113
23113
|
children: [
|
|
23114
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23115
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23116
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23117
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23114
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectTrigger, { className: "w-[120px] shrink-0", "aria-label": "Social link visibility", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectValue, {}) }),
|
|
23115
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4LQKUZQLcjs.SelectContent, { children: [
|
|
23116
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: "external", children: "Public" }),
|
|
23117
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: "internal", children: "Internal" })
|
|
23118
23118
|
] })
|
|
23119
23119
|
]
|
|
23120
23120
|
}
|
|
@@ -23538,7 +23538,7 @@ function VideoBitesDisplay({
|
|
|
23538
23538
|
filterPublished = true,
|
|
23539
23539
|
showTitle = true
|
|
23540
23540
|
}) {
|
|
23541
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23541
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWMXNSSJZcjs.VideoBitesStrip, { bites, title, filterPublished, showTitle });
|
|
23542
23542
|
}
|
|
23543
23543
|
|
|
23544
23544
|
// src/components/features/walkthrough-video.tsx
|
|
@@ -23568,7 +23568,7 @@ function WalkthroughVideo({
|
|
|
23568
23568
|
onOpenChange,
|
|
23569
23569
|
defaultOpen,
|
|
23570
23570
|
defaultOpenPaused,
|
|
23571
|
-
deepLinkParam =
|
|
23571
|
+
deepLinkParam = _chunkSTYH4ISWcjs.WALKTHROUGH_OPEN_QUERY_PARAM,
|
|
23572
23572
|
autoPlayCard = false,
|
|
23573
23573
|
label = "Play Demo Video",
|
|
23574
23574
|
placement,
|
|
@@ -23585,7 +23585,7 @@ function WalkthroughVideo({
|
|
|
23585
23585
|
const inline = placement === "inline";
|
|
23586
23586
|
const inScope = _chunkMGEUZRNQcjs.useLoadingScope.call(void 0, );
|
|
23587
23587
|
const dismissEnabled = dismissal !== false;
|
|
23588
|
-
const storageKey = dismissEnabled && dismissal.storageKey ||
|
|
23588
|
+
const storageKey = dismissEnabled && dismissal.storageKey || _chunkSTYH4ISWcjs.WALKTHROUGH_VIDEO_DISMISS_KEY;
|
|
23589
23589
|
const dismissalId = _optionalChain([video, 'optionalAccess', _488 => _488.id]) != null ? String(video.id) : "dismissed";
|
|
23590
23590
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
23591
23591
|
const [dismissed, setDismissed] = _react.useState.call(void 0, false);
|
|
@@ -23597,7 +23597,7 @@ function WalkthroughVideo({
|
|
|
23597
23597
|
let delayElapsed = false;
|
|
23598
23598
|
let interacted = inline;
|
|
23599
23599
|
const reveal = () => {
|
|
23600
|
-
if (dismissEnabled &&
|
|
23600
|
+
if (dismissEnabled && _chunkSTYH4ISWcjs.isWalkthroughDismissed.call(void 0, storageKey, dismissalId)) {
|
|
23601
23601
|
setDismissed(true);
|
|
23602
23602
|
return;
|
|
23603
23603
|
}
|
|
@@ -23634,7 +23634,7 @@ function WalkthroughVideo({
|
|
|
23634
23634
|
if (idleHandle !== null && typeof cic === "function") cic(idleHandle);
|
|
23635
23635
|
};
|
|
23636
23636
|
}, [appearDelayMs, dismissEnabled, storageKey, dismissalId, hasVideo, videoId, inline]);
|
|
23637
|
-
const hydrated =
|
|
23637
|
+
const hydrated = _chunkWMXNSSJZcjs.useIsHydrated.call(void 0, );
|
|
23638
23638
|
const previewSuppressed = _react.useMemo.call(void 0, () => {
|
|
23639
23639
|
if (!hydrated) return false;
|
|
23640
23640
|
try {
|
|
@@ -23884,7 +23884,7 @@ function WalkthroughVideo({
|
|
|
23884
23884
|
(e) => {
|
|
23885
23885
|
e.stopPropagation();
|
|
23886
23886
|
pausePreviewNow();
|
|
23887
|
-
if (dismissEnabled)
|
|
23887
|
+
if (dismissEnabled) _chunkSTYH4ISWcjs.dismissWalkthrough.call(void 0, storageKey, dismissalId);
|
|
23888
23888
|
setDismissed(true);
|
|
23889
23889
|
},
|
|
23890
23890
|
[dismissEnabled, storageKey, dismissalId, pausePreviewNow]
|
|
@@ -24059,7 +24059,7 @@ function WalkthroughVideo({
|
|
|
24059
24059
|
`card-${embedUrlKey}`
|
|
24060
24060
|
) }),
|
|
24061
24061
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24062
|
-
|
|
24062
|
+
_chunkWMXNSSJZcjs.CardHitLayer,
|
|
24063
24063
|
{
|
|
24064
24064
|
label: video.title ? `${label}: ${video.title}` : label,
|
|
24065
24065
|
onPointerDown: pausePreviewNow,
|
|
@@ -24231,7 +24231,7 @@ function useWalkthroughVideo(opts) {
|
|
|
24231
24231
|
const { endpoint, initialData, enabled: enabledGiven = true, transformCaptionsUrl } = opts;
|
|
24232
24232
|
const inScope = _chunkMGEUZRNQcjs.useLoadingScope.call(void 0, );
|
|
24233
24233
|
const enabled = enabledGiven && !inScope;
|
|
24234
|
-
const captions =
|
|
24234
|
+
const captions = _chunkWMXNSSJZcjs.useCaptions.call(void 0, );
|
|
24235
24235
|
const query = _reactquery.useQuery.call(void 0, {
|
|
24236
24236
|
queryKey: ["walkthrough-video", endpoint],
|
|
24237
24237
|
enabled,
|
|
@@ -24885,19 +24885,19 @@ function HighlightVideoSection({
|
|
|
24885
24885
|
/* @__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: [
|
|
24886
24886
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOMTH355Icjs.Label, { children: "Target Duration" }),
|
|
24887
24887
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
24888
|
-
|
|
24888
|
+
_chunk4LQKUZQLcjs.Select,
|
|
24889
24889
|
{
|
|
24890
24890
|
value: targetDurationSeconds.toString(),
|
|
24891
24891
|
onValueChange: (value) => onTargetDurationChange(parseInt(value)),
|
|
24892
24892
|
disabled,
|
|
24893
24893
|
children: [
|
|
24894
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24895
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
24896
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24897
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24898
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24899
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24900
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24894
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectTrigger, { className: "mt-1 bg-ods-bg-surface", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectValue, {}) }),
|
|
24895
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4LQKUZQLcjs.SelectContent, { className: "bg-ods-card", children: [
|
|
24896
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: "60", children: "1 minute" }),
|
|
24897
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: "120", children: "2 minutes" }),
|
|
24898
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: "180", children: "3 minutes (Recommended)" }),
|
|
24899
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: "240", children: "4 minutes" }),
|
|
24900
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: "300", children: "5 minutes" })
|
|
24901
24901
|
] })
|
|
24902
24902
|
]
|
|
24903
24903
|
}
|
|
@@ -24982,20 +24982,20 @@ function HighlightConfigSection({
|
|
|
24982
24982
|
disabled = false,
|
|
24983
24983
|
className = ""
|
|
24984
24984
|
}) {
|
|
24985
|
-
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,
|
|
24986
|
-
|
|
24985
|
+
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, _chunkSTYH4ISWcjs.Field, { label: "Target Duration", children: (f) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
24986
|
+
_chunk4LQKUZQLcjs.Select,
|
|
24987
24987
|
{
|
|
24988
24988
|
value: targetDurationSeconds.toString(),
|
|
24989
24989
|
onValueChange: (value) => onTargetDurationChange(parseInt(value)),
|
|
24990
24990
|
disabled,
|
|
24991
24991
|
children: [
|
|
24992
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24993
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
24994
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24995
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24996
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24997
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24998
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24992
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectTrigger, { id: f.id, className: "bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectValue, {}) }),
|
|
24993
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4LQKUZQLcjs.SelectContent, { className: "bg-ods-card", children: [
|
|
24994
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: "60", children: "1 minute" }),
|
|
24995
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: "120", children: "2 minutes" }),
|
|
24996
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: "180", children: "3 minutes (Recommended)" }),
|
|
24997
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: "240", children: "4 minutes" }),
|
|
24998
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: "300", children: "5 minutes" })
|
|
24999
24999
|
] })
|
|
25000
25000
|
]
|
|
25001
25001
|
}
|
|
@@ -25083,7 +25083,7 @@ var AIStatusIndicator = ({
|
|
|
25083
25083
|
}) => {
|
|
25084
25084
|
const config = statusConfig[status];
|
|
25085
25085
|
const displayText = message || config.label;
|
|
25086
|
-
const confidenceLabel = showConfidence && confidence !== void 0 ? `${
|
|
25086
|
+
const confidenceLabel = showConfidence && confidence !== void 0 ? `${_chunkSTYH4ISWcjs.getConfidenceLabel.call(void 0, confidence)} (${confidence}%)` : null;
|
|
25087
25087
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkMGEUZRNQcjs.cn.call(void 0, "inline-flex items-center gap-2 rounded-lg px-3 py-1.5", config.bgColor, className), children: [
|
|
25088
25088
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25089
25089
|
_chunkUNFCRSYIcjs.SparklesIcon,
|
|
@@ -25091,7 +25091,7 @@ var AIStatusIndicator = ({
|
|
|
25091
25091
|
size: 16,
|
|
25092
25092
|
className: _chunkMGEUZRNQcjs.cn.call(void 0,
|
|
25093
25093
|
status === "loading" && _chunkNNNRN4OFcjs.LIVE_PULSE_CLASS,
|
|
25094
|
-
confidence !== void 0 && status === "success" ?
|
|
25094
|
+
confidence !== void 0 && status === "success" ? _chunkSTYH4ISWcjs.getConfidenceTextClass.call(void 0, confidence) : config.color
|
|
25095
25095
|
)
|
|
25096
25096
|
}
|
|
25097
25097
|
),
|
|
@@ -25100,7 +25100,7 @@ var AIStatusIndicator = ({
|
|
|
25100
25100
|
{
|
|
25101
25101
|
className: _chunkMGEUZRNQcjs.cn.call(void 0,
|
|
25102
25102
|
"text-h6",
|
|
25103
|
-
confidence !== void 0 && status === "success" ?
|
|
25103
|
+
confidence !== void 0 && status === "success" ? _chunkSTYH4ISWcjs.getConfidenceTextClass.call(void 0, confidence) : config.color
|
|
25104
25104
|
),
|
|
25105
25105
|
children: displayText
|
|
25106
25106
|
}
|
|
@@ -25110,8 +25110,8 @@ var AIStatusIndicator = ({
|
|
|
25110
25110
|
{
|
|
25111
25111
|
className: _chunkMGEUZRNQcjs.cn.call(void 0,
|
|
25112
25112
|
"rounded-full border px-2 py-0.5 text-h6",
|
|
25113
|
-
|
|
25114
|
-
|
|
25113
|
+
_chunkSTYH4ISWcjs.getConfidenceBorderClass.call(void 0, confidence),
|
|
25114
|
+
_chunkSTYH4ISWcjs.getConfidenceTextClass.call(void 0, confidence)
|
|
25115
25115
|
),
|
|
25116
25116
|
children: confidenceLabel
|
|
25117
25117
|
}
|
|
@@ -25991,7 +25991,7 @@ function OpenPolicyButton({ href, name }) {
|
|
|
25991
25991
|
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,
|
|
25992
25992
|
_chunkFLS6DZENcjs.Button,
|
|
25993
25993
|
{
|
|
25994
|
-
onClick: loading ? void 0 :
|
|
25994
|
+
onClick: loading ? void 0 : _chunkSTYH4ISWcjs.openInNewTab.call(void 0, href),
|
|
25995
25995
|
disabled: loading,
|
|
25996
25996
|
variant: "outline",
|
|
25997
25997
|
size: "icon",
|
|
@@ -26030,8 +26030,8 @@ function PoliciesTable({
|
|
|
26030
26030
|
accessorKey: "name",
|
|
26031
26031
|
header: "Name",
|
|
26032
26032
|
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: [
|
|
26033
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26034
|
-
row.original.description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26033
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { children: row.original.name }),
|
|
26034
|
+
row.original.description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { variant: "h6", tone: "secondary", children: row.original.description })
|
|
26035
26035
|
] }),
|
|
26036
26036
|
meta: { width: "flex-1 min-w-0" }
|
|
26037
26037
|
},
|
|
@@ -26289,7 +26289,7 @@ function toValidInstant(iso) {
|
|
|
26289
26289
|
function formatLastRead(iso, now = /* @__PURE__ */ new Date()) {
|
|
26290
26290
|
const date = toValidInstant(iso);
|
|
26291
26291
|
if (!date) return TENANT_EMPTY_VALUE;
|
|
26292
|
-
return now.getTime() - date.getTime() < DAY_MS ? _chunkBE4OUWTAcjs.formatRelativeTimeFrom.call(void 0, date, now) :
|
|
26292
|
+
return now.getTime() - date.getTime() < DAY_MS ? _chunkBE4OUWTAcjs.formatRelativeTimeFrom.call(void 0, date, now) : _chunkGMIXTXAOcjs.formatDate.call(void 0, date);
|
|
26293
26293
|
}
|
|
26294
26294
|
function usersCountLabel(count) {
|
|
26295
26295
|
if (count == null) return TENANT_EMPTY_VALUE;
|
|
@@ -26302,7 +26302,7 @@ function TenantAccessCell({ accessState, lastReadAt: lastReadAt2, now }) {
|
|
|
26302
26302
|
const loading = _chunkMGEUZRNQcjs.useLoadingScope.call(void 0, );
|
|
26303
26303
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26304
26304
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZJS45HQZcjs.Tag, { ...accessStateTag(accessState), loading, className: "self-start" }),
|
|
26305
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26305
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { variant: "h6", tone: "secondary", loading, children: `Last read: ${formatLastRead(lastReadAt2, now)}` })
|
|
26306
26306
|
] });
|
|
26307
26307
|
}
|
|
26308
26308
|
|
|
@@ -26314,9 +26314,9 @@ function TenantCell({ provider, name, domain }) {
|
|
|
26314
26314
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
26315
26315
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26316
26316
|
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNNNRN4OFcjs.MediaSkeleton.Icon, { size: "md", className: "shrink-0" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Logo, { size: 24, role: "img", "aria-label": label, className: "shrink-0" }),
|
|
26317
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26317
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { children: name })
|
|
26318
26318
|
] }),
|
|
26319
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26319
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { variant: "h6", tone: "secondary", loading, children: _nullishCoalesce(domain, () => ( TENANT_EMPTY_VALUE)) })
|
|
26320
26320
|
] });
|
|
26321
26321
|
}
|
|
26322
26322
|
|
|
@@ -26327,9 +26327,9 @@ function TenantCustomerCell({ name, imageUrl, userCount }) {
|
|
|
26327
26327
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
26328
26328
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26329
26329
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZJS45HQZcjs.SquareAvatar, { src: _nullishCoalesce(imageUrl, () => ( void 0)), alt: name, fallback: name, size: "xs", variant: "square" }),
|
|
26330
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26330
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { children: name })
|
|
26331
26331
|
] }),
|
|
26332
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26332
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { variant: "h6", tone: "secondary", loading, children: usersCountLabel(userCount) })
|
|
26333
26333
|
] });
|
|
26334
26334
|
}
|
|
26335
26335
|
|
|
@@ -26365,7 +26365,7 @@ function OpenTenantButton({ href, name }) {
|
|
|
26365
26365
|
/* @__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,
|
|
26366
26366
|
_chunkFLS6DZENcjs.Button,
|
|
26367
26367
|
{
|
|
26368
|
-
onClick: loading ? void 0 :
|
|
26368
|
+
onClick: loading ? void 0 : _chunkSTYH4ISWcjs.openInNewTab.call(void 0, href),
|
|
26369
26369
|
disabled: loading,
|
|
26370
26370
|
variant: "outline",
|
|
26371
26371
|
size: "icon",
|
|
@@ -26500,7 +26500,7 @@ function WaitlistForm({
|
|
|
26500
26500
|
const { toast } = _chunkCBKXU77Hcjs.useToast.call(void 0, );
|
|
26501
26501
|
const { honeypotInputProps, getSignals, resetSignals } = _chunkCBKXU77Hcjs.useHumanitySignals.call(void 0, );
|
|
26502
26502
|
const [smsConsent, setSmsConsent] = _react.useState.call(void 0, false);
|
|
26503
|
-
const isClient =
|
|
26503
|
+
const isClient = _chunkWMXNSSJZcjs.useIsHydrated.call(void 0, );
|
|
26504
26504
|
const [isPhoneInvalid, setIsPhoneInvalid] = _react.useState.call(void 0, false);
|
|
26505
26505
|
const [showConsentError, setShowConsentError] = _react.useState.call(void 0, false);
|
|
26506
26506
|
const rescue = _chunkCBKXU77Hcjs.useFormRescue.call(void 0, {
|
|
@@ -26515,7 +26515,7 @@ function WaitlistForm({
|
|
|
26515
26515
|
_react.useEffect.call(void 0, () => {
|
|
26516
26516
|
rescue.track({ email, phone }, null);
|
|
26517
26517
|
}, [email, phone, rescue]);
|
|
26518
|
-
const isMailDomainGeneric =
|
|
26518
|
+
const isMailDomainGeneric = _chunkSTYH4ISWcjs.hasGenericEmailDomain.call(void 0, email);
|
|
26519
26519
|
const [syncedDefaultEmail, setSyncedDefaultEmail] = _react.useState.call(void 0, defaultEmail);
|
|
26520
26520
|
if (syncedDefaultEmail !== defaultEmail) {
|
|
26521
26521
|
setSyncedDefaultEmail(defaultEmail);
|
|
@@ -26549,7 +26549,7 @@ function WaitlistForm({
|
|
|
26549
26549
|
setShowConsentError(true);
|
|
26550
26550
|
return;
|
|
26551
26551
|
}
|
|
26552
|
-
const finalPhone = phone ?
|
|
26552
|
+
const finalPhone = phone ? _chunkSTYH4ISWcjs.formatPhoneE164.call(void 0, phone, countryCode) : void 0;
|
|
26553
26553
|
try {
|
|
26554
26554
|
await onRegister(email, finalPhone, getSignals(), rescue.submitFields());
|
|
26555
26555
|
rescue.complete();
|
|
@@ -27879,13 +27879,13 @@ function getApprovalMeta(notification) {
|
|
|
27879
27879
|
function resolutionToStatus(resolution) {
|
|
27880
27880
|
switch (typeof resolution === "string" ? resolution.toUpperCase() : void 0) {
|
|
27881
27881
|
case "APPROVED":
|
|
27882
|
-
return
|
|
27882
|
+
return _chunkGMIXTXAOcjs.APPROVAL_STATUS.APPROVED;
|
|
27883
27883
|
case "REJECTED":
|
|
27884
|
-
return
|
|
27884
|
+
return _chunkGMIXTXAOcjs.APPROVAL_STATUS.REJECTED;
|
|
27885
27885
|
case "CANCELLED":
|
|
27886
|
-
return
|
|
27886
|
+
return _chunkGMIXTXAOcjs.APPROVAL_STATUS.CANCELLED;
|
|
27887
27887
|
default:
|
|
27888
|
-
return
|
|
27888
|
+
return _chunkGMIXTXAOcjs.APPROVAL_STATUS.PENDING;
|
|
27889
27889
|
}
|
|
27890
27890
|
}
|
|
27891
27891
|
function approvalMetaToBatchData(approval) {
|
|
@@ -28253,7 +28253,7 @@ function TimeTrackerPanel({
|
|
|
28253
28253
|
] }),
|
|
28254
28254
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkMGEUZRNQcjs.cn.call(void 0, "grid gap-[var(--spacing-system-m)]", showCustomer && "grid-cols-2"), children: [
|
|
28255
28255
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28256
|
-
|
|
28256
|
+
_chunk4LQKUZQLcjs.Autocomplete,
|
|
28257
28257
|
{
|
|
28258
28258
|
value: selectedTicketId,
|
|
28259
28259
|
onChange: onSelectedTicketChange,
|
|
@@ -28269,7 +28269,7 @@ function TimeTrackerPanel({
|
|
|
28269
28269
|
}
|
|
28270
28270
|
),
|
|
28271
28271
|
showCustomer && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28272
|
-
|
|
28272
|
+
_chunk4LQKUZQLcjs.Autocomplete,
|
|
28273
28273
|
{
|
|
28274
28274
|
value: _nullishCoalesce(selectedCustomerId, () => ( null)),
|
|
28275
28275
|
onChange: onSelectedCustomerChange,
|
|
@@ -28704,7 +28704,7 @@ function getDeviceStatusConfig(status) {
|
|
|
28704
28704
|
}
|
|
28705
28705
|
}
|
|
28706
28706
|
function getDeviceOperatingSystem(osType) {
|
|
28707
|
-
return
|
|
28707
|
+
return _chunkSTYH4ISWcjs.getOSPlatformId.call(void 0, osType);
|
|
28708
28708
|
}
|
|
28709
28709
|
|
|
28710
28710
|
// src/components/features/devices/device-statuses.ts
|
|
@@ -28881,8 +28881,8 @@ function DevicesFilterToolbar({
|
|
|
28881
28881
|
|
|
28882
28882
|
|
|
28883
28883
|
function formatDateTime(input) {
|
|
28884
|
-
const date =
|
|
28885
|
-
return date === "\u2014" ? date : `${date} ${
|
|
28884
|
+
const date = _chunkGMIXTXAOcjs.formatDate.call(void 0, input);
|
|
28885
|
+
return date === "\u2014" ? date : `${date} ${_chunkGMIXTXAOcjs.formatTime.call(void 0, input)}`;
|
|
28886
28886
|
}
|
|
28887
28887
|
function uniqueById(options) {
|
|
28888
28888
|
const seen = /* @__PURE__ */ new Map();
|
|
@@ -28999,7 +28999,7 @@ function DevicesTableBody({
|
|
|
28999
28999
|
function OrganizationCell({ device }) {
|
|
29000
29000
|
const fullImageUrl = useDeviceImageUrl(device.organizationImageUrl, device.organizationImageHash);
|
|
29001
29001
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
29002
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29002
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.EntityImage, { src: fullImageUrl, alt: device.organization || "Customer", className: "size-12 content-md:size-12" }),
|
|
29003
29003
|
/* @__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 }) })
|
|
29004
29004
|
] });
|
|
29005
29005
|
}
|
|
@@ -29051,7 +29051,7 @@ function getDeviceTableColumns(deviceFilters, filtersPending) {
|
|
|
29051
29051
|
const device = row.original;
|
|
29052
29052
|
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: [
|
|
29053
29053
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeviceTypeTile, { type: device.type }),
|
|
29054
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29054
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { children: getDeviceName(device) }) })
|
|
29055
29055
|
] });
|
|
29056
29056
|
},
|
|
29057
29057
|
meta: { width: "flex-1 content-md:w-1/4" }
|
|
@@ -29223,7 +29223,7 @@ function CustomerCell({ device }) {
|
|
|
29223
29223
|
const fullImageUrl = useDeviceImageUrl(device.organizationImageUrl, device.organizationImageHash);
|
|
29224
29224
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
29225
29225
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29226
|
-
|
|
29226
|
+
_chunk4LQKUZQLcjs.EntityImage,
|
|
29227
29227
|
{
|
|
29228
29228
|
src: fullImageUrl,
|
|
29229
29229
|
alt: device.organization || "Customer",
|
|
@@ -29231,8 +29231,8 @@ function CustomerCell({ device }) {
|
|
|
29231
29231
|
}
|
|
29232
29232
|
),
|
|
29233
29233
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
29234
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29235
|
-
(device.organizationEmail || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29234
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { children: device.organization || "" }),
|
|
29235
|
+
(device.organizationEmail || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(device.organizationEmail, () => ( "")) })
|
|
29236
29236
|
] })
|
|
29237
29237
|
] });
|
|
29238
29238
|
}
|
|
@@ -29241,8 +29241,8 @@ function DeviceCell({ device }) {
|
|
|
29241
29241
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 items-center gap-3", children: [
|
|
29242
29242
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeviceTypeTile, { type: device.type }),
|
|
29243
29243
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col", children: [
|
|
29244
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29245
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29244
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { children: getDeviceName(device) }),
|
|
29245
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { variant: "h6", tone: "secondary", loading, children: formatLastOnline(device.last_seen || device.lastSeen) })
|
|
29246
29246
|
] })
|
|
29247
29247
|
] });
|
|
29248
29248
|
}
|
|
@@ -30271,7 +30271,7 @@ function DevicesPanelView({
|
|
|
30271
30271
|
] })
|
|
30272
30272
|
] });
|
|
30273
30273
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30274
|
-
|
|
30274
|
+
_chunk4LQKUZQLcjs.PageLayout,
|
|
30275
30275
|
{
|
|
30276
30276
|
title,
|
|
30277
30277
|
backButton,
|
|
@@ -30279,7 +30279,7 @@ function DevicesPanelView({
|
|
|
30279
30279
|
actionsVariant: "icon-buttons",
|
|
30280
30280
|
className,
|
|
30281
30281
|
selector: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30282
|
-
|
|
30282
|
+
_chunkWMXNSSJZcjs.TabSelector,
|
|
30283
30283
|
{
|
|
30284
30284
|
value: viewMode,
|
|
30285
30285
|
onValueChange: (value) => _optionalChain([onViewModeChange, 'optionalCall', _669 => _669(value)]),
|
|
@@ -30345,7 +30345,7 @@ var PACKAGE_SEARCH_LABEL = "Software Name";
|
|
|
30345
30345
|
var PACKAGE_SEARCH_PLACEHOLDER = "Search for Software";
|
|
30346
30346
|
function PackageSearchFieldPlaceholder({ error }) {
|
|
30347
30347
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30348
|
-
|
|
30348
|
+
_chunk4LQKUZQLcjs.Autocomplete,
|
|
30349
30349
|
{
|
|
30350
30350
|
label: PACKAGE_SEARCH_LABEL,
|
|
30351
30351
|
labelVariant: "large",
|
|
@@ -30400,16 +30400,16 @@ function SoftwareScheduleFields({
|
|
|
30400
30400
|
] }),
|
|
30401
30401
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
30402
30402
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOMTH355Icjs.Label, { className: "text-h4", children: "Time" }),
|
|
30403
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30404
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30405
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30403
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4LQKUZQLcjs.Select, { value: time, onValueChange: onTimeChange, children: [
|
|
30404
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectValue, { placeholder: "Select time" }) }),
|
|
30405
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectContent, { children: timeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
30406
30406
|
] })
|
|
30407
30407
|
] }),
|
|
30408
30408
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
30409
30409
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOMTH355Icjs.Label, { className: "text-h4", children: "Timezone" }),
|
|
30410
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30411
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30412
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30410
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4LQKUZQLcjs.Select, { value: timeReference, onValueChange: (value) => onTimeReferenceChange(value), children: [
|
|
30411
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectValue, {}) }),
|
|
30412
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectContent, { children: timing.timeReferenceOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
30413
30413
|
] })
|
|
30414
30414
|
] })
|
|
30415
30415
|
]
|
|
@@ -30475,22 +30475,22 @@ function newSoftwareRow(key) {
|
|
|
30475
30475
|
|
|
30476
30476
|
function InfoCell2({ value, label }) {
|
|
30477
30477
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
30478
|
-
/* @__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,
|
|
30478
|
+
/* @__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, _chunk4LQKUZQLcjs.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" }) }) }),
|
|
30479
30479
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: label })
|
|
30480
30480
|
] });
|
|
30481
30481
|
}
|
|
30482
30482
|
function SoftwareRowFields({ row, removable, onChange, onRemove, renderPackageSearch }) {
|
|
30483
30483
|
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: [
|
|
30484
30484
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30485
|
-
|
|
30485
|
+
_chunk4LQKUZQLcjs.Select,
|
|
30486
30486
|
{
|
|
30487
30487
|
value: row.packageManager,
|
|
30488
30488
|
onValueChange: (value) => onChange({ ...row, packageManager: value, pkg: null }),
|
|
30489
30489
|
children: [
|
|
30490
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30491
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30490
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectTrigger, { label: "Package Manager", labelVariant: "large", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectValue, {}) }),
|
|
30491
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectContent, { children: PACKAGE_MANAGERS.map((manager) => {
|
|
30492
30492
|
const Icon = PACKAGE_MANAGER_ICON[manager];
|
|
30493
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30493
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: manager, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
30494
30494
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { size: 20, className: "shrink-0 text-ods-text-secondary" }),
|
|
30495
30495
|
PACKAGE_MANAGER_LABEL[manager]
|
|
30496
30496
|
] }) }, manager);
|
|
@@ -30588,7 +30588,7 @@ function SoftwareActionForm({
|
|
|
30588
30588
|
}
|
|
30589
30589
|
);
|
|
30590
30590
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30591
|
-
|
|
30591
|
+
_chunk4LQKUZQLcjs.PageLayout,
|
|
30592
30592
|
{
|
|
30593
30593
|
title: copy.formTitle,
|
|
30594
30594
|
backButton: onBack ? { label: "Back", onClick: onBack } : void 0,
|
|
@@ -30677,7 +30677,7 @@ function LogDrawer({
|
|
|
30677
30677
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-h-0 flex-1 space-y-4 overflow-y-auto", children: [
|
|
30678
30678
|
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 }) }),
|
|
30679
30679
|
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: [
|
|
30680
|
-
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,
|
|
30680
|
+
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, _chunk4LQKUZQLcjs.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 }),
|
|
30681
30681
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: field.label })
|
|
30682
30682
|
] }, typeof field.label === "string" ? field.label : "")) }),
|
|
30683
30683
|
children
|
|
@@ -30725,7 +30725,7 @@ function LogsPageView({
|
|
|
30725
30725
|
],
|
|
30726
30726
|
[onRefresh]
|
|
30727
30727
|
);
|
|
30728
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30728
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4LQKUZQLcjs.PageLayout, { title: "Logs", actions, showHeader, className, children: [
|
|
30729
30729
|
!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: [
|
|
30730
30730
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30731
30731
|
_chunkEHQ2UGT4cjs.Input,
|
|
@@ -30814,11 +30814,11 @@ var ToolBadge = ({
|
|
|
30814
30814
|
iconClassName
|
|
30815
30815
|
}) => {
|
|
30816
30816
|
const loading = _chunkMGEUZRNQcjs.useLoadingScope.call(void 0, );
|
|
30817
|
-
const text = _nullishCoalesce(label, () => ( (toolType ?
|
|
30817
|
+
const text = _nullishCoalesce(label, () => ( (toolType ? _chunkSTYH4ISWcjs.getToolLabel.call(void 0, toolType) : "")));
|
|
30818
30818
|
const mark = _nullishCoalesce(icon, () => ( (toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLUWYWYNCcjs.ToolIcon, { toolType, className: iconClassName, size: 16 }) : null)));
|
|
30819
30819
|
if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ToolBadgeSkeleton, { variant, icon: !!mark, className });
|
|
30820
30820
|
const linked = (node, linkClassName) => href && targetPlatform ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30821
|
-
|
|
30821
|
+
_chunkWMXNSSJZcjs.NavLinkAnchorViaRuntime,
|
|
30822
30822
|
{
|
|
30823
30823
|
href,
|
|
30824
30824
|
targetPlatform,
|
|
@@ -30883,8 +30883,8 @@ function LogSourceCell({ device }) {
|
|
|
30883
30883
|
const loading = _chunkMGEUZRNQcjs.useLoadingScope.call(void 0, );
|
|
30884
30884
|
const { deviceName, organization } = logSourceLabels(device);
|
|
30885
30885
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-h-[60px] flex-col justify-center gap-1 py-2", children: [
|
|
30886
|
-
(deviceName || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30887
|
-
(organization || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30886
|
+
(deviceName || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { children: deviceName }),
|
|
30887
|
+
(organization || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(organization, () => ( "")) })
|
|
30888
30888
|
] });
|
|
30889
30889
|
}
|
|
30890
30890
|
function LogRowButton({
|
|
@@ -30939,8 +30939,8 @@ function LogsTableView({
|
|
|
30939
30939
|
accessorKey: "logId",
|
|
30940
30940
|
header: logIdHeader ? () => logIdHeader : "Log ID",
|
|
30941
30941
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col justify-center", children: [
|
|
30942
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30943
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30942
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { children: row.original.timestamp }),
|
|
30943
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { variant: "h6", tone: "secondary", children: row.original.logId })
|
|
30944
30944
|
] }),
|
|
30945
30945
|
enableSorting: false,
|
|
30946
30946
|
meta: { width: LOG_COLUMN_WIDTHS.logId, alwaysShowHeader: true }
|
|
@@ -30968,7 +30968,7 @@ function LogsTableView({
|
|
|
30968
30968
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30969
30969
|
ToolBadge,
|
|
30970
30970
|
{
|
|
30971
|
-
toolType:
|
|
30971
|
+
toolType: _chunkSTYH4ISWcjs.normalizeToolTypeWithFallback.call(void 0, row.original.source.toolType),
|
|
30972
30972
|
iconClassName: "h-4 w-4 content-md:h-6 content-md:w-6"
|
|
30973
30973
|
}
|
|
30974
30974
|
),
|
|
@@ -30980,7 +30980,7 @@ function LogsTableView({
|
|
|
30980
30980
|
filter: {
|
|
30981
30981
|
options: _nullishCoalesce(_optionalChain([facets, 'optionalAccess', _677 => _677.toolTypes, 'access', _678 => _678.map, 'call', _679 => _679((toolType) => ({
|
|
30982
30982
|
id: toolType,
|
|
30983
|
-
label:
|
|
30983
|
+
label: _chunkSTYH4ISWcjs.toToolLabel.call(void 0, toolType),
|
|
30984
30984
|
value: toolType
|
|
30985
30985
|
}))]), () => ( []))
|
|
30986
30986
|
}
|
|
@@ -31001,7 +31001,7 @@ function LogsTableView({
|
|
|
31001
31001
|
{
|
|
31002
31002
|
accessorKey: "description",
|
|
31003
31003
|
header: "Log Details",
|
|
31004
|
-
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31004
|
+
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { lines: 3, className: "text-ods-text-secondary text-h6", children: row.original.description.title }),
|
|
31005
31005
|
enableSorting: false,
|
|
31006
31006
|
meta: { width: LOG_COLUMN_WIDTHS.description, hideAt: "lg" }
|
|
31007
31007
|
},
|
|
@@ -31029,7 +31029,7 @@ function LogsTableView({
|
|
|
31029
31029
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31030
31030
|
LogRowButton,
|
|
31031
31031
|
{
|
|
31032
|
-
onClick: getLogHref ?
|
|
31032
|
+
onClick: getLogHref ? _chunkSTYH4ISWcjs.openInNewTab.call(void 0, getLogHref(row.original)) : void 0,
|
|
31033
31033
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
31034
31034
|
label: "Open in new tab"
|
|
31035
31035
|
}
|
|
@@ -31200,8 +31200,8 @@ function ExecutionSourceBadge({ source, className }) {
|
|
|
31200
31200
|
}
|
|
31201
31201
|
function ExecutionTimestampCell({ timestamp, executionId }) {
|
|
31202
31202
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31203
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31204
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31203
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { children: timestamp }),
|
|
31204
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { variant: "h6", tone: "secondary", children: executionId })
|
|
31205
31205
|
] });
|
|
31206
31206
|
}
|
|
31207
31207
|
function ExecutionStatusCell({ status }) {
|
|
@@ -31213,9 +31213,9 @@ function ExecutionDeviceCell({ name, organization }) {
|
|
|
31213
31213
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31214
31214
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-1", children: [
|
|
31215
31215
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPTK7GOIIcjs.MonitorIcon, { className: "size-6 shrink-0 text-ods-text-secondary" }),
|
|
31216
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31216
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { children: name }) : name })
|
|
31217
31217
|
] }),
|
|
31218
|
-
(organization || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31218
|
+
(organization || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(organization, () => ( "")) })
|
|
31219
31219
|
] });
|
|
31220
31220
|
}
|
|
31221
31221
|
function ExecutionInitiatorCell({
|
|
@@ -31228,16 +31228,16 @@ function ExecutionInitiatorCell({
|
|
|
31228
31228
|
avatar,
|
|
31229
31229
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
31230
31230
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
31231
|
-
typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31231
|
+
typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { children: name }) : name,
|
|
31232
31232
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExecutionSourceBadge, { source })
|
|
31233
31233
|
] }),
|
|
31234
|
-
scriptName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31234
|
+
scriptName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { variant: "h6", tone: "secondary", children: scriptName })
|
|
31235
31235
|
] })
|
|
31236
31236
|
] });
|
|
31237
31237
|
}
|
|
31238
31238
|
function ExecutionResultCell({ result, empty = null }) {
|
|
31239
31239
|
const loading = _chunkMGEUZRNQcjs.useLoadingScope.call(void 0, );
|
|
31240
|
-
return result || loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31240
|
+
return result || loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { lines: 2, children: _nullishCoalesce(result, () => ( "")) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: empty });
|
|
31241
31241
|
}
|
|
31242
31242
|
function ScriptExecutionResult({
|
|
31243
31243
|
result,
|
|
@@ -31257,14 +31257,14 @@ function ScriptExecutionResult({
|
|
|
31257
31257
|
|
|
31258
31258
|
function ScriptNameCell({ name, description }) {
|
|
31259
31259
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31260
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31261
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31260
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { children: name }),
|
|
31261
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { variant: "h6", tone: "secondary", children: description })
|
|
31262
31262
|
] });
|
|
31263
31263
|
}
|
|
31264
31264
|
function ScheduleDateTimeCell({ date, time }) {
|
|
31265
31265
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31266
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31267
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31266
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { children: date }),
|
|
31267
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { variant: "h6", tone: "secondary", children: time })
|
|
31268
31268
|
] });
|
|
31269
31269
|
}
|
|
31270
31270
|
|
|
@@ -31351,7 +31351,7 @@ function OpenInNewTabCell({ href }) {
|
|
|
31351
31351
|
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,
|
|
31352
31352
|
_chunkFLS6DZENcjs.Button,
|
|
31353
31353
|
{
|
|
31354
|
-
onClick: loading ? void 0 :
|
|
31354
|
+
onClick: loading ? void 0 : _chunkSTYH4ISWcjs.openInNewTab.call(void 0, href),
|
|
31355
31355
|
disabled: loading,
|
|
31356
31356
|
variant: "outline",
|
|
31357
31357
|
size: "icon",
|
|
@@ -31494,7 +31494,7 @@ function ScriptSchedulesTable({
|
|
|
31494
31494
|
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" })),
|
|
31495
31495
|
cell(
|
|
31496
31496
|
SCHEDULE_COLUMNS.dateTime,
|
|
31497
|
-
(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,
|
|
31497
|
+
(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, _chunk4LQKUZQLcjs.TruncateText, { tone: "secondary", children: row.trigger }) : null
|
|
31498
31498
|
),
|
|
31499
31499
|
cell(
|
|
31500
31500
|
SCHEDULE_COLUMNS.repeat,
|
|
@@ -31540,9 +31540,9 @@ function ScriptSchedulesTable({
|
|
|
31540
31540
|
|
|
31541
31541
|
// src/components/features/scripts/shell-types.ts
|
|
31542
31542
|
var SCRIPT_SHELL_TYPES = [
|
|
31543
|
-
{ id:
|
|
31544
|
-
{ id:
|
|
31545
|
-
{ id:
|
|
31543
|
+
{ id: _chunkSTYH4ISWcjs.ShellTypeValues.POWERSHELL, label: "PowerShell", value: "powershell", icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon },
|
|
31544
|
+
{ id: _chunkSTYH4ISWcjs.ShellTypeValues.CMD, label: "CMD", value: "cmd", icon: _chunkNIVJEJSGcjs.TerminalSquareIcon },
|
|
31545
|
+
{ id: _chunkSTYH4ISWcjs.ShellTypeValues.BASH, label: "Bash", value: "bash", icon: _chunkTRUW6DDAcjs.TerminalIcon }
|
|
31546
31546
|
];
|
|
31547
31547
|
function scriptShellType(value) {
|
|
31548
31548
|
return SCRIPT_SHELL_TYPES.find((shell) => shell.value === value);
|
|
@@ -31618,7 +31618,7 @@ function ScriptsTable({
|
|
|
31618
31618
|
initialsClassName: "text-ods-text-secondary"
|
|
31619
31619
|
}
|
|
31620
31620
|
),
|
|
31621
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31621
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { children: row.author.name }) })
|
|
31622
31622
|
] }) : null
|
|
31623
31623
|
)
|
|
31624
31624
|
];
|
|
@@ -31744,7 +31744,7 @@ function slotValue(minutesOfDay) {
|
|
|
31744
31744
|
return `${String(hours).padStart(2, "0")}:${String(minutes).padStart(2, "0")}`;
|
|
31745
31745
|
}
|
|
31746
31746
|
function slotLabel(minutesOfDay) {
|
|
31747
|
-
return
|
|
31747
|
+
return _chunkGMIXTXAOcjs.formatTime.call(void 0, new Date(1970, 0, 1, Math.floor(minutesOfDay / 60), minutesOfDay % 60));
|
|
31748
31748
|
}
|
|
31749
31749
|
function getTimeSlotOptions(forDate, timeReference) {
|
|
31750
31750
|
const base = slotBaseMinutes(timeReference);
|
|
@@ -31965,9 +31965,9 @@ function ReconnectWindowFields({
|
|
|
31965
31965
|
invalid
|
|
31966
31966
|
}
|
|
31967
31967
|
),
|
|
31968
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
31969
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31970
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31968
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4LQKUZQLcjs.Select, { value: unit, onValueChange: (next) => onUnitChange(next), disabled, children: [
|
|
31969
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectTrigger, { className: controlWidth, "aria-label": "Stop retry after unit", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectValue, {}) }),
|
|
31970
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectContent, { children: DURATION_UNIT_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
31971
31971
|
] })
|
|
31972
31972
|
] });
|
|
31973
31973
|
}
|
|
@@ -32035,7 +32035,7 @@ function ScheduleOfflineFields({ showErrors, disabled = false }) {
|
|
|
32035
32035
|
options
|
|
32036
32036
|
}
|
|
32037
32037
|
),
|
|
32038
|
-
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,
|
|
32038
|
+
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, _chunk4LQKUZQLcjs.TruncateText, { variant: "h6", className: "text-ods-error", children: intervalError }) })
|
|
32039
32039
|
]
|
|
32040
32040
|
}
|
|
32041
32041
|
) }) })
|
|
@@ -32870,24 +32870,24 @@ function ScheduleTimingFields({
|
|
|
32870
32870
|
// `''` reads as "no selection" to Radix, so the placeholder shows
|
|
32871
32871
|
// until a slot is picked — a date at midnight no longer
|
|
32872
32872
|
// masquerades as a chosen 12:00 AM.
|
|
32873
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
32873
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4LQKUZQLcjs.Select, { value: field.value, onValueChange: field.onChange, disabled: fieldsDisabled, children: [
|
|
32874
32874
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32875
|
-
|
|
32875
|
+
_chunk4LQKUZQLcjs.SelectTrigger,
|
|
32876
32876
|
{
|
|
32877
32877
|
className: "w-full",
|
|
32878
32878
|
error: _nullishCoalesce(pastTimeError, () => ( (showErrors ? _optionalChain([fieldState, 'access', _731 => _731.error, 'optionalAccess', _732 => _732.message]) : void 0))),
|
|
32879
32879
|
invalid: !!pastTimeError || showErrors && !!fieldState.error,
|
|
32880
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32880
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectValue, { placeholder: "Select time" })
|
|
32881
32881
|
}
|
|
32882
32882
|
),
|
|
32883
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32883
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectContent, { children: timeSlots.length === 0 ? (
|
|
32884
32884
|
// Deliberately NOT a `SelectItem` — there is nothing here
|
|
32885
32885
|
// to select, and a selectable row would put a bogus value
|
|
32886
32886
|
// in the form. It replaces a popup that opened blank; the
|
|
32887
32887
|
// Date field carries the same sentence for whoever never
|
|
32888
32888
|
// opens this one.
|
|
32889
32889
|
/* @__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 })
|
|
32890
|
-
) : timeSlots.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32890
|
+
) : timeSlots.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
32891
32891
|
] })
|
|
32892
32892
|
)
|
|
32893
32893
|
}
|
|
@@ -32901,14 +32901,14 @@ function ScheduleTimingFields({
|
|
|
32901
32901
|
name: "timeReference",
|
|
32902
32902
|
control,
|
|
32903
32903
|
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
32904
|
-
|
|
32904
|
+
_chunk4LQKUZQLcjs.Select,
|
|
32905
32905
|
{
|
|
32906
32906
|
value: field.value,
|
|
32907
32907
|
onValueChange: (next) => handleTimeReferenceChange(field.onChange, next),
|
|
32908
32908
|
disabled: fieldsDisabled,
|
|
32909
32909
|
children: [
|
|
32910
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32911
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32910
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectTrigger, { className: "w-full", "aria-label": "Timezone", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectValue, {}) }),
|
|
32911
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectContent, { children: SCHEDULE_TIME_REFERENCE_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
32912
32912
|
]
|
|
32913
32913
|
}
|
|
32914
32914
|
)
|
|
@@ -32968,7 +32968,7 @@ function ScheduleTimingFields({
|
|
|
32968
32968
|
name: "repeatUnit",
|
|
32969
32969
|
control,
|
|
32970
32970
|
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
32971
|
-
|
|
32971
|
+
_chunk4LQKUZQLcjs.Select,
|
|
32972
32972
|
{
|
|
32973
32973
|
value: field.value,
|
|
32974
32974
|
onValueChange: (next) => {
|
|
@@ -32979,8 +32979,8 @@ function ScheduleTimingFields({
|
|
|
32979
32979
|
},
|
|
32980
32980
|
disabled: fieldsDisabled || !repeatEnabled,
|
|
32981
32981
|
children: [
|
|
32982
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32983
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32982
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectValue, {}) }),
|
|
32983
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectContent, { children: DURATION_UNIT_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
32984
32984
|
]
|
|
32985
32985
|
}
|
|
32986
32986
|
)
|
|
@@ -32999,7 +32999,7 @@ function ScheduleFormFields({
|
|
|
32999
32999
|
disabled = false,
|
|
33000
33000
|
renderScriptSearch,
|
|
33001
33001
|
timeReferenceGate = "off",
|
|
33002
|
-
platforms =
|
|
33002
|
+
platforms = _chunkSTYH4ISWcjs.OS_PLATFORMS,
|
|
33003
33003
|
comingSoonPlatforms = [],
|
|
33004
33004
|
getTimeSlots,
|
|
33005
33005
|
nameLayout = "stacked",
|
|
@@ -33069,7 +33069,7 @@ function ScheduleFormFields({
|
|
|
33069
33069
|
platform.id
|
|
33070
33070
|
);
|
|
33071
33071
|
}) }),
|
|
33072
|
-
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,
|
|
33072
|
+
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, _chunk4LQKUZQLcjs.TruncateText, { variant: "h6", className: "text-ods-error", children: _nullishCoalesce(formState.errors.supportedPlatforms.message, () => ( "")) }) })
|
|
33073
33073
|
]
|
|
33074
33074
|
}
|
|
33075
33075
|
);
|
|
@@ -33145,7 +33145,7 @@ function ScheduleFormFields({
|
|
|
33145
33145
|
// src/components/features/scripts/schedule-form/schedule-script-search-field.tsx
|
|
33146
33146
|
|
|
33147
33147
|
function ScriptPlatformIcons({ platforms }) {
|
|
33148
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex shrink-0 items-center gap-0.5", children:
|
|
33148
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex shrink-0 items-center gap-0.5", children: _chunkSTYH4ISWcjs.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)) });
|
|
33149
33149
|
}
|
|
33150
33150
|
function ScheduleScriptSearchField({
|
|
33151
33151
|
scriptId,
|
|
@@ -33171,7 +33171,7 @@ function ScheduleScriptSearchField({
|
|
|
33171
33171
|
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: [
|
|
33172
33172
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOMTH355Icjs.Label, { className: "text-h4", children: "Select Script" }),
|
|
33173
33173
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33174
|
-
|
|
33174
|
+
_chunk4LQKUZQLcjs.Autocomplete,
|
|
33175
33175
|
{
|
|
33176
33176
|
options,
|
|
33177
33177
|
value: scriptId || null,
|
|
@@ -33186,7 +33186,7 @@ function ScheduleScriptSearchField({
|
|
|
33186
33186
|
error,
|
|
33187
33187
|
invalid,
|
|
33188
33188
|
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: [
|
|
33189
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33189
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { className: isSelected ? "text-ods-accent" : void 0, children: option.label }) }),
|
|
33190
33190
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScriptPlatformIcons, { platforms: _nullishCoalesce(_optionalChain([scripts, 'access', _738 => _738.find, 'call', _739 => _739((s) => s.id === option.value), 'optionalAccess', _740 => _740.supportedPlatforms]), () => ( [])) })
|
|
33191
33191
|
] })
|
|
33192
33192
|
}
|
|
@@ -33218,7 +33218,7 @@ function KnowledgeBaseOpenButton({ href }) {
|
|
|
33218
33218
|
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,
|
|
33219
33219
|
_chunkFLS6DZENcjs.Button,
|
|
33220
33220
|
{
|
|
33221
|
-
onClick: loading ? void 0 :
|
|
33221
|
+
onClick: loading ? void 0 : _chunkSTYH4ISWcjs.openInNewTab.call(void 0, href),
|
|
33222
33222
|
disabled: loading,
|
|
33223
33223
|
variant: "outline",
|
|
33224
33224
|
size: "icon",
|
|
@@ -33237,10 +33237,10 @@ function KnowledgeBaseNameCell({ item }) {
|
|
|
33237
33237
|
/* @__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" }) }),
|
|
33238
33238
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
33239
33239
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
33240
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33240
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { children: item.name }) }),
|
|
33241
33241
|
tagStatus && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZJS45HQZcjs.Tag, { variant: KNOWLEDGE_BASE_STATUS_VARIANT[tagStatus], label: tagStatus, className: "shrink-0" })
|
|
33242
33242
|
] }),
|
|
33243
|
-
item.type === "ARTICLE" && (item.summary || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33243
|
+
item.type === "ARTICLE" && (item.summary || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(item.summary, () => ( "")) })
|
|
33244
33244
|
] })
|
|
33245
33245
|
] });
|
|
33246
33246
|
}
|
|
@@ -33255,8 +33255,8 @@ function KnowledgeBaseDateCell({ item, mode }) {
|
|
|
33255
33255
|
const ts = mode === "archive" ? _nullishCoalesce(item.updatedAt, () => ( item.createdAt)) : item.createdAt;
|
|
33256
33256
|
if (!ts) return null;
|
|
33257
33257
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col whitespace-nowrap", children: [
|
|
33258
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-primary text-h4", children:
|
|
33259
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-heading-5 text-ods-text-secondary", children:
|
|
33258
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-primary text-h4", children: _chunkGMIXTXAOcjs.formatDate.call(void 0, ts) }),
|
|
33259
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-heading-5 text-ods-text-secondary", children: _chunkGMIXTXAOcjs.formatTime.call(void 0, ts) })
|
|
33260
33260
|
] });
|
|
33261
33261
|
}
|
|
33262
33262
|
function getKnowledgeBaseOpenColumn(getHref) {
|
|
@@ -33362,7 +33362,7 @@ function KnowledgeBaseArticleView({
|
|
|
33362
33362
|
className = "px-[var(--spacing-system-l)] pb-[var(--spacing-system-l)]"
|
|
33363
33363
|
}) {
|
|
33364
33364
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33365
|
-
|
|
33365
|
+
_chunk4LQKUZQLcjs.PageLayout,
|
|
33366
33366
|
{
|
|
33367
33367
|
title,
|
|
33368
33368
|
backButton: onBack ? { label: "Back", onClick: onBack } : void 0,
|
|
@@ -33385,12 +33385,12 @@ function KnowledgeBaseArticleView({
|
|
|
33385
33385
|
}
|
|
33386
33386
|
),
|
|
33387
33387
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
33388
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33388
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { className: author.deleted ? "text-ods-error" : void 0, children: _nullishCoalesce(author.name, () => ( "Unknown")) }),
|
|
33389
33389
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Author" })
|
|
33390
33390
|
] })
|
|
33391
33391
|
] }),
|
|
33392
33392
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 min-w-0 flex-col justify-center", children: [
|
|
33393
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33393
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { children: updatedLabel }),
|
|
33394
33394
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Updated" })
|
|
33395
33395
|
] }),
|
|
33396
33396
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -33570,7 +33570,7 @@ function ConversationCard({
|
|
|
33570
33570
|
style: tint,
|
|
33571
33571
|
onClick: selection && ((event) => {
|
|
33572
33572
|
if (event.button !== 0 || _optionalChain([window, 'access', _743 => _743.getSelection, 'call', _744 => _744(), 'optionalAccess', _745 => _745.toString, 'call', _746 => _746()])) return;
|
|
33573
|
-
if (!
|
|
33573
|
+
if (!_chunkSTYH4ISWcjs.isOwnClick.call(void 0, event.target, event.currentTarget, { controls: true })) return;
|
|
33574
33574
|
selection.onToggle();
|
|
33575
33575
|
}),
|
|
33576
33576
|
children: [
|
|
@@ -33593,7 +33593,7 @@ function ConversationCard({
|
|
|
33593
33593
|
children: selection.pressed ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX4UZ62MYcjs.PlusIcon, {})
|
|
33594
33594
|
}
|
|
33595
33595
|
),
|
|
33596
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33596
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSTYH4ISWcjs.ChatTurn, { avatar: requester.avatar, name: requester.name, meta: requester.meta, time: requester.time, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33597
33597
|
"p",
|
|
33598
33598
|
{
|
|
33599
33599
|
id: requestId,
|
|
@@ -33612,7 +33612,7 @@ function ConversationCard({
|
|
|
33612
33612
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: CONTEXT_TEXT_CLASS, style: partLinesStyle(_optionalChain([lines, 'optionalAccess', _747 => _747.context])), children: context.text })
|
|
33613
33613
|
] }),
|
|
33614
33614
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33615
|
-
|
|
33615
|
+
_chunkSTYH4ISWcjs.ChatTurn,
|
|
33616
33616
|
{
|
|
33617
33617
|
avatar: responder.avatar,
|
|
33618
33618
|
name: responder.name,
|
|
@@ -33664,7 +33664,7 @@ function ConversationCardSkeleton({
|
|
|
33664
33664
|
}
|
|
33665
33665
|
) }),
|
|
33666
33666
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33667
|
-
|
|
33667
|
+
_chunkSTYH4ISWcjs.ChatTurn,
|
|
33668
33668
|
{
|
|
33669
33669
|
loading: true,
|
|
33670
33670
|
name: "",
|
|
@@ -33685,7 +33685,7 @@ function ConversationCardSkeleton({
|
|
|
33685
33685
|
] })
|
|
33686
33686
|
] }),
|
|
33687
33687
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33688
|
-
|
|
33688
|
+
_chunkSTYH4ISWcjs.ChatTurn,
|
|
33689
33689
|
{
|
|
33690
33690
|
loading: true,
|
|
33691
33691
|
name: "",
|
|
@@ -33742,7 +33742,7 @@ function Highlights({ items, className }) {
|
|
|
33742
33742
|
if (items.length === 0) return null;
|
|
33743
33743
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: _chunkMGEUZRNQcjs.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: [
|
|
33744
33744
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { size: HIGHLIGHT_ICON_PX, className: "shrink-0 text-ods-flamingo-cyan" }),
|
|
33745
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33745
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { variant: "h6", triggerClassName: "flex-1", children: text })
|
|
33746
33746
|
] }, text)) });
|
|
33747
33747
|
}
|
|
33748
33748
|
function Example({
|
|
@@ -33778,7 +33778,7 @@ function Example({
|
|
|
33778
33778
|
mark(_nullishCoalesce(_optionalChain([requester, 'optionalAccess', _751 => _751.mark]), () => ( requesterMark))),
|
|
33779
33779
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
33780
33780
|
who(_nullishCoalesce(_optionalChain([requester, 'optionalAccess', _752 => _752.name]), () => ( labels.requester)), _nullishCoalesce(_optionalChain([requester, 'optionalAccess', _753 => _753.note]), () => ( labels.requesterNote))),
|
|
33781
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33781
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { lines: 2, variant: "h4", className: "min-h-[2lh]", children: `\u201C${example.request}\u201D` })
|
|
33782
33782
|
] })
|
|
33783
33783
|
] }),
|
|
33784
33784
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 gap-2.5 border-t border-ods-border pt-3", children: [
|
|
@@ -33787,7 +33787,7 @@ function Example({
|
|
|
33787
33787
|
who(_nullishCoalesce(_optionalChain([responder, 'optionalAccess', _755 => _755.name]), () => ( labels.responder)), _nullishCoalesce(_optionalChain([responder, 'optionalAccess', _756 => _756.note]), () => ( labels.responderNote))),
|
|
33788
33788
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-start gap-2", children: [
|
|
33789
33789
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { size: 16, className: "mt-0.5 shrink-0 text-ods-flamingo-cyan" }),
|
|
33790
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33790
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { lines: 2, variant: "h6", tone: "secondary", className: "min-h-[2lh]", triggerClassName: "flex-1", children: example.outcome })
|
|
33791
33791
|
] })
|
|
33792
33792
|
] })
|
|
33793
33793
|
] })
|
|
@@ -33926,13 +33926,13 @@ function CapabilityExplorer({
|
|
|
33926
33926
|
item.iconName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkMGEUZRNQcjs.cn.call(void 0, JOB_ICON_TILE_CLASS, "text-ods-flamingo-cyan"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkODDUGLYFcjs.EntityIcon, { icon: { name: item.iconName }, size: 18 }) }),
|
|
33927
33927
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
33928
33928
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "h3", { className: "flex min-w-0 items-center gap-2 text-ods-text-primary text-h4", children: [
|
|
33929
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33929
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { as: "span", variant: "h4", triggerClassName: "flex-1", children: item.title }),
|
|
33930
33930
|
item.badge
|
|
33931
33931
|
] }),
|
|
33932
|
-
item.caption && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33932
|
+
item.caption && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { variant: "h6", tone: "secondary", children: item.caption })
|
|
33933
33933
|
] })
|
|
33934
33934
|
] }),
|
|
33935
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33935
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { lines: 3, variant: "h6", tone: "secondary", className: "min-h-[3lh]", children: item.intro }),
|
|
33936
33936
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0 overflow-hidden rounded-lg border border-ods-border", children: renderScreen(item, { compact: true }) }),
|
|
33937
33937
|
item.example && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33938
33938
|
Example,
|
|
@@ -34049,8 +34049,8 @@ function CapabilityExplorer({
|
|
|
34049
34049
|
),
|
|
34050
34050
|
children: [
|
|
34051
34051
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: PANEL_INTRO_CLASS, children: [
|
|
34052
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34053
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34052
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { lines: 2, variant: "h2", className: "mb-2", children: active.title }),
|
|
34053
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4LQKUZQLcjs.TruncateText, { lines: 3, variant: "h4", tone: "secondary", className: "min-h-[3lh]", children: active.intro }),
|
|
34054
34054
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Highlights, { items: _nullishCoalesce(active.highlights, () => ( [])), className: "mt-auto" })
|
|
34055
34055
|
] }),
|
|
34056
34056
|
active.example && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|