@flamingo-stack/openframe-frontend-core 0.0.807 → 0.0.809
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/export-map.json +1 -1
- package/dist/{chunk-WKVAD374.cjs → chunk-3B76QFXV.cjs} +4 -4
- package/dist/{chunk-BAOKF4OV.cjs → chunk-DDFT6VQ3.cjs} +3 -3
- package/dist/{chunk-3B6PFUL3.cjs → chunk-FRS2VO22.cjs} +71 -19
- package/dist/{chunk-224GFGSR.cjs → chunk-KCB72H7A.cjs} +16 -16
- package/dist/{chunk-XDVBSTFB.cjs → chunk-KITOT3DS.cjs} +7 -7
- package/dist/{chunk-QPHQVTJO.cjs → chunk-LUICXMHC.cjs} +2 -2
- package/dist/{chunk-Z4IYLXJU.cjs → chunk-OFGYPMTE.cjs} +15 -15
- package/dist/{chunk-QWB3CTGR.cjs → chunk-Q3C6UJJ7.cjs} +24 -24
- package/dist/{chunk-M5NBPOKJ.cjs → chunk-UVLTUSH3.cjs} +678 -640
- package/dist/{chunk-MBGUHO7Z.cjs → chunk-VKAFZCFV.cjs} +16 -16
- package/dist/{chunk-XCYL3TYS.cjs → chunk-VUKN6KEE.cjs} +34 -34
- package/dist/{chunk-74I2HT4X.cjs → chunk-WDL3GFH2.cjs} +12 -12
- package/dist/{chunk-IEDID3EB.cjs → chunk-WV44WJKR.cjs} +3 -3
- package/dist/{cloud-tenants-KL2COIBU.cjs → cloud-tenants-DJAA23GR.cjs} +3 -3
- package/dist/components/case-studies/index.cjs +12 -12
- package/dist/components/contact/index.cjs +4 -4
- package/dist/components/docs/index.cjs +6 -6
- package/dist/components/embeds/index.cjs +4 -4
- package/dist/components/faq/index.cjs +4 -4
- package/dist/components/features/index.cjs +3 -3
- package/dist/components/features/scripts/schedule-form/schedule-offline-fields.d.ts.map +1 -1
- package/dist/components/features/scripts/schedule-form/schedule-offline-fields.js +16 -4
- package/dist/components/features/scripts/schedule-form/schedule-timing-fields.d.ts +1 -1
- package/dist/components/features/scripts/schedule-form/schedule-timing-fields.d.ts.map +1 -1
- package/dist/components/features/scripts/schedule-form/schedule-timing-fields.js +9 -2
- package/dist/components/help-center-pages/index.cjs +55 -55
- package/dist/components/index.cjs +21 -19
- package/dist/components/meeting-scheduler/index.cjs +28 -28
- package/dist/components/navigation/index.cjs +4 -4
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/product-demo/index.cjs +13 -13
- package/dist/components/tickets/index.cjs +6 -6
- package/dist/components/ui/assignee-dropdown.d.ts +10 -0
- package/dist/components/ui/assignee-dropdown.d.ts.map +1 -1
- package/dist/components/ui/assignee-dropdown.js +14 -2
- package/dist/components/ui/autocomplete.d.ts +24 -0
- package/dist/components/ui/autocomplete.d.ts.map +1 -1
- package/dist/components/ui/autocomplete.js +26 -4
- package/dist/components/ui/filter-modal.d.ts.map +1 -1
- package/dist/components/ui/filter-modal.js +1 -1
- package/dist/components/ui/index.cjs +5 -3
- package/dist/components/ui/reopen-ticket-modal.d.ts +17 -1
- package/dist/components/ui/reopen-ticket-modal.d.ts.map +1 -1
- package/dist/components/ui/reopen-ticket-modal.js +8 -15
- package/dist/components/ui/searchable-select.d.ts +17 -0
- package/dist/components/ui/searchable-select.d.ts.map +1 -1
- package/dist/components/ui/searchable-select.js +24 -9
- package/dist/components/ui/server-search-options.d.ts +30 -0
- package/dist/components/ui/server-search-options.d.ts.map +1 -0
- package/dist/components/ui/server-search-options.js +30 -0
- package/dist/components/ui/take-over-ticket-modal.d.ts +25 -1
- package/dist/components/ui/take-over-ticket-modal.d.ts.map +1 -1
- package/dist/components/ui/take-over-ticket-modal.js +14 -14
- package/dist/components/ui/ticket-info-section.d.ts +2 -0
- package/dist/components/ui/ticket-info-section.d.ts.map +1 -1
- package/dist/components/ui/ticket-info-section.js +2 -1
- package/dist/{devices-3HQDYLE2.cjs → devices-AIDQW4HB.cjs} +4 -4
- package/dist/index.cjs +6 -4
- package/dist/{knowledge-6LA6XYUR.cjs → knowledge-JWCFM3GO.cjs} +3 -3
- package/dist/{logs-R4YZI33F.cjs → logs-ZNIXPJXA.cjs} +11 -11
- package/dist/{policies-DGJMMGXN.cjs → policies-Z4NGPLA2.cjs} +7 -7
- package/dist/{remote-session-HLGLKOGW.cjs → remote-session-LMUFV2RZ.cjs} +4 -4
- package/dist/{scripts-6KR5UZQY.cjs → scripts-G4Y5SPOW.cjs} +10 -10
- package/dist/{software-update-R63SKZQM.cjs → software-update-VAOKDA76.cjs} +7 -7
- package/package.json +1 -1
- package/src/components/features/scripts/schedule-form/schedule-offline-fields.tsx +10 -1
- package/src/components/features/scripts/schedule-form/schedule-timing-fields.tsx +10 -4
- package/src/components/ui/assignee-dropdown.tsx +29 -1
- package/src/components/ui/autocomplete.tsx +68 -5
- package/src/components/ui/filter-modal.tsx +3 -1
- package/src/components/ui/reopen-ticket-modal.tsx +22 -14
- package/src/components/ui/searchable-select.tsx +52 -8
- package/src/components/ui/server-search-options.ts +65 -0
- package/src/components/ui/take-over-ticket-modal.tsx +35 -13
- package/src/components/ui/ticket-info-section.tsx +3 -0
|
@@ -36,7 +36,9 @@ var _chunkNG3RKTQUcjs = require('./chunk-NG3RKTQU.cjs');
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
var _chunkFRS2VO22cjs = require('./chunk-FRS2VO22.cjs');
|
|
40
42
|
|
|
41
43
|
|
|
42
44
|
var _chunkDEY6XXGOcjs = require('./chunk-DEY6XXGO.cjs');
|
|
@@ -911,7 +913,7 @@ function TimezoneSelect({
|
|
|
911
913
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
912
914
|
const options = _react.useMemo.call(void 0, () => timezoneOptions(value), [value]);
|
|
913
915
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
914
|
-
|
|
916
|
+
_chunkFRS2VO22cjs.Autocomplete,
|
|
915
917
|
{
|
|
916
918
|
className,
|
|
917
919
|
fieldLoading: loading,
|
|
@@ -1726,20 +1728,20 @@ function DatePickerInput(props) {
|
|
|
1726
1728
|
) })
|
|
1727
1729
|
] }),
|
|
1728
1730
|
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,
|
|
1731
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFRS2VO22cjs.Select, { value: hour, onValueChange: handleHourChange, disabled, children: [
|
|
1732
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectTrigger, { className: _chunk7JWFMAQBcjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectValue, { placeholder: "HH" }) }),
|
|
1733
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectContent, { children: hourOptions.map((h) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: h, children: h }, h)) })
|
|
1732
1734
|
] }),
|
|
1733
1735
|
/* @__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,
|
|
1736
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFRS2VO22cjs.Select, { value: minute, onValueChange: handleMinuteChange, disabled, children: [
|
|
1737
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectTrigger, { className: _chunk7JWFMAQBcjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectValue, { placeholder: "MM" }) }),
|
|
1738
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectContent, { children: minuteOptions.map((m) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: m, children: m }, m)) })
|
|
1737
1739
|
] }),
|
|
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,
|
|
1740
|
+
!use24HourFormat && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFRS2VO22cjs.Select, { value: period, onValueChange: (val) => handlePeriodChange(val), disabled, children: [
|
|
1741
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectTrigger, { className: _chunk7JWFMAQBcjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectValue, { placeholder: "AM" }) }),
|
|
1742
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFRS2VO22cjs.SelectContent, { children: [
|
|
1743
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: "AM", children: "AM" }),
|
|
1744
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: "PM", children: "PM" })
|
|
1743
1745
|
] })
|
|
1744
1746
|
] })
|
|
1745
1747
|
] })
|
|
@@ -1880,9 +1882,9 @@ function DatePickerInputSimple(props) {
|
|
|
1880
1882
|
}
|
|
1881
1883
|
) })
|
|
1882
1884
|
] }),
|
|
1883
|
-
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1884
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1885
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1885
|
+
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFRS2VO22cjs.Select, { value: timeValue, onValueChange: handleTimeChange, disabled, children: [
|
|
1886
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectTrigger, { className: _chunk7JWFMAQBcjs.cn.call(void 0, timeSelectTriggerStyles, "flex-1"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectValue, { placeholder: "Select time", children: timeDisplayLabel || "Select time" }) }),
|
|
1887
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectContent, { children: timeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
1886
1888
|
] })
|
|
1887
1889
|
] });
|
|
1888
1890
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7RM4NM2Ccjs.FieldWrapper, { label, error, errorSlot: "error" in props, className, children: content });
|
|
@@ -1901,14 +1903,14 @@ function DateFilterPanel({
|
|
|
1901
1903
|
className
|
|
1902
1904
|
}) {
|
|
1903
1905
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex flex-col gap-4", className), children: [
|
|
1904
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1905
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1906
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFRS2VO22cjs.Select, { value: sort, onValueChange: (value) => onSortChange(value), children: [
|
|
1907
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.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: [
|
|
1906
1908
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ArrowUpDown, { className: "size-6 shrink-0 text-ods-text-secondary" }),
|
|
1907
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1909
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectValue, {}) })
|
|
1908
1910
|
] }) }),
|
|
1909
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1910
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1911
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1911
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFRS2VO22cjs.SelectContent, { children: [
|
|
1912
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: "asc", children: ascLabel }),
|
|
1913
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: "desc", children: descLabel })
|
|
1912
1914
|
] })
|
|
1913
1915
|
] }),
|
|
1914
1916
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2504,8 +2506,10 @@ function SearchableSelect(allProps) {
|
|
|
2504
2506
|
renderOption,
|
|
2505
2507
|
align = "start",
|
|
2506
2508
|
className,
|
|
2507
|
-
contentClassName
|
|
2509
|
+
contentClassName,
|
|
2510
|
+
onSearchChange
|
|
2508
2511
|
} = allProps;
|
|
2512
|
+
const serverSearch = onSearchChange !== void 0;
|
|
2509
2513
|
const errorSlot = "error" in allProps;
|
|
2510
2514
|
const isInvalid = !!error;
|
|
2511
2515
|
const isGrid = layout === "grid";
|
|
@@ -2516,20 +2520,32 @@ function SearchableSelect(allProps) {
|
|
|
2516
2520
|
const keyboardPadding = _chunk7Z536SPRcjs.useKeyboardCollisionPadding.call(void 0, );
|
|
2517
2521
|
const portalContainer = _chunkNL3G642Ucjs.usePortalContainer.call(void 0, );
|
|
2518
2522
|
if (!isOpen && search !== "") setSearch("");
|
|
2523
|
+
const listedOptions = _chunkFRS2VO22cjs.useSettledOptions.call(void 0, options, isLoading, serverSearch);
|
|
2524
|
+
const rememberedSelection = _chunkFRS2VO22cjs.useRememberedSelection.call(void 0, listedOptions, value != null ? [value] : [], serverSearch);
|
|
2519
2525
|
const filtered = _react.useMemo.call(void 0, () => {
|
|
2526
|
+
if (serverSearch) return listedOptions;
|
|
2520
2527
|
const q = search.trim().toLowerCase();
|
|
2521
2528
|
if (!q) return options;
|
|
2522
2529
|
return options.filter(
|
|
2523
2530
|
(o) => o.label.toLowerCase().includes(q) || (_nullishCoalesce(o.keywords, () => ( []))).some((k) => k.toLowerCase().includes(q))
|
|
2524
2531
|
);
|
|
2525
|
-
}, [options, search]);
|
|
2532
|
+
}, [options, listedOptions, serverSearch, search]);
|
|
2526
2533
|
const selectedOption = _react.useMemo.call(void 0,
|
|
2527
|
-
() => value != null ?
|
|
2528
|
-
[
|
|
2534
|
+
() => value != null ? _nullishCoalesce(listedOptions.find((o) => o.value === value), () => ( rememberedSelection.get(value))) : void 0,
|
|
2535
|
+
[listedOptions, rememberedSelection, value]
|
|
2529
2536
|
);
|
|
2537
|
+
const showLoadingRows = isLoading && (!serverSearch || filtered.length === 0);
|
|
2538
|
+
const handleSearchChange = (query) => {
|
|
2539
|
+
setSearch(query);
|
|
2540
|
+
_optionalChain([onSearchChange, 'optionalCall', _40 => _40(query)]);
|
|
2541
|
+
};
|
|
2542
|
+
const handleOpenChange = (open) => {
|
|
2543
|
+
setIsOpen(open);
|
|
2544
|
+
if (!open && search !== "") _optionalChain([onSearchChange, 'optionalCall', _41 => _41("")]);
|
|
2545
|
+
};
|
|
2530
2546
|
const handleSelect = (optionValue) => {
|
|
2531
2547
|
onValueChange(optionValue);
|
|
2532
|
-
|
|
2548
|
+
handleOpenChange(false);
|
|
2533
2549
|
};
|
|
2534
2550
|
const defaultTrigger = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2535
2551
|
_chunkAHBTZ7DNcjs.Button,
|
|
@@ -2542,7 +2558,7 @@ function SearchableSelect(allProps) {
|
|
|
2542
2558
|
className,
|
|
2543
2559
|
children: [
|
|
2544
2560
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
2545
|
-
_optionalChain([selectedOption, 'optionalAccess',
|
|
2561
|
+
_optionalChain([selectedOption, 'optionalAccess', _42 => _42.icon]),
|
|
2546
2562
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2547
2563
|
"span",
|
|
2548
2564
|
{
|
|
@@ -2573,7 +2589,7 @@ function SearchableSelect(allProps) {
|
|
|
2573
2589
|
"px-[var(--spacing-system-sf)] py-[var(--spacing-system-s)] text-ods-text-secondary text-h5",
|
|
2574
2590
|
isGrid && "col-span-full"
|
|
2575
2591
|
);
|
|
2576
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, PopoverPrimitive.Root, { open: isOpen, onOpenChange: disabled ? void 0 :
|
|
2592
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, PopoverPrimitive.Root, { open: isOpen, onOpenChange: disabled ? void 0 : handleOpenChange, modal: false, children: [
|
|
2577
2593
|
!trigger && (label !== void 0 || errorSlot) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7RM4NM2Ccjs.FieldWrapper, { label, htmlFor: triggerId, labelVariant, error, errorSlot, children: triggerElement }) : triggerElement,
|
|
2578
2594
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverPrimitive.Portal, { container: _nullishCoalesce(portalContainer, () => ( void 0)), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2579
2595
|
PopoverPrimitive.Content,
|
|
@@ -2597,7 +2613,7 @@ function SearchableSelect(allProps) {
|
|
|
2597
2613
|
userValue: true,
|
|
2598
2614
|
autoFocus: true,
|
|
2599
2615
|
value: search,
|
|
2600
|
-
onChange: (e) =>
|
|
2616
|
+
onChange: (e) => handleSearchChange(e.target.value),
|
|
2601
2617
|
placeholder: searchPlaceholder,
|
|
2602
2618
|
startAdornment: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ74QE57Tcjs.SearchIcon, { className: "size-4 text-ods-text-secondary" }),
|
|
2603
2619
|
className: "rounded-none border-0"
|
|
@@ -2615,8 +2631,8 @@ function SearchableSelect(allProps) {
|
|
|
2615
2631
|
// bottom/right rule, so the grid needs no gap.
|
|
2616
2632
|
isGrid ? "grid grid-cols-[repeat(auto-fill,minmax(7rem,1fr))]" : "py-[var(--spacing-system-xs)]"
|
|
2617
2633
|
),
|
|
2618
|
-
role:
|
|
2619
|
-
children:
|
|
2634
|
+
role: showLoadingRows ? void 0 : "listbox",
|
|
2635
|
+
children: showLoadingRows ? (
|
|
2620
2636
|
// The options while they are read: the list's own rows (or tiles), a label bar each; `loadingText` is
|
|
2621
2637
|
// what a screen reader hears.
|
|
2622
2638
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLKQ33CMYcjs.LoadingRegion, { label: loadingText, className: "contents", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count: _nullishCoalesce(loadingRows, () => ( (isGrid ? SELECT_SKELETON_TILES : SELECT_SKELETON_ROWS))), children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, className: isGrid ? SELECT_TILE_CLASS : SELECT_ROW_CLASS, "aria-hidden": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: isGrid ? "h6" : "h4", className: isGrid ? "w-full" : "w-2/3" }) }) }) })
|
|
@@ -2677,7 +2693,8 @@ function CompactAssigneeDropdown({
|
|
|
2677
2693
|
isLoading,
|
|
2678
2694
|
onAssign,
|
|
2679
2695
|
className,
|
|
2680
|
-
onTriggerClick
|
|
2696
|
+
onTriggerClick,
|
|
2697
|
+
onSearchChange
|
|
2681
2698
|
}) {
|
|
2682
2699
|
const hasAssignee = !!currentAssignee;
|
|
2683
2700
|
const orderedOptions = _react.useMemo.call(void 0, () => {
|
|
@@ -2702,7 +2719,7 @@ function CompactAssigneeDropdown({
|
|
|
2702
2719
|
return [current, ...withAvatars.filter((o) => o.value !== currentAssignee.id)];
|
|
2703
2720
|
}, [options, currentAssignee]);
|
|
2704
2721
|
const handleSelect = (userId) => {
|
|
2705
|
-
onAssign(_optionalChain([currentAssignee, 'optionalAccess',
|
|
2722
|
+
onAssign(_optionalChain([currentAssignee, 'optionalAccess', _43 => _43.id]) === userId ? null : userId);
|
|
2706
2723
|
};
|
|
2707
2724
|
const handleTriggerClick = onTriggerClick ? (event) => {
|
|
2708
2725
|
event.preventDefault();
|
|
@@ -2745,20 +2762,29 @@ function CompactAssigneeDropdown({
|
|
|
2745
2762
|
SearchableSelect,
|
|
2746
2763
|
{
|
|
2747
2764
|
options: orderedOptions,
|
|
2748
|
-
value: _nullishCoalesce(_optionalChain([currentAssignee, 'optionalAccess',
|
|
2765
|
+
value: _nullishCoalesce(_optionalChain([currentAssignee, 'optionalAccess', _44 => _44.id]), () => ( null)),
|
|
2749
2766
|
onValueChange: handleSelect,
|
|
2750
2767
|
searchPlaceholder: "Search users...",
|
|
2751
2768
|
emptyText: "No users found",
|
|
2752
2769
|
isLoading,
|
|
2770
|
+
onSearchChange,
|
|
2753
2771
|
trigger,
|
|
2754
2772
|
align: "end",
|
|
2755
2773
|
contentClassName: "w-72"
|
|
2756
2774
|
}
|
|
2757
2775
|
);
|
|
2758
2776
|
}
|
|
2759
|
-
function DefaultAssigneeDropdown({
|
|
2777
|
+
function DefaultAssigneeDropdown({
|
|
2778
|
+
currentAssignee,
|
|
2779
|
+
options,
|
|
2780
|
+
isLoading,
|
|
2781
|
+
onAssign,
|
|
2782
|
+
className,
|
|
2783
|
+
onSearchChange
|
|
2784
|
+
}) {
|
|
2760
2785
|
const [isEditing, setIsEditing] = _react.useState.call(void 0, false);
|
|
2761
2786
|
const hasAssignee = !!currentAssignee;
|
|
2787
|
+
const selectedOptions = onSearchChange && currentAssignee ? [{ value: currentAssignee.id, label: currentAssignee.name, imageUrl: currentAssignee.avatarSrc }] : void 0;
|
|
2762
2788
|
const renderOption = _react.useCallback.call(void 0, (option) => {
|
|
2763
2789
|
const opt = option;
|
|
2764
2790
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center gap-[var(--spacing-system-sf)]", children: [
|
|
@@ -2779,16 +2805,18 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
2779
2805
|
if (isEditing) {
|
|
2780
2806
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "min-w-0", className), children: [
|
|
2781
2807
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2782
|
-
|
|
2808
|
+
_chunkFRS2VO22cjs.Autocomplete,
|
|
2783
2809
|
{
|
|
2784
2810
|
options,
|
|
2785
|
-
value: _nullishCoalesce(_optionalChain([currentAssignee, 'optionalAccess',
|
|
2811
|
+
value: _nullishCoalesce(_optionalChain([currentAssignee, 'optionalAccess', _45 => _45.id]), () => ( null)),
|
|
2786
2812
|
onChange: (val) => {
|
|
2787
2813
|
onAssign(val);
|
|
2788
2814
|
setIsEditing(false);
|
|
2789
2815
|
},
|
|
2790
2816
|
placeholder: "Search users...",
|
|
2791
2817
|
loading: isLoading,
|
|
2818
|
+
onSearchChange,
|
|
2819
|
+
selectedOptions,
|
|
2792
2820
|
showChevron: false,
|
|
2793
2821
|
startAdornment: hasAssignee ? currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2794
2822
|
_chunkFLW2VL5Wcjs.DeletedUserAvatar,
|
|
@@ -3028,18 +3056,18 @@ function MediaTypeSelector({
|
|
|
3028
3056
|
// changed) and cost an extra render pass on every change to say what the
|
|
3029
3057
|
// prop already said.
|
|
3030
3058
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3031
|
-
|
|
3059
|
+
_chunkFRS2VO22cjs.Select,
|
|
3032
3060
|
{
|
|
3033
3061
|
value: value || void 0,
|
|
3034
3062
|
onValueChange: (next) => {
|
|
3035
3063
|
const option = mediaTypeOptions.find((candidate) => candidate.value === next);
|
|
3036
|
-
if (option) _optionalChain([onValueChange, 'optionalCall',
|
|
3064
|
+
if (option) _optionalChain([onValueChange, 'optionalCall', _46 => _46(option.value)]);
|
|
3037
3065
|
},
|
|
3038
3066
|
disabled,
|
|
3039
3067
|
defaultValue: value,
|
|
3040
3068
|
children: [
|
|
3041
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3042
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3069
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectTrigger, { className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectValue, { placeholder }) }),
|
|
3070
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectContent, { children: mediaTypeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: option.value, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
3043
3071
|
option.icon,
|
|
3044
3072
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: option.label })
|
|
3045
3073
|
] }) }, option.value)) })
|
|
@@ -3157,7 +3185,7 @@ var NoData = _react2.default.forwardRef(function NoDataImpl({
|
|
|
3157
3185
|
...props
|
|
3158
3186
|
}, ref) {
|
|
3159
3187
|
const hasMessage = !!(icon || title || description);
|
|
3160
|
-
const hasActions = !!_optionalChain([actions, 'optionalAccess',
|
|
3188
|
+
const hasActions = !!_optionalChain([actions, 'optionalAccess', _47 => _47.length]);
|
|
3161
3189
|
const footerButton = _nullishCoalesce(button, () => ( (buttonLabel != null ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3162
3190
|
_chunkAHBTZ7DNcjs.Button,
|
|
3163
3191
|
{
|
|
@@ -3165,7 +3193,7 @@ var NoData = _react2.default.forwardRef(function NoDataImpl({
|
|
|
3165
3193
|
leftIcon: buttonIcon,
|
|
3166
3194
|
onClick: onButtonClick,
|
|
3167
3195
|
...buttonProps,
|
|
3168
|
-
className: _chunk7JWFMAQBcjs.cn.call(void 0, "w-full content-md:w-auto", _optionalChain([buttonProps, 'optionalAccess',
|
|
3196
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0, "w-full content-md:w-auto", _optionalChain([buttonProps, 'optionalAccess', _48 => _48.className])),
|
|
3169
3197
|
children: buttonLabel
|
|
3170
3198
|
}
|
|
3171
3199
|
) : null)));
|
|
@@ -3296,10 +3324,10 @@ var RadioGroupBlock = _react.forwardRef.call(void 0,
|
|
|
3296
3324
|
children: rows.map((option, index) => {
|
|
3297
3325
|
const optionKey = option ? option.value : `skeleton-${index}`;
|
|
3298
3326
|
const itemId = `${_nullishCoalesce(props.name, () => ( "radio-block"))}-${optionKey}`;
|
|
3299
|
-
const isDisabled = !loading && (disabled || _optionalChain([option, 'optionalAccess',
|
|
3327
|
+
const isDisabled = !loading && (disabled || _optionalChain([option, 'optionalAccess', _49 => _49.disabled]));
|
|
3300
3328
|
const interactive = !loading && !isDisabled;
|
|
3301
3329
|
const isLast = index === rows.length - 1;
|
|
3302
|
-
const hasFooter = _optionalChain([option, 'optionalAccess',
|
|
3330
|
+
const hasFooter = _optionalChain([option, 'optionalAccess', _50 => _50.footer]) != null;
|
|
3303
3331
|
const row = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3304
3332
|
loading || !option ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.UnifiedSkeleton, { variant: "circular", className: RADIO_DOT_SIZE_CLASS }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3305
3333
|
RadioGroupPrimitive.Item,
|
|
@@ -3338,15 +3366,15 @@ var RadioGroupBlock = _react.forwardRef.call(void 0,
|
|
|
3338
3366
|
"span",
|
|
3339
3367
|
{
|
|
3340
3368
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, RADIO_OPTION_LABEL_CLASS, "select-none truncate text-ods-text-primary"),
|
|
3341
|
-
title: typeof _optionalChain([option, 'optionalAccess',
|
|
3369
|
+
title: typeof _optionalChain([option, 'optionalAccess', _51 => _51.label]) === "string" ? option.label : void 0,
|
|
3342
3370
|
children: option && !(loading && option.label === null) ? option.label : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { as: "span", type: "inherit", className: RADIO_OPTION_LABEL_BAR_CLASS })
|
|
3343
3371
|
}
|
|
3344
3372
|
),
|
|
3345
|
-
loading && _optionalChain([option, 'optionalAccess',
|
|
3373
|
+
loading && _optionalChain([option, 'optionalAccess', _52 => _52.description]) === null ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: RADIO_OPTION_DESCRIPTION_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { as: "span", type: "inherit", className: RADIO_OPTION_DESCRIPTION_BAR_CLASS }) }) : _optionalChain([option, 'optionalAccess', _53 => _53.description]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, RADIO_OPTION_DESCRIPTION_CLASS, "select-none text-ods-text-secondary"), children: option.description })
|
|
3346
3374
|
]
|
|
3347
3375
|
}
|
|
3348
3376
|
),
|
|
3349
|
-
_optionalChain([option, 'optionalAccess',
|
|
3377
|
+
_optionalChain([option, 'optionalAccess', _54 => _54.trailing]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ml-auto flex shrink-0 items-center", children: option.trailing })
|
|
3350
3378
|
] });
|
|
3351
3379
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3352
3380
|
_chunkGD47ZGOUcjs.Label,
|
|
@@ -3387,7 +3415,7 @@ var RadioGroupBlock = _react.forwardRef.call(void 0,
|
|
|
3387
3415
|
),
|
|
3388
3416
|
children: [
|
|
3389
3417
|
hasFooter ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full items-center gap-[var(--spacing-system-sf)]", children: row }) : row,
|
|
3390
|
-
_optionalChain([option, 'optionalAccess',
|
|
3418
|
+
_optionalChain([option, 'optionalAccess', _55 => _55.footer])
|
|
3391
3419
|
]
|
|
3392
3420
|
},
|
|
3393
3421
|
optionKey
|
|
@@ -3422,7 +3450,7 @@ var Switch = _react.forwardRef.call(void 0, ({ className, checked, onCheckedChan
|
|
|
3422
3450
|
const isChecked = _nullishCoalesce(checked, () => ( localChecked));
|
|
3423
3451
|
const handleCheckedChange = (newChecked) => {
|
|
3424
3452
|
setLocalChecked(newChecked);
|
|
3425
|
-
_optionalChain([onCheckedChange, 'optionalCall',
|
|
3453
|
+
_optionalChain([onCheckedChange, 'optionalCall', _56 => _56(newChecked)]);
|
|
3426
3454
|
};
|
|
3427
3455
|
if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SwitchSkeleton, { className });
|
|
3428
3456
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -3822,7 +3850,7 @@ function TagsManager({
|
|
|
3822
3850
|
if (!name) return;
|
|
3823
3851
|
try {
|
|
3824
3852
|
const result = await onCreateTag(name);
|
|
3825
|
-
if (_optionalChain([result, 'optionalAccess',
|
|
3853
|
+
if (_optionalChain([result, 'optionalAccess', _57 => _57.id])) {
|
|
3826
3854
|
onChange([...selectedIds, result.id]);
|
|
3827
3855
|
setSearch("");
|
|
3828
3856
|
}
|
|
@@ -3833,7 +3861,7 @@ function TagsManager({
|
|
|
3833
3861
|
const startEdit = _react.useCallback.call(void 0, (id, name) => {
|
|
3834
3862
|
setEditingId(id);
|
|
3835
3863
|
setEditingName(name);
|
|
3836
|
-
setTimeout(() => _optionalChain([editInputRef, 'access',
|
|
3864
|
+
setTimeout(() => _optionalChain([editInputRef, 'access', _58 => _58.current, 'optionalAccess', _59 => _59.focus, 'call', _60 => _60()]), 0);
|
|
3837
3865
|
}, []);
|
|
3838
3866
|
const confirmEdit = _react.useCallback.call(void 0, async () => {
|
|
3839
3867
|
if (!onUpdateTag || !editingId || !editingName.trim()) return;
|
|
@@ -3868,7 +3896,7 @@ function TagsManager({
|
|
|
3868
3896
|
e.stopPropagation();
|
|
3869
3897
|
onChange([]);
|
|
3870
3898
|
setSearch("");
|
|
3871
|
-
_optionalChain([inputRef, 'access',
|
|
3899
|
+
_optionalChain([inputRef, 'access', _61 => _61.current, 'optionalAccess', _62 => _62.focus, 'call', _63 => _63()]);
|
|
3872
3900
|
},
|
|
3873
3901
|
[onChange]
|
|
3874
3902
|
);
|
|
@@ -3972,10 +4000,10 @@ function TagsManager({
|
|
|
3972
4000
|
collisionPadding: { bottom: keyboardPadding },
|
|
3973
4001
|
onOpenAutoFocus: (e) => {
|
|
3974
4002
|
e.preventDefault();
|
|
3975
|
-
_optionalChain([inputRef, 'access',
|
|
4003
|
+
_optionalChain([inputRef, 'access', _64 => _64.current, 'optionalAccess', _65 => _65.focus, 'call', _66 => _66()]);
|
|
3976
4004
|
},
|
|
3977
4005
|
onInteractOutside: (e) => {
|
|
3978
|
-
if (_optionalChain([containerRef, 'access',
|
|
4006
|
+
if (_optionalChain([containerRef, 'access', _67 => _67.current, 'optionalAccess', _68 => _68.contains, 'call', _69 => _69(e.target)])) {
|
|
3979
4007
|
e.preventDefault();
|
|
3980
4008
|
}
|
|
3981
4009
|
},
|
|
@@ -4249,13 +4277,13 @@ var Textarea = _react.forwardRef.call(void 0, (allProps, ref) => {
|
|
|
4249
4277
|
"data-tone": "field",
|
|
4250
4278
|
size: "icon-sm",
|
|
4251
4279
|
type: "button",
|
|
4252
|
-
"aria-label": _nullishCoalesce(_optionalChain([endIconButtonProps, 'optionalAccess',
|
|
4280
|
+
"aria-label": _nullishCoalesce(_optionalChain([endIconButtonProps, 'optionalAccess', _70 => _70["aria-label"]]), () => ( "Submit")),
|
|
4253
4281
|
...endIconButtonProps,
|
|
4254
4282
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
4255
4283
|
// The 32px target overhangs the textarea's 24px `leading-6` line box by 4px on each side (`-my-1`), so the
|
|
4256
4284
|
// icon's centre stays on the first line's centre.
|
|
4257
4285
|
"-my-1 shrink-0",
|
|
4258
|
-
_optionalChain([endIconButtonProps, 'optionalAccess',
|
|
4286
|
+
_optionalChain([endIconButtonProps, 'optionalAccess', _71 => _71.className])
|
|
4259
4287
|
),
|
|
4260
4288
|
children: endIcon
|
|
4261
4289
|
}
|
|
@@ -4452,14 +4480,14 @@ function useConfirm() {
|
|
|
4452
4480
|
askingRef.current = false;
|
|
4453
4481
|
pendingRef.current = null;
|
|
4454
4482
|
setOpen(false);
|
|
4455
|
-
_optionalChain([pending, 'optionalAccess',
|
|
4483
|
+
_optionalChain([pending, 'optionalAccess', _72 => _72.resolve, 'call', _73 => _73(ok)]);
|
|
4456
4484
|
setPending(null);
|
|
4457
4485
|
},
|
|
4458
4486
|
[pending]
|
|
4459
4487
|
);
|
|
4460
4488
|
_react.useEffect.call(void 0,
|
|
4461
4489
|
() => () => {
|
|
4462
|
-
_optionalChain([pendingRef, 'access',
|
|
4490
|
+
_optionalChain([pendingRef, 'access', _74 => _74.current, 'optionalAccess', _75 => _75.resolve, 'call', _76 => _76(false)]);
|
|
4463
4491
|
pendingRef.current = null;
|
|
4464
4492
|
askingRef.current = false;
|
|
4465
4493
|
},
|
|
@@ -4553,7 +4581,7 @@ function AdminFormDrawer({
|
|
|
4553
4581
|
if (canSave && !saving) onSave();
|
|
4554
4582
|
},
|
|
4555
4583
|
onKeyDown: (e) => {
|
|
4556
|
-
if (e.key === "Enter" && _optionalChain([e, 'access',
|
|
4584
|
+
if (e.key === "Enter" && _optionalChain([e, 'access', _77 => _77.target, 'optionalAccess', _78 => _78.dataset, 'optionalAccess', _79 => _79.noSubmitOnEnter]) === "true") {
|
|
4557
4585
|
e.preventDefault();
|
|
4558
4586
|
}
|
|
4559
4587
|
},
|
|
@@ -4660,7 +4688,7 @@ function AdminFormModal({
|
|
|
4660
4688
|
if (canSave && !saving) onSave();
|
|
4661
4689
|
},
|
|
4662
4690
|
onKeyDown: (e) => {
|
|
4663
|
-
if (e.key === "Enter" && _optionalChain([e, 'access',
|
|
4691
|
+
if (e.key === "Enter" && _optionalChain([e, 'access', _80 => _80.target, 'optionalAccess', _81 => _81.dataset, 'optionalAccess', _82 => _82.noSubmitOnEnter]) === "true") {
|
|
4664
4692
|
e.preventDefault();
|
|
4665
4693
|
}
|
|
4666
4694
|
},
|
|
@@ -5290,9 +5318,9 @@ var TabBar = _react.memo.call(void 0, function TabBarImpl({
|
|
|
5290
5318
|
});
|
|
5291
5319
|
ro.observe(el);
|
|
5292
5320
|
let cancelled = false;
|
|
5293
|
-
_optionalChain([document, 'access',
|
|
5321
|
+
_optionalChain([document, 'access', _83 => _83.fonts, 'optionalAccess', _84 => _84.ready, 'access', _85 => _85.then, 'call', _86 => _86(() => {
|
|
5294
5322
|
if (!cancelled) measureIndicator();
|
|
5295
|
-
}), 'access',
|
|
5323
|
+
}), 'access', _87 => _87.catch, 'call', _88 => _88(() => {
|
|
5296
5324
|
})]);
|
|
5297
5325
|
return () => {
|
|
5298
5326
|
cancelled = true;
|
|
@@ -5333,7 +5361,7 @@ var TabBar = _react.memo.call(void 0, function TabBarImpl({
|
|
|
5333
5361
|
return { background: c };
|
|
5334
5362
|
}, [leftFade, rightFade]);
|
|
5335
5363
|
const isPlaced = indicator.width > 0;
|
|
5336
|
-
const activeProgress = _optionalChain([tabs, 'access',
|
|
5364
|
+
const activeProgress = _optionalChain([tabs, 'access', _89 => _89.find, 'call', _90 => _90((tab) => tab.id === activeTab), 'optionalAccess', _91 => _91.progress]);
|
|
5337
5365
|
const hasProgress = typeof activeProgress === "number";
|
|
5338
5366
|
const target = hasProgress ? Math.max(0, Math.min(1, activeProgress)) : 1;
|
|
5339
5367
|
const [run, setRun] = _react.useState.call(void 0, { tab: null, progress: 0 });
|
|
@@ -5351,7 +5379,7 @@ var TabBar = _react.memo.call(void 0, function TabBarImpl({
|
|
|
5351
5379
|
};
|
|
5352
5380
|
}, [startsOver, activeTab, target]);
|
|
5353
5381
|
const progress = startsOver ? 0 : target;
|
|
5354
|
-
const activeAccent = _optionalChain([tabs, 'access',
|
|
5382
|
+
const activeAccent = _optionalChain([tabs, 'access', _92 => _92.find, 'call', _93 => _93((tab) => tab.id === activeTab), 'optionalAccess', _94 => _94.accent]);
|
|
5355
5383
|
const indicatorStyle = {
|
|
5356
5384
|
width: `${indicator.width * progress}px`,
|
|
5357
5385
|
transform: `translateX(${indicator.left}px)`,
|
|
@@ -5555,8 +5583,8 @@ function TabNavigationBody({
|
|
|
5555
5583
|
const paramName = typeof urlSync === "object" ? urlSync.paramName || "tab" : "tab";
|
|
5556
5584
|
const replaceState = typeof urlSync === "object" ? urlSync.replaceState !== false : true;
|
|
5557
5585
|
const validTabIds = _react.useMemo.call(void 0, () => new Set(tabs.map((t) => t.id)), [tabs]);
|
|
5558
|
-
const fallbackTab = defaultTab || _optionalChain([tabs, 'access',
|
|
5559
|
-
const urlTab = isUrlSyncEnabled ? _optionalChain([searchParams, 'optionalAccess',
|
|
5586
|
+
const fallbackTab = defaultTab || _optionalChain([tabs, 'access', _95 => _95[0], 'optionalAccess', _96 => _96.id]) || "";
|
|
5587
|
+
const urlTab = isUrlSyncEnabled ? _optionalChain([searchParams, 'optionalAccess', _97 => _97.get, 'call', _98 => _98(paramName)]) || "" : "";
|
|
5560
5588
|
const getInitialTab = () => {
|
|
5561
5589
|
if (isUrlSyncEnabled && validTabIds.has(urlTab)) return urlTab;
|
|
5562
5590
|
return fallbackTab;
|
|
@@ -5589,19 +5617,19 @@ function TabNavigationBody({
|
|
|
5589
5617
|
(tabId) => {
|
|
5590
5618
|
const nav = navRef.current;
|
|
5591
5619
|
if (!nav.isUrlSyncEnabled) {
|
|
5592
|
-
_optionalChain([nav, 'access',
|
|
5620
|
+
_optionalChain([nav, 'access', _99 => _99.controlledOnTabChange, 'optionalCall', _100 => _100(tabId)]);
|
|
5593
5621
|
return;
|
|
5594
5622
|
}
|
|
5595
5623
|
setInternalActiveTab(tabId);
|
|
5596
5624
|
const inFlight = inFlightUrlTabsRef.current;
|
|
5597
5625
|
if (inFlight[inFlight.length - 1] !== tabId) inFlight.push(tabId);
|
|
5598
|
-
const params = new URLSearchParams(_optionalChain([nav, 'access',
|
|
5626
|
+
const params = new URLSearchParams(_optionalChain([nav, 'access', _101 => _101.searchParams, 'optionalAccess', _102 => _102.toString, 'call', _103 => _103()]));
|
|
5599
5627
|
params.set(nav.paramName, tabId);
|
|
5600
5628
|
const method = nav.replaceState ? "replace" : "push";
|
|
5601
5629
|
_react.startTransition.call(void 0, () => {
|
|
5602
5630
|
router[method](`${nav.pathname}?${params.toString()}`, { scroll: false });
|
|
5603
5631
|
});
|
|
5604
|
-
_optionalChain([nav, 'access',
|
|
5632
|
+
_optionalChain([nav, 'access', _104 => _104.controlledOnTabChange, 'optionalCall', _105 => _105(tabId)]);
|
|
5605
5633
|
},
|
|
5606
5634
|
[router]
|
|
5607
5635
|
);
|
|
@@ -5659,7 +5687,7 @@ function TabNavigationBody({
|
|
|
5659
5687
|
var getTabById = (tabs, tabId) => tabs.find((tab) => tab.id === tabId);
|
|
5660
5688
|
var getTabComponent = (tabs, tabId) => {
|
|
5661
5689
|
const tab = getTabById(tabs, tabId);
|
|
5662
|
-
return _optionalChain([tab, 'optionalAccess',
|
|
5690
|
+
return _optionalChain([tab, 'optionalAccess', _106 => _106.component]) || null;
|
|
5663
5691
|
};
|
|
5664
5692
|
|
|
5665
5693
|
// src/components/ui/alert.tsx
|
|
@@ -5766,10 +5794,10 @@ function FadePreview({
|
|
|
5766
5794
|
return;
|
|
5767
5795
|
}
|
|
5768
5796
|
if (itemMode) {
|
|
5769
|
-
const items = _optionalChain([el, 'access',
|
|
5770
|
-
const count = _nullishCoalesce(_optionalChain([items, 'optionalAccess',
|
|
5797
|
+
const items = _optionalChain([el, 'access', _107 => _107.firstElementChild, 'optionalAccess', _108 => _108.children]);
|
|
5798
|
+
const count = _nullishCoalesce(_optionalChain([items, 'optionalAccess', _109 => _109.length]), () => ( 0));
|
|
5771
5799
|
if (count !== itemCount) setItemCount(count);
|
|
5772
|
-
const last = count >= visible ? _optionalChain([items, 'optionalAccess',
|
|
5800
|
+
const last = count >= visible ? _optionalChain([items, 'optionalAccess', _110 => _110[visible - 1]]) : void 0;
|
|
5773
5801
|
if (last) {
|
|
5774
5802
|
const next = Math.round(last.getBoundingClientRect().bottom - el.getBoundingClientRect().top + el.scrollTop);
|
|
5775
5803
|
if (next !== itemsHeight) setItemsHeight(next);
|
|
@@ -5787,7 +5815,7 @@ function FadePreview({
|
|
|
5787
5815
|
const observer = new ResizeObserver(() => {
|
|
5788
5816
|
if (expanded) return;
|
|
5789
5817
|
setOverflows(el.scrollHeight > el.clientHeight + 1);
|
|
5790
|
-
const items = itemMode ? _optionalChain([el, 'access',
|
|
5818
|
+
const items = itemMode ? _optionalChain([el, 'access', _111 => _111.firstElementChild, 'optionalAccess', _112 => _112.children]) : void 0;
|
|
5791
5819
|
const last = items && items.length >= visible ? items[visible - 1] : void 0;
|
|
5792
5820
|
if (last)
|
|
5793
5821
|
setItemsHeight(Math.round(last.getBoundingClientRect().bottom - el.getBoundingClientRect().top + el.scrollTop));
|
|
@@ -5800,8 +5828,8 @@ function FadePreview({
|
|
|
5800
5828
|
const hidden = itemMode && hiddenCount <= 0 ? Math.max(0, itemCount - visible) : hiddenCount;
|
|
5801
5829
|
if (!fixed && !needsFade) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children });
|
|
5802
5830
|
const showToggle = needsFade || expanded;
|
|
5803
|
-
const moreLabel = _nullishCoalesce(_optionalChain([labels, 'optionalAccess',
|
|
5804
|
-
const lessLabel = _nullishCoalesce(_optionalChain([labels, 'optionalAccess',
|
|
5831
|
+
const moreLabel = _nullishCoalesce(_optionalChain([labels, 'optionalAccess', _113 => _113.more]), () => ( `Show ${hidden} more`));
|
|
5832
|
+
const lessLabel = _nullishCoalesce(_optionalChain([labels, 'optionalAccess', _114 => _114.less]), () => ( "Show less"));
|
|
5805
5833
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
|
|
5806
5834
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5807
5835
|
"div",
|
|
@@ -6019,7 +6047,7 @@ function EmbedIframe({
|
|
|
6019
6047
|
allow,
|
|
6020
6048
|
referrerPolicy,
|
|
6021
6049
|
loading,
|
|
6022
|
-
allowFullScreen: _optionalChain([allow, 'optionalAccess',
|
|
6050
|
+
allowFullScreen: _optionalChain([allow, 'optionalAccess', _115 => _115.includes, 'call', _116 => _116("fullscreen")]) ? void 0 : allowFullScreen,
|
|
6023
6051
|
sandbox
|
|
6024
6052
|
},
|
|
6025
6053
|
src
|
|
@@ -6065,7 +6093,7 @@ function EmbedViewerFrame({
|
|
|
6065
6093
|
controller.detach();
|
|
6066
6094
|
};
|
|
6067
6095
|
}, [fullscreenControl]);
|
|
6068
|
-
const toggleFullscreen = () => _optionalChain([controllerRef, 'access',
|
|
6096
|
+
const toggleFullscreen = () => _optionalChain([controllerRef, 'access', _117 => _117.current, 'optionalAccess', _118 => _118.toggle, 'call', _119 => _119()]);
|
|
6069
6097
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
6070
6098
|
"div",
|
|
6071
6099
|
{
|
|
@@ -6156,7 +6184,7 @@ function ClaudeEmbed({ url, kind = "artifact", title, height, loading = "lazy" }
|
|
|
6156
6184
|
{
|
|
6157
6185
|
className: "my-6 space-y-3",
|
|
6158
6186
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk44MFW2JLcjs.ClaudeIcon, { className: "h-5 w-5 shrink-0" }),
|
|
6159
|
-
title: _optionalChain([title, 'optionalAccess',
|
|
6187
|
+
title: _optionalChain([title, 'optionalAccess', _120 => _120.trim, 'call', _121 => _121()]) || KIND_HEADING[kind],
|
|
6160
6188
|
titleVariant: "h6",
|
|
6161
6189
|
isLoading: isProbing,
|
|
6162
6190
|
actions: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -6414,7 +6442,7 @@ function MarkdownImage({ src, alt }) {
|
|
|
6414
6442
|
const { transformImageSrc } = useRichMarkdownRuntime();
|
|
6415
6443
|
const held = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
6416
6444
|
const [probed, setProbed] = _react.useState.call(void 0, null);
|
|
6417
|
-
const ratio = _optionalChain([probed, 'optionalAccess',
|
|
6445
|
+
const ratio = _optionalChain([probed, 'optionalAccess', _122 => _122.src]) === src ? probed.ratio : null;
|
|
6418
6446
|
_react.useEffect.call(void 0, () => {
|
|
6419
6447
|
if (held) return void 0;
|
|
6420
6448
|
let cancelled = false;
|
|
@@ -6642,7 +6670,7 @@ var OGLinkPreview = ({
|
|
|
6642
6670
|
if (response.ok) {
|
|
6643
6671
|
const data = await response.json();
|
|
6644
6672
|
if (cancelled) return;
|
|
6645
|
-
if (_optionalChain([data, 'optionalAccess',
|
|
6673
|
+
if (_optionalChain([data, 'optionalAccess', _123 => _123.title]) && data.title !== "Link Preview Unavailable") {
|
|
6646
6674
|
setOgData({
|
|
6647
6675
|
title: data.title,
|
|
6648
6676
|
description: _nullishCoalesce(data.description, () => ( "")),
|
|
@@ -6682,21 +6710,21 @@ var OGLinkPreview = ({
|
|
|
6682
6710
|
favicon: `https://www.google.com/s2/favicons?domain=${domain}&sz=32`
|
|
6683
6711
|
} : null)));
|
|
6684
6712
|
const placeholderImageUrl = _chunkSTLJCAIZcjs.useOgPlaceholderUrl.call(void 0, {
|
|
6685
|
-
title: _optionalChain([effectiveData, 'optionalAccess',
|
|
6686
|
-
siteName: _optionalChain([effectiveData, 'optionalAccess',
|
|
6713
|
+
title: _optionalChain([effectiveData, 'optionalAccess', _124 => _124.title]),
|
|
6714
|
+
siteName: _optionalChain([effectiveData, 'optionalAccess', _125 => _125.siteName]) || domain,
|
|
6687
6715
|
enabled: enablePlaceholder && !isTile
|
|
6688
6716
|
});
|
|
6689
6717
|
const imageCandidates = [
|
|
6690
6718
|
{ source: "curated", url: curatedImage },
|
|
6691
|
-
{ source: "og", url: _optionalChain([effectiveData, 'optionalAccess',
|
|
6692
|
-
{ source: "og-original", url: _optionalChain([effectiveData, 'optionalAccess',
|
|
6719
|
+
{ source: "og", url: _optionalChain([effectiveData, 'optionalAccess', _126 => _126.image]) },
|
|
6720
|
+
{ source: "og-original", url: _optionalChain([effectiveData, 'optionalAccess', _127 => _127.originalImage]) },
|
|
6693
6721
|
{ source: "placeholder", url: placeholderImageUrl }
|
|
6694
6722
|
];
|
|
6695
6723
|
const resolvedImage = _nullishCoalesce(imageCandidates.find((c) => !!c.url && !failedImages.has(c.url)), () => ( null));
|
|
6696
|
-
const resolvedImageUrl = _nullishCoalesce(_optionalChain([resolvedImage, 'optionalAccess',
|
|
6724
|
+
const resolvedImageUrl = _nullishCoalesce(_optionalChain([resolvedImage, 'optionalAccess', _128 => _128.url]), () => ( null));
|
|
6697
6725
|
const hasImage = !!resolvedImageUrl;
|
|
6698
|
-
const isCuratedImage = _optionalChain([resolvedImage, 'optionalAccess',
|
|
6699
|
-
const isPlaceholder = _optionalChain([resolvedImage, 'optionalAccess',
|
|
6726
|
+
const isCuratedImage = _optionalChain([resolvedImage, 'optionalAccess', _129 => _129.source]) === "curated";
|
|
6727
|
+
const isPlaceholder = _optionalChain([resolvedImage, 'optionalAccess', _130 => _130.source]) === "placeholder";
|
|
6700
6728
|
const bgColor = _chunkSTLJCAIZcjs.useImageEdgeColor.call(void 0, _nullishCoalesce(resolvedImageUrl, () => ( null)), "var(--color-bg-surface)");
|
|
6701
6729
|
const renderSkeleton = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6702
6730
|
OGLinkPreviewSkeleton,
|
|
@@ -6718,12 +6746,12 @@ var OGLinkPreview = ({
|
|
|
6718
6746
|
children: [
|
|
6719
6747
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TILE_SOURCE_ROW_CLASS, children: [
|
|
6720
6748
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Favicon, { src: `https://www.google.com/s2/favicons?domain=${domain}&sz=32`, size: "w-4 h-4" }),
|
|
6721
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6749
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { as: "span", variant: "h6", className: "text-current", children: name }),
|
|
6722
6750
|
meta != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "ml-auto flex flex-none items-center gap-1.5 text-ods-text-secondary", children: meta })
|
|
6723
6751
|
] }),
|
|
6724
6752
|
kicker != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-hidden text-ods-accent text-h5", style: lineClamp(1), children: kicker }),
|
|
6725
6753
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6726
|
-
|
|
6754
|
+
_chunkFRS2VO22cjs.TruncateText,
|
|
6727
6755
|
{
|
|
6728
6756
|
lines: 2,
|
|
6729
6757
|
variant: "h3",
|
|
@@ -6732,7 +6760,7 @@ var OGLinkPreview = ({
|
|
|
6732
6760
|
children: curatedTitle || domainToTitle(domain)
|
|
6733
6761
|
}
|
|
6734
6762
|
),
|
|
6735
|
-
curatedDescription && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6763
|
+
curatedDescription && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { lines: 2, variant: "h6", tone: "secondary", children: curatedDescription })
|
|
6736
6764
|
]
|
|
6737
6765
|
}
|
|
6738
6766
|
);
|
|
@@ -6878,8 +6906,8 @@ var OGLinkPreview = ({
|
|
|
6878
6906
|
children: [
|
|
6879
6907
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-lg bg-ods-bg-surface", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Favicon, { src: faviconSrc }) }),
|
|
6880
6908
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
6881
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6882
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6909
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { className: "font-semibold transition-colors group-hover:text-ods-accent", children: title }),
|
|
6910
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { tone: "secondary", children: description })
|
|
6883
6911
|
] }),
|
|
6884
6912
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExternalLinkIcon, {})
|
|
6885
6913
|
]
|
|
@@ -6926,7 +6954,7 @@ var OGLinkPreview = ({
|
|
|
6926
6954
|
),
|
|
6927
6955
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
6928
6956
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6929
|
-
|
|
6957
|
+
_chunkFRS2VO22cjs.TruncateText,
|
|
6930
6958
|
{
|
|
6931
6959
|
lines: 2,
|
|
6932
6960
|
className: "min-h-[calc(var(--font-line-space-h4-body)*2)] font-semibold transition-colors group-hover:text-ods-accent",
|
|
@@ -6935,7 +6963,7 @@ var OGLinkPreview = ({
|
|
|
6935
6963
|
}
|
|
6936
6964
|
),
|
|
6937
6965
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6938
|
-
|
|
6966
|
+
_chunkFRS2VO22cjs.TruncateText,
|
|
6939
6967
|
{
|
|
6940
6968
|
lines: 2,
|
|
6941
6969
|
tone: "secondary",
|
|
@@ -6945,9 +6973,9 @@ var OGLinkPreview = ({
|
|
|
6945
6973
|
}
|
|
6946
6974
|
),
|
|
6947
6975
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-2 text-ods-text-secondary text-h6", children: [
|
|
6948
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6976
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { as: "span", variant: "h6", className: "text-current", children: effectiveData.siteName }),
|
|
6949
6977
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "\u2022" }),
|
|
6950
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6978
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { as: "span", variant: "h6", className: "text-current", children: ogDomain }),
|
|
6951
6979
|
meta
|
|
6952
6980
|
] })
|
|
6953
6981
|
] })
|
|
@@ -7328,7 +7356,7 @@ function RedditEmbedClient({ url, maxWidth = 700, rel }) {
|
|
|
7328
7356
|
apiEndpoint: redditProxyUrl,
|
|
7329
7357
|
dataValidator: validateRedditData,
|
|
7330
7358
|
onDataUpdate: (data) => {
|
|
7331
|
-
if (isCurrent() && _optionalChain([data, 'access',
|
|
7359
|
+
if (isCurrent() && _optionalChain([data, 'access', _131 => _131[0], 'optionalAccess', _132 => _132.data, 'optionalAccess', _133 => _133.children, 'optionalAccess', _134 => _134[0], 'optionalAccess', _135 => _135.data])) {
|
|
7332
7360
|
setRedditData(data[0].data.children[0].data);
|
|
7333
7361
|
}
|
|
7334
7362
|
},
|
|
@@ -7403,11 +7431,11 @@ function RedditEmbedClient({ url, maxWidth = 700, rel }) {
|
|
|
7403
7431
|
gallery_data: redditData.gallery_data,
|
|
7404
7432
|
media_metadata: redditData.media_metadata
|
|
7405
7433
|
});
|
|
7406
|
-
const video = _optionalChain([redditData, 'access',
|
|
7434
|
+
const video = _optionalChain([redditData, 'access', _136 => _136.media, 'optionalAccess', _137 => _137.reddit_video]) || _optionalChain([redditData, 'access', _138 => _138.secure_media, 'optionalAccess', _139 => _139.reddit_video]);
|
|
7407
7435
|
if (video && video.fallback_url) {
|
|
7408
7436
|
console.log("\u{1F4F9} Found Reddit video:", video);
|
|
7409
7437
|
let posterUrl = "";
|
|
7410
|
-
if (_optionalChain([redditData, 'access',
|
|
7438
|
+
if (_optionalChain([redditData, 'access', _140 => _140.preview, 'optionalAccess', _141 => _141.images, 'optionalAccess', _142 => _142[0], 'optionalAccess', _143 => _143.source, 'optionalAccess', _144 => _144.url])) {
|
|
7411
7439
|
posterUrl = redditData.preview.images[0].source.url.replace(/&/g, "&");
|
|
7412
7440
|
console.log("\u2705 Using preview image as video poster:", posterUrl);
|
|
7413
7441
|
} else {
|
|
@@ -7459,7 +7487,7 @@ function RedditEmbedClient({ url, maxWidth = 700, rel }) {
|
|
|
7459
7487
|
return media;
|
|
7460
7488
|
}
|
|
7461
7489
|
}
|
|
7462
|
-
if (_optionalChain([redditData, 'access',
|
|
7490
|
+
if (_optionalChain([redditData, 'access', _145 => _145.preview, 'optionalAccess', _146 => _146.images, 'optionalAccess', _147 => _147[0]]) && !redditData.is_video) {
|
|
7463
7491
|
const imageData = redditData.preview.images[0];
|
|
7464
7492
|
console.log("\u{1F5BC}\uFE0F Found preview image data:", imageData);
|
|
7465
7493
|
let source = imageData.source;
|
|
@@ -7494,7 +7522,7 @@ function RedditEmbedClient({ url, maxWidth = 700, rel }) {
|
|
|
7494
7522
|
} else if (directUrl.match(/\.(mp4|webm|mov|avi)(\?.*)?$/i)) {
|
|
7495
7523
|
console.log("\u{1F3AC} Found direct video URL");
|
|
7496
7524
|
let posterUrl = "";
|
|
7497
|
-
if (_optionalChain([redditData, 'access',
|
|
7525
|
+
if (_optionalChain([redditData, 'access', _148 => _148.preview, 'optionalAccess', _149 => _149.images, 'optionalAccess', _150 => _150[0], 'optionalAccess', _151 => _151.source, 'optionalAccess', _152 => _152.url])) {
|
|
7498
7526
|
posterUrl = redditData.preview.images[0].source.url.replace(/&/g, "&");
|
|
7499
7527
|
}
|
|
7500
7528
|
media.push({
|
|
@@ -7507,7 +7535,7 @@ function RedditEmbedClient({ url, maxWidth = 700, rel }) {
|
|
|
7507
7535
|
});
|
|
7508
7536
|
} else if (directUrl.includes("imgur.com") && !directUrl.includes(".gifv")) {
|
|
7509
7537
|
console.log("\u{1F310} Found Imgur link");
|
|
7510
|
-
const imgurId = _optionalChain([directUrl, 'access',
|
|
7538
|
+
const imgurId = _optionalChain([directUrl, 'access', _153 => _153.match, 'call', _154 => _154(/imgur\.com\/([a-zA-Z0-9]+)/), 'optionalAccess', _155 => _155[1]]);
|
|
7511
7539
|
if (imgurId && !directUrl.includes("/a/") && !directUrl.includes("/gallery/")) {
|
|
7512
7540
|
media.push({
|
|
7513
7541
|
type: "image",
|
|
@@ -7641,7 +7669,7 @@ function TwitterEmbedClient({ url, tweetId, maxWidth = 700, rel }) {
|
|
|
7641
7669
|
const [fetchLoading, setLoading] = _react.useState.call(void 0, true);
|
|
7642
7670
|
const [fetchError, setError] = _react.useState.call(void 0, null);
|
|
7643
7671
|
const fetchedForRef = _react.useRef.call(void 0, null);
|
|
7644
|
-
const extractedTweetId = tweetId || _optionalChain([url, 'access',
|
|
7672
|
+
const extractedTweetId = tweetId || _optionalChain([url, 'access', _156 => _156.match, 'call', _157 => _157(/status\/(\d+)/), 'optionalAccess', _158 => _158[1]]);
|
|
7645
7673
|
const error = extractedTweetId ? fetchError : "Invalid tweet URL or ID";
|
|
7646
7674
|
const loading = extractedTweetId ? fetchLoading : false;
|
|
7647
7675
|
const tweetUrl = url.includes("twitter.com") || url.includes("x.com") ? url : `https://twitter.com/twitter/status/${extractedTweetId}`;
|
|
@@ -7713,10 +7741,10 @@ function TwitterEmbedClient({ url, tweetId, maxWidth = 700, rel }) {
|
|
|
7713
7741
|
const parser = new DOMParser();
|
|
7714
7742
|
const doc = parser.parseFromString(tweetData.html, "text/html");
|
|
7715
7743
|
const blockquote = doc.querySelector("blockquote");
|
|
7716
|
-
const fullText = _optionalChain([blockquote, 'optionalAccess',
|
|
7744
|
+
const fullText = _optionalChain([blockquote, 'optionalAccess', _159 => _159.textContent]) || "";
|
|
7717
7745
|
const tweetText = fullText.replace(/- .* \(@.*\).*$/, "").trim();
|
|
7718
7746
|
const username = tweetData.author_url ? tweetData.author_url.split("/").pop() : "";
|
|
7719
|
-
const links = Array.from(_optionalChain([blockquote, 'optionalAccess',
|
|
7747
|
+
const links = Array.from(_optionalChain([blockquote, 'optionalAccess', _160 => _160.querySelectorAll, 'call', _161 => _161("a")]) || []).map((link) => ({
|
|
7720
7748
|
url: link.href,
|
|
7721
7749
|
text: link.textContent || link.href
|
|
7722
7750
|
})).filter((link) => !link.url.includes("twitter.com") && !link.url.includes("x.com"));
|
|
@@ -8037,7 +8065,7 @@ var processShortcodes = (content) => {
|
|
|
8037
8065
|
}).replace(
|
|
8038
8066
|
/\{\{claude-(artifact|design):([^|}]+)(?:\|([^}]*))?\}\}/g,
|
|
8039
8067
|
(match, kind, url, title) => {
|
|
8040
|
-
const name = _optionalChain([title, 'optionalAccess',
|
|
8068
|
+
const name = _optionalChain([title, 'optionalAccess', _162 => _162.trim, 'call', _163 => _163()]);
|
|
8041
8069
|
const titleAttr = name ? ` data-title="${escapeAttr(name)}"` : "";
|
|
8042
8070
|
return `
|
|
8043
8071
|
|
|
@@ -8496,8 +8524,8 @@ function StackedRowsPanel({
|
|
|
8496
8524
|
const inScope = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
8497
8525
|
const loading = loadingProp || inScope && rows.length === 0;
|
|
8498
8526
|
const marker = { "data-loading-item": listItems || void 0 };
|
|
8499
|
-
const shape = { columns: _nullishCoalesce(_optionalChain([skeleton, 'optionalAccess',
|
|
8500
|
-
const card = loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CARD_CLASS, "aria-hidden": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count: _nullishCoalesce(_nullishCoalesce(loadingRows, () => ( _optionalChain([skeleton, 'optionalAccess',
|
|
8527
|
+
const shape = { columns: _nullishCoalesce(_optionalChain([skeleton, 'optionalAccess', _164 => _164.columns]), () => ( 1)), labels: _nullishCoalesce(_optionalChain([skeleton, 'optionalAccess', _165 => _165.labels]), () => ( true)) };
|
|
8528
|
+
const card = loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CARD_CLASS, "aria-hidden": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count: _nullishCoalesce(_nullishCoalesce(loadingRows, () => ( _optionalChain([skeleton, 'optionalAccess', _166 => _166.rows]))), () => ( STACKED_ROWS_SKELETON_COUNT)), children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PanelRowView, { loading: shape, ...marker }) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CARD_CLASS, children: rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PanelRowView, { row, ...marker }, row.id)) });
|
|
8501
8529
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PanelFrame, { title, className, card });
|
|
8502
8530
|
}
|
|
8503
8531
|
|
|
@@ -9327,9 +9355,9 @@ function FilterModal({
|
|
|
9327
9355
|
return { ...currentFilters };
|
|
9328
9356
|
});
|
|
9329
9357
|
const [pendingTags, setPendingTags] = _react.useState.call(void 0, _nullishCoalesce(selectedTags, () => ( [])));
|
|
9330
|
-
const dateDefaultSort = _nullishCoalesce(_optionalChain([dateFilter, 'optionalAccess',
|
|
9331
|
-
const [draftDateSort, setDraftDateSort] = _react.useState.call(void 0, _nullishCoalesce(_optionalChain([dateFilter, 'optionalAccess',
|
|
9332
|
-
const [draftDateRange, setDraftDateRange] = _react.useState.call(void 0, _optionalChain([dateFilter, 'optionalAccess',
|
|
9358
|
+
const dateDefaultSort = _nullishCoalesce(_optionalChain([dateFilter, 'optionalAccess', _167 => _167.defaultSort]), () => ( "desc"));
|
|
9359
|
+
const [draftDateSort, setDraftDateSort] = _react.useState.call(void 0, _nullishCoalesce(_optionalChain([dateFilter, 'optionalAccess', _168 => _168.sort]), () => ( dateDefaultSort)));
|
|
9360
|
+
const [draftDateRange, setDraftDateRange] = _react.useState.call(void 0, _optionalChain([dateFilter, 'optionalAccess', _169 => _169.range]));
|
|
9333
9361
|
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunkKVJKKVB3cjs.useScrollFade.call(void 0, );
|
|
9334
9362
|
const seedKey = `${JSON.stringify(currentFilters)}|${JSON.stringify(_nullishCoalesce(selectedTags, () => ( [])))}`;
|
|
9335
9363
|
const seedSourceRef = _react.useRef.call(void 0, { currentFilters, selectedTags, dateFilter, dateDefaultSort });
|
|
@@ -9341,8 +9369,8 @@ function FilterModal({
|
|
|
9341
9369
|
const seed = seedSourceRef.current;
|
|
9342
9370
|
setSelectedFilters({ ...seed.currentFilters });
|
|
9343
9371
|
setPendingTags(_nullishCoalesce(seed.selectedTags, () => ( [])));
|
|
9344
|
-
setDraftDateSort(_nullishCoalesce(_optionalChain([seed, 'access',
|
|
9345
|
-
setDraftDateRange(_optionalChain([seed, 'access',
|
|
9372
|
+
setDraftDateSort(_nullishCoalesce(_optionalChain([seed, 'access', _170 => _170.dateFilter, 'optionalAccess', _171 => _171.sort]), () => ( seed.dateDefaultSort)));
|
|
9373
|
+
setDraftDateRange(_optionalChain([seed, 'access', _172 => _172.dateFilter, 'optionalAccess', _173 => _173.range]));
|
|
9346
9374
|
}, [isOpen, seedKey]);
|
|
9347
9375
|
const handleFilterToggle = (groupId, optionId, checked) => {
|
|
9348
9376
|
setSelectedFilters((prev) => {
|
|
@@ -9358,21 +9386,21 @@ function FilterModal({
|
|
|
9358
9386
|
};
|
|
9359
9387
|
const handleReset = () => {
|
|
9360
9388
|
onFilterChange({});
|
|
9361
|
-
_optionalChain([onTagsChange, 'optionalCall',
|
|
9362
|
-
_optionalChain([dateFilter, 'optionalAccess',
|
|
9389
|
+
_optionalChain([onTagsChange, 'optionalCall', _174 => _174([])]);
|
|
9390
|
+
_optionalChain([dateFilter, 'optionalAccess', _175 => _175.onChange, 'call', _176 => _176({ sort: dateDefaultSort, range: void 0 })]);
|
|
9363
9391
|
onClose();
|
|
9364
9392
|
};
|
|
9365
9393
|
const handleApply = () => {
|
|
9366
9394
|
onFilterChange(selectedFilters);
|
|
9367
|
-
_optionalChain([onTagsChange, 'optionalCall',
|
|
9368
|
-
_optionalChain([dateFilter, 'optionalAccess',
|
|
9395
|
+
_optionalChain([onTagsChange, 'optionalCall', _177 => _177(pendingTags)]);
|
|
9396
|
+
_optionalChain([dateFilter, 'optionalAccess', _178 => _178.onChange, 'call', _179 => _179({ sort: draftDateSort, range: draftDateRange })]);
|
|
9369
9397
|
onClose();
|
|
9370
9398
|
};
|
|
9371
9399
|
const getColumnDirection = (columnKey) => {
|
|
9372
|
-
return _optionalChain([sortConfig, 'optionalAccess',
|
|
9400
|
+
return _optionalChain([sortConfig, 'optionalAccess', _180 => _180.sortBy]) === columnKey ? sortConfig.sortDirection : void 0;
|
|
9373
9401
|
};
|
|
9374
9402
|
const hasSort = !!sortConfig && sortConfig.columns.length > 0;
|
|
9375
|
-
const hasFilterGroups = filterGroups.length > 0;
|
|
9403
|
+
const hasFilterGroups = filterGroups.some((group) => group.options.length > 0);
|
|
9376
9404
|
const hasTagFilter = !!tagFilterKeys && tagFilterKeys.length > 0 && !!onTagsChange;
|
|
9377
9405
|
const isEmpty = !isLoading && !hasSort && !hasFilterGroups && !hasTagFilter && !dateFilter;
|
|
9378
9406
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -9415,7 +9443,7 @@ function FilterModal({
|
|
|
9415
9443
|
{
|
|
9416
9444
|
column,
|
|
9417
9445
|
currentDirection: getColumnDirection(column.key),
|
|
9418
|
-
onSort: (direction) => _optionalChain([onSort, 'optionalCall',
|
|
9446
|
+
onSort: (direction) => _optionalChain([onSort, 'optionalCall', _181 => _181(column.key, direction)]),
|
|
9419
9447
|
onClear: onSortClear ? () => onSortClear(column.key) : void 0
|
|
9420
9448
|
},
|
|
9421
9449
|
column.key
|
|
@@ -9549,7 +9577,7 @@ function renderAdvancedPageContainer({
|
|
|
9549
9577
|
contentClassName,
|
|
9550
9578
|
showHeader = true
|
|
9551
9579
|
}, inScope = false) {
|
|
9552
|
-
const titleNode = title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9580
|
+
const titleNode = title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.PageTitle, { className: PAGE_CONTAINER_TITLE_CLASS, children: _chunkI3RJLXELcjs.accentSentenceMarks.call(void 0, title) }) : inScope && title === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageContainerTitleSkeleton, {}) : null;
|
|
9553
9581
|
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;
|
|
9554
9582
|
const getActionsVariant = () => {
|
|
9555
9583
|
if (actionsVariant) return actionsVariant;
|
|
@@ -9558,7 +9586,7 @@ function renderAdvancedPageContainer({
|
|
|
9558
9586
|
};
|
|
9559
9587
|
const renderActions = () => {
|
|
9560
9588
|
if (!actions || actions.length === 0) return null;
|
|
9561
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9589
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.PageActions, { variant: getActionsVariant(), actions, menuActions });
|
|
9562
9590
|
};
|
|
9563
9591
|
const needsBottomPadding = actions && actions.length > 0 && getActionsVariant() === "primary-buttons";
|
|
9564
9592
|
const paddingClasses = {
|
|
@@ -9581,7 +9609,7 @@ function renderAdvancedPageContainer({
|
|
|
9581
9609
|
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: [
|
|
9582
9610
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
9583
9611
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9584
|
-
|
|
9612
|
+
_chunkFRS2VO22cjs.BackButton,
|
|
9585
9613
|
{
|
|
9586
9614
|
onClick: backButton.onClick,
|
|
9587
9615
|
label: backButton.label,
|
|
@@ -9601,7 +9629,7 @@ function renderAdvancedPageContainer({
|
|
|
9601
9629
|
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: [
|
|
9602
9630
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
9603
9631
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9604
|
-
|
|
9632
|
+
_chunkFRS2VO22cjs.BackButton,
|
|
9605
9633
|
{
|
|
9606
9634
|
onClick: backButton.onClick,
|
|
9607
9635
|
label: backButton.label,
|
|
@@ -9621,7 +9649,7 @@ function renderAdvancedPageContainer({
|
|
|
9621
9649
|
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: [
|
|
9622
9650
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
9623
9651
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9624
|
-
|
|
9652
|
+
_chunkFRS2VO22cjs.BackButton,
|
|
9625
9653
|
{
|
|
9626
9654
|
onClick: backButton.onClick,
|
|
9627
9655
|
label: backButton.label,
|
|
@@ -10577,26 +10605,26 @@ function DeviceCard({
|
|
|
10577
10605
|
] }) }),
|
|
10578
10606
|
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-1/2" }) : device.organization && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", title: device.organization, children: device.organization })
|
|
10579
10607
|
] }),
|
|
10580
|
-
_optionalChain([actions, 'access',
|
|
10608
|
+
_optionalChain([actions, 'access', _182 => _182.moreButton, 'optionalAccess', _183 => _183.visible]) !== false && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10581
10609
|
"div",
|
|
10582
10610
|
{
|
|
10583
10611
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, DEVICE_CARD_MORE_BUTTON_CLASS, "cursor-pointer transition-colors hover:bg-ods-bg-hover"),
|
|
10584
10612
|
onClick: (e) => {
|
|
10585
10613
|
e.stopPropagation();
|
|
10586
|
-
_optionalChain([actions, 'access',
|
|
10614
|
+
_optionalChain([actions, 'access', _184 => _184.moreButton, 'optionalAccess', _185 => _185.onClick, 'optionalCall', _186 => _186()]);
|
|
10587
10615
|
},
|
|
10588
10616
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWHUL32Wcjs.Ellipsis01Icon, { className: "text-ods-text-primary" })
|
|
10589
10617
|
}
|
|
10590
10618
|
),
|
|
10591
|
-
_optionalChain([actions, 'access',
|
|
10592
|
-
_optionalChain([actions, 'access',
|
|
10619
|
+
_optionalChain([actions, 'access', _187 => _187.detailsButton, 'optionalAccess', _188 => _188.visible]) !== false && _optionalChain([actions, 'access', _189 => _189.detailsButton, 'optionalAccess', _190 => _190.component]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0", onClick: (e) => e.stopPropagation(), children: actions.detailsButton.component }),
|
|
10620
|
+
_optionalChain([actions, 'access', _191 => _191.customActions, 'optionalAccess', _192 => _192.map, 'call', _193 => _193(
|
|
10593
10621
|
(action, index) => action.visible !== false && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10594
10622
|
"div",
|
|
10595
10623
|
{
|
|
10596
10624
|
className: "flex shrink-0 cursor-pointer items-center justify-center rounded-[6px] border border-ods-border px-4 py-3 transition-colors hover:bg-ods-bg-hover",
|
|
10597
10625
|
onClick: (e) => {
|
|
10598
10626
|
e.stopPropagation();
|
|
10599
|
-
_optionalChain([action, 'access',
|
|
10627
|
+
_optionalChain([action, 'access', _194 => _194.onClick, 'optionalCall', _195 => _195()]);
|
|
10600
10628
|
},
|
|
10601
10629
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-nowrap text-ods-text-primary text-h3", children: action.label })
|
|
10602
10630
|
},
|
|
@@ -10609,11 +10637,11 @@ function DeviceCard({
|
|
|
10609
10637
|
_chunkTGOJHOQRcjs.Tag,
|
|
10610
10638
|
{
|
|
10611
10639
|
loading,
|
|
10612
|
-
variant: _optionalChain([statusTag, 'optionalAccess',
|
|
10613
|
-
icon: _optionalChain([statusTag, 'optionalAccess',
|
|
10614
|
-
onClose: _optionalChain([statusTag, 'optionalAccess',
|
|
10615
|
-
className: _optionalChain([statusTag, 'optionalAccess',
|
|
10616
|
-
label: _nullishCoalesce(_optionalChain([statusTag, 'optionalAccess',
|
|
10640
|
+
variant: _optionalChain([statusTag, 'optionalAccess', _196 => _196.variant]),
|
|
10641
|
+
icon: _optionalChain([statusTag, 'optionalAccess', _197 => _197.icon]),
|
|
10642
|
+
onClose: _optionalChain([statusTag, 'optionalAccess', _198 => _198.onClose]),
|
|
10643
|
+
className: _optionalChain([statusTag, 'optionalAccess', _199 => _199.className]),
|
|
10644
|
+
label: _nullishCoalesce(_optionalChain([statusTag, 'optionalAccess', _200 => _200.label]), () => ( ""))
|
|
10617
10645
|
}
|
|
10618
10646
|
),
|
|
10619
10647
|
(loading || device.lastSeen) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-1 items-center gap-1 text-ods-text-secondary text-h6", children: [
|
|
@@ -11580,7 +11608,7 @@ function MoreActionsMenu({
|
|
|
11580
11608
|
] });
|
|
11581
11609
|
const handleActivate = (e) => {
|
|
11582
11610
|
e.stopPropagation();
|
|
11583
|
-
if (!item.disabled) _optionalChain([item, 'access',
|
|
11611
|
+
if (!item.disabled) _optionalChain([item, 'access', _201 => _201.onClick, 'optionalCall', _202 => _202()]);
|
|
11584
11612
|
};
|
|
11585
11613
|
if (item.href) {
|
|
11586
11614
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNL3G642Ucjs.DropdownMenuItem, { asChild: true, disabled: item.disabled, className: itemClassName, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11652,7 +11680,7 @@ function OrganizationCardSkeleton({
|
|
|
11652
11680
|
..._chunk7JWFMAQBcjs.loadingItemProps.call(void 0, props),
|
|
11653
11681
|
children: [
|
|
11654
11682
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_HEADER_CLASS, children: [
|
|
11655
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11683
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.EntityImage, { src: null }),
|
|
11656
11684
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_TEXT_CLASS, children: [
|
|
11657
11685
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h3", className: "w-3/4" }),
|
|
11658
11686
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-1/2" })
|
|
@@ -11687,7 +11715,7 @@ function OrganizationCard({
|
|
|
11687
11715
|
const handleActionClick = (e) => {
|
|
11688
11716
|
e.preventDefault();
|
|
11689
11717
|
e.stopPropagation();
|
|
11690
|
-
_optionalChain([actionButton, 'optionalAccess',
|
|
11718
|
+
_optionalChain([actionButton, 'optionalAccess', _203 => _203.onClick, 'call', _204 => _204(organization, e)]);
|
|
11691
11719
|
};
|
|
11692
11720
|
const card = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
11693
11721
|
"div",
|
|
@@ -11724,7 +11752,7 @@ function OrganizationCard({
|
|
|
11724
11752
|
}
|
|
11725
11753
|
),
|
|
11726
11754
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_HEADER_CLASS, children: [
|
|
11727
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11755
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.EntityImage, { src: fetchedImageUrl || organization.imageUrl, alt: organization.name }),
|
|
11728
11756
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_TEXT_CLASS, children: [
|
|
11729
11757
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "truncate text-ods-text-primary transition-colors text-h3", title: organization.name, children: organization.name }),
|
|
11730
11758
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11791,8 +11819,8 @@ function ServiceCard({
|
|
|
11791
11819
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-4", children: [
|
|
11792
11820
|
/* @__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 }),
|
|
11793
11821
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0", children: [
|
|
11794
|
-
loading && !title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h3", className: "w-40 max-w-full" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11795
|
-
loading && subtitle === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-56 max-w-full" }) : subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11822
|
+
loading && !title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h3", className: "w-40 max-w-full" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { variant: "h3", children: title }),
|
|
11823
|
+
loading && subtitle === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-56 max-w-full" }) : subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { variant: "h6", tone: "secondary", children: subtitle })
|
|
11796
11824
|
] })
|
|
11797
11825
|
] }),
|
|
11798
11826
|
tag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { label: tag.label, variant: "outline", className: "shrink-0 self-start", loading })
|
|
@@ -11882,7 +11910,7 @@ var Slider = _react.forwardRef.call(void 0,
|
|
|
11882
11910
|
({ className, value = [0], onValueChange, min = 0, max = 100, step = 1, ...props }, ref) => {
|
|
11883
11911
|
const handleChange = (e) => {
|
|
11884
11912
|
const newValue = [Number(e.target.value)];
|
|
11885
|
-
_optionalChain([onValueChange, 'optionalCall',
|
|
11913
|
+
_optionalChain([onValueChange, 'optionalCall', _205 => _205(newValue)]);
|
|
11886
11914
|
};
|
|
11887
11915
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11888
11916
|
"input",
|
|
@@ -11931,14 +11959,14 @@ function PersonCell({
|
|
|
11931
11959
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.SquareAvatar, { size: scale.avatar, src: _nullishCoalesce(avatarUrl, () => ( void 0)), alt: displayName, fallback: displayName }),
|
|
11932
11960
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
11933
11961
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11934
|
-
|
|
11962
|
+
_chunkFRS2VO22cjs.TruncateText,
|
|
11935
11963
|
{
|
|
11936
11964
|
variant: scale.primary,
|
|
11937
11965
|
className: onClick ? "text-ods-accent group-hover/person-cell:underline" : void 0,
|
|
11938
11966
|
children: displayName
|
|
11939
11967
|
}
|
|
11940
11968
|
),
|
|
11941
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11969
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { variant: "h6", tone: "secondary", children: secondary === void 0 ? "\xA0" : secondary || "\xB7" })
|
|
11942
11970
|
] })
|
|
11943
11971
|
] });
|
|
11944
11972
|
if (!onClick) return row;
|
|
@@ -11971,8 +11999,8 @@ function PeopleCell({ people, fallbackName = "Unassigned" }) {
|
|
|
11971
11999
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11972
12000
|
PersonCell,
|
|
11973
12001
|
{
|
|
11974
|
-
name: _optionalChain([person, 'optionalAccess',
|
|
11975
|
-
avatarUrl: _optionalChain([person, 'optionalAccess',
|
|
12002
|
+
name: _optionalChain([person, 'optionalAccess', _206 => _206.name]),
|
|
12003
|
+
avatarUrl: _optionalChain([person, 'optionalAccess', _207 => _207.avatarUrl]),
|
|
11976
12004
|
secondary: person ? person.secondary : void 0,
|
|
11977
12005
|
fallbackName
|
|
11978
12006
|
}
|
|
@@ -12298,7 +12326,7 @@ function QueryReportTable({
|
|
|
12298
12326
|
const columns = _react.useMemo.call(void 0, () => deriveColumns(data, columnOrder), [data, columnOrder]);
|
|
12299
12327
|
const handleExport = () => {
|
|
12300
12328
|
exportToCSV(data, columns, exportFilename);
|
|
12301
|
-
_optionalChain([onExport, 'optionalCall',
|
|
12329
|
+
_optionalChain([onExport, 'optionalCall', _208 => _208()]);
|
|
12302
12330
|
};
|
|
12303
12331
|
const tableMinWidth = columns.length * (columnWidth + 16);
|
|
12304
12332
|
const {
|
|
@@ -12512,7 +12540,7 @@ function CursorPaginationSimple({
|
|
|
12512
12540
|
{
|
|
12513
12541
|
variant: "transparent",
|
|
12514
12542
|
size: "icon",
|
|
12515
|
-
onClick: () => _optionalChain([onPrevious, 'optionalCall',
|
|
12543
|
+
onClick: () => _optionalChain([onPrevious, 'optionalCall', _209 => _209("")]),
|
|
12516
12544
|
disabled: !hasPreviousPage || loading,
|
|
12517
12545
|
className: "h-8 w-8",
|
|
12518
12546
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" }),
|
|
@@ -12524,7 +12552,7 @@ function CursorPaginationSimple({
|
|
|
12524
12552
|
{
|
|
12525
12553
|
variant: "transparent",
|
|
12526
12554
|
size: "icon",
|
|
12527
|
-
onClick: () => _optionalChain([onNext, 'optionalCall',
|
|
12555
|
+
onClick: () => _optionalChain([onNext, 'optionalCall', _210 => _210("")]),
|
|
12528
12556
|
disabled: !hasNextPage || loading,
|
|
12529
12557
|
className: "h-8 w-8",
|
|
12530
12558
|
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" }),
|
|
@@ -12721,7 +12749,7 @@ var multiSelectFilterFn = (row, columnId2, filterValue) => {
|
|
|
12721
12749
|
var DATA_TABLE_SKELETON_ROWS = 10;
|
|
12722
12750
|
var DATA_TABLE_NEXT_PAGE_SKELETON_ROWS = 3;
|
|
12723
12751
|
function dataTablePageSize(table) {
|
|
12724
|
-
const size = _nullishCoalesce(_optionalChain([table, 'access',
|
|
12752
|
+
const size = _nullishCoalesce(_optionalChain([table, 'access', _211 => _211.options, 'access', _212 => _212.state, 'optionalAccess', _213 => _213.pagination, 'optionalAccess', _214 => _214.pageSize]), () => ( _optionalChain([table, 'access', _215 => _215.options, 'access', _216 => _216.initialState, 'optionalAccess', _217 => _217.pagination, 'optionalAccess', _218 => _218.pageSize])));
|
|
12725
12753
|
return size && size > 0 ? size : void 0;
|
|
12726
12754
|
}
|
|
12727
12755
|
function dataTableLoadingRows(count, fill) {
|
|
@@ -12758,7 +12786,7 @@ function DataTableRowSkeleton({
|
|
|
12758
12786
|
}) {
|
|
12759
12787
|
const table = useDataTableContext();
|
|
12760
12788
|
const columns = table.getVisibleFlatColumns();
|
|
12761
|
-
const firstColumnId = _optionalChain([columns, 'access',
|
|
12789
|
+
const firstColumnId = _optionalChain([columns, 'access', _219 => _219[0], 'optionalAccess', _220 => _220.id]);
|
|
12762
12790
|
const heightClass = (designHeight) => rowHeightClassName ? "h-full" : compact ? "py-[var(--spacing-system-xsf)]" : designHeight;
|
|
12763
12791
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
12764
12792
|
"div",
|
|
@@ -12784,9 +12812,9 @@ function DataTableRowSkeleton({
|
|
|
12784
12812
|
{
|
|
12785
12813
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
12786
12814
|
"flex shrink-0 flex-col justify-center",
|
|
12787
|
-
_optionalChain([meta, 'optionalAccess',
|
|
12815
|
+
_optionalChain([meta, 'optionalAccess', _221 => _221.width]) || "flex-1",
|
|
12788
12816
|
// Same responsive hiding the real header and row apply, so the columns are sized against one total.
|
|
12789
|
-
getHideClasses(_optionalChain([meta, 'optionalAccess',
|
|
12817
|
+
getHideClasses(_optionalChain([meta, 'optionalAccess', _222 => _222.hideAt]))
|
|
12790
12818
|
),
|
|
12791
12819
|
children: [
|
|
12792
12820
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h4", className: "w-3/4" }),
|
|
@@ -12840,14 +12868,14 @@ function DataTableRowImpl({
|
|
|
12840
12868
|
if (isLinkMode) e.preventDefault();
|
|
12841
12869
|
return;
|
|
12842
12870
|
}
|
|
12843
|
-
_optionalChain([onClick, 'optionalCall',
|
|
12871
|
+
_optionalChain([onClick, 'optionalCall', _223 => _223(row.original)]);
|
|
12844
12872
|
},
|
|
12845
12873
|
[onClick, row.original, isLinkMode]
|
|
12846
12874
|
);
|
|
12847
12875
|
const preventControlNavigation = _react.useCallback.call(void 0, (e) => {
|
|
12848
12876
|
const container = containerRef.current;
|
|
12849
12877
|
const target = e.target;
|
|
12850
|
-
if (!(target instanceof Element) || !_optionalChain([container, 'optionalAccess',
|
|
12878
|
+
if (!(target instanceof Element) || !_optionalChain([container, 'optionalAccess', _224 => _224.contains, 'call', _225 => _225(target)])) return;
|
|
12851
12879
|
const nestedLink = target.closest("a");
|
|
12852
12880
|
if (nestedLink && nestedLink !== container && container.contains(nestedLink)) return;
|
|
12853
12881
|
if (!_chunkBT53NHR7cjs.isOwnClick.call(void 0, target, container) || target.closest(ROW_LINK_CONTROL_SELECTOR)) e.preventDefault();
|
|
@@ -12886,10 +12914,10 @@ function DataTableRowImpl({
|
|
|
12886
12914
|
{
|
|
12887
12915
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
12888
12916
|
"flex flex-col overflow-hidden",
|
|
12889
|
-
alignJustify(_optionalChain([meta, 'optionalAccess',
|
|
12890
|
-
_optionalChain([meta, 'optionalAccess',
|
|
12891
|
-
_optionalChain([meta, 'optionalAccess',
|
|
12892
|
-
getHideClasses(_optionalChain([meta, 'optionalAccess',
|
|
12917
|
+
alignJustify(_optionalChain([meta, 'optionalAccess', _226 => _226.align])),
|
|
12918
|
+
_optionalChain([meta, 'optionalAccess', _227 => _227.width]) || "min-w-0 flex-1",
|
|
12919
|
+
_optionalChain([meta, 'optionalAccess', _228 => _228.cellClassName]),
|
|
12920
|
+
getHideClasses(_optionalChain([meta, 'optionalAccess', _229 => _229.hideAt]))
|
|
12893
12921
|
),
|
|
12894
12922
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CellContent, { children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) })
|
|
12895
12923
|
},
|
|
@@ -12993,7 +13021,7 @@ function DataTableBody({
|
|
|
12993
13021
|
compact,
|
|
12994
13022
|
rowHeightClassName,
|
|
12995
13023
|
className: typeof rowClassName === "function" ? rowClassName(row.original, index) : rowClassName,
|
|
12996
|
-
subRow: loadingSubRows ? _optionalChain([renderSubRow, 'optionalCall',
|
|
13024
|
+
subRow: loadingSubRows ? _optionalChain([renderSubRow, 'optionalCall', _230 => _230(row.original)]) : void 0,
|
|
12997
13025
|
"data-loading-item": true
|
|
12998
13026
|
},
|
|
12999
13027
|
row.id
|
|
@@ -13041,7 +13069,7 @@ function DataTableBody({
|
|
|
13041
13069
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, ROW_STACK_CLASSES, className), children: [
|
|
13042
13070
|
rows.map((row, index) => {
|
|
13043
13071
|
const item = row.original;
|
|
13044
|
-
const href = _nullishCoalesce(_optionalChain([rowHref, 'optionalCall',
|
|
13072
|
+
const href = _nullishCoalesce(_optionalChain([rowHref, 'optionalCall', _231 => _231(item)]), () => ( void 0));
|
|
13045
13073
|
const cls = typeof rowClassName === "function" ? rowClassName(item, index) : rowClassName;
|
|
13046
13074
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13047
13075
|
DataTableRow,
|
|
@@ -13052,7 +13080,7 @@ function DataTableBody({
|
|
|
13052
13080
|
compact,
|
|
13053
13081
|
rowHeightClassName,
|
|
13054
13082
|
className: cls,
|
|
13055
|
-
subRow: _optionalChain([renderSubRow, 'optionalCall',
|
|
13083
|
+
subRow: _optionalChain([renderSubRow, 'optionalCall', _232 => _232(item)]),
|
|
13056
13084
|
"data-loading-item": true
|
|
13057
13085
|
},
|
|
13058
13086
|
row.id
|
|
@@ -13108,7 +13136,7 @@ function DataTableColumnFilter({
|
|
|
13108
13136
|
pending = false
|
|
13109
13137
|
}) {
|
|
13110
13138
|
const currentValue = column.getFilterValue();
|
|
13111
|
-
const activeCount = _nullishCoalesce(_optionalChain([currentValue, 'optionalAccess',
|
|
13139
|
+
const activeCount = _nullishCoalesce(_optionalChain([currentValue, 'optionalAccess', _233 => _233.length]), () => ( 0));
|
|
13112
13140
|
const sections = _react.useMemo.call(void 0,
|
|
13113
13141
|
() => [
|
|
13114
13142
|
{
|
|
@@ -13240,7 +13268,7 @@ function DataTableHeader({
|
|
|
13240
13268
|
);
|
|
13241
13269
|
}
|
|
13242
13270
|
function keepsCellOnTablet(meta) {
|
|
13243
|
-
return Boolean(_optionalChain([meta, 'optionalAccess',
|
|
13271
|
+
return Boolean(_optionalChain([meta, 'optionalAccess', _234 => _234.filter])) || _optionalChain([meta, 'optionalAccess', _235 => _235.sortable]) === true || _optionalChain([meta, 'optionalAccess', _236 => _236.alwaysShowHeader]) === true;
|
|
13244
13272
|
}
|
|
13245
13273
|
var SHOW_FROM = {
|
|
13246
13274
|
md: "content-md:flex",
|
|
@@ -13278,11 +13306,11 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13278
13306
|
if (header.isPlaceholder) return null;
|
|
13279
13307
|
const column = header.column;
|
|
13280
13308
|
const meta = column.columnDef.meta;
|
|
13281
|
-
const filter = _optionalChain([meta, 'optionalAccess',
|
|
13309
|
+
const filter = _optionalChain([meta, 'optionalAccess', _237 => _237.filter]);
|
|
13282
13310
|
const keepOnTablet = keepsCellOnTablet(meta);
|
|
13283
|
-
const align = _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
13284
|
-
const canSort = _optionalChain([meta, 'optionalAccess',
|
|
13285
|
-
const sortDir = _optionalChain([sort, 'optionalAccess',
|
|
13311
|
+
const align = _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _238 => _238.align]), () => ( "left"));
|
|
13312
|
+
const canSort = _optionalChain([meta, 'optionalAccess', _239 => _239.sortable]) === true;
|
|
13313
|
+
const sortDir = _optionalChain([sort, 'optionalAccess', _240 => _240.id]) === column.id ? sort.desc ? "desc" : "asc" : false;
|
|
13286
13314
|
const filterTrigger = filter ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13287
13315
|
DataTableColumnFilter,
|
|
13288
13316
|
{
|
|
@@ -13301,7 +13329,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13301
13329
|
"items-stretch",
|
|
13302
13330
|
// Cells are hidden rather than dropped from the tree, so which columns
|
|
13303
13331
|
// exist never depends on when an effect ran.
|
|
13304
|
-
getCellVisibilityClasses(keepOnTablet, _optionalChain([meta, 'optionalAccess',
|
|
13332
|
+
getCellVisibilityClasses(keepOnTablet, _optionalChain([meta, 'optionalAccess', _241 => _241.hideAt])),
|
|
13305
13333
|
// Width applies from lg only. Stated as "always, neutralized below lg"
|
|
13306
13334
|
// because `meta.width` is an opaque consumer string that cannot be
|
|
13307
13335
|
// prefixed. Only `keepOnTablet` cells need the override — the rest are
|
|
@@ -13319,15 +13347,15 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13319
13347
|
// Specificity rather than `!important`: it stays a normal declaration, so a
|
|
13320
13348
|
// consumer that genuinely needs a tablet width can still take it back with a
|
|
13321
13349
|
// more specific rule — `!important` could only be answered with another one.
|
|
13322
|
-
_optionalChain([meta, 'optionalAccess',
|
|
13350
|
+
_optionalChain([meta, 'optionalAccess', _242 => _242.width]) || "min-w-0 flex-1",
|
|
13323
13351
|
keepOnTablet && "content-max-lg:[&&]:w-auto content-max-lg:[&&]:flex-none content-max-lg:[&&]:basis-auto",
|
|
13324
|
-
_optionalChain([meta, 'optionalAccess',
|
|
13352
|
+
_optionalChain([meta, 'optionalAccess', _243 => _243.headerClassName])
|
|
13325
13353
|
),
|
|
13326
13354
|
children: filterTrigger ? (
|
|
13327
13355
|
// Only a column that HAS a hint gets the extra row, so every existing
|
|
13328
13356
|
// filter header keeps its exact structure — the trigger stays a direct
|
|
13329
13357
|
// child of the cell.
|
|
13330
|
-
_optionalChain([meta, 'optionalAccess',
|
|
13358
|
+
_optionalChain([meta, 'optionalAccess', _244 => _244.hint]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13331
13359
|
filterTrigger,
|
|
13332
13360
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBT53NHR7cjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
13333
13361
|
] }) : filterTrigger
|
|
@@ -13343,9 +13371,9 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13343
13371
|
keepOnTablet && "content-max-lg:justify-start",
|
|
13344
13372
|
canSort && "group cursor-pointer"
|
|
13345
13373
|
),
|
|
13346
|
-
onClick: canSort ? () => _optionalChain([onSortChange, 'optionalCall',
|
|
13374
|
+
onClick: canSort ? () => _optionalChain([onSortChange, 'optionalCall', _245 => _245(column.id)]) : void 0,
|
|
13347
13375
|
children: [
|
|
13348
|
-
_optionalChain([meta, 'optionalAccess',
|
|
13376
|
+
_optionalChain([meta, 'optionalAccess', _246 => _246.hint]) ? (
|
|
13349
13377
|
// The hint shares a LABEL GROUP with the text, pinned to the FIRST
|
|
13350
13378
|
// line (`items-start`): on a label that breaks onto a second line it
|
|
13351
13379
|
// reads beside the opening word instead of floating in the gap
|
|
@@ -13368,7 +13396,7 @@ var DATA_TABLE_HEADER_LABEL_CLASS = "min-w-0 text-balance uppercase text-ods-tex
|
|
|
13368
13396
|
var DATA_TABLE_HEADER_LABEL_BAR_CLASS = "w-40 max-w-full";
|
|
13369
13397
|
function HeaderLabel({ header }) {
|
|
13370
13398
|
const headerDef = header.column.columnDef.header;
|
|
13371
|
-
if (_optionalChain([header, 'access',
|
|
13399
|
+
if (_optionalChain([header, 'access', _247 => _247.column, 'access', _248 => _248.columnDef, 'access', _249 => _249.meta, 'optionalAccess', _250 => _250.headerLoading])) {
|
|
13372
13400
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: DATA_TABLE_HEADER_LABEL_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: DATA_TABLE_HEADER_LABEL_BAR_CLASS }) });
|
|
13373
13401
|
}
|
|
13374
13402
|
if (headerDef === void 0) return null;
|
|
@@ -13422,9 +13450,9 @@ function DataTableInfiniteFooter({
|
|
|
13422
13450
|
loadMore.setSkeletonRows(requestedRows);
|
|
13423
13451
|
return () => loadMore.setSkeletonRows(0);
|
|
13424
13452
|
}, [loadMore, requestedRows]);
|
|
13425
|
-
const tableRows = _optionalChain([table, 'optionalAccess',
|
|
13426
|
-
const progressCount = _nullishCoalesce(loadedCount, () => ( _optionalChain([tableRows, 'optionalAccess',
|
|
13427
|
-
const lastRowId = _nullishCoalesce(_optionalChain([tableRows, 'optionalAccess',
|
|
13453
|
+
const tableRows = _optionalChain([table, 'optionalAccess', _251 => _251.getRowModel, 'call', _252 => _252(), 'access', _253 => _253.rows]);
|
|
13454
|
+
const progressCount = _nullishCoalesce(loadedCount, () => ( _optionalChain([tableRows, 'optionalAccess', _254 => _254.length])));
|
|
13455
|
+
const lastRowId = _nullishCoalesce(_optionalChain([tableRows, 'optionalAccess', _255 => _255[tableRows.length - 1], 'optionalAccess', _256 => _256.id]), () => ( ""));
|
|
13428
13456
|
const tail = progressCount === void 0 ? null : `${progressCount}:${lastRowId}`;
|
|
13429
13457
|
const [wasFetching, setWasFetching] = _react.useState.call(void 0, isFetchingNextPage);
|
|
13430
13458
|
const [tailAtFetchStart, setTailAtFetchStart] = _react.useState.call(void 0, null);
|
|
@@ -13445,7 +13473,7 @@ function DataTableInfiniteFooter({
|
|
|
13445
13473
|
if (!sentinel) return void 0;
|
|
13446
13474
|
const observer = new IntersectionObserver(
|
|
13447
13475
|
(entries) => {
|
|
13448
|
-
if (_optionalChain([entries, 'access',
|
|
13476
|
+
if (_optionalChain([entries, 'access', _257 => _257[0], 'optionalAccess', _258 => _258.isIntersecting])) onLoadMoreRef.current();
|
|
13449
13477
|
},
|
|
13450
13478
|
{ root: findScrollParent(sentinel), rootMargin }
|
|
13451
13479
|
);
|
|
@@ -13483,10 +13511,10 @@ function DataTableRowCount({
|
|
|
13483
13511
|
const inScope = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loading;
|
|
13484
13512
|
const count = _nullishCoalesce(totalCount, () => ( table.getRowModel().rows.length));
|
|
13485
13513
|
if (inScope) {
|
|
13486
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTableRowCountSkeleton, { label: _nullishCoalesce(_optionalChain([pluralize, 'optionalCall',
|
|
13514
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTableRowCountSkeleton, { label: _nullishCoalesce(_optionalChain([pluralize, 'optionalCall', _259 => _259(2, itemName)]), () => ( `${itemName}s`)), className });
|
|
13487
13515
|
}
|
|
13488
13516
|
if (hideWhenEmpty && count === 0) return null;
|
|
13489
|
-
const label = _nullishCoalesce(_optionalChain([pluralize, 'optionalCall',
|
|
13517
|
+
const label = _nullishCoalesce(_optionalChain([pluralize, 'optionalCall', _260 => _260(count, itemName)]), () => ( (count === 1 ? itemName : `${itemName}s`)));
|
|
13490
13518
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, ROW_COUNT_CLASS, className), children: [
|
|
13491
13519
|
count,
|
|
13492
13520
|
" ",
|
|
@@ -13605,12 +13633,12 @@ function PhoneInput({
|
|
|
13605
13633
|
(phone) => {
|
|
13606
13634
|
if (!phone || digitCount(phone) === 0) {
|
|
13607
13635
|
setIsInvalid(false);
|
|
13608
|
-
_optionalChain([onValidationChange, 'optionalCall',
|
|
13636
|
+
_optionalChain([onValidationChange, 'optionalCall', _261 => _261(false)]);
|
|
13609
13637
|
return;
|
|
13610
13638
|
}
|
|
13611
13639
|
const invalid = !_chunkBT53NHR7cjs.validatePhoneNumber.call(void 0, phone, countryCode);
|
|
13612
13640
|
setIsInvalid(invalid);
|
|
13613
|
-
_optionalChain([onValidationChange, 'optionalCall',
|
|
13641
|
+
_optionalChain([onValidationChange, 'optionalCall', _262 => _262(invalid)]);
|
|
13614
13642
|
},
|
|
13615
13643
|
[countryCode, digitCount, onValidationChange]
|
|
13616
13644
|
);
|
|
@@ -13628,7 +13656,7 @@ function PhoneInput({
|
|
|
13628
13656
|
}, []);
|
|
13629
13657
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 gap-2", children: [
|
|
13630
13658
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13631
|
-
|
|
13659
|
+
_chunkFRS2VO22cjs.Select,
|
|
13632
13660
|
{
|
|
13633
13661
|
value: countryCode,
|
|
13634
13662
|
onValueChange: (val) => {
|
|
@@ -13639,14 +13667,14 @@ function PhoneInput({
|
|
|
13639
13667
|
},
|
|
13640
13668
|
disabled,
|
|
13641
13669
|
children: [
|
|
13642
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13670
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectTrigger, { className: "w-[130px] shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectValue, { children: selectedCountry && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-1.5", children: [
|
|
13643
13671
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: selectedCountry.flag }),
|
|
13644
13672
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: selectedCountry.dialCode })
|
|
13645
13673
|
] }) }) }),
|
|
13646
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13647
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13648
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13649
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13674
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFRS2VO22cjs.SelectContent, { className: "max-h-[300px] !w-[280px]", children: [
|
|
13675
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectGroup, { children: priority.map((country) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CountryOption, { country }, country.code)) }),
|
|
13676
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectSeparator, {}),
|
|
13677
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectGroup, { children: others.map((country) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CountryOption, { country }, country.code)) })
|
|
13650
13678
|
] })
|
|
13651
13679
|
]
|
|
13652
13680
|
}
|
|
@@ -13664,7 +13692,7 @@ function PhoneInput({
|
|
|
13664
13692
|
debouncedValidation(val);
|
|
13665
13693
|
} else if (digitCount(val) === 0) {
|
|
13666
13694
|
setIsInvalid(false);
|
|
13667
|
-
_optionalChain([onValidationChange, 'optionalCall',
|
|
13695
|
+
_optionalChain([onValidationChange, 'optionalCall', _263 => _263(false)]);
|
|
13668
13696
|
}
|
|
13669
13697
|
}
|
|
13670
13698
|
},
|
|
@@ -13678,7 +13706,7 @@ function PhoneInput({
|
|
|
13678
13706
|
] });
|
|
13679
13707
|
}
|
|
13680
13708
|
function CountryOption({ country }) {
|
|
13681
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13709
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: country.code, textValue: country.name, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-2", children: [
|
|
13682
13710
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0", children: country.flag }),
|
|
13683
13711
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary", children: country.dialCode }),
|
|
13684
13712
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-block max-w-[140px] overflow-hidden text-ellipsis whitespace-nowrap", children: country.name })
|
|
@@ -13784,7 +13812,7 @@ function SearchInput({
|
|
|
13784
13812
|
if (!showHiddenTags) return void 0;
|
|
13785
13813
|
const handleClick = (e) => {
|
|
13786
13814
|
const target = e.target;
|
|
13787
|
-
if (!_optionalChain([hiddenTagsRef, 'access',
|
|
13815
|
+
if (!_optionalChain([hiddenTagsRef, 'access', _264 => _264.current, 'optionalAccess', _265 => _265.contains, 'call', _266 => _266(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _267 => _267.current, 'optionalAccess', _268 => _268.contains, 'call', _269 => _269(target)])) {
|
|
13788
13816
|
setShowHiddenTags(false);
|
|
13789
13817
|
}
|
|
13790
13818
|
};
|
|
@@ -13795,7 +13823,7 @@ function SearchInput({
|
|
|
13795
13823
|
const popup = hiddenTagsPopupRef.current;
|
|
13796
13824
|
const badge = badgeRef.current;
|
|
13797
13825
|
if (!popup || !badge) return;
|
|
13798
|
-
const originLeft = _nullishCoalesce(_optionalChain([containerRef, 'access',
|
|
13826
|
+
const originLeft = _nullishCoalesce(_optionalChain([containerRef, 'access', _270 => _270.current, 'optionalAccess', _271 => _271.getBoundingClientRect, 'call', _272 => _272(), 'access', _273 => _273.left]), () => ( 0));
|
|
13799
13827
|
popup.style.left = `${badge.getBoundingClientRect().left - originLeft}px`;
|
|
13800
13828
|
});
|
|
13801
13829
|
const hiddenCount = filterChips.length - visibleCount;
|
|
@@ -13830,7 +13858,7 @@ function SearchInput({
|
|
|
13830
13858
|
} else {
|
|
13831
13859
|
setInternalValue(newVal);
|
|
13832
13860
|
}
|
|
13833
|
-
if (newVal === "" && currentValue !== "") _optionalChain([onSubmit, 'optionalCall',
|
|
13861
|
+
if (newVal === "" && currentValue !== "") _optionalChain([onSubmit, 'optionalCall', _274 => _274("")]);
|
|
13834
13862
|
if (!isOpen) setIsOpen(true);
|
|
13835
13863
|
setHighlightedIndex(-1);
|
|
13836
13864
|
};
|
|
@@ -13842,11 +13870,11 @@ function SearchInput({
|
|
|
13842
13870
|
} else {
|
|
13843
13871
|
setInternalValue("");
|
|
13844
13872
|
}
|
|
13845
|
-
if (currentValue !== "") _optionalChain([onSubmit, 'optionalCall',
|
|
13846
|
-
_optionalChain([inputRef, 'access',
|
|
13873
|
+
if (currentValue !== "") _optionalChain([onSubmit, 'optionalCall', _275 => _275("")]);
|
|
13874
|
+
_optionalChain([inputRef, 'access', _276 => _276.current, 'optionalAccess', _277 => _277.focus, 'call', _278 => _278()]);
|
|
13847
13875
|
};
|
|
13848
13876
|
const handleResultClick = (result, e) => {
|
|
13849
|
-
_optionalChain([onResultSelect, 'optionalCall',
|
|
13877
|
+
_optionalChain([onResultSelect, 'optionalCall', _279 => _279(
|
|
13850
13878
|
result,
|
|
13851
13879
|
e ? {
|
|
13852
13880
|
metaKey: e.metaKey,
|
|
@@ -13874,7 +13902,7 @@ function SearchInput({
|
|
|
13874
13902
|
if (highlightedIndex >= 0 && flatResults[highlightedIndex]) {
|
|
13875
13903
|
handleResultClick(flatResults[highlightedIndex]);
|
|
13876
13904
|
} else {
|
|
13877
|
-
_optionalChain([onSubmit, 'optionalCall',
|
|
13905
|
+
_optionalChain([onSubmit, 'optionalCall', _280 => _280(currentValue)]);
|
|
13878
13906
|
}
|
|
13879
13907
|
break;
|
|
13880
13908
|
case "Escape":
|
|
@@ -13959,7 +13987,7 @@ function SearchInput({
|
|
|
13959
13987
|
),
|
|
13960
13988
|
onClick: () => {
|
|
13961
13989
|
if (disabled) return;
|
|
13962
|
-
_optionalChain([inputRef, 'access',
|
|
13990
|
+
_optionalChain([inputRef, 'access', _281 => _281.current, 'optionalAccess', _282 => _282.focus, 'call', _283 => _283()]);
|
|
13963
13991
|
setIsOpen(true);
|
|
13964
13992
|
},
|
|
13965
13993
|
children: [
|
|
@@ -14044,10 +14072,10 @@ function SearchInput({
|
|
|
14044
14072
|
collisionPadding: { bottom: keyboardPadding },
|
|
14045
14073
|
onOpenAutoFocus: (e) => {
|
|
14046
14074
|
e.preventDefault();
|
|
14047
|
-
_optionalChain([inputRef, 'access',
|
|
14075
|
+
_optionalChain([inputRef, 'access', _284 => _284.current, 'optionalAccess', _285 => _285.focus, 'call', _286 => _286()]);
|
|
14048
14076
|
},
|
|
14049
14077
|
onInteractOutside: (e) => {
|
|
14050
|
-
if (_optionalChain([containerRef, 'access',
|
|
14078
|
+
if (_optionalChain([containerRef, 'access', _287 => _287.current, 'optionalAccess', _288 => _288.contains, 'call', _289 => _289(e.target)])) {
|
|
14051
14079
|
e.preventDefault();
|
|
14052
14080
|
}
|
|
14053
14081
|
},
|
|
@@ -14059,12 +14087,12 @@ function SearchInput({
|
|
|
14059
14087
|
)
|
|
14060
14088
|
] }),
|
|
14061
14089
|
showHiddenTags && hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14062
|
-
|
|
14090
|
+
_chunkFRS2VO22cjs.HiddenTagsPopup,
|
|
14063
14091
|
{
|
|
14064
14092
|
ref: hiddenTagsPopupRef,
|
|
14065
14093
|
items: hiddenChips.map((chip) => ({ label: chip.label, value: chip.id })),
|
|
14066
14094
|
onRemove: (removedTag) => {
|
|
14067
|
-
_optionalChain([onFilterRemove, 'optionalCall',
|
|
14095
|
+
_optionalChain([onFilterRemove, 'optionalCall', _290 => _290(removedTag)]);
|
|
14068
14096
|
if (hiddenCount <= 1) setShowHiddenTags(false);
|
|
14069
14097
|
}
|
|
14070
14098
|
}
|
|
@@ -14106,7 +14134,7 @@ function FilterListItem({
|
|
|
14106
14134
|
}) {
|
|
14107
14135
|
const handleToggle = () => {
|
|
14108
14136
|
if (disabled) return;
|
|
14109
|
-
_optionalChain([onToggle, 'optionalCall',
|
|
14137
|
+
_optionalChain([onToggle, 'optionalCall', _291 => _291(!selected)]);
|
|
14110
14138
|
};
|
|
14111
14139
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14112
14140
|
"div",
|
|
@@ -14153,7 +14181,7 @@ function FilterListItem({
|
|
|
14153
14181
|
CheckboxPrimitive2.Root,
|
|
14154
14182
|
{
|
|
14155
14183
|
checked: selected,
|
|
14156
|
-
onCheckedChange: (c) => _optionalChain([onToggle, 'optionalCall',
|
|
14184
|
+
onCheckedChange: (c) => _optionalChain([onToggle, 'optionalCall', _292 => _292(c === true)]),
|
|
14157
14185
|
onClick: (e) => e.stopPropagation(),
|
|
14158
14186
|
disabled,
|
|
14159
14187
|
"aria-label": title,
|
|
@@ -14234,7 +14262,7 @@ function TagSearchInput({
|
|
|
14234
14262
|
if (!showHiddenTags) return void 0;
|
|
14235
14263
|
const handleClick = (e) => {
|
|
14236
14264
|
const target = e.target;
|
|
14237
|
-
if (!_optionalChain([hiddenTagsRef, 'access',
|
|
14265
|
+
if (!_optionalChain([hiddenTagsRef, 'access', _293 => _293.current, 'optionalAccess', _294 => _294.contains, 'call', _295 => _295(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _296 => _296.current, 'optionalAccess', _297 => _297.contains, 'call', _298 => _298(target)])) {
|
|
14238
14266
|
setShowHiddenTags(false);
|
|
14239
14267
|
}
|
|
14240
14268
|
};
|
|
@@ -14245,7 +14273,7 @@ function TagSearchInput({
|
|
|
14245
14273
|
const popup = hiddenTagsPopupRef.current;
|
|
14246
14274
|
const badge = badgeRef.current;
|
|
14247
14275
|
if (!popup || !badge) return;
|
|
14248
|
-
const originLeft = _nullishCoalesce(_optionalChain([wrapperRef, 'access',
|
|
14276
|
+
const originLeft = _nullishCoalesce(_optionalChain([wrapperRef, 'access', _299 => _299.current, 'optionalAccess', _300 => _300.getBoundingClientRect, 'call', _301 => _301(), 'access', _302 => _302.left]), () => ( 0));
|
|
14249
14277
|
popup.style.left = `${badge.getBoundingClientRect().left - originLeft}px`;
|
|
14250
14278
|
});
|
|
14251
14279
|
const hiddenCount = tags.length - visibleCount;
|
|
@@ -14257,13 +14285,13 @@ function TagSearchInput({
|
|
|
14257
14285
|
e.preventDefault();
|
|
14258
14286
|
onSubmit(searchValue);
|
|
14259
14287
|
}
|
|
14260
|
-
_optionalChain([onKeyDown, 'optionalCall',
|
|
14288
|
+
_optionalChain([onKeyDown, 'optionalCall', _303 => _303(e)]);
|
|
14261
14289
|
};
|
|
14262
14290
|
const handleClearAll = (e) => {
|
|
14263
14291
|
e.stopPropagation();
|
|
14264
14292
|
e.preventDefault();
|
|
14265
|
-
_optionalChain([onClearAll, 'optionalCall',
|
|
14266
|
-
_optionalChain([inputRef, 'access',
|
|
14293
|
+
_optionalChain([onClearAll, 'optionalCall', _304 => _304()]);
|
|
14294
|
+
_optionalChain([inputRef, 'access', _305 => _305.current, 'optionalAccess', _306 => _306.focus, 'call', _307 => _307()]);
|
|
14267
14295
|
};
|
|
14268
14296
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: wrapperRef, className: "relative", children: [
|
|
14269
14297
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -14286,7 +14314,7 @@ function TagSearchInput({
|
|
|
14286
14314
|
className
|
|
14287
14315
|
),
|
|
14288
14316
|
onClick: () => {
|
|
14289
|
-
if (!disabled) _optionalChain([inputRef, 'access',
|
|
14317
|
+
if (!disabled) _optionalChain([inputRef, 'access', _308 => _308.current, 'optionalAccess', _309 => _309.focus, 'call', _310 => _310()]);
|
|
14290
14318
|
},
|
|
14291
14319
|
children: [
|
|
14292
14320
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex shrink-0 items-center pl-3", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ74QE57Tcjs.SearchIcon, { className: "size-4 text-ods-text-secondary content-md:size-6" }) }),
|
|
@@ -14351,7 +14379,7 @@ function TagSearchInput({
|
|
|
14351
14379
|
}
|
|
14352
14380
|
),
|
|
14353
14381
|
showHiddenTags && hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14354
|
-
|
|
14382
|
+
_chunkFRS2VO22cjs.HiddenTagsPopup,
|
|
14355
14383
|
{
|
|
14356
14384
|
ref: hiddenTagsPopupRef,
|
|
14357
14385
|
items: hiddenTags,
|
|
@@ -14458,14 +14486,14 @@ function MarkdownLinkDialog({ isOpen, initial, editing, onSubmit, onRemove, onCl
|
|
|
14458
14486
|
label: "Search engines",
|
|
14459
14487
|
value: choice,
|
|
14460
14488
|
onValueChange: (value) => {
|
|
14461
|
-
const next = _nullishCoalesce(_optionalChain([LINK_REL_CHOICES, 'access',
|
|
14489
|
+
const next = _nullishCoalesce(_optionalChain([LINK_REL_CHOICES, 'access', _311 => _311.find, 'call', _312 => _312((option) => option.id === value), 'optionalAccess', _313 => _313.id]), () => ( "follow"));
|
|
14462
14490
|
setRel(next === "follow" ? [] : [next]);
|
|
14463
14491
|
},
|
|
14464
14492
|
items: LINK_REL_ITEMS,
|
|
14465
14493
|
variant: "secondary"
|
|
14466
14494
|
}
|
|
14467
14495
|
),
|
|
14468
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: _optionalChain([LINK_REL_CHOICES, 'access',
|
|
14496
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: _optionalChain([LINK_REL_CHOICES, 'access', _314 => _314.find, 'call', _315 => _315((option) => option.id === choice), 'optionalAccess', _316 => _316.hint]) })
|
|
14469
14497
|
] })
|
|
14470
14498
|
]
|
|
14471
14499
|
}
|
|
@@ -14490,7 +14518,7 @@ function useMarkdownLinkCommand() {
|
|
|
14490
14518
|
void (async () => {
|
|
14491
14519
|
try {
|
|
14492
14520
|
const mod = await Promise.resolve().then(() => _interopRequireWildcard(require("@uiw/react-md-editor")));
|
|
14493
|
-
if (!cancelled && _optionalChain([mod, 'access',
|
|
14521
|
+
if (!cancelled && _optionalChain([mod, 'access', _317 => _317.commands, 'optionalAccess', _318 => _318.getCommands])) setVendorCommands(mod.commands.getCommands());
|
|
14494
14522
|
} catch (error) {
|
|
14495
14523
|
console.error("Failed to load markdown editor toolbar commands:", error);
|
|
14496
14524
|
}
|
|
@@ -14538,8 +14566,8 @@ function useMarkdownLinkCommand() {
|
|
|
14538
14566
|
MarkdownLinkDialog,
|
|
14539
14567
|
{
|
|
14540
14568
|
isOpen: pending !== null,
|
|
14541
|
-
initial: _nullishCoalesce(_optionalChain([pending, 'optionalAccess',
|
|
14542
|
-
editing: _nullishCoalesce(_optionalChain([pending, 'optionalAccess',
|
|
14569
|
+
initial: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _319 => _319.initial]), () => ( EMPTY_LINK)),
|
|
14570
|
+
editing: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _320 => _320.editing]), () => ( false)),
|
|
14543
14571
|
onSubmit: (link) => {
|
|
14544
14572
|
if (pending) write(pending, _chunkKS5V55HNcjs.formatMarkdownLink.call(void 0, link));
|
|
14545
14573
|
},
|
|
@@ -14672,7 +14700,7 @@ function MarkdownEditor({
|
|
|
14672
14700
|
try {
|
|
14673
14701
|
const mod = await Promise.resolve().then(() => _interopRequireWildcard(require("@uiw/react-md-editor")));
|
|
14674
14702
|
if (cancelled) return;
|
|
14675
|
-
if (_optionalChain([mod, 'access',
|
|
14703
|
+
if (_optionalChain([mod, 'access', _321 => _321.commands, 'optionalAccess', _322 => _322.getExtraCommands])) {
|
|
14676
14704
|
setDefaultExtraCommands(mod.commands.getExtraCommands());
|
|
14677
14705
|
}
|
|
14678
14706
|
} catch (error) {
|
|
@@ -14710,7 +14738,7 @@ function MarkdownEditor({
|
|
|
14710
14738
|
const isImage = _chunkI3RJLXELcjs.fileMediaType.call(void 0, file) === "image";
|
|
14711
14739
|
const markdown = isImage ? `` : `[${file.name}](${url})`;
|
|
14712
14740
|
insertTextAtCursor(markdown);
|
|
14713
|
-
_optionalChain([onFileUploaded, 'optionalCall',
|
|
14741
|
+
_optionalChain([onFileUploaded, 'optionalCall', _323 => _323(url, file.name)]);
|
|
14714
14742
|
} catch (error) {
|
|
14715
14743
|
console.error("File upload failed:", error);
|
|
14716
14744
|
setUploadProgress("Upload failed. Please try again.");
|
|
@@ -14724,7 +14752,7 @@ function MarkdownEditor({
|
|
|
14724
14752
|
const handleFileInputChange = _react.useCallback.call(void 0,
|
|
14725
14753
|
(e) => {
|
|
14726
14754
|
const input = e.target;
|
|
14727
|
-
const file = _optionalChain([input, 'access',
|
|
14755
|
+
const file = _optionalChain([input, 'access', _324 => _324.files, 'optionalAccess', _325 => _325[0]]);
|
|
14728
14756
|
if (file) {
|
|
14729
14757
|
void handleFileUpload(file);
|
|
14730
14758
|
input.value = "";
|
|
@@ -14735,7 +14763,7 @@ function MarkdownEditor({
|
|
|
14735
14763
|
const handlePaste = _react.useCallback.call(void 0,
|
|
14736
14764
|
(e) => {
|
|
14737
14765
|
if (!onUploadFile) return;
|
|
14738
|
-
const items = _optionalChain([e, 'access',
|
|
14766
|
+
const items = _optionalChain([e, 'access', _326 => _326.clipboardData, 'optionalAccess', _327 => _327.items]);
|
|
14739
14767
|
if (!items) return;
|
|
14740
14768
|
for (const item of items) {
|
|
14741
14769
|
if (item.type.startsWith("image/")) {
|
|
@@ -14760,7 +14788,7 @@ function MarkdownEditor({
|
|
|
14760
14788
|
buttonProps: { "aria-label": "Upload file", title: "Upload file" },
|
|
14761
14789
|
icon: isUploading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "h-3 w-3 animate-spin" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Upload, { className: "h-3 w-3" }),
|
|
14762
14790
|
execute: () => {
|
|
14763
|
-
_optionalChain([fileInputRef, 'access',
|
|
14791
|
+
_optionalChain([fileInputRef, 'access', _328 => _328.current, 'optionalAccess', _329 => _329.click, 'call', _330 => _330()]);
|
|
14764
14792
|
}
|
|
14765
14793
|
} : null;
|
|
14766
14794
|
const extraCommands = uploadCommand ? [...defaultExtraCommands, uploadCommand] : defaultExtraCommands;
|
|
@@ -14772,7 +14800,7 @@ function MarkdownEditor({
|
|
|
14772
14800
|
const EDGE_ZONE = 60;
|
|
14773
14801
|
const MAX_SCROLL_SPEED = 15;
|
|
14774
14802
|
const findScrollParent2 = _react.useCallback.call(void 0, (el) => {
|
|
14775
|
-
let node = _optionalChain([el, 'optionalAccess',
|
|
14803
|
+
let node = _optionalChain([el, 'optionalAccess', _331 => _331.parentElement]);
|
|
14776
14804
|
while (node && node !== document.documentElement) {
|
|
14777
14805
|
const { overflowY } = window.getComputedStyle(node);
|
|
14778
14806
|
if ((overflowY === "auto" || overflowY === "scroll") && node.scrollHeight > node.clientHeight) {
|
|
@@ -14912,7 +14940,7 @@ function matchesAccept(file, accept) {
|
|
|
14912
14940
|
});
|
|
14913
14941
|
}
|
|
14914
14942
|
function dragHasFiles(e) {
|
|
14915
|
-
const types = _optionalChain([e, 'access',
|
|
14943
|
+
const types = _optionalChain([e, 'access', _332 => _332.dataTransfer, 'optionalAccess', _333 => _333.types]);
|
|
14916
14944
|
if (!types) return false;
|
|
14917
14945
|
for (let i = 0; i < types.length; i++) {
|
|
14918
14946
|
if (types[i] === "Files") return true;
|
|
@@ -15011,7 +15039,7 @@ function FileUpload({
|
|
|
15011
15039
|
e.stopPropagation();
|
|
15012
15040
|
setDragActive(false);
|
|
15013
15041
|
if (disabled) return;
|
|
15014
|
-
if (_optionalChain([e, 'access',
|
|
15042
|
+
if (_optionalChain([e, 'access', _334 => _334.dataTransfer, 'access', _335 => _335.files, 'optionalAccess', _336 => _336.length])) {
|
|
15015
15043
|
handleFiles(e.dataTransfer.files);
|
|
15016
15044
|
}
|
|
15017
15045
|
};
|
|
@@ -15039,7 +15067,7 @@ function FileUpload({
|
|
|
15039
15067
|
e.preventDefault();
|
|
15040
15068
|
dragCounter = 0;
|
|
15041
15069
|
setDragActive(false);
|
|
15042
|
-
if (_optionalChain([e, 'access',
|
|
15070
|
+
if (_optionalChain([e, 'access', _337 => _337.dataTransfer, 'optionalAccess', _338 => _338.files, 'optionalAccess', _339 => _339.length])) {
|
|
15043
15071
|
handleFilesRef.current(e.dataTransfer.files);
|
|
15044
15072
|
}
|
|
15045
15073
|
};
|
|
@@ -15061,7 +15089,7 @@ function FileUpload({
|
|
|
15061
15089
|
};
|
|
15062
15090
|
}, [acceptWindowDrops, disabled]);
|
|
15063
15091
|
const handleFileSelect = (e) => {
|
|
15064
|
-
if (_optionalChain([e, 'access',
|
|
15092
|
+
if (_optionalChain([e, 'access', _340 => _340.target, 'access', _341 => _341.files, 'optionalAccess', _342 => _342.length])) {
|
|
15065
15093
|
handleFiles(e.target.files);
|
|
15066
15094
|
}
|
|
15067
15095
|
};
|
|
@@ -15079,7 +15107,7 @@ function FileUpload({
|
|
|
15079
15107
|
const openDialog = async () => {
|
|
15080
15108
|
if (disabled) return;
|
|
15081
15109
|
if (!pickFiles) {
|
|
15082
|
-
_optionalChain([fileInputRef, 'access',
|
|
15110
|
+
_optionalChain([fileInputRef, 'access', _343 => _343.current, 'optionalAccess', _344 => _344.click, 'call', _345 => _345()]);
|
|
15083
15111
|
return;
|
|
15084
15112
|
}
|
|
15085
15113
|
try {
|
|
@@ -15157,7 +15185,7 @@ function FileUpload({
|
|
|
15157
15185
|
"data-tone": "error",
|
|
15158
15186
|
size: "icon-sm",
|
|
15159
15187
|
type: "button",
|
|
15160
|
-
onClick: () => _optionalChain([onRemoveManagedFile, 'optionalCall',
|
|
15188
|
+
onClick: () => _optionalChain([onRemoveManagedFile, 'optionalCall', _346 => _346(entry.id)]),
|
|
15161
15189
|
className: "shrink-0",
|
|
15162
15190
|
"aria-label": `Remove ${entry.fileName}`,
|
|
15163
15191
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYHH5EIOcjs.TrashIcon, { className: "text-ods-error" })
|
|
@@ -15297,7 +15325,7 @@ function ImageUploader({
|
|
|
15297
15325
|
onChange(file);
|
|
15298
15326
|
};
|
|
15299
15327
|
const handleFileSelect = (e) => {
|
|
15300
|
-
validateAndEmit(_optionalChain([e, 'access',
|
|
15328
|
+
validateAndEmit(_optionalChain([e, 'access', _347 => _347.target, 'access', _348 => _348.files, 'optionalAccess', _349 => _349[0]]));
|
|
15301
15329
|
if (inputRef.current) inputRef.current.value = "";
|
|
15302
15330
|
};
|
|
15303
15331
|
const handleDrag = (e) => {
|
|
@@ -15312,11 +15340,11 @@ function ImageUploader({
|
|
|
15312
15340
|
e.stopPropagation();
|
|
15313
15341
|
setDragActive(false);
|
|
15314
15342
|
if (!interactive) return;
|
|
15315
|
-
validateAndEmit(_optionalChain([e, 'access',
|
|
15343
|
+
validateAndEmit(_optionalChain([e, 'access', _350 => _350.dataTransfer, 'access', _351 => _351.files, 'optionalAccess', _352 => _352[0]]));
|
|
15316
15344
|
};
|
|
15317
15345
|
const openDialog = () => {
|
|
15318
15346
|
if (!interactive) return;
|
|
15319
|
-
_optionalChain([inputRef, 'access',
|
|
15347
|
+
_optionalChain([inputRef, 'access', _353 => _353.current, 'optionalAccess', _354 => _354.click, 'call', _355 => _355()]);
|
|
15320
15348
|
};
|
|
15321
15349
|
const handleRootKeyDown = (e) => {
|
|
15322
15350
|
if (hasImage || !interactive) return;
|
|
@@ -15483,8 +15511,8 @@ function ColorPresetSelect({
|
|
|
15483
15511
|
}) {
|
|
15484
15512
|
const selectedPreset = presets.find((p) => p.key === presetKey);
|
|
15485
15513
|
const isCustom = !selectedPreset;
|
|
15486
|
-
const displayLabel = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess',
|
|
15487
|
-
const displayColor = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess',
|
|
15514
|
+
const displayLabel = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _356 => _356.label]), () => ( "Custom"));
|
|
15515
|
+
const displayColor = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _357 => _357.color]), () => ( value));
|
|
15488
15516
|
const groups = [
|
|
15489
15517
|
{
|
|
15490
15518
|
items: [
|
|
@@ -15797,7 +15825,7 @@ function TicketStatusConfigRow({
|
|
|
15797
15825
|
{
|
|
15798
15826
|
id: nameInputId,
|
|
15799
15827
|
value: name,
|
|
15800
|
-
onChange: (e) => _optionalChain([onNameChange, 'optionalCall',
|
|
15828
|
+
onChange: (e) => _optionalChain([onNameChange, 'optionalCall', _358 => _358(e.target.value)]),
|
|
15801
15829
|
disabled: isSystem,
|
|
15802
15830
|
readOnly: isSystem,
|
|
15803
15831
|
maxLength: 50
|
|
@@ -16362,14 +16390,14 @@ function TicketInfoSection({
|
|
|
16362
16390
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16363
16391
|
_chunkTGOJHOQRcjs.SquareAvatar,
|
|
16364
16392
|
{
|
|
16365
|
-
src: _optionalChain([organization, 'optionalAccess',
|
|
16366
|
-
alt: _optionalChain([organization, 'optionalAccess',
|
|
16367
|
-
fallback: _optionalChain([organization, 'optionalAccess',
|
|
16393
|
+
src: _optionalChain([organization, 'optionalAccess', _359 => _359.imageSrc]),
|
|
16394
|
+
alt: _optionalChain([organization, 'optionalAccess', _360 => _360.name]),
|
|
16395
|
+
fallback: _optionalChain([organization, 'optionalAccess', _361 => _361.name]) || "Org",
|
|
16368
16396
|
size: "md",
|
|
16369
16397
|
className: "shrink-0"
|
|
16370
16398
|
}
|
|
16371
16399
|
),
|
|
16372
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: _optionalChain([organization, 'optionalAccess',
|
|
16400
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: _optionalChain([organization, 'optionalAccess', _362 => _362.name]) || "Unassigned", label: "Organization" })
|
|
16373
16401
|
] }),
|
|
16374
16402
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: assigned ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16375
16403
|
AssigneeDropdown,
|
|
@@ -16378,7 +16406,8 @@ function TicketInfoSection({
|
|
|
16378
16406
|
options: assigned.options,
|
|
16379
16407
|
isLoading: assigned.isLoading,
|
|
16380
16408
|
isPending: assigned.isPending,
|
|
16381
|
-
onAssign: assigned.onAssign
|
|
16409
|
+
onAssign: assigned.onAssign,
|
|
16410
|
+
onSearchChange: assigned.onSearchChange
|
|
16382
16411
|
}
|
|
16383
16412
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0", children: [
|
|
16384
16413
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1 text-ods-text-secondary text-h4", children: [
|
|
@@ -16387,7 +16416,7 @@ function TicketInfoSection({
|
|
|
16387
16416
|
] }),
|
|
16388
16417
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "block truncate text-ods-text-secondary text-h6", children: "Assigned" })
|
|
16389
16418
|
] }) }),
|
|
16390
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: _optionalChain([device, 'optionalAccess',
|
|
16419
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: _optionalChain([device, 'optionalAccess', _363 => _363.name]) || "Unassigned", label: "Device", icon: _optionalChain([device, 'optionalAccess', _364 => _364.icon]), onClick: _optionalChain([device, 'optionalAccess', _365 => _365.onClick]) }),
|
|
16391
16420
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-4", children: [
|
|
16392
16421
|
(status || statusLabel) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16393
16422
|
_chunkJLKGLPDCcjs.TicketStatusTag,
|
|
@@ -16446,7 +16475,7 @@ function renderTicketStatusOption(option, isSelected) {
|
|
|
16446
16475
|
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: [
|
|
16447
16476
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
16448
16477
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJLKGLPDCcjs.ColorSwatch, { color }),
|
|
16449
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16478
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { className: "text-inherit", children: label }) })
|
|
16450
16479
|
] }),
|
|
16451
16480
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
16452
16481
|
] });
|
|
@@ -16456,11 +16485,17 @@ function renderTicketAssigneeOption(option, isSelected) {
|
|
|
16456
16485
|
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: [
|
|
16457
16486
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
16458
16487
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.SquareAvatar, { src: imageUrl, alt: label, fallback: label, size: "sm", variant: "round" }),
|
|
16459
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16488
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { className: "text-inherit", children: label }) })
|
|
16460
16489
|
] }),
|
|
16461
16490
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
16462
16491
|
] });
|
|
16463
16492
|
}
|
|
16493
|
+
function withTicketAssigneeAvatars(options) {
|
|
16494
|
+
return options.map((option) => ({
|
|
16495
|
+
...option,
|
|
16496
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.SquareAvatar, { src: option.imageUrl, alt: option.label, fallback: option.label, size: "sm", variant: "round" })
|
|
16497
|
+
}));
|
|
16498
|
+
}
|
|
16464
16499
|
function TakeOverTicketModal({
|
|
16465
16500
|
isOpen,
|
|
16466
16501
|
onClose,
|
|
@@ -16471,7 +16506,9 @@ function TakeOverTicketModal({
|
|
|
16471
16506
|
initialStatusId,
|
|
16472
16507
|
initialAssigneeId,
|
|
16473
16508
|
isPending = false,
|
|
16474
|
-
onConfirm
|
|
16509
|
+
onConfirm,
|
|
16510
|
+
onAssigneeSearchChange,
|
|
16511
|
+
initialAssigneeOption
|
|
16475
16512
|
}) {
|
|
16476
16513
|
const [statusId, setStatusId] = _react.useState.call(void 0, _nullishCoalesce(initialStatusId, () => ( null)));
|
|
16477
16514
|
const [assigneeId, setAssigneeId] = _react.useState.call(void 0, _nullishCoalesce(initialAssigneeId, () => ( null)));
|
|
@@ -16483,9 +16520,8 @@ function TakeOverTicketModal({
|
|
|
16483
16520
|
setAssigneeId(_nullishCoalesce(initialAssigneeId, () => ( null)));
|
|
16484
16521
|
}
|
|
16485
16522
|
}
|
|
16486
|
-
const selectedStatusId = _nullishCoalesce(_nullishCoalesce(statusId, () => ( _optionalChain([statusOptions, 'access',
|
|
16523
|
+
const selectedStatusId = _nullishCoalesce(_nullishCoalesce(statusId, () => ( _optionalChain([statusOptions, 'access', _366 => _366[0], 'optionalAccess', _367 => _367.value]))), () => ( null));
|
|
16487
16524
|
const selectedStatus = statusOptions.find((o) => o.value === selectedStatusId);
|
|
16488
|
-
const selectedAssignee = assigneeOptions.find((o) => o.value === assigneeId);
|
|
16489
16525
|
const handleConfirm = () => {
|
|
16490
16526
|
if (!selectedStatusId || !assigneeId || isPending) return;
|
|
16491
16527
|
onConfirm({ statusId: selectedStatusId, assigneeId });
|
|
@@ -16500,7 +16536,7 @@ function TakeOverTicketModal({
|
|
|
16500
16536
|
] }),
|
|
16501
16537
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)] md:flex-row", children: [
|
|
16502
16538
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16503
|
-
|
|
16539
|
+
_chunkFRS2VO22cjs.Autocomplete,
|
|
16504
16540
|
{
|
|
16505
16541
|
label: "Status",
|
|
16506
16542
|
options: statusOptions,
|
|
@@ -16512,24 +16548,16 @@ function TakeOverTicketModal({
|
|
|
16512
16548
|
}
|
|
16513
16549
|
) }),
|
|
16514
16550
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16515
|
-
|
|
16551
|
+
_chunkFRS2VO22cjs.Autocomplete,
|
|
16516
16552
|
{
|
|
16517
16553
|
label: "Assigned",
|
|
16518
|
-
options: assigneeOptions,
|
|
16554
|
+
options: withTicketAssigneeAvatars(assigneeOptions),
|
|
16519
16555
|
value: assigneeId,
|
|
16520
16556
|
onChange: setAssigneeId,
|
|
16521
16557
|
placeholder: "Select Technician",
|
|
16522
16558
|
loading: assigneesLoading,
|
|
16523
|
-
|
|
16524
|
-
|
|
16525
|
-
{
|
|
16526
|
-
src: selectedAssignee.imageUrl,
|
|
16527
|
-
alt: selectedAssignee.label,
|
|
16528
|
-
fallback: selectedAssignee.label,
|
|
16529
|
-
size: "sm",
|
|
16530
|
-
variant: "round"
|
|
16531
|
-
}
|
|
16532
|
-
) : void 0,
|
|
16559
|
+
onSearchChange: onAssigneeSearchChange,
|
|
16560
|
+
selectedOptions: initialAssigneeOption ? withTicketAssigneeAvatars([initialAssigneeOption]) : void 0,
|
|
16533
16561
|
renderOption: renderTicketAssigneeOption
|
|
16534
16562
|
}
|
|
16535
16563
|
) })
|
|
@@ -16567,7 +16595,9 @@ function ReopenTicketModal({
|
|
|
16567
16595
|
initialStatusId,
|
|
16568
16596
|
initialAssigneeId,
|
|
16569
16597
|
isPending = false,
|
|
16570
|
-
onConfirm
|
|
16598
|
+
onConfirm,
|
|
16599
|
+
onAssigneeSearchChange,
|
|
16600
|
+
initialAssigneeOption
|
|
16571
16601
|
}) {
|
|
16572
16602
|
const [statusId, setStatusId] = _react.useState.call(void 0, _nullishCoalesce(initialStatusId, () => ( null)));
|
|
16573
16603
|
const [assigneeId, setAssigneeId] = _react.useState.call(void 0, _nullishCoalesce(initialAssigneeId, () => ( null)));
|
|
@@ -16581,9 +16611,8 @@ function ReopenTicketModal({
|
|
|
16581
16611
|
setReason("");
|
|
16582
16612
|
}
|
|
16583
16613
|
}
|
|
16584
|
-
const selectedStatusId = _nullishCoalesce(_nullishCoalesce(statusId, () => ( _optionalChain([statusOptions, 'access',
|
|
16614
|
+
const selectedStatusId = _nullishCoalesce(_nullishCoalesce(statusId, () => ( _optionalChain([statusOptions, 'access', _368 => _368[0], 'optionalAccess', _369 => _369.value]))), () => ( null));
|
|
16585
16615
|
const selectedStatus = statusOptions.find((o) => o.value === selectedStatusId);
|
|
16586
|
-
const selectedAssignee = assigneeOptions.find((o) => o.value === assigneeId);
|
|
16587
16616
|
const handleConfirm = () => {
|
|
16588
16617
|
if (!selectedStatusId || !assigneeId || isPending) return;
|
|
16589
16618
|
const trimmedReason = reason.trim();
|
|
@@ -16603,7 +16632,7 @@ function ReopenTicketModal({
|
|
|
16603
16632
|
] }),
|
|
16604
16633
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)] md:flex-row", children: [
|
|
16605
16634
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16606
|
-
|
|
16635
|
+
_chunkFRS2VO22cjs.Autocomplete,
|
|
16607
16636
|
{
|
|
16608
16637
|
label: "Status",
|
|
16609
16638
|
options: statusOptions,
|
|
@@ -16615,24 +16644,16 @@ function ReopenTicketModal({
|
|
|
16615
16644
|
}
|
|
16616
16645
|
) }),
|
|
16617
16646
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16618
|
-
|
|
16647
|
+
_chunkFRS2VO22cjs.Autocomplete,
|
|
16619
16648
|
{
|
|
16620
16649
|
label: "Assigned",
|
|
16621
|
-
options: assigneeOptions,
|
|
16650
|
+
options: withTicketAssigneeAvatars(assigneeOptions),
|
|
16622
16651
|
value: assigneeId,
|
|
16623
16652
|
onChange: setAssigneeId,
|
|
16624
16653
|
placeholder: "Select Technician",
|
|
16625
16654
|
loading: assigneesLoading,
|
|
16626
|
-
|
|
16627
|
-
|
|
16628
|
-
{
|
|
16629
|
-
src: selectedAssignee.imageUrl,
|
|
16630
|
-
alt: selectedAssignee.label,
|
|
16631
|
-
fallback: selectedAssignee.label,
|
|
16632
|
-
size: "sm",
|
|
16633
|
-
variant: "round"
|
|
16634
|
-
}
|
|
16635
|
-
) : void 0,
|
|
16655
|
+
onSearchChange: onAssigneeSearchChange,
|
|
16656
|
+
selectedOptions: initialAssigneeOption ? withTicketAssigneeAvatars([initialAssigneeOption]) : void 0,
|
|
16636
16657
|
renderOption: renderTicketAssigneeOption
|
|
16637
16658
|
}
|
|
16638
16659
|
) })
|
|
@@ -16820,7 +16841,7 @@ function usePhotoOrientations(urls) {
|
|
|
16820
16841
|
}
|
|
16821
16842
|
};
|
|
16822
16843
|
}, [key]);
|
|
16823
|
-
return _optionalChain([measured, 'optionalAccess',
|
|
16844
|
+
return _optionalChain([measured, 'optionalAccess', _370 => _370.key]) === key ? measured.byUrl : null;
|
|
16824
16845
|
}
|
|
16825
16846
|
function PhotoWall({
|
|
16826
16847
|
images,
|
|
@@ -16839,7 +16860,7 @@ function PhotoWall({
|
|
|
16839
16860
|
const root = rootRef.current;
|
|
16840
16861
|
if (!root) return void 0;
|
|
16841
16862
|
const read = () => setBox(
|
|
16842
|
-
(previous) => _optionalChain([previous, 'optionalAccess',
|
|
16863
|
+
(previous) => _optionalChain([previous, 'optionalAccess', _371 => _371.width]) === root.clientWidth && previous.height === root.clientHeight ? previous : { width: root.clientWidth, height: root.clientHeight }
|
|
16843
16864
|
);
|
|
16844
16865
|
read();
|
|
16845
16866
|
if (typeof ResizeObserver === "undefined") return void 0;
|
|
@@ -16899,7 +16920,7 @@ function PhotoWall({
|
|
|
16899
16920
|
if (images.length === 0 && !loading) return null;
|
|
16900
16921
|
const columnsToDraw = loading || !sizedUpFront && requestWidth === void 0 ? null : layout;
|
|
16901
16922
|
const gridStyle = {
|
|
16902
|
-
gridTemplateColumns: `repeat(${_optionalChain([columnsToDraw, 'optionalAccess',
|
|
16923
|
+
gridTemplateColumns: `repeat(${_optionalChain([columnsToDraw, 'optionalAccess', _372 => _372.length]) || columns}, minmax(0, 1fr))`,
|
|
16903
16924
|
gap: COLUMN_GAP_PX
|
|
16904
16925
|
};
|
|
16905
16926
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: rootRef, "aria-hidden": "true", className: _chunk7JWFMAQBcjs.cn.call(void 0, "grid overflow-hidden", className), style: gridStyle, children: columnsToDraw ? columnsToDraw.map((column, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -17133,7 +17154,7 @@ function ProductScreenFrame({
|
|
|
17133
17154
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "ods-content-area", pending && "product-screen-pending"),
|
|
17134
17155
|
style: screenStyle,
|
|
17135
17156
|
children: [
|
|
17136
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ods-content-scope", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingScope, { bare: true, active: pending, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17157
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ods-content-scope", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingScope, { bare: true, active: pending, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.PagePicture, { children }) }) }),
|
|
17137
17158
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
|
|
17138
17159
|
]
|
|
17139
17160
|
}
|
|
@@ -17252,7 +17273,7 @@ function subscribeToClock(onTick) {
|
|
|
17252
17273
|
}
|
|
17253
17274
|
function readClock() {
|
|
17254
17275
|
const parts = new Intl.DateTimeFormat(void 0, { hour: "numeric", minute: "2-digit" }).formatToParts(/* @__PURE__ */ new Date());
|
|
17255
|
-
const part = (type) => _nullishCoalesce(_optionalChain([parts, 'access',
|
|
17276
|
+
const part = (type) => _nullishCoalesce(_optionalChain([parts, 'access', _373 => _373.find, 'call', _374 => _374((p) => p.type === type), 'optionalAccess', _375 => _375.value]), () => ( ""));
|
|
17256
17277
|
return `${part("hour")}:${part("minute")}`;
|
|
17257
17278
|
}
|
|
17258
17279
|
function readDate() {
|
|
@@ -17271,7 +17292,7 @@ function PhoneFrame({ dateLabel, timeLabel, children, className }) {
|
|
|
17271
17292
|
"div",
|
|
17272
17293
|
{
|
|
17273
17294
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "h-[617px] w-[299px] shrink-0 rounded-[48px] border border-ods-border bg-black p-2.5", className),
|
|
17274
|
-
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "relative flex h-full flex-col overflow-hidden rounded-[38px]",
|
|
17295
|
+
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "relative flex h-full flex-col overflow-hidden rounded-[38px]", _chunkFRS2VO22cjs.DEVICE_WALLPAPER_CLASS), children: [
|
|
17275
17296
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17276
17297
|
"div",
|
|
17277
17298
|
{
|
|
@@ -17776,7 +17797,7 @@ function SnapCarousel({
|
|
|
17776
17797
|
const auto = _chunkOJZBZH56cjs.useAutoplay.call(void 0, inView);
|
|
17777
17798
|
const count = items.length;
|
|
17778
17799
|
const slideStep = _react.useCallback.call(void 0, () => {
|
|
17779
|
-
const first = _optionalChain([trackRef, 'access',
|
|
17800
|
+
const first = _optionalChain([trackRef, 'access', _376 => _376.current, 'optionalAccess', _377 => _377.firstElementChild]);
|
|
17780
17801
|
return first ? first.offsetWidth + SNAP_CAROUSEL_GAP_PX : 0;
|
|
17781
17802
|
}, []);
|
|
17782
17803
|
const goTo = _react.useCallback.call(void 0,
|
|
@@ -18168,10 +18189,10 @@ function AccountDetailsFields({
|
|
|
18168
18189
|
onKeyDown,
|
|
18169
18190
|
layout = "stacked"
|
|
18170
18191
|
}) {
|
|
18171
|
-
const firstNameErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18172
|
-
const lastNameErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18173
|
-
const passwordErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18174
|
-
const confirmErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18192
|
+
const firstNameErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _378 => _378.firstName]), firstName);
|
|
18193
|
+
const lastNameErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _379 => _379.lastName]), lastName);
|
|
18194
|
+
const passwordErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _380 => _380.password]), password);
|
|
18195
|
+
const confirmErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _381 => _381.confirmPassword]), confirmPassword);
|
|
18175
18196
|
const names = [
|
|
18176
18197
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18177
18198
|
_chunk7RM4NM2Ccjs.Input,
|
|
@@ -18429,7 +18450,7 @@ function SsoProviderButtons({
|
|
|
18429
18450
|
disabled: disabled || (enabledProviders ? !enabledProviders.includes(provider) : false),
|
|
18430
18451
|
className: "disabled:bg-ods-bg",
|
|
18431
18452
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "h-5 w-5" }),
|
|
18432
|
-
onClick: () => _optionalChain([onSsoClick, 'optionalCall',
|
|
18453
|
+
onClick: () => _optionalChain([onSsoClick, 'optionalCall', _382 => _382(provider)]),
|
|
18433
18454
|
children: [
|
|
18434
18455
|
`${actionLabel} ${meta.name}`,
|
|
18435
18456
|
tag && // A child, not `rightIcon`: the Button lays its children out through a `contents` span,
|
|
@@ -18631,9 +18652,9 @@ function CreateOrganizationForm({
|
|
|
18631
18652
|
}) {
|
|
18632
18653
|
const hasSso = !!ssoProviders && ssoProviders.length > 0;
|
|
18633
18654
|
const fieldsDisabled = disabled || loading;
|
|
18634
|
-
const emailErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18635
|
-
const orgNameErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18636
|
-
const domainErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18655
|
+
const emailErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _383 => _383.email]), _nullishCoalesce(email, () => ( "")));
|
|
18656
|
+
const orgNameErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _384 => _384.organizationName]), organizationName);
|
|
18657
|
+
const domainErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _385 => _385.domain]), domain);
|
|
18637
18658
|
const handleKeyDown = (event) => {
|
|
18638
18659
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
18639
18660
|
onSubmit();
|
|
@@ -18664,11 +18685,11 @@ function CreateOrganizationForm({
|
|
|
18664
18685
|
label: "Email",
|
|
18665
18686
|
placeholder: "username@mail.com",
|
|
18666
18687
|
value: email,
|
|
18667
|
-
error: _nullishCoalesce(emailErr.error, () => ( _optionalChain([emailStatus, 'optionalAccess',
|
|
18668
|
-
errorVariant: emailErr.error ? "error" : _optionalChain([emailStatus, 'optionalAccess',
|
|
18688
|
+
error: _nullishCoalesce(emailErr.error, () => ( _optionalChain([emailStatus, 'optionalAccess', _386 => _386.message]))),
|
|
18689
|
+
errorVariant: emailErr.error ? "error" : _optionalChain([emailStatus, 'optionalAccess', _387 => _387.variant]),
|
|
18669
18690
|
disabled: fieldsDisabled,
|
|
18670
18691
|
onBlur: emailErr.onBlur,
|
|
18671
|
-
onChange: (event) => _optionalChain([onEmailChange, 'optionalCall',
|
|
18692
|
+
onChange: (event) => _optionalChain([onEmailChange, 'optionalCall', _388 => _388(event.target.value)]),
|
|
18672
18693
|
onKeyDown: handleKeyDown
|
|
18673
18694
|
}
|
|
18674
18695
|
),
|
|
@@ -18692,8 +18713,8 @@ function CreateOrganizationForm({
|
|
|
18692
18713
|
label: "Domain",
|
|
18693
18714
|
placeholder: domainPlaceholder,
|
|
18694
18715
|
value: domain,
|
|
18695
|
-
error: _nullishCoalesce(domainErr.error, () => ( _optionalChain([domainStatus, 'optionalAccess',
|
|
18696
|
-
errorVariant: domainErr.error ? "error" : _optionalChain([domainStatus, 'optionalAccess',
|
|
18716
|
+
error: _nullishCoalesce(domainErr.error, () => ( _optionalChain([domainStatus, 'optionalAccess', _389 => _389.message]))),
|
|
18717
|
+
errorVariant: domainErr.error ? "error" : _optionalChain([domainStatus, 'optionalAccess', _390 => _390.variant]),
|
|
18697
18718
|
disabled: fieldsDisabled,
|
|
18698
18719
|
onBlur: domainErr.onBlur,
|
|
18699
18720
|
endAdornment: domainSuffix ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: domainSuffix }) : void 0,
|
|
@@ -18728,7 +18749,7 @@ function CreateOrganizationForm({
|
|
|
18728
18749
|
label: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TermsAgreementLabel, { termsUrl, privacyPolicyUrl }),
|
|
18729
18750
|
checked: agreedToTerms,
|
|
18730
18751
|
disabled: fieldsDisabled,
|
|
18731
|
-
error: _optionalChain([errors, 'optionalAccess',
|
|
18752
|
+
error: _optionalChain([errors, 'optionalAccess', _391 => _391.terms]),
|
|
18732
18753
|
onCheckedChange: onAgreedToTermsChange
|
|
18733
18754
|
}
|
|
18734
18755
|
),
|
|
@@ -18861,14 +18882,14 @@ function LoginForm({
|
|
|
18861
18882
|
}) {
|
|
18862
18883
|
const fieldDisabled = disabled || loading;
|
|
18863
18884
|
const providersDisabled = fieldDisabled || ssoDisabled;
|
|
18864
|
-
const emailErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18885
|
+
const emailErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _392 => _392.email]), email);
|
|
18865
18886
|
const handleKeyDown = (event) => {
|
|
18866
18887
|
if (event.key !== "Enter" || event.repeat || fieldDisabled) return;
|
|
18867
18888
|
if (onSubmitClick) {
|
|
18868
18889
|
if (!submitDisabled) onSubmitClick();
|
|
18869
18890
|
return;
|
|
18870
18891
|
}
|
|
18871
|
-
_optionalChain([onEmailEnter, 'optionalCall',
|
|
18892
|
+
_optionalChain([onEmailEnter, 'optionalCall', _393 => _393()]);
|
|
18872
18893
|
};
|
|
18873
18894
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
18874
18895
|
"div",
|
|
@@ -18889,8 +18910,8 @@ function LoginForm({
|
|
|
18889
18910
|
label: "Email",
|
|
18890
18911
|
placeholder: emailPlaceholder,
|
|
18891
18912
|
value: email,
|
|
18892
|
-
error: _nullishCoalesce(emailErr.error, () => ( _optionalChain([emailStatus, 'optionalAccess',
|
|
18893
|
-
errorVariant: emailErr.error ? "error" : _optionalChain([emailStatus, 'optionalAccess',
|
|
18913
|
+
error: _nullishCoalesce(emailErr.error, () => ( _optionalChain([emailStatus, 'optionalAccess', _394 => _394.message]))),
|
|
18914
|
+
errorVariant: emailErr.error ? "error" : _optionalChain([emailStatus, 'optionalAccess', _395 => _395.variant]),
|
|
18894
18915
|
disabled: fieldDisabled,
|
|
18895
18916
|
onBlur: emailErr.onBlur,
|
|
18896
18917
|
onChange: (event) => onEmailChange(event.target.value),
|
|
@@ -19039,8 +19060,8 @@ function OpenFrameSsoLoginForm({
|
|
|
19039
19060
|
className
|
|
19040
19061
|
}) {
|
|
19041
19062
|
const fieldsDisabled = disabled || loading;
|
|
19042
|
-
const emailErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
19043
|
-
const passwordErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
19063
|
+
const emailErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _396 => _396.email]), email);
|
|
19064
|
+
const passwordErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _397 => _397.password]), password);
|
|
19044
19065
|
const handleKeyDown = (event) => {
|
|
19045
19066
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
19046
19067
|
onSubmit();
|
|
@@ -19145,7 +19166,7 @@ function OpenFrameSsoSignUpForm({
|
|
|
19145
19166
|
className
|
|
19146
19167
|
}) {
|
|
19147
19168
|
const fieldsDisabled = disabled || loading;
|
|
19148
|
-
const emailErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
19169
|
+
const emailErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _398 => _398.email]), email);
|
|
19149
19170
|
const handleKeyDown = (event) => {
|
|
19150
19171
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
19151
19172
|
onSubmit();
|
|
@@ -19250,8 +19271,8 @@ function PasswordResetForm({
|
|
|
19250
19271
|
className
|
|
19251
19272
|
}) {
|
|
19252
19273
|
const fieldsDisabled = disabled || loading;
|
|
19253
|
-
const passwordErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
19254
|
-
const confirmErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
19274
|
+
const passwordErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _399 => _399.password]), password);
|
|
19275
|
+
const confirmErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _400 => _400.confirmPassword]), confirmPassword);
|
|
19255
19276
|
const handleKeyDown = (event) => {
|
|
19256
19277
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
19257
19278
|
onSubmit();
|
|
@@ -19376,7 +19397,7 @@ function SsoJoinForm({
|
|
|
19376
19397
|
}) {
|
|
19377
19398
|
const readingIdentity = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || identityLoading;
|
|
19378
19399
|
const fieldsDisabled = disabled || loading || readingIdentity;
|
|
19379
|
-
const displayName = _optionalChain([name, 'optionalAccess',
|
|
19400
|
+
const displayName = _optionalChain([name, 'optionalAccess', _401 => _401.trim, 'call', _402 => _402()]) || _optionalChain([email, 'optionalAccess', _403 => _403.trim, 'call', _404 => _404()]) || "";
|
|
19380
19401
|
const shownRoles = readingIdentity && roles.length === 0 ? [""] : roles;
|
|
19381
19402
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
19382
19403
|
"div",
|
|
@@ -19563,7 +19584,7 @@ function ChangelogManager({
|
|
|
19563
19584
|
descriptionLabel = "Description",
|
|
19564
19585
|
descriptionPlaceholder = "Detailed explanation of the change..."
|
|
19565
19586
|
}) {
|
|
19566
|
-
const tagLabelOf = (value) => _optionalChain([tagOptions, 'optionalAccess',
|
|
19587
|
+
const tagLabelOf = (value) => _optionalChain([tagOptions, 'optionalAccess', _405 => _405.find, 'call', _406 => _406((o) => o.value === value), 'optionalAccess', _407 => _407.label]);
|
|
19567
19588
|
const entryCount = entries.length;
|
|
19568
19589
|
const allExpanded = () => new Set(Array.from({ length: entryCount }, (_, i) => i));
|
|
19569
19590
|
const [expandedIndices, setExpandedIndices] = _react.useState.call(void 0,
|
|
@@ -19581,7 +19602,7 @@ function ChangelogManager({
|
|
|
19581
19602
|
title: "",
|
|
19582
19603
|
description: "",
|
|
19583
19604
|
...showVisibilityToggle && { visibility: "public" },
|
|
19584
|
-
..._optionalChain([tagOptions, 'optionalAccess',
|
|
19605
|
+
..._optionalChain([tagOptions, 'optionalAccess', _408 => _408.length]) && { tag: tagOptions[0].value }
|
|
19585
19606
|
};
|
|
19586
19607
|
onChange([...entries, newEntry]);
|
|
19587
19608
|
setExpandedIndices((prev) => /* @__PURE__ */ new Set([...prev, entries.length]));
|
|
@@ -19717,9 +19738,9 @@ function ChangelogManager({
|
|
|
19717
19738
|
] }),
|
|
19718
19739
|
tagOptions && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-1", children: [
|
|
19719
19740
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD47ZGOUcjs.Label, { className: "text-ods-text-secondary", children: tagLabel }),
|
|
19720
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
19721
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19722
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19741
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFRS2VO22cjs.Select, { value: _nullishCoalesce(entry.tag, () => ( "")), onValueChange: (value) => updateEntry(index, "tag", value), children: [
|
|
19742
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectTrigger, { className: "bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectValue, { placeholder: tagLabel }) }),
|
|
19743
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectContent, { children: tagOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
19723
19744
|
] })
|
|
19724
19745
|
] })
|
|
19725
19746
|
] })
|
|
@@ -19849,12 +19870,12 @@ function CommandBox({
|
|
|
19849
19870
|
title,
|
|
19850
19871
|
lines: !fixedHeight && maxLines > 0 ? maxLines : void 0,
|
|
19851
19872
|
visibleLines: fixedHeight ? visibleLines : void 0,
|
|
19852
|
-
primaryActionLabel: _optionalChain([primaryAction, 'optionalAccess',
|
|
19853
|
-
primaryActionIcon: _optionalChain([primaryAction, 'optionalAccess',
|
|
19854
|
-
primaryActionVariant: _optionalChain([primaryAction, 'optionalAccess',
|
|
19855
|
-
secondaryActionLabel: _optionalChain([secondaryAction, 'optionalAccess',
|
|
19856
|
-
secondaryActionIcon: _optionalChain([secondaryAction, 'optionalAccess',
|
|
19857
|
-
secondaryActionVariant: _optionalChain([secondaryAction, 'optionalAccess',
|
|
19873
|
+
primaryActionLabel: _optionalChain([primaryAction, 'optionalAccess', _409 => _409.label]),
|
|
19874
|
+
primaryActionIcon: _optionalChain([primaryAction, 'optionalAccess', _410 => _410.icon]),
|
|
19875
|
+
primaryActionVariant: _optionalChain([primaryAction, 'optionalAccess', _411 => _411.variant]),
|
|
19876
|
+
secondaryActionLabel: _optionalChain([secondaryAction, 'optionalAccess', _412 => _412.label]),
|
|
19877
|
+
secondaryActionIcon: _optionalChain([secondaryAction, 'optionalAccess', _413 => _413.icon]),
|
|
19878
|
+
secondaryActionVariant: _optionalChain([secondaryAction, 'optionalAccess', _414 => _414.variant]),
|
|
19858
19879
|
showCopy: Boolean(onCopy),
|
|
19859
19880
|
className
|
|
19860
19881
|
}
|
|
@@ -20214,13 +20235,13 @@ var SectionSelector = ({
|
|
|
20214
20235
|
const listRef = _react.useRef.call(void 0, null);
|
|
20215
20236
|
_react.useEffect.call(void 0, () => {
|
|
20216
20237
|
const list = listRef.current;
|
|
20217
|
-
const active = _optionalChain([list, 'optionalAccess',
|
|
20238
|
+
const active = _optionalChain([list, 'optionalAccess', _415 => _415.querySelector, 'call', _416 => _416('[role="tab"][aria-selected="true"]')]);
|
|
20218
20239
|
if (!list || !active || list.scrollWidth <= list.clientWidth) return;
|
|
20219
20240
|
const offset = active.getBoundingClientRect().left - list.getBoundingClientRect().left;
|
|
20220
20241
|
list.scrollLeft += offset - (list.clientWidth - active.clientWidth) / 2;
|
|
20221
20242
|
}, [activeSection]);
|
|
20222
20243
|
const enabled = sections.filter((section) => !section.disabled && !disabled);
|
|
20223
|
-
const tabStopId = enabled.some((section) => section.id === activeSection) ? activeSection : _optionalChain([enabled, 'access',
|
|
20244
|
+
const tabStopId = enabled.some((section) => section.id === activeSection) ? activeSection : _optionalChain([enabled, 'access', _417 => _417[0], 'optionalAccess', _418 => _418.id]);
|
|
20224
20245
|
const onKeyDown = (event) => {
|
|
20225
20246
|
const step = event.key === "ArrowRight" || event.key === "ArrowDown" ? 1 : event.key === "ArrowLeft" || event.key === "ArrowUp" ? -1 : 0;
|
|
20226
20247
|
if (!step && event.key !== "Home" && event.key !== "End") return;
|
|
@@ -20233,7 +20254,7 @@ var SectionSelector = ({
|
|
|
20233
20254
|
const next = event.key === "Home" ? enabled[0] : event.key === "End" ? enabled[enabled.length - 1] : enabled[(at + step + enabled.length) % enabled.length];
|
|
20234
20255
|
onSectionChange(next.id);
|
|
20235
20256
|
requestAnimationFrame(
|
|
20236
|
-
() => _optionalChain([listRef, 'access',
|
|
20257
|
+
() => _optionalChain([listRef, 'access', _419 => _419.current, 'optionalAccess', _420 => _420.querySelector, 'call', _421 => _421('[role="tab"][aria-selected="true"]'), 'optionalAccess', _422 => _422.focus, 'call', _423 => _423()])
|
|
20237
20258
|
);
|
|
20238
20259
|
};
|
|
20239
20260
|
const getButtonWidthClasses = () => {
|
|
@@ -20276,10 +20297,10 @@ var getContentDimensions = (config) => {
|
|
|
20276
20297
|
const envMobileHeight = process.env.NEXT_PUBLIC_FIGMA_MOBILE_HEIGHT ? parseInt(process.env.NEXT_PUBLIC_FIGMA_MOBILE_HEIGHT) : null;
|
|
20277
20298
|
const envDesktopWidth = process.env.NEXT_PUBLIC_FIGMA_DESKTOP_WIDTH ? parseInt(process.env.NEXT_PUBLIC_FIGMA_DESKTOP_WIDTH) : null;
|
|
20278
20299
|
const envDesktopHeight = process.env.NEXT_PUBLIC_FIGMA_DESKTOP_HEIGHT ? parseInt(process.env.NEXT_PUBLIC_FIGMA_DESKTOP_HEIGHT) : null;
|
|
20279
|
-
const mobileWidth = _nullishCoalesce(_nullishCoalesce(envMobileWidth, () => ( _optionalChain([config, 'optionalAccess',
|
|
20280
|
-
const mobileHeight = _nullishCoalesce(_nullishCoalesce(envMobileHeight, () => ( _optionalChain([config, 'optionalAccess',
|
|
20281
|
-
const desktopWidth = _nullishCoalesce(_nullishCoalesce(envDesktopWidth, () => ( _optionalChain([config, 'optionalAccess',
|
|
20282
|
-
const desktopHeight = _nullishCoalesce(_nullishCoalesce(envDesktopHeight, () => ( _optionalChain([config, 'optionalAccess',
|
|
20300
|
+
const mobileWidth = _nullishCoalesce(_nullishCoalesce(envMobileWidth, () => ( _optionalChain([config, 'optionalAccess', _424 => _424.mobileContentDimensions, 'optionalAccess', _425 => _425.width]))), () => ( defaultMobile.width));
|
|
20301
|
+
const mobileHeight = _nullishCoalesce(_nullishCoalesce(envMobileHeight, () => ( _optionalChain([config, 'optionalAccess', _426 => _426.mobileContentDimensions, 'optionalAccess', _427 => _427.height]))), () => ( defaultMobile.height));
|
|
20302
|
+
const desktopWidth = _nullishCoalesce(_nullishCoalesce(envDesktopWidth, () => ( _optionalChain([config, 'optionalAccess', _428 => _428.desktopContentDimensions, 'optionalAccess', _429 => _429.width]))), () => ( defaultDesktop.width));
|
|
20303
|
+
const desktopHeight = _nullishCoalesce(_nullishCoalesce(envDesktopHeight, () => ( _optionalChain([config, 'optionalAccess', _430 => _430.desktopContentDimensions, 'optionalAccess', _431 => _431.height]))), () => ( defaultDesktop.height));
|
|
20283
20304
|
return {
|
|
20284
20305
|
mobile: { width: mobileWidth, height: mobileHeight },
|
|
20285
20306
|
desktop: { width: desktopWidth, height: desktopHeight }
|
|
@@ -20438,7 +20459,7 @@ function UnifiedUI({ state, handlers, config, iframeRef }) {
|
|
|
20438
20459
|
const contentDimensions = getContentDimensions(config);
|
|
20439
20460
|
const mobileHeight = contentDimensions.mobile.height;
|
|
20440
20461
|
const calculatedHeight = Math.max(mobileHeight + 100, 400);
|
|
20441
|
-
return `${Math.min(calculatedHeight, _optionalChain([window, 'optionalAccess',
|
|
20462
|
+
return `${Math.min(calculatedHeight, _optionalChain([window, 'optionalAccess', _432 => _432.innerHeight]) * 0.85 || 650)}px`;
|
|
20442
20463
|
})(),
|
|
20443
20464
|
minHeight: viewMode === "DESKTOP" ? "auto" : (() => {
|
|
20444
20465
|
const contentDimensions = getContentDimensions(config);
|
|
@@ -20533,7 +20554,7 @@ var FigmaPrototypeViewer = ({
|
|
|
20533
20554
|
const [isInitialized, setIsInitialized] = _react.useState.call(void 0, false);
|
|
20534
20555
|
const [currentNodeId, setCurrentNodeId] = _react.useState.call(void 0, null);
|
|
20535
20556
|
const [internalActiveSection, setInternalActiveSection] = _react.useState.call(void 0,
|
|
20536
|
-
config.defaultSectionId || _optionalChain([config, 'access',
|
|
20557
|
+
config.defaultSectionId || _optionalChain([config, 'access', _433 => _433.sections, 'access', _434 => _434[0], 'optionalAccess', _435 => _435.id]) || ""
|
|
20537
20558
|
);
|
|
20538
20559
|
const activeSection = externalActiveSection || internalActiveSection;
|
|
20539
20560
|
const [isNavigating, setIsNavigating] = _react.useState.call(void 0, false);
|
|
@@ -20631,19 +20652,19 @@ var FigmaPrototypeViewer = ({
|
|
|
20631
20652
|
setIframeState("READY");
|
|
20632
20653
|
break;
|
|
20633
20654
|
case "PRESENTED_NODE_CHANGED":
|
|
20634
|
-
if (_optionalChain([figmaEvent, 'access',
|
|
20655
|
+
if (_optionalChain([figmaEvent, 'access', _436 => _436.data, 'optionalAccess', _437 => _437.presentedNodeId])) {
|
|
20635
20656
|
setCurrentNodeId(figmaEvent.data.presentedNodeId);
|
|
20636
20657
|
if (!isNavigating) {
|
|
20637
20658
|
const matchingSection = configSections.find((s) => {
|
|
20638
|
-
const desktopMatch = s.startingNodeId === _optionalChain([figmaEvent, 'access',
|
|
20639
|
-
const mobileMatch = s.mobileStartingNodeId === _optionalChain([figmaEvent, 'access',
|
|
20659
|
+
const desktopMatch = s.startingNodeId === _optionalChain([figmaEvent, 'access', _438 => _438.data, 'optionalAccess', _439 => _439.presentedNodeId]) || s.startingNodeId.replace(":", "-") === _optionalChain([figmaEvent, 'access', _440 => _440.data, 'optionalAccess', _441 => _441.presentedNodeId]);
|
|
20660
|
+
const mobileMatch = s.mobileStartingNodeId === _optionalChain([figmaEvent, 'access', _442 => _442.data, 'optionalAccess', _443 => _443.presentedNodeId]) || _optionalChain([s, 'access', _444 => _444.mobileStartingNodeId, 'optionalAccess', _445 => _445.replace, 'call', _446 => _446(":", "-")]) === _optionalChain([figmaEvent, 'access', _447 => _447.data, 'optionalAccess', _448 => _448.presentedNodeId]);
|
|
20640
20661
|
return desktopMatch || mobileMatch;
|
|
20641
20662
|
});
|
|
20642
20663
|
if (matchingSection && matchingSection.id !== activeSection) {
|
|
20643
20664
|
if (!externalActiveSection) {
|
|
20644
20665
|
setInternalActiveSection(matchingSection.id);
|
|
20645
20666
|
}
|
|
20646
|
-
_optionalChain([onSectionChange, 'optionalCall',
|
|
20667
|
+
_optionalChain([onSectionChange, 'optionalCall', _449 => _449(matchingSection.id)]);
|
|
20647
20668
|
}
|
|
20648
20669
|
}
|
|
20649
20670
|
}
|
|
@@ -20657,7 +20678,7 @@ var FigmaPrototypeViewer = ({
|
|
|
20657
20678
|
const navigateToSection = _react.useCallback.call(void 0,
|
|
20658
20679
|
(sectionId) => {
|
|
20659
20680
|
const section = config.sections.find((s) => s.id === sectionId);
|
|
20660
|
-
if (!section || !_optionalChain([iframeRef, 'access',
|
|
20681
|
+
if (!section || !_optionalChain([iframeRef, 'access', _450 => _450.current, 'optionalAccess', _451 => _451.contentWindow]) || !isInitialized) {
|
|
20661
20682
|
return;
|
|
20662
20683
|
}
|
|
20663
20684
|
setIsNavigating(true);
|
|
@@ -20665,7 +20686,7 @@ var FigmaPrototypeViewer = ({
|
|
|
20665
20686
|
if (!externalActiveSection) {
|
|
20666
20687
|
setInternalActiveSection(sectionId);
|
|
20667
20688
|
}
|
|
20668
|
-
_optionalChain([config, 'access',
|
|
20689
|
+
_optionalChain([config, 'access', _452 => _452.onSectionChange, 'optionalCall', _453 => _453(sectionId)]);
|
|
20669
20690
|
const command = {
|
|
20670
20691
|
type: "NAVIGATE_TO_FRAME_AND_CLOSE_OVERLAYS",
|
|
20671
20692
|
data: { nodeId }
|
|
@@ -21004,7 +21025,7 @@ var FiltersDropdown = ({
|
|
|
21004
21025
|
defaults[section.id] = section.defaultSelected || [];
|
|
21005
21026
|
});
|
|
21006
21027
|
setSelectedFilters(defaults);
|
|
21007
|
-
_optionalChain([onReset, 'optionalCall',
|
|
21028
|
+
_optionalChain([onReset, 'optionalCall', _454 => _454()]);
|
|
21008
21029
|
setIsOpen(false);
|
|
21009
21030
|
};
|
|
21010
21031
|
const handleApply = () => {
|
|
@@ -21292,7 +21313,7 @@ function useMediaIntake({ existing, onUpload, onUploaded, kinds = "both" }) {
|
|
|
21292
21313
|
try {
|
|
21293
21314
|
const url = await onUpload(file, mediaType);
|
|
21294
21315
|
if (!url) throw new Error("no URL");
|
|
21295
|
-
_optionalChain([onUploaded, 'optionalCall',
|
|
21316
|
+
_optionalChain([onUploaded, 'optionalCall', _455 => _455({ file, mediaType, url })]);
|
|
21296
21317
|
} catch (error) {
|
|
21297
21318
|
console.error("Upload failed:", error);
|
|
21298
21319
|
failed.push(file.name);
|
|
@@ -21315,7 +21336,7 @@ function useMediaIntake({ existing, onUpload, onUploaded, kinds = "both" }) {
|
|
|
21315
21336
|
notice,
|
|
21316
21337
|
busy: pending.length > 0,
|
|
21317
21338
|
dropActive,
|
|
21318
|
-
open: () => _optionalChain([inputRef, 'access',
|
|
21339
|
+
open: () => _optionalChain([inputRef, 'access', _456 => _456.current, 'optionalAccess', _457 => _457.click, 'call', _458 => _458()]),
|
|
21319
21340
|
/** Spread on the element files may be dropped on (the area itself, or a whole gallery). */
|
|
21320
21341
|
dropHandlers: {
|
|
21321
21342
|
onDragOver: (event) => {
|
|
@@ -21500,17 +21521,17 @@ function MediaGalleryManager({
|
|
|
21500
21521
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
21501
21522
|
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" }),
|
|
21502
21523
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21503
|
-
|
|
21524
|
+
_chunkFRS2VO22cjs.Select,
|
|
21504
21525
|
{
|
|
21505
21526
|
value: item.media_type,
|
|
21506
21527
|
onValueChange: (value) => update(index, { media_type: value }),
|
|
21507
21528
|
children: [
|
|
21508
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21509
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21510
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21511
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21512
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21513
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21529
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectTrigger, { className: "h-8 bg-ods-bg text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectValue, {}) }),
|
|
21530
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFRS2VO22cjs.SelectContent, { className: "bg-ods-card", children: [
|
|
21531
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: "image", children: "Image" }),
|
|
21532
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: "video", children: "Video" }),
|
|
21533
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: "screenshot", children: "Screenshot" }),
|
|
21534
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: "demo", children: "Demo" })
|
|
21514
21535
|
] })
|
|
21515
21536
|
]
|
|
21516
21537
|
}
|
|
@@ -21658,9 +21679,9 @@ function PushButtonSelector({
|
|
|
21658
21679
|
const skeletonDescription = options.length > 0 ? options.some((option) => !!option.description) : optionDescriptions;
|
|
21659
21680
|
const scrollRef = _react.useRef.call(void 0, null);
|
|
21660
21681
|
const sentinelRef = _react.useRef.call(void 0, null);
|
|
21661
|
-
const lazyHasMore = _nullishCoalesce(_optionalChain([lazyLoad, 'optionalAccess',
|
|
21662
|
-
const lazyFetching = _nullishCoalesce(_optionalChain([lazyLoad, 'optionalAccess',
|
|
21663
|
-
const onLoadMore = _optionalChain([lazyLoad, 'optionalAccess',
|
|
21682
|
+
const lazyHasMore = _nullishCoalesce(_optionalChain([lazyLoad, 'optionalAccess', _459 => _459.hasMore]), () => ( false));
|
|
21683
|
+
const lazyFetching = _nullishCoalesce(_optionalChain([lazyLoad, 'optionalAccess', _460 => _460.isFetchingMore]), () => ( false));
|
|
21684
|
+
const onLoadMore = _optionalChain([lazyLoad, 'optionalAccess', _461 => _461.onLoadMore]);
|
|
21664
21685
|
const optionCount = options.length;
|
|
21665
21686
|
_react.useEffect.call(void 0, () => {
|
|
21666
21687
|
const sentinel = sentinelRef.current;
|
|
@@ -21931,8 +21952,8 @@ function ProviderTabs({
|
|
|
21931
21952
|
onValueChange,
|
|
21932
21953
|
items: groups.map((candidate) => ({
|
|
21933
21954
|
id: candidate.providerType,
|
|
21934
|
-
label: _chunkBT53NHR7cjs.tokenRateProviderLabel.call(void 0, candidate.providerType, _optionalChain([candidate, 'access',
|
|
21935
|
-
icon: providerMark(candidate.providerType, _optionalChain([candidate, 'access',
|
|
21955
|
+
label: _chunkBT53NHR7cjs.tokenRateProviderLabel.call(void 0, candidate.providerType, _optionalChain([candidate, 'access', _462 => _462.rates, 'access', _463 => _463[0], 'optionalAccess', _464 => _464.providerLabel])),
|
|
21956
|
+
icon: providerMark(candidate.providerType, _optionalChain([candidate, 'access', _465 => _465.rates, 'access', _466 => _466[0], 'optionalAccess', _467 => _467.providerIcon]), "size-full")
|
|
21936
21957
|
})),
|
|
21937
21958
|
className
|
|
21938
21959
|
}
|
|
@@ -22109,7 +22130,7 @@ function ModelTokenExchange({
|
|
|
22109
22130
|
const failed = !loading && (status === "error" || status === "ready" && !rate);
|
|
22110
22131
|
const sliderId = _react.useId.call(void 0, );
|
|
22111
22132
|
const [chosen, setChosen] = _react.useState.call(void 0, null);
|
|
22112
|
-
const balance = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(chosen, () => ( defaultAmount)), () => ( _optionalChain([tokenPrice, 'optionalAccess',
|
|
22133
|
+
const balance = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(chosen, () => ( defaultAmount)), () => ( _optionalChain([tokenPrice, 'optionalAccess', _468 => _468.tokens]))), () => ( MODEL_TOKEN_EXCHANGE_BALANCE));
|
|
22113
22134
|
const max = Math.max(amountRange.max, balance, ...presets.map((preset) => preset.tokens));
|
|
22114
22135
|
const tokens = _chunkBT53NHR7cjs.formatTokenAmount.call(void 0, balance);
|
|
22115
22136
|
const cost = _chunkBT53NHR7cjs.tokenCost.call(void 0, balance, tokenPrice);
|
|
@@ -22169,32 +22190,32 @@ function ModelTokenExchange({
|
|
|
22169
22190
|
skeletonCount: PROVIDER_SKELETON_ROWS,
|
|
22170
22191
|
optionDescriptions: false,
|
|
22171
22192
|
options: providers.map((providerType) => {
|
|
22172
|
-
const stated = _nullishCoalesce(models.find((option) => option.providerType === providerType), () => ( (_optionalChain([rate, 'optionalAccess',
|
|
22193
|
+
const stated = _nullishCoalesce(models.find((option) => option.providerType === providerType), () => ( (_optionalChain([rate, 'optionalAccess', _469 => _469.providerType]) === providerType ? rate : null)));
|
|
22173
22194
|
return {
|
|
22174
22195
|
id: providerType,
|
|
22175
|
-
name: _chunkBT53NHR7cjs.tokenRateProviderLabel.call(void 0, providerType, _optionalChain([stated, 'optionalAccess',
|
|
22176
|
-
icon: providerMark(providerType, _optionalChain([stated, 'optionalAccess',
|
|
22196
|
+
name: _chunkBT53NHR7cjs.tokenRateProviderLabel.call(void 0, providerType, _optionalChain([stated, 'optionalAccess', _470 => _470.providerLabel])),
|
|
22197
|
+
icon: providerMark(providerType, _optionalChain([stated, 'optionalAccess', _471 => _471.providerIcon]), "size-8 text-ods-text-secondary")
|
|
22177
22198
|
};
|
|
22178
22199
|
}),
|
|
22179
22200
|
selectedIds: provider ? [provider] : [],
|
|
22180
22201
|
onSelectionChange: (ids) => {
|
|
22181
|
-
if (ids[0]) _optionalChain([onProviderChange, 'optionalCall',
|
|
22202
|
+
if (ids[0]) _optionalChain([onProviderChange, 'optionalCall', _472 => _472(ids[0])]);
|
|
22182
22203
|
},
|
|
22183
22204
|
multiSelect: false
|
|
22184
22205
|
}
|
|
22185
22206
|
),
|
|
22186
22207
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22187
|
-
|
|
22208
|
+
_chunkFRS2VO22cjs.Autocomplete,
|
|
22188
22209
|
{
|
|
22189
22210
|
fieldLoading: loading,
|
|
22190
22211
|
label: copy.use.model,
|
|
22191
|
-
value: _nullishCoalesce(_optionalChain([rate, 'optionalAccess',
|
|
22212
|
+
value: _nullishCoalesce(_optionalChain([rate, 'optionalAccess', _473 => _473.modelName]), () => ( null)),
|
|
22192
22213
|
onChange: (modelName) => {
|
|
22193
|
-
if (modelName) _optionalChain([onPick, 'optionalCall',
|
|
22214
|
+
if (modelName) _optionalChain([onPick, 'optionalCall', _474 => _474(modelName)]);
|
|
22194
22215
|
},
|
|
22195
22216
|
options,
|
|
22196
22217
|
inputValue: query,
|
|
22197
|
-
onInputChange: (value) => _optionalChain([onQueryChange, 'optionalCall',
|
|
22218
|
+
onInputChange: (value) => _optionalChain([onQueryChange, 'optionalCall', _475 => _475(value)]),
|
|
22198
22219
|
disableClientFilter: true,
|
|
22199
22220
|
loading: searching && Boolean(query),
|
|
22200
22221
|
disabled: providers.length === 0,
|
|
@@ -22211,7 +22232,7 @@ function ModelTokenExchange({
|
|
|
22211
22232
|
{
|
|
22212
22233
|
size: "plain",
|
|
22213
22234
|
loading,
|
|
22214
|
-
figure: _chunkBT53NHR7cjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess',
|
|
22235
|
+
figure: _chunkBT53NHR7cjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _476 => _476.inputTokenRate])),
|
|
22215
22236
|
words: copy.charge.input
|
|
22216
22237
|
}
|
|
22217
22238
|
),
|
|
@@ -22220,7 +22241,7 @@ function ModelTokenExchange({
|
|
|
22220
22241
|
{
|
|
22221
22242
|
size: "plain",
|
|
22222
22243
|
loading,
|
|
22223
|
-
figure: _chunkBT53NHR7cjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess',
|
|
22244
|
+
figure: _chunkBT53NHR7cjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _477 => _477.outputTokenRate])),
|
|
22224
22245
|
words: copy.charge.output
|
|
22225
22246
|
}
|
|
22226
22247
|
)
|
|
@@ -22822,7 +22843,7 @@ function SEOEditorPreview({
|
|
|
22822
22843
|
const displayImage = hasOgImage || hasFeaturedImage;
|
|
22823
22844
|
const handleImageUpload = async (event) => {
|
|
22824
22845
|
if (!onOgImageUpload) return;
|
|
22825
|
-
const file = _optionalChain([event, 'access',
|
|
22846
|
+
const file = _optionalChain([event, 'access', _478 => _478.target, 'access', _479 => _479.files, 'optionalAccess', _480 => _480[0]]);
|
|
22826
22847
|
if (!file) return;
|
|
22827
22848
|
setIsUploading(true);
|
|
22828
22849
|
try {
|
|
@@ -22979,7 +23000,7 @@ function SEOEditorPreview({
|
|
|
22979
23000
|
type: "button",
|
|
22980
23001
|
variant: "outline",
|
|
22981
23002
|
size: "icon",
|
|
22982
|
-
onClick: () => _optionalChain([fileInputRef, 'optionalAccess',
|
|
23003
|
+
onClick: () => _optionalChain([fileInputRef, 'optionalAccess', _481 => _481.click, 'call', _482 => _482()]),
|
|
22983
23004
|
disabled: disabled || isUploading,
|
|
22984
23005
|
className: "rounded-full bg-white text-black opacity-0 hover:bg-gray-100 group-hover:opacity-100",
|
|
22985
23006
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Upload, { className: "h-4 w-4" })
|
|
@@ -23005,7 +23026,7 @@ function SEOEditorPreview({
|
|
|
23005
23026
|
SEO_MEDIA_BOX_HEIGHT,
|
|
23006
23027
|
"flex cursor-pointer flex-col items-center justify-center rounded-lg border-2 border-dashed border-ods-border bg-ods-bg-hover transition-colors hover:border-ods-accent"
|
|
23007
23028
|
),
|
|
23008
|
-
onClick: () => onOgImageUpload && _optionalChain([fileInputRef, 'optionalAccess',
|
|
23029
|
+
onClick: () => onOgImageUpload && _optionalChain([fileInputRef, 'optionalAccess', _483 => _483.click, 'call', _484 => _484()]),
|
|
23009
23030
|
children: isUploading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "h-8 w-8 animate-spin text-ods-accent" }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
23010
23031
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Upload, { className: "mb-2 h-8 w-8 text-ods-text-secondary" }),
|
|
23011
23032
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h6", children: onOgImageUpload ? "Click to upload OG image" : "No image" })
|
|
@@ -23179,7 +23200,7 @@ function SocialLinksManager({
|
|
|
23179
23200
|
className = ""
|
|
23180
23201
|
}) {
|
|
23181
23202
|
const addLink = () => {
|
|
23182
|
-
const firstPlatform = _optionalChain([platforms, 'access',
|
|
23203
|
+
const firstPlatform = _optionalChain([platforms, 'access', _485 => _485[0], 'optionalAccess', _486 => _486.name]) || "website";
|
|
23183
23204
|
onChange([...links, { platform: firstPlatform, url: "" }]);
|
|
23184
23205
|
};
|
|
23185
23206
|
const removeLink = (index) => {
|
|
@@ -23191,7 +23212,7 @@ function SocialLinksManager({
|
|
|
23191
23212
|
onChange(updated);
|
|
23192
23213
|
};
|
|
23193
23214
|
const getIcon = (link, platform) => {
|
|
23194
|
-
const iconKey = _optionalChain([platform, 'optionalAccess',
|
|
23215
|
+
const iconKey = _optionalChain([platform, 'optionalAccess', _487 => _487.icon_name]) || link.platform;
|
|
23195
23216
|
const key = _chunkBT53NHR7cjs.normalizeSocialPlatform.call(void 0, iconKey);
|
|
23196
23217
|
if (!key) return null;
|
|
23197
23218
|
const icon = socialIcon(key);
|
|
@@ -23208,14 +23229,14 @@ function SocialLinksManager({
|
|
|
23208
23229
|
children: [
|
|
23209
23230
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-8 w-8 items-center justify-center", children: Icon }),
|
|
23210
23231
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid flex-1 grid-cols-2 gap-3", children: [
|
|
23211
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23212
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23213
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23232
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFRS2VO22cjs.Select, { value: link.platform, onValueChange: (value) => updateLink(index, "platform", value), children: [
|
|
23233
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectValue, {}) }),
|
|
23234
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectContent, { children: platforms.map((p) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: p.name, children: p.display_name }, p.name)) })
|
|
23214
23235
|
] }) }),
|
|
23215
23236
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23216
23237
|
_chunk7RM4NM2Ccjs.Input,
|
|
23217
23238
|
{
|
|
23218
|
-
placeholder: _optionalChain([platform, 'optionalAccess',
|
|
23239
|
+
placeholder: _optionalChain([platform, 'optionalAccess', _488 => _488.placeholder]) || "Profile URL",
|
|
23219
23240
|
value: link.url,
|
|
23220
23241
|
onChange: (e) => updateLink(index, "url", e.target.value),
|
|
23221
23242
|
onKeyDown: (e) => {
|
|
@@ -23228,15 +23249,15 @@ function SocialLinksManager({
|
|
|
23228
23249
|
)
|
|
23229
23250
|
] }),
|
|
23230
23251
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23231
|
-
|
|
23252
|
+
_chunkFRS2VO22cjs.Select,
|
|
23232
23253
|
{
|
|
23233
23254
|
value: _nullishCoalesce(link.visibility, () => ( "external")),
|
|
23234
23255
|
onValueChange: (value) => updateLink(index, "visibility", value),
|
|
23235
23256
|
children: [
|
|
23236
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23237
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23238
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23239
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23257
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectTrigger, { className: "w-[120px] shrink-0", "aria-label": "Social link visibility", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectValue, {}) }),
|
|
23258
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFRS2VO22cjs.SelectContent, { children: [
|
|
23259
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: "external", children: "Public" }),
|
|
23260
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: "internal", children: "Internal" })
|
|
23240
23261
|
] })
|
|
23241
23262
|
]
|
|
23242
23263
|
}
|
|
@@ -23671,8 +23692,8 @@ var INLINE_CARD_BOX_CLASS = `${_chunk4WIJI4AKcjs.MEDIA_ASPECT.video} w-full roun
|
|
|
23671
23692
|
var FIRST_INTERACTION_EVENTS = ["scroll", "pointerdown", "keydown"];
|
|
23672
23693
|
var isAtEnd = (duration, time) => duration > 0 && duration - time < 1;
|
|
23673
23694
|
function theaterSeedFromLive(live, fallbackTime, fallbackMuted) {
|
|
23674
|
-
const time = _nullishCoalesce(_optionalChain([live, 'optionalAccess',
|
|
23675
|
-
const atEnd = isAtEnd(_nullishCoalesce(_optionalChain([live, 'optionalAccess',
|
|
23695
|
+
const time = _nullishCoalesce(_optionalChain([live, 'optionalAccess', _489 => _489.getCurrentTime, 'call', _490 => _490()]), () => ( 0));
|
|
23696
|
+
const atEnd = isAtEnd(_nullishCoalesce(_optionalChain([live, 'optionalAccess', _491 => _491.getDuration, 'call', _492 => _492()]), () => ( 0)), time);
|
|
23676
23697
|
return {
|
|
23677
23698
|
// At end -> start over, never rewind to an unrelated older anchor.
|
|
23678
23699
|
time: atEnd ? 0 : time > 0.5 ? time : fallbackTime,
|
|
@@ -23707,11 +23728,11 @@ function WalkthroughVideo({
|
|
|
23707
23728
|
const inScope = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
23708
23729
|
const dismissEnabled = dismissal !== false;
|
|
23709
23730
|
const storageKey = dismissEnabled && dismissal.storageKey || _chunkBT53NHR7cjs.WALKTHROUGH_VIDEO_DISMISS_KEY;
|
|
23710
|
-
const dismissalId = _optionalChain([video, 'optionalAccess',
|
|
23731
|
+
const dismissalId = _optionalChain([video, 'optionalAccess', _493 => _493.id]) != null ? String(video.id) : "dismissed";
|
|
23711
23732
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
23712
23733
|
const [dismissed, setDismissed] = _react.useState.call(void 0, false);
|
|
23713
23734
|
const hasVideo = video != null;
|
|
23714
|
-
const videoId = _optionalChain([video, 'optionalAccess',
|
|
23735
|
+
const videoId = _optionalChain([video, 'optionalAccess', _494 => _494.id]);
|
|
23715
23736
|
_react.useEffect.call(void 0, () => {
|
|
23716
23737
|
let idleHandle = null;
|
|
23717
23738
|
if (!hasVideo) return void 0;
|
|
@@ -23759,9 +23780,9 @@ function WalkthroughVideo({
|
|
|
23759
23780
|
const previewSuppressed = _react.useMemo.call(void 0, () => {
|
|
23760
23781
|
if (!hydrated) return false;
|
|
23761
23782
|
try {
|
|
23762
|
-
const reducedMotion = _nullishCoalesce(_optionalChain([window, 'access',
|
|
23783
|
+
const reducedMotion = _nullishCoalesce(_optionalChain([window, 'access', _495 => _495.matchMedia, 'optionalCall', _496 => _496("(prefers-reduced-motion: reduce)"), 'access', _497 => _497.matches]), () => ( false));
|
|
23763
23784
|
const conn = navigator.connection;
|
|
23764
|
-
const saveData = _optionalChain([conn, 'optionalAccess',
|
|
23785
|
+
const saveData = _optionalChain([conn, 'optionalAccess', _498 => _498.saveData]) === true || _optionalChain([conn, 'optionalAccess', _499 => _499.effectiveType]) === "2g" || _optionalChain([conn, 'optionalAccess', _500 => _500.effectiveType]) === "slow-2g";
|
|
23765
23786
|
return Boolean(reducedMotion || saveData);
|
|
23766
23787
|
} catch (e15) {
|
|
23767
23788
|
return false;
|
|
@@ -23787,7 +23808,7 @@ function WalkthroughVideo({
|
|
|
23787
23808
|
const endedLatchRef = _react.useRef.call(void 0, false);
|
|
23788
23809
|
const [hovered, setHovered] = _react.useState.call(void 0, false);
|
|
23789
23810
|
const [handoff, setHandoff] = _react.useState.call(void 0,
|
|
23790
|
-
() => autoPlayCard && !_optionalChain([video, 'optionalAccess',
|
|
23811
|
+
() => autoPlayCard && !_optionalChain([video, 'optionalAccess', _501 => _501.youtubeUrl]) ? { time: 0, muted: true, playing: true } : null
|
|
23791
23812
|
);
|
|
23792
23813
|
const [suspended, setSuspended] = _react.useState.call(void 0, false);
|
|
23793
23814
|
const [theaterStart, setTheaterStart] = _react.useState.call(void 0, { time: 0, muted: false });
|
|
@@ -23796,18 +23817,18 @@ function WalkthroughVideo({
|
|
|
23796
23817
|
const [cardMuted, setCardMuted] = _react.useState.call(void 0, false);
|
|
23797
23818
|
const [cardPaused, setCardPaused] = _react.useState.call(void 0, false);
|
|
23798
23819
|
const [userMuted, setUserMuted] = _react.useState.call(void 0, false);
|
|
23799
|
-
const isYouTube = Boolean(_optionalChain([video, 'optionalAccess',
|
|
23820
|
+
const isYouTube = Boolean(_optionalChain([video, 'optionalAccess', _502 => _502.youtubeUrl]));
|
|
23800
23821
|
const resumeMode = !open && handoff !== null && !isYouTube;
|
|
23801
23822
|
const previewAllowed = !previewSuppressed && !isYouTube;
|
|
23802
23823
|
const footerFadeKey = `${mounted ? 1 : 0}|${inline ? 1 : 0}|${hideNearSelector}|${pathname}`;
|
|
23803
|
-
const footerHidden = _optionalChain([footerObservation, 'optionalAccess',
|
|
23824
|
+
const footerHidden = _optionalChain([footerObservation, 'optionalAccess', _503 => _503.key]) === footerFadeKey && footerObservation.hidden;
|
|
23804
23825
|
_react.useEffect.call(void 0, () => {
|
|
23805
23826
|
if (!mounted) return void 0;
|
|
23806
23827
|
if (inline) return void 0;
|
|
23807
23828
|
const el = typeof document !== "undefined" ? document.querySelector(hideNearSelector) : null;
|
|
23808
23829
|
if (!el || typeof IntersectionObserver === "undefined") return void 0;
|
|
23809
23830
|
const io = new IntersectionObserver(
|
|
23810
|
-
(entries) => setFooterObservation({ key: footerFadeKey, hidden: _nullishCoalesce(_optionalChain([entries, 'access',
|
|
23831
|
+
(entries) => setFooterObservation({ key: footerFadeKey, hidden: _nullishCoalesce(_optionalChain([entries, 'access', _504 => _504[0], 'optionalAccess', _505 => _505.isIntersecting]), () => ( false)) }),
|
|
23811
23832
|
{ rootMargin: "0px 0px -40px 0px" }
|
|
23812
23833
|
);
|
|
23813
23834
|
io.observe(el);
|
|
@@ -23833,7 +23854,7 @@ function WalkthroughVideo({
|
|
|
23833
23854
|
if (!footerHidden) return;
|
|
23834
23855
|
const h = _nullishCoalesce(resumeHandleRef.current, () => ( previewHandleRef.current));
|
|
23835
23856
|
try {
|
|
23836
|
-
_optionalChain([h, 'optionalAccess',
|
|
23857
|
+
_optionalChain([h, 'optionalAccess', _506 => _506.pause, 'call', _507 => _507()]);
|
|
23837
23858
|
} catch (e17) {
|
|
23838
23859
|
}
|
|
23839
23860
|
}, [footerHidden, resumeMode, hovered]);
|
|
@@ -23852,30 +23873,30 @@ function WalkthroughVideo({
|
|
|
23852
23873
|
}, 400);
|
|
23853
23874
|
}
|
|
23854
23875
|
if (openProp === void 0) setOpenState(next);
|
|
23855
|
-
_optionalChain([onOpenChange, 'optionalCall',
|
|
23876
|
+
_optionalChain([onOpenChange, 'optionalCall', _508 => _508(next)]);
|
|
23856
23877
|
},
|
|
23857
23878
|
[openProp, onOpenChange]
|
|
23858
23879
|
);
|
|
23859
23880
|
const pausePreviewNow = _react.useCallback.call(void 0, () => {
|
|
23860
23881
|
const h = _nullishCoalesce(resumeHandleRef.current, () => ( previewHandleRef.current));
|
|
23861
23882
|
try {
|
|
23862
|
-
_optionalChain([h, 'optionalAccess',
|
|
23883
|
+
_optionalChain([h, 'optionalAccess', _509 => _509.pause, 'call', _510 => _510()]);
|
|
23863
23884
|
} catch (e18) {
|
|
23864
23885
|
}
|
|
23865
23886
|
setCardPaused(true);
|
|
23866
23887
|
}, [setCardPaused]);
|
|
23867
23888
|
const openTheater = _react.useCallback.call(void 0, () => {
|
|
23868
23889
|
const handleBeforePause = _nullishCoalesce(resumeHandleRef.current, () => ( previewHandleRef.current));
|
|
23869
|
-
const liveWasPlaying = _optionalChain([handleBeforePause, 'optionalAccess',
|
|
23890
|
+
const liveWasPlaying = _optionalChain([handleBeforePause, 'optionalAccess', _511 => _511.getPaused, 'call', _512 => _512()]) === false;
|
|
23870
23891
|
pausePreviewNow();
|
|
23871
23892
|
const liveHandle = _nullishCoalesce(resumeHandleRef.current, () => ( (cardModeRef.current === "preview" ? previewHandleRef.current : null)));
|
|
23872
|
-
const liveTime = _nullishCoalesce(_optionalChain([liveHandle, 'optionalAccess',
|
|
23873
|
-
const liveDuration = _nullishCoalesce(_optionalChain([liveHandle, 'optionalAccess',
|
|
23893
|
+
const liveTime = _nullishCoalesce(_optionalChain([liveHandle, 'optionalAccess', _513 => _513.getCurrentTime, 'call', _514 => _514()]), () => ( 0));
|
|
23894
|
+
const liveDuration = _nullishCoalesce(_optionalChain([liveHandle, 'optionalAccess', _515 => _515.getDuration, 'call', _516 => _516()]), () => ( 0));
|
|
23874
23895
|
const liveAtEnd = isAtEnd(liveDuration, liveTime);
|
|
23875
23896
|
const start = {
|
|
23876
23897
|
// At end -> start over. Falling back to `handoff.time` here would rewind
|
|
23877
23898
|
// to an unrelated older anchor (e.g. 3:20) instead of restarting.
|
|
23878
|
-
time: liveAtEnd ? 0 : liveTime > 0.5 ? liveTime : _nullishCoalesce(_optionalChain([handoff, 'optionalAccess',
|
|
23899
|
+
time: liveAtEnd ? 0 : liveTime > 0.5 ? liveTime : _nullishCoalesce(_optionalChain([handoff, 'optionalAccess', _517 => _517.time]), () => ( 0)),
|
|
23879
23900
|
// Live element wins over remembered intent (the theater's own chrome may
|
|
23880
23901
|
// have changed it) — EXCEPT when the element is muted only because
|
|
23881
23902
|
// autoplay policy forced it, which is not intent.
|
|
@@ -23903,7 +23924,7 @@ function WalkthroughVideo({
|
|
|
23903
23924
|
const selfDriven = selfDrivenFor === open;
|
|
23904
23925
|
if (openProp !== void 0 && !selfDriven) {
|
|
23905
23926
|
if (open) {
|
|
23906
|
-
setTheaterStart(theaterSeedFromLive(resumeHandleRef.current, _nullishCoalesce(_optionalChain([handoff, 'optionalAccess',
|
|
23927
|
+
setTheaterStart(theaterSeedFromLive(resumeHandleRef.current, _nullishCoalesce(_optionalChain([handoff, 'optionalAccess', _518 => _518.time]), () => ( 0)), userMuted));
|
|
23907
23928
|
setHovered(false);
|
|
23908
23929
|
setSuspended(false);
|
|
23909
23930
|
setHandoff(null);
|
|
@@ -23989,8 +24010,8 @@ function WalkthroughVideo({
|
|
|
23989
24010
|
});
|
|
23990
24011
|
_react.useEffect.call(void 0, () => {
|
|
23991
24012
|
if (resumeMode) {
|
|
23992
|
-
setCardMuted(_nullishCoalesce(_optionalChain([handoffRef, 'access',
|
|
23993
|
-
setCardPaused(_optionalChain([handoffRef, 'access',
|
|
24013
|
+
setCardMuted(_nullishCoalesce(_optionalChain([handoffRef, 'access', _519 => _519.current, 'optionalAccess', _520 => _520.muted]), () => ( false)));
|
|
24014
|
+
setCardPaused(_optionalChain([handoffRef, 'access', _521 => _521.current, 'optionalAccess', _522 => _522.playing]) === false);
|
|
23994
24015
|
}
|
|
23995
24016
|
}, [resumeMode]);
|
|
23996
24017
|
const [hoverSeeded, setHoverSeeded] = _react.useState.call(void 0, hovered);
|
|
@@ -24072,11 +24093,11 @@ function WalkthroughVideo({
|
|
|
24072
24093
|
},
|
|
24073
24094
|
[cardFallback.blocked, cardPaused, activeHandle, setCardPaused]
|
|
24074
24095
|
);
|
|
24075
|
-
const summaryTitle = _optionalChain([video, 'optionalAccess',
|
|
24076
|
-
const presenterAvatarSrc = _nullishCoalesce(_optionalChain([video, 'optionalAccess',
|
|
24096
|
+
const summaryTitle = _optionalChain([video, 'optionalAccess', _523 => _523.title]) || void 0;
|
|
24097
|
+
const presenterAvatarSrc = _nullishCoalesce(_optionalChain([video, 'optionalAccess', _524 => _524.presenterAvatarUrl]), () => ( null));
|
|
24077
24098
|
const embedUrlKey = _react.useMemo.call(void 0,
|
|
24078
|
-
() => `${_nullishCoalesce(_optionalChain([video, 'optionalAccess',
|
|
24079
|
-
[_optionalChain([video, 'optionalAccess',
|
|
24099
|
+
() => `${_nullishCoalesce(_optionalChain([video, 'optionalAccess', _525 => _525.mainVideoUrl]), () => ( ""))}|${_nullishCoalesce(_optionalChain([video, 'optionalAccess', _526 => _526.youtubeUrl]), () => ( ""))}`,
|
|
24100
|
+
[_optionalChain([video, 'optionalAccess', _527 => _527.mainVideoUrl]), _optionalChain([video, 'optionalAccess', _528 => _528.youtubeUrl])]
|
|
24080
24101
|
);
|
|
24081
24102
|
const cardActive = !open && previewAllowed && hovered && !resumeMode;
|
|
24082
24103
|
const cardMode = resumeMode ? "resume" : cardActive ? "preview" : "poster";
|
|
@@ -24137,7 +24158,7 @@ function WalkthroughVideo({
|
|
|
24137
24158
|
const el = e.target;
|
|
24138
24159
|
let keyboard = false;
|
|
24139
24160
|
try {
|
|
24140
|
-
keyboard = _nullishCoalesce(_optionalChain([el, 'access',
|
|
24161
|
+
keyboard = _nullishCoalesce(_optionalChain([el, 'access', _529 => _529.matches, 'optionalCall', _530 => _530(":focus-visible")]), () => ( false));
|
|
24141
24162
|
} catch (e23) {
|
|
24142
24163
|
keyboard = false;
|
|
24143
24164
|
}
|
|
@@ -24172,9 +24193,9 @@ function WalkthroughVideo({
|
|
|
24172
24193
|
previewHandleRef: cardMode === "resume" ? resumeHandleRef : previewHandleRef,
|
|
24173
24194
|
mutedIntent: userMuted,
|
|
24174
24195
|
continuation: cardMode === "resume",
|
|
24175
|
-
autoPlay: cardMode === "resume" && _optionalChain([handoff, 'optionalAccess',
|
|
24176
|
-
startTime: _optionalChain([resumeHandoff, 'optionalAccess',
|
|
24177
|
-
startMuted: _nullishCoalesce(_optionalChain([resumeHandoff, 'optionalAccess',
|
|
24196
|
+
autoPlay: cardMode === "resume" && _optionalChain([handoff, 'optionalAccess', _531 => _531.playing]) !== false && !footerHidden,
|
|
24197
|
+
startTime: _optionalChain([resumeHandoff, 'optionalAccess', _532 => _532.time]),
|
|
24198
|
+
startMuted: _nullishCoalesce(_optionalChain([resumeHandoff, 'optionalAccess', _533 => _533.muted]), () => ( false)),
|
|
24178
24199
|
onEnded: cardMode === "resume" ? () => setHandoff(null) : () => setCardPaused(true)
|
|
24179
24200
|
},
|
|
24180
24201
|
`card-${embedUrlKey}`
|
|
@@ -24272,7 +24293,7 @@ function WalkthroughVideo({
|
|
|
24272
24293
|
{
|
|
24273
24294
|
onOpenAutoFocus: (e) => {
|
|
24274
24295
|
e.preventDefault();
|
|
24275
|
-
_optionalChain([closeButtonRef, 'access',
|
|
24296
|
+
_optionalChain([closeButtonRef, 'access', _534 => _534.current, 'optionalAccess', _535 => _535.focus, 'call', _536 => _536()]);
|
|
24276
24297
|
},
|
|
24277
24298
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
24278
24299
|
// PURE theater: just the video, centered on a dimmed backdrop.
|
|
@@ -24371,14 +24392,14 @@ function useWalkthroughVideo(opts) {
|
|
|
24371
24392
|
if (res.status === 404) return null;
|
|
24372
24393
|
if (!res.ok) throw new Error(`Walkthrough video request failed (${res.status})`);
|
|
24373
24394
|
const body = await res.json();
|
|
24374
|
-
return _nullishCoalesce(_optionalChain([body, 'optionalAccess',
|
|
24395
|
+
return _nullishCoalesce(_optionalChain([body, 'optionalAccess', _537 => _537.walkthroughVideo]), () => ( null));
|
|
24375
24396
|
},
|
|
24376
24397
|
// Per-observer transform — NEVER mutate the cached data. `select` also runs
|
|
24377
24398
|
// over `initialData`, so the SSR seed is rewritten too. Keeping the proxy
|
|
24378
24399
|
// rewrite here (not in queryFn) means a second consumer of the same
|
|
24379
24400
|
// endpoint can't inherit this observer's proxied captionsUrl from the cache.
|
|
24380
24401
|
select: (video) => {
|
|
24381
|
-
if (!_optionalChain([video, 'optionalAccess',
|
|
24402
|
+
if (!_optionalChain([video, 'optionalAccess', _538 => _538.captionsUrl])) return video;
|
|
24382
24403
|
if (transformCaptionsUrl && video.captionsUrl.startsWith("/")) {
|
|
24383
24404
|
return { ...video, captionsUrl: transformCaptionsUrl(video.captionsUrl) };
|
|
24384
24405
|
}
|
|
@@ -24425,7 +24446,7 @@ function VideoSourceSelector({
|
|
|
24425
24446
|
input.accept = "video/*";
|
|
24426
24447
|
input.onchange = async (e) => {
|
|
24427
24448
|
const target = e.target;
|
|
24428
|
-
const file = _optionalChain([target, 'access',
|
|
24449
|
+
const file = _optionalChain([target, 'access', _539 => _539.files, 'optionalAccess', _540 => _540[0]]);
|
|
24429
24450
|
if (!file) return;
|
|
24430
24451
|
setIsUploading(true);
|
|
24431
24452
|
setUploadProgress(0);
|
|
@@ -24603,7 +24624,7 @@ function SubtitlesEditor({
|
|
|
24603
24624
|
{
|
|
24604
24625
|
id,
|
|
24605
24626
|
value: subtitles || "",
|
|
24606
|
-
onChange: (e) => _optionalChain([onSubtitlesChange, 'optionalCall',
|
|
24627
|
+
onChange: (e) => _optionalChain([onSubtitlesChange, 'optionalCall', _541 => _541(e.target.value)]),
|
|
24607
24628
|
placeholder,
|
|
24608
24629
|
disabled: disabled || !onSubtitlesChange,
|
|
24609
24630
|
className: "h-full w-full resize-none border-0 bg-transparent p-4 text-ods-text-primary text-code placeholder:text-ods-text-secondary/50 focus:outline-none focus:ring-0",
|
|
@@ -24832,7 +24853,7 @@ var AIEnrichSection = ({
|
|
|
24832
24853
|
}) => {
|
|
24833
24854
|
const hasResults = status === "success" || status === "error";
|
|
24834
24855
|
const shouldDisable = disabled || !canEnrich;
|
|
24835
|
-
const unfilledFields = _optionalChain([requiredFields, 'optionalAccess',
|
|
24856
|
+
const unfilledFields = _optionalChain([requiredFields, 'optionalAccess', _542 => _542.filter, 'call', _543 => _543((f) => !f.isFilled)]) || [];
|
|
24836
24857
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
24837
24858
|
"div",
|
|
24838
24859
|
{
|
|
@@ -24864,7 +24885,7 @@ var AIEnrichSection = ({
|
|
|
24864
24885
|
{
|
|
24865
24886
|
id: "ai-enrich-custom-instructions",
|
|
24866
24887
|
value: _nullishCoalesce(customInstructions, () => ( "")),
|
|
24867
|
-
onChange: (e) => _optionalChain([onCustomInstructionsChange, 'optionalCall',
|
|
24888
|
+
onChange: (e) => _optionalChain([onCustomInstructionsChange, 'optionalCall', _544 => _544(e.target.value)]),
|
|
24868
24889
|
placeholder: customInstructionsPlaceholder,
|
|
24869
24890
|
disabled: loading,
|
|
24870
24891
|
maxLength: customInstructionsMaxLength,
|
|
@@ -24986,7 +25007,7 @@ function HighlightVideoSection({
|
|
|
24986
25007
|
input.accept = "video/*";
|
|
24987
25008
|
input.onchange = async (e) => {
|
|
24988
25009
|
const target = e.target;
|
|
24989
|
-
const file = _optionalChain([target, 'access',
|
|
25010
|
+
const file = _optionalChain([target, 'access', _545 => _545.files, 'optionalAccess', _546 => _546[0]]);
|
|
24990
25011
|
if (!file) return;
|
|
24991
25012
|
setUploadError(null);
|
|
24992
25013
|
try {
|
|
@@ -25006,19 +25027,19 @@ function HighlightVideoSection({
|
|
|
25006
25027
|
/* @__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: [
|
|
25007
25028
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD47ZGOUcjs.Label, { children: "Target Duration" }),
|
|
25008
25029
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25009
|
-
|
|
25030
|
+
_chunkFRS2VO22cjs.Select,
|
|
25010
25031
|
{
|
|
25011
25032
|
value: targetDurationSeconds.toString(),
|
|
25012
25033
|
onValueChange: (value) => onTargetDurationChange(parseInt(value)),
|
|
25013
25034
|
disabled,
|
|
25014
25035
|
children: [
|
|
25015
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25016
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25017
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25018
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25019
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25020
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25021
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25036
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectTrigger, { className: "mt-1 bg-ods-bg-surface", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectValue, {}) }),
|
|
25037
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFRS2VO22cjs.SelectContent, { className: "bg-ods-card", children: [
|
|
25038
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: "60", children: "1 minute" }),
|
|
25039
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: "120", children: "2 minutes" }),
|
|
25040
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: "180", children: "3 minutes (Recommended)" }),
|
|
25041
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: "240", children: "4 minutes" }),
|
|
25042
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: "300", children: "5 minutes" })
|
|
25022
25043
|
] })
|
|
25023
25044
|
]
|
|
25024
25045
|
}
|
|
@@ -25104,19 +25125,19 @@ function HighlightConfigSection({
|
|
|
25104
25125
|
className = ""
|
|
25105
25126
|
}) {
|
|
25106
25127
|
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, _chunkBT53NHR7cjs.Field, { label: "Target Duration", children: (f) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25107
|
-
|
|
25128
|
+
_chunkFRS2VO22cjs.Select,
|
|
25108
25129
|
{
|
|
25109
25130
|
value: targetDurationSeconds.toString(),
|
|
25110
25131
|
onValueChange: (value) => onTargetDurationChange(parseInt(value)),
|
|
25111
25132
|
disabled,
|
|
25112
25133
|
children: [
|
|
25113
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25114
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25115
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25116
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25117
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25118
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25119
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25134
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectTrigger, { id: f.id, className: "bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectValue, {}) }),
|
|
25135
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFRS2VO22cjs.SelectContent, { className: "bg-ods-card", children: [
|
|
25136
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: "60", children: "1 minute" }),
|
|
25137
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: "120", children: "2 minutes" }),
|
|
25138
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: "180", children: "3 minutes (Recommended)" }),
|
|
25139
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: "240", children: "4 minutes" }),
|
|
25140
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: "300", children: "5 minutes" })
|
|
25120
25141
|
] })
|
|
25121
25142
|
]
|
|
25122
25143
|
}
|
|
@@ -25422,7 +25443,7 @@ function HighlightVideoPreview({
|
|
|
25422
25443
|
input.accept = "video/*";
|
|
25423
25444
|
input.onchange = async (e) => {
|
|
25424
25445
|
const target = e.target;
|
|
25425
|
-
const file = _optionalChain([target, 'access',
|
|
25446
|
+
const file = _optionalChain([target, 'access', _547 => _547.files, 'optionalAccess', _548 => _548[0]]);
|
|
25426
25447
|
if (!file) return;
|
|
25427
25448
|
await onUpload(file);
|
|
25428
25449
|
};
|
|
@@ -25601,7 +25622,7 @@ function HighlightVideoCombinedSection({
|
|
|
25601
25622
|
input.accept = "video/*";
|
|
25602
25623
|
input.onchange = async (e) => {
|
|
25603
25624
|
const target = e.target;
|
|
25604
|
-
const file = _optionalChain([target, 'access',
|
|
25625
|
+
const file = _optionalChain([target, 'access', _549 => _549.files, 'optionalAccess', _550 => _550[0]]);
|
|
25605
25626
|
if (!file) return;
|
|
25606
25627
|
await onUpload(file);
|
|
25607
25628
|
};
|
|
@@ -25822,7 +25843,7 @@ function ApprovalLevelView({
|
|
|
25822
25843
|
value,
|
|
25823
25844
|
disabled,
|
|
25824
25845
|
onValueChange: (next) => {
|
|
25825
|
-
if (next && next !== value) _optionalChain([onChange, 'optionalCall',
|
|
25846
|
+
if (next && next !== value) _optionalChain([onChange, 'optionalCall', _551 => _551(next)]);
|
|
25826
25847
|
},
|
|
25827
25848
|
"aria-labelledby": labelledBy,
|
|
25828
25849
|
children: APPROVAL_LEVELS.map((level) => {
|
|
@@ -25890,7 +25911,7 @@ var CATEGORY_LEVEL_COLUMN_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
|
25890
25911
|
CATEGORY_LEVEL_WIDTH
|
|
25891
25912
|
);
|
|
25892
25913
|
var CHEVRON_CLASS2 = "h-6 w-6 text-ods-text-primary transition-transform duration-300";
|
|
25893
|
-
var getApprovalLevelLabel = (level) => _nullishCoalesce(_optionalChain([APPROVAL_LEVEL_META, 'access',
|
|
25914
|
+
var getApprovalLevelLabel = (level) => _nullishCoalesce(_optionalChain([APPROVAL_LEVEL_META, 'access', _552 => _552[level], 'optionalAccess', _553 => _553.label]), () => ( level));
|
|
25894
25915
|
var ApprovalLevelDropdown = ({ value, onChange, allowClear = false, triggerClassName, contentClassName, disabled }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNL3G642Ucjs.DropdownMenu, { children: [
|
|
25895
25916
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNL3G642Ucjs.DropdownMenuTrigger, { asChild: true, disabled, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25896
25917
|
_chunkAHBTZ7DNcjs.Button,
|
|
@@ -26151,8 +26172,8 @@ function PoliciesTable({
|
|
|
26151
26172
|
accessorKey: "name",
|
|
26152
26173
|
header: "Name",
|
|
26153
26174
|
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: [
|
|
26154
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26155
|
-
row.original.description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26175
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { children: row.original.name }),
|
|
26176
|
+
row.original.description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { variant: "h6", tone: "secondary", children: row.original.description })
|
|
26156
26177
|
] }),
|
|
26157
26178
|
meta: { width: "flex-1 min-w-0" }
|
|
26158
26179
|
},
|
|
@@ -26311,7 +26332,7 @@ var POLICY_STATUS_CONFIG = {
|
|
|
26311
26332
|
};
|
|
26312
26333
|
function missingHostCount(policy) {
|
|
26313
26334
|
const responded = policy.passing_host_count + policy.failing_host_count;
|
|
26314
|
-
return (_nullishCoalesce(_optionalChain([policy, 'access',
|
|
26335
|
+
return (_nullishCoalesce(_optionalChain([policy, 'access', _554 => _554.hosts_include_any, 'optionalAccess', _555 => _555.length]), () => ( 0))) - responded;
|
|
26315
26336
|
}
|
|
26316
26337
|
function getPolicyStatus(policy) {
|
|
26317
26338
|
const failing = policy.failing_host_count;
|
|
@@ -26423,7 +26444,7 @@ function TenantAccessCell({ accessState, lastReadAt: lastReadAt2, now }) {
|
|
|
26423
26444
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
26424
26445
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26425
26446
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { ...accessStateTag(accessState), loading, className: "self-start" }),
|
|
26426
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26447
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { variant: "h6", tone: "secondary", loading, children: `Last read: ${formatLastRead(lastReadAt2, now)}` })
|
|
26427
26448
|
] });
|
|
26428
26449
|
}
|
|
26429
26450
|
|
|
@@ -26435,9 +26456,9 @@ function TenantCell({ provider, name, domain }) {
|
|
|
26435
26456
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
26436
26457
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26437
26458
|
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.MediaSkeleton.Icon, { size: "md", className: "shrink-0" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Logo, { size: 24, role: "img", "aria-label": label, className: "shrink-0" }),
|
|
26438
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26459
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { children: name })
|
|
26439
26460
|
] }),
|
|
26440
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26461
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { variant: "h6", tone: "secondary", loading, children: _nullishCoalesce(domain, () => ( TENANT_EMPTY_VALUE)) })
|
|
26441
26462
|
] });
|
|
26442
26463
|
}
|
|
26443
26464
|
|
|
@@ -26448,9 +26469,9 @@ function TenantCustomerCell({ name, imageUrl, userCount }) {
|
|
|
26448
26469
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
26449
26470
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26450
26471
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.SquareAvatar, { src: _nullishCoalesce(imageUrl, () => ( void 0)), alt: name, fallback: name, size: "xs", variant: "square" }),
|
|
26451
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26472
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { children: name })
|
|
26452
26473
|
] }),
|
|
26453
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26474
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { variant: "h6", tone: "secondary", loading, children: usersCountLabel(userCount) })
|
|
26454
26475
|
] });
|
|
26455
26476
|
}
|
|
26456
26477
|
|
|
@@ -26931,19 +26952,19 @@ function NotificationsProvider({
|
|
|
26931
26952
|
}, []);
|
|
26932
26953
|
const markRead = _react.useCallback.call(void 0, (id) => {
|
|
26933
26954
|
dispatch({ type: "markRead", id });
|
|
26934
|
-
void _optionalChain([actionsRef, 'access',
|
|
26955
|
+
void _optionalChain([actionsRef, 'access', _556 => _556.current, 'optionalAccess', _557 => _557.onMarkRead, 'optionalCall', _558 => _558(id)]);
|
|
26935
26956
|
}, []);
|
|
26936
26957
|
const markAllRead = _react.useCallback.call(void 0, () => {
|
|
26937
26958
|
dispatch({ type: "markAllRead" });
|
|
26938
|
-
void _optionalChain([actionsRef, 'access',
|
|
26959
|
+
void _optionalChain([actionsRef, 'access', _559 => _559.current, 'optionalAccess', _560 => _560.onMarkAllRead, 'optionalCall', _561 => _561()]);
|
|
26939
26960
|
}, []);
|
|
26940
26961
|
const markSettled = _react.useCallback.call(void 0, (id) => {
|
|
26941
26962
|
dispatch({ type: "markSettled", id });
|
|
26942
|
-
void _optionalChain([actionsRef, 'access',
|
|
26963
|
+
void _optionalChain([actionsRef, 'access', _562 => _562.current, 'optionalAccess', _563 => _563.onMarkSettled, 'optionalCall', _564 => _564(id)]);
|
|
26943
26964
|
}, []);
|
|
26944
26965
|
const remove = _react.useCallback.call(void 0, (id) => {
|
|
26945
26966
|
dispatch({ type: "remove", id });
|
|
26946
|
-
void _optionalChain([actionsRef, 'access',
|
|
26967
|
+
void _optionalChain([actionsRef, 'access', _565 => _565.current, 'optionalAccess', _566 => _566.onRemove, 'optionalCall', _567 => _567(id)]);
|
|
26947
26968
|
}, []);
|
|
26948
26969
|
const clear = _react.useCallback.call(void 0, () => dispatch({ type: "clear" }), []);
|
|
26949
26970
|
const open = _react.useCallback.call(void 0, () => setIsOpen(true), []);
|
|
@@ -26952,14 +26973,14 @@ function NotificationsProvider({
|
|
|
26952
26973
|
const setShowPopups = _react.useCallback.call(void 0,
|
|
26953
26974
|
(value2) => {
|
|
26954
26975
|
setShowPopupsState(value2);
|
|
26955
|
-
_optionalChain([onShowPopupsChange, 'optionalCall',
|
|
26976
|
+
_optionalChain([onShowPopupsChange, 'optionalCall', _568 => _568(value2)]);
|
|
26956
26977
|
},
|
|
26957
26978
|
[onShowPopupsChange]
|
|
26958
26979
|
);
|
|
26959
26980
|
const setShowDesktopPopups = _react.useCallback.call(void 0,
|
|
26960
26981
|
(value2) => {
|
|
26961
26982
|
setShowDesktopPopupsState(value2);
|
|
26962
|
-
_optionalChain([onShowDesktopPopupsChange, 'optionalCall',
|
|
26983
|
+
_optionalChain([onShowDesktopPopupsChange, 'optionalCall', _569 => _569(value2)]);
|
|
26963
26984
|
},
|
|
26964
26985
|
[onShowDesktopPopupsChange]
|
|
26965
26986
|
);
|
|
@@ -27075,7 +27096,7 @@ var AppLayoutDrawerRoot = ({
|
|
|
27075
27096
|
const handleOpenChange = _react.useCallback.call(void 0,
|
|
27076
27097
|
(next) => {
|
|
27077
27098
|
if (!isControlled) setInternalOpen(next);
|
|
27078
|
-
_optionalChain([onOpenChange, 'optionalCall',
|
|
27099
|
+
_optionalChain([onOpenChange, 'optionalCall', _570 => _570(next)]);
|
|
27079
27100
|
},
|
|
27080
27101
|
[isControlled, onOpenChange]
|
|
27081
27102
|
);
|
|
@@ -27092,9 +27113,9 @@ var AppLayoutDrawerRoot = ({
|
|
|
27092
27113
|
}
|
|
27093
27114
|
}));
|
|
27094
27115
|
_react.useEffect.call(void 0, () => {
|
|
27095
|
-
if (open) _optionalChain([coordination, 'optionalAccess',
|
|
27116
|
+
if (open) _optionalChain([coordination, 'optionalAccess', _571 => _571.notifyDrawerDidOpen, 'call', _572 => _572(selfHandle)]);
|
|
27096
27117
|
}, [open, coordination, selfHandle]);
|
|
27097
|
-
_react.useEffect.call(void 0, () => _optionalChain([coordination, 'optionalAccess',
|
|
27118
|
+
_react.useEffect.call(void 0, () => _optionalChain([coordination, 'optionalAccess', _573 => _573.registerDrawer, 'call', _574 => _574(selfHandle)]), [coordination, selfHandle]);
|
|
27098
27119
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DrawerOpenContext.Provider, { value: open, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogPrimitive3.Root, { ...rest, open, onOpenChange: handleOpenChange, modal, children }) });
|
|
27099
27120
|
};
|
|
27100
27121
|
AppLayoutDrawerRoot.displayName = "AppLayoutDrawer";
|
|
@@ -27316,10 +27337,10 @@ var AppLayoutDrawerContent = _react.forwardRef.call(void 0,
|
|
|
27316
27337
|
),
|
|
27317
27338
|
style,
|
|
27318
27339
|
onInteractOutside: (event) => {
|
|
27319
|
-
_optionalChain([onInteractOutside, 'optionalCall',
|
|
27340
|
+
_optionalChain([onInteractOutside, 'optionalCall', _575 => _575(event)]);
|
|
27320
27341
|
if (event.defaultPrevented) return;
|
|
27321
27342
|
const target = event.target;
|
|
27322
|
-
const isInsideContainer = !!target && !!_optionalChain([portalContainer, 'optionalAccess',
|
|
27343
|
+
const isInsideContainer = !!target && !!_optionalChain([portalContainer, 'optionalAccess', _576 => _576.contains, 'call', _577 => _577(target)]);
|
|
27323
27344
|
if (!isInsideContainer) {
|
|
27324
27345
|
event.preventDefault();
|
|
27325
27346
|
return;
|
|
@@ -27454,7 +27475,7 @@ function LoadedNotificationTile({
|
|
|
27454
27475
|
if (!counting) return void 0;
|
|
27455
27476
|
const remaining = Math.max(0, liveDurationMs - initialElapsed);
|
|
27456
27477
|
const timer = window.setTimeout(() => {
|
|
27457
|
-
_optionalChain([onSettle, 'optionalCall',
|
|
27478
|
+
_optionalChain([onSettle, 'optionalCall', _578 => _578(id)]);
|
|
27458
27479
|
}, remaining);
|
|
27459
27480
|
return () => window.clearTimeout(timer);
|
|
27460
27481
|
}, [id, counting, initialElapsed, liveDurationMs, onSettle]);
|
|
@@ -27505,7 +27526,7 @@ function LoadedNotificationTile({
|
|
|
27505
27526
|
active: isLive,
|
|
27506
27527
|
label: "Dismiss notification",
|
|
27507
27528
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, { size: 16 }),
|
|
27508
|
-
onClick: () => _optionalChain([onSettle, 'optionalCall',
|
|
27529
|
+
onClick: () => _optionalChain([onSettle, 'optionalCall', _579 => _579(id)])
|
|
27509
27530
|
},
|
|
27510
27531
|
{
|
|
27511
27532
|
active: !isLive,
|
|
@@ -27763,7 +27784,7 @@ function DrawerScrollList({
|
|
|
27763
27784
|
if (!sentinel || !root) return void 0;
|
|
27764
27785
|
const observer = new IntersectionObserver(
|
|
27765
27786
|
(entries) => {
|
|
27766
|
-
if (_optionalChain([entries, 'access',
|
|
27787
|
+
if (_optionalChain([entries, 'access', _580 => _580[0], 'optionalAccess', _581 => _581.isIntersecting])) _optionalChain([loadMoreRef, 'access', _582 => _582.current, 'optionalCall', _583 => _583()]);
|
|
27767
27788
|
},
|
|
27768
27789
|
{ root, rootMargin: loadMoreRootMargin }
|
|
27769
27790
|
);
|
|
@@ -27778,7 +27799,7 @@ function DrawerScrollList({
|
|
|
27778
27799
|
className: "flex flex-1 flex-col gap-[var(--spacing-system-xs)] overflow-y-auto px-[var(--spacing-system-m)]",
|
|
27779
27800
|
children: isEmpty && !isLoadingMore ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmptyState, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
27780
27801
|
unreadNotifications.map((n) => {
|
|
27781
|
-
const custom = _optionalChain([renderTile, 'optionalCall',
|
|
27802
|
+
const custom = _optionalChain([renderTile, 'optionalCall', _584 => _584(n, { onComplete, onSettle, liveDurationMs })]);
|
|
27782
27803
|
if (custom) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: custom }, n.id);
|
|
27783
27804
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27784
27805
|
NotificationTile,
|
|
@@ -27889,7 +27910,7 @@ function NotificationPopups({
|
|
|
27889
27910
|
}) {
|
|
27890
27911
|
const ctx = useOptionalNotifications();
|
|
27891
27912
|
const [now, setNow] = _react.useState.call(void 0, () => Date.now());
|
|
27892
|
-
const hasAgeingNotifications = Boolean(_optionalChain([ctx, 'optionalAccess',
|
|
27913
|
+
const hasAgeingNotifications = Boolean(_optionalChain([ctx, 'optionalAccess', _585 => _585.notifications, 'access', _586 => _586.some, 'call', _587 => _587((n) => !n.read && !n.settled)]));
|
|
27893
27914
|
_react.useEffect.call(void 0, () => {
|
|
27894
27915
|
if (!hasAgeingNotifications) return void 0;
|
|
27895
27916
|
const id = setInterval(() => setNow(Date.now()), 500);
|
|
@@ -27932,7 +27953,7 @@ function NotificationPopups({
|
|
|
27932
27953
|
className
|
|
27933
27954
|
),
|
|
27934
27955
|
children: live.map((n) => {
|
|
27935
|
-
const custom = _optionalChain([renderTile, 'optionalCall',
|
|
27956
|
+
const custom = _optionalChain([renderTile, 'optionalCall', _588 => _588(n, { onComplete: markRead, onSettle: markSettled, liveDurationMs })]);
|
|
27936
27957
|
if (custom) {
|
|
27937
27958
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pointer-events-auto", children: custom }, n.id);
|
|
27938
27959
|
}
|
|
@@ -27979,21 +28000,21 @@ function isApprovalNotificationType(type) {
|
|
|
27979
28000
|
return typeof type === "string" && APPROVAL_REQUEST_TYPES.has(type);
|
|
27980
28001
|
}
|
|
27981
28002
|
function isApprovalNotification(notification) {
|
|
27982
|
-
return isApprovalNotificationType(_optionalChain([notification, 'access',
|
|
28003
|
+
return isApprovalNotificationType(_optionalChain([notification, 'access', _589 => _589.meta, 'optionalAccess', _590 => _590.notificationType]));
|
|
27983
28004
|
}
|
|
27984
28005
|
function getApprovalMeta(notification) {
|
|
27985
28006
|
if (!isApprovalNotification(notification)) return null;
|
|
27986
28007
|
const meta = notification.meta;
|
|
27987
|
-
const approvalRequestId = _optionalChain([meta, 'optionalAccess',
|
|
27988
|
-
const toolCalls = _optionalChain([meta, 'optionalAccess',
|
|
28008
|
+
const approvalRequestId = _optionalChain([meta, 'optionalAccess', _591 => _591.approvalRequestId]);
|
|
28009
|
+
const toolCalls = _optionalChain([meta, 'optionalAccess', _592 => _592.toolCalls]);
|
|
27989
28010
|
if (typeof approvalRequestId !== "string" || !Array.isArray(toolCalls)) return null;
|
|
27990
28011
|
return {
|
|
27991
28012
|
approvalRequestId,
|
|
27992
|
-
dialogId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
27993
|
-
ticketId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
27994
|
-
approvalType: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
27995
|
-
resolution: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
27996
|
-
resolvedByName: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
28013
|
+
dialogId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _593 => _593.dialogId]), () => ( null)),
|
|
28014
|
+
ticketId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _594 => _594.ticketId]), () => ( null)),
|
|
28015
|
+
approvalType: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _595 => _595.approvalType]), () => ( null)),
|
|
28016
|
+
resolution: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _596 => _596.resolution]), () => ( null)),
|
|
28017
|
+
resolvedByName: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _597 => _597.resolvedByName]), () => ( null)),
|
|
27997
28018
|
toolCalls
|
|
27998
28019
|
};
|
|
27999
28020
|
}
|
|
@@ -28048,7 +28069,7 @@ function ApprovalRequestNotificationTile({
|
|
|
28048
28069
|
const [processing, setProcessing] = _react.useState.call(void 0, false);
|
|
28049
28070
|
const [localStatus, setLocalStatus] = _react.useState.call(void 0, null);
|
|
28050
28071
|
const approval = getApprovalMeta(notification);
|
|
28051
|
-
const resolvedStatus = resolutionToStatus(_optionalChain([approval, 'optionalAccess',
|
|
28072
|
+
const resolvedStatus = resolutionToStatus(_optionalChain([approval, 'optionalAccess', _598 => _598.resolution]));
|
|
28052
28073
|
const status = resolvedStatus !== "pending" ? resolvedStatus : _nullishCoalesce(localStatus, () => ( "pending"));
|
|
28053
28074
|
const batchData = _react.useMemo.call(void 0, () => approval ? approvalMetaToBatchData(approval) : null, [approval]);
|
|
28054
28075
|
const { innerRef, containerStyle } = _chunkJLKGLPDCcjs.useCollapsible.call(void 0, { expanded });
|
|
@@ -28374,7 +28395,7 @@ function TimeTrackerPanel({
|
|
|
28374
28395
|
] }),
|
|
28375
28396
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "grid gap-[var(--spacing-system-m)]", showCustomer && "grid-cols-2"), children: [
|
|
28376
28397
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28377
|
-
|
|
28398
|
+
_chunkFRS2VO22cjs.Autocomplete,
|
|
28378
28399
|
{
|
|
28379
28400
|
value: selectedTicketId,
|
|
28380
28401
|
onChange: onSelectedTicketChange,
|
|
@@ -28385,12 +28406,12 @@ function TimeTrackerPanel({
|
|
|
28385
28406
|
error: showFieldError ? "Required if no notes added" : void 0,
|
|
28386
28407
|
disableClientFilter: !!onTicketSearch,
|
|
28387
28408
|
onInputChange: (value, reason) => {
|
|
28388
|
-
if (reason === "input") _optionalChain([onTicketSearch, 'optionalCall',
|
|
28409
|
+
if (reason === "input") _optionalChain([onTicketSearch, 'optionalCall', _599 => _599(value)]);
|
|
28389
28410
|
}
|
|
28390
28411
|
}
|
|
28391
28412
|
),
|
|
28392
28413
|
showCustomer && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28393
|
-
|
|
28414
|
+
_chunkFRS2VO22cjs.Autocomplete,
|
|
28394
28415
|
{
|
|
28395
28416
|
value: _nullishCoalesce(selectedCustomerId, () => ( null)),
|
|
28396
28417
|
onChange: onSelectedCustomerChange,
|
|
@@ -28400,7 +28421,7 @@ function TimeTrackerPanel({
|
|
|
28400
28421
|
disabled: customerLocked,
|
|
28401
28422
|
disableClientFilter: !!onCustomerSearch,
|
|
28402
28423
|
onInputChange: (value, reason) => {
|
|
28403
|
-
if (reason === "input") _optionalChain([onCustomerSearch, 'optionalCall',
|
|
28424
|
+
if (reason === "input") _optionalChain([onCustomerSearch, 'optionalCall', _600 => _600(value)]);
|
|
28404
28425
|
},
|
|
28405
28426
|
startAdornment: customerStartAdornment,
|
|
28406
28427
|
renderOption: renderCustomerOption
|
|
@@ -28502,7 +28523,7 @@ function LastEntryRow({ entry, onClick }) {
|
|
|
28502
28523
|
{
|
|
28503
28524
|
variant: "outline",
|
|
28504
28525
|
size: "icon",
|
|
28505
|
-
onClick: () => _optionalChain([onClick, 'optionalCall',
|
|
28526
|
+
onClick: () => _optionalChain([onClick, 'optionalCall', _601 => _601(entry)]),
|
|
28506
28527
|
disabled: !onClick,
|
|
28507
28528
|
"aria-label": `Open entry: ${entry.title}`,
|
|
28508
28529
|
className: "h-12 w-12 shrink-0 [&_svg]:!size-6",
|
|
@@ -28581,29 +28602,29 @@ function HeaderButton({
|
|
|
28581
28602
|
function TimeTrackerHeaderButton({ className, disabled }) {
|
|
28582
28603
|
const ctx = useOptionalTimeTracker();
|
|
28583
28604
|
const elapsedLabel = useTrackerClock({
|
|
28584
|
-
status: _nullishCoalesce(_optionalChain([ctx, 'optionalAccess',
|
|
28585
|
-
runningSince: _optionalChain([ctx, 'optionalAccess',
|
|
28586
|
-
accumulatedMs: _optionalChain([ctx, 'optionalAccess',
|
|
28605
|
+
status: _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _602 => _602.status]), () => ( "ready")),
|
|
28606
|
+
runningSince: _optionalChain([ctx, 'optionalAccess', _603 => _603.runningSince]),
|
|
28607
|
+
accumulatedMs: _optionalChain([ctx, 'optionalAccess', _604 => _604.accumulatedMs])
|
|
28587
28608
|
});
|
|
28588
28609
|
const layoutContainer = useAppLayoutDrawerContainer();
|
|
28589
28610
|
const portalContainer = _chunkNL3G642Ucjs.usePortalContainer.call(void 0, );
|
|
28590
28611
|
const coordination = useAppLayoutDrawerCoordination();
|
|
28591
|
-
const isOpen = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess',
|
|
28612
|
+
const isOpen = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _605 => _605.isOpen]), () => ( false));
|
|
28592
28613
|
const isOpenRef = _react.useRef.call(void 0, isOpen);
|
|
28593
|
-
const closeRef = _react.useRef.call(void 0, _optionalChain([ctx, 'optionalAccess',
|
|
28614
|
+
const closeRef = _react.useRef.call(void 0, _optionalChain([ctx, 'optionalAccess', _606 => _606.close]));
|
|
28594
28615
|
_react.useEffect.call(void 0, () => {
|
|
28595
28616
|
isOpenRef.current = isOpen;
|
|
28596
|
-
closeRef.current = _optionalChain([ctx, 'optionalAccess',
|
|
28617
|
+
closeRef.current = _optionalChain([ctx, 'optionalAccess', _607 => _607.close]);
|
|
28597
28618
|
});
|
|
28598
28619
|
const [selfHandle] = _react.useState.call(void 0, () => ({
|
|
28599
28620
|
close: () => {
|
|
28600
|
-
if (isOpenRef.current) _optionalChain([closeRef, 'access',
|
|
28621
|
+
if (isOpenRef.current) _optionalChain([closeRef, 'access', _608 => _608.current, 'optionalCall', _609 => _609()]);
|
|
28601
28622
|
}
|
|
28602
28623
|
}));
|
|
28603
28624
|
_react.useEffect.call(void 0, () => {
|
|
28604
|
-
if (isOpen) _optionalChain([coordination, 'optionalAccess',
|
|
28625
|
+
if (isOpen) _optionalChain([coordination, 'optionalAccess', _610 => _610.notifyDrawerDidOpen, 'call', _611 => _611(selfHandle)]);
|
|
28605
28626
|
}, [isOpen, coordination, selfHandle]);
|
|
28606
|
-
_react.useEffect.call(void 0, () => _optionalChain([coordination, 'optionalAccess',
|
|
28627
|
+
_react.useEffect.call(void 0, () => _optionalChain([coordination, 'optionalAccess', _612 => _612.registerDrawer, 'call', _613 => _613(selfHandle)]), [coordination, selfHandle]);
|
|
28607
28628
|
if (!ctx) return null;
|
|
28608
28629
|
const { open, close, status } = ctx;
|
|
28609
28630
|
const isPaused = status === "paused";
|
|
@@ -28681,12 +28702,12 @@ function formatLastOnline(lastSeen) {
|
|
|
28681
28702
|
|
|
28682
28703
|
// src/components/features/devices/device-name.ts
|
|
28683
28704
|
function getDeviceName(device) {
|
|
28684
|
-
return _optionalChain([device, 'optionalAccess',
|
|
28705
|
+
return _optionalChain([device, 'optionalAccess', _614 => _614.nickname]) || _optionalChain([device, 'optionalAccess', _615 => _615.displayName]) || _optionalChain([device, 'optionalAccess', _616 => _616.hostname]) || "";
|
|
28685
28706
|
}
|
|
28686
28707
|
function matchesDeviceName(device, search = "") {
|
|
28687
28708
|
const needle = search.trim().toLowerCase();
|
|
28688
28709
|
if (!needle) return true;
|
|
28689
|
-
return getDeviceName(device).toLowerCase().includes(needle) || (_nullishCoalesce(_optionalChain([device, 'optionalAccess',
|
|
28710
|
+
return getDeviceName(device).toLowerCase().includes(needle) || (_nullishCoalesce(_optionalChain([device, 'optionalAccess', _617 => _617.hostname]), () => ( ""))).toLowerCase().includes(needle);
|
|
28690
28711
|
}
|
|
28691
28712
|
|
|
28692
28713
|
// src/components/features/devices/devices-view-config.tsx
|
|
@@ -28879,7 +28900,7 @@ var HIDDEN_DEVICE_STATUSES = [DEVICE_STATUS.ARCHIVED, DEVICE_STATUS.DELETED];
|
|
|
28879
28900
|
|
|
28880
28901
|
var DEFAULT_CLASS_NAME = "w-6 h-6 text-ods-text-secondary";
|
|
28881
28902
|
function renderDeviceTypeIcon(type, className = DEFAULT_CLASS_NAME) {
|
|
28882
|
-
switch (_optionalChain([type, 'optionalAccess',
|
|
28903
|
+
switch (_optionalChain([type, 'optionalAccess', _618 => _618.toLowerCase, 'call', _619 => _619()])) {
|
|
28883
28904
|
case "desktop":
|
|
28884
28905
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPTK7GOIIcjs.MonitorIcon, { className });
|
|
28885
28906
|
case "laptop":
|
|
@@ -29023,7 +29044,7 @@ function getDeviceActionsColumn(renderRowActions) {
|
|
|
29023
29044
|
function OpenDeviceButton({ device }) {
|
|
29024
29045
|
const { getDeviceHref } = useDevicesViewConfig();
|
|
29025
29046
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
29026
|
-
const href = loading ? void 0 : _optionalChain([getDeviceHref, 'optionalCall',
|
|
29047
|
+
const href = loading ? void 0 : _optionalChain([getDeviceHref, 'optionalCall', _620 => _620(device)]);
|
|
29027
29048
|
const open = (event) => {
|
|
29028
29049
|
event.preventDefault();
|
|
29029
29050
|
if (href) window.open(href, "_blank", "noopener,noreferrer");
|
|
@@ -29120,7 +29141,7 @@ function DevicesTableBody({
|
|
|
29120
29141
|
function OrganizationCell({ device }) {
|
|
29121
29142
|
const fullImageUrl = useDeviceImageUrl(device.organizationImageUrl, device.organizationImageHash);
|
|
29122
29143
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
29123
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29144
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.EntityImage, { src: fullImageUrl, alt: device.organization || "Customer", className: "size-12 content-md:size-12" }),
|
|
29124
29145
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OrganizationName, { name: device.organization }) })
|
|
29125
29146
|
] });
|
|
29126
29147
|
}
|
|
@@ -29133,10 +29154,10 @@ function DeviceLastSeen({ lastSeen }) {
|
|
|
29133
29154
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "hidden text-ods-text-secondary text-h6 content-md:flex", children: lastSeen ? formatDateTime(lastSeen) : "Never" });
|
|
29134
29155
|
}
|
|
29135
29156
|
function buildDeviceFilterOptions(deviceFilters) {
|
|
29136
|
-
const status = (_nullishCoalesce(_optionalChain([deviceFilters, 'optionalAccess',
|
|
29137
|
-
const os = (_nullishCoalesce(_optionalChain([deviceFilters, 'optionalAccess',
|
|
29157
|
+
const status = (_nullishCoalesce(_optionalChain([deviceFilters, 'optionalAccess', _621 => _621.statuses]), () => ( []))).filter((s) => DEFAULT_VISIBLE_STATUSES.includes(s.value)).map((s) => ({ id: s.value, label: getDeviceStatusConfig(s.value).label, value: s.value, count: s.count }));
|
|
29158
|
+
const os = (_nullishCoalesce(_optionalChain([deviceFilters, 'optionalAccess', _622 => _622.osTypes]), () => ( []))).map((o) => ({ id: o.value, label: o.value, value: o.value, count: o.count }));
|
|
29138
29159
|
const organization = uniqueById(
|
|
29139
|
-
(_nullishCoalesce(_optionalChain([deviceFilters, 'optionalAccess',
|
|
29160
|
+
(_nullishCoalesce(_optionalChain([deviceFilters, 'optionalAccess', _623 => _623.organizationIds]), () => ( []))).map((org) => ({
|
|
29140
29161
|
id: org.value,
|
|
29141
29162
|
label: org.label,
|
|
29142
29163
|
value: org.value,
|
|
@@ -29172,7 +29193,7 @@ function getDeviceTableColumns(deviceFilters, filtersPending) {
|
|
|
29172
29193
|
const device = row.original;
|
|
29173
29194
|
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: [
|
|
29174
29195
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeviceTypeTile, { type: device.type }),
|
|
29175
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29196
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { children: getDeviceName(device) }) })
|
|
29176
29197
|
] });
|
|
29177
29198
|
},
|
|
29178
29199
|
meta: { width: "flex-1 content-md:w-1/4" }
|
|
@@ -29230,7 +29251,7 @@ function isCompleteTag(tag) {
|
|
|
29230
29251
|
const i = tag.indexOf(":");
|
|
29231
29252
|
return i > 0 && i < tag.length - 1;
|
|
29232
29253
|
}
|
|
29233
|
-
var scrollMainToTop = () => _optionalChain([document, 'access',
|
|
29254
|
+
var scrollMainToTop = () => _optionalChain([document, 'access', _624 => _624.querySelector, 'call', _625 => _625("main"), 'optionalAccess', _626 => _626.scrollTo, 'call', _627 => _627({ top: 0, behavior: "instant" })]);
|
|
29234
29255
|
function useTagFilterModal({
|
|
29235
29256
|
tags,
|
|
29236
29257
|
deviceFilters,
|
|
@@ -29252,7 +29273,7 @@ function useTagFilterModal({
|
|
|
29252
29273
|
}));
|
|
29253
29274
|
}, [columns, isMdUp]);
|
|
29254
29275
|
const tagFilterKeys = _react.useMemo.call(void 0, () => {
|
|
29255
|
-
if (!_optionalChain([deviceFilters, 'optionalAccess',
|
|
29276
|
+
if (!_optionalChain([deviceFilters, 'optionalAccess', _628 => _628.tagKeys])) return [];
|
|
29256
29277
|
const grouped = /* @__PURE__ */ new Map();
|
|
29257
29278
|
for (const tag of deviceFilters.tagKeys) {
|
|
29258
29279
|
if (tag.key === "null") continue;
|
|
@@ -29344,7 +29365,7 @@ function CustomerCell({ device }) {
|
|
|
29344
29365
|
const fullImageUrl = useDeviceImageUrl(device.organizationImageUrl, device.organizationImageHash);
|
|
29345
29366
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
29346
29367
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29347
|
-
|
|
29368
|
+
_chunkFRS2VO22cjs.EntityImage,
|
|
29348
29369
|
{
|
|
29349
29370
|
src: fullImageUrl,
|
|
29350
29371
|
alt: device.organization || "Customer",
|
|
@@ -29352,8 +29373,8 @@ function CustomerCell({ device }) {
|
|
|
29352
29373
|
}
|
|
29353
29374
|
),
|
|
29354
29375
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
29355
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29356
|
-
(device.organizationEmail || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29376
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { children: device.organization || "" }),
|
|
29377
|
+
(device.organizationEmail || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(device.organizationEmail, () => ( "")) })
|
|
29357
29378
|
] })
|
|
29358
29379
|
] });
|
|
29359
29380
|
}
|
|
@@ -29362,8 +29383,8 @@ function DeviceCell({ device }) {
|
|
|
29362
29383
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 items-center gap-3", children: [
|
|
29363
29384
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeviceTypeTile, { type: device.type }),
|
|
29364
29385
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col", children: [
|
|
29365
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29366
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29386
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { children: getDeviceName(device) }),
|
|
29387
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { variant: "h6", tone: "secondary", loading, children: formatLastOnline(device.last_seen || device.lastSeen) })
|
|
29367
29388
|
] })
|
|
29368
29389
|
] });
|
|
29369
29390
|
}
|
|
@@ -29445,7 +29466,7 @@ function DeviceSelector({
|
|
|
29445
29466
|
const clientToggleDevice = _react.useCallback.call(void 0,
|
|
29446
29467
|
(device) => {
|
|
29447
29468
|
if (disabled) return;
|
|
29448
|
-
if (_optionalChain([isDeviceDisabled, 'optionalCall',
|
|
29469
|
+
if (_optionalChain([isDeviceDisabled, 'optionalCall', _629 => _629(device)])) return;
|
|
29449
29470
|
const key = getDeviceKey(device);
|
|
29450
29471
|
if (key === void 0) return;
|
|
29451
29472
|
const current = selectedIdsRef.current;
|
|
@@ -29470,7 +29491,7 @@ function DeviceSelector({
|
|
|
29470
29491
|
return;
|
|
29471
29492
|
}
|
|
29472
29493
|
if (disabled) return;
|
|
29473
|
-
if (_optionalChain([isDeviceDisabled, 'optionalCall',
|
|
29494
|
+
if (_optionalChain([isDeviceDisabled, 'optionalCall', _630 => _630(device)])) return;
|
|
29474
29495
|
if (server.activeTab === "selected") {
|
|
29475
29496
|
server.onRemove(device);
|
|
29476
29497
|
return;
|
|
@@ -29531,7 +29552,7 @@ function DeviceSelector({
|
|
|
29531
29552
|
const base = addAllBehavior === "replace" ? /* @__PURE__ */ new Set() : new Set(selectedIds);
|
|
29532
29553
|
for (const d of client.filteredDevices) {
|
|
29533
29554
|
if (!matchesVisibleFilters(d)) continue;
|
|
29534
|
-
if (_optionalChain([isDeviceDisabled, 'optionalCall',
|
|
29555
|
+
if (_optionalChain([isDeviceDisabled, 'optionalCall', _631 => _631(d)])) continue;
|
|
29535
29556
|
const key = getDeviceKey(d);
|
|
29536
29557
|
if (key !== void 0) {
|
|
29537
29558
|
base.add(key);
|
|
@@ -29560,7 +29581,7 @@ function DeviceSelector({
|
|
|
29560
29581
|
const orgKey = _nullishCoalesce(d.organizationId, () => ( d.organization));
|
|
29561
29582
|
if (orgKey) {
|
|
29562
29583
|
const existing = orgCounts.get(orgKey);
|
|
29563
|
-
orgCounts.set(orgKey, { label: _nullishCoalesce(d.organization, () => ( orgKey)), count: (_nullishCoalesce(_optionalChain([existing, 'optionalAccess',
|
|
29584
|
+
orgCounts.set(orgKey, { label: _nullishCoalesce(d.organization, () => ( orgKey)), count: (_nullishCoalesce(_optionalChain([existing, 'optionalAccess', _632 => _632.count]), () => ( 0))) + 1 });
|
|
29564
29585
|
}
|
|
29565
29586
|
for (const tag of _nullishCoalesce(d.tags, () => ( []))) {
|
|
29566
29587
|
const vc = _nullishCoalesce(tagSeen.get(tag.key), () => ( /* @__PURE__ */ new Map()));
|
|
@@ -29583,18 +29604,18 @@ function DeviceSelector({
|
|
|
29583
29604
|
filteredCount: devices.length
|
|
29584
29605
|
};
|
|
29585
29606
|
}, [devices]);
|
|
29586
|
-
const deviceFilters = _nullishCoalesce(_optionalChain([server, 'optionalAccess',
|
|
29587
|
-
const serverFaceted = Boolean(_optionalChain([server, 'optionalAccess',
|
|
29607
|
+
const deviceFilters = _nullishCoalesce(_optionalChain([server, 'optionalAccess', _633 => _633.filterOptions]), () => ( clientDeviceFilters));
|
|
29608
|
+
const serverFaceted = Boolean(_optionalChain([server, 'optionalAccess', _634 => _634.filterOptions]));
|
|
29588
29609
|
const filterColumns = _react.useMemo.call(void 0, () => {
|
|
29589
29610
|
const columns2 = getDeviceFilterColumns(deviceFilters);
|
|
29590
29611
|
if (serverFaceted) return columns2;
|
|
29591
29612
|
return columns2.map((column) => ({
|
|
29592
29613
|
...column,
|
|
29593
|
-
filterOptions: _optionalChain([column, 'access',
|
|
29614
|
+
filterOptions: _optionalChain([column, 'access', _635 => _635.filterOptions, 'optionalAccess', _636 => _636.map, 'call', _637 => _637(({ count: _count, ...option }) => option)])
|
|
29594
29615
|
}));
|
|
29595
29616
|
}, [deviceFilters, serverFaceted]);
|
|
29596
29617
|
const statusFilterOptions = _react.useMemo.call(void 0, () => {
|
|
29597
|
-
const options = _nullishCoalesce(_optionalChain([filterColumns, 'access',
|
|
29618
|
+
const options = _nullishCoalesce(_optionalChain([filterColumns, 'access', _638 => _638.find, 'call', _639 => _639((column) => column.key === "status"), 'optionalAccess', _640 => _640.filterOptions]), () => ( []));
|
|
29598
29619
|
return [...options].sort((a, b) => {
|
|
29599
29620
|
if (a.value === DEVICE_STATUS.ARCHIVED) return 1;
|
|
29600
29621
|
if (b.value === DEVICE_STATUS.ARCHIVED) return -1;
|
|
@@ -29602,15 +29623,15 @@ function DeviceSelector({
|
|
|
29602
29623
|
});
|
|
29603
29624
|
}, [filterColumns]);
|
|
29604
29625
|
const orgFilterOptions = _react.useMemo.call(void 0,
|
|
29605
|
-
() => _nullishCoalesce(_optionalChain([filterColumns, 'access',
|
|
29626
|
+
() => _nullishCoalesce(_optionalChain([filterColumns, 'access', _641 => _641.find, 'call', _642 => _642((column) => column.key === "organization"), 'optionalAccess', _643 => _643.filterOptions]), () => ( [])),
|
|
29606
29627
|
[filterColumns]
|
|
29607
29628
|
);
|
|
29608
29629
|
const handleSetParams = _react.useCallback.call(void 0,
|
|
29609
29630
|
(params) => {
|
|
29610
29631
|
setColumnFilters([
|
|
29611
|
-
..._optionalChain([params, 'access',
|
|
29612
|
-
..._optionalChain([params, 'access',
|
|
29613
|
-
..._optionalChain([params, 'access',
|
|
29632
|
+
..._optionalChain([params, 'access', _644 => _644.statuses, 'optionalAccess', _645 => _645.length]) ? [{ id: "status", value: params.statuses }] : [],
|
|
29633
|
+
..._optionalChain([params, 'access', _646 => _646.osTypes, 'optionalAccess', _647 => _647.length]) ? [{ id: "os", value: params.osTypes }] : [],
|
|
29634
|
+
..._optionalChain([params, 'access', _648 => _648.organizationIds, 'optionalAccess', _649 => _649.length]) ? [{ id: "organization", value: params.organizationIds }] : []
|
|
29614
29635
|
]);
|
|
29615
29636
|
setSelectedTags(_nullishCoalesce(params.tags, () => ( [])));
|
|
29616
29637
|
},
|
|
@@ -29634,9 +29655,9 @@ function DeviceSelector({
|
|
|
29634
29655
|
const tagOptions = _react.useMemo.call(void 0, () => selectedTags.map((t) => ({ label: t, value: t })), [selectedTags]);
|
|
29635
29656
|
const tableFilters = _react.useMemo.call(void 0,
|
|
29636
29657
|
() => ({
|
|
29637
|
-
status: _nullishCoalesce(_optionalChain([columnFilters, 'access',
|
|
29638
|
-
os: _nullishCoalesce(_optionalChain([columnFilters, 'access',
|
|
29639
|
-
organization: _nullishCoalesce(_optionalChain([columnFilters, 'access',
|
|
29658
|
+
status: _nullishCoalesce(_optionalChain([columnFilters, 'access', _650 => _650.find, 'call', _651 => _651((f) => f.id === "status"), 'optionalAccess', _652 => _652.value]), () => ( [])),
|
|
29659
|
+
os: _nullishCoalesce(_optionalChain([columnFilters, 'access', _653 => _653.find, 'call', _654 => _654((f) => f.id === "os"), 'optionalAccess', _655 => _655.value]), () => ( [])),
|
|
29660
|
+
organization: _nullishCoalesce(_optionalChain([columnFilters, 'access', _656 => _656.find, 'call', _657 => _657((f) => f.id === "organization"), 'optionalAccess', _658 => _658.value]), () => ( []))
|
|
29640
29661
|
}),
|
|
29641
29662
|
[columnFilters]
|
|
29642
29663
|
);
|
|
@@ -29706,7 +29727,7 @@ function DeviceSelector({
|
|
|
29706
29727
|
id: "actions",
|
|
29707
29728
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InertInScope, { children: (() => {
|
|
29708
29729
|
const device = row.original;
|
|
29709
|
-
const disabledReason = _optionalChain([isDeviceDisabled, 'optionalCall',
|
|
29730
|
+
const disabledReason = _optionalChain([isDeviceDisabled, 'optionalCall', _659 => _659(device)]);
|
|
29710
29731
|
if (disabledReason) {
|
|
29711
29732
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex w-full items-center justify-end gap-2", children: [
|
|
29712
29733
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-pre-line text-right text-ods-text-secondary text-h6 content-max-md:hidden", children: disabledReason }),
|
|
@@ -29823,7 +29844,7 @@ function DeviceSelector({
|
|
|
29823
29844
|
showHeader && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29824
29845
|
DataTable.Header,
|
|
29825
29846
|
{
|
|
29826
|
-
rightSlot: _nullishCoalesce(bulkAction, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTable.RowCount, { itemName: "device", totalCount: _nullishCoalesce(totalCount, () => ( _optionalChain([server, 'optionalAccess',
|
|
29847
|
+
rightSlot: _nullishCoalesce(bulkAction, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTable.RowCount, { itemName: "device", totalCount: _nullishCoalesce(totalCount, () => ( _optionalChain([server, 'optionalAccess', _660 => _660.totalCount]))), loading })))
|
|
29827
29848
|
}
|
|
29828
29849
|
),
|
|
29829
29850
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -29910,7 +29931,7 @@ function DeviceSelector({
|
|
|
29910
29931
|
// src/components/features/devices/device-selector/narrowing.ts
|
|
29911
29932
|
var EMPTY_NARROWING = { columnFilters: [], tags: [] };
|
|
29912
29933
|
function narrowingToFilter(narrowing) {
|
|
29913
|
-
const column = (id) => _optionalChain([narrowing, 'access',
|
|
29934
|
+
const column = (id) => _optionalChain([narrowing, 'access', _661 => _661.columnFilters, 'access', _662 => _662.find, 'call', _663 => _663((f) => f.id === id), 'optionalAccess', _664 => _664.value]);
|
|
29914
29935
|
const tagPairs = narrowing.tags.flatMap((t) => {
|
|
29915
29936
|
const i = t.indexOf(":");
|
|
29916
29937
|
return i > 0 ? [{ key: t.slice(0, i), value: t.slice(i + 1) }] : [];
|
|
@@ -29919,9 +29940,9 @@ function narrowingToFilter(narrowing) {
|
|
|
29919
29940
|
const statuses = column("status");
|
|
29920
29941
|
const osTypes = column("os");
|
|
29921
29942
|
const organizationIds = column("organization");
|
|
29922
|
-
if (_optionalChain([statuses, 'optionalAccess',
|
|
29923
|
-
if (_optionalChain([osTypes, 'optionalAccess',
|
|
29924
|
-
if (_optionalChain([organizationIds, 'optionalAccess',
|
|
29943
|
+
if (_optionalChain([statuses, 'optionalAccess', _665 => _665.length])) filter.statuses = statuses;
|
|
29944
|
+
if (_optionalChain([osTypes, 'optionalAccess', _666 => _666.length])) filter.osTypes = osTypes;
|
|
29945
|
+
if (_optionalChain([organizationIds, 'optionalAccess', _667 => _667.length])) filter.organizationIds = organizationIds;
|
|
29925
29946
|
if (tagPairs.length) {
|
|
29926
29947
|
filter.tagKeys = tagPairs.map((t) => t.key);
|
|
29927
29948
|
filter.tagValues = tagPairs.map((t) => t.value);
|
|
@@ -29951,7 +29972,7 @@ function DevicesGrid({
|
|
|
29951
29972
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
29952
29973
|
const { getDeviceHref } = useDevicesViewConfig();
|
|
29953
29974
|
const handleDeviceClick = (device) => {
|
|
29954
|
-
const href = device.machineId || device.id ? _optionalChain([getDeviceHref, 'optionalCall',
|
|
29975
|
+
const href = device.machineId || device.id ? _optionalChain([getDeviceHref, 'optionalCall', _668 => _668(device)]) : void 0;
|
|
29955
29976
|
if (href) router.push(href);
|
|
29956
29977
|
};
|
|
29957
29978
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: isLoading && devices.length === 0 ? (
|
|
@@ -30111,7 +30132,7 @@ function DevicesList({
|
|
|
30111
30132
|
const onColumnFiltersChange = _react.useCallback.call(void 0,
|
|
30112
30133
|
(updater) => {
|
|
30113
30134
|
const next = typeof updater === "function" ? updater(columnFilters) : updater;
|
|
30114
|
-
const pick = (id) => _nullishCoalesce(_optionalChain([next, 'access',
|
|
30135
|
+
const pick = (id) => _nullishCoalesce(_optionalChain([next, 'access', _669 => _669.find, 'call', _670 => _670((f) => f.id === id), 'optionalAccess', _671 => _671.value]), () => ( []));
|
|
30115
30136
|
patch({ statuses: pick("status"), osTypes: pick("os"), organizationIds: pick("organization") });
|
|
30116
30137
|
},
|
|
30117
30138
|
[columnFilters, patch]
|
|
@@ -30335,7 +30356,7 @@ function DevicesPanelView({
|
|
|
30335
30356
|
}) {
|
|
30336
30357
|
const scoped = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
30337
30358
|
const loading = scoped || loadingGiven;
|
|
30338
|
-
const gridColumns = _nullishCoalesce(filterColumns, () => ( getDeviceFilterColumns(deviceFilters).filter((column) => !_optionalChain([hideFilters, 'optionalAccess',
|
|
30359
|
+
const gridColumns = _nullishCoalesce(filterColumns, () => ( getDeviceFilterColumns(deviceFilters).filter((column) => !_optionalChain([hideFilters, 'optionalAccess', _672 => _672.includes, 'call', _673 => _673(column.key)]))));
|
|
30339
30360
|
const list = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
30340
30361
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DevicesFilterToolbar, { ...toolbar, isLoading: loading }),
|
|
30341
30362
|
viewMode === "table" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -30392,7 +30413,7 @@ function DevicesPanelView({
|
|
|
30392
30413
|
] })
|
|
30393
30414
|
] });
|
|
30394
30415
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30395
|
-
|
|
30416
|
+
_chunkFRS2VO22cjs.PageLayout,
|
|
30396
30417
|
{
|
|
30397
30418
|
title,
|
|
30398
30419
|
backButton,
|
|
@@ -30403,7 +30424,7 @@ function DevicesPanelView({
|
|
|
30403
30424
|
_chunkKS5V55HNcjs.TabSelector,
|
|
30404
30425
|
{
|
|
30405
30426
|
value: viewMode,
|
|
30406
|
-
onValueChange: (value) => _optionalChain([onViewModeChange, 'optionalCall',
|
|
30427
|
+
onValueChange: (value) => _optionalChain([onViewModeChange, 'optionalCall', _674 => _674(value)]),
|
|
30407
30428
|
items: DEVICE_VIEW_MODE_ITEMS,
|
|
30408
30429
|
disabled: loading
|
|
30409
30430
|
}
|
|
@@ -30466,7 +30487,7 @@ var PACKAGE_SEARCH_LABEL = "Software Name";
|
|
|
30466
30487
|
var PACKAGE_SEARCH_PLACEHOLDER = "Search for Software";
|
|
30467
30488
|
function PackageSearchFieldPlaceholder({ error }) {
|
|
30468
30489
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30469
|
-
|
|
30490
|
+
_chunkFRS2VO22cjs.Autocomplete,
|
|
30470
30491
|
{
|
|
30471
30492
|
label: PACKAGE_SEARCH_LABEL,
|
|
30472
30493
|
labelVariant: "large",
|
|
@@ -30521,16 +30542,16 @@ function SoftwareScheduleFields({
|
|
|
30521
30542
|
] }),
|
|
30522
30543
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
30523
30544
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD47ZGOUcjs.Label, { className: "text-h4", children: "Time" }),
|
|
30524
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30525
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30526
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30545
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFRS2VO22cjs.Select, { value: time, onValueChange: onTimeChange, children: [
|
|
30546
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectValue, { placeholder: "Select time" }) }),
|
|
30547
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectContent, { children: timeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
30527
30548
|
] })
|
|
30528
30549
|
] }),
|
|
30529
30550
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
30530
30551
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD47ZGOUcjs.Label, { className: "text-h4", children: "Timezone" }),
|
|
30531
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30532
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30533
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30552
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFRS2VO22cjs.Select, { value: timeReference, onValueChange: (value) => onTimeReferenceChange(value), children: [
|
|
30553
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectValue, {}) }),
|
|
30554
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectContent, { children: timing.timeReferenceOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
30534
30555
|
] })
|
|
30535
30556
|
] })
|
|
30536
30557
|
]
|
|
@@ -30596,22 +30617,22 @@ function newSoftwareRow(key) {
|
|
|
30596
30617
|
|
|
30597
30618
|
function InfoCell2({ value, label }) {
|
|
30598
30619
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
30599
|
-
/* @__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,
|
|
30620
|
+
/* @__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, _chunkFRS2VO22cjs.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" }) }) }),
|
|
30600
30621
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: label })
|
|
30601
30622
|
] });
|
|
30602
30623
|
}
|
|
30603
30624
|
function SoftwareRowFields({ row, removable, onChange, onRemove, renderPackageSearch }) {
|
|
30604
30625
|
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: [
|
|
30605
30626
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30606
|
-
|
|
30627
|
+
_chunkFRS2VO22cjs.Select,
|
|
30607
30628
|
{
|
|
30608
30629
|
value: row.packageManager,
|
|
30609
30630
|
onValueChange: (value) => onChange({ ...row, packageManager: value, pkg: null }),
|
|
30610
30631
|
children: [
|
|
30611
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30612
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30632
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectTrigger, { label: "Package Manager", labelVariant: "large", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectValue, {}) }),
|
|
30633
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectContent, { children: PACKAGE_MANAGERS.map((manager) => {
|
|
30613
30634
|
const Icon = PACKAGE_MANAGER_ICON[manager];
|
|
30614
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30635
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: manager, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
30615
30636
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { size: 20, className: "shrink-0 text-ods-text-secondary" }),
|
|
30616
30637
|
PACKAGE_MANAGER_LABEL[manager]
|
|
30617
30638
|
] }) }, manager);
|
|
@@ -30624,9 +30645,9 @@ function SoftwareRowFields({ row, removable, onChange, onRemove, renderPackageSe
|
|
|
30624
30645
|
value: row.pkg,
|
|
30625
30646
|
onChange: (pkg) => onChange({ ...row, pkg })
|
|
30626
30647
|
}) }),
|
|
30627
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: _optionalChain([row, 'access',
|
|
30648
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: _optionalChain([row, 'access', _675 => _675.pkg, 'optionalAccess', _676 => _676.description]), label: "Description" }),
|
|
30628
30649
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-end gap-[var(--spacing-system-lf)]", children: [
|
|
30629
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: _optionalChain([row, 'access',
|
|
30650
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: _optionalChain([row, 'access', _677 => _677.pkg, 'optionalAccess', _678 => _678.version]), label: "Current Version" }),
|
|
30630
30651
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30631
30652
|
_chunkAHBTZ7DNcjs.Button,
|
|
30632
30653
|
{
|
|
@@ -30709,7 +30730,7 @@ function SoftwareActionForm({
|
|
|
30709
30730
|
}
|
|
30710
30731
|
);
|
|
30711
30732
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30712
|
-
|
|
30733
|
+
_chunkFRS2VO22cjs.PageLayout,
|
|
30713
30734
|
{
|
|
30714
30735
|
title: copy.formTitle,
|
|
30715
30736
|
backButton: onBack ? { label: "Back", onClick: onBack } : void 0,
|
|
@@ -30798,7 +30819,7 @@ function LogDrawer({
|
|
|
30798
30819
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-h-0 flex-1 space-y-4 overflow-y-auto", children: [
|
|
30799
30820
|
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 }) }),
|
|
30800
30821
|
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: [
|
|
30801
|
-
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,
|
|
30822
|
+
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, _chunkFRS2VO22cjs.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 }),
|
|
30802
30823
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: field.label })
|
|
30803
30824
|
] }, typeof field.label === "string" ? field.label : "")) }),
|
|
30804
30825
|
children
|
|
@@ -30846,7 +30867,7 @@ function LogsPageView({
|
|
|
30846
30867
|
],
|
|
30847
30868
|
[onRefresh]
|
|
30848
30869
|
);
|
|
30849
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30870
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFRS2VO22cjs.PageLayout, { title: "Logs", actions, showHeader, className, children: [
|
|
30850
30871
|
!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: [
|
|
30851
30872
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30852
30873
|
_chunk7RM4NM2Ccjs.Input,
|
|
@@ -31004,8 +31025,8 @@ function LogSourceCell({ device }) {
|
|
|
31004
31025
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
31005
31026
|
const { deviceName, organization } = logSourceLabels(device);
|
|
31006
31027
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-h-[60px] flex-col justify-center gap-1 py-2", children: [
|
|
31007
|
-
(deviceName || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31008
|
-
(organization || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31028
|
+
(deviceName || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { children: deviceName }),
|
|
31029
|
+
(organization || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(organization, () => ( "")) })
|
|
31009
31030
|
] });
|
|
31010
31031
|
}
|
|
31011
31032
|
function LogRowButton({
|
|
@@ -31060,8 +31081,8 @@ function LogsTableView({
|
|
|
31060
31081
|
accessorKey: "logId",
|
|
31061
31082
|
header: logIdHeader ? () => logIdHeader : "Log ID",
|
|
31062
31083
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col justify-center", children: [
|
|
31063
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31064
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31084
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { children: row.original.timestamp }),
|
|
31085
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { variant: "h6", tone: "secondary", children: row.original.logId })
|
|
31065
31086
|
] }),
|
|
31066
31087
|
enableSorting: false,
|
|
31067
31088
|
meta: { width: LOG_COLUMN_WIDTHS.logId, alwaysShowHeader: true }
|
|
@@ -31075,7 +31096,7 @@ function LogsTableView({
|
|
|
31075
31096
|
meta: {
|
|
31076
31097
|
width: LOG_COLUMN_WIDTHS.status,
|
|
31077
31098
|
filter: {
|
|
31078
|
-
options: _nullishCoalesce(_optionalChain([facets, 'optionalAccess',
|
|
31099
|
+
options: _nullishCoalesce(_optionalChain([facets, 'optionalAccess', _679 => _679.severities, 'access', _680 => _680.map, 'call', _681 => _681((severity) => ({
|
|
31079
31100
|
id: severity,
|
|
31080
31101
|
label: severity.charAt(0).toUpperCase() + severity.slice(1).toLowerCase(),
|
|
31081
31102
|
value: severity
|
|
@@ -31099,7 +31120,7 @@ function LogsTableView({
|
|
|
31099
31120
|
width: LOG_COLUMN_WIDTHS.tool,
|
|
31100
31121
|
hideAt: "md",
|
|
31101
31122
|
filter: {
|
|
31102
|
-
options: _nullishCoalesce(_optionalChain([facets, 'optionalAccess',
|
|
31123
|
+
options: _nullishCoalesce(_optionalChain([facets, 'optionalAccess', _682 => _682.toolTypes, 'access', _683 => _683.map, 'call', _684 => _684((toolType) => ({
|
|
31103
31124
|
id: toolType,
|
|
31104
31125
|
label: _chunkBT53NHR7cjs.toToolLabel.call(void 0, toolType),
|
|
31105
31126
|
value: toolType
|
|
@@ -31116,19 +31137,19 @@ function LogsTableView({
|
|
|
31116
31137
|
meta: {
|
|
31117
31138
|
width: LOG_COLUMN_WIDTHS.source,
|
|
31118
31139
|
hideAt: "md",
|
|
31119
|
-
filter: organizationLocked ? void 0 : { options: [..._nullishCoalesce(_optionalChain([facets, 'optionalAccess',
|
|
31140
|
+
filter: organizationLocked ? void 0 : { options: [..._nullishCoalesce(_optionalChain([facets, 'optionalAccess', _685 => _685.organizations]), () => ( []))] }
|
|
31120
31141
|
}
|
|
31121
31142
|
},
|
|
31122
31143
|
{
|
|
31123
31144
|
accessorKey: "description",
|
|
31124
31145
|
header: "Log Details",
|
|
31125
|
-
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31146
|
+
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { lines: 3, className: "text-ods-text-secondary text-h6", children: row.original.description.title }),
|
|
31126
31147
|
enableSorting: false,
|
|
31127
31148
|
meta: { width: LOG_COLUMN_WIDTHS.description, hideAt: "lg" }
|
|
31128
31149
|
},
|
|
31129
31150
|
{
|
|
31130
31151
|
id: "copy",
|
|
31131
|
-
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: _optionalChain([renderCopyAction, 'optionalCall',
|
|
31152
|
+
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: _optionalChain([renderCopyAction, 'optionalCall', _686 => _686(row.original)]) }),
|
|
31132
31153
|
enableSorting: false,
|
|
31133
31154
|
meta: { width: `${LOG_COLUMN_WIDTHS.action} ml-auto`, align: "right" }
|
|
31134
31155
|
},
|
|
@@ -31137,7 +31158,7 @@ function LogsTableView({
|
|
|
31137
31158
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31138
31159
|
LogRowButton,
|
|
31139
31160
|
{
|
|
31140
|
-
onClick: () => _optionalChain([onQuickView, 'optionalCall',
|
|
31161
|
+
onClick: () => _optionalChain([onQuickView, 'optionalCall', _687 => _687(row.original)]),
|
|
31141
31162
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMMLT7ASAcjs.EyeIcon, { className: "h-5 w-5" }),
|
|
31142
31163
|
label: "Quick view"
|
|
31143
31164
|
}
|
|
@@ -31159,14 +31180,14 @@ function LogsTableView({
|
|
|
31159
31180
|
meta: { width: LOG_COLUMN_WIDTHS.action, hideAt: "md", align: "right" }
|
|
31160
31181
|
}
|
|
31161
31182
|
];
|
|
31162
|
-
if (!_optionalChain([hiddenColumns, 'optionalAccess',
|
|
31183
|
+
if (!_optionalChain([hiddenColumns, 'optionalAccess', _688 => _688.length])) return all;
|
|
31163
31184
|
return all.filter((column) => !hiddenColumns.includes(columnId(column)));
|
|
31164
31185
|
}, [facets, getLogHref, organizationLocked, logIdHeader, renderCopyAction, onQuickView, hiddenColumns]);
|
|
31165
31186
|
const filterGroups = _react.useMemo.call(void 0,
|
|
31166
|
-
() => columns.filter((column) => _optionalChain([column, 'access',
|
|
31187
|
+
() => columns.filter((column) => _optionalChain([column, 'access', _689 => _689.meta, 'optionalAccess', _690 => _690.filter, 'optionalAccess', _691 => _691.options])).map((column) => ({
|
|
31167
31188
|
id: columnId(column),
|
|
31168
31189
|
title: typeof column.header === "string" ? column.header : "",
|
|
31169
|
-
options: _optionalChain([column, 'access',
|
|
31190
|
+
options: _optionalChain([column, 'access', _692 => _692.meta, 'optionalAccess', _693 => _693.filter, 'optionalAccess', _694 => _694.options]) || []
|
|
31170
31191
|
})),
|
|
31171
31192
|
[columns]
|
|
31172
31193
|
);
|
|
@@ -31199,14 +31220,14 @@ function LogsTableView({
|
|
|
31199
31220
|
onColumnFiltersChange: handleColumnFiltersChange
|
|
31200
31221
|
});
|
|
31201
31222
|
const hasActiveFilters = Object.values(filters).some((values) => values.length > 0);
|
|
31202
|
-
const hasQuery = Boolean(search) || hasActiveFilters || Boolean(_optionalChain([dateFilter, 'optionalAccess',
|
|
31223
|
+
const hasQuery = Boolean(search) || hasActiveFilters || Boolean(_optionalChain([dateFilter, 'optionalAccess', _695 => _695.range]));
|
|
31203
31224
|
const noRows = !loading && logs.length === 0;
|
|
31204
31225
|
const showEmptyState = !organizationLocked && !hasQuery && noRows;
|
|
31205
31226
|
const scoped = deviceScoped || organizationLocked;
|
|
31206
31227
|
const scopedEmpty = scoped && noRows;
|
|
31207
31228
|
const hideSearch = showEmptyState || scopedEmpty && !hasQuery;
|
|
31208
31229
|
_react.useEffect.call(void 0, () => {
|
|
31209
|
-
_optionalChain([onHideSearchChange, 'optionalCall',
|
|
31230
|
+
_optionalChain([onHideSearchChange, 'optionalCall', _696 => _696(hideSearch)]);
|
|
31210
31231
|
}, [hideSearch, onHideSearchChange]);
|
|
31211
31232
|
if (showEmptyState) {
|
|
31212
31233
|
const emptyProps = deviceScoped ? { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIK3ZQW3Dcjs.ClipboardListIcon, {}), title: EMPTY_TITLE, description: EMPTY_DESCRIPTION } : {
|
|
@@ -31321,22 +31342,22 @@ function ExecutionSourceBadge({ source, className }) {
|
|
|
31321
31342
|
}
|
|
31322
31343
|
function ExecutionTimestampCell({ timestamp, executionId }) {
|
|
31323
31344
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31324
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31325
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31345
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { children: timestamp }),
|
|
31346
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { variant: "h6", tone: "secondary", children: executionId })
|
|
31326
31347
|
] });
|
|
31327
31348
|
}
|
|
31328
31349
|
function ExecutionStatusCell({ status }) {
|
|
31329
31350
|
const presentation = scriptExecutionStatus(status);
|
|
31330
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { label: _nullishCoalesce(_optionalChain([presentation, 'optionalAccess',
|
|
31351
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { label: _nullishCoalesce(_optionalChain([presentation, 'optionalAccess', _697 => _697.label]), () => ( String(_nullishCoalesce(status, () => ( ""))))), variant: _nullishCoalesce(_optionalChain([presentation, 'optionalAccess', _698 => _698.variant]), () => ( "grey")) }) });
|
|
31331
31352
|
}
|
|
31332
31353
|
function ExecutionDeviceCell({ name, organization }) {
|
|
31333
31354
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
31334
31355
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31335
31356
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-1", children: [
|
|
31336
31357
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPTK7GOIIcjs.MonitorIcon, { className: "size-6 shrink-0 text-ods-text-secondary" }),
|
|
31337
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31358
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { children: name }) : name })
|
|
31338
31359
|
] }),
|
|
31339
|
-
(organization || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31360
|
+
(organization || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(organization, () => ( "")) })
|
|
31340
31361
|
] });
|
|
31341
31362
|
}
|
|
31342
31363
|
function ExecutionInitiatorCell({
|
|
@@ -31349,16 +31370,16 @@ function ExecutionInitiatorCell({
|
|
|
31349
31370
|
avatar,
|
|
31350
31371
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
31351
31372
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
31352
|
-
typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31373
|
+
typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { children: name }) : name,
|
|
31353
31374
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExecutionSourceBadge, { source })
|
|
31354
31375
|
] }),
|
|
31355
|
-
scriptName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31376
|
+
scriptName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { variant: "h6", tone: "secondary", children: scriptName })
|
|
31356
31377
|
] })
|
|
31357
31378
|
] });
|
|
31358
31379
|
}
|
|
31359
31380
|
function ExecutionResultCell({ result, empty = null }) {
|
|
31360
31381
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
31361
|
-
return result || loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31382
|
+
return result || loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { lines: 2, children: _nullishCoalesce(result, () => ( "")) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: empty });
|
|
31362
31383
|
}
|
|
31363
31384
|
function ScriptExecutionResult({
|
|
31364
31385
|
result,
|
|
@@ -31378,14 +31399,14 @@ function ScriptExecutionResult({
|
|
|
31378
31399
|
|
|
31379
31400
|
function ScriptNameCell({ name, description }) {
|
|
31380
31401
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31381
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31382
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31402
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { children: name }),
|
|
31403
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { variant: "h6", tone: "secondary", children: description })
|
|
31383
31404
|
] });
|
|
31384
31405
|
}
|
|
31385
31406
|
function ScheduleDateTimeCell({ date, time }) {
|
|
31386
31407
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31387
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31388
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31408
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { children: date }),
|
|
31409
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { variant: "h6", tone: "secondary", children: time })
|
|
31389
31410
|
] });
|
|
31390
31411
|
}
|
|
31391
31412
|
|
|
@@ -31534,7 +31555,7 @@ function ScriptExecutionsTable({
|
|
|
31534
31555
|
[EXECUTION_COLUMNS.result.id]: (row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExecutionResultCell, { result: row.result }),
|
|
31535
31556
|
[EXECUTION_COLUMNS.open.id]: (row) => row.href !== void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OpenInNewTabCell, { href: row.href }) : null
|
|
31536
31557
|
};
|
|
31537
|
-
return layout.filter((column) => renderers[column.id] && !_optionalChain([hideColumns, 'optionalAccess',
|
|
31558
|
+
return layout.filter((column) => renderers[column.id] && !_optionalChain([hideColumns, 'optionalAccess', _699 => _699.includes, 'call', _700 => _700(column.id)])).map((column) => ({
|
|
31538
31559
|
id: column.id,
|
|
31539
31560
|
header: _nullishCoalesce(column.header, () => ( "")),
|
|
31540
31561
|
cell: ({ row }) => renderers[column.id](row.original),
|
|
@@ -31615,7 +31636,7 @@ function ScriptSchedulesTable({
|
|
|
31615
31636
|
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" })),
|
|
31616
31637
|
cell(
|
|
31617
31638
|
SCHEDULE_COLUMNS.dateTime,
|
|
31618
|
-
(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,
|
|
31639
|
+
(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, _chunkFRS2VO22cjs.TruncateText, { tone: "secondary", children: row.trigger }) : null
|
|
31619
31640
|
),
|
|
31620
31641
|
cell(
|
|
31621
31642
|
SCHEDULE_COLUMNS.repeat,
|
|
@@ -31669,7 +31690,7 @@ function scriptShellType(value) {
|
|
|
31669
31690
|
return SCRIPT_SHELL_TYPES.find((shell) => shell.value === value);
|
|
31670
31691
|
}
|
|
31671
31692
|
function scriptShellLabel(value) {
|
|
31672
|
-
return _nullishCoalesce(_optionalChain([scriptShellType, 'call',
|
|
31693
|
+
return _nullishCoalesce(_optionalChain([scriptShellType, 'call', _701 => _701(value), 'optionalAccess', _702 => _702.label]), () => ( value));
|
|
31673
31694
|
}
|
|
31674
31695
|
|
|
31675
31696
|
// src/components/features/scripts/script-shell-badge.tsx
|
|
@@ -31682,10 +31703,10 @@ function ScriptShellBadge({ value, className, iconClassName }) {
|
|
|
31682
31703
|
] });
|
|
31683
31704
|
}
|
|
31684
31705
|
const shell = scriptShellType(value);
|
|
31685
|
-
const Icon = _optionalChain([shell, 'optionalAccess',
|
|
31706
|
+
const Icon = _optionalChain([shell, 'optionalAccess', _703 => _703.icon]);
|
|
31686
31707
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex items-center gap-2", className), children: [
|
|
31687
31708
|
Icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: _chunk7JWFMAQBcjs.cn.call(void 0, "h-5 w-5 text-ods-text-secondary", iconClassName) }),
|
|
31688
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([shell, 'optionalAccess',
|
|
31709
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([shell, 'optionalAccess', _704 => _704.label]), () => ( value)) })
|
|
31689
31710
|
] });
|
|
31690
31711
|
}
|
|
31691
31712
|
|
|
@@ -31739,7 +31760,7 @@ function ScriptsTable({
|
|
|
31739
31760
|
initialsClassName: "text-ods-text-secondary"
|
|
31740
31761
|
}
|
|
31741
31762
|
),
|
|
31742
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31763
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { children: row.author.name }) })
|
|
31743
31764
|
] }) : null
|
|
31744
31765
|
)
|
|
31745
31766
|
];
|
|
@@ -32037,7 +32058,7 @@ function ScheduleIntervalInput(props) {
|
|
|
32037
32058
|
onBlur: () => {
|
|
32038
32059
|
focused.current = false;
|
|
32039
32060
|
setText(value === null ? "" : String(value));
|
|
32040
|
-
_optionalChain([onBlur, 'optionalCall',
|
|
32061
|
+
_optionalChain([onBlur, 'optionalCall', _705 => _705()]);
|
|
32041
32062
|
},
|
|
32042
32063
|
onChange: (e) => {
|
|
32043
32064
|
const raw = e.target.value;
|
|
@@ -32086,10 +32107,21 @@ function ReconnectWindowFields({
|
|
|
32086
32107
|
invalid
|
|
32087
32108
|
}
|
|
32088
32109
|
),
|
|
32089
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
32090
|
-
|
|
32091
|
-
|
|
32092
|
-
|
|
32110
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
32111
|
+
_chunkFRS2VO22cjs.Select,
|
|
32112
|
+
{
|
|
32113
|
+
value: unit,
|
|
32114
|
+
onValueChange: (value) => {
|
|
32115
|
+
const next = DURATION_UNIT_VALUES.find((option) => option === value);
|
|
32116
|
+
if (next) onUnitChange(next);
|
|
32117
|
+
},
|
|
32118
|
+
disabled,
|
|
32119
|
+
children: [
|
|
32120
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectTrigger, { className: controlWidth, "aria-label": "Stop retry after unit", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectValue, {}) }),
|
|
32121
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectContent, { children: DURATION_UNIT_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
32122
|
+
]
|
|
32123
|
+
}
|
|
32124
|
+
)
|
|
32093
32125
|
] });
|
|
32094
32126
|
}
|
|
32095
32127
|
function ScheduleOfflineFields({ showErrors, disabled = false }) {
|
|
@@ -32100,7 +32132,7 @@ function ScheduleOfflineFields({ showErrors, disabled = false }) {
|
|
|
32100
32132
|
const { field: intervalField, fieldState: intervalState } = _reacthookform.useController.call(void 0, { control, name: "reconnectInterval" });
|
|
32101
32133
|
const { field: unitField } = _reacthookform.useController.call(void 0, { control, name: "reconnectUnit" });
|
|
32102
32134
|
const windowDisabled = disabled || !isRetryOnReconnect(behaviorField.value);
|
|
32103
|
-
const intervalError = showErrors ? _optionalChain([intervalState, 'access',
|
|
32135
|
+
const intervalError = showErrors ? _optionalChain([intervalState, 'access', _706 => _706.error, 'optionalAccess', _707 => _707.message]) : void 0;
|
|
32104
32136
|
const handleUnitChange = (next) => {
|
|
32105
32137
|
unitField.onChange(next);
|
|
32106
32138
|
const snapped = snapReconnectInterval(intervalField.value, next);
|
|
@@ -32156,7 +32188,7 @@ function ScheduleOfflineFields({ showErrors, disabled = false }) {
|
|
|
32156
32188
|
options
|
|
32157
32189
|
}
|
|
32158
32190
|
),
|
|
32159
|
-
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,
|
|
32191
|
+
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, _chunkFRS2VO22cjs.TruncateText, { variant: "h6", className: "text-ods-error", children: intervalError }) })
|
|
32160
32192
|
]
|
|
32161
32193
|
}
|
|
32162
32194
|
) }) })
|
|
@@ -32245,13 +32277,13 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
|
|
|
32245
32277
|
const [flipTick, setFlipTick] = _react.useState.call(void 0, 0);
|
|
32246
32278
|
const flipTimer = _react.useRef.call(void 0, null);
|
|
32247
32279
|
const readItems = _react.useCallback.call(void 0,
|
|
32248
|
-
() => [..._nullishCoalesce(_optionalChain([listRef, 'access',
|
|
32280
|
+
() => [..._nullishCoalesce(_optionalChain([listRef, 'access', _708 => _708.current, 'optionalAccess', _709 => _709.querySelectorAll, 'call', _710 => _710(`[${SORTABLE_ITEM_ATTRIBUTE}]`)]), () => ( []))],
|
|
32249
32281
|
[]
|
|
32250
32282
|
);
|
|
32251
32283
|
const reorder = _react.useCallback.call(void 0,
|
|
32252
32284
|
(from, to) => {
|
|
32253
32285
|
if (from === to) return;
|
|
32254
|
-
const label = _nullishCoalesce(_optionalChain([getItemLabelRef, 'access',
|
|
32286
|
+
const label = _nullishCoalesce(_optionalChain([getItemLabelRef, 'access', _711 => _711.current, 'optionalCall', _712 => _712(from)]), () => ( "Item"));
|
|
32255
32287
|
setAnnouncement(`${label} moved to position ${to + 1} of ${readItems().length}.`);
|
|
32256
32288
|
onReorderRef.current(from, to);
|
|
32257
32289
|
},
|
|
@@ -32339,7 +32371,7 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
|
|
|
32339
32371
|
moving.push(item);
|
|
32340
32372
|
}
|
|
32341
32373
|
if (moving.length === 0) return;
|
|
32342
|
-
void _optionalChain([listRef, 'access',
|
|
32374
|
+
void _optionalChain([listRef, 'access', _713 => _713.current, 'optionalAccess', _714 => _714.offsetHeight]);
|
|
32343
32375
|
for (const item of moving) {
|
|
32344
32376
|
item.style.transition = `transform ${DROP_MS}ms ${EASING}`;
|
|
32345
32377
|
item.style.transform = "";
|
|
@@ -32506,8 +32538,8 @@ function SortableMoveButtons({ index, count, label, className }) {
|
|
|
32506
32538
|
if (to < 0 || to >= count) return;
|
|
32507
32539
|
reorder(index, to);
|
|
32508
32540
|
requestAnimationFrame(() => {
|
|
32509
|
-
if (step === -1 && to === 0) _optionalChain([downRef, 'access',
|
|
32510
|
-
if (step === 1 && to === count - 1) _optionalChain([upRef, 'access',
|
|
32541
|
+
if (step === -1 && to === 0) _optionalChain([downRef, 'access', _715 => _715.current, 'optionalAccess', _716 => _716.focus, 'call', _717 => _717()]);
|
|
32542
|
+
if (step === 1 && to === count - 1) _optionalChain([upRef, 'access', _718 => _718.current, 'optionalAccess', _719 => _719.focus, 'call', _720 => _720()]);
|
|
32511
32543
|
});
|
|
32512
32544
|
};
|
|
32513
32545
|
const subject = _nullishCoalesce(label, () => ( "item"));
|
|
@@ -32555,7 +32587,7 @@ function useSortableItem() {
|
|
|
32555
32587
|
const [handle, setHandle] = _react.useState.call(void 0, null);
|
|
32556
32588
|
const [isDragging, setIsDragging] = _react.useState.call(void 0, false);
|
|
32557
32589
|
const itemRef = _react.useCallback.call(void 0, (node) => {
|
|
32558
|
-
_optionalChain([node, 'optionalAccess',
|
|
32590
|
+
_optionalChain([node, 'optionalAccess', _721 => _721.setAttribute, 'call', _722 => _722(SORTABLE_ITEM_ATTRIBUTE, "")]);
|
|
32559
32591
|
setItem(node);
|
|
32560
32592
|
}, []);
|
|
32561
32593
|
_react.useEffect.call(void 0, () => {
|
|
@@ -32585,7 +32617,7 @@ function useSortableItem() {
|
|
|
32585
32617
|
if (from < 0 || to < 0 || to >= items.length) return;
|
|
32586
32618
|
event.preventDefault();
|
|
32587
32619
|
reorder(from, to);
|
|
32588
|
-
requestAnimationFrame(() => _optionalChain([handle, 'optionalAccess',
|
|
32620
|
+
requestAnimationFrame(() => _optionalChain([handle, 'optionalAccess', _723 => _723.focus, 'call', _724 => _724()]));
|
|
32589
32621
|
},
|
|
32590
32622
|
[inert, readItems, reorder, handle]
|
|
32591
32623
|
);
|
|
@@ -32608,7 +32640,7 @@ function ScheduleScriptPickerCard({
|
|
|
32608
32640
|
}) {
|
|
32609
32641
|
const { control, setValue, watch } = _reacthookform.useFormContext.call(void 0, );
|
|
32610
32642
|
const selected = watch(`scripts.${index}`);
|
|
32611
|
-
const runParamsLocked = disabled || !_optionalChain([selected, 'optionalAccess',
|
|
32643
|
+
const runParamsLocked = disabled || !_optionalChain([selected, 'optionalAccess', _725 => _725.scriptId]);
|
|
32612
32644
|
const { itemRef, dragHandleProps, isDragging, dragAndDropEnabled } = useSortableItem();
|
|
32613
32645
|
const isMdUp = _chunkAQXKXZWBcjs.useContentMdUp.call(void 0, );
|
|
32614
32646
|
const handleScriptPick = (row) => {
|
|
@@ -32642,7 +32674,7 @@ function ScheduleScriptPickerCard({
|
|
|
32642
32674
|
type: "button",
|
|
32643
32675
|
...dragHandleProps,
|
|
32644
32676
|
disabled,
|
|
32645
|
-
"aria-label": `Reorder ${_optionalChain([selected, 'optionalAccess',
|
|
32677
|
+
"aria-label": `Reorder ${_optionalChain([selected, 'optionalAccess', _726 => _726.name]) || `script ${index + 1}`}`,
|
|
32646
32678
|
className: `shrink-0 ${isDragging ? "cursor-grabbing" : "cursor-grab"}`,
|
|
32647
32679
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJAWIFYB2cjs.DraggerIcon, { size: 24 })
|
|
32648
32680
|
}
|
|
@@ -32653,18 +32685,18 @@ function ScheduleScriptPickerCard({
|
|
|
32653
32685
|
name: `scripts.${index}.scriptId`,
|
|
32654
32686
|
control,
|
|
32655
32687
|
render: ({ fieldState }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: renderScriptSearch({
|
|
32656
|
-
scriptId: _nullishCoalesce(_optionalChain([selected, 'optionalAccess',
|
|
32657
|
-
name: _nullishCoalesce(_optionalChain([selected, 'optionalAccess',
|
|
32688
|
+
scriptId: _nullishCoalesce(_optionalChain([selected, 'optionalAccess', _727 => _727.scriptId]), () => ( "")),
|
|
32689
|
+
name: _nullishCoalesce(_optionalChain([selected, 'optionalAccess', _728 => _728.name]), () => ( "")),
|
|
32658
32690
|
supportedPlatforms,
|
|
32659
32691
|
onPick: handleScriptPick,
|
|
32660
32692
|
disabled,
|
|
32661
|
-
error: showErrors ? _optionalChain([fieldState, 'access',
|
|
32693
|
+
error: showErrors ? _optionalChain([fieldState, 'access', _729 => _729.error, 'optionalAccess', _730 => _730.message]) : void 0,
|
|
32662
32694
|
invalid: showErrors && !!fieldState.error
|
|
32663
32695
|
}) })
|
|
32664
32696
|
}
|
|
32665
32697
|
),
|
|
32666
32698
|
!dragAndDropEnabled && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
32667
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortableMoveButtons, { index, count, label: _optionalChain([selected, 'optionalAccess',
|
|
32699
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortableMoveButtons, { index, count, label: _optionalChain([selected, 'optionalAccess', _731 => _731.name]) || `script ${index + 1}` }),
|
|
32668
32700
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32669
32701
|
_chunkAHBTZ7DNcjs.Button,
|
|
32670
32702
|
{
|
|
@@ -32705,7 +32737,7 @@ function ScheduleScriptPickerCard({
|
|
|
32705
32737
|
onChange: (e) => field.onChange(e.target.value ? Number(e.target.value) : UNSET_TIMEOUT),
|
|
32706
32738
|
disabled: runParamsLocked,
|
|
32707
32739
|
endAdornment: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h6", children: "Seconds" }),
|
|
32708
|
-
error: showErrors ? _optionalChain([fieldState, 'access',
|
|
32740
|
+
error: showErrors ? _optionalChain([fieldState, 'access', _732 => _732.error, 'optionalAccess', _733 => _733.message]) : void 0,
|
|
32709
32741
|
invalid: showErrors && !!fieldState.error
|
|
32710
32742
|
}
|
|
32711
32743
|
)
|
|
@@ -32959,7 +32991,7 @@ function ScheduleTimingFields({
|
|
|
32959
32991
|
fromDate: minDate,
|
|
32960
32992
|
disabled: fieldsDisabled,
|
|
32961
32993
|
className: "w-full",
|
|
32962
|
-
error: _nullishCoalesce(dateError, () => ( (showErrors ? _optionalChain([fieldState, 'access',
|
|
32994
|
+
error: _nullishCoalesce(dateError, () => ( (showErrors ? _optionalChain([fieldState, 'access', _734 => _734.error, 'optionalAccess', _735 => _735.message]) : void 0))),
|
|
32963
32995
|
invalid: !!dateError || showErrors && !!fieldState.error
|
|
32964
32996
|
}
|
|
32965
32997
|
),
|
|
@@ -32991,24 +33023,24 @@ function ScheduleTimingFields({
|
|
|
32991
33023
|
// `''` reads as "no selection" to Radix, so the placeholder shows
|
|
32992
33024
|
// until a slot is picked — a date at midnight no longer
|
|
32993
33025
|
// masquerades as a chosen 12:00 AM.
|
|
32994
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33026
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFRS2VO22cjs.Select, { value: field.value, onValueChange: field.onChange, disabled: fieldsDisabled, children: [
|
|
32995
33027
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32996
|
-
|
|
33028
|
+
_chunkFRS2VO22cjs.SelectTrigger,
|
|
32997
33029
|
{
|
|
32998
33030
|
className: "w-full",
|
|
32999
|
-
error: _nullishCoalesce(pastTimeError, () => ( (showErrors ? _optionalChain([fieldState, 'access',
|
|
33031
|
+
error: _nullishCoalesce(pastTimeError, () => ( (showErrors ? _optionalChain([fieldState, 'access', _736 => _736.error, 'optionalAccess', _737 => _737.message]) : void 0))),
|
|
33000
33032
|
invalid: !!pastTimeError || showErrors && !!fieldState.error,
|
|
33001
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33033
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectValue, { placeholder: "Select time" })
|
|
33002
33034
|
}
|
|
33003
33035
|
),
|
|
33004
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33036
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectContent, { children: timeSlots.length === 0 ? (
|
|
33005
33037
|
// Deliberately NOT a `SelectItem` — there is nothing here
|
|
33006
33038
|
// to select, and a selectable row would put a bogus value
|
|
33007
33039
|
// in the form. It replaces a popup that opened blank; the
|
|
33008
33040
|
// Date field carries the same sentence for whoever never
|
|
33009
33041
|
// opens this one.
|
|
33010
33042
|
/* @__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 })
|
|
33011
|
-
) : timeSlots.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33043
|
+
) : timeSlots.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
33012
33044
|
] })
|
|
33013
33045
|
)
|
|
33014
33046
|
}
|
|
@@ -33022,14 +33054,17 @@ function ScheduleTimingFields({
|
|
|
33022
33054
|
name: "timeReference",
|
|
33023
33055
|
control,
|
|
33024
33056
|
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33025
|
-
|
|
33057
|
+
_chunkFRS2VO22cjs.Select,
|
|
33026
33058
|
{
|
|
33027
33059
|
value: field.value,
|
|
33028
|
-
onValueChange: (
|
|
33060
|
+
onValueChange: (value) => {
|
|
33061
|
+
const next = Object.values(SCHEDULE_TIME_REFERENCE).find((reference) => reference === value);
|
|
33062
|
+
if (next) handleTimeReferenceChange(field.onChange, next);
|
|
33063
|
+
},
|
|
33029
33064
|
disabled: fieldsDisabled,
|
|
33030
33065
|
children: [
|
|
33031
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33032
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33066
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectTrigger, { className: "w-full", "aria-label": "Timezone", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectValue, {}) }),
|
|
33067
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectContent, { children: SCHEDULE_TIME_REFERENCE_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
33033
33068
|
]
|
|
33034
33069
|
}
|
|
33035
33070
|
)
|
|
@@ -33076,7 +33111,7 @@ function ScheduleTimingFields({
|
|
|
33076
33111
|
recheckReconnectWindow();
|
|
33077
33112
|
},
|
|
33078
33113
|
disabled: fieldsDisabled || !repeatEnabled,
|
|
33079
|
-
error: showErrors ? _optionalChain([fieldState, 'access',
|
|
33114
|
+
error: showErrors ? _optionalChain([fieldState, 'access', _738 => _738.error, 'optionalAccess', _739 => _739.message]) : void 0,
|
|
33080
33115
|
invalid: showErrors && !!fieldState.error
|
|
33081
33116
|
}
|
|
33082
33117
|
)
|
|
@@ -33089,10 +33124,12 @@ function ScheduleTimingFields({
|
|
|
33089
33124
|
name: "repeatUnit",
|
|
33090
33125
|
control,
|
|
33091
33126
|
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33092
|
-
|
|
33127
|
+
_chunkFRS2VO22cjs.Select,
|
|
33093
33128
|
{
|
|
33094
33129
|
value: field.value,
|
|
33095
|
-
onValueChange: (
|
|
33130
|
+
onValueChange: (value) => {
|
|
33131
|
+
const next = DURATION_UNIT_VALUES.find((unit) => unit === value);
|
|
33132
|
+
if (!next) return;
|
|
33096
33133
|
field.onChange(next);
|
|
33097
33134
|
const snapped = snapRepeatInterval(getValues("repeatInterval"), next);
|
|
33098
33135
|
if (snapped !== getValues("repeatInterval")) setValue("repeatInterval", snapped);
|
|
@@ -33100,8 +33137,8 @@ function ScheduleTimingFields({
|
|
|
33100
33137
|
},
|
|
33101
33138
|
disabled: fieldsDisabled || !repeatEnabled,
|
|
33102
33139
|
children: [
|
|
33103
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33104
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33140
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectValue, {}) }),
|
|
33141
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectContent, { children: DURATION_UNIT_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
33105
33142
|
]
|
|
33106
33143
|
}
|
|
33107
33144
|
)
|
|
@@ -33161,7 +33198,7 @@ function ScheduleFormFields({
|
|
|
33161
33198
|
onChange: field.onChange,
|
|
33162
33199
|
disabled,
|
|
33163
33200
|
className: "w-full",
|
|
33164
|
-
error: showErrors ? _optionalChain([fieldState, 'access',
|
|
33201
|
+
error: showErrors ? _optionalChain([fieldState, 'access', _740 => _740.error, 'optionalAccess', _741 => _741.message]) : void 0,
|
|
33165
33202
|
invalid: showErrors && !!fieldState.error
|
|
33166
33203
|
}
|
|
33167
33204
|
)
|
|
@@ -33190,7 +33227,7 @@ function ScheduleFormFields({
|
|
|
33190
33227
|
platform.id
|
|
33191
33228
|
);
|
|
33192
33229
|
}) }),
|
|
33193
|
-
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,
|
|
33230
|
+
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, _chunkFRS2VO22cjs.TruncateText, { variant: "h6", className: "text-ods-error", children: _nullishCoalesce(formState.errors.supportedPlatforms.message, () => ( "")) }) })
|
|
33194
33231
|
]
|
|
33195
33232
|
}
|
|
33196
33233
|
);
|
|
@@ -33283,7 +33320,7 @@ function ScheduleScriptSearchField({
|
|
|
33283
33320
|
invalid = false
|
|
33284
33321
|
}) {
|
|
33285
33322
|
const handleBlur = (e) => {
|
|
33286
|
-
if (!e.currentTarget.contains(e.relatedTarget)) _optionalChain([onClose, 'optionalCall',
|
|
33323
|
+
if (!e.currentTarget.contains(e.relatedTarget)) _optionalChain([onClose, 'optionalCall', _742 => _742()]);
|
|
33287
33324
|
};
|
|
33288
33325
|
const options = scripts.map((s) => ({ label: s.name, value: s.id }));
|
|
33289
33326
|
if (scriptId && !options.some((o) => o.value === scriptId)) {
|
|
@@ -33292,7 +33329,7 @@ function ScheduleScriptSearchField({
|
|
|
33292
33329
|
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: [
|
|
33293
33330
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD47ZGOUcjs.Label, { className: "text-h4", children: "Select Script" }),
|
|
33294
33331
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33295
|
-
|
|
33332
|
+
_chunkFRS2VO22cjs.Autocomplete,
|
|
33296
33333
|
{
|
|
33297
33334
|
options,
|
|
33298
33335
|
value: scriptId || null,
|
|
@@ -33307,8 +33344,8 @@ function ScheduleScriptSearchField({
|
|
|
33307
33344
|
error,
|
|
33308
33345
|
invalid,
|
|
33309
33346
|
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: [
|
|
33310
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33311
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScriptPlatformIcons, { platforms: _nullishCoalesce(_optionalChain([scripts, 'access',
|
|
33347
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { className: isSelected ? "text-ods-accent" : void 0, children: option.label }) }),
|
|
33348
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScriptPlatformIcons, { platforms: _nullishCoalesce(_optionalChain([scripts, 'access', _743 => _743.find, 'call', _744 => _744((s) => s.id === option.value), 'optionalAccess', _745 => _745.supportedPlatforms]), () => ( [])) })
|
|
33312
33349
|
] })
|
|
33313
33350
|
}
|
|
33314
33351
|
)
|
|
@@ -33358,10 +33395,10 @@ function KnowledgeBaseNameCell({ item }) {
|
|
|
33358
33395
|
/* @__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" }) }),
|
|
33359
33396
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
33360
33397
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
33361
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33398
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { children: item.name }) }),
|
|
33362
33399
|
tagStatus && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { variant: KNOWLEDGE_BASE_STATUS_VARIANT[tagStatus], label: tagStatus, className: "shrink-0" })
|
|
33363
33400
|
] }),
|
|
33364
|
-
item.type === "ARTICLE" && (item.summary || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33401
|
+
item.type === "ARTICLE" && (item.summary || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(item.summary, () => ( "")) })
|
|
33365
33402
|
] })
|
|
33366
33403
|
] });
|
|
33367
33404
|
}
|
|
@@ -33483,7 +33520,7 @@ function KnowledgeBaseArticleView({
|
|
|
33483
33520
|
className = "px-[var(--spacing-system-l)] pb-[var(--spacing-system-l)]"
|
|
33484
33521
|
}) {
|
|
33485
33522
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33486
|
-
|
|
33523
|
+
_chunkFRS2VO22cjs.PageLayout,
|
|
33487
33524
|
{
|
|
33488
33525
|
title,
|
|
33489
33526
|
backButton: onBack ? { label: "Back", onClick: onBack } : void 0,
|
|
@@ -33506,12 +33543,12 @@ function KnowledgeBaseArticleView({
|
|
|
33506
33543
|
}
|
|
33507
33544
|
),
|
|
33508
33545
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
33509
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33546
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { className: author.deleted ? "text-ods-error" : void 0, children: _nullishCoalesce(author.name, () => ( "Unknown")) }),
|
|
33510
33547
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Author" })
|
|
33511
33548
|
] })
|
|
33512
33549
|
] }),
|
|
33513
33550
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 min-w-0 flex-col justify-center", children: [
|
|
33514
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33551
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { children: updatedLabel }),
|
|
33515
33552
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Updated" })
|
|
33516
33553
|
] }),
|
|
33517
33554
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -33589,7 +33626,7 @@ function TicketStatusConfigList({
|
|
|
33589
33626
|
) }) }) }) })
|
|
33590
33627
|
);
|
|
33591
33628
|
}
|
|
33592
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortableList, { onReorder, getItemLabel, className: _chunk7JWFMAQBcjs.cn.call(void 0, LIST_CLASS, className), children: items.map((item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortableRow, { index, count: items.length, label: _optionalChain([getItemLabel, 'optionalCall',
|
|
33629
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortableList, { onReorder, getItemLabel, className: _chunk7JWFMAQBcjs.cn.call(void 0, LIST_CLASS, className), children: items.map((item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortableRow, { index, count: items.length, label: _optionalChain([getItemLabel, 'optionalCall', _746 => _746(index)]), children: (args) => renderRow(item, args) }, item.id)) });
|
|
33593
33630
|
}
|
|
33594
33631
|
function SortableRow({
|
|
33595
33632
|
index,
|
|
@@ -33684,12 +33721,12 @@ function ConversationCard({
|
|
|
33684
33721
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
33685
33722
|
CARD_FRAME_CLASS,
|
|
33686
33723
|
selection && "cursor-pointer transition-colors hover:border-ods-border-hover",
|
|
33687
|
-
_optionalChain([selection, 'optionalAccess',
|
|
33724
|
+
_optionalChain([selection, 'optionalAccess', _747 => _747.pressed]) && "border-ods-accent ring-1 ring-ods-accent",
|
|
33688
33725
|
className
|
|
33689
33726
|
),
|
|
33690
33727
|
style: tint,
|
|
33691
33728
|
onClick: selection && ((event) => {
|
|
33692
|
-
if (event.button !== 0 || _optionalChain([window, 'access',
|
|
33729
|
+
if (event.button !== 0 || _optionalChain([window, 'access', _748 => _748.getSelection, 'call', _749 => _749(), 'optionalAccess', _750 => _750.toString, 'call', _751 => _751()])) return;
|
|
33693
33730
|
if (!_chunkBT53NHR7cjs.isOwnClick.call(void 0, event.target, event.currentTarget, { controls: true })) return;
|
|
33694
33731
|
selection.onToggle();
|
|
33695
33732
|
}),
|
|
@@ -33731,7 +33768,7 @@ function ConversationCard({
|
|
|
33731
33768
|
),
|
|
33732
33769
|
context && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CONTEXT_BLOCK_CLASS, children: [
|
|
33733
33770
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: CONTEXT_LABEL_CLASS, children: context.label }),
|
|
33734
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: CONTEXT_TEXT_CLASS, style: partLinesStyle(_optionalChain([lines, 'optionalAccess',
|
|
33771
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: CONTEXT_TEXT_CLASS, style: partLinesStyle(_optionalChain([lines, 'optionalAccess', _752 => _752.context])), children: context.text })
|
|
33735
33772
|
] }),
|
|
33736
33773
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33737
33774
|
_chunkBT53NHR7cjs.ChatTurn,
|
|
@@ -33742,7 +33779,7 @@ function ConversationCard({
|
|
|
33742
33779
|
time: responder.time,
|
|
33743
33780
|
className: ANSWER_BLOCK_CLASS,
|
|
33744
33781
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: OUTCOME_ROW_CLASS, children: [
|
|
33745
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: OUTCOME_TEXT_CLASS, style: partLinesStyle(_optionalChain([lines, 'optionalAccess',
|
|
33782
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: OUTCOME_TEXT_CLASS, style: partLinesStyle(_optionalChain([lines, 'optionalAccess', _753 => _753.outcome])), children: outcome }),
|
|
33746
33783
|
outcomeAside,
|
|
33747
33784
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: OUTCOME_CHECK_CLASS, style: OUTCOME_CHECK_STYLE, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHFNBMV5Mcjs.CheckCircleIcon, { size: 16, className: "text-ods-success", "aria-hidden": true }) })
|
|
33748
33785
|
] })
|
|
@@ -33771,8 +33808,8 @@ function ConversationCardSkeleton({
|
|
|
33771
33808
|
announce = true,
|
|
33772
33809
|
className
|
|
33773
33810
|
}) {
|
|
33774
|
-
const contextLines = partLines(_optionalChain([lines, 'optionalAccess',
|
|
33775
|
-
const outcomeLines = partLines(_optionalChain([lines, 'optionalAccess',
|
|
33811
|
+
const contextLines = partLines(_optionalChain([lines, 'optionalAccess', _754 => _754.context]));
|
|
33812
|
+
const outcomeLines = partLines(_optionalChain([lines, 'optionalAccess', _755 => _755.outcome]));
|
|
33776
33813
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkLKQ33CMYcjs.LoadingRegion, { label, announce, className: _chunk7JWFMAQBcjs.cn.call(void 0, CARD_FRAME_CLASS, className), children: [
|
|
33777
33814
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33778
33815
|
RequesterRow,
|
|
@@ -33884,7 +33921,7 @@ function Highlights({ items, className }) {
|
|
|
33884
33921
|
if (items.length === 0) return null;
|
|
33885
33922
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "grid grid-cols-1 gap-2", className), children: items.slice(0, HIGHLIGHTS_LIMIT).map((text) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "li", { "data-loading-item": true, className: HIGHLIGHT_ROW_CLASS, children: [
|
|
33886
33923
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { size: HIGHLIGHT_ICON_PX, className: "shrink-0 text-ods-flamingo-cyan" }),
|
|
33887
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33924
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { variant: "h6", triggerClassName: "flex-1", children: text })
|
|
33888
33925
|
] }, text)) });
|
|
33889
33926
|
}
|
|
33890
33927
|
function Example({
|
|
@@ -33917,19 +33954,19 @@ function Example({
|
|
|
33917
33954
|
),
|
|
33918
33955
|
children: [
|
|
33919
33956
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 gap-2.5", children: [
|
|
33920
|
-
mark(_nullishCoalesce(_optionalChain([requester, 'optionalAccess',
|
|
33957
|
+
mark(_nullishCoalesce(_optionalChain([requester, 'optionalAccess', _756 => _756.mark]), () => ( requesterMark))),
|
|
33921
33958
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
33922
|
-
who(_nullishCoalesce(_optionalChain([requester, 'optionalAccess',
|
|
33923
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33959
|
+
who(_nullishCoalesce(_optionalChain([requester, 'optionalAccess', _757 => _757.name]), () => ( labels.requester)), _nullishCoalesce(_optionalChain([requester, 'optionalAccess', _758 => _758.note]), () => ( labels.requesterNote))),
|
|
33960
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { lines: 2, variant: "h4", className: "min-h-[2lh]", children: `\u201C${example.request}\u201D` })
|
|
33924
33961
|
] })
|
|
33925
33962
|
] }),
|
|
33926
33963
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 gap-2.5 border-t border-ods-border pt-3", children: [
|
|
33927
|
-
mark(_nullishCoalesce(_optionalChain([responder, 'optionalAccess',
|
|
33964
|
+
mark(_nullishCoalesce(_optionalChain([responder, 'optionalAccess', _759 => _759.mark]), () => ( responderMark))),
|
|
33928
33965
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
33929
|
-
who(_nullishCoalesce(_optionalChain([responder, 'optionalAccess',
|
|
33966
|
+
who(_nullishCoalesce(_optionalChain([responder, 'optionalAccess', _760 => _760.name]), () => ( labels.responder)), _nullishCoalesce(_optionalChain([responder, 'optionalAccess', _761 => _761.note]), () => ( labels.responderNote))),
|
|
33930
33967
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-start gap-2", children: [
|
|
33931
33968
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { size: 16, className: "mt-0.5 shrink-0 text-ods-flamingo-cyan" }),
|
|
33932
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33969
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { lines: 2, variant: "h6", tone: "secondary", className: "min-h-[2lh]", triggerClassName: "flex-1", children: example.outcome })
|
|
33933
33970
|
] })
|
|
33934
33971
|
] })
|
|
33935
33972
|
] })
|
|
@@ -34068,13 +34105,13 @@ function CapabilityExplorer({
|
|
|
34068
34105
|
item.iconName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, JOB_ICON_TILE_CLASS, "text-ods-flamingo-cyan"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPRCGRDHVcjs.EntityIcon, { icon: { name: item.iconName }, size: 18 }) }),
|
|
34069
34106
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
34070
34107
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "h3", { className: "flex min-w-0 items-center gap-2 text-ods-text-primary text-h4", children: [
|
|
34071
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34108
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { as: "span", variant: "h4", triggerClassName: "flex-1", children: item.title }),
|
|
34072
34109
|
item.badge
|
|
34073
34110
|
] }),
|
|
34074
|
-
item.caption && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34111
|
+
item.caption && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { variant: "h6", tone: "secondary", children: item.caption })
|
|
34075
34112
|
] })
|
|
34076
34113
|
] }),
|
|
34077
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34114
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { lines: 3, variant: "h6", tone: "secondary", className: "min-h-[3lh]", children: item.intro }),
|
|
34078
34115
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0 overflow-hidden rounded-lg border border-ods-border", children: renderScreen(item, { compact: true }) }),
|
|
34079
34116
|
item.example && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34080
34117
|
Example,
|
|
@@ -34103,7 +34140,7 @@ function CapabilityExplorer({
|
|
|
34103
34140
|
if (next === null) return;
|
|
34104
34141
|
event.preventDefault();
|
|
34105
34142
|
onActiveChange(items[next].id);
|
|
34106
|
-
_optionalChain([listRef, 'access',
|
|
34143
|
+
_optionalChain([listRef, 'access', _762 => _762.current, 'optionalAccess', _763 => _763.querySelectorAll, 'call', _764 => _764('[role="tab"]'), 'access', _765 => _765[next], 'optionalAccess', _766 => _766.focus, 'call', _767 => _767()]);
|
|
34107
34144
|
};
|
|
34108
34145
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
34109
34146
|
"div",
|
|
@@ -34191,8 +34228,8 @@ function CapabilityExplorer({
|
|
|
34191
34228
|
),
|
|
34192
34229
|
children: [
|
|
34193
34230
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: PANEL_INTRO_CLASS, children: [
|
|
34194
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34195
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34231
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { lines: 2, variant: "h2", className: "mb-2", children: active.title }),
|
|
34232
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { lines: 3, variant: "h4", tone: "secondary", className: "min-h-[3lh]", children: active.intro }),
|
|
34196
34233
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Highlights, { items: _nullishCoalesce(active.highlights, () => ( [])), className: "mt-auto" })
|
|
34197
34234
|
] }),
|
|
34198
34235
|
active.example && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -34903,4 +34940,5 @@ function CapabilityExplorer({
|
|
|
34903
34940
|
|
|
34904
34941
|
|
|
34905
34942
|
|
|
34906
|
-
exports.AllowedDomainsInput = AllowedDomainsInput; exports.ANNOUNCEMENT_BAR_HEIGHT_CLASS = ANNOUNCEMENT_BAR_HEIGHT_CLASS; exports.AnnouncementBarView = AnnouncementBarView; exports.timezoneLabel = timezoneLabel; exports.timezoneOptions = timezoneOptions; exports.TimezoneSelect = TimezoneSelect; exports.CheckboxBlock = CheckboxBlock; exports.CheckboxWithDescription = CheckboxWithDescription; exports.DatePickerCalendar = DatePickerCalendar; exports.DatePicker = DatePicker; exports.DatePickerInput = DatePickerInput; exports.DatePickerInputSimple = DatePickerInputSimple; exports.DateFilterPanel = DateFilterPanel; exports.DateFilterMenu = DateFilterMenu; exports.DurationInput = DurationInput; exports.HoneypotField = HoneypotField; exports.JsonDetailList = JsonDetailList; exports.PROGRESS_BAR_HEIGHT = PROGRESS_BAR_HEIGHT; exports.ProgressBar = ProgressBar; exports.InfoCard = InfoCard; exports.InfoRow = InfoRow; exports.SearchableSelect = SearchableSelect; exports.AssigneeDropdown = AssigneeDropdown; exports.InfoSection = InfoSection; exports.InputTrigger = InputTrigger; exports.MediaTypeSelector = MediaTypeSelector; exports.noDataIconClasses = noDataIconClasses; exports.noDataActionsVariants = noDataActionsVariants; exports.NoDataAction = NoDataAction; exports.NoDataActions = NoDataActions; exports.NoDataMessage = NoDataMessage; exports.NoData = NoData; exports.PageLoader = PageLoader; exports.CompactPageLoader = CompactPageLoader; exports.RadioGroup = RadioGroup; exports.RadioGroupItem = RadioGroupItem; exports.RADIO_GROUP_BLOCK_SKELETON_OPTIONS = RADIO_GROUP_BLOCK_SKELETON_OPTIONS; exports.RadioGroupBlock = RadioGroupBlock; exports.Switch = Switch; exports.TagSelectDropdown = TagSelectDropdown; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.TAGS_INPUT_CLASS = TAGS_INPUT_CLASS; exports.TAGS_INPUT_ROW_CLASS = TAGS_INPUT_ROW_CLASS; exports.TagsInput = TagsInput; exports.TagsManager = TagsManager; exports.TEXTAREA_BOX_CLASS = TEXTAREA_BOX_CLASS; exports.textareaBoxHeight = textareaBoxHeight; exports.Textarea = Textarea; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.AspectRatio = AspectRatio; exports.Dialog = Dialog; exports.DialogTrigger = DialogTrigger; exports.DialogPortal = DialogPortal; exports.DialogClose = DialogClose; exports.DialogOverlay = DialogOverlay; exports.DialogContent = DialogContent; exports.DialogHeader = DialogHeader; exports.DialogFooter = DialogFooter; exports.DialogTitle = DialogTitle; exports.DialogDescription = DialogDescription; exports.useConfirm = useConfirm; exports.useGuardedClose = useGuardedClose; exports.UnsavedChangesChip = UnsavedChangesChip; exports.AdminFormDrawer = AdminFormDrawer; exports.AdminFormModal = AdminFormModal; exports.Separator = Separator; exports.Sheet = Sheet; exports.SheetTrigger = SheetTrigger; exports.SheetClose = SheetClose; exports.SheetPortal = SheetPortal; exports.SheetOverlay = SheetOverlay; exports.SheetContent = SheetContent; exports.SheetHeader = SheetHeader; exports.SheetFooter = SheetFooter; exports.SheetTitle = SheetTitle; exports.SheetDescription = SheetDescription; exports.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.MenubarMenu = MenubarMenu; exports.MenubarGroup = MenubarGroup; exports.MenubarPortal = MenubarPortal; exports.MenubarSub = MenubarSub; exports.MenubarRadioGroup = MenubarRadioGroup; exports.Menubar = Menubar; exports.MenubarTrigger = MenubarTrigger; exports.MenubarSubTrigger = MenubarSubTrigger; exports.MenubarSubContent = MenubarSubContent; exports.MenubarContent = MenubarContent; exports.MenubarItem = MenubarItem; exports.MenubarCheckboxItem = MenubarCheckboxItem; exports.MenubarRadioItem = MenubarRadioItem; exports.MenubarLabel = MenubarLabel; exports.MenubarSeparator = MenubarSeparator; exports.MenubarShortcut = MenubarShortcut; exports.NavigationMenuViewport = NavigationMenuViewport; exports.NavigationMenu = NavigationMenu; exports.NavigationMenuList = NavigationMenuList; exports.NavigationMenuItem = NavigationMenuItem; exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle; exports.NavigationMenuTrigger = NavigationMenuTrigger; exports.NavigationMenuContent = NavigationMenuContent; exports.NavigationMenuLink = NavigationMenuLink; exports.NavigationMenuIndicator = NavigationMenuIndicator; exports.CrossfadePanels = CrossfadePanels; exports.TabContent = TabContent; exports.TabNavigationVariantProvider = TabNavigationVariantProvider; exports.TAB_AVATAR_PX = TAB_AVATAR_PX; exports.TabNavigation = TabNavigation; exports.getTabById = getTabById; exports.getTabComponent = getTabComponent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; exports.AIGeneratedBadge = AIGeneratedBadge; exports.FADE_PREVIEW_MAX_UNMEASURED_ITEMS = FADE_PREVIEW_MAX_UNMEASURED_ITEMS; exports.FadePreview = FadePreview; exports.TextHold = TextHold; exports.LayoutHold = LayoutHold; exports.Progress = Progress; exports.RichMarkdownRuntimeProvider = RichMarkdownRuntimeProvider; exports.useRichMarkdownRuntime = useRichMarkdownRuntime; exports.EmbedLoadingSkeleton = EmbedLoadingSkeleton; exports.EmbedIframe = EmbedIframe; exports.EmbedViewerFrame = EmbedViewerFrame; exports.ClaudeEmbed = ClaudeEmbed; exports.FigmaEmbed = FigmaEmbed; exports.EMBED_SIZES = EMBED_SIZES; exports.EmbedContainer = EmbedContainer; exports.YouTubeContainer = YouTubeContainer; exports.TwitterContainer = TwitterContainer; exports.RedditContainer = RedditContainer; exports.LinkPreviewContainer = LinkPreviewContainer; exports.LinkedInContainer = LinkedInContainer; exports.LinkedInEmbedClient = LinkedInEmbedClient; exports.MarkdownImage = MarkdownImage; exports.OGLinkErrorBoundary = OGLinkErrorBoundary; exports.OGLinkPreview = OGLinkPreview; exports.MediaCarousel = MediaCarousel; exports.RedditEmbedClient = RedditEmbedClient; exports.TwitterEmbedClient = TwitterEmbedClient; exports.processShortcodes = processShortcodes; exports.RichMarkdownRenderer = RichMarkdownRenderer; exports.ReleaseChangelogSection = ReleaseChangelogSection; exports.StackedRowsPanel = StackedRowsPanel; exports.SlackChannelChip = SlackChannelChip; exports.AppStoreBadge = AppStoreBadge; exports.GooglePlayBadge = GooglePlayBadge; exports.StoreBadgeLinks = StoreBadgeLinks; exports.MobileAppQr = MobileAppQr; exports.StatusIndicator = StatusIndicator; exports.DATA_SYNC_SOURCES = DATA_SYNC_SOURCES; exports.isDataSyncSource = isDataSyncSource; exports.ErrorState = ErrorState; exports.PageError = PageError; exports.LoadError = LoadError; exports.NotFoundError = NotFoundError; exports.FilterCheckboxItem = FilterCheckboxItem; exports.TagKeyValueFilter = TagKeyValueFilter; exports.FilterModal = FilterModal; exports.PageContainer = PageContainer; exports.ListPageContainer = ListPageContainer; exports.DetailPageContainer = DetailPageContainer; exports.FormPageContainer = FormPageContainer; exports.ContentPageContainer = ContentPageContainer; exports.ListPageLayout = ListPageLayout; exports.PageShell = PageShell; exports.PageMain = PageMain; exports.ArticleDetailLayout = ArticleDetailLayout; exports.TOGGLE_SIZE_CLASS = TOGGLE_SIZE_CLASS; exports.toggleVariants = toggleVariants; exports.Toggle = Toggle; exports.ToggleGroup = ToggleGroup; exports.ToggleGroupItem = ToggleGroupItem; exports.BenefitCard = BenefitCard; exports.benefitCardBorderClass = benefitCardBorderClass; exports.BenefitCardGrid = BenefitCardGrid; exports.BrandAssociationCard = BrandAssociationCard; exports.BrandAssociationGrid = BrandAssociationGrid; exports.BulletList = BulletList; exports.StepArrowButton = StepArrowButton; exports.ChevronButton = ChevronButton; exports.CircularProgress = CircularProgress; exports.CheckIcon = CheckIcon2; exports.XIcon = XIcon2; exports.MinusIcon = MinusIcon; exports.CheckCircleIcon = CheckCircleIcon2; exports.XCircleIcon = XCircleIcon; exports.DashboardInfoCard = DashboardInfoCard; exports.InfoCardRow = InfoCardRow; exports.OSTypeBadge = OSTypeBadge; exports.OSTypeIcon = OSTypeIcon; exports.OSTypeLabel = OSTypeLabel; exports.DeviceCard = DeviceCard; exports.DeviceCardCompact = DeviceCardCompact; exports.DataAttribution = DataAttribution; exports.DataSyncLine = DataSyncLine; exports.DownloadButton = DownloadButton; exports.COMPLIANCE_LOGO_SIZE_CLASS = COMPLIANCE_LOGO_SIZE_CLASS; exports.ComplianceBadge = ComplianceBadge; exports.ComplianceLogo = ComplianceLogo; exports.FeatureCardGrid = FeatureCardGrid; exports.StepNumber = StepNumber; exports.NumberedStep = NumberedStep; exports.FEATURE_LIST_SKELETON_COUNT = FEATURE_LIST_SKELETON_COUNT; exports.FeatureList = FeatureList; exports.formatTrendChange = formatTrendChange; exports.TREND_TONES = TREND_TONES; exports.trendTone = trendTone; exports.trendToneClass = trendToneClass; exports.trendlinePoints = trendlinePoints; exports.Trendline = Trendline; exports.TrendHistory = TrendHistory; exports.SourceTooltip = SourceTooltip; exports.HighlightCard = HighlightCard; exports.HighlightCardGrid = HighlightCardGrid; exports.IconsBlock = IconsBlock; exports.DropdownButton = DropdownButton; exports.MoreActionsMenu = MoreActionsMenu; exports.ORGANIZATION_CARD_RADIUS_CLASS = ORGANIZATION_CARD_RADIUS_CLASS; exports.ORGANIZATION_CARD_LAYOUT_CLASS = ORGANIZATION_CARD_LAYOUT_CLASS; exports.ORGANIZATION_CARD_SURFACE_CLASS = ORGANIZATION_CARD_SURFACE_CLASS; exports.ORGANIZATION_CARD_HEADER_CLASS = ORGANIZATION_CARD_HEADER_CLASS; exports.ORGANIZATION_CARD_TEXT_CLASS = ORGANIZATION_CARD_TEXT_CLASS; exports.ORGANIZATION_CARD_DESCRIPTION_CLASS = ORGANIZATION_CARD_DESCRIPTION_CLASS; exports.ORGANIZATION_CARD_FOOTER_CLASS = ORGANIZATION_CARD_FOOTER_CLASS; exports.ORGANIZATION_CARD_STATS_CLASS = ORGANIZATION_CARD_STATS_CLASS; exports.ORGANIZATION_CARD_STAT_CLASS = ORGANIZATION_CARD_STAT_CLASS; exports.OrganizationCard = OrganizationCard; exports.ServiceCard = ServiceCard; exports.Slider = Slider; exports.PersonCell = PersonCell; exports.PeopleCell = PeopleCell; exports.TitleContentBlock = TitleContentBlock; exports.ContentLoader = ContentLoader; exports.CardLoader = CardLoader; exports.FormLoader = FormLoader; exports.DetailLoader = DetailLoader; exports.ListLoader = ListLoader; exports.DataTableEmpty = DataTableEmpty; exports.ROW_HEIGHT_DESKTOP = ROW_HEIGHT_DESKTOP; exports.ROW_HEIGHT_MOBILE = ROW_HEIGHT_MOBILE; exports.ROW_SHELL_CLASSES = ROW_SHELL_CLASSES; exports.DATA_TABLE_ROW_FRAME_CLASS = DATA_TABLE_ROW_FRAME_CLASS; exports.ROW_STACK_CLASSES = ROW_STACK_CLASSES; exports.QueryReportTableRow = QueryReportTableRow; exports.QueryReportTableHeader = QueryReportTableHeader; exports.deriveColumns = deriveColumns; exports.exportToCSV = exportToCSV; exports.QueryReportTable = QueryReportTable; exports.CursorPagination = CursorPagination; exports.CursorPaginationSimple = CursorPaginationSimple; exports.useDataTableContext = useDataTableContext; exports.DataTableRoot = DataTableRoot; exports.getHideClasses = getHideClasses; exports.alignJustify = alignJustify; exports.multiSelectFilterFn = multiSelectFilterFn; exports.dataTableLoadingRows = dataTableLoadingRows; exports.DataTableRow = DataTableRow; exports.DataTableBody = DataTableBody; exports.DataTableCursorFooter = DataTableCursorFooter; exports.DynamicThemeProvider = DynamicThemeProvider; exports.useDynamicTheme = useDynamicTheme; exports.THEME_STORAGE_KEY = THEME_STORAGE_KEY; exports.THEME_ATTRIBUTE = THEME_ATTRIBUTE; exports.DEFAULT_THEME = DEFAULT_THEME; exports.ThemeProvider = ThemeProvider; exports.useTheme = useTheme; exports.useThemeToggle = useThemeToggle; exports.ArrayEntryManager = ArrayEntryManager; exports.PasswordInput = PasswordInput; exports.AccountDetailsFields = AccountDetailsFields; exports.TRIAL_TERM_ICONS = TRIAL_TERM_ICONS; exports.DEFAULT_TRIAL_TERMS = DEFAULT_TRIAL_TERMS; exports.trialBenefits = trialBenefits; exports.BenefitList = BenefitList; exports.AuthBenefitsPanel = AuthBenefitsPanel; exports.OpenFrameWordmark = OpenFrameWordmark; exports.PoweredByFlamingo = PoweredByFlamingo; exports.AuthShell = AuthShell; exports.BackToLoginLink = BackToLoginLink; exports.CompactAuthShell = CompactAuthShell; exports.LabeledDivider = LabeledDivider; exports.PROVIDER_META = PROVIDER_META; exports.SSO_PROVIDERS_SKELETON_COUNT = SSO_PROVIDERS_SKELETON_COUNT; exports.SsoProviderButtons = SsoProviderButtons; exports.CompleteAccountForm = CompleteAccountForm; exports.PolicyLink = PolicyLink; exports.TermsAgreementLabel = TermsAgreementLabel; exports.CreateOrganizationForm = CreateOrganizationForm; exports.InviteLinkInvalidModal = InviteLinkInvalidModal; exports.LegalLinks = LegalLinks; exports.LoginForm = LoginForm; exports.NoAccountNotice = NoAccountNotice; exports.OpenFrameSsoLoginForm = OpenFrameSsoLoginForm; exports.OpenFrameSsoSignUpForm = OpenFrameSsoSignUpForm; exports.PasswordResetForm = PasswordResetForm; exports.SsoAuthShell = SsoAuthShell; exports.SsoJoinForm = SsoJoinForm; exports.ProviderButton = ProviderButton; exports.AuthProvidersList = AuthProvidersList; exports.ChangelogManager = ChangelogManager; exports.ChangelogSectionsManager = ChangelogSectionsManager; exports.ClickUpTasksManager = ClickUpTasksManager; exports.CommandBox = CommandBox; exports.TAG_BADGE_CLASS = TAG_BADGE_CLASS; exports.ENTITY_TAG_BADGES_SKELETON_COUNT = ENTITY_TAG_BADGES_SKELETON_COUNT; exports.ENTITY_TAG_BADGES_PHONE_CAP = ENTITY_TAG_BADGES_PHONE_CAP; exports.EntityTagBadges = EntityTagBadges; exports.ErrorBoundary = ErrorBoundary; exports.SectionSelector = SectionSelector; exports.FigmaPrototypeViewer = FigmaPrototypeViewer; exports.FiltersDropdown = FiltersDropdown; exports.useFiltersDropdown = useFiltersDropdown; exports.GitHubReleasesManager = GitHubReleasesManager; exports.KnowledgeBaseLinksManager = KnowledgeBaseLinksManager; exports.LoadingProvider = LoadingProvider; exports.useLoading = useLoading; exports.useMediaIntake = useMediaIntake; exports.MediaUploadArea = MediaUploadArea; exports.MediaGalleryManager = MediaGalleryManager; exports.PushButtonSelector = PushButtonSelector; exports.MODEL_TOKEN_RATES_COPY = MODEL_TOKEN_RATES_COPY; exports.ModelTokenRates = ModelTokenRates; exports.ModelTokenRatesPopover = ModelTokenRatesPopover; exports.ModelTokenRatesUnavailable = ModelTokenRatesUnavailable; exports.MODEL_TOKEN_EXCHANGE_BALANCE = MODEL_TOKEN_EXCHANGE_BALANCE; exports.MODEL_TOKEN_EXCHANGE_RANGE = MODEL_TOKEN_EXCHANGE_RANGE; exports.ModelTokenExchange = ModelTokenExchange; exports.MoreAboutButton = MoreAboutButton; exports.OSTypeBadgeGroup = OSTypeBadgeGroup; exports.ParallaxImageShowcase = ParallaxImageShowcase; exports.PATHS_DISPLAY_SKELETON_ROWS = PATHS_DISPLAY_SKELETON_ROWS; exports.PathsDisplay = PathsDisplay; exports.OPENFRAME_PATHS = OPENFRAME_PATHS; exports.getOpenFramePaths = getOpenFramePaths; exports.OPENFRAME_DOCTOR_COMMANDS = OPENFRAME_DOCTOR_COMMANDS; exports.getOpenFrameDoctorCommand = getOpenFrameDoctorCommand; exports.PlatformFilterComponent = PlatformFilterComponent; exports.SelectButton = SelectButton; exports.ConfidenceBadge = ConfidenceBadge; exports.SEOEditorPreview = SEOEditorPreview; exports.socialIcon = socialIcon; exports.socialIconRowClass = socialIconRowClass; exports.socialIconButtonProps = socialIconButtonProps; exports.SocialIconRow = SocialIconRow; exports.SocialLinksManager = SocialLinksManager; exports.StartWithOpenFrameButton = StartWithOpenFrameButton; exports.STATUS_FILTER_SKELETON_PILLS = STATUS_FILTER_SKELETON_PILLS; exports.StatusFilterComponent = StatusFilterComponent; exports.TagsSelector = TagsSelector; exports.WarningBlock = WarningBlock; exports.VideoBitesDisplay = VideoBitesDisplay; exports.FloatingWalkthroughVideo = FloatingWalkthroughVideo; exports.InlineWalkthroughVideo = InlineWalkthroughVideo; exports.useWalkthroughVideo = useWalkthroughVideo; exports.VideoSourceSelector = VideoSourceSelector; exports.SubtitlesEditor = SubtitlesEditor; exports.TranscriptSummaryEditor = TranscriptSummaryEditor; exports.AIEnrichButton = AIEnrichButton; exports.AIWarningsSection = AIWarningsSection; exports.AIEnrichSection = AIEnrichSection; exports.HighlightVideoSection = HighlightVideoSection; exports.HighlightConfigSection = HighlightConfigSection; exports.EntitySummaryEditor = EntitySummaryEditor; exports.AIStatusIndicator = AIStatusIndicator; exports.AIRequiredBadge = AIRequiredBadge; exports.TranscribeSummarizeSection = TranscribeSummarizeSection; exports.VideoClipsSection = VideoClipsSection; exports.HighlightGenerationSection = HighlightGenerationSection; exports.HighlightVideoPreview = HighlightVideoPreview; exports.TranscribeAndSummarizeCombinedSection = TranscribeAndSummarizeCombinedSection; exports.HighlightVideoCombinedSection = HighlightVideoCombinedSection; exports.ViewToggle = ViewToggle; exports.APPROVAL_LEVELS = APPROVAL_LEVELS; exports.APPROVAL_LEVEL_META = APPROVAL_LEVEL_META; exports.ApprovalLevelView = ApprovalLevelView; exports.POLICY_CONFIGURATION_PANEL_SKELETON_CATEGORIES = POLICY_CONFIGURATION_PANEL_SKELETON_CATEGORIES; exports.PolicyConfigurationPanel = PolicyConfigurationPanel; exports.PoliciesTable = PoliciesTable; exports.PolicySummaryCards = PolicySummaryCards; exports.POLICY_STATUS_CONFIG = POLICY_STATUS_CONFIG; exports.getPolicyStatus = getPolicyStatus; exports.getPolicyTableStatus = getPolicyTableStatus; exports.computePolicySummary = computePolicySummary; exports.TENANT_EMPTY_VALUE = TENANT_EMPTY_VALUE; exports.accessStateTag = accessStateTag; exports.providerMark = providerMark2; exports.lastReadAt = lastReadAt; exports.formatLastRead = formatLastRead; exports.usersCountLabel = usersCountLabel; exports.TenantAccessCell = TenantAccessCell; exports.TenantCell = TenantCell; exports.TenantCustomerCell = TenantCustomerCell; exports.TENANT_COLUMNS = TENANT_COLUMNS; exports.TENANTS_TABLE_COLUMNS = TENANTS_TABLE_COLUMNS; exports.TenantsTableView = TenantsTableView; exports.PhoneInput = PhoneInput; exports.WaitlistForm = WaitlistForm; exports.NotificationsProvider = NotificationsProvider; exports.useNotifications = useNotifications; exports.useOptionalNotifications = useOptionalNotifications; exports.AppLayoutDrawerContainerContext = AppLayoutDrawerContainerContext; exports.useAppLayoutDrawerContainer = useAppLayoutDrawerContainer; exports.AppLayoutDrawerCoordinationContext = AppLayoutDrawerCoordinationContext; exports.AppLayoutDrawerRoot = AppLayoutDrawerRoot; exports.AppLayoutDrawerTrigger = AppLayoutDrawerTrigger; exports.AppLayoutDrawerClose = AppLayoutDrawerClose; exports.AppLayoutDrawerContent = AppLayoutDrawerContent; exports.AppLayoutDrawerHeader = AppLayoutDrawerHeader; exports.AppLayoutDrawerTitle = AppLayoutDrawerTitle; exports.AppLayoutDrawerDescription = AppLayoutDrawerDescription; exports.AppLayoutDrawerBody = AppLayoutDrawerBody; exports.AppLayoutDrawerFooter = AppLayoutDrawerFooter; exports.NotificationTile = NotificationTile; exports.NotificationDrawer = NotificationDrawer; exports.NotificationPopups = NotificationPopups; exports.TICKET_APPROVAL_REQUEST_TYPE = TICKET_APPROVAL_REQUEST_TYPE; exports.MINGO_APPROVAL_REQUEST_TYPE = MINGO_APPROVAL_REQUEST_TYPE; exports.isApprovalNotificationType = isApprovalNotificationType; exports.isApprovalNotification = isApprovalNotification; exports.getApprovalMeta = getApprovalMeta; exports.resolutionToStatus = resolutionToStatus; exports.approvalMetaToBatchData = approvalMetaToBatchData; exports.ApprovalRequestNotificationTile = ApprovalRequestNotificationTile; exports.TimeTrackerProvider = TimeTrackerProvider; exports.useTimeTracker = useTimeTracker; exports.useOptionalTimeTracker = useOptionalTimeTracker; exports.useTrackerClock = useTrackerClock; exports.TimeTrackerPanel = TimeTrackerPanel; exports.UnreadDot = UnreadDot; exports.UnreadCountBadge = UnreadCountBadge; exports.HeaderButton = HeaderButton; exports.TimeTrackerHeaderButton = TimeTrackerHeaderButton; exports.formatLastOnline = formatLastOnline; exports.getDeviceName = getDeviceName; exports.matchesDeviceName = matchesDeviceName; exports.DevicesViewConfigProvider = DevicesViewConfigProvider; exports.useDevicesViewConfig = useDevicesViewConfig; exports.useDeviceImageUrl = useDeviceImageUrl; exports.DeviceSelectionModeRadio = DeviceSelectionModeRadio; exports.getDeviceStatusConfig = getDeviceStatusConfig; exports.getDeviceOperatingSystem = getDeviceOperatingSystem; exports.DEVICE_STATUS = DEVICE_STATUS; exports.DEFAULT_VISIBLE_STATUSES = DEFAULT_VISIBLE_STATUSES; exports.DEFAULT_DASHBOARD_STATUSES = DEFAULT_DASHBOARD_STATUSES; exports.DEFAULT_DEVICES_LIST_STATUSES = DEFAULT_DEVICES_LIST_STATUSES; exports.DEVICE_ENRICHMENT_STATUSES = DEVICE_ENRICHMENT_STATUSES; exports.DEVICE_ENRICHMENT_FILTER = DEVICE_ENRICHMENT_FILTER; exports.HIDDEN_DEVICE_STATUSES = HIDDEN_DEVICE_STATUSES; exports.renderDeviceTypeIcon = renderDeviceTypeIcon; exports.DeviceTypeTile = DeviceTypeTile; exports.DeviceTagsFilterButton = DeviceTagsFilterButton; exports.DevicesFilterToolbar = DevicesFilterToolbar; exports.getDeviceActionsColumn = getDeviceActionsColumn; exports.getDeviceOpenColumn = getDeviceOpenColumn; exports.DevicesTableBody = DevicesTableBody; exports.getDeviceFilterColumns = getDeviceFilterColumns; exports.getDeviceTableColumns = getDeviceTableColumns; exports.useTagFilterModal = useTagFilterModal; exports.DeviceSelector = DeviceSelector; exports.EMPTY_NARROWING = EMPTY_NARROWING; exports.narrowingToFilter = narrowingToFilter; exports.DevicesGrid = DevicesGrid; exports.DevicesGridFilters = DevicesGridFilters; exports.EMPTY_DEVICES_NARROWING = EMPTY_DEVICES_NARROWING; exports.isNarrowed = isNarrowed; exports.DevicesList = DevicesList; exports.DEVICE_VIEW_MODE_ITEMS = DEVICE_VIEW_MODE_ITEMS; exports.buildDevicePanelActions = buildDevicePanelActions; exports.IDLE_DEVICES_TOOLBAR = IDLE_DEVICES_TOOLBAR; exports.DevicesPanelView = DevicesPanelView; exports.PACKAGE_MANAGERS = PACKAGE_MANAGERS; exports.PACKAGE_MANAGER_LABEL = PACKAGE_MANAGER_LABEL; exports.PACKAGE_MANAGER_ICON = PACKAGE_MANAGER_ICON; exports.PACKAGE_MANAGER_OS = PACKAGE_MANAGER_OS; exports.packageManagerLabel = packageManagerLabel; exports.SOFTWARE_SOURCE_LABEL = SOFTWARE_SOURCE_LABEL; exports.PACKAGE_SEARCH_LABEL = PACKAGE_SEARCH_LABEL; exports.PACKAGE_SEARCH_PLACEHOLDER = PACKAGE_SEARCH_PLACEHOLDER; exports.PackageSearchFieldPlaceholder = PackageSearchFieldPlaceholder; exports.SoftwareScheduleFields = SoftwareScheduleFields; exports.SOFTWARE_ACTION_COPY = SOFTWARE_ACTION_COPY; exports.SOFTWARE_ACTION_DETAIL_TITLE = SOFTWARE_ACTION_DETAIL_TITLE; exports.softwareActionCopy = softwareActionCopy; exports.newSoftwareRow = newSoftwareRow; exports.SoftwareRowFields = SoftwareRowFields; exports.SoftwareActionForm = SoftwareActionForm; exports.LogDrawer = LogDrawer; exports.SYSTEM_SOURCE_LABEL = SYSTEM_SOURCE_LABEL; exports.logSourceLabels = logSourceLabels; exports.LogsPageView = LogsPageView; exports.LogCopyIconButton = LogCopyIconButton; exports.LOG_COLUMN_WIDTHS = LOG_COLUMN_WIDTHS; exports.TOOL_CHIP_HEIGHT = TOOL_CHIP_HEIGHT; exports.ToolBadge = ToolBadge; exports.LogsTableView = LogsTableView; exports.logSeverityVariant = logSeverityVariant; exports.SCRIPT_EXECUTION_STATUS_PRESENTATION = SCRIPT_EXECUTION_STATUS_PRESENTATION; exports.scriptExecutionStatus = scriptExecutionStatus; exports.ExecutionSourceBadge = ExecutionSourceBadge; exports.ExecutionTimestampCell = ExecutionTimestampCell; exports.ExecutionStatusCell = ExecutionStatusCell; exports.ExecutionDeviceCell = ExecutionDeviceCell; exports.ExecutionInitiatorCell = ExecutionInitiatorCell; exports.ExecutionResultCell = ExecutionResultCell; exports.ScriptExecutionResult = ScriptExecutionResult; exports.ScriptNameCell = ScriptNameCell; exports.ScheduleDateTimeCell = ScheduleDateTimeCell; exports.SCRIPT_COLUMNS = SCRIPT_COLUMNS; exports.SCHEDULE_COLUMNS = SCHEDULE_COLUMNS; exports.EXECUTION_COLUMNS = EXECUTION_COLUMNS; exports.SCRIPTS_TAB_WIDTHS = SCRIPTS_TAB_WIDTHS; exports.SCRIPTS_TABLE_COLUMNS = SCRIPTS_TABLE_COLUMNS; exports.SCHEDULES_TABLE_COLUMNS = SCHEDULES_TABLE_COLUMNS; exports.EXECUTIONS_TABLE_COLUMNS = EXECUTIONS_TABLE_COLUMNS; exports.scriptsColumnMeta = scriptsColumnMeta; exports.RowActionsCell = RowActionsCell; exports.OpenInNewTabCell = OpenInNewTabCell; exports.ScriptExecutionsTable = ScriptExecutionsTable; exports.ScriptSchedulesTable = ScriptSchedulesTable; exports.SCRIPT_SHELL_TYPES = SCRIPT_SHELL_TYPES; exports.scriptShellType = scriptShellType; exports.scriptShellLabel = scriptShellLabel; exports.ScriptShellBadge = ScriptShellBadge; exports.ScriptsTable = ScriptsTable; exports.SCRIPTS_TABS = SCRIPTS_TABS; exports.SCRIPT_SCHEDULE_TRIGGER = SCRIPT_SCHEDULE_TRIGGER; exports.SCHEDULE_TIME_REFERENCE = SCHEDULE_TIME_REFERENCE; exports.SCHEDULE_OFFLINE_BEHAVIOR = SCHEDULE_OFFLINE_BEHAVIOR; exports.isEventTrigger = isEventTrigger; exports.isDeviceLocalTime = isDeviceLocalTime; exports.DURATION_UNIT_VALUES = DURATION_UNIT_VALUES; exports.DURATION_UNIT_SECONDS = DURATION_UNIT_SECONDS; exports.DURATION_UNIT_LABELS = DURATION_UNIT_LABELS; exports.MIN_REPEAT_MINUTES = MIN_REPEAT_MINUTES; exports.DURATION_UNIT_OPTIONS = DURATION_UNIT_OPTIONS; exports.snapRepeatInterval = snapRepeatInterval; exports.isRetryOnReconnect = isRetryOnReconnect; exports.MIN_RECONNECT_MINUTES = MIN_RECONNECT_MINUTES; exports.snapReconnectInterval = snapReconnectInterval; exports.DEFAULT_RECONNECT_WINDOW = DEFAULT_RECONNECT_WINDOW; exports.isSlotOnGrid = isSlotOnGrid; exports.getTimeSlotOptions = getTimeSlotOptions; exports.slotToLabel = slotToLabel; exports.startOfToday = startOfToday; exports.earliestDeviceLocalDay = earliestDeviceLocalDay; exports.earliestScheduleDay = earliestScheduleDay; exports.isScheduleStartInPast = isScheduleStartInPast; exports.PAST_START_MESSAGE = PAST_START_MESSAGE; exports.NO_SLOTS_TODAY_MESSAGE = NO_SLOTS_TODAY_MESSAGE; exports.isStartInPastAndChanged = isStartInPastAndChanged; exports.dateToTimeSlot = dateToTimeSlot; exports.applyTimeSlot = applyTimeSlot; exports.fromScheduleInstant = fromScheduleInstant; exports.EMPTY_SCHEDULE_SCRIPT_ROW = EMPTY_SCHEDULE_SCRIPT_ROW; exports.SCHEDULE_TRIGGER_OPTIONS = SCHEDULE_TRIGGER_OPTIONS; exports.SCHEDULE_TIME_REFERENCE_OPTIONS = SCHEDULE_TIME_REFERENCE_OPTIONS; exports.SCHEDULE_OFFLINE_BEHAVIOR_OPTIONS = SCHEDULE_OFFLINE_BEHAVIOR_OPTIONS; exports.DEFAULT_SCHEDULE_FORM_VALUES = DEFAULT_SCHEDULE_FORM_VALUES; exports.ScheduleIntervalInput = ScheduleIntervalInput; exports.ScheduleOfflineFields = ScheduleOfflineFields; exports.SLOT_STICKINESS = SLOT_STICKINESS; exports.SortableList = SortableList; exports.ScriptArguments = ScriptArguments; exports.SortableMoveButtons = SortableMoveButtons; exports.useSortableItem = useSortableItem; exports.ScheduleScriptPickerCard = ScheduleScriptPickerCard; exports.ScheduleScriptsField = ScheduleScriptsField; exports.ScheduleTimingFields = ScheduleTimingFields; exports.ScheduleFormFields = ScheduleFormFields; exports.ScheduleScriptSearchField = ScheduleScriptSearchField; exports.KNOWLEDGE_BASE_ITEM_ICON = KNOWLEDGE_BASE_ITEM_ICON; exports.getKnowledgeBaseOpenColumn = getKnowledgeBaseOpenColumn; exports.getKnowledgeBaseColumns = getKnowledgeBaseColumns; exports.KnowledgeBaseTableBody = KnowledgeBaseTableBody; exports.TicketAttachmentsList = TicketAttachmentsList; exports.TicketDetailSection = TicketDetailSection; exports.KnowledgeBaseArticleView = KnowledgeBaseArticleView; exports.SortableDragHandle = SortableDragHandle; exports.TICKET_STATUS_COLOR_PRESETS = TICKET_STATUS_COLOR_PRESETS; exports.CUSTOM_PRESET_KEY = CUSTOM_PRESET_KEY; exports.DEFAULT_CUSTOM_STATUS_COLOR = DEFAULT_CUSTOM_STATUS_COLOR; exports.ColorPresetSelect = ColorPresetSelect; exports.ColorPickerInput = ColorPickerInput; exports.TicketStatusConfigRow = TicketStatusConfigRow; exports.TICKET_STATUS_CONFIG_LIST_SKELETON_ROWS = TICKET_STATUS_CONFIG_LIST_SKELETON_ROWS; exports.TicketStatusConfigList = TicketStatusConfigList; exports.CONVERSATION_CARD_AVATAR_PX = CONVERSATION_CARD_AVATAR_PX; exports.ConversationCard = ConversationCard; exports.SNAP_CAROUSEL_GAP_PX = SNAP_CAROUSEL_GAP_PX; exports.SNAP_CAROUSEL_TRACK_CLASS = SNAP_CAROUSEL_TRACK_CLASS; exports.SnapCarouselSlide = SnapCarouselSlide; exports.SnapCarouselControls = SnapCarouselControls; exports.SnapCarousel = SnapCarousel; exports.capabilityTabId = capabilityTabId; exports.CapabilityExplorer = CapabilityExplorer; exports.DataTableHeader = DataTableHeader; exports.DATA_TABLE_HEADER_LABEL_CLASS = DATA_TABLE_HEADER_LABEL_CLASS; exports.DataTableInfiniteFooter = DataTableInfiniteFooter; exports.DataTableRowCount = DataTableRowCount; exports.useDataTable = useDataTable; exports.DataTable = DataTable; exports.flexRender = _reacttable.flexRender; exports.createColumnHelper = _reacttable.createColumnHelper; exports.getCoreRowModel = _reacttable.getCoreRowModel; exports.getExpandedRowModel = _reacttable.getExpandedRowModel; exports.getFacetedRowModel = _reacttable.getFacetedRowModel; exports.getFacetedUniqueValues = _reacttable.getFacetedUniqueValues; exports.getFilteredRowModel = _reacttable.getFilteredRowModel; exports.getGroupedRowModel = _reacttable.getGroupedRowModel; exports.getPaginationRowModel = _reacttable.getPaginationRowModel; exports.getSortedRowModel = _reacttable.getSortedRowModel; exports.SearchInput = SearchInput; exports.FilterListItem = FilterListItem; exports.FilterList = FilterList; exports.TagSearchInput = TagSearchInput; exports.MarkdownLinkDialog = MarkdownLinkDialog; exports.useMarkdownLinkCommand = useMarkdownLinkCommand; exports.MarkdownEditorFieldSkeleton = MarkdownEditorFieldSkeleton; exports.MarkdownEditor = MarkdownEditor; exports.FileUpload = FileUpload; exports.ImageUploader = ImageUploader; exports.formatTestRunDuration = formatTestRunDuration; exports.TestResultsTable = TestResultsTable; exports.TestRunErrorBanner = TestRunErrorBanner; exports.TestRunResults = TestRunResults; exports.TimingStat = TimingStat; exports.TestRunStatusStat = TestRunStatusStat; exports.useTestRunState = useTestRunState; exports.TicketNoteCard = TicketNoteCard; exports.TicketNotesSection = TicketNotesSection; exports.TicketInfoSection = TicketInfoSection; exports.renderTicketStatusOption = renderTicketStatusOption; exports.renderTicketAssigneeOption = renderTicketAssigneeOption; exports.TakeOverTicketModal = TakeOverTicketModal; exports.ReopenTicketModal = ReopenTicketModal; exports.ReopenTicketRequestModal = ReopenTicketRequestModal; exports.PHOTO_WALL_FRAME = PHOTO_WALL_FRAME; exports.photoWallRequestWidth = photoWallRequestWidth; exports.photoOrientation = photoOrientation; exports.arrangePhotoWall = arrangePhotoWall; exports.PhotoWall = PhotoWall; exports.FilterPillRow = FilterPillRow; exports.LazyMount = LazyMount; exports.AppWindowFrame = AppWindowFrame; exports.PRODUCT_SCREEN_DESIGN_WIDTH = PRODUCT_SCREEN_DESIGN_WIDTH; exports.PRODUCT_SCREEN_READABLE_WIDTH = PRODUCT_SCREEN_READABLE_WIDTH; exports.PRODUCT_SCREEN_SCALE_FROM = PRODUCT_SCREEN_SCALE_FROM; exports.ProductScreenFrame = ProductScreenFrame; exports.PhoneFrame = PhoneFrame; exports.NotificationStack = NotificationStack; exports.StripCard = StripCard; exports.LeaderRow = LeaderRow; exports.AnalyzingState = AnalyzingState; exports.IncidentStatusLine = IncidentStatusLine; exports.IncidentFeed = IncidentFeed; exports.useBetweenAnchors = useBetweenAnchors; exports.StickyActionBar = StickyActionBar; exports.SuperUserBannerView = SuperUserBannerView; exports.IconTile = IconTile;
|
|
34943
|
+
|
|
34944
|
+
exports.AllowedDomainsInput = AllowedDomainsInput; exports.ANNOUNCEMENT_BAR_HEIGHT_CLASS = ANNOUNCEMENT_BAR_HEIGHT_CLASS; exports.AnnouncementBarView = AnnouncementBarView; exports.timezoneLabel = timezoneLabel; exports.timezoneOptions = timezoneOptions; exports.TimezoneSelect = TimezoneSelect; exports.CheckboxBlock = CheckboxBlock; exports.CheckboxWithDescription = CheckboxWithDescription; exports.DatePickerCalendar = DatePickerCalendar; exports.DatePicker = DatePicker; exports.DatePickerInput = DatePickerInput; exports.DatePickerInputSimple = DatePickerInputSimple; exports.DateFilterPanel = DateFilterPanel; exports.DateFilterMenu = DateFilterMenu; exports.DurationInput = DurationInput; exports.HoneypotField = HoneypotField; exports.JsonDetailList = JsonDetailList; exports.PROGRESS_BAR_HEIGHT = PROGRESS_BAR_HEIGHT; exports.ProgressBar = ProgressBar; exports.InfoCard = InfoCard; exports.InfoRow = InfoRow; exports.SearchableSelect = SearchableSelect; exports.AssigneeDropdown = AssigneeDropdown; exports.InfoSection = InfoSection; exports.InputTrigger = InputTrigger; exports.MediaTypeSelector = MediaTypeSelector; exports.noDataIconClasses = noDataIconClasses; exports.noDataActionsVariants = noDataActionsVariants; exports.NoDataAction = NoDataAction; exports.NoDataActions = NoDataActions; exports.NoDataMessage = NoDataMessage; exports.NoData = NoData; exports.PageLoader = PageLoader; exports.CompactPageLoader = CompactPageLoader; exports.RadioGroup = RadioGroup; exports.RadioGroupItem = RadioGroupItem; exports.RADIO_GROUP_BLOCK_SKELETON_OPTIONS = RADIO_GROUP_BLOCK_SKELETON_OPTIONS; exports.RadioGroupBlock = RadioGroupBlock; exports.Switch = Switch; exports.TagSelectDropdown = TagSelectDropdown; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.TAGS_INPUT_CLASS = TAGS_INPUT_CLASS; exports.TAGS_INPUT_ROW_CLASS = TAGS_INPUT_ROW_CLASS; exports.TagsInput = TagsInput; exports.TagsManager = TagsManager; exports.TEXTAREA_BOX_CLASS = TEXTAREA_BOX_CLASS; exports.textareaBoxHeight = textareaBoxHeight; exports.Textarea = Textarea; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.AspectRatio = AspectRatio; exports.Dialog = Dialog; exports.DialogTrigger = DialogTrigger; exports.DialogPortal = DialogPortal; exports.DialogClose = DialogClose; exports.DialogOverlay = DialogOverlay; exports.DialogContent = DialogContent; exports.DialogHeader = DialogHeader; exports.DialogFooter = DialogFooter; exports.DialogTitle = DialogTitle; exports.DialogDescription = DialogDescription; exports.useConfirm = useConfirm; exports.useGuardedClose = useGuardedClose; exports.UnsavedChangesChip = UnsavedChangesChip; exports.AdminFormDrawer = AdminFormDrawer; exports.AdminFormModal = AdminFormModal; exports.Separator = Separator; exports.Sheet = Sheet; exports.SheetTrigger = SheetTrigger; exports.SheetClose = SheetClose; exports.SheetPortal = SheetPortal; exports.SheetOverlay = SheetOverlay; exports.SheetContent = SheetContent; exports.SheetHeader = SheetHeader; exports.SheetFooter = SheetFooter; exports.SheetTitle = SheetTitle; exports.SheetDescription = SheetDescription; exports.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.MenubarMenu = MenubarMenu; exports.MenubarGroup = MenubarGroup; exports.MenubarPortal = MenubarPortal; exports.MenubarSub = MenubarSub; exports.MenubarRadioGroup = MenubarRadioGroup; exports.Menubar = Menubar; exports.MenubarTrigger = MenubarTrigger; exports.MenubarSubTrigger = MenubarSubTrigger; exports.MenubarSubContent = MenubarSubContent; exports.MenubarContent = MenubarContent; exports.MenubarItem = MenubarItem; exports.MenubarCheckboxItem = MenubarCheckboxItem; exports.MenubarRadioItem = MenubarRadioItem; exports.MenubarLabel = MenubarLabel; exports.MenubarSeparator = MenubarSeparator; exports.MenubarShortcut = MenubarShortcut; exports.NavigationMenuViewport = NavigationMenuViewport; exports.NavigationMenu = NavigationMenu; exports.NavigationMenuList = NavigationMenuList; exports.NavigationMenuItem = NavigationMenuItem; exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle; exports.NavigationMenuTrigger = NavigationMenuTrigger; exports.NavigationMenuContent = NavigationMenuContent; exports.NavigationMenuLink = NavigationMenuLink; exports.NavigationMenuIndicator = NavigationMenuIndicator; exports.CrossfadePanels = CrossfadePanels; exports.TabContent = TabContent; exports.TabNavigationVariantProvider = TabNavigationVariantProvider; exports.TAB_AVATAR_PX = TAB_AVATAR_PX; exports.TabNavigation = TabNavigation; exports.getTabById = getTabById; exports.getTabComponent = getTabComponent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; exports.AIGeneratedBadge = AIGeneratedBadge; exports.FADE_PREVIEW_MAX_UNMEASURED_ITEMS = FADE_PREVIEW_MAX_UNMEASURED_ITEMS; exports.FadePreview = FadePreview; exports.TextHold = TextHold; exports.LayoutHold = LayoutHold; exports.Progress = Progress; exports.RichMarkdownRuntimeProvider = RichMarkdownRuntimeProvider; exports.useRichMarkdownRuntime = useRichMarkdownRuntime; exports.EmbedLoadingSkeleton = EmbedLoadingSkeleton; exports.EmbedIframe = EmbedIframe; exports.EmbedViewerFrame = EmbedViewerFrame; exports.ClaudeEmbed = ClaudeEmbed; exports.FigmaEmbed = FigmaEmbed; exports.EMBED_SIZES = EMBED_SIZES; exports.EmbedContainer = EmbedContainer; exports.YouTubeContainer = YouTubeContainer; exports.TwitterContainer = TwitterContainer; exports.RedditContainer = RedditContainer; exports.LinkPreviewContainer = LinkPreviewContainer; exports.LinkedInContainer = LinkedInContainer; exports.LinkedInEmbedClient = LinkedInEmbedClient; exports.MarkdownImage = MarkdownImage; exports.OGLinkErrorBoundary = OGLinkErrorBoundary; exports.OGLinkPreview = OGLinkPreview; exports.MediaCarousel = MediaCarousel; exports.RedditEmbedClient = RedditEmbedClient; exports.TwitterEmbedClient = TwitterEmbedClient; exports.processShortcodes = processShortcodes; exports.RichMarkdownRenderer = RichMarkdownRenderer; exports.ReleaseChangelogSection = ReleaseChangelogSection; exports.StackedRowsPanel = StackedRowsPanel; exports.SlackChannelChip = SlackChannelChip; exports.AppStoreBadge = AppStoreBadge; exports.GooglePlayBadge = GooglePlayBadge; exports.StoreBadgeLinks = StoreBadgeLinks; exports.MobileAppQr = MobileAppQr; exports.StatusIndicator = StatusIndicator; exports.DATA_SYNC_SOURCES = DATA_SYNC_SOURCES; exports.isDataSyncSource = isDataSyncSource; exports.ErrorState = ErrorState; exports.PageError = PageError; exports.LoadError = LoadError; exports.NotFoundError = NotFoundError; exports.FilterCheckboxItem = FilterCheckboxItem; exports.TagKeyValueFilter = TagKeyValueFilter; exports.FilterModal = FilterModal; exports.PageContainer = PageContainer; exports.ListPageContainer = ListPageContainer; exports.DetailPageContainer = DetailPageContainer; exports.FormPageContainer = FormPageContainer; exports.ContentPageContainer = ContentPageContainer; exports.ListPageLayout = ListPageLayout; exports.PageShell = PageShell; exports.PageMain = PageMain; exports.ArticleDetailLayout = ArticleDetailLayout; exports.TOGGLE_SIZE_CLASS = TOGGLE_SIZE_CLASS; exports.toggleVariants = toggleVariants; exports.Toggle = Toggle; exports.ToggleGroup = ToggleGroup; exports.ToggleGroupItem = ToggleGroupItem; exports.BenefitCard = BenefitCard; exports.benefitCardBorderClass = benefitCardBorderClass; exports.BenefitCardGrid = BenefitCardGrid; exports.BrandAssociationCard = BrandAssociationCard; exports.BrandAssociationGrid = BrandAssociationGrid; exports.BulletList = BulletList; exports.StepArrowButton = StepArrowButton; exports.ChevronButton = ChevronButton; exports.CircularProgress = CircularProgress; exports.CheckIcon = CheckIcon2; exports.XIcon = XIcon2; exports.MinusIcon = MinusIcon; exports.CheckCircleIcon = CheckCircleIcon2; exports.XCircleIcon = XCircleIcon; exports.DashboardInfoCard = DashboardInfoCard; exports.InfoCardRow = InfoCardRow; exports.OSTypeBadge = OSTypeBadge; exports.OSTypeIcon = OSTypeIcon; exports.OSTypeLabel = OSTypeLabel; exports.DeviceCard = DeviceCard; exports.DeviceCardCompact = DeviceCardCompact; exports.DataAttribution = DataAttribution; exports.DataSyncLine = DataSyncLine; exports.DownloadButton = DownloadButton; exports.COMPLIANCE_LOGO_SIZE_CLASS = COMPLIANCE_LOGO_SIZE_CLASS; exports.ComplianceBadge = ComplianceBadge; exports.ComplianceLogo = ComplianceLogo; exports.FeatureCardGrid = FeatureCardGrid; exports.StepNumber = StepNumber; exports.NumberedStep = NumberedStep; exports.FEATURE_LIST_SKELETON_COUNT = FEATURE_LIST_SKELETON_COUNT; exports.FeatureList = FeatureList; exports.formatTrendChange = formatTrendChange; exports.TREND_TONES = TREND_TONES; exports.trendTone = trendTone; exports.trendToneClass = trendToneClass; exports.trendlinePoints = trendlinePoints; exports.Trendline = Trendline; exports.TrendHistory = TrendHistory; exports.SourceTooltip = SourceTooltip; exports.HighlightCard = HighlightCard; exports.HighlightCardGrid = HighlightCardGrid; exports.IconsBlock = IconsBlock; exports.DropdownButton = DropdownButton; exports.MoreActionsMenu = MoreActionsMenu; exports.ORGANIZATION_CARD_RADIUS_CLASS = ORGANIZATION_CARD_RADIUS_CLASS; exports.ORGANIZATION_CARD_LAYOUT_CLASS = ORGANIZATION_CARD_LAYOUT_CLASS; exports.ORGANIZATION_CARD_SURFACE_CLASS = ORGANIZATION_CARD_SURFACE_CLASS; exports.ORGANIZATION_CARD_HEADER_CLASS = ORGANIZATION_CARD_HEADER_CLASS; exports.ORGANIZATION_CARD_TEXT_CLASS = ORGANIZATION_CARD_TEXT_CLASS; exports.ORGANIZATION_CARD_DESCRIPTION_CLASS = ORGANIZATION_CARD_DESCRIPTION_CLASS; exports.ORGANIZATION_CARD_FOOTER_CLASS = ORGANIZATION_CARD_FOOTER_CLASS; exports.ORGANIZATION_CARD_STATS_CLASS = ORGANIZATION_CARD_STATS_CLASS; exports.ORGANIZATION_CARD_STAT_CLASS = ORGANIZATION_CARD_STAT_CLASS; exports.OrganizationCard = OrganizationCard; exports.ServiceCard = ServiceCard; exports.Slider = Slider; exports.PersonCell = PersonCell; exports.PeopleCell = PeopleCell; exports.TitleContentBlock = TitleContentBlock; exports.ContentLoader = ContentLoader; exports.CardLoader = CardLoader; exports.FormLoader = FormLoader; exports.DetailLoader = DetailLoader; exports.ListLoader = ListLoader; exports.DataTableEmpty = DataTableEmpty; exports.ROW_HEIGHT_DESKTOP = ROW_HEIGHT_DESKTOP; exports.ROW_HEIGHT_MOBILE = ROW_HEIGHT_MOBILE; exports.ROW_SHELL_CLASSES = ROW_SHELL_CLASSES; exports.DATA_TABLE_ROW_FRAME_CLASS = DATA_TABLE_ROW_FRAME_CLASS; exports.ROW_STACK_CLASSES = ROW_STACK_CLASSES; exports.QueryReportTableRow = QueryReportTableRow; exports.QueryReportTableHeader = QueryReportTableHeader; exports.deriveColumns = deriveColumns; exports.exportToCSV = exportToCSV; exports.QueryReportTable = QueryReportTable; exports.CursorPagination = CursorPagination; exports.CursorPaginationSimple = CursorPaginationSimple; exports.useDataTableContext = useDataTableContext; exports.DataTableRoot = DataTableRoot; exports.getHideClasses = getHideClasses; exports.alignJustify = alignJustify; exports.multiSelectFilterFn = multiSelectFilterFn; exports.dataTableLoadingRows = dataTableLoadingRows; exports.DataTableRow = DataTableRow; exports.DataTableBody = DataTableBody; exports.DataTableCursorFooter = DataTableCursorFooter; exports.DynamicThemeProvider = DynamicThemeProvider; exports.useDynamicTheme = useDynamicTheme; exports.THEME_STORAGE_KEY = THEME_STORAGE_KEY; exports.THEME_ATTRIBUTE = THEME_ATTRIBUTE; exports.DEFAULT_THEME = DEFAULT_THEME; exports.ThemeProvider = ThemeProvider; exports.useTheme = useTheme; exports.useThemeToggle = useThemeToggle; exports.ArrayEntryManager = ArrayEntryManager; exports.PasswordInput = PasswordInput; exports.AccountDetailsFields = AccountDetailsFields; exports.TRIAL_TERM_ICONS = TRIAL_TERM_ICONS; exports.DEFAULT_TRIAL_TERMS = DEFAULT_TRIAL_TERMS; exports.trialBenefits = trialBenefits; exports.BenefitList = BenefitList; exports.AuthBenefitsPanel = AuthBenefitsPanel; exports.OpenFrameWordmark = OpenFrameWordmark; exports.PoweredByFlamingo = PoweredByFlamingo; exports.AuthShell = AuthShell; exports.BackToLoginLink = BackToLoginLink; exports.CompactAuthShell = CompactAuthShell; exports.LabeledDivider = LabeledDivider; exports.PROVIDER_META = PROVIDER_META; exports.SSO_PROVIDERS_SKELETON_COUNT = SSO_PROVIDERS_SKELETON_COUNT; exports.SsoProviderButtons = SsoProviderButtons; exports.CompleteAccountForm = CompleteAccountForm; exports.PolicyLink = PolicyLink; exports.TermsAgreementLabel = TermsAgreementLabel; exports.CreateOrganizationForm = CreateOrganizationForm; exports.InviteLinkInvalidModal = InviteLinkInvalidModal; exports.LegalLinks = LegalLinks; exports.LoginForm = LoginForm; exports.NoAccountNotice = NoAccountNotice; exports.OpenFrameSsoLoginForm = OpenFrameSsoLoginForm; exports.OpenFrameSsoSignUpForm = OpenFrameSsoSignUpForm; exports.PasswordResetForm = PasswordResetForm; exports.SsoAuthShell = SsoAuthShell; exports.SsoJoinForm = SsoJoinForm; exports.ProviderButton = ProviderButton; exports.AuthProvidersList = AuthProvidersList; exports.ChangelogManager = ChangelogManager; exports.ChangelogSectionsManager = ChangelogSectionsManager; exports.ClickUpTasksManager = ClickUpTasksManager; exports.CommandBox = CommandBox; exports.TAG_BADGE_CLASS = TAG_BADGE_CLASS; exports.ENTITY_TAG_BADGES_SKELETON_COUNT = ENTITY_TAG_BADGES_SKELETON_COUNT; exports.ENTITY_TAG_BADGES_PHONE_CAP = ENTITY_TAG_BADGES_PHONE_CAP; exports.EntityTagBadges = EntityTagBadges; exports.ErrorBoundary = ErrorBoundary; exports.SectionSelector = SectionSelector; exports.FigmaPrototypeViewer = FigmaPrototypeViewer; exports.FiltersDropdown = FiltersDropdown; exports.useFiltersDropdown = useFiltersDropdown; exports.GitHubReleasesManager = GitHubReleasesManager; exports.KnowledgeBaseLinksManager = KnowledgeBaseLinksManager; exports.LoadingProvider = LoadingProvider; exports.useLoading = useLoading; exports.useMediaIntake = useMediaIntake; exports.MediaUploadArea = MediaUploadArea; exports.MediaGalleryManager = MediaGalleryManager; exports.PushButtonSelector = PushButtonSelector; exports.MODEL_TOKEN_RATES_COPY = MODEL_TOKEN_RATES_COPY; exports.ModelTokenRates = ModelTokenRates; exports.ModelTokenRatesPopover = ModelTokenRatesPopover; exports.ModelTokenRatesUnavailable = ModelTokenRatesUnavailable; exports.MODEL_TOKEN_EXCHANGE_BALANCE = MODEL_TOKEN_EXCHANGE_BALANCE; exports.MODEL_TOKEN_EXCHANGE_RANGE = MODEL_TOKEN_EXCHANGE_RANGE; exports.ModelTokenExchange = ModelTokenExchange; exports.MoreAboutButton = MoreAboutButton; exports.OSTypeBadgeGroup = OSTypeBadgeGroup; exports.ParallaxImageShowcase = ParallaxImageShowcase; exports.PATHS_DISPLAY_SKELETON_ROWS = PATHS_DISPLAY_SKELETON_ROWS; exports.PathsDisplay = PathsDisplay; exports.OPENFRAME_PATHS = OPENFRAME_PATHS; exports.getOpenFramePaths = getOpenFramePaths; exports.OPENFRAME_DOCTOR_COMMANDS = OPENFRAME_DOCTOR_COMMANDS; exports.getOpenFrameDoctorCommand = getOpenFrameDoctorCommand; exports.PlatformFilterComponent = PlatformFilterComponent; exports.SelectButton = SelectButton; exports.ConfidenceBadge = ConfidenceBadge; exports.SEOEditorPreview = SEOEditorPreview; exports.socialIcon = socialIcon; exports.socialIconRowClass = socialIconRowClass; exports.socialIconButtonProps = socialIconButtonProps; exports.SocialIconRow = SocialIconRow; exports.SocialLinksManager = SocialLinksManager; exports.StartWithOpenFrameButton = StartWithOpenFrameButton; exports.STATUS_FILTER_SKELETON_PILLS = STATUS_FILTER_SKELETON_PILLS; exports.StatusFilterComponent = StatusFilterComponent; exports.TagsSelector = TagsSelector; exports.WarningBlock = WarningBlock; exports.VideoBitesDisplay = VideoBitesDisplay; exports.FloatingWalkthroughVideo = FloatingWalkthroughVideo; exports.InlineWalkthroughVideo = InlineWalkthroughVideo; exports.useWalkthroughVideo = useWalkthroughVideo; exports.VideoSourceSelector = VideoSourceSelector; exports.SubtitlesEditor = SubtitlesEditor; exports.TranscriptSummaryEditor = TranscriptSummaryEditor; exports.AIEnrichButton = AIEnrichButton; exports.AIWarningsSection = AIWarningsSection; exports.AIEnrichSection = AIEnrichSection; exports.HighlightVideoSection = HighlightVideoSection; exports.HighlightConfigSection = HighlightConfigSection; exports.EntitySummaryEditor = EntitySummaryEditor; exports.AIStatusIndicator = AIStatusIndicator; exports.AIRequiredBadge = AIRequiredBadge; exports.TranscribeSummarizeSection = TranscribeSummarizeSection; exports.VideoClipsSection = VideoClipsSection; exports.HighlightGenerationSection = HighlightGenerationSection; exports.HighlightVideoPreview = HighlightVideoPreview; exports.TranscribeAndSummarizeCombinedSection = TranscribeAndSummarizeCombinedSection; exports.HighlightVideoCombinedSection = HighlightVideoCombinedSection; exports.ViewToggle = ViewToggle; exports.APPROVAL_LEVELS = APPROVAL_LEVELS; exports.APPROVAL_LEVEL_META = APPROVAL_LEVEL_META; exports.ApprovalLevelView = ApprovalLevelView; exports.POLICY_CONFIGURATION_PANEL_SKELETON_CATEGORIES = POLICY_CONFIGURATION_PANEL_SKELETON_CATEGORIES; exports.PolicyConfigurationPanel = PolicyConfigurationPanel; exports.PoliciesTable = PoliciesTable; exports.PolicySummaryCards = PolicySummaryCards; exports.POLICY_STATUS_CONFIG = POLICY_STATUS_CONFIG; exports.getPolicyStatus = getPolicyStatus; exports.getPolicyTableStatus = getPolicyTableStatus; exports.computePolicySummary = computePolicySummary; exports.TENANT_EMPTY_VALUE = TENANT_EMPTY_VALUE; exports.accessStateTag = accessStateTag; exports.providerMark = providerMark2; exports.lastReadAt = lastReadAt; exports.formatLastRead = formatLastRead; exports.usersCountLabel = usersCountLabel; exports.TenantAccessCell = TenantAccessCell; exports.TenantCell = TenantCell; exports.TenantCustomerCell = TenantCustomerCell; exports.TENANT_COLUMNS = TENANT_COLUMNS; exports.TENANTS_TABLE_COLUMNS = TENANTS_TABLE_COLUMNS; exports.TenantsTableView = TenantsTableView; exports.PhoneInput = PhoneInput; exports.WaitlistForm = WaitlistForm; exports.NotificationsProvider = NotificationsProvider; exports.useNotifications = useNotifications; exports.useOptionalNotifications = useOptionalNotifications; exports.AppLayoutDrawerContainerContext = AppLayoutDrawerContainerContext; exports.useAppLayoutDrawerContainer = useAppLayoutDrawerContainer; exports.AppLayoutDrawerCoordinationContext = AppLayoutDrawerCoordinationContext; exports.AppLayoutDrawerRoot = AppLayoutDrawerRoot; exports.AppLayoutDrawerTrigger = AppLayoutDrawerTrigger; exports.AppLayoutDrawerClose = AppLayoutDrawerClose; exports.AppLayoutDrawerContent = AppLayoutDrawerContent; exports.AppLayoutDrawerHeader = AppLayoutDrawerHeader; exports.AppLayoutDrawerTitle = AppLayoutDrawerTitle; exports.AppLayoutDrawerDescription = AppLayoutDrawerDescription; exports.AppLayoutDrawerBody = AppLayoutDrawerBody; exports.AppLayoutDrawerFooter = AppLayoutDrawerFooter; exports.NotificationTile = NotificationTile; exports.NotificationDrawer = NotificationDrawer; exports.NotificationPopups = NotificationPopups; exports.TICKET_APPROVAL_REQUEST_TYPE = TICKET_APPROVAL_REQUEST_TYPE; exports.MINGO_APPROVAL_REQUEST_TYPE = MINGO_APPROVAL_REQUEST_TYPE; exports.isApprovalNotificationType = isApprovalNotificationType; exports.isApprovalNotification = isApprovalNotification; exports.getApprovalMeta = getApprovalMeta; exports.resolutionToStatus = resolutionToStatus; exports.approvalMetaToBatchData = approvalMetaToBatchData; exports.ApprovalRequestNotificationTile = ApprovalRequestNotificationTile; exports.TimeTrackerProvider = TimeTrackerProvider; exports.useTimeTracker = useTimeTracker; exports.useOptionalTimeTracker = useOptionalTimeTracker; exports.useTrackerClock = useTrackerClock; exports.TimeTrackerPanel = TimeTrackerPanel; exports.UnreadDot = UnreadDot; exports.UnreadCountBadge = UnreadCountBadge; exports.HeaderButton = HeaderButton; exports.TimeTrackerHeaderButton = TimeTrackerHeaderButton; exports.formatLastOnline = formatLastOnline; exports.getDeviceName = getDeviceName; exports.matchesDeviceName = matchesDeviceName; exports.DevicesViewConfigProvider = DevicesViewConfigProvider; exports.useDevicesViewConfig = useDevicesViewConfig; exports.useDeviceImageUrl = useDeviceImageUrl; exports.DeviceSelectionModeRadio = DeviceSelectionModeRadio; exports.getDeviceStatusConfig = getDeviceStatusConfig; exports.getDeviceOperatingSystem = getDeviceOperatingSystem; exports.DEVICE_STATUS = DEVICE_STATUS; exports.DEFAULT_VISIBLE_STATUSES = DEFAULT_VISIBLE_STATUSES; exports.DEFAULT_DASHBOARD_STATUSES = DEFAULT_DASHBOARD_STATUSES; exports.DEFAULT_DEVICES_LIST_STATUSES = DEFAULT_DEVICES_LIST_STATUSES; exports.DEVICE_ENRICHMENT_STATUSES = DEVICE_ENRICHMENT_STATUSES; exports.DEVICE_ENRICHMENT_FILTER = DEVICE_ENRICHMENT_FILTER; exports.HIDDEN_DEVICE_STATUSES = HIDDEN_DEVICE_STATUSES; exports.renderDeviceTypeIcon = renderDeviceTypeIcon; exports.DeviceTypeTile = DeviceTypeTile; exports.DeviceTagsFilterButton = DeviceTagsFilterButton; exports.DevicesFilterToolbar = DevicesFilterToolbar; exports.getDeviceActionsColumn = getDeviceActionsColumn; exports.getDeviceOpenColumn = getDeviceOpenColumn; exports.DevicesTableBody = DevicesTableBody; exports.getDeviceFilterColumns = getDeviceFilterColumns; exports.getDeviceTableColumns = getDeviceTableColumns; exports.useTagFilterModal = useTagFilterModal; exports.DeviceSelector = DeviceSelector; exports.EMPTY_NARROWING = EMPTY_NARROWING; exports.narrowingToFilter = narrowingToFilter; exports.DevicesGrid = DevicesGrid; exports.DevicesGridFilters = DevicesGridFilters; exports.EMPTY_DEVICES_NARROWING = EMPTY_DEVICES_NARROWING; exports.isNarrowed = isNarrowed; exports.DevicesList = DevicesList; exports.DEVICE_VIEW_MODE_ITEMS = DEVICE_VIEW_MODE_ITEMS; exports.buildDevicePanelActions = buildDevicePanelActions; exports.IDLE_DEVICES_TOOLBAR = IDLE_DEVICES_TOOLBAR; exports.DevicesPanelView = DevicesPanelView; exports.PACKAGE_MANAGERS = PACKAGE_MANAGERS; exports.PACKAGE_MANAGER_LABEL = PACKAGE_MANAGER_LABEL; exports.PACKAGE_MANAGER_ICON = PACKAGE_MANAGER_ICON; exports.PACKAGE_MANAGER_OS = PACKAGE_MANAGER_OS; exports.packageManagerLabel = packageManagerLabel; exports.SOFTWARE_SOURCE_LABEL = SOFTWARE_SOURCE_LABEL; exports.PACKAGE_SEARCH_LABEL = PACKAGE_SEARCH_LABEL; exports.PACKAGE_SEARCH_PLACEHOLDER = PACKAGE_SEARCH_PLACEHOLDER; exports.PackageSearchFieldPlaceholder = PackageSearchFieldPlaceholder; exports.SoftwareScheduleFields = SoftwareScheduleFields; exports.SOFTWARE_ACTION_COPY = SOFTWARE_ACTION_COPY; exports.SOFTWARE_ACTION_DETAIL_TITLE = SOFTWARE_ACTION_DETAIL_TITLE; exports.softwareActionCopy = softwareActionCopy; exports.newSoftwareRow = newSoftwareRow; exports.SoftwareRowFields = SoftwareRowFields; exports.SoftwareActionForm = SoftwareActionForm; exports.LogDrawer = LogDrawer; exports.SYSTEM_SOURCE_LABEL = SYSTEM_SOURCE_LABEL; exports.logSourceLabels = logSourceLabels; exports.LogsPageView = LogsPageView; exports.LogCopyIconButton = LogCopyIconButton; exports.LOG_COLUMN_WIDTHS = LOG_COLUMN_WIDTHS; exports.TOOL_CHIP_HEIGHT = TOOL_CHIP_HEIGHT; exports.ToolBadge = ToolBadge; exports.LogsTableView = LogsTableView; exports.logSeverityVariant = logSeverityVariant; exports.SCRIPT_EXECUTION_STATUS_PRESENTATION = SCRIPT_EXECUTION_STATUS_PRESENTATION; exports.scriptExecutionStatus = scriptExecutionStatus; exports.ExecutionSourceBadge = ExecutionSourceBadge; exports.ExecutionTimestampCell = ExecutionTimestampCell; exports.ExecutionStatusCell = ExecutionStatusCell; exports.ExecutionDeviceCell = ExecutionDeviceCell; exports.ExecutionInitiatorCell = ExecutionInitiatorCell; exports.ExecutionResultCell = ExecutionResultCell; exports.ScriptExecutionResult = ScriptExecutionResult; exports.ScriptNameCell = ScriptNameCell; exports.ScheduleDateTimeCell = ScheduleDateTimeCell; exports.SCRIPT_COLUMNS = SCRIPT_COLUMNS; exports.SCHEDULE_COLUMNS = SCHEDULE_COLUMNS; exports.EXECUTION_COLUMNS = EXECUTION_COLUMNS; exports.SCRIPTS_TAB_WIDTHS = SCRIPTS_TAB_WIDTHS; exports.SCRIPTS_TABLE_COLUMNS = SCRIPTS_TABLE_COLUMNS; exports.SCHEDULES_TABLE_COLUMNS = SCHEDULES_TABLE_COLUMNS; exports.EXECUTIONS_TABLE_COLUMNS = EXECUTIONS_TABLE_COLUMNS; exports.scriptsColumnMeta = scriptsColumnMeta; exports.RowActionsCell = RowActionsCell; exports.OpenInNewTabCell = OpenInNewTabCell; exports.ScriptExecutionsTable = ScriptExecutionsTable; exports.ScriptSchedulesTable = ScriptSchedulesTable; exports.SCRIPT_SHELL_TYPES = SCRIPT_SHELL_TYPES; exports.scriptShellType = scriptShellType; exports.scriptShellLabel = scriptShellLabel; exports.ScriptShellBadge = ScriptShellBadge; exports.ScriptsTable = ScriptsTable; exports.SCRIPTS_TABS = SCRIPTS_TABS; exports.SCRIPT_SCHEDULE_TRIGGER = SCRIPT_SCHEDULE_TRIGGER; exports.SCHEDULE_TIME_REFERENCE = SCHEDULE_TIME_REFERENCE; exports.SCHEDULE_OFFLINE_BEHAVIOR = SCHEDULE_OFFLINE_BEHAVIOR; exports.isEventTrigger = isEventTrigger; exports.isDeviceLocalTime = isDeviceLocalTime; exports.DURATION_UNIT_VALUES = DURATION_UNIT_VALUES; exports.DURATION_UNIT_SECONDS = DURATION_UNIT_SECONDS; exports.DURATION_UNIT_LABELS = DURATION_UNIT_LABELS; exports.MIN_REPEAT_MINUTES = MIN_REPEAT_MINUTES; exports.DURATION_UNIT_OPTIONS = DURATION_UNIT_OPTIONS; exports.snapRepeatInterval = snapRepeatInterval; exports.isRetryOnReconnect = isRetryOnReconnect; exports.MIN_RECONNECT_MINUTES = MIN_RECONNECT_MINUTES; exports.snapReconnectInterval = snapReconnectInterval; exports.DEFAULT_RECONNECT_WINDOW = DEFAULT_RECONNECT_WINDOW; exports.isSlotOnGrid = isSlotOnGrid; exports.getTimeSlotOptions = getTimeSlotOptions; exports.slotToLabel = slotToLabel; exports.startOfToday = startOfToday; exports.earliestDeviceLocalDay = earliestDeviceLocalDay; exports.earliestScheduleDay = earliestScheduleDay; exports.isScheduleStartInPast = isScheduleStartInPast; exports.PAST_START_MESSAGE = PAST_START_MESSAGE; exports.NO_SLOTS_TODAY_MESSAGE = NO_SLOTS_TODAY_MESSAGE; exports.isStartInPastAndChanged = isStartInPastAndChanged; exports.dateToTimeSlot = dateToTimeSlot; exports.applyTimeSlot = applyTimeSlot; exports.fromScheduleInstant = fromScheduleInstant; exports.EMPTY_SCHEDULE_SCRIPT_ROW = EMPTY_SCHEDULE_SCRIPT_ROW; exports.SCHEDULE_TRIGGER_OPTIONS = SCHEDULE_TRIGGER_OPTIONS; exports.SCHEDULE_TIME_REFERENCE_OPTIONS = SCHEDULE_TIME_REFERENCE_OPTIONS; exports.SCHEDULE_OFFLINE_BEHAVIOR_OPTIONS = SCHEDULE_OFFLINE_BEHAVIOR_OPTIONS; exports.DEFAULT_SCHEDULE_FORM_VALUES = DEFAULT_SCHEDULE_FORM_VALUES; exports.ScheduleIntervalInput = ScheduleIntervalInput; exports.ScheduleOfflineFields = ScheduleOfflineFields; exports.SLOT_STICKINESS = SLOT_STICKINESS; exports.SortableList = SortableList; exports.ScriptArguments = ScriptArguments; exports.SortableMoveButtons = SortableMoveButtons; exports.useSortableItem = useSortableItem; exports.ScheduleScriptPickerCard = ScheduleScriptPickerCard; exports.ScheduleScriptsField = ScheduleScriptsField; exports.ScheduleTimingFields = ScheduleTimingFields; exports.ScheduleFormFields = ScheduleFormFields; exports.ScheduleScriptSearchField = ScheduleScriptSearchField; exports.KNOWLEDGE_BASE_ITEM_ICON = KNOWLEDGE_BASE_ITEM_ICON; exports.getKnowledgeBaseOpenColumn = getKnowledgeBaseOpenColumn; exports.getKnowledgeBaseColumns = getKnowledgeBaseColumns; exports.KnowledgeBaseTableBody = KnowledgeBaseTableBody; exports.TicketAttachmentsList = TicketAttachmentsList; exports.TicketDetailSection = TicketDetailSection; exports.KnowledgeBaseArticleView = KnowledgeBaseArticleView; exports.SortableDragHandle = SortableDragHandle; exports.TICKET_STATUS_COLOR_PRESETS = TICKET_STATUS_COLOR_PRESETS; exports.CUSTOM_PRESET_KEY = CUSTOM_PRESET_KEY; exports.DEFAULT_CUSTOM_STATUS_COLOR = DEFAULT_CUSTOM_STATUS_COLOR; exports.ColorPresetSelect = ColorPresetSelect; exports.ColorPickerInput = ColorPickerInput; exports.TicketStatusConfigRow = TicketStatusConfigRow; exports.TICKET_STATUS_CONFIG_LIST_SKELETON_ROWS = TICKET_STATUS_CONFIG_LIST_SKELETON_ROWS; exports.TicketStatusConfigList = TicketStatusConfigList; exports.CONVERSATION_CARD_AVATAR_PX = CONVERSATION_CARD_AVATAR_PX; exports.ConversationCard = ConversationCard; exports.SNAP_CAROUSEL_GAP_PX = SNAP_CAROUSEL_GAP_PX; exports.SNAP_CAROUSEL_TRACK_CLASS = SNAP_CAROUSEL_TRACK_CLASS; exports.SnapCarouselSlide = SnapCarouselSlide; exports.SnapCarouselControls = SnapCarouselControls; exports.SnapCarousel = SnapCarousel; exports.capabilityTabId = capabilityTabId; exports.CapabilityExplorer = CapabilityExplorer; exports.DataTableHeader = DataTableHeader; exports.DATA_TABLE_HEADER_LABEL_CLASS = DATA_TABLE_HEADER_LABEL_CLASS; exports.DataTableInfiniteFooter = DataTableInfiniteFooter; exports.DataTableRowCount = DataTableRowCount; exports.useDataTable = useDataTable; exports.DataTable = DataTable; exports.flexRender = _reacttable.flexRender; exports.createColumnHelper = _reacttable.createColumnHelper; exports.getCoreRowModel = _reacttable.getCoreRowModel; exports.getExpandedRowModel = _reacttable.getExpandedRowModel; exports.getFacetedRowModel = _reacttable.getFacetedRowModel; exports.getFacetedUniqueValues = _reacttable.getFacetedUniqueValues; exports.getFilteredRowModel = _reacttable.getFilteredRowModel; exports.getGroupedRowModel = _reacttable.getGroupedRowModel; exports.getPaginationRowModel = _reacttable.getPaginationRowModel; exports.getSortedRowModel = _reacttable.getSortedRowModel; exports.SearchInput = SearchInput; exports.FilterListItem = FilterListItem; exports.FilterList = FilterList; exports.TagSearchInput = TagSearchInput; exports.MarkdownLinkDialog = MarkdownLinkDialog; exports.useMarkdownLinkCommand = useMarkdownLinkCommand; exports.MarkdownEditorFieldSkeleton = MarkdownEditorFieldSkeleton; exports.MarkdownEditor = MarkdownEditor; exports.FileUpload = FileUpload; exports.ImageUploader = ImageUploader; exports.formatTestRunDuration = formatTestRunDuration; exports.TestResultsTable = TestResultsTable; exports.TestRunErrorBanner = TestRunErrorBanner; exports.TestRunResults = TestRunResults; exports.TimingStat = TimingStat; exports.TestRunStatusStat = TestRunStatusStat; exports.useTestRunState = useTestRunState; exports.TicketNoteCard = TicketNoteCard; exports.TicketNotesSection = TicketNotesSection; exports.TicketInfoSection = TicketInfoSection; exports.renderTicketStatusOption = renderTicketStatusOption; exports.renderTicketAssigneeOption = renderTicketAssigneeOption; exports.withTicketAssigneeAvatars = withTicketAssigneeAvatars; exports.TakeOverTicketModal = TakeOverTicketModal; exports.ReopenTicketModal = ReopenTicketModal; exports.ReopenTicketRequestModal = ReopenTicketRequestModal; exports.PHOTO_WALL_FRAME = PHOTO_WALL_FRAME; exports.photoWallRequestWidth = photoWallRequestWidth; exports.photoOrientation = photoOrientation; exports.arrangePhotoWall = arrangePhotoWall; exports.PhotoWall = PhotoWall; exports.FilterPillRow = FilterPillRow; exports.LazyMount = LazyMount; exports.AppWindowFrame = AppWindowFrame; exports.PRODUCT_SCREEN_DESIGN_WIDTH = PRODUCT_SCREEN_DESIGN_WIDTH; exports.PRODUCT_SCREEN_READABLE_WIDTH = PRODUCT_SCREEN_READABLE_WIDTH; exports.PRODUCT_SCREEN_SCALE_FROM = PRODUCT_SCREEN_SCALE_FROM; exports.ProductScreenFrame = ProductScreenFrame; exports.PhoneFrame = PhoneFrame; exports.NotificationStack = NotificationStack; exports.StripCard = StripCard; exports.LeaderRow = LeaderRow; exports.AnalyzingState = AnalyzingState; exports.IncidentStatusLine = IncidentStatusLine; exports.IncidentFeed = IncidentFeed; exports.useBetweenAnchors = useBetweenAnchors; exports.StickyActionBar = StickyActionBar; exports.SuperUserBannerView = SuperUserBannerView; exports.IconTile = IconTile;
|