@flamingo-stack/openframe-frontend-core 0.0.768 → 0.0.770
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-PFY23KN7.cjs → chunk-37XVY2RE.cjs} +6 -6
- package/dist/{chunk-57KIBZFQ.cjs → chunk-4BRO3RZ6.cjs} +54 -54
- package/dist/{chunk-STHQJNND.cjs → chunk-BZLHU4EK.cjs} +308 -295
- package/dist/{chunk-OEVNX4OR.cjs → chunk-C66DWLCR.cjs} +31 -31
- package/dist/{chunk-6EEE76VU.cjs → chunk-DCBZMWLY.cjs} +22 -22
- package/dist/{chunk-S4QS5E5A.cjs → chunk-HK6UQVOI.cjs} +6 -6
- package/dist/{chunk-2TS3FEPQ.cjs → chunk-I2TSCJT2.cjs} +4 -4
- package/dist/{chunk-OGHLIUF4.cjs → chunk-MFRIFVDV.cjs} +41 -41
- package/dist/{chunk-XI2CHCOD.cjs → chunk-MZLWB5AH.cjs} +1 -1
- package/dist/{chunk-ZXFOMNI5.cjs → chunk-NZELWPKO.cjs} +1 -1
- package/dist/{chunk-U6UIG4OP.cjs → chunk-Q575DR36.cjs} +19 -19
- package/dist/{chunk-2ZYCYLPL.cjs → chunk-QMUKTHWM.cjs} +3 -3
- package/dist/{chunk-5O6PHVKO.cjs → chunk-QSLKTDZ4.cjs} +4 -4
- package/dist/{chunk-VADRKMLE.cjs → chunk-S5EUREOB.cjs} +3 -3
- package/dist/{chunk-DE7U72NZ.cjs → chunk-SL7KFZWJ.cjs} +12 -12
- package/dist/{chunk-NPVYID2L.cjs → chunk-TBKXXMBU.cjs} +57 -56
- package/dist/{chunk-VVBRYOSI.cjs → chunk-VATCQOVC.cjs} +11 -11
- package/dist/{chunk-GGORS7G6.cjs → chunk-VL44GB2I.cjs} +7 -7
- package/dist/{chunk-UBPSA3RM.cjs → chunk-WUYL4BMD.cjs} +17 -17
- package/dist/{cloud-tenants-I5HABFNZ.cjs → cloud-tenants-IAZQL2JF.cjs} +5 -5
- package/dist/components/case-studies/index.cjs +18 -18
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/contact/index.cjs +6 -6
- package/dist/components/docs/index.cjs +9 -9
- package/dist/components/embeds/index.cjs +6 -6
- package/dist/components/faq/index.cjs +7 -7
- package/dist/components/features/index.cjs +5 -5
- package/dist/components/features/remote-session/remote-session-keep-modals.d.ts.map +1 -1
- package/dist/components/features/remote-session/remote-session-keep-modals.js +1 -1
- package/dist/components/help-center-pages/index.cjs +67 -67
- package/dist/components/index.cjs +40 -40
- package/dist/components/meeting-scheduler/index.cjs +37 -37
- package/dist/components/navigation/index.cjs +8 -8
- package/dist/components/onboarding-guides/index.cjs +7 -7
- package/dist/components/product-demo/index.cjs +15 -15
- package/dist/components/shared/roadmap/roadmap-grid-skeleton.d.ts.map +1 -1
- package/dist/components/shared/roadmap/roadmap-grid-skeleton.js +1 -1
- package/dist/components/shared/roadmap/roadmap-grid.d.ts.map +1 -1
- package/dist/components/shared/roadmap/roadmap-grid.js +6 -5
- package/dist/components/tickets/index.cjs +10 -10
- package/dist/components/ui/date-picker.d.ts.map +1 -1
- package/dist/components/ui/date-picker.js +16 -3
- package/dist/components/ui/index.cjs +5 -5
- package/dist/components/ui/markdown/engine.d.ts.map +1 -1
- package/dist/components/ui/markdown/engine.js +1 -1
- package/dist/{devices-OS26UG7Y.cjs → devices-7FDK2CGV.cjs} +6 -6
- package/dist/{embeddable-chat-BXEK3SPJ.cjs → embeddable-chat-3FR2RCHM.cjs} +66 -66
- package/dist/index.cjs +9 -9
- package/dist/{knowledge-JD2OFKEL.cjs → knowledge-ZLHYBG4L.cjs} +6 -6
- package/dist/{logs-KGKNFROP.cjs → logs-G6AFN7A6.cjs} +13 -13
- package/dist/{policies-J2XL6XQK.cjs → policies-SEOK4IQO.cjs} +9 -9
- package/dist/{remote-session-RHQ2K27H.cjs → remote-session-WVORQV7V.cjs} +4 -4
- package/dist/{scripts-MJONVIWL.cjs → scripts-HH4YVUBO.cjs} +12 -12
- package/dist/{software-update-VSMTHJR4.cjs → software-update-4A3XJZQB.cjs} +9 -9
- package/package.json +1 -1
- package/src/components/features/remote-session/remote-session-keep-modals.tsx +2 -1
- package/src/components/shared/roadmap/roadmap-grid-skeleton.tsx +3 -1
- package/src/components/shared/roadmap/roadmap-grid.tsx +13 -9
- package/src/components/ui/date-picker.tsx +41 -14
- package/src/components/ui/markdown/engine.tsx +6 -1
|
@@ -37,7 +37,7 @@ var _chunkRB7VLVMDcjs = require('./chunk-RB7VLVMD.cjs');
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunkMZLWB5AHcjs = require('./chunk-MZLWB5AH.cjs');
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
var _chunkDEY6XXGOcjs = require('./chunk-DEY6XXGO.cjs');
|
|
@@ -116,7 +116,7 @@ var _chunkC42WIUH6cjs = require('./chunk-C42WIUH6.cjs');
|
|
|
116
116
|
|
|
117
117
|
|
|
118
118
|
|
|
119
|
-
var
|
|
119
|
+
var _chunkWUYL4BMDcjs = require('./chunk-WUYL4BMD.cjs');
|
|
120
120
|
|
|
121
121
|
|
|
122
122
|
|
|
@@ -139,7 +139,7 @@ var _chunkUBPSA3RMcjs = require('./chunk-UBPSA3RM.cjs');
|
|
|
139
139
|
|
|
140
140
|
|
|
141
141
|
|
|
142
|
-
var
|
|
142
|
+
var _chunkNZELWPKOcjs = require('./chunk-NZELWPKO.cjs');
|
|
143
143
|
|
|
144
144
|
|
|
145
145
|
|
|
@@ -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 = _chunkNZELWPKOcjs.useIsHydrated.call(void 0, );
|
|
699
699
|
const active = mounted ? resolvedTheme === "light" || theme === "light" ? "light" : "dark" : DEFAULT_THEME;
|
|
700
700
|
const setOdsTheme = _react.useCallback.call(void 0, (next) => setTheme(next), [setTheme]);
|
|
701
701
|
const toggle = _react.useCallback.call(void 0, () => setTheme(active === "dark" ? "light" : "dark"), [active, setTheme]);
|
|
@@ -905,7 +905,7 @@ function TimezoneSelect({
|
|
|
905
905
|
}) {
|
|
906
906
|
const options = _react.useMemo.call(void 0, () => timezoneOptions(value), [value]);
|
|
907
907
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
908
|
-
|
|
908
|
+
_chunkMZLWB5AHcjs.Autocomplete,
|
|
909
909
|
{
|
|
910
910
|
className,
|
|
911
911
|
fieldLoading: loading,
|
|
@@ -1483,6 +1483,8 @@ var timeSelectTriggerStyles = _chunk65VVJSQZcjs.cn.call(void 0,
|
|
|
1483
1483
|
"cursor-pointer transition-colors duration-200",
|
|
1484
1484
|
"text-ods-text-primary"
|
|
1485
1485
|
);
|
|
1486
|
+
var DATE_POPOVER_COLLISION_PADDING = 16;
|
|
1487
|
+
var datePopoverBounds = "max-h-[var(--radix-popover-content-available-height)]";
|
|
1486
1488
|
function DatePicker(props) {
|
|
1487
1489
|
const {
|
|
1488
1490
|
placeholder = "Select date",
|
|
@@ -1554,12 +1556,15 @@ function DatePicker(props) {
|
|
|
1554
1556
|
{
|
|
1555
1557
|
className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
1556
1558
|
"z-[9999]",
|
|
1559
|
+
datePopoverBounds,
|
|
1560
|
+
"overflow-y-auto",
|
|
1557
1561
|
"animate-in fade-in-0 zoom-in-95",
|
|
1558
1562
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
1559
1563
|
"data-[side=bottom]:slide-in-from-top-2",
|
|
1560
1564
|
"data-[side=top]:slide-in-from-bottom-2"
|
|
1561
1565
|
),
|
|
1562
1566
|
sideOffset: 8,
|
|
1567
|
+
collisionPadding: DATE_POPOVER_COLLISION_PADDING,
|
|
1563
1568
|
align: "start",
|
|
1564
1569
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1565
1570
|
DatePickerCalendar,
|
|
@@ -1703,12 +1708,15 @@ function DatePickerInput(props) {
|
|
|
1703
1708
|
{
|
|
1704
1709
|
className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
1705
1710
|
"z-[9999]",
|
|
1711
|
+
datePopoverBounds,
|
|
1712
|
+
"overflow-y-auto",
|
|
1706
1713
|
"animate-in fade-in-0 zoom-in-95",
|
|
1707
1714
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
1708
1715
|
"data-[side=bottom]:slide-in-from-top-2",
|
|
1709
1716
|
"data-[side=top]:slide-in-from-bottom-2"
|
|
1710
1717
|
),
|
|
1711
1718
|
sideOffset: 8,
|
|
1719
|
+
collisionPadding: DATE_POPOVER_COLLISION_PADDING,
|
|
1712
1720
|
align: "start",
|
|
1713
1721
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1714
1722
|
DatePickerCalendar,
|
|
@@ -1726,20 +1734,20 @@ function DatePickerInput(props) {
|
|
|
1726
1734
|
) })
|
|
1727
1735
|
] }),
|
|
1728
1736
|
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1", children: [
|
|
1729
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1730
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1731
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1737
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.Select, { value: hour, onValueChange: handleHourChange, disabled, children: [
|
|
1738
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { className: _chunk65VVJSQZcjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, { placeholder: "HH" }) }),
|
|
1739
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { children: hourOptions.map((h) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: h, children: h }, h)) })
|
|
1732
1740
|
] }),
|
|
1733
1741
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h4", children: ":" }),
|
|
1734
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1735
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1736
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1742
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.Select, { value: minute, onValueChange: handleMinuteChange, disabled, children: [
|
|
1743
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { className: _chunk65VVJSQZcjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, { placeholder: "MM" }) }),
|
|
1744
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { children: minuteOptions.map((m) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: m, children: m }, m)) })
|
|
1737
1745
|
] }),
|
|
1738
|
-
!use24HourFormat && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1739
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1740
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1741
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1742
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1746
|
+
!use24HourFormat && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.Select, { value: period, onValueChange: (val) => handlePeriodChange(val), disabled, children: [
|
|
1747
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { className: _chunk65VVJSQZcjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, { placeholder: "AM" }) }),
|
|
1748
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { children: [
|
|
1749
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "AM", children: "AM" }),
|
|
1750
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "PM", children: "PM" })
|
|
1743
1751
|
] })
|
|
1744
1752
|
] })
|
|
1745
1753
|
] })
|
|
@@ -1860,12 +1868,15 @@ function DatePickerInputSimple(props) {
|
|
|
1860
1868
|
{
|
|
1861
1869
|
className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
1862
1870
|
"z-[9999]",
|
|
1871
|
+
datePopoverBounds,
|
|
1872
|
+
"overflow-y-auto",
|
|
1863
1873
|
"animate-in fade-in-0 zoom-in-95",
|
|
1864
1874
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
1865
1875
|
"data-[side=bottom]:slide-in-from-top-2",
|
|
1866
1876
|
"data-[side=top]:slide-in-from-bottom-2"
|
|
1867
1877
|
),
|
|
1868
1878
|
sideOffset: 8,
|
|
1879
|
+
collisionPadding: DATE_POPOVER_COLLISION_PADDING,
|
|
1869
1880
|
align: "start",
|
|
1870
1881
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1871
1882
|
DatePickerCalendar,
|
|
@@ -1882,9 +1893,9 @@ function DatePickerInputSimple(props) {
|
|
|
1882
1893
|
}
|
|
1883
1894
|
) })
|
|
1884
1895
|
] }),
|
|
1885
|
-
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1886
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1887
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1896
|
+
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.Select, { value: timeValue, onValueChange: handleTimeChange, disabled, children: [
|
|
1897
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { className: _chunk65VVJSQZcjs.cn.call(void 0, timeSelectTriggerStyles, "flex-1"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, { placeholder: "Select time", children: timeDisplayLabel || "Select time" }) }),
|
|
1898
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { children: timeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
1888
1899
|
] })
|
|
1889
1900
|
] });
|
|
1890
1901
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYXDHVHB2cjs.FieldWrapper, { label, error, errorSlot: "error" in props, className, children: content });
|
|
@@ -1903,14 +1914,14 @@ function DateFilterPanel({
|
|
|
1903
1914
|
className
|
|
1904
1915
|
}) {
|
|
1905
1916
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "flex flex-col gap-4", className), children: [
|
|
1906
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1907
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1917
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.Select, { value: sort, onValueChange: (value) => onSortChange(value), children: [
|
|
1918
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { className: "gap-2", "aria-label": "Sort direction", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
1908
1919
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ArrowUpDown, { className: "size-6 shrink-0 text-ods-text-secondary" }),
|
|
1909
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1920
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, {}) })
|
|
1910
1921
|
] }) }),
|
|
1911
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1912
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1913
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1922
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { children: [
|
|
1923
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "asc", children: ascLabel }),
|
|
1924
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "desc", children: descLabel })
|
|
1914
1925
|
] })
|
|
1915
1926
|
] }),
|
|
1916
1927
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1997,6 +2008,7 @@ function DateFilterMenu({
|
|
|
1997
2008
|
{
|
|
1998
2009
|
className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
1999
2010
|
"z-[9999] w-80 max-w-[calc(100vw-2rem)]",
|
|
2011
|
+
datePopoverBounds,
|
|
2000
2012
|
"flex flex-col gap-4 rounded-[6px] border border-ods-border bg-ods-bg p-4",
|
|
2001
2013
|
"animate-in fade-in-0 zoom-in-95",
|
|
2002
2014
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
@@ -2004,9 +2016,10 @@ function DateFilterMenu({
|
|
|
2004
2016
|
"data-[side=top]:slide-in-from-bottom-2"
|
|
2005
2017
|
),
|
|
2006
2018
|
sideOffset: 8,
|
|
2019
|
+
collisionPadding: DATE_POPOVER_COLLISION_PADDING,
|
|
2007
2020
|
align,
|
|
2008
2021
|
children: [
|
|
2009
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2022
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-0 overflow-y-auto", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2010
2023
|
DateFilterPanel,
|
|
2011
2024
|
{
|
|
2012
2025
|
mode,
|
|
@@ -2020,8 +2033,8 @@ function DateFilterMenu({
|
|
|
2020
2033
|
ascLabel,
|
|
2021
2034
|
descLabel
|
|
2022
2035
|
}
|
|
2023
|
-
),
|
|
2024
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-stretch gap-4", children: [
|
|
2036
|
+
) }),
|
|
2037
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full shrink-0 items-stretch gap-4", children: [
|
|
2025
2038
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { type: "button", variant: "outline", fullWidth: true, onClick: hasChanges ? handleReset : handleClose, children: hasChanges ? "Reset" : "Close" }),
|
|
2026
2039
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { type: "button", variant: "accent", fullWidth: true, onClick: handleApply, children: "Apply" })
|
|
2027
2040
|
] })
|
|
@@ -2768,7 +2781,7 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
2768
2781
|
if (isEditing) {
|
|
2769
2782
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "min-w-0", className), children: [
|
|
2770
2783
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2771
|
-
|
|
2784
|
+
_chunkMZLWB5AHcjs.Autocomplete,
|
|
2772
2785
|
{
|
|
2773
2786
|
options,
|
|
2774
2787
|
value: _nullishCoalesce(_optionalChain([currentAssignee, 'optionalAccess', _35 => _35.id]), () => ( null)),
|
|
@@ -3004,7 +3017,7 @@ function MediaTypeSelector({
|
|
|
3004
3017
|
// changed) and cost an extra render pass on every change to say what the
|
|
3005
3018
|
// prop already said.
|
|
3006
3019
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3007
|
-
|
|
3020
|
+
_chunkMZLWB5AHcjs.Select,
|
|
3008
3021
|
{
|
|
3009
3022
|
value: value || void 0,
|
|
3010
3023
|
onValueChange: (next) => {
|
|
@@ -3014,8 +3027,8 @@ function MediaTypeSelector({
|
|
|
3014
3027
|
disabled,
|
|
3015
3028
|
defaultValue: value,
|
|
3016
3029
|
children: [
|
|
3017
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3018
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3030
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, { placeholder }) }),
|
|
3031
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { children: mediaTypeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: option.value, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
3019
3032
|
option.icon,
|
|
3020
3033
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: option.label })
|
|
3021
3034
|
] }) }, option.value)) })
|
|
@@ -4508,7 +4521,7 @@ function AdminFormDrawer({
|
|
|
4508
4521
|
"form",
|
|
4509
4522
|
{
|
|
4510
4523
|
id: formId,
|
|
4511
|
-
...
|
|
4524
|
+
..._chunkWUYL4BMDcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
4512
4525
|
className: "flex flex-col gap-[var(--spacing-system-lf)]",
|
|
4513
4526
|
onSubmit: (e) => {
|
|
4514
4527
|
e.preventDefault();
|
|
@@ -4615,7 +4628,7 @@ function AdminFormModal({
|
|
|
4615
4628
|
"form",
|
|
4616
4629
|
{
|
|
4617
4630
|
id: formId,
|
|
4618
|
-
...
|
|
4631
|
+
..._chunkWUYL4BMDcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
4619
4632
|
className: "flex min-h-0 flex-1 flex-col",
|
|
4620
4633
|
onSubmit: (e) => {
|
|
4621
4634
|
e.preventDefault();
|
|
@@ -6005,7 +6018,7 @@ function EmbedViewerFrame({
|
|
|
6005
6018
|
const controllerRef = _react.useRef.call(void 0, null);
|
|
6006
6019
|
_react.useEffect.call(void 0, () => {
|
|
6007
6020
|
if (!fullscreenControl) return void 0;
|
|
6008
|
-
const controller = new (0,
|
|
6021
|
+
const controller = new (0, _chunkWUYL4BMDcjs.FullscreenSwitchController)({
|
|
6009
6022
|
target: () => frameRef.current,
|
|
6010
6023
|
onFullscreenChange: setIsFullscreen
|
|
6011
6024
|
});
|
|
@@ -6669,12 +6682,12 @@ var OGLinkPreview = ({
|
|
|
6669
6682
|
children: [
|
|
6670
6683
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TILE_SOURCE_ROW_CLASS, children: [
|
|
6671
6684
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Favicon, { src: `https://www.google.com/s2/favicons?domain=${domain}&sz=32`, size: "w-4 h-4" }),
|
|
6672
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6685
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { as: "span", variant: "h6", className: "text-current", children: name }),
|
|
6673
6686
|
meta != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "ml-auto flex flex-none items-center gap-1.5 text-ods-text-secondary", children: meta })
|
|
6674
6687
|
] }),
|
|
6675
6688
|
kicker != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-hidden text-ods-accent text-h5", style: lineClamp(1), children: kicker }),
|
|
6676
6689
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6677
|
-
|
|
6690
|
+
_chunkMZLWB5AHcjs.TruncateText,
|
|
6678
6691
|
{
|
|
6679
6692
|
lines: 2,
|
|
6680
6693
|
variant: "h3",
|
|
@@ -6683,7 +6696,7 @@ var OGLinkPreview = ({
|
|
|
6683
6696
|
children: curatedTitle || domainToTitle(domain)
|
|
6684
6697
|
}
|
|
6685
6698
|
),
|
|
6686
|
-
curatedDescription && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6699
|
+
curatedDescription && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { lines: 2, variant: "h6", tone: "secondary", children: curatedDescription })
|
|
6687
6700
|
]
|
|
6688
6701
|
}
|
|
6689
6702
|
);
|
|
@@ -6819,8 +6832,8 @@ var OGLinkPreview = ({
|
|
|
6819
6832
|
children: [
|
|
6820
6833
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-lg bg-ods-bg-surface", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Favicon, { src: faviconSrc }) }),
|
|
6821
6834
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
6822
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6823
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6835
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { className: "font-semibold transition-colors group-hover:text-ods-accent", children: title }),
|
|
6836
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { tone: "secondary", children: description })
|
|
6824
6837
|
] }),
|
|
6825
6838
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExternalLinkIcon, {})
|
|
6826
6839
|
]
|
|
@@ -6867,7 +6880,7 @@ var OGLinkPreview = ({
|
|
|
6867
6880
|
),
|
|
6868
6881
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
6869
6882
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6870
|
-
|
|
6883
|
+
_chunkMZLWB5AHcjs.TruncateText,
|
|
6871
6884
|
{
|
|
6872
6885
|
lines: 2,
|
|
6873
6886
|
className: "min-h-[calc(var(--font-line-space-h4-body)*2)] font-semibold transition-colors group-hover:text-ods-accent",
|
|
@@ -6876,7 +6889,7 @@ var OGLinkPreview = ({
|
|
|
6876
6889
|
}
|
|
6877
6890
|
),
|
|
6878
6891
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6879
|
-
|
|
6892
|
+
_chunkMZLWB5AHcjs.TruncateText,
|
|
6880
6893
|
{
|
|
6881
6894
|
lines: 2,
|
|
6882
6895
|
tone: "secondary",
|
|
@@ -6886,9 +6899,9 @@ var OGLinkPreview = ({
|
|
|
6886
6899
|
}
|
|
6887
6900
|
),
|
|
6888
6901
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-2 text-ods-text-secondary text-h6", children: [
|
|
6889
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6902
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { as: "span", variant: "h6", className: "text-current", children: effectiveData.siteName }),
|
|
6890
6903
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "\u2022" }),
|
|
6891
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6904
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { as: "span", variant: "h6", className: "text-current", children: ogDomain }),
|
|
6892
6905
|
meta
|
|
6893
6906
|
] })
|
|
6894
6907
|
] })
|
|
@@ -7244,7 +7257,7 @@ var formatTimeAgo = (timestamp) => {
|
|
|
7244
7257
|
return `${Math.floor(diffSeconds / 86400)}d ago`;
|
|
7245
7258
|
};
|
|
7246
7259
|
function RedditEmbedClient({ url, maxWidth = 700, rel }) {
|
|
7247
|
-
const postLinkRel =
|
|
7260
|
+
const postLinkRel = _chunkNZELWPKOcjs.renderedLinkRel.call(void 0, rel, true);
|
|
7248
7261
|
const { redditProxyUrl } = useRichMarkdownRuntime();
|
|
7249
7262
|
const [redditData, setRedditData] = _react.useState.call(void 0, null);
|
|
7250
7263
|
const [loading, setLoading] = _react.useState.call(void 0, true);
|
|
@@ -7576,7 +7589,7 @@ var UserIcon3 = () => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "svg", { wid
|
|
|
7576
7589
|
] });
|
|
7577
7590
|
var XIcon = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2TEMEXDTcjs.XLogoIcon, { className: "h-5 w-5", color: "currentColor" });
|
|
7578
7591
|
function TwitterEmbedClient({ url, tweetId, maxWidth = 700, rel }) {
|
|
7579
|
-
const postLinkRel =
|
|
7592
|
+
const postLinkRel = _chunkNZELWPKOcjs.renderedLinkRel.call(void 0, rel, true);
|
|
7580
7593
|
const { twitterProxyUrl } = useRichMarkdownRuntime();
|
|
7581
7594
|
const [tweetData, setTweetData] = _react.useState.call(void 0, null);
|
|
7582
7595
|
const [fetchLoading, setLoading] = _react.useState.call(void 0, true);
|
|
@@ -7778,7 +7791,7 @@ function buildRichEmbedOverrides({
|
|
|
7778
7791
|
ogEndpointPath,
|
|
7779
7792
|
textSizes
|
|
7780
7793
|
}) {
|
|
7781
|
-
const standard =
|
|
7794
|
+
const standard = _chunkNZELWPKOcjs.buildStandardLeafRenderers.call(void 0, { textSizes });
|
|
7782
7795
|
return {
|
|
7783
7796
|
// Fence-language embeds (```youtube-embed etc.); everything else
|
|
7784
7797
|
// (mermaid, highlighted blocks, inline code) falls through to `standard`.
|
|
@@ -7914,14 +7927,14 @@ function buildRichEmbedOverrides({
|
|
|
7914
7927
|
// rich-markdown runtime (Supabase optimization on the hub, identity
|
|
7915
7928
|
// elsewhere). Guard against empty `![]()`.
|
|
7916
7929
|
img: ({ src, alt }) => {
|
|
7917
|
-
if (!
|
|
7930
|
+
if (!_chunkNZELWPKOcjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7918
7931
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownImage, { src: src.trim(), alt });
|
|
7919
7932
|
},
|
|
7920
7933
|
// Raw <iframe> tags in stored content (a pasted YouTube embed). A YouTube one becomes the same click-to-play
|
|
7921
7934
|
// facade as the `youtube-embed` fence: the raw iframe loaded YouTube's whole player (about 470 KB of script) with
|
|
7922
7935
|
// the page, on every post that carried one (CU-17tkuw5xp4q). Any other iframe loads when it nears the screen.
|
|
7923
7936
|
iframe: ({ node: _node, src, ...rest }) => {
|
|
7924
|
-
if (!
|
|
7937
|
+
if (!_chunkNZELWPKOcjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7925
7938
|
const url = src.trim();
|
|
7926
7939
|
if (_chunk4EJU462Ocjs.extractYouTubeId.call(void 0, url)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.Video, { kind: "youtube", url });
|
|
7927
7940
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "iframe", { ...rest, src: url, loading: "lazy" });
|
|
@@ -7929,7 +7942,7 @@ function buildRichEmbedOverrides({
|
|
|
7929
7942
|
// Raw <video> tags in stored content (blog publisher injection) route
|
|
7930
7943
|
// to the <Video> SSOT (MuxPlayer) so HLS manifests play everywhere.
|
|
7931
7944
|
video: ({ src, poster, className }) => {
|
|
7932
|
-
if (!
|
|
7945
|
+
if (!_chunkNZELWPKOcjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7933
7946
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `overflow-hidden ${className || "my-8 w-full rounded-lg"}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.Video, { kind: "file", url: src.trim(), poster: typeof poster === "string" ? poster : void 0 }) }) });
|
|
7934
7947
|
}
|
|
7935
7948
|
};
|
|
@@ -8038,7 +8051,7 @@ var processShortcodes = (content) => {
|
|
|
8038
8051
|
try {
|
|
8039
8052
|
const urlObj = new URL(url);
|
|
8040
8053
|
const hostname = urlObj.hostname.toLowerCase();
|
|
8041
|
-
const hostIs = (domain) =>
|
|
8054
|
+
const hostIs = (domain) => _chunkWUYL4BMDcjs.hostMatches.call(void 0, hostname, domain);
|
|
8042
8055
|
const isYouTubeVideo = hostIs("youtube.com") && urlObj.searchParams.has("v") || hostIs("youtu.be");
|
|
8043
8056
|
if (isYouTubeVideo || hostIs("reddit.com") || hostIs("twitter.com") || hostIs("x.com") || hostIs("figma.com")) {
|
|
8044
8057
|
return match;
|
|
@@ -8115,13 +8128,13 @@ var RichMarkdownInner = ({
|
|
|
8115
8128
|
},
|
|
8116
8129
|
[resolveLinkEndpointUrl, resolveSource]
|
|
8117
8130
|
);
|
|
8118
|
-
const textSizes = _react.useMemo.call(void 0, () =>
|
|
8131
|
+
const textSizes = _react.useMemo.call(void 0, () => _chunkNZELWPKOcjs.resolveTextSizeConfig.call(void 0, "article"), []);
|
|
8119
8132
|
const componentOverrides = _react.useMemo.call(void 0,
|
|
8120
8133
|
() => buildRichEmbedOverrides({ ogApiBaseUrl, ogEndpointPath, textSizes }),
|
|
8121
8134
|
[ogApiBaseUrl, ogEndpointPath, textSizes]
|
|
8122
8135
|
);
|
|
8123
8136
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8124
|
-
|
|
8137
|
+
_chunkNZELWPKOcjs.MarkdownEngine,
|
|
8125
8138
|
{
|
|
8126
8139
|
content,
|
|
8127
8140
|
className,
|
|
@@ -8145,7 +8158,7 @@ var RichMarkdownRendererImpl = ({
|
|
|
8145
8158
|
className = "",
|
|
8146
8159
|
sectionIds,
|
|
8147
8160
|
onInternalLinkClick,
|
|
8148
|
-
brokenLinks =
|
|
8161
|
+
brokenLinks = _chunkNZELWPKOcjs.NO_BROKEN_LINKS,
|
|
8149
8162
|
currentPath,
|
|
8150
8163
|
resolveSource = "openframe-docs",
|
|
8151
8164
|
resolveLinkEndpointUrl = "/api/docs/resolve-link",
|
|
@@ -8190,7 +8203,7 @@ function RichMarkdownRendererSkeleton({
|
|
|
8190
8203
|
title,
|
|
8191
8204
|
className
|
|
8192
8205
|
}) {
|
|
8193
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8206
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNZELWPKOcjs.MarkdownEngineSkeleton, { sections, title, textSize: "article", className });
|
|
8194
8207
|
}
|
|
8195
8208
|
|
|
8196
8209
|
// src/components/ui/release-changelog-section.tsx
|
|
@@ -9275,7 +9288,7 @@ function FilterModal({
|
|
|
9275
9288
|
const dateDefaultSort = _nullishCoalesce(_optionalChain([dateFilter, 'optionalAccess', _147 => _147.defaultSort]), () => ( "desc"));
|
|
9276
9289
|
const [draftDateSort, setDraftDateSort] = _react.useState.call(void 0, _nullishCoalesce(_optionalChain([dateFilter, 'optionalAccess', _148 => _148.sort]), () => ( dateDefaultSort)));
|
|
9277
9290
|
const [draftDateRange, setDraftDateRange] = _react.useState.call(void 0, _optionalChain([dateFilter, 'optionalAccess', _149 => _149.range]));
|
|
9278
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateFade } =
|
|
9291
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunkNZELWPKOcjs.useScrollFade.call(void 0, );
|
|
9279
9292
|
const seedKey = `${JSON.stringify(currentFilters)}|${JSON.stringify(_nullishCoalesce(selectedTags, () => ( [])))}`;
|
|
9280
9293
|
const seedSourceRef = _react.useRef.call(void 0, { currentFilters, selectedTags, dateFilter, dateDefaultSort });
|
|
9281
9294
|
_react.useEffect.call(void 0, () => {
|
|
@@ -9421,8 +9434,8 @@ function FilterModal({
|
|
|
9421
9434
|
] })
|
|
9422
9435
|
}
|
|
9423
9436
|
),
|
|
9424
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9425
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9437
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNZELWPKOcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop }),
|
|
9438
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNZELWPKOcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom })
|
|
9426
9439
|
] })
|
|
9427
9440
|
}
|
|
9428
9441
|
),
|
|
@@ -9490,7 +9503,7 @@ function renderAdvancedPageContainer({
|
|
|
9490
9503
|
contentClassName,
|
|
9491
9504
|
showHeader = true
|
|
9492
9505
|
}, inScope = false) {
|
|
9493
|
-
const titleNode = title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9506
|
+
const titleNode = title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.PageTitle, { className: PAGE_CONTAINER_TITLE_CLASS, children: _chunk4EJU462Ocjs.accentSentenceMarks.call(void 0, title) }) : inScope && title === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageContainerTitleSkeleton, {}) : null;
|
|
9494
9507
|
const subtitleNode = subtitle ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: PAGE_CONTAINER_SUBTITLE_CLASS, children: subtitle }) : inScope && subtitle === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageContainerSubtitleSkeleton, {}) : null;
|
|
9495
9508
|
const getActionsVariant = () => {
|
|
9496
9509
|
if (actionsVariant) return actionsVariant;
|
|
@@ -9499,7 +9512,7 @@ function renderAdvancedPageContainer({
|
|
|
9499
9512
|
};
|
|
9500
9513
|
const renderActions = () => {
|
|
9501
9514
|
if (!actions || actions.length === 0) return null;
|
|
9502
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9515
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.PageActions, { variant: getActionsVariant(), actions, menuActions });
|
|
9503
9516
|
};
|
|
9504
9517
|
const needsBottomPadding = actions && actions.length > 0 && getActionsVariant() === "primary-buttons";
|
|
9505
9518
|
const paddingClasses = {
|
|
@@ -9522,7 +9535,7 @@ function renderAdvancedPageContainer({
|
|
|
9522
9535
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-end justify-between gap-4 content-md:flex-col content-md:items-start content-md:justify-start content-lg:flex-row content-lg:items-end content-lg:justify-between", children: [
|
|
9523
9536
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
9524
9537
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9525
|
-
|
|
9538
|
+
_chunkMZLWB5AHcjs.BackButton,
|
|
9526
9539
|
{
|
|
9527
9540
|
onClick: backButton.onClick,
|
|
9528
9541
|
label: backButton.label,
|
|
@@ -9542,7 +9555,7 @@ function renderAdvancedPageContainer({
|
|
|
9542
9555
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between gap-4 content-md:flex-col content-md:items-start content-md:justify-start content-lg:flex-row content-lg:items-center content-lg:justify-between", children: [
|
|
9543
9556
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
9544
9557
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9545
|
-
|
|
9558
|
+
_chunkMZLWB5AHcjs.BackButton,
|
|
9546
9559
|
{
|
|
9547
9560
|
onClick: backButton.onClick,
|
|
9548
9561
|
label: backButton.label,
|
|
@@ -9562,7 +9575,7 @@ function renderAdvancedPageContainer({
|
|
|
9562
9575
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-end justify-between gap-4 content-md:flex-col content-md:items-start content-md:justify-start content-lg:flex-row content-lg:items-end content-lg:justify-between", children: [
|
|
9563
9576
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
9564
9577
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9565
|
-
|
|
9578
|
+
_chunkMZLWB5AHcjs.BackButton,
|
|
9566
9579
|
{
|
|
9567
9580
|
onClick: backButton.onClick,
|
|
9568
9581
|
label: backButton.label,
|
|
@@ -9916,7 +9929,7 @@ var BenefitCardGrid = ({ children, className = "", columns = 2 }) => {
|
|
|
9916
9929
|
|
|
9917
9930
|
|
|
9918
9931
|
function PlatformBrowseButton({ item }) {
|
|
9919
|
-
const linkProps =
|
|
9932
|
+
const linkProps = _chunkNZELWPKOcjs.useNavLinkViaRuntime.call(void 0, { href: item.link, targetPlatform: item.targetPlatform });
|
|
9920
9933
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkTF5D5MNOcjs.Button, { variant: "outline", linkProps, rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-4 w-4" }), children: [
|
|
9921
9934
|
"Browse ",
|
|
9922
9935
|
item.buttonText
|
|
@@ -10413,10 +10426,10 @@ var OSTypeBadge = ({
|
|
|
10413
10426
|
if (!osType) {
|
|
10414
10427
|
return labelOnly ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk65VVJSQZcjs.cn.call(void 0, "text-ods-text-secondary", className), children: "Unknown" }) : null;
|
|
10415
10428
|
}
|
|
10416
|
-
const normalized =
|
|
10429
|
+
const normalized = _chunkWUYL4BMDcjs.normalizeOSType.call(void 0, osType);
|
|
10417
10430
|
if (!normalized && !labelOnly) return null;
|
|
10418
|
-
const label =
|
|
10419
|
-
const IconComponent =
|
|
10431
|
+
const label = _chunkWUYL4BMDcjs.getOSLabel.call(void 0, osType);
|
|
10432
|
+
const IconComponent = _chunkWUYL4BMDcjs.getOSIcon.call(void 0, osType);
|
|
10420
10433
|
if (iconOnly && IconComponent) {
|
|
10421
10434
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: _chunk65VVJSQZcjs.cn.call(void 0, iconSize, "text-ods-text-secondary", className) });
|
|
10422
10435
|
}
|
|
@@ -10701,7 +10714,7 @@ function ComplianceLogo({
|
|
|
10701
10714
|
fallback = null,
|
|
10702
10715
|
className
|
|
10703
10716
|
}) {
|
|
10704
|
-
const standard =
|
|
10717
|
+
const standard = _chunkWUYL4BMDcjs.complianceStandardForName.call(void 0, ...names);
|
|
10705
10718
|
if (!standard) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: fallback });
|
|
10706
10719
|
const Official = standard.logo ? COMPLIANCE_LOGOS[standard.logo] : null;
|
|
10707
10720
|
return Official ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11424,7 +11437,7 @@ function OrganizationCardSkeleton({
|
|
|
11424
11437
|
"aria-hidden": true,
|
|
11425
11438
|
children: [
|
|
11426
11439
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_HEADER_CLASS, children: [
|
|
11427
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11440
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.EntityImageSkeleton, {}),
|
|
11428
11441
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_TEXT_CLASS, children: [
|
|
11429
11442
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "h3", className: "w-3/4" }),
|
|
11430
11443
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "h6", className: "w-1/2" })
|
|
@@ -11527,7 +11540,7 @@ function OrganizationCard({
|
|
|
11527
11540
|
}
|
|
11528
11541
|
),
|
|
11529
11542
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_HEADER_CLASS, children: [
|
|
11530
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11543
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.EntityImage, { src: fetchedImageUrl || organization.imageUrl, alt: organization.name }),
|
|
11531
11544
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_TEXT_CLASS, children: [
|
|
11532
11545
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "truncate text-ods-text-primary transition-colors text-h3", title: organization.name, children: organization.name }),
|
|
11533
11546
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11577,8 +11590,8 @@ function ServiceCard({ title, subtitle, icon, tag, rows, className }) {
|
|
|
11577
11590
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-4", children: [
|
|
11578
11591
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-md border border-ods-border bg-ods-bg", children: resolvedIcon }),
|
|
11579
11592
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0", children: [
|
|
11580
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11581
|
-
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11593
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h3", children: title }),
|
|
11594
|
+
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: subtitle })
|
|
11582
11595
|
] })
|
|
11583
11596
|
] }),
|
|
11584
11597
|
tag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "self-start whitespace-nowrap rounded-full border border-ods-border bg-ods-bg px-3 py-1 font-semibold text-ods-text-primary text-h6", children: tag.label })
|
|
@@ -11714,14 +11727,14 @@ function PersonCell({
|
|
|
11714
11727
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.SquareAvatar, { size: scale.avatar, src: _nullishCoalesce(avatarUrl, () => ( void 0)), alt: displayName, fallback: displayName }),
|
|
11715
11728
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
11716
11729
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11717
|
-
|
|
11730
|
+
_chunkMZLWB5AHcjs.TruncateText,
|
|
11718
11731
|
{
|
|
11719
11732
|
variant: scale.primary,
|
|
11720
11733
|
className: onClick ? "text-ods-accent group-hover/person-cell:underline" : void 0,
|
|
11721
11734
|
children: displayName
|
|
11722
11735
|
}
|
|
11723
11736
|
),
|
|
11724
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11737
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: secondary === void 0 ? "\xA0" : secondary || "\xB7" })
|
|
11725
11738
|
] })
|
|
11726
11739
|
] });
|
|
11727
11740
|
if (!onClick) return row;
|
|
@@ -12481,7 +12494,7 @@ function TableHeader({
|
|
|
12481
12494
|
onFilterChange
|
|
12482
12495
|
}
|
|
12483
12496
|
),
|
|
12484
|
-
column.hint ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12497
|
+
column.hint ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWUYL4BMDcjs.InfoHint, { label: column.label, children: column.hint }) : null
|
|
12485
12498
|
] })
|
|
12486
12499
|
) : (
|
|
12487
12500
|
/* Non-filterable column — regular label with optional sort */
|
|
@@ -12507,7 +12520,7 @@ function TableHeader({
|
|
|
12507
12520
|
hint exists, so a hint-less header keeps its DOM. */
|
|
12508
12521
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
12509
12522
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TABLE_HEADER_LABEL_CLASS, children: column.label }),
|
|
12510
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12523
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWUYL4BMDcjs.InfoHint, { label: column.label, children: column.hint })
|
|
12511
12524
|
] })
|
|
12512
12525
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TABLE_HEADER_LABEL_CLASS, children: column.label }),
|
|
12513
12526
|
getSortIcon(column)
|
|
@@ -12617,7 +12630,7 @@ function TableRow({
|
|
|
12617
12630
|
const Row = animate && motionDiv ? motionDiv : "div";
|
|
12618
12631
|
const motionProps = animate ? { layout: "position", transition: { layout: { duration: 0.35, ease: [0.22, 1, 0.36, 1] } } } : {};
|
|
12619
12632
|
const handleRowClick = (e) => {
|
|
12620
|
-
if (!
|
|
12633
|
+
if (!_chunkWUYL4BMDcjs.isOwnClick.call(void 0, e.target, e.currentTarget)) return;
|
|
12621
12634
|
if (onClick) {
|
|
12622
12635
|
onClick(item);
|
|
12623
12636
|
}
|
|
@@ -13395,7 +13408,7 @@ function DataTableRowImpl({
|
|
|
13395
13408
|
const containerRef = _react.useRef.call(void 0, null);
|
|
13396
13409
|
const handleClick = _react.useCallback.call(void 0,
|
|
13397
13410
|
(e) => {
|
|
13398
|
-
if (!
|
|
13411
|
+
if (!_chunkWUYL4BMDcjs.isOwnClick.call(void 0, e.target, containerRef.current)) {
|
|
13399
13412
|
if (isLinkMode) e.preventDefault();
|
|
13400
13413
|
return;
|
|
13401
13414
|
}
|
|
@@ -13845,7 +13858,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13845
13858
|
// child of the cell.
|
|
13846
13859
|
_optionalChain([meta, 'optionalAccess', _232 => _232.hint]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13847
13860
|
filterTrigger,
|
|
13848
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13861
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWUYL4BMDcjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
13849
13862
|
] }) : filterTrigger
|
|
13850
13863
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13851
13864
|
"div",
|
|
@@ -13870,7 +13883,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13870
13883
|
// centred on the row.
|
|
13871
13884
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13872
13885
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
13873
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13886
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWUYL4BMDcjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
13874
13887
|
] })
|
|
13875
13888
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
13876
13889
|
canSort && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortIcon, { sorted: sortDir })
|
|
@@ -14102,7 +14115,7 @@ function PhoneInput({
|
|
|
14102
14115
|
placeholder = "Phone Number (optional)",
|
|
14103
14116
|
onKeyDown
|
|
14104
14117
|
}) {
|
|
14105
|
-
const { priority, others } = _react.useMemo.call(void 0, () =>
|
|
14118
|
+
const { priority, others } = _react.useMemo.call(void 0, () => _chunkWUYL4BMDcjs.getCountryPhoneData.call(void 0, ), []);
|
|
14106
14119
|
const selectedCountry = _react.useMemo.call(void 0,
|
|
14107
14120
|
() => [...priority, ...others].find((c) => c.code === countryCode),
|
|
14108
14121
|
[countryCode, priority, others]
|
|
@@ -14117,7 +14130,7 @@ function PhoneInput({
|
|
|
14117
14130
|
_optionalChain([onValidationChange, 'optionalCall', _246 => _246(false)]);
|
|
14118
14131
|
return;
|
|
14119
14132
|
}
|
|
14120
|
-
const invalid = !
|
|
14133
|
+
const invalid = !_chunkWUYL4BMDcjs.validatePhoneNumber.call(void 0, phone, countryCode);
|
|
14121
14134
|
setIsInvalid(invalid);
|
|
14122
14135
|
_optionalChain([onValidationChange, 'optionalCall', _247 => _247(invalid)]);
|
|
14123
14136
|
},
|
|
@@ -14137,7 +14150,7 @@ function PhoneInput({
|
|
|
14137
14150
|
}, []);
|
|
14138
14151
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 gap-2", children: [
|
|
14139
14152
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14140
|
-
|
|
14153
|
+
_chunkMZLWB5AHcjs.Select,
|
|
14141
14154
|
{
|
|
14142
14155
|
value: countryCode,
|
|
14143
14156
|
onValueChange: (val) => {
|
|
@@ -14148,14 +14161,14 @@ function PhoneInput({
|
|
|
14148
14161
|
},
|
|
14149
14162
|
disabled,
|
|
14150
14163
|
children: [
|
|
14151
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14164
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { className: "w-[130px] shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, { children: selectedCountry && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-1.5", children: [
|
|
14152
14165
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: selectedCountry.flag }),
|
|
14153
14166
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: selectedCountry.dialCode })
|
|
14154
14167
|
] }) }) }),
|
|
14155
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14156
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14157
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14158
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14168
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { className: "max-h-[300px] !w-[280px]", children: [
|
|
14169
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectGroup, { children: priority.map((country) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CountryOption, { country }, country.code)) }),
|
|
14170
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectSeparator, {}),
|
|
14171
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectGroup, { children: others.map((country) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CountryOption, { country }, country.code)) })
|
|
14159
14172
|
] })
|
|
14160
14173
|
]
|
|
14161
14174
|
}
|
|
@@ -14187,7 +14200,7 @@ function PhoneInput({
|
|
|
14187
14200
|
] });
|
|
14188
14201
|
}
|
|
14189
14202
|
function CountryOption({ country }) {
|
|
14190
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14203
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: country.code, textValue: country.name, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-2", children: [
|
|
14191
14204
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0", children: country.flag }),
|
|
14192
14205
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary", children: country.dialCode }),
|
|
14193
14206
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-block max-w-[140px] overflow-hidden text-ellipsis whitespace-nowrap", children: country.name })
|
|
@@ -14572,7 +14585,7 @@ function SearchInput({
|
|
|
14572
14585
|
)
|
|
14573
14586
|
] }),
|
|
14574
14587
|
showHiddenTags && hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14575
|
-
|
|
14588
|
+
_chunkMZLWB5AHcjs.HiddenTagsPopup,
|
|
14576
14589
|
{
|
|
14577
14590
|
ref: hiddenTagsPopupRef,
|
|
14578
14591
|
items: hiddenChips.map((chip) => ({ label: chip.label, value: chip.id })),
|
|
@@ -14866,7 +14879,7 @@ function TagSearchInput({
|
|
|
14866
14879
|
}
|
|
14867
14880
|
),
|
|
14868
14881
|
showHiddenTags && hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14869
|
-
|
|
14882
|
+
_chunkMZLWB5AHcjs.HiddenTagsPopup,
|
|
14870
14883
|
{
|
|
14871
14884
|
ref: hiddenTagsPopupRef,
|
|
14872
14885
|
items: hiddenTags,
|
|
@@ -14982,7 +14995,7 @@ function MarkdownLinkDialog({ isOpen, initial, editing, onSubmit, onRemove, onCl
|
|
|
14982
14995
|
),
|
|
14983
14996
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xsf)]", children: [
|
|
14984
14997
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14985
|
-
|
|
14998
|
+
_chunkNZELWPKOcjs.TabSelector,
|
|
14986
14999
|
{
|
|
14987
15000
|
label: "Search engines",
|
|
14988
15001
|
value: choice,
|
|
@@ -15039,7 +15052,7 @@ function useMarkdownLinkCommand() {
|
|
|
15039
15052
|
buttonProps: { "aria-label": "Add or edit a link (ctrl + l)", title: "Add or edit a link (ctrl + l)" },
|
|
15040
15053
|
icon: command.icon,
|
|
15041
15054
|
execute: (state, api) => {
|
|
15042
|
-
const existing =
|
|
15055
|
+
const existing = _chunkNZELWPKOcjs.findMarkdownLinkAt.call(void 0, state.text, state.selection.start, state.selection.end);
|
|
15043
15056
|
setPending(
|
|
15044
15057
|
existing ? {
|
|
15045
15058
|
api,
|
|
@@ -15070,7 +15083,7 @@ function useMarkdownLinkCommand() {
|
|
|
15070
15083
|
initial: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _304 => _304.initial]), () => ( EMPTY_LINK)),
|
|
15071
15084
|
editing: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _305 => _305.editing]), () => ( false)),
|
|
15072
15085
|
onSubmit: (link) => {
|
|
15073
|
-
if (pending) write(pending,
|
|
15086
|
+
if (pending) write(pending, _chunkNZELWPKOcjs.formatMarkdownLink.call(void 0, link));
|
|
15074
15087
|
},
|
|
15075
15088
|
onRemove: () => {
|
|
15076
15089
|
if (pending) write(pending, pending.initial.text);
|
|
@@ -16395,7 +16408,7 @@ var SKELETON_COLUMNS = 6;
|
|
|
16395
16408
|
function TestResultsSkeleton({
|
|
16396
16409
|
region = true
|
|
16397
16410
|
} = {}) {
|
|
16398
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEANWBJHcjs.LoadingRegion, { label: "Loading the test results", announce: region, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16411
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEANWBJHcjs.LoadingRegion, { label: "Loading the test results", announce: region, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNZELWPKOcjs.ScrollShadow, { axis: "horizontal", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-max min-w-full flex-col", children: [
|
|
16399
16412
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-mf)] px-[var(--spacing-system-mf)]", children: Array.from({ length: SKELETON_COLUMNS }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-[160px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.UnifiedSkeleton, { className: "h-4 w-3/4 rounded-sm" }) }, `skeleton-header-${i}`)) }),
|
|
16400
16413
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-hidden rounded-[6px] border border-ods-border bg-ods-card", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[66px] items-center gap-[var(--spacing-system-mf)] px-[var(--spacing-system-mf)] content-md:h-[78px]", children: Array.from({ length: SKELETON_COLUMNS }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-[160px] shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.UnifiedSkeleton, { className: "h-5 w-3/4 rounded-sm" }) }, `skeleton-cell-${i}`)) }) })
|
|
16401
16414
|
] }) }) });
|
|
@@ -16430,7 +16443,7 @@ function TestResultsTable({ rows, loading }) {
|
|
|
16430
16443
|
if (loading) {
|
|
16431
16444
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TestResultsSkeleton, {});
|
|
16432
16445
|
}
|
|
16433
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16446
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNZELWPKOcjs.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: [
|
|
16434
16447
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTable.Header, { className: "flex flex-col" }),
|
|
16435
16448
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTable.Body, { loading: false })
|
|
16436
16449
|
] }) }) });
|
|
@@ -16913,7 +16926,7 @@ function TicketInfoSection({
|
|
|
16913
16926
|
expanded && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
16914
16927
|
createdAt && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid grid-cols-2 items-center gap-4 border-b border-ods-border bg-ods-bg px-4 py-3", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: createdAt, label: "Created" }) }),
|
|
16915
16928
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-4 border-b border-ods-border bg-ods-bg p-4", children: [
|
|
16916
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16929
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNZELWPKOcjs.SimpleMarkdownRenderer, { content: description }),
|
|
16917
16930
|
attachments && attachments.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Attachments", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketAttachmentsList, { attachments }) }),
|
|
16918
16931
|
tags && tags.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Tags", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-wrap gap-2", children: tags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { label: tag, variant: "outline", className: "max-w-full" }, tag)) }) }),
|
|
16919
16932
|
(notes || onAddNote) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Notes", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -16939,7 +16952,7 @@ function renderTicketStatusOption(option, isSelected) {
|
|
|
16939
16952
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center justify-between gap-[var(--spacing-system-xs)]", children: [
|
|
16940
16953
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
16941
16954
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ColorSwatch, { color }),
|
|
16942
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16955
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { className: "text-inherit", children: label }) })
|
|
16943
16956
|
] }),
|
|
16944
16957
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
16945
16958
|
] });
|
|
@@ -16949,7 +16962,7 @@ function renderTicketAssigneeOption(option, isSelected) {
|
|
|
16949
16962
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center justify-between gap-[var(--spacing-system-xs)]", children: [
|
|
16950
16963
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
16951
16964
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.SquareAvatar, { src: imageUrl, alt: label, fallback: label, size: "sm", variant: "round" }),
|
|
16952
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16965
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { className: "text-inherit", children: label }) })
|
|
16953
16966
|
] }),
|
|
16954
16967
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
16955
16968
|
] });
|
|
@@ -16993,7 +17006,7 @@ function TakeOverTicketModal({
|
|
|
16993
17006
|
] }),
|
|
16994
17007
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)] md:flex-row", children: [
|
|
16995
17008
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16996
|
-
|
|
17009
|
+
_chunkMZLWB5AHcjs.Autocomplete,
|
|
16997
17010
|
{
|
|
16998
17011
|
label: "Status",
|
|
16999
17012
|
options: statusOptions,
|
|
@@ -17005,7 +17018,7 @@ function TakeOverTicketModal({
|
|
|
17005
17018
|
}
|
|
17006
17019
|
) }),
|
|
17007
17020
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17008
|
-
|
|
17021
|
+
_chunkMZLWB5AHcjs.Autocomplete,
|
|
17009
17022
|
{
|
|
17010
17023
|
label: "Assigned",
|
|
17011
17024
|
options: assigneeOptions,
|
|
@@ -17096,7 +17109,7 @@ function ReopenTicketModal({
|
|
|
17096
17109
|
] }),
|
|
17097
17110
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)] md:flex-row", children: [
|
|
17098
17111
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17099
|
-
|
|
17112
|
+
_chunkMZLWB5AHcjs.Autocomplete,
|
|
17100
17113
|
{
|
|
17101
17114
|
label: "Status",
|
|
17102
17115
|
options: statusOptions,
|
|
@@ -17108,7 +17121,7 @@ function ReopenTicketModal({
|
|
|
17108
17121
|
}
|
|
17109
17122
|
) }),
|
|
17110
17123
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17111
|
-
|
|
17124
|
+
_chunkMZLWB5AHcjs.Autocomplete,
|
|
17112
17125
|
{
|
|
17113
17126
|
label: "Assigned",
|
|
17114
17127
|
options: assigneeOptions,
|
|
@@ -17382,7 +17395,7 @@ function PhotoWall({
|
|
|
17382
17395
|
gap: COLUMN_GAP_PX
|
|
17383
17396
|
};
|
|
17384
17397
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: rootRef, "aria-hidden": "true", className: _chunk65VVJSQZcjs.cn.call(void 0, "grid overflow-hidden", className), style: gridStyle, children: columnsToDraw ? columnsToDraw.map((column, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17385
|
-
|
|
17398
|
+
_chunkNZELWPKOcjs.MarqueeWall,
|
|
17386
17399
|
{
|
|
17387
17400
|
axis: "y",
|
|
17388
17401
|
reverse: index % 2 === 1,
|
|
@@ -17601,7 +17614,7 @@ function ProductScreenFrame({
|
|
|
17601
17614
|
style: { height },
|
|
17602
17615
|
children: [
|
|
17603
17616
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIFEZ2JTcjs.PortalContainerContext.Provider, { value: portalHost, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIFEZ2JTcjs.CollisionBoundaryContext.Provider, { value: frame, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { inert: true, "aria-hidden": true, className: "ods-content-area", style: screenStyle, children: [
|
|
17604
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ods-content-scope", children: mode === "pending" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.LoadingScope, { bare: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17617
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ods-content-scope", children: mode === "pending" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.LoadingScope, { bare: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.PagePicture, { children }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.PagePicture, { children }) }),
|
|
17605
17618
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
|
|
17606
17619
|
] }) }) }),
|
|
17607
17620
|
fade && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -17737,7 +17750,7 @@ function PhoneFrame({ dateLabel, timeLabel, children, className }) {
|
|
|
17737
17750
|
"div",
|
|
17738
17751
|
{
|
|
17739
17752
|
className: _chunk65VVJSQZcjs.cn.call(void 0, "h-[617px] w-[299px] shrink-0 rounded-[48px] border border-ods-border bg-black p-2.5", className),
|
|
17740
|
-
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "relative flex h-full flex-col overflow-hidden rounded-[38px]",
|
|
17753
|
+
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "relative flex h-full flex-col overflow-hidden rounded-[38px]", _chunkMZLWB5AHcjs.DEVICE_WALLPAPER_CLASS), children: [
|
|
17741
17754
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17742
17755
|
"div",
|
|
17743
17756
|
{
|
|
@@ -17929,7 +17942,7 @@ var TRIAL_TERM_ICONS = {
|
|
|
17929
17942
|
};
|
|
17930
17943
|
var DEFAULT_TRIAL_TERMS = ["cancel", "length", "noContract"];
|
|
17931
17944
|
function trialBenefits(trialDays, terms = DEFAULT_TRIAL_TERMS) {
|
|
17932
|
-
const labels =
|
|
17945
|
+
const labels = _chunkWUYL4BMDcjs.trialLabels.call(void 0, trialDays);
|
|
17933
17946
|
return terms.flatMap((term) => {
|
|
17934
17947
|
const label = labels[term];
|
|
17935
17948
|
return label ? [{ icon: TRIAL_TERM_ICONS[term], label }] : [];
|
|
@@ -20086,9 +20099,9 @@ function ChangelogManager({
|
|
|
20086
20099
|
] }),
|
|
20087
20100
|
tagOptions && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-1", children: [
|
|
20088
20101
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFL2RMEDXcjs.Label, { className: "text-ods-text-secondary", children: tagLabel }),
|
|
20089
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
20090
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20091
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20102
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.Select, { value: _nullishCoalesce(entry.tag, () => ( "")), onValueChange: (value) => updateEntry(index, "tag", value), children: [
|
|
20103
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { className: "bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, { placeholder: tagLabel }) }),
|
|
20104
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { children: tagOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
20092
20105
|
] })
|
|
20093
20106
|
] })
|
|
20094
20107
|
] })
|
|
@@ -21864,17 +21877,17 @@ function MediaGalleryManager({
|
|
|
21864
21877
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
21865
21878
|
isVideoItem(item) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Video, { className: "h-5 w-5 text-ods-text-secondary" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Image, { className: "h-5 w-5 text-ods-text-secondary" }),
|
|
21866
21879
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21867
|
-
|
|
21880
|
+
_chunkMZLWB5AHcjs.Select,
|
|
21868
21881
|
{
|
|
21869
21882
|
value: item.media_type,
|
|
21870
21883
|
onValueChange: (value) => update(index, { media_type: value }),
|
|
21871
21884
|
children: [
|
|
21872
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21873
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21874
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21875
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21876
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21877
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21885
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { className: "h-8 bg-ods-bg text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, {}) }),
|
|
21886
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { className: "bg-ods-card", children: [
|
|
21887
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "image", children: "Image" }),
|
|
21888
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "video", children: "Video" }),
|
|
21889
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "screenshot", children: "Screenshot" }),
|
|
21890
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "demo", children: "Demo" })
|
|
21878
21891
|
] })
|
|
21879
21892
|
]
|
|
21880
21893
|
}
|
|
@@ -22255,7 +22268,7 @@ var MODEL_TOKEN_RATES_COPY = {
|
|
|
22255
22268
|
empty: "No token rates are in effect right now."
|
|
22256
22269
|
};
|
|
22257
22270
|
function providerMark(providerType, stated, className) {
|
|
22258
|
-
const Mark = _chunk5P4TDV7Vcjs.findIcon.call(void 0,
|
|
22271
|
+
const Mark = _chunk5P4TDV7Vcjs.findIcon.call(void 0, _chunkWUYL4BMDcjs.aiProvider.call(void 0, providerType, { icon: stated }).icon);
|
|
22259
22272
|
return Mark ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Mark, { className }) : void 0;
|
|
22260
22273
|
}
|
|
22261
22274
|
var PAD_X = "px-[var(--spacing-system-s)]";
|
|
@@ -22273,7 +22286,7 @@ var UNIT_LINE_CLASS = _chunk65VVJSQZcjs.cn.call(void 0,
|
|
|
22273
22286
|
var TABS_ROW_CLASS = _chunk65VVJSQZcjs.cn.call(void 0, "shrink-0 border-b border-ods-border py-[var(--spacing-system-xs)]", PAD_X);
|
|
22274
22287
|
var NUMBER_CELL = "w-16 shrink-0 whitespace-nowrap text-right tabular-nums";
|
|
22275
22288
|
function useProviderGroup(rates) {
|
|
22276
|
-
const groups =
|
|
22289
|
+
const groups = _chunkWUYL4BMDcjs.groupTokenRatesByProvider.call(void 0, rates);
|
|
22277
22290
|
const [picked, setPicked] = _react.useState.call(void 0, null);
|
|
22278
22291
|
return { groups, group: _nullishCoalesce(groups.find((candidate) => candidate.providerType === picked), () => ( groups[0])), setPicked };
|
|
22279
22292
|
}
|
|
@@ -22284,7 +22297,7 @@ function ProviderTabs({
|
|
|
22284
22297
|
className
|
|
22285
22298
|
}) {
|
|
22286
22299
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22287
|
-
|
|
22300
|
+
_chunkNZELWPKOcjs.TabSelector,
|
|
22288
22301
|
{
|
|
22289
22302
|
variant: "secondary",
|
|
22290
22303
|
scrollable: true,
|
|
@@ -22292,7 +22305,7 @@ function ProviderTabs({
|
|
|
22292
22305
|
onValueChange,
|
|
22293
22306
|
items: groups.map((candidate) => ({
|
|
22294
22307
|
id: candidate.providerType,
|
|
22295
|
-
label:
|
|
22308
|
+
label: _chunkWUYL4BMDcjs.tokenRateProviderLabel.call(void 0, candidate.providerType, _optionalChain([candidate, 'access', _447 => _447.rates, 'access', _448 => _448[0], 'optionalAccess', _449 => _449.providerLabel])),
|
|
22296
22309
|
icon: providerMark(candidate.providerType, _optionalChain([candidate, 'access', _450 => _450.rates, 'access', _451 => _451[0], 'optionalAccess', _452 => _452.providerIcon]), "size-full")
|
|
22297
22310
|
})),
|
|
22298
22311
|
className
|
|
@@ -22370,8 +22383,8 @@ function ModelTokenRatesTable({ rates }) {
|
|
|
22370
22383
|
] }),
|
|
22371
22384
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { role: "rowgroup", className: "min-h-0 flex-1 overflow-y-auto", children: group.rates.map((rate) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { role: "row", className: BODY_ROW_CLASS, children: [
|
|
22372
22385
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "rowheader", className: "min-w-0 flex-1 truncate", children: rate.displayName || rate.modelName }),
|
|
22373
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children:
|
|
22374
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children:
|
|
22386
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunkWUYL4BMDcjs.formatTokenRate.call(void 0, rate.inputTokenRate) }),
|
|
22387
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunkWUYL4BMDcjs.formatTokenRate.call(void 0, rate.outputTokenRate) })
|
|
22375
22388
|
] }, rate.modelName)) })
|
|
22376
22389
|
] }),
|
|
22377
22390
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: UNIT_LINE_CLASS, children: MODEL_TOKEN_RATES_COPY.unit })
|
|
@@ -22421,7 +22434,7 @@ function modelOption(rate) {
|
|
|
22421
22434
|
return {
|
|
22422
22435
|
label: rate.displayName || rate.modelName,
|
|
22423
22436
|
value: rate.modelName,
|
|
22424
|
-
description:
|
|
22437
|
+
description: _chunkWUYL4BMDcjs.tokenRateProviderLabel.call(void 0, rate.providerType, rate.providerLabel),
|
|
22425
22438
|
icon: providerMark(rate.providerType, rate.providerIcon, "size-full text-ods-text-secondary")
|
|
22426
22439
|
};
|
|
22427
22440
|
}
|
|
@@ -22475,8 +22488,8 @@ function ModelTokenExchange({
|
|
|
22475
22488
|
const [chosen, setChosen] = _react.useState.call(void 0, null);
|
|
22476
22489
|
const balance = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(chosen, () => ( defaultAmount)), () => ( _optionalChain([tokenPrice, 'optionalAccess', _453 => _453.tokens]))), () => ( MODEL_TOKEN_EXCHANGE_BALANCE));
|
|
22477
22490
|
const max = Math.max(amountRange.max, balance, ...presets.map((preset) => preset.tokens));
|
|
22478
|
-
const tokens =
|
|
22479
|
-
const cost =
|
|
22491
|
+
const tokens = _chunkWUYL4BMDcjs.formatTokenAmount.call(void 0, balance);
|
|
22492
|
+
const cost = _chunkWUYL4BMDcjs.tokenCost.call(void 0, balance, tokenPrice);
|
|
22480
22493
|
const balancePrice = cost === null ? null : _chunkHY6BCZH7cjs.formatPrice.call(void 0, cost);
|
|
22481
22494
|
const model = rate ? rate.displayName || rate.modelName : "";
|
|
22482
22495
|
const options = models.map(modelOption);
|
|
@@ -22518,7 +22531,7 @@ function ModelTokenExchange({
|
|
|
22518
22531
|
variant: preset.tokens === balance ? "accent" : "outline",
|
|
22519
22532
|
size: "small",
|
|
22520
22533
|
onClick: () => setChosen(preset.tokens),
|
|
22521
|
-
children: copy.buy.preset(
|
|
22534
|
+
children: copy.buy.preset(_chunkWUYL4BMDcjs.formatTokenAmount.call(void 0, preset.tokens), preset.label)
|
|
22522
22535
|
},
|
|
22523
22536
|
preset.label
|
|
22524
22537
|
)) })
|
|
@@ -22535,7 +22548,7 @@ function ModelTokenExchange({
|
|
|
22535
22548
|
const stated = _nullishCoalesce(models.find((option) => option.providerType === providerType), () => ( (_optionalChain([rate, 'optionalAccess', _454 => _454.providerType]) === providerType ? rate : null)));
|
|
22536
22549
|
return {
|
|
22537
22550
|
id: providerType,
|
|
22538
|
-
name:
|
|
22551
|
+
name: _chunkWUYL4BMDcjs.tokenRateProviderLabel.call(void 0, providerType, _optionalChain([stated, 'optionalAccess', _455 => _455.providerLabel])),
|
|
22539
22552
|
icon: providerMark(providerType, _optionalChain([stated, 'optionalAccess', _456 => _456.providerIcon]), "size-8 text-ods-text-secondary")
|
|
22540
22553
|
};
|
|
22541
22554
|
}),
|
|
@@ -22547,7 +22560,7 @@ function ModelTokenExchange({
|
|
|
22547
22560
|
}
|
|
22548
22561
|
),
|
|
22549
22562
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22550
|
-
|
|
22563
|
+
_chunkMZLWB5AHcjs.Autocomplete,
|
|
22551
22564
|
{
|
|
22552
22565
|
fieldLoading: loading,
|
|
22553
22566
|
label: copy.use.model,
|
|
@@ -22574,7 +22587,7 @@ function ModelTokenExchange({
|
|
|
22574
22587
|
{
|
|
22575
22588
|
size: "plain",
|
|
22576
22589
|
loading,
|
|
22577
|
-
figure:
|
|
22590
|
+
figure: _chunkWUYL4BMDcjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _461 => _461.inputTokenRate])),
|
|
22578
22591
|
words: copy.charge.input
|
|
22579
22592
|
}
|
|
22580
22593
|
),
|
|
@@ -22583,7 +22596,7 @@ function ModelTokenExchange({
|
|
|
22583
22596
|
{
|
|
22584
22597
|
size: "plain",
|
|
22585
22598
|
loading,
|
|
22586
|
-
figure:
|
|
22599
|
+
figure: _chunkWUYL4BMDcjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _462 => _462.outputTokenRate])),
|
|
22587
22600
|
words: copy.charge.output
|
|
22588
22601
|
}
|
|
22589
22602
|
)
|
|
@@ -22595,9 +22608,9 @@ function ModelTokenExchange({
|
|
|
22595
22608
|
className: "mt-auto flex flex-col rounded-md border border-ods-accent bg-ods-bg p-[var(--spacing-system-mf)]",
|
|
22596
22609
|
children: [
|
|
22597
22610
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[2lh] text-ods-text-secondary text-h4", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-full max-w-xs" }) : copy.charge.so(_nullishCoalesce(balancePrice, () => ( copy.buy.tokens(tokens))), model) }),
|
|
22598
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] whitespace-nowrap tabular-nums text-ods-text-primary text-h1", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-40" }) :
|
|
22611
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] whitespace-nowrap tabular-nums text-ods-text-primary text-h1", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-40" }) : _chunkWUYL4BMDcjs.formatTokenAmount.call(void 0, _chunkWUYL4BMDcjs.tokensForBalance.call(void 0, balance, rate.inputTokenRate)) }),
|
|
22599
22612
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-primary text-h3", children: copy.charge.read }),
|
|
22600
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-secondary text-h4", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-48" }) : copy.charge.orWritten(
|
|
22613
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-secondary text-h4", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-48" }) : copy.charge.orWritten(_chunkWUYL4BMDcjs.formatTokenAmount.call(void 0, _chunkWUYL4BMDcjs.tokensForBalance.call(void 0, balance, rate.outputTokenRate))) })
|
|
22601
22614
|
]
|
|
22602
22615
|
}
|
|
22603
22616
|
)
|
|
@@ -23136,14 +23149,14 @@ var ConfidenceBadge = ({
|
|
|
23136
23149
|
size = "sm",
|
|
23137
23150
|
className
|
|
23138
23151
|
}) => {
|
|
23139
|
-
const level =
|
|
23152
|
+
const level = _chunkWUYL4BMDcjs.getConfidenceLevel.call(void 0, confidence);
|
|
23140
23153
|
if (level === "none") {
|
|
23141
23154
|
return null;
|
|
23142
23155
|
}
|
|
23143
|
-
const label =
|
|
23144
|
-
const borderClass =
|
|
23145
|
-
const textClass =
|
|
23146
|
-
const bgClass =
|
|
23156
|
+
const label = _chunkWUYL4BMDcjs.getConfidenceLabel.call(void 0, confidence);
|
|
23157
|
+
const borderClass = _chunkWUYL4BMDcjs.getConfidenceBorderClass.call(void 0, confidence);
|
|
23158
|
+
const textClass = _chunkWUYL4BMDcjs.getConfidenceTextClass.call(void 0, confidence);
|
|
23159
|
+
const bgClass = _chunkWUYL4BMDcjs.getConfidenceBgClass.call(void 0, confidence);
|
|
23147
23160
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23148
23161
|
"span",
|
|
23149
23162
|
{
|
|
@@ -23194,9 +23207,9 @@ function SEOEditorPreview({
|
|
|
23194
23207
|
const [isUploading, setIsUploading] = _react.useState.call(void 0, false);
|
|
23195
23208
|
const [fileInputRef, setFileInputRef] = _react.useState.call(void 0, null);
|
|
23196
23209
|
const seoTitleLength = (seoTitle || "").length;
|
|
23197
|
-
const seoTitleTooLong = seoTitleLength >
|
|
23210
|
+
const seoTitleTooLong = seoTitleLength > _chunkWUYL4BMDcjs.SEO_TITLE_MAX_LENGTH;
|
|
23198
23211
|
const seoDescriptionLength = (seoDescription || "").length;
|
|
23199
|
-
const seoDescriptionTooLong = seoDescriptionLength >
|
|
23212
|
+
const seoDescriptionTooLong = seoDescriptionLength > _chunkWUYL4BMDcjs.SEO_DESCRIPTION_MAX_LENGTH;
|
|
23200
23213
|
const displayTitle = seoTitle.trim() || title || "Untitled";
|
|
23201
23214
|
const displayDescription = seoDescription.trim() || summary || "No description";
|
|
23202
23215
|
const hasOgImage = ogImageUrl.trim();
|
|
@@ -23221,10 +23234,10 @@ function SEOEditorPreview({
|
|
|
23221
23234
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
23222
23235
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
23223
23236
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23224
|
-
|
|
23237
|
+
_chunkWUYL4BMDcjs.Field,
|
|
23225
23238
|
{
|
|
23226
23239
|
label: "SEO Title",
|
|
23227
|
-
error: seoTitleTooLong ? `Too long: search engines may truncate this title (keep it under ${
|
|
23240
|
+
error: seoTitleTooLong ? `Too long: search engines may truncate this title (keep it under ${_chunkWUYL4BMDcjs.SEO_TITLE_MAX_LENGTH})` : null,
|
|
23228
23241
|
labelExtras: aiConfidenceSeoTitle !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
23229
23242
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
|
|
23230
23243
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ConfidenceBadge, { confidence: aiConfidenceSeoTitle, showLabel: true, showPercentage: true, size: "sm" })
|
|
@@ -23239,7 +23252,7 @@ function SEOEditorPreview({
|
|
|
23239
23252
|
children: [
|
|
23240
23253
|
seoTitleLength,
|
|
23241
23254
|
"/",
|
|
23242
|
-
|
|
23255
|
+
_chunkWUYL4BMDcjs.SEO_TITLE_MAX_LENGTH
|
|
23243
23256
|
]
|
|
23244
23257
|
}
|
|
23245
23258
|
),
|
|
@@ -23250,7 +23263,7 @@ function SEOEditorPreview({
|
|
|
23250
23263
|
value: seoTitle || "",
|
|
23251
23264
|
onChange: (e) => onSeoTitleChange(e.target.value),
|
|
23252
23265
|
disabled,
|
|
23253
|
-
maxLength:
|
|
23266
|
+
maxLength: _chunkWUYL4BMDcjs.SEO_TITLE_MAX_LENGTH,
|
|
23254
23267
|
invalid: seoTitleTooLong,
|
|
23255
23268
|
placeholder: "Enter SEO meta title...",
|
|
23256
23269
|
className: "border-ods-border bg-ods-bg text-ods-text-primary"
|
|
@@ -23261,7 +23274,7 @@ function SEOEditorPreview({
|
|
|
23261
23274
|
!seoTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-accent text-h6", children: "Auto-populated from title" })
|
|
23262
23275
|
] }),
|
|
23263
23276
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23264
|
-
|
|
23277
|
+
_chunkWUYL4BMDcjs.Field,
|
|
23265
23278
|
{
|
|
23266
23279
|
label: "SEO Keywords",
|
|
23267
23280
|
labelExtras: aiConfidenceSeoKeywords !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -23293,10 +23306,10 @@ function SEOEditorPreview({
|
|
|
23293
23306
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
23294
23307
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
23295
23308
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23296
|
-
|
|
23309
|
+
_chunkWUYL4BMDcjs.Field,
|
|
23297
23310
|
{
|
|
23298
23311
|
label: "SEO Description",
|
|
23299
|
-
error: seoDescriptionTooLong ? `Too long: search engines may truncate this description (keep it under ${
|
|
23312
|
+
error: seoDescriptionTooLong ? `Too long: search engines may truncate this description (keep it under ${_chunkWUYL4BMDcjs.SEO_DESCRIPTION_MAX_LENGTH})` : null,
|
|
23300
23313
|
labelExtras: aiConfidenceSeoDescription !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
23301
23314
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
|
|
23302
23315
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -23319,7 +23332,7 @@ function SEOEditorPreview({
|
|
|
23319
23332
|
children: [
|
|
23320
23333
|
seoDescriptionLength,
|
|
23321
23334
|
"/",
|
|
23322
|
-
|
|
23335
|
+
_chunkWUYL4BMDcjs.SEO_DESCRIPTION_MAX_LENGTH
|
|
23323
23336
|
]
|
|
23324
23337
|
}
|
|
23325
23338
|
),
|
|
@@ -23330,7 +23343,7 @@ function SEOEditorPreview({
|
|
|
23330
23343
|
value: seoDescription || "",
|
|
23331
23344
|
onChange: (e) => onSeoDescriptionChange(e.target.value),
|
|
23332
23345
|
disabled,
|
|
23333
|
-
maxLength:
|
|
23346
|
+
maxLength: _chunkWUYL4BMDcjs.SEO_DESCRIPTION_MAX_LENGTH,
|
|
23334
23347
|
invalid: seoDescriptionTooLong,
|
|
23335
23348
|
placeholder: "Enter SEO meta description...",
|
|
23336
23349
|
className: _chunk65VVJSQZcjs.cn.call(void 0, "resize-none border-ods-border bg-ods-bg text-ods-text-primary", SEO_MEDIA_BOX_HEIGHT)
|
|
@@ -23483,7 +23496,7 @@ function socialIcon(platform) {
|
|
|
23483
23496
|
return _nullishCoalesce(_chunk5P4TDV7Vcjs.iconOf.call(void 0, SOCIAL_ICONS[platform]), () => ( void 0));
|
|
23484
23497
|
}
|
|
23485
23498
|
function renderSocialIcon(platform) {
|
|
23486
|
-
const key = _nullishCoalesce(
|
|
23499
|
+
const key = _nullishCoalesce(_chunkWUYL4BMDcjs.normalizeSocialPlatform.call(void 0, platform), () => ( "website"));
|
|
23487
23500
|
const icon = _nullishCoalesce(socialIcon(key), () => ( socialIcon("website")));
|
|
23488
23501
|
return icon ? _react.createElement.call(void 0, icon, { className: "h-5 w-5" }) : null;
|
|
23489
23502
|
}
|
|
@@ -23570,7 +23583,7 @@ function SocialLinksManager({
|
|
|
23570
23583
|
};
|
|
23571
23584
|
const getIcon = (link, platform) => {
|
|
23572
23585
|
const iconKey = _optionalChain([platform, 'optionalAccess', _472 => _472.icon_name]) || link.platform;
|
|
23573
|
-
const key =
|
|
23586
|
+
const key = _chunkWUYL4BMDcjs.normalizeSocialPlatform.call(void 0, iconKey);
|
|
23574
23587
|
if (!key) return null;
|
|
23575
23588
|
const icon = socialIcon(key);
|
|
23576
23589
|
return icon ? _react.createElement.call(void 0, icon, { className: "h-5 w-5 text-ods-text-secondary" }) : null;
|
|
@@ -23586,9 +23599,9 @@ function SocialLinksManager({
|
|
|
23586
23599
|
children: [
|
|
23587
23600
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-8 w-8 items-center justify-center", children: Icon }),
|
|
23588
23601
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid flex-1 grid-cols-2 gap-3", children: [
|
|
23589
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23590
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23591
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23602
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.Select, { value: link.platform, onValueChange: (value) => updateLink(index, "platform", value), children: [
|
|
23603
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, {}) }),
|
|
23604
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { children: platforms.map((p) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: p.name, children: p.display_name }, p.name)) })
|
|
23592
23605
|
] }) }),
|
|
23593
23606
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23594
23607
|
_chunkYXDHVHB2cjs.Input,
|
|
@@ -23606,15 +23619,15 @@ function SocialLinksManager({
|
|
|
23606
23619
|
)
|
|
23607
23620
|
] }),
|
|
23608
23621
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23609
|
-
|
|
23622
|
+
_chunkMZLWB5AHcjs.Select,
|
|
23610
23623
|
{
|
|
23611
23624
|
value: _nullishCoalesce(link.visibility, () => ( "external")),
|
|
23612
23625
|
onValueChange: (value) => updateLink(index, "visibility", value),
|
|
23613
23626
|
children: [
|
|
23614
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23615
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23616
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23617
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23627
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { className: "w-[120px] shrink-0", "aria-label": "Social link visibility", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, {}) }),
|
|
23628
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { children: [
|
|
23629
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "external", children: "Public" }),
|
|
23630
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "internal", children: "Internal" })
|
|
23618
23631
|
] })
|
|
23619
23632
|
]
|
|
23620
23633
|
}
|
|
@@ -24037,7 +24050,7 @@ function VideoBitesDisplay({
|
|
|
24037
24050
|
filterPublished = true,
|
|
24038
24051
|
showTitle = true
|
|
24039
24052
|
}) {
|
|
24040
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24053
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNZELWPKOcjs.VideoBitesStrip, { bites, title, filterPublished, showTitle });
|
|
24041
24054
|
}
|
|
24042
24055
|
|
|
24043
24056
|
// src/components/features/walkthrough-video.tsx
|
|
@@ -24067,7 +24080,7 @@ function WalkthroughVideo({
|
|
|
24067
24080
|
onOpenChange,
|
|
24068
24081
|
defaultOpen,
|
|
24069
24082
|
defaultOpenPaused,
|
|
24070
|
-
deepLinkParam =
|
|
24083
|
+
deepLinkParam = _chunkWUYL4BMDcjs.WALKTHROUGH_OPEN_QUERY_PARAM,
|
|
24071
24084
|
autoPlayCard = false,
|
|
24072
24085
|
label = "Play Demo Video",
|
|
24073
24086
|
placement,
|
|
@@ -24084,7 +24097,7 @@ function WalkthroughVideo({
|
|
|
24084
24097
|
const inline = placement === "inline";
|
|
24085
24098
|
const inScope = _chunkXFRBEXQNcjs.useLoadingScope.call(void 0, );
|
|
24086
24099
|
const dismissEnabled = dismissal !== false;
|
|
24087
|
-
const storageKey = dismissEnabled && dismissal.storageKey ||
|
|
24100
|
+
const storageKey = dismissEnabled && dismissal.storageKey || _chunkWUYL4BMDcjs.WALKTHROUGH_VIDEO_DISMISS_KEY;
|
|
24088
24101
|
const dismissalId = _optionalChain([video, 'optionalAccess', _478 => _478.id]) != null ? String(video.id) : "dismissed";
|
|
24089
24102
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
24090
24103
|
const [dismissed, setDismissed] = _react.useState.call(void 0, false);
|
|
@@ -24096,7 +24109,7 @@ function WalkthroughVideo({
|
|
|
24096
24109
|
let delayElapsed = false;
|
|
24097
24110
|
let interacted = inline;
|
|
24098
24111
|
const reveal = () => {
|
|
24099
|
-
if (dismissEnabled &&
|
|
24112
|
+
if (dismissEnabled && _chunkWUYL4BMDcjs.isWalkthroughDismissed.call(void 0, storageKey, dismissalId)) {
|
|
24100
24113
|
setDismissed(true);
|
|
24101
24114
|
return;
|
|
24102
24115
|
}
|
|
@@ -24133,7 +24146,7 @@ function WalkthroughVideo({
|
|
|
24133
24146
|
if (idleHandle !== null && typeof cic === "function") cic(idleHandle);
|
|
24134
24147
|
};
|
|
24135
24148
|
}, [appearDelayMs, dismissEnabled, storageKey, dismissalId, hasVideo, videoId, inline]);
|
|
24136
|
-
const hydrated =
|
|
24149
|
+
const hydrated = _chunkNZELWPKOcjs.useIsHydrated.call(void 0, );
|
|
24137
24150
|
const previewSuppressed = _react.useMemo.call(void 0, () => {
|
|
24138
24151
|
if (!hydrated) return false;
|
|
24139
24152
|
try {
|
|
@@ -24383,7 +24396,7 @@ function WalkthroughVideo({
|
|
|
24383
24396
|
(e) => {
|
|
24384
24397
|
e.stopPropagation();
|
|
24385
24398
|
pausePreviewNow();
|
|
24386
|
-
if (dismissEnabled)
|
|
24399
|
+
if (dismissEnabled) _chunkWUYL4BMDcjs.dismissWalkthrough.call(void 0, storageKey, dismissalId);
|
|
24387
24400
|
setDismissed(true);
|
|
24388
24401
|
},
|
|
24389
24402
|
[dismissEnabled, storageKey, dismissalId, pausePreviewNow]
|
|
@@ -24558,7 +24571,7 @@ function WalkthroughVideo({
|
|
|
24558
24571
|
`card-${embedUrlKey}`
|
|
24559
24572
|
) }),
|
|
24560
24573
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24561
|
-
|
|
24574
|
+
_chunkNZELWPKOcjs.CardHitLayer,
|
|
24562
24575
|
{
|
|
24563
24576
|
label: video.title ? `${label}: ${video.title}` : label,
|
|
24564
24577
|
onPointerDown: pausePreviewNow,
|
|
@@ -24730,7 +24743,7 @@ function useWalkthroughVideo(opts) {
|
|
|
24730
24743
|
const { endpoint, initialData, enabled: enabledGiven = true, transformCaptionsUrl } = opts;
|
|
24731
24744
|
const inScope = _chunkXFRBEXQNcjs.useLoadingScope.call(void 0, );
|
|
24732
24745
|
const enabled = enabledGiven && !inScope;
|
|
24733
|
-
const captions =
|
|
24746
|
+
const captions = _chunkNZELWPKOcjs.useCaptions.call(void 0, );
|
|
24734
24747
|
const query = _reactquery.useQuery.call(void 0, {
|
|
24735
24748
|
queryKey: ["walkthrough-video", endpoint],
|
|
24736
24749
|
enabled,
|
|
@@ -25382,19 +25395,19 @@ function HighlightVideoSection({
|
|
|
25382
25395
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-3 rounded-lg border border-ods-border bg-ods-card p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-4", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1", children: [
|
|
25383
25396
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFL2RMEDXcjs.Label, { children: "Target Duration" }),
|
|
25384
25397
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25385
|
-
|
|
25398
|
+
_chunkMZLWB5AHcjs.Select,
|
|
25386
25399
|
{
|
|
25387
25400
|
value: targetDurationSeconds.toString(),
|
|
25388
25401
|
onValueChange: (value) => onTargetDurationChange(parseInt(value)),
|
|
25389
25402
|
disabled,
|
|
25390
25403
|
children: [
|
|
25391
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25392
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25393
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25394
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25395
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25396
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25397
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25404
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { className: "mt-1 bg-ods-bg-surface", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, {}) }),
|
|
25405
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { className: "bg-ods-card", children: [
|
|
25406
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "60", children: "1 minute" }),
|
|
25407
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "120", children: "2 minutes" }),
|
|
25408
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "180", children: "3 minutes (Recommended)" }),
|
|
25409
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "240", children: "4 minutes" }),
|
|
25410
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "300", children: "5 minutes" })
|
|
25398
25411
|
] })
|
|
25399
25412
|
]
|
|
25400
25413
|
}
|
|
@@ -25479,20 +25492,20 @@ function HighlightConfigSection({
|
|
|
25479
25492
|
disabled = false,
|
|
25480
25493
|
className = ""
|
|
25481
25494
|
}) {
|
|
25482
|
-
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,
|
|
25483
|
-
|
|
25495
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `space-y-3 rounded-lg border border-ods-border bg-ods-card p-4 ${className}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWUYL4BMDcjs.Field, { label: "Target Duration", children: (f) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25496
|
+
_chunkMZLWB5AHcjs.Select,
|
|
25484
25497
|
{
|
|
25485
25498
|
value: targetDurationSeconds.toString(),
|
|
25486
25499
|
onValueChange: (value) => onTargetDurationChange(parseInt(value)),
|
|
25487
25500
|
disabled,
|
|
25488
25501
|
children: [
|
|
25489
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25490
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25491
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25492
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25493
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25494
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25495
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25502
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { id: f.id, className: "bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, {}) }),
|
|
25503
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { className: "bg-ods-card", children: [
|
|
25504
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "60", children: "1 minute" }),
|
|
25505
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "120", children: "2 minutes" }),
|
|
25506
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "180", children: "3 minutes (Recommended)" }),
|
|
25507
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "240", children: "4 minutes" }),
|
|
25508
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: "300", children: "5 minutes" })
|
|
25496
25509
|
] })
|
|
25497
25510
|
]
|
|
25498
25511
|
}
|
|
@@ -25580,7 +25593,7 @@ var AIStatusIndicator = ({
|
|
|
25580
25593
|
}) => {
|
|
25581
25594
|
const config = statusConfig[status];
|
|
25582
25595
|
const displayText = message || config.label;
|
|
25583
|
-
const confidenceLabel = showConfidence && confidence !== void 0 ? `${
|
|
25596
|
+
const confidenceLabel = showConfidence && confidence !== void 0 ? `${_chunkWUYL4BMDcjs.getConfidenceLabel.call(void 0, confidence)} (${confidence}%)` : null;
|
|
25584
25597
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "inline-flex items-center gap-2 rounded-lg px-3 py-1.5", config.bgColor, className), children: [
|
|
25585
25598
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25586
25599
|
_chunkUNFCRSYIcjs.SparklesIcon,
|
|
@@ -25588,7 +25601,7 @@ var AIStatusIndicator = ({
|
|
|
25588
25601
|
size: 16,
|
|
25589
25602
|
className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
25590
25603
|
status === "loading" && _chunkXFRBEXQNcjs.LIVE_PULSE_CLASS,
|
|
25591
|
-
confidence !== void 0 && status === "success" ?
|
|
25604
|
+
confidence !== void 0 && status === "success" ? _chunkWUYL4BMDcjs.getConfidenceTextClass.call(void 0, confidence) : config.color
|
|
25592
25605
|
)
|
|
25593
25606
|
}
|
|
25594
25607
|
),
|
|
@@ -25597,7 +25610,7 @@ var AIStatusIndicator = ({
|
|
|
25597
25610
|
{
|
|
25598
25611
|
className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
25599
25612
|
"text-h6",
|
|
25600
|
-
confidence !== void 0 && status === "success" ?
|
|
25613
|
+
confidence !== void 0 && status === "success" ? _chunkWUYL4BMDcjs.getConfidenceTextClass.call(void 0, confidence) : config.color
|
|
25601
25614
|
),
|
|
25602
25615
|
children: displayText
|
|
25603
25616
|
}
|
|
@@ -25607,8 +25620,8 @@ var AIStatusIndicator = ({
|
|
|
25607
25620
|
{
|
|
25608
25621
|
className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
25609
25622
|
"rounded-full border px-2 py-0.5 text-h6",
|
|
25610
|
-
|
|
25611
|
-
|
|
25623
|
+
_chunkWUYL4BMDcjs.getConfidenceBorderClass.call(void 0, confidence),
|
|
25624
|
+
_chunkWUYL4BMDcjs.getConfidenceTextClass.call(void 0, confidence)
|
|
25612
25625
|
),
|
|
25613
25626
|
children: confidenceLabel
|
|
25614
25627
|
}
|
|
@@ -26480,8 +26493,8 @@ function PoliciesTable({
|
|
|
26480
26493
|
accessorKey: "name",
|
|
26481
26494
|
header: "Name",
|
|
26482
26495
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-h-[60px] min-w-0 flex-col justify-center gap-1 py-2", children: [
|
|
26483
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26484
|
-
row.original.description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26496
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: row.original.name }),
|
|
26497
|
+
row.original.description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: row.original.description })
|
|
26485
26498
|
] }),
|
|
26486
26499
|
meta: { width: "flex-1 min-w-0" }
|
|
26487
26500
|
},
|
|
@@ -26535,7 +26548,7 @@ function PoliciesTable({
|
|
|
26535
26548
|
cell: ({ row }) => row.original.href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26536
26549
|
_chunkTF5D5MNOcjs.Button,
|
|
26537
26550
|
{
|
|
26538
|
-
onClick:
|
|
26551
|
+
onClick: _chunkWUYL4BMDcjs.openInNewTab.call(void 0, row.original.href),
|
|
26539
26552
|
variant: "outline",
|
|
26540
26553
|
size: "icon",
|
|
26541
26554
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
@@ -26764,7 +26777,7 @@ function usersCountLabel(count) {
|
|
|
26764
26777
|
function TenantAccessCell({ accessState, lastReadAt: lastReadAt2, now }) {
|
|
26765
26778
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26766
26779
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { ...accessStateTag(accessState), className: "self-start" }),
|
|
26767
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26780
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: `Last read: ${formatLastRead(lastReadAt2, now)}` })
|
|
26768
26781
|
] });
|
|
26769
26782
|
}
|
|
26770
26783
|
|
|
@@ -26775,9 +26788,9 @@ function TenantCell({ provider, name, domain }) {
|
|
|
26775
26788
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
26776
26789
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26777
26790
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Logo, { size: 24, role: "img", "aria-label": label, className: "shrink-0" }),
|
|
26778
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26791
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: name })
|
|
26779
26792
|
] }),
|
|
26780
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26793
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(domain, () => ( TENANT_EMPTY_VALUE)) })
|
|
26781
26794
|
] });
|
|
26782
26795
|
}
|
|
26783
26796
|
|
|
@@ -26787,9 +26800,9 @@ function TenantCustomerCell({ name, imageUrl, userCount }) {
|
|
|
26787
26800
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
26788
26801
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26789
26802
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.SquareAvatar, { src: _nullishCoalesce(imageUrl, () => ( void 0)), alt: name, fallback: name, size: "xs", variant: "square" }),
|
|
26790
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26803
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: name })
|
|
26791
26804
|
] }),
|
|
26792
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26805
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: usersCountLabel(userCount) })
|
|
26793
26806
|
] });
|
|
26794
26807
|
}
|
|
26795
26808
|
|
|
@@ -26861,7 +26874,7 @@ function TenantsTableView({
|
|
|
26861
26874
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26862
26875
|
_chunkTF5D5MNOcjs.Button,
|
|
26863
26876
|
{
|
|
26864
|
-
onClick:
|
|
26877
|
+
onClick: _chunkWUYL4BMDcjs.openInNewTab.call(void 0, getHref(row.original)),
|
|
26865
26878
|
variant: "outline",
|
|
26866
26879
|
size: "icon",
|
|
26867
26880
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
@@ -26942,7 +26955,7 @@ function WaitlistForm({
|
|
|
26942
26955
|
const { toast } = _chunkXVFM6SJAcjs.useToast.call(void 0, );
|
|
26943
26956
|
const { honeypotInputProps, getSignals, resetSignals } = _chunkXVFM6SJAcjs.useHumanitySignals.call(void 0, );
|
|
26944
26957
|
const [smsConsent, setSmsConsent] = _react.useState.call(void 0, false);
|
|
26945
|
-
const isClient =
|
|
26958
|
+
const isClient = _chunkNZELWPKOcjs.useIsHydrated.call(void 0, );
|
|
26946
26959
|
const [isPhoneInvalid, setIsPhoneInvalid] = _react.useState.call(void 0, false);
|
|
26947
26960
|
const [showConsentError, setShowConsentError] = _react.useState.call(void 0, false);
|
|
26948
26961
|
const rescue = _chunkXVFM6SJAcjs.useFormRescue.call(void 0, {
|
|
@@ -26957,7 +26970,7 @@ function WaitlistForm({
|
|
|
26957
26970
|
_react.useEffect.call(void 0, () => {
|
|
26958
26971
|
rescue.track({ email, phone }, null);
|
|
26959
26972
|
}, [email, phone, rescue]);
|
|
26960
|
-
const isMailDomainGeneric =
|
|
26973
|
+
const isMailDomainGeneric = _chunkWUYL4BMDcjs.hasGenericEmailDomain.call(void 0, email);
|
|
26961
26974
|
const [syncedDefaultEmail, setSyncedDefaultEmail] = _react.useState.call(void 0, defaultEmail);
|
|
26962
26975
|
if (syncedDefaultEmail !== defaultEmail) {
|
|
26963
26976
|
setSyncedDefaultEmail(defaultEmail);
|
|
@@ -26991,7 +27004,7 @@ function WaitlistForm({
|
|
|
26991
27004
|
setShowConsentError(true);
|
|
26992
27005
|
return;
|
|
26993
27006
|
}
|
|
26994
|
-
const finalPhone = phone ?
|
|
27007
|
+
const finalPhone = phone ? _chunkWUYL4BMDcjs.formatPhoneE164.call(void 0, phone, countryCode) : void 0;
|
|
26995
27008
|
try {
|
|
26996
27009
|
await onRegister(email, finalPhone, getSignals(), rescue.submitFields());
|
|
26997
27010
|
rescue.complete();
|
|
@@ -28674,7 +28687,7 @@ function TimeTrackerPanel({
|
|
|
28674
28687
|
] }),
|
|
28675
28688
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "grid gap-[var(--spacing-system-m)]", showCustomer && "grid-cols-2"), children: [
|
|
28676
28689
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28677
|
-
|
|
28690
|
+
_chunkMZLWB5AHcjs.Autocomplete,
|
|
28678
28691
|
{
|
|
28679
28692
|
value: selectedTicketId,
|
|
28680
28693
|
onChange: onSelectedTicketChange,
|
|
@@ -28690,7 +28703,7 @@ function TimeTrackerPanel({
|
|
|
28690
28703
|
}
|
|
28691
28704
|
),
|
|
28692
28705
|
showCustomer && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28693
|
-
|
|
28706
|
+
_chunkMZLWB5AHcjs.Autocomplete,
|
|
28694
28707
|
{
|
|
28695
28708
|
value: _nullishCoalesce(selectedCustomerId, () => ( null)),
|
|
28696
28709
|
onChange: onSelectedCustomerChange,
|
|
@@ -29130,7 +29143,7 @@ function getDeviceStatusConfig(status) {
|
|
|
29130
29143
|
}
|
|
29131
29144
|
}
|
|
29132
29145
|
function getDeviceOperatingSystem(osType) {
|
|
29133
|
-
return
|
|
29146
|
+
return _chunkWUYL4BMDcjs.getOSPlatformId.call(void 0, osType);
|
|
29134
29147
|
}
|
|
29135
29148
|
|
|
29136
29149
|
// src/components/features/devices/device-statuses.ts
|
|
@@ -29414,7 +29427,7 @@ function DevicesTableBody({
|
|
|
29414
29427
|
function OrganizationCell({ device }) {
|
|
29415
29428
|
const fullImageUrl = useDeviceImageUrl(device.organizationImageUrl, device.organizationImageHash);
|
|
29416
29429
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
29417
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29430
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.EntityImage, { src: fullImageUrl, alt: device.organization || "Customer", className: "size-12 content-md:size-12" }),
|
|
29418
29431
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "break-words text-ods-text-primary text-h4", children: device.organization || "" }) })
|
|
29419
29432
|
] });
|
|
29420
29433
|
}
|
|
@@ -29458,7 +29471,7 @@ function getDeviceTableColumns(deviceFilters, filtersPending) {
|
|
|
29458
29471
|
const device = row.original;
|
|
29459
29472
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative box-border flex h-20 w-full shrink-0 content-stretch items-center justify-start gap-4 py-0", children: [
|
|
29460
29473
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeviceTypeTile, { type: device.type }),
|
|
29461
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29474
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: getDeviceName(device) }) })
|
|
29462
29475
|
] });
|
|
29463
29476
|
},
|
|
29464
29477
|
meta: { width: "flex-1 content-md:w-1/4" }
|
|
@@ -29629,7 +29642,7 @@ function CustomerCell({ device }) {
|
|
|
29629
29642
|
const fullImageUrl = useDeviceImageUrl(device.organizationImageUrl, device.organizationImageHash);
|
|
29630
29643
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
29631
29644
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29632
|
-
|
|
29645
|
+
_chunkMZLWB5AHcjs.EntityImage,
|
|
29633
29646
|
{
|
|
29634
29647
|
src: fullImageUrl,
|
|
29635
29648
|
alt: device.organization || "Customer",
|
|
@@ -29637,8 +29650,8 @@ function CustomerCell({ device }) {
|
|
|
29637
29650
|
}
|
|
29638
29651
|
),
|
|
29639
29652
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
29640
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29641
|
-
device.organizationEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29653
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: device.organization || "" }),
|
|
29654
|
+
device.organizationEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: device.organizationEmail })
|
|
29642
29655
|
] })
|
|
29643
29656
|
] });
|
|
29644
29657
|
}
|
|
@@ -29933,8 +29946,8 @@ function DeviceSelector({
|
|
|
29933
29946
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 items-center gap-3", children: [
|
|
29934
29947
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeviceTypeTile, { type: device.type }),
|
|
29935
29948
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col", children: [
|
|
29936
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29937
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29949
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: getDeviceName(device) }),
|
|
29950
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: formatLastOnline(lastSeen) })
|
|
29938
29951
|
] })
|
|
29939
29952
|
] });
|
|
29940
29953
|
},
|
|
@@ -30726,7 +30739,7 @@ function DevicesPanelView({
|
|
|
30726
30739
|
] })
|
|
30727
30740
|
] });
|
|
30728
30741
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30729
|
-
|
|
30742
|
+
_chunkMZLWB5AHcjs.PageLayout,
|
|
30730
30743
|
{
|
|
30731
30744
|
title,
|
|
30732
30745
|
backButton,
|
|
@@ -30734,7 +30747,7 @@ function DevicesPanelView({
|
|
|
30734
30747
|
actionsVariant: "icon-buttons",
|
|
30735
30748
|
className,
|
|
30736
30749
|
selector: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30737
|
-
|
|
30750
|
+
_chunkNZELWPKOcjs.TabSelector,
|
|
30738
30751
|
{
|
|
30739
30752
|
value: viewMode,
|
|
30740
30753
|
onValueChange: (value) => _optionalChain([onViewModeChange, 'optionalCall', _659 => _659(value)]),
|
|
@@ -30800,7 +30813,7 @@ var PACKAGE_SEARCH_LABEL = "Software Name";
|
|
|
30800
30813
|
var PACKAGE_SEARCH_PLACEHOLDER = "Search for Software";
|
|
30801
30814
|
function PackageSearchFieldPlaceholder({ error }) {
|
|
30802
30815
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30803
|
-
|
|
30816
|
+
_chunkMZLWB5AHcjs.Autocomplete,
|
|
30804
30817
|
{
|
|
30805
30818
|
label: PACKAGE_SEARCH_LABEL,
|
|
30806
30819
|
labelVariant: "large",
|
|
@@ -30855,16 +30868,16 @@ function SoftwareScheduleFields({
|
|
|
30855
30868
|
] }),
|
|
30856
30869
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
30857
30870
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFL2RMEDXcjs.Label, { className: "text-h4", children: "Time" }),
|
|
30858
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30859
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30860
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30871
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.Select, { value: time, onValueChange: onTimeChange, children: [
|
|
30872
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, { placeholder: "Select time" }) }),
|
|
30873
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { children: timeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
30861
30874
|
] })
|
|
30862
30875
|
] }),
|
|
30863
30876
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
30864
30877
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFL2RMEDXcjs.Label, { className: "text-h4", children: "Timezone" }),
|
|
30865
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30866
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30867
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30878
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.Select, { value: timeReference, onValueChange: (value) => onTimeReferenceChange(value), children: [
|
|
30879
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, {}) }),
|
|
30880
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { children: timing.timeReferenceOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
30868
30881
|
] })
|
|
30869
30882
|
] })
|
|
30870
30883
|
]
|
|
@@ -30930,22 +30943,22 @@ function newSoftwareRow(key) {
|
|
|
30930
30943
|
|
|
30931
30944
|
function InfoCell2({ value, label }) {
|
|
30932
30945
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
30933
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: value ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30946
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: value ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: value }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1 text-h4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary", children: "\u2014" }) }) }),
|
|
30934
30947
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: label })
|
|
30935
30948
|
] });
|
|
30936
30949
|
}
|
|
30937
30950
|
function SoftwareRowFields({ row, removable, onChange, onRemove, renderPackageSearch }) {
|
|
30938
30951
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-l)] rounded-md border border-ods-border bg-ods-bg p-[var(--spacing-system-l)] content-lg:flex-row content-lg:items-end", children: [
|
|
30939
30952
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30940
|
-
|
|
30953
|
+
_chunkMZLWB5AHcjs.Select,
|
|
30941
30954
|
{
|
|
30942
30955
|
value: row.packageManager,
|
|
30943
30956
|
onValueChange: (value) => onChange({ ...row, packageManager: value, pkg: null }),
|
|
30944
30957
|
children: [
|
|
30945
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30946
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30958
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { label: "Package Manager", labelVariant: "large", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, {}) }),
|
|
30959
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { children: PACKAGE_MANAGERS.map((manager) => {
|
|
30947
30960
|
const Icon = PACKAGE_MANAGER_ICON[manager];
|
|
30948
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30961
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: manager, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
30949
30962
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { size: 20, className: "shrink-0 text-ods-text-secondary" }),
|
|
30950
30963
|
PACKAGE_MANAGER_LABEL[manager]
|
|
30951
30964
|
] }) }, manager);
|
|
@@ -31043,7 +31056,7 @@ function SoftwareActionForm({
|
|
|
31043
31056
|
}
|
|
31044
31057
|
);
|
|
31045
31058
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
31046
|
-
|
|
31059
|
+
_chunkMZLWB5AHcjs.PageLayout,
|
|
31047
31060
|
{
|
|
31048
31061
|
title: copy.formTitle,
|
|
31049
31062
|
backButton: onBack ? { label: "Back", onClick: onBack } : void 0,
|
|
@@ -31132,7 +31145,7 @@ function LogDrawer({
|
|
|
31132
31145
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-h-0 flex-1 space-y-4 overflow-y-auto", children: [
|
|
31133
31146
|
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AppLayoutDrawerDescription, { asChild: true, className: "leading-6 text-ods-text-primary text-h4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: description }) }),
|
|
31134
31147
|
infoFields && infoFields.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid grid-cols-1 gap-3 rounded-[6px] border border-ods-border bg-ods-card p-4", children: infoFields.map((field) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-0.5", children: [
|
|
31135
|
-
typeof field.value === "string" ? field.value === "" || field.value === EMPTY_MARK ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-h4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmptyMark, {}) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31148
|
+
typeof field.value === "string" ? field.value === "" || field.value === EMPTY_MARK ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-h4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmptyMark, {}) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: field.value }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h4", children: field.value === null || field.value === void 0 || field.value === false ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmptyMark, {}) : field.value }),
|
|
31136
31149
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: field.label })
|
|
31137
31150
|
] }, typeof field.label === "string" ? field.label : "")) }),
|
|
31138
31151
|
children
|
|
@@ -31180,7 +31193,7 @@ function LogsPageView({
|
|
|
31180
31193
|
],
|
|
31181
31194
|
[onRefresh]
|
|
31182
31195
|
);
|
|
31183
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
31196
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.PageLayout, { title: "Logs", actions, showHeader, className, children: [
|
|
31184
31197
|
!hideSearch && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "sticky top-0 z-20 -my-[var(--spacing-system-l)] flex items-center gap-[var(--spacing-system-m)] bg-ods-bg py-[var(--spacing-system-l)]", children: [
|
|
31185
31198
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31186
31199
|
_chunkYXDHVHB2cjs.Input,
|
|
@@ -31268,11 +31281,11 @@ var ToolBadge = ({
|
|
|
31268
31281
|
iconClassName
|
|
31269
31282
|
}) => {
|
|
31270
31283
|
const loading = _chunkXFRBEXQNcjs.useLoadingScope.call(void 0, );
|
|
31271
|
-
const text = _nullishCoalesce(label, () => ( (toolType ?
|
|
31284
|
+
const text = _nullishCoalesce(label, () => ( (toolType ? _chunkWUYL4BMDcjs.getToolLabel.call(void 0, toolType) : "")));
|
|
31272
31285
|
const mark = _nullishCoalesce(icon, () => ( (toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk57B5RUYDcjs.ToolIcon, { toolType, className: iconClassName, size: 16 }) : null)));
|
|
31273
31286
|
if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ToolBadgeSkeleton, { variant, icon: !!mark, className });
|
|
31274
31287
|
const linked = (node, linkClassName) => href && targetPlatform ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31275
|
-
|
|
31288
|
+
_chunkNZELWPKOcjs.NavLinkAnchorViaRuntime,
|
|
31276
31289
|
{
|
|
31277
31290
|
href,
|
|
31278
31291
|
targetPlatform,
|
|
@@ -31355,8 +31368,8 @@ function LogsTableView({
|
|
|
31355
31368
|
accessorKey: "logId",
|
|
31356
31369
|
header: logIdHeader ? () => logIdHeader : "Log ID",
|
|
31357
31370
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col justify-center", children: [
|
|
31358
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31359
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31371
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: row.original.timestamp }),
|
|
31372
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: row.original.logId })
|
|
31360
31373
|
] }),
|
|
31361
31374
|
enableSorting: false,
|
|
31362
31375
|
meta: { width: LOG_COLUMN_WIDTHS.logId, alwaysShowHeader: true }
|
|
@@ -31384,7 +31397,7 @@ function LogsTableView({
|
|
|
31384
31397
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31385
31398
|
ToolBadge,
|
|
31386
31399
|
{
|
|
31387
|
-
toolType:
|
|
31400
|
+
toolType: _chunkWUYL4BMDcjs.normalizeToolTypeWithFallback.call(void 0, row.original.source.toolType),
|
|
31388
31401
|
iconClassName: "h-4 w-4 content-md:h-6 content-md:w-6"
|
|
31389
31402
|
}
|
|
31390
31403
|
),
|
|
@@ -31396,7 +31409,7 @@ function LogsTableView({
|
|
|
31396
31409
|
filter: {
|
|
31397
31410
|
options: _nullishCoalesce(_optionalChain([facets, 'optionalAccess', _667 => _667.toolTypes, 'access', _668 => _668.map, 'call', _669 => _669((toolType) => ({
|
|
31398
31411
|
id: toolType,
|
|
31399
|
-
label:
|
|
31412
|
+
label: _chunkWUYL4BMDcjs.toToolLabel.call(void 0, toolType),
|
|
31400
31413
|
value: toolType
|
|
31401
31414
|
}))]), () => ( []))
|
|
31402
31415
|
}
|
|
@@ -31408,8 +31421,8 @@ function LogsTableView({
|
|
|
31408
31421
|
cell: ({ row }) => {
|
|
31409
31422
|
const { deviceName, organization } = logSourceLabels(row.original.device);
|
|
31410
31423
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-h-[60px] flex-col justify-center gap-1 py-2", children: [
|
|
31411
|
-
deviceName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31412
|
-
organization && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31424
|
+
deviceName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: deviceName }),
|
|
31425
|
+
organization && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: organization })
|
|
31413
31426
|
] });
|
|
31414
31427
|
},
|
|
31415
31428
|
enableSorting: false,
|
|
@@ -31423,7 +31436,7 @@ function LogsTableView({
|
|
|
31423
31436
|
{
|
|
31424
31437
|
accessorKey: "description",
|
|
31425
31438
|
header: "Log Details",
|
|
31426
|
-
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31439
|
+
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { lines: 3, className: "text-ods-text-secondary text-h6", children: row.original.description.title }),
|
|
31427
31440
|
enableSorting: false,
|
|
31428
31441
|
meta: { width: LOG_COLUMN_WIDTHS.description, hideAt: "lg" }
|
|
31429
31442
|
},
|
|
@@ -31454,7 +31467,7 @@ function LogsTableView({
|
|
|
31454
31467
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31455
31468
|
_chunkTF5D5MNOcjs.Button,
|
|
31456
31469
|
{
|
|
31457
|
-
onClick: getLogHref ?
|
|
31470
|
+
onClick: getLogHref ? _chunkWUYL4BMDcjs.openInNewTab.call(void 0, getLogHref(row.original)) : void 0,
|
|
31458
31471
|
variant: "outline",
|
|
31459
31472
|
size: "icon",
|
|
31460
31473
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
@@ -31683,8 +31696,8 @@ function ExecutionSourceBadge({ source, className }) {
|
|
|
31683
31696
|
}
|
|
31684
31697
|
function ExecutionTimestampCell({ timestamp, executionId }) {
|
|
31685
31698
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31686
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31687
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31699
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: timestamp }),
|
|
31700
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: executionId })
|
|
31688
31701
|
] });
|
|
31689
31702
|
}
|
|
31690
31703
|
function ExecutionStatusCell({ status }) {
|
|
@@ -31695,9 +31708,9 @@ function ExecutionDeviceCell({ name, organization }) {
|
|
|
31695
31708
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31696
31709
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-1", children: [
|
|
31697
31710
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPTK7GOIIcjs.MonitorIcon, { className: "size-6 shrink-0 text-ods-text-secondary" }),
|
|
31698
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31711
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: name }) : name })
|
|
31699
31712
|
] }),
|
|
31700
|
-
organization && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31713
|
+
organization && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: organization })
|
|
31701
31714
|
] });
|
|
31702
31715
|
}
|
|
31703
31716
|
function ExecutionInitiatorCell({
|
|
@@ -31710,15 +31723,15 @@ function ExecutionInitiatorCell({
|
|
|
31710
31723
|
avatar,
|
|
31711
31724
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
31712
31725
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
31713
|
-
typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31726
|
+
typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: name }) : name,
|
|
31714
31727
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExecutionSourceBadge, { source })
|
|
31715
31728
|
] }),
|
|
31716
|
-
scriptName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31729
|
+
scriptName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: scriptName })
|
|
31717
31730
|
] })
|
|
31718
31731
|
] });
|
|
31719
31732
|
}
|
|
31720
31733
|
function ExecutionResultCell({ result, empty = null }) {
|
|
31721
|
-
return result ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31734
|
+
return result ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { lines: 2, children: result }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: empty });
|
|
31722
31735
|
}
|
|
31723
31736
|
function ScriptExecutionResult({
|
|
31724
31737
|
result,
|
|
@@ -31736,14 +31749,14 @@ function ScriptExecutionResult({
|
|
|
31736
31749
|
|
|
31737
31750
|
function ScriptNameCell({ name, description }) {
|
|
31738
31751
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31739
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31740
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31752
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: name }),
|
|
31753
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: description })
|
|
31741
31754
|
] });
|
|
31742
31755
|
}
|
|
31743
31756
|
function ScheduleDateTimeCell({ date, time }) {
|
|
31744
31757
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31745
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31746
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31758
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: date }),
|
|
31759
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: time })
|
|
31747
31760
|
] });
|
|
31748
31761
|
}
|
|
31749
31762
|
|
|
@@ -31829,7 +31842,7 @@ function OpenInNewTabCell({ href }) {
|
|
|
31829
31842
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31830
31843
|
_chunkTF5D5MNOcjs.Button,
|
|
31831
31844
|
{
|
|
31832
|
-
onClick:
|
|
31845
|
+
onClick: _chunkWUYL4BMDcjs.openInNewTab.call(void 0, href),
|
|
31833
31846
|
variant: "outline",
|
|
31834
31847
|
size: "icon",
|
|
31835
31848
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
@@ -31942,7 +31955,7 @@ function ScriptSchedulesTable({
|
|
|
31942
31955
|
cell(SCHEDULE_COLUMNS.supportedPlatforms, (row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OSTypeBadgeGroup, { osTypes: row.supportedPlatforms, iconSize: "w-4 h-4 content-md:w-6 content-md:h-6" })),
|
|
31943
31956
|
cell(
|
|
31944
31957
|
SCHEDULE_COLUMNS.dateTime,
|
|
31945
|
-
(row) => row.startsAt ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScheduleDateTimeCell, { date: row.startsAt.date, time: row.startsAt.time }) : row.trigger ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31958
|
+
(row) => row.startsAt ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScheduleDateTimeCell, { date: row.startsAt.date, time: row.startsAt.time }) : row.trigger ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { tone: "secondary", children: row.trigger }) : null
|
|
31946
31959
|
),
|
|
31947
31960
|
cell(SCHEDULE_COLUMNS.repeat, (row) => row.repeat ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: VALUE_CLASS, children: row.repeat }) : null),
|
|
31948
31961
|
cell(SCHEDULE_COLUMNS.deviceCount, (row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: VALUE_CLASS, children: row.deviceCount }))
|
|
@@ -31978,9 +31991,9 @@ function ScriptSchedulesTable({
|
|
|
31978
31991
|
|
|
31979
31992
|
// src/components/features/scripts/shell-types.ts
|
|
31980
31993
|
var SCRIPT_SHELL_TYPES = [
|
|
31981
|
-
{ id:
|
|
31982
|
-
{ id:
|
|
31983
|
-
{ id:
|
|
31994
|
+
{ id: _chunkWUYL4BMDcjs.ShellTypeValues.POWERSHELL, label: "PowerShell", value: "powershell", icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon },
|
|
31995
|
+
{ id: _chunkWUYL4BMDcjs.ShellTypeValues.CMD, label: "CMD", value: "cmd", icon: _chunkNIVJEJSGcjs.TerminalSquareIcon },
|
|
31996
|
+
{ id: _chunkWUYL4BMDcjs.ShellTypeValues.BASH, label: "Bash", value: "bash", icon: _chunkTRUW6DDAcjs.TerminalIcon }
|
|
31984
31997
|
];
|
|
31985
31998
|
function scriptShellType(value) {
|
|
31986
31999
|
return SCRIPT_SHELL_TYPES.find((shell) => shell.value === value);
|
|
@@ -32041,7 +32054,7 @@ function ScriptsTable({
|
|
|
32041
32054
|
initialsClassName: "text-ods-text-secondary"
|
|
32042
32055
|
}
|
|
32043
32056
|
),
|
|
32044
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32057
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: row.author.name }) })
|
|
32045
32058
|
] }) : null
|
|
32046
32059
|
)
|
|
32047
32060
|
];
|
|
@@ -32383,9 +32396,9 @@ function ReconnectWindowFields({
|
|
|
32383
32396
|
invalid
|
|
32384
32397
|
}
|
|
32385
32398
|
),
|
|
32386
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
32387
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32388
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32399
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.Select, { value: unit, onValueChange: (next) => onUnitChange(next), disabled, children: [
|
|
32400
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { className: controlWidth, "aria-label": "Stop retry after unit", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, {}) }),
|
|
32401
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { children: DURATION_UNIT_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
32389
32402
|
] })
|
|
32390
32403
|
] });
|
|
32391
32404
|
}
|
|
@@ -32453,7 +32466,7 @@ function ScheduleOfflineFields({ showErrors, disabled = false }) {
|
|
|
32453
32466
|
options
|
|
32454
32467
|
}
|
|
32455
32468
|
),
|
|
32456
|
-
intervalError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute bottom-0 left-0 right-0 translate-y-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32469
|
+
intervalError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute bottom-0 left-0 right-0 translate-y-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", className: "text-ods-error", children: intervalError }) })
|
|
32457
32470
|
]
|
|
32458
32471
|
}
|
|
32459
32472
|
) }) })
|
|
@@ -33284,24 +33297,24 @@ function ScheduleTimingFields({
|
|
|
33284
33297
|
// `''` reads as "no selection" to Radix, so the placeholder shows
|
|
33285
33298
|
// until a slot is picked — a date at midnight no longer
|
|
33286
33299
|
// masquerades as a chosen 12:00 AM.
|
|
33287
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33300
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.Select, { value: field.value, onValueChange: field.onChange, disabled: fieldsDisabled, children: [
|
|
33288
33301
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33289
|
-
|
|
33302
|
+
_chunkMZLWB5AHcjs.SelectTrigger,
|
|
33290
33303
|
{
|
|
33291
33304
|
className: "w-full",
|
|
33292
33305
|
error: _nullishCoalesce(pastTimeError, () => ( (showErrors ? _optionalChain([fieldState, 'access', _721 => _721.error, 'optionalAccess', _722 => _722.message]) : void 0))),
|
|
33293
33306
|
invalid: !!pastTimeError || showErrors && !!fieldState.error,
|
|
33294
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33307
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, { placeholder: "Select time" })
|
|
33295
33308
|
}
|
|
33296
33309
|
),
|
|
33297
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33310
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { children: timeSlots.length === 0 ? (
|
|
33298
33311
|
// Deliberately NOT a `SelectItem` — there is nothing here
|
|
33299
33312
|
// to select, and a selectable row would put a bogus value
|
|
33300
33313
|
// in the form. It replaces a popup that opened blank; the
|
|
33301
33314
|
// Date field carries the same sentence for whoever never
|
|
33302
33315
|
// opens this one.
|
|
33303
33316
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "px-4 py-[var(--spacing-system-sf)] text-ods-text-secondary text-h6", children: NO_SLOTS_TODAY_MESSAGE })
|
|
33304
|
-
) : timeSlots.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33317
|
+
) : timeSlots.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
33305
33318
|
] })
|
|
33306
33319
|
)
|
|
33307
33320
|
}
|
|
@@ -33315,14 +33328,14 @@ function ScheduleTimingFields({
|
|
|
33315
33328
|
name: "timeReference",
|
|
33316
33329
|
control,
|
|
33317
33330
|
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33318
|
-
|
|
33331
|
+
_chunkMZLWB5AHcjs.Select,
|
|
33319
33332
|
{
|
|
33320
33333
|
value: field.value,
|
|
33321
33334
|
onValueChange: (next) => handleTimeReferenceChange(field.onChange, next),
|
|
33322
33335
|
disabled: fieldsDisabled,
|
|
33323
33336
|
children: [
|
|
33324
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33325
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33337
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { className: "w-full", "aria-label": "Timezone", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, {}) }),
|
|
33338
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { children: SCHEDULE_TIME_REFERENCE_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
33326
33339
|
]
|
|
33327
33340
|
}
|
|
33328
33341
|
)
|
|
@@ -33382,7 +33395,7 @@ function ScheduleTimingFields({
|
|
|
33382
33395
|
name: "repeatUnit",
|
|
33383
33396
|
control,
|
|
33384
33397
|
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33385
|
-
|
|
33398
|
+
_chunkMZLWB5AHcjs.Select,
|
|
33386
33399
|
{
|
|
33387
33400
|
value: field.value,
|
|
33388
33401
|
onValueChange: (next) => {
|
|
@@ -33393,8 +33406,8 @@ function ScheduleTimingFields({
|
|
|
33393
33406
|
},
|
|
33394
33407
|
disabled: fieldsDisabled || !repeatEnabled,
|
|
33395
33408
|
children: [
|
|
33396
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33397
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33409
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectValue, {}) }),
|
|
33410
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectContent, { children: DURATION_UNIT_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
33398
33411
|
]
|
|
33399
33412
|
}
|
|
33400
33413
|
)
|
|
@@ -33413,7 +33426,7 @@ function ScheduleFormFields({
|
|
|
33413
33426
|
disabled = false,
|
|
33414
33427
|
renderScriptSearch,
|
|
33415
33428
|
timeReferenceGate = "off",
|
|
33416
|
-
platforms =
|
|
33429
|
+
platforms = _chunkWUYL4BMDcjs.OS_PLATFORMS,
|
|
33417
33430
|
comingSoonPlatforms = [],
|
|
33418
33431
|
getTimeSlots,
|
|
33419
33432
|
nameLayout = "stacked",
|
|
@@ -33483,7 +33496,7 @@ function ScheduleFormFields({
|
|
|
33483
33496
|
platform.id
|
|
33484
33497
|
);
|
|
33485
33498
|
}) }),
|
|
33486
|
-
showErrors && formState.errors.supportedPlatforms && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute bottom-0 left-0 right-0 translate-y-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33499
|
+
showErrors && formState.errors.supportedPlatforms && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute bottom-0 left-0 right-0 translate-y-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", className: "text-ods-error", children: _nullishCoalesce(formState.errors.supportedPlatforms.message, () => ( "")) }) })
|
|
33487
33500
|
]
|
|
33488
33501
|
}
|
|
33489
33502
|
);
|
|
@@ -33559,7 +33572,7 @@ function ScheduleFormFields({
|
|
|
33559
33572
|
// src/components/features/scripts/schedule-form/schedule-script-search-field.tsx
|
|
33560
33573
|
|
|
33561
33574
|
function ScriptPlatformIcons({ platforms }) {
|
|
33562
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex shrink-0 items-center gap-0.5", children:
|
|
33575
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex shrink-0 items-center gap-0.5", children: _chunkWUYL4BMDcjs.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)) });
|
|
33563
33576
|
}
|
|
33564
33577
|
function ScheduleScriptSearchField({
|
|
33565
33578
|
scriptId,
|
|
@@ -33585,7 +33598,7 @@ function ScheduleScriptSearchField({
|
|
|
33585
33598
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-[var(--spacing-system-xxs)]", onFocus: onOpen, onBlur: handleBlur, children: [
|
|
33586
33599
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFL2RMEDXcjs.Label, { className: "text-h4", children: "Select Script" }),
|
|
33587
33600
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33588
|
-
|
|
33601
|
+
_chunkMZLWB5AHcjs.Autocomplete,
|
|
33589
33602
|
{
|
|
33590
33603
|
options,
|
|
33591
33604
|
value: scriptId || null,
|
|
@@ -33600,7 +33613,7 @@ function ScheduleScriptSearchField({
|
|
|
33600
33613
|
error,
|
|
33601
33614
|
invalid,
|
|
33602
33615
|
renderOption: (option, isSelected) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex w-full min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
33603
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33616
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { className: isSelected ? "text-ods-accent" : void 0, children: option.label }) }),
|
|
33604
33617
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScriptPlatformIcons, { platforms: _nullishCoalesce(_optionalChain([scripts, 'access', _728 => _728.find, 'call', _729 => _729((s) => s.id === option.value), 'optionalAccess', _730 => _730.supportedPlatforms]), () => ( [])) })
|
|
33605
33618
|
] })
|
|
33606
33619
|
}
|
|
@@ -33632,7 +33645,7 @@ function getKnowledgeBaseOpenColumn(getHref) {
|
|
|
33632
33645
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33633
33646
|
_chunkTF5D5MNOcjs.Button,
|
|
33634
33647
|
{
|
|
33635
|
-
onClick:
|
|
33648
|
+
onClick: _chunkWUYL4BMDcjs.openInNewTab.call(void 0, getHref(row.original)),
|
|
33636
33649
|
variant: "outline",
|
|
33637
33650
|
size: "icon",
|
|
33638
33651
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
@@ -33658,7 +33671,7 @@ function getKnowledgeBaseColumns(mode) {
|
|
|
33658
33671
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative flex h-8 w-8 shrink-0 items-center justify-center rounded-[6px] border border-ods-border", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { size: 16, className: "shrink-0 text-ods-text-secondary" }) }),
|
|
33659
33672
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
33660
33673
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
33661
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33674
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: item.name }) }),
|
|
33662
33675
|
tagStatus && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33663
33676
|
_chunkHY6BCZH7cjs.Tag,
|
|
33664
33677
|
{
|
|
@@ -33668,7 +33681,7 @@ function getKnowledgeBaseColumns(mode) {
|
|
|
33668
33681
|
}
|
|
33669
33682
|
)
|
|
33670
33683
|
] }),
|
|
33671
|
-
item.type === "ARTICLE" && item.summary && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33684
|
+
item.type === "ARTICLE" && item.summary && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: item.summary })
|
|
33672
33685
|
] })
|
|
33673
33686
|
] });
|
|
33674
33687
|
},
|
|
@@ -33748,7 +33761,7 @@ function KnowledgeBaseArticleView({
|
|
|
33748
33761
|
className = "px-[var(--spacing-system-l)] pb-[var(--spacing-system-l)]"
|
|
33749
33762
|
}) {
|
|
33750
33763
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33751
|
-
|
|
33764
|
+
_chunkMZLWB5AHcjs.PageLayout,
|
|
33752
33765
|
{
|
|
33753
33766
|
title,
|
|
33754
33767
|
backButton: onBack ? { label: "Back", onClick: onBack } : void 0,
|
|
@@ -33771,12 +33784,12 @@ function KnowledgeBaseArticleView({
|
|
|
33771
33784
|
}
|
|
33772
33785
|
),
|
|
33773
33786
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
33774
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33787
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { className: author.deleted ? "text-ods-error" : void 0, children: _nullishCoalesce(author.name, () => ( "Unknown")) }),
|
|
33775
33788
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Author" })
|
|
33776
33789
|
] })
|
|
33777
33790
|
] }),
|
|
33778
33791
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 min-w-0 flex-col justify-center", children: [
|
|
33779
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33792
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { children: updatedLabel }),
|
|
33780
33793
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Updated" })
|
|
33781
33794
|
] }),
|
|
33782
33795
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -33922,7 +33935,7 @@ function ConversationCard({
|
|
|
33922
33935
|
style: tint,
|
|
33923
33936
|
onClick: selection && ((event) => {
|
|
33924
33937
|
if (event.button !== 0 || _optionalChain([window, 'access', _733 => _733.getSelection, 'call', _734 => _734(), 'optionalAccess', _735 => _735.toString, 'call', _736 => _736()])) return;
|
|
33925
|
-
if (!
|
|
33938
|
+
if (!_chunkWUYL4BMDcjs.isOwnClick.call(void 0, event.target, event.currentTarget, { controls: true })) return;
|
|
33926
33939
|
selection.onToggle();
|
|
33927
33940
|
}),
|
|
33928
33941
|
children: [
|
|
@@ -33945,7 +33958,7 @@ function ConversationCard({
|
|
|
33945
33958
|
children: selection.pressed ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX4UZ62MYcjs.PlusIcon, {})
|
|
33946
33959
|
}
|
|
33947
33960
|
),
|
|
33948
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33961
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWUYL4BMDcjs.ChatTurn, { avatar: requester.avatar, name: requester.name, meta: requester.meta, time: requester.time, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33949
33962
|
"p",
|
|
33950
33963
|
{
|
|
33951
33964
|
id: requestId,
|
|
@@ -33964,7 +33977,7 @@ function ConversationCard({
|
|
|
33964
33977
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: CONTEXT_TEXT_CLASS, style: partLinesStyle(_optionalChain([lines, 'optionalAccess', _737 => _737.context])), children: context.text })
|
|
33965
33978
|
] }),
|
|
33966
33979
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33967
|
-
|
|
33980
|
+
_chunkWUYL4BMDcjs.ChatTurn,
|
|
33968
33981
|
{
|
|
33969
33982
|
avatar: responder.avatar,
|
|
33970
33983
|
name: responder.name,
|
|
@@ -33987,10 +34000,10 @@ function ConversationCard({
|
|
|
33987
34000
|
);
|
|
33988
34001
|
}
|
|
33989
34002
|
function TurnSkeleton({ avatarPx, meta, children }) {
|
|
33990
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
34003
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkWUYL4BMDcjs.TURN_ROW_CLASS, children: [
|
|
33991
34004
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.SquareAvatarSkeleton, { sizePx: avatarPx }),
|
|
33992
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
33993
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34005
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkWUYL4BMDcjs.TURN_BODY_CLASS, children: [
|
|
34006
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWUYL4BMDcjs.ChatTurnNameSkeleton, { meta, time: true }),
|
|
33994
34007
|
children
|
|
33995
34008
|
] })
|
|
33996
34009
|
] });
|
|
@@ -34052,7 +34065,7 @@ function Highlights({ items, className }) {
|
|
|
34052
34065
|
if (items.length === 0) return null;
|
|
34053
34066
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: _chunk65VVJSQZcjs.cn.call(void 0, "grid grid-cols-1 gap-2", className), children: items.slice(0, 3).map((text) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "li", { className: "flex min-w-0 items-center gap-2.5", children: [
|
|
34054
34067
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { size: HIGHLIGHT_ICON_PX, className: "shrink-0 text-ods-flamingo-cyan" }),
|
|
34055
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34068
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", triggerClassName: "flex-1", children: text })
|
|
34056
34069
|
] }, text)) });
|
|
34057
34070
|
}
|
|
34058
34071
|
function Example({
|
|
@@ -34088,7 +34101,7 @@ function Example({
|
|
|
34088
34101
|
mark(_nullishCoalesce(_optionalChain([requester, 'optionalAccess', _741 => _741.mark]), () => ( requesterMark))),
|
|
34089
34102
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
34090
34103
|
who(_nullishCoalesce(_optionalChain([requester, 'optionalAccess', _742 => _742.name]), () => ( labels.requester)), _nullishCoalesce(_optionalChain([requester, 'optionalAccess', _743 => _743.note]), () => ( labels.requesterNote))),
|
|
34091
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34104
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { lines: 2, variant: "h4", className: "min-h-[2lh]", children: `\u201C${example.request}\u201D` })
|
|
34092
34105
|
] })
|
|
34093
34106
|
] }),
|
|
34094
34107
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 gap-2.5 border-t border-ods-border pt-3", children: [
|
|
@@ -34097,7 +34110,7 @@ function Example({
|
|
|
34097
34110
|
who(_nullishCoalesce(_optionalChain([responder, 'optionalAccess', _745 => _745.name]), () => ( labels.responder)), _nullishCoalesce(_optionalChain([responder, 'optionalAccess', _746 => _746.note]), () => ( labels.responderNote))),
|
|
34098
34111
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-start gap-2", children: [
|
|
34099
34112
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { size: 16, className: "mt-0.5 shrink-0 text-ods-flamingo-cyan" }),
|
|
34100
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34113
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { lines: 2, variant: "h6", tone: "secondary", className: "min-h-[2lh]", triggerClassName: "flex-1", children: example.outcome })
|
|
34101
34114
|
] })
|
|
34102
34115
|
] })
|
|
34103
34116
|
] })
|
|
@@ -34249,13 +34262,13 @@ function CapabilityExplorer({
|
|
|
34249
34262
|
item.iconName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk65VVJSQZcjs.cn.call(void 0, JOB_ICON_TILE_CLASS, "text-ods-flamingo-cyan"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.EntityIcon, { icon: { name: item.iconName }, size: 18 }) }),
|
|
34250
34263
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
34251
34264
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "h3", { className: "flex min-w-0 items-center gap-2 text-ods-text-primary text-h4", children: [
|
|
34252
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34265
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { as: "span", variant: "h4", triggerClassName: "flex-1", children: item.title }),
|
|
34253
34266
|
item.badge
|
|
34254
34267
|
] }),
|
|
34255
|
-
item.caption && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34268
|
+
item.caption && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { variant: "h6", tone: "secondary", children: item.caption })
|
|
34256
34269
|
] })
|
|
34257
34270
|
] }),
|
|
34258
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34271
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { lines: 3, variant: "h6", tone: "secondary", className: "min-h-[3lh]", children: item.intro }),
|
|
34259
34272
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0 overflow-hidden rounded-lg border border-ods-border", children: renderScreen(item, { compact: true }) }),
|
|
34260
34273
|
item.example && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34261
34274
|
Example,
|
|
@@ -34380,8 +34393,8 @@ function CapabilityExplorer({
|
|
|
34380
34393
|
),
|
|
34381
34394
|
children: [
|
|
34382
34395
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col overflow-hidden", children: [
|
|
34383
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34384
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34396
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { lines: 2, variant: "h2", className: "mb-2", children: active.title }),
|
|
34397
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMZLWB5AHcjs.TruncateText, { lines: 3, variant: "h4", tone: "secondary", className: "min-h-[3lh]", children: active.intro }),
|
|
34385
34398
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Highlights, { items: _nullishCoalesce(active.highlights, () => ( [])), className: "mt-auto" })
|
|
34386
34399
|
] }),
|
|
34387
34400
|
active.example && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|