@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.
Files changed (76) hide show
  1. package/dist/build/export-map.json +1 -1
  2. package/dist/{chunk-WKVAD374.cjs → chunk-3B76QFXV.cjs} +4 -4
  3. package/dist/{chunk-BAOKF4OV.cjs → chunk-DDFT6VQ3.cjs} +3 -3
  4. package/dist/{chunk-3B6PFUL3.cjs → chunk-FRS2VO22.cjs} +71 -19
  5. package/dist/{chunk-224GFGSR.cjs → chunk-KCB72H7A.cjs} +16 -16
  6. package/dist/{chunk-XDVBSTFB.cjs → chunk-KITOT3DS.cjs} +7 -7
  7. package/dist/{chunk-QPHQVTJO.cjs → chunk-LUICXMHC.cjs} +2 -2
  8. package/dist/{chunk-Z4IYLXJU.cjs → chunk-OFGYPMTE.cjs} +15 -15
  9. package/dist/{chunk-QWB3CTGR.cjs → chunk-Q3C6UJJ7.cjs} +24 -24
  10. package/dist/{chunk-M5NBPOKJ.cjs → chunk-UVLTUSH3.cjs} +678 -640
  11. package/dist/{chunk-MBGUHO7Z.cjs → chunk-VKAFZCFV.cjs} +16 -16
  12. package/dist/{chunk-XCYL3TYS.cjs → chunk-VUKN6KEE.cjs} +34 -34
  13. package/dist/{chunk-74I2HT4X.cjs → chunk-WDL3GFH2.cjs} +12 -12
  14. package/dist/{chunk-IEDID3EB.cjs → chunk-WV44WJKR.cjs} +3 -3
  15. package/dist/{cloud-tenants-KL2COIBU.cjs → cloud-tenants-DJAA23GR.cjs} +3 -3
  16. package/dist/components/case-studies/index.cjs +12 -12
  17. package/dist/components/contact/index.cjs +4 -4
  18. package/dist/components/docs/index.cjs +6 -6
  19. package/dist/components/embeds/index.cjs +4 -4
  20. package/dist/components/faq/index.cjs +4 -4
  21. package/dist/components/features/index.cjs +3 -3
  22. package/dist/components/features/scripts/schedule-form/schedule-offline-fields.d.ts.map +1 -1
  23. package/dist/components/features/scripts/schedule-form/schedule-offline-fields.js +16 -4
  24. package/dist/components/features/scripts/schedule-form/schedule-timing-fields.d.ts +1 -1
  25. package/dist/components/features/scripts/schedule-form/schedule-timing-fields.d.ts.map +1 -1
  26. package/dist/components/features/scripts/schedule-form/schedule-timing-fields.js +9 -2
  27. package/dist/components/help-center-pages/index.cjs +55 -55
  28. package/dist/components/index.cjs +21 -19
  29. package/dist/components/meeting-scheduler/index.cjs +28 -28
  30. package/dist/components/navigation/index.cjs +4 -4
  31. package/dist/components/onboarding-guides/index.cjs +5 -5
  32. package/dist/components/product-demo/index.cjs +13 -13
  33. package/dist/components/tickets/index.cjs +6 -6
  34. package/dist/components/ui/assignee-dropdown.d.ts +10 -0
  35. package/dist/components/ui/assignee-dropdown.d.ts.map +1 -1
  36. package/dist/components/ui/assignee-dropdown.js +14 -2
  37. package/dist/components/ui/autocomplete.d.ts +24 -0
  38. package/dist/components/ui/autocomplete.d.ts.map +1 -1
  39. package/dist/components/ui/autocomplete.js +26 -4
  40. package/dist/components/ui/filter-modal.d.ts.map +1 -1
  41. package/dist/components/ui/filter-modal.js +1 -1
  42. package/dist/components/ui/index.cjs +5 -3
  43. package/dist/components/ui/reopen-ticket-modal.d.ts +17 -1
  44. package/dist/components/ui/reopen-ticket-modal.d.ts.map +1 -1
  45. package/dist/components/ui/reopen-ticket-modal.js +8 -15
  46. package/dist/components/ui/searchable-select.d.ts +17 -0
  47. package/dist/components/ui/searchable-select.d.ts.map +1 -1
  48. package/dist/components/ui/searchable-select.js +24 -9
  49. package/dist/components/ui/server-search-options.d.ts +30 -0
  50. package/dist/components/ui/server-search-options.d.ts.map +1 -0
  51. package/dist/components/ui/server-search-options.js +30 -0
  52. package/dist/components/ui/take-over-ticket-modal.d.ts +25 -1
  53. package/dist/components/ui/take-over-ticket-modal.d.ts.map +1 -1
  54. package/dist/components/ui/take-over-ticket-modal.js +14 -14
  55. package/dist/components/ui/ticket-info-section.d.ts +2 -0
  56. package/dist/components/ui/ticket-info-section.d.ts.map +1 -1
  57. package/dist/components/ui/ticket-info-section.js +2 -1
  58. package/dist/{devices-3HQDYLE2.cjs → devices-AIDQW4HB.cjs} +4 -4
  59. package/dist/index.cjs +6 -4
  60. package/dist/{knowledge-6LA6XYUR.cjs → knowledge-JWCFM3GO.cjs} +3 -3
  61. package/dist/{logs-R4YZI33F.cjs → logs-ZNIXPJXA.cjs} +11 -11
  62. package/dist/{policies-DGJMMGXN.cjs → policies-Z4NGPLA2.cjs} +7 -7
  63. package/dist/{remote-session-HLGLKOGW.cjs → remote-session-LMUFV2RZ.cjs} +4 -4
  64. package/dist/{scripts-6KR5UZQY.cjs → scripts-G4Y5SPOW.cjs} +10 -10
  65. package/dist/{software-update-R63SKZQM.cjs → software-update-VAOKDA76.cjs} +7 -7
  66. package/package.json +1 -1
  67. package/src/components/features/scripts/schedule-form/schedule-offline-fields.tsx +10 -1
  68. package/src/components/features/scripts/schedule-form/schedule-timing-fields.tsx +10 -4
  69. package/src/components/ui/assignee-dropdown.tsx +29 -1
  70. package/src/components/ui/autocomplete.tsx +68 -5
  71. package/src/components/ui/filter-modal.tsx +3 -1
  72. package/src/components/ui/reopen-ticket-modal.tsx +22 -14
  73. package/src/components/ui/searchable-select.tsx +52 -8
  74. package/src/components/ui/server-search-options.ts +65 -0
  75. package/src/components/ui/take-over-ticket-modal.tsx +35 -13
  76. package/src/components/ui/ticket-info-section.tsx +3 -0
@@ -4,10 +4,10 @@
4
4
  var _chunkRZNRKWG5cjs = require('./chunk-RZNRKWG5.cjs');
5
5
 
6
6
 
7
- var _chunkM5NBPOKJcjs = require('./chunk-M5NBPOKJ.cjs');
7
+ var _chunkUVLTUSH3cjs = require('./chunk-UVLTUSH3.cjs');
8
8
 
9
9
 
10
- var _chunk3B6PFUL3cjs = require('./chunk-3B6PFUL3.cjs');
10
+ var _chunkFRS2VO22cjs = require('./chunk-FRS2VO22.cjs');
11
11
 
12
12
 
13
13
  var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
@@ -36,7 +36,7 @@ function FaqDocumentPage({
36
36
  label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _ => _.label]), () => ( "Back to home")),
37
37
  onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _2 => _2.href]), () => ( "/")))
38
38
  };
39
- const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3B6PFUL3cjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
39
+ const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
40
40
  _chunkRZNRKWG5cjs.FaqSection,
41
41
  {
42
42
  initialFaqs,
@@ -53,7 +53,7 @@ function FaqDocumentPage({
53
53
  skeletonNav
54
54
  }
55
55
  ) });
56
- return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM5NBPOKJcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
56
+ return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUVLTUSH3cjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
57
57
  }
58
58
 
59
59
 
@@ -5,12 +5,12 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
5
5
 
6
6
 
7
7
 
8
- var _chunkM5NBPOKJcjs = require('./chunk-M5NBPOKJ.cjs');
8
+ var _chunkUVLTUSH3cjs = require('./chunk-UVLTUSH3.cjs');
9
9
 
10
10
  // src/components/product-demo/screens/devices-view.tsx
11
11
  var _jsxruntime = require('react/jsx-runtime');
12
12
  var DEVICES_SEARCH_QUERY = "Windows";
13
- var TOOLBAR = { ..._chunkM5NBPOKJcjs.IDLE_DEVICES_TOOLBAR, searchValue: DEVICES_SEARCH_QUERY };
13
+ var TOOLBAR = { ..._chunkUVLTUSH3cjs.IDLE_DEVICES_TOOLBAR, searchValue: DEVICES_SEARCH_QUERY };
14
14
  var NO_HEADER = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
15
15
  var HIDDEN_WHEN_COMPACT = ["organization"];
16
16
  var NO_DEVICES = [];
@@ -22,7 +22,7 @@ function DevicesScreenView({
22
22
  loading = false
23
23
  }) {
24
24
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
25
- _chunkM5NBPOKJcjs.DevicesPanelView,
25
+ _chunkUVLTUSH3cjs.DevicesPanelView,
26
26
  {
27
27
  className: "p-[var(--spacing-system-l)]",
28
28
  headerSlot: NO_HEADER,
@@ -291,6 +291,35 @@ var _lucidereact = require('lucide-react');
291
291
 
292
292
 
293
293
 
294
+ // src/components/ui/server-search-options.ts
295
+
296
+ function useSettledOptions(options, isLoading, enabled) {
297
+ const [settled, setSettled] = _react.useState.call(void 0, options);
298
+ if (enabled && !isLoading && settled !== options) setSettled(options);
299
+ return enabled && isLoading && options.length === 0 ? settled : options;
300
+ }
301
+ function useRememberedSelection(options, selected, enabled) {
302
+ const [remembered, setRemembered] = _react.useState.call(void 0, () => /* @__PURE__ */ new Map());
303
+ if (enabled) {
304
+ const next = /* @__PURE__ */ new Map();
305
+ for (const value of selected) {
306
+ const option = _nullishCoalesce(options.find((o) => o.value === value), () => ( remembered.get(value)));
307
+ if (option) next.set(value, option);
308
+ }
309
+ if (!hasSameEntries(next, remembered)) setRemembered(next);
310
+ }
311
+ return remembered;
312
+ }
313
+ function hasSameEntries(a, b) {
314
+ if (a.size !== b.size) return false;
315
+ for (const [key, value] of a) {
316
+ if (b.get(key) !== value) return false;
317
+ }
318
+ return true;
319
+ }
320
+
321
+ // src/components/ui/autocomplete.tsx
322
+
294
323
  var innerInputStyles = _chunk7JWFMAQBcjs.cn.call(void 0,
295
324
  "min-w-[60px] flex-1 border-none bg-transparent outline-none",
296
325
  "text-h4",
@@ -334,9 +363,12 @@ function AutocompleteInner(props, ref) {
334
363
  onDeleteOption,
335
364
  isDeletingOption = false,
336
365
  disableClientFilter = false,
366
+ onSearchChange,
367
+ selectedOptions: selectedOptionsProp,
337
368
  showChevron = true,
338
369
  clearOnOpen = true
339
370
  } = props;
371
+ const serverSearch = onSearchChange !== void 0;
340
372
  const multiple = _nullishCoalesce(props.multiple, () => ( false));
341
373
  const placeholder = _nullishCoalesce(props.placeholder, () => ( (multiple ? "Add More..." : "Select...")));
342
374
  const maxItems = multiple ? props.maxItems : void 0;
@@ -351,11 +383,20 @@ function AutocompleteInner(props, ref) {
351
383
  const [internalInputValue, setInternalInputValue] = _react.useState.call(void 0, "");
352
384
  const isInputControlled = inputValueProp !== void 0;
353
385
  const inputValue = isInputControlled ? inputValueProp : internalInputValue;
386
+ const reportedQueryRef = _react.useRef.call(void 0, "");
387
+ const reportQuery = (value, reason) => {
388
+ if (!onSearchChange) return;
389
+ const query = reason === "input" ? value : "";
390
+ if (query === reportedQueryRef.current) return;
391
+ reportedQueryRef.current = query;
392
+ onSearchChange(query);
393
+ };
354
394
  const updateInputValue = (value, reason) => {
355
395
  if (!isInputControlled) {
356
396
  setInternalInputValue(value);
357
397
  }
358
398
  _optionalChain([onInputChange, 'optionalCall', _ => _(value, reason)]);
399
+ reportQuery(value, reason);
359
400
  };
360
401
  const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
361
402
  const [highlightedIndex, setHighlightedIndex] = _react.useState.call(void 0, -1);
@@ -364,11 +405,15 @@ function AutocompleteInner(props, ref) {
364
405
  const hiddenTagsPopupRef = _react.useRef.call(void 0, null);
365
406
  const isInvalid = invalid || !!error;
366
407
  _react.useImperativeHandle.call(void 0, ref, () => containerRef.current);
408
+ const listedOptions = useSettledOptions(options, loading, serverSearch);
409
+ const rememberedSelection = useRememberedSelection(listedOptions, valueArray, serverSearch);
367
410
  const selectedOptions = _react.useMemo.call(void 0, () => {
368
- return valueArray.map((v) => _nullishCoalesce(options.find((opt) => opt.value === v), () => ( { label: String(v), value: v })));
369
- }, [valueArray, options]);
411
+ return valueArray.map(
412
+ (v) => _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(listedOptions.find((opt) => opt.value === v), () => ( _optionalChain([selectedOptionsProp, 'optionalAccess', _2 => _2.find, 'call', _3 => _3((opt) => opt.value === v)]))), () => ( rememberedSelection.get(v))), () => ( { label: String(v), value: v }))
413
+ );
414
+ }, [valueArray, listedOptions, selectedOptionsProp, rememberedSelection]);
370
415
  const selectedOption = !multiple && selectedOptions.length > 0 ? selectedOptions[0] : null;
371
- const resolvedStartAdornment = _nullishCoalesce(_nullishCoalesce(startAdornment, () => ( _optionalChain([selectedOption, 'optionalAccess', _2 => _2.icon]))), () => ( null));
416
+ const resolvedStartAdornment = _nullishCoalesce(_nullishCoalesce(startAdornment, () => ( _optionalChain([selectedOption, 'optionalAccess', _4 => _4.icon]))), () => ( null));
372
417
  const inputPlaceholder = multiple ? valueArray.length === 0 ? placeholder : "Add More..." : placeholder;
373
418
  const {
374
419
  visibleCount: autoVisibleCount,
@@ -392,8 +437,8 @@ function AutocompleteInner(props, ref) {
392
437
  if (!showHiddenTags) return void 0;
393
438
  const handleClick = (e) => {
394
439
  const target = e.target;
395
- const inButton = _optionalChain([hiddenTagsRef, 'access', _3 => _3.current, 'optionalAccess', _4 => _4.contains, 'call', _5 => _5(target)]);
396
- const inPopup = _optionalChain([hiddenTagsPopupRef, 'access', _6 => _6.current, 'optionalAccess', _7 => _7.contains, 'call', _8 => _8(target)]);
440
+ const inButton = _optionalChain([hiddenTagsRef, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.contains, 'call', _7 => _7(target)]);
441
+ const inPopup = _optionalChain([hiddenTagsPopupRef, 'access', _8 => _8.current, 'optionalAccess', _9 => _9.contains, 'call', _10 => _10(target)]);
397
442
  if (!inButton && !inPopup) {
398
443
  setShowHiddenTags(false);
399
444
  }
@@ -410,6 +455,9 @@ function AutocompleteInner(props, ref) {
410
455
  };
411
456
  const inputDisplayValue = !multiple && !isOpen && selectedOption ? selectedOption.label : inputValue;
412
457
  const filteredOptions = _react.useMemo.call(void 0, () => {
458
+ if (serverSearch) {
459
+ return listedOptions;
460
+ }
413
461
  if (disableClientFilter) {
414
462
  return options;
415
463
  }
@@ -421,7 +469,8 @@ function AutocompleteInner(props, ref) {
421
469
  }
422
470
  const lowerInput = inputValue.toLowerCase();
423
471
  return options.filter((opt) => opt.label.toLowerCase().includes(lowerInput));
424
- }, [options, inputValue, filterOptions, disableClientFilter]);
472
+ }, [options, listedOptions, serverSearch, inputValue, filterOptions, disableClientFilter]);
473
+ const showLoadingRows = loading && (!serverSearch || filteredOptions.length === 0);
425
474
  const showCreateOption = creatable && inputValue.trim().length > 0 && filteredOptions.length === 0;
426
475
  const isCreateTooLong = maxCreateLength != null && inputValue.trim().length > maxCreateLength;
427
476
  const handleCreate = () => {
@@ -436,7 +485,7 @@ function AutocompleteInner(props, ref) {
436
485
  }
437
486
  updateInputValue("", "reset");
438
487
  setIsOpen(false);
439
- _optionalChain([onCreateOption, 'optionalCall', _9 => _9(trimmed)]);
488
+ _optionalChain([onCreateOption, 'optionalCall', _11 => _11(trimmed)]);
440
489
  };
441
490
  const [highlightedFor, setHighlightedFor] = _react.useState.call(void 0, filteredOptions.length);
442
491
  if (highlightedFor !== filteredOptions.length) {
@@ -462,7 +511,7 @@ function AutocompleteInner(props, ref) {
462
511
  props.onChange([...valueArray, option.value]);
463
512
  }
464
513
  updateInputValue("", "reset");
465
- _optionalChain([inputRef, 'access', _10 => _10.current, 'optionalAccess', _11 => _11.focus, 'call', _12 => _12()]);
514
+ _optionalChain([inputRef, 'access', _12 => _12.current, 'optionalAccess', _13 => _13.focus, 'call', _14 => _14()]);
466
515
  } else {
467
516
  props.onChange(option.value);
468
517
  updateInputValue(clearOnOpen ? "" : option.label, "reset");
@@ -480,7 +529,8 @@ function AutocompleteInner(props, ref) {
480
529
  if (!isInputControlled) {
481
530
  setInternalInputValue("");
482
531
  }
483
- _optionalChain([onInputChange, 'optionalCall', _13 => _13("", "clear")]);
532
+ _optionalChain([onInputChange, 'optionalCall', _15 => _15("", "clear")]);
533
+ reportQuery("", "clear");
484
534
  setIsOpen(false);
485
535
  };
486
536
  const handleKeyDown = (e) => {
@@ -561,7 +611,7 @@ function AutocompleteInner(props, ref) {
561
611
  ),
562
612
  onClick: () => {
563
613
  if (!disabled) {
564
- _optionalChain([inputRef, 'access', _14 => _14.current, 'optionalAccess', _15 => _15.focus, 'call', _16 => _16()]);
614
+ _optionalChain([inputRef, 'access', _16 => _16.current, 'optionalAccess', _17 => _17.focus, 'call', _18 => _18()]);
565
615
  openDropdown();
566
616
  }
567
617
  },
@@ -689,15 +739,15 @@ function AutocompleteInner(props, ref) {
689
739
  collisionPadding: { bottom: keyboardPadding },
690
740
  onOpenAutoFocus: (e) => {
691
741
  e.preventDefault();
692
- _optionalChain([inputRef, 'access', _17 => _17.current, 'optionalAccess', _18 => _18.focus, 'call', _19 => _19()]);
742
+ _optionalChain([inputRef, 'access', _19 => _19.current, 'optionalAccess', _20 => _20.focus, 'call', _21 => _21()]);
693
743
  },
694
744
  onInteractOutside: (e) => {
695
- if (_optionalChain([containerRef, 'access', _20 => _20.current, 'optionalAccess', _21 => _21.contains, 'call', _22 => _22(e.target)])) {
745
+ if (_optionalChain([containerRef, 'access', _22 => _22.current, 'optionalAccess', _23 => _23.contains, 'call', _24 => _24(e.target)])) {
696
746
  e.preventDefault();
697
747
  }
698
748
  },
699
749
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, ScrollAreaPrimitive.Root, { className: "flex min-h-0 flex-col overflow-hidden", children: [
700
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScrollAreaPrimitive.Viewport, { className: "max-h-[240px] min-h-0 w-full [&>div]:!block", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { role: loading ? void 0 : "listbox", children: loading ? (
750
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScrollAreaPrimitive.Viewport, { className: "max-h-[240px] min-h-0 w-full [&>div]:!block", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { role: showLoadingRows ? void 0 : "listbox", children: showLoadingRows ? (
701
751
  // The options while they are read: the list's own rows, a label bar each (`loadingText` is what a
702
752
  // screen reader hears).
703
753
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLKQ33CMYcjs.LoadingRegion, { label: loadingText, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count: loadingRows, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: AUTOCOMPLETE_OPTION_ROW_CLASS, "aria-hidden": true, "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", className: "w-2/3" }) }) }) })
@@ -1174,7 +1224,7 @@ function IconButtonsVariant({
1174
1224
  const unknownSet = !!loadingProp;
1175
1225
  const desktopActions = actions.filter((a) => !a.showOnlyMobile);
1176
1226
  const hasMenuActions = !!menuActions && menuActions.some((g) => g.items.length > 0);
1177
- const isSingleAction = actions.length === 1 && !_optionalChain([actions, 'access', _23 => _23[0], 'access', _24 => _24.submenu, 'optionalAccess', _25 => _25.length]);
1227
+ const isSingleAction = actions.length === 1 && !_optionalChain([actions, 'access', _25 => _25[0], 'access', _26 => _26.submenu, 'optionalAccess', _27 => _27.length]);
1178
1228
  const singleAction = isSingleAction ? actions[0] : null;
1179
1229
  const useSingleActionMobile = isSingleAction && !hasMenuActions;
1180
1230
  const mobileMenuGroups = [{ items: actions.flatMap(actionToMenuItems) }, ..._nullishCoalesce(menuActions, () => ( []))];
@@ -1804,7 +1854,7 @@ function RemoteAccessRequestCard({
1804
1854
  }) {
1805
1855
  const { organizationName } = party;
1806
1856
  const siteUrl = _nullishCoalesce(party.organizationSiteUrl, () => ( void 0));
1807
- const openableSite = _optionalChain([siteUrl, 'optionalAccess', _26 => _26.startsWith, 'call', _27 => _27("https://")]) ? siteUrl : void 0;
1857
+ const openableSite = _optionalChain([siteUrl, 'optionalAccess', _28 => _28.startsWith, 'call', _29 => _29("https://")]) ? siteUrl : void 0;
1808
1858
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)] rounded-md border border-ods-border bg-ods-card p-[var(--spacing-system-xl)]", children: [
1809
1859
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "w-full text-ods-text-primary text-h2", children: "Your IT support team is requesting remote access" }),
1810
1860
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[var(--spacing-system-m)] rounded-md border border-ods-border bg-ods-bg p-[var(--spacing-system-m)]", children: [
@@ -2722,7 +2772,7 @@ function AssignTicketModal({
2722
2772
  setTicketIds(ids);
2723
2773
  setTitles((prev) => {
2724
2774
  const next = {};
2725
- for (const id of ids) next[id] = _nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'access', _28 => _28.find, 'call', _29 => _29((option) => option.value === id), 'optionalAccess', _30 => _30.label]), () => ( prev[id])), () => ( id));
2775
+ for (const id of ids) next[id] = _nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'access', _30 => _30.find, 'call', _31 => _31((option) => option.value === id), 'optionalAccess', _32 => _32.label]), () => ( prev[id])), () => ( id));
2726
2776
  return next;
2727
2777
  });
2728
2778
  };
@@ -2802,7 +2852,7 @@ function RemoteSessionEventList({ events, activeEventId, onSelect, className })
2802
2852
  "aria-current": event.id === activeEventId || void 0,
2803
2853
  "data-state": event.id === activeEventId ? "active" : void 0,
2804
2854
  "data-tone": "muted",
2805
- onClick: () => _optionalChain([onSelect, 'optionalCall', _31 => _31(event)]),
2855
+ onClick: () => _optionalChain([onSelect, 'optionalCall', _33 => _33(event)]),
2806
2856
  className: "items-start",
2807
2857
  children: [
2808
2858
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "w-[84px] shrink-0 text-ods-text-secondary text-h4", children: formatRemoteSessionOffset(event.offsetMs) }),
@@ -2832,7 +2882,7 @@ function RemoteSessionTimelineMarkers({
2832
2882
  type: "button",
2833
2883
  "aria-label": label,
2834
2884
  title: label,
2835
- onClick: () => _optionalChain([onSelect, 'optionalCall', _32 => _32(event)]),
2885
+ onClick: () => _optionalChain([onSelect, 'optionalCall', _34 => _34(event)]),
2836
2886
  style: { left: `${share * 100}%` },
2837
2887
  className: "absolute top-0 h-4 w-1 -translate-x-1/2",
2838
2888
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "block size-full rounded-md bg-ods-text-secondary" })
@@ -2971,4 +3021,6 @@ var DEVICE_WALLPAPER_CLASS = "bg-gradient-to-br from-ods-flamingo-cyan-secondary
2971
3021
 
2972
3022
 
2973
3023
 
2974
- exports.HiddenTagsPopup = HiddenTagsPopup; exports.TruncateText = TruncateText; exports.Autocomplete = Autocomplete; exports.Select = Select; exports.SelectGroup = SelectGroup; exports.SelectValue = SelectValue; exports.SelectTrigger = SelectTrigger; exports.SelectScrollUpButton = SelectScrollUpButton; exports.SelectScrollDownButton = SelectScrollDownButton; exports.SelectContent = SelectContent; exports.SelectLabel = SelectLabel; exports.SelectItem = SelectItem; exports.SelectSeparator = SelectSeparator; exports.BACK_BUTTON_SKELETON_CLASS = BACK_BUTTON_SKELETON_CLASS; exports.BackButton = BackButton; exports.PageActions = PageActions; exports.usePageActionsBottomPadding = usePageActionsBottomPadding; exports.PagePicture = PagePicture; exports.PageTitle = PageTitle; exports.ENTITY_IMAGE_SIZE = ENTITY_IMAGE_SIZE; exports.EntityImage = EntityImage; exports.TITLE_BLOCK_MIN_HEIGHT = TITLE_BLOCK_MIN_HEIGHT; exports.TitleBlock = TitleBlock; exports.PageLayout = PageLayout; exports.RemoteSessionViewers = RemoteSessionViewers; exports.RemoteSessionScope = RemoteSessionScope; exports.RemoteSessionOrgLogo = RemoteSessionOrgLogo; exports.RemoteSessionRecordingTag = RemoteSessionRecordingTag; exports.REMOTE_SESSION_DRAG_HANDLE_CLASS = REMOTE_SESSION_DRAG_HANDLE_CLASS; exports.RemoteSessionDragger = RemoteSessionDragger; exports.formatRemoteSessionElapsed = formatRemoteSessionElapsed; exports.useRemoteSessionTimer = useRemoteSessionTimer; exports.RemoteAccessRequestCard = RemoteAccessRequestCard; exports.RemoteSessionBlockFrame = RemoteSessionBlockFrame; exports.RemoteSessionEndButton = RemoteSessionEndButton; exports.RemoteSessionSummary = RemoteSessionSummary; exports.RemoteSessionMinimizedChip = RemoteSessionMinimizedChip; exports.RemoteSessionChatPanel = RemoteSessionChatPanel; exports.RemoteDesktopChatMessageRow = RemoteDesktopChatMessageRow; exports.REMOTE_DESKTOP_CHAT_END_USER_NAME = REMOTE_DESKTOP_CHAT_END_USER_NAME; exports.RemoteDesktopChatPanel = RemoteDesktopChatPanel; exports.RemoteDesktopFullscreenToolbar = RemoteDesktopFullscreenToolbar; exports.RemoteDesktopView = RemoteDesktopView; exports.RemoteSessionDialog = RemoteSessionDialog; exports.RemoteSessionBorder = RemoteSessionBorder; exports.RemoteSessionPill = RemoteSessionPill; exports.REMOTE_SESSION_KEEP_REASON_LABELS = REMOTE_SESSION_KEEP_REASON_LABELS; exports.KeepRecordingModal = KeepRecordingModal; exports.ReleaseKeepingModal = ReleaseKeepingModal; exports.AssignTicketModal = AssignTicketModal; exports.UnassignTicketModal = UnassignTicketModal; exports.formatRemoteSessionOffset = formatRemoteSessionOffset; exports.RemoteSessionEventList = RemoteSessionEventList; exports.RemoteSessionTimelineMarkers = RemoteSessionTimelineMarkers; exports.RemoteSessionStatusTag = RemoteSessionStatusTag; exports.RemoteSessionExpiry = RemoteSessionExpiry; exports.RemoteSessionStorageAlert = RemoteSessionStorageAlert; exports.DEVICE_WALLPAPER_CLASS = DEVICE_WALLPAPER_CLASS;
3024
+
3025
+
3026
+ exports.HiddenTagsPopup = HiddenTagsPopup; exports.useSettledOptions = useSettledOptions; exports.useRememberedSelection = useRememberedSelection; exports.TruncateText = TruncateText; exports.Autocomplete = Autocomplete; exports.Select = Select; exports.SelectGroup = SelectGroup; exports.SelectValue = SelectValue; exports.SelectTrigger = SelectTrigger; exports.SelectScrollUpButton = SelectScrollUpButton; exports.SelectScrollDownButton = SelectScrollDownButton; exports.SelectContent = SelectContent; exports.SelectLabel = SelectLabel; exports.SelectItem = SelectItem; exports.SelectSeparator = SelectSeparator; exports.BACK_BUTTON_SKELETON_CLASS = BACK_BUTTON_SKELETON_CLASS; exports.BackButton = BackButton; exports.PageActions = PageActions; exports.usePageActionsBottomPadding = usePageActionsBottomPadding; exports.PagePicture = PagePicture; exports.PageTitle = PageTitle; exports.ENTITY_IMAGE_SIZE = ENTITY_IMAGE_SIZE; exports.EntityImage = EntityImage; exports.TITLE_BLOCK_MIN_HEIGHT = TITLE_BLOCK_MIN_HEIGHT; exports.TitleBlock = TitleBlock; exports.PageLayout = PageLayout; exports.RemoteSessionViewers = RemoteSessionViewers; exports.RemoteSessionScope = RemoteSessionScope; exports.RemoteSessionOrgLogo = RemoteSessionOrgLogo; exports.RemoteSessionRecordingTag = RemoteSessionRecordingTag; exports.REMOTE_SESSION_DRAG_HANDLE_CLASS = REMOTE_SESSION_DRAG_HANDLE_CLASS; exports.RemoteSessionDragger = RemoteSessionDragger; exports.formatRemoteSessionElapsed = formatRemoteSessionElapsed; exports.useRemoteSessionTimer = useRemoteSessionTimer; exports.RemoteAccessRequestCard = RemoteAccessRequestCard; exports.RemoteSessionBlockFrame = RemoteSessionBlockFrame; exports.RemoteSessionEndButton = RemoteSessionEndButton; exports.RemoteSessionSummary = RemoteSessionSummary; exports.RemoteSessionMinimizedChip = RemoteSessionMinimizedChip; exports.RemoteSessionChatPanel = RemoteSessionChatPanel; exports.RemoteDesktopChatMessageRow = RemoteDesktopChatMessageRow; exports.REMOTE_DESKTOP_CHAT_END_USER_NAME = REMOTE_DESKTOP_CHAT_END_USER_NAME; exports.RemoteDesktopChatPanel = RemoteDesktopChatPanel; exports.RemoteDesktopFullscreenToolbar = RemoteDesktopFullscreenToolbar; exports.RemoteDesktopView = RemoteDesktopView; exports.RemoteSessionDialog = RemoteSessionDialog; exports.RemoteSessionBorder = RemoteSessionBorder; exports.RemoteSessionPill = RemoteSessionPill; exports.REMOTE_SESSION_KEEP_REASON_LABELS = REMOTE_SESSION_KEEP_REASON_LABELS; exports.KeepRecordingModal = KeepRecordingModal; exports.ReleaseKeepingModal = ReleaseKeepingModal; exports.AssignTicketModal = AssignTicketModal; exports.UnassignTicketModal = UnassignTicketModal; exports.formatRemoteSessionOffset = formatRemoteSessionOffset; exports.RemoteSessionEventList = RemoteSessionEventList; exports.RemoteSessionTimelineMarkers = RemoteSessionTimelineMarkers; exports.RemoteSessionStatusTag = RemoteSessionStatusTag; exports.RemoteSessionExpiry = RemoteSessionExpiry; exports.RemoteSessionStorageAlert = RemoteSessionStorageAlert; exports.DEVICE_WALLPAPER_CLASS = DEVICE_WALLPAPER_CLASS;
@@ -18,7 +18,7 @@ var _chunkOAJ3AL4Vcjs = require('./chunk-OAJ3AL4V.cjs');
18
18
 
19
19
 
20
20
 
21
- var _chunkM5NBPOKJcjs = require('./chunk-M5NBPOKJ.cjs');
21
+ var _chunkUVLTUSH3cjs = require('./chunk-UVLTUSH3.cjs');
22
22
 
23
23
 
24
24
  var _chunkNG3RKTQUcjs = require('./chunk-NG3RKTQU.cjs');
@@ -193,7 +193,7 @@ function NavItemRow({
193
193
  className
194
194
  }) {
195
195
  const label = navLinkLabel(link);
196
- const counter = badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM5NBPOKJcjs.UnreadCountBadge, { count: badge, className: "static shrink-0" }) : null;
196
+ const counter = badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUVLTUSH3cjs.UnreadCountBadge, { count: badge, className: "static shrink-0" }) : null;
197
197
  const singleLine = !link.description && !link.builtOn;
198
198
  const rowClassName = _chunk7JWFMAQBcjs.cn.call(void 0,
199
199
  ROW_CLASSES[variant],
@@ -615,7 +615,7 @@ function SiteHeader({
615
615
  leading: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
616
616
  leading,
617
617
  mobile && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
618
- _chunkM5NBPOKJcjs.HeaderButton,
618
+ _chunkUVLTUSH3cjs.HeaderButton,
619
619
  {
620
620
  className: "border-r border-ods-border lg:hidden",
621
621
  onClick: mobile.onToggle,
@@ -923,7 +923,7 @@ function SiteFooter({
923
923
  const columns = nav.footerColumns;
924
924
  const accordion = columns.length > ACCORDION_OVER;
925
925
  const socialRow = _nullishCoalesce(social, () => ( (nav.brand.social.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
926
- _chunkM5NBPOKJcjs.SocialIconRow,
926
+ _chunkUVLTUSH3cjs.SocialIconRow,
927
927
  {
928
928
  compact: true,
929
929
  links: nav.brand.social.map((link) => ({
@@ -1236,7 +1236,7 @@ function PageSectionBar({ sections: listed, label, brand, action }) {
1236
1236
  });
1237
1237
  if (sections.length === 0 && !inScope) return null;
1238
1238
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1239
- _chunkM5NBPOKJcjs.PageContainer,
1239
+ _chunkUVLTUSH3cjs.PageContainer,
1240
1240
  {
1241
1241
  as: "div",
1242
1242
  backgroundClassName: "sticky z-30 border-b border-ods-border bg-ods-bg transition-[top] duration-300 ease-in-out motion-reduce:transition-none",
@@ -1339,7 +1339,7 @@ function LoadedNavigationSidebarItemButton({
1339
1339
  const content = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1340
1340
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex flex-shrink-0 items-center justify-center", children: [
1341
1341
  _react.cloneElement.call(void 0, item.icon, { color: "inherit" }),
1342
- hasUnread && !showLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM5NBPOKJcjs.UnreadDot, { size: "fixed" })
1342
+ hasUnread && !showLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUVLTUSH3cjs.UnreadDot, { size: "fixed" })
1343
1343
  ] }),
1344
1344
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1345
1345
  "span",
@@ -1757,7 +1757,7 @@ function TicketAlertsButton({ href, onNavigate, disabled, className }) {
1757
1757
  else window.location.assign(target);
1758
1758
  };
1759
1759
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1760
- _chunkM5NBPOKJcjs.HeaderButton,
1760
+ _chunkUVLTUSH3cjs.HeaderButton,
1761
1761
  {
1762
1762
  icon: (
1763
1763
  // Glyph inherits HeaderButton's standard cell coloring (secondary at
@@ -1767,7 +1767,7 @@ function TicketAlertsButton({ href, onNavigate, disabled, className }) {
1767
1767
  // existing while updates are unread — never by tinting the glyph.
1768
1768
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "relative inline-flex", children: [
1769
1769
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk365ZKGGOcjs.LifeBuoyIcon, { className: "h-6 w-6" }),
1770
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM5NBPOKJcjs.UnreadCountBadge, { count: live.unreadTotal })
1770
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUVLTUSH3cjs.UnreadCountBadge, { count: live.unreadTotal })
1771
1771
  ] })
1772
1772
  ),
1773
1773
  "aria-label": `Support tickets \u2014 ${live.unreadTotal} unread ${live.unreadTotal === 1 ? "update" : "updates"}`,
@@ -1844,7 +1844,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
1844
1844
  leading: (
1845
1845
  // Mobile: Burger Menu Button
1846
1846
  !isMdUp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1847
- _chunkM5NBPOKJcjs.HeaderButton,
1847
+ _chunkUVLTUSH3cjs.HeaderButton,
1848
1848
  {
1849
1849
  onClick: onToggleMobileMenu,
1850
1850
  isActive: isMobileMenuOpen,
@@ -1870,7 +1870,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
1870
1870
  center: showSearch ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderGlobalSearch, { onSubmit: onSearch, className: _chunk7JWFMAQBcjs.cn.call(void 0, "w-full", dimmedClass) }) : void 0,
1871
1871
  sideActions: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1872
1872
  showSearch && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1873
- _chunkM5NBPOKJcjs.HeaderButton,
1873
+ _chunkUVLTUSH3cjs.HeaderButton,
1874
1874
  {
1875
1875
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ74QE57Tcjs.SearchIcon, { className: "h-6 w-6" }),
1876
1876
  "aria-label": "Search",
@@ -1887,7 +1887,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
1887
1887
  className: _chunk7JWFMAQBcjs.cn.call(void 0, "hidden lg:flex", dimmedClass)
1888
1888
  }
1889
1889
  ),
1890
- showTimeTracker && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM5NBPOKJcjs.TimeTrackerHeaderButton, { disabled, className: _chunk7JWFMAQBcjs.cn.call(void 0, cellDivider, dimmedClass) }),
1890
+ showTimeTracker && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUVLTUSH3cjs.TimeTrackerHeaderButton, { disabled, className: _chunk7JWFMAQBcjs.cn.call(void 0, cellDivider, dimmedClass) }),
1891
1891
  showNotifications && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1892
1892
  NotificationsHeaderButton,
1893
1893
  {
@@ -1907,7 +1907,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
1907
1907
  ),
1908
1908
  isMdUp && showUser && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNL3G642Ucjs.DropdownMenu, { children: [
1909
1909
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNL3G642Ucjs.DropdownMenuTrigger, { asChild: true, disabled, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1910
- _chunkM5NBPOKJcjs.HeaderButton,
1910
+ _chunkUVLTUSH3cjs.HeaderButton,
1911
1911
  {
1912
1912
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1913
1913
  _chunkTGOJHOQRcjs.SquareAvatar,
@@ -1992,12 +1992,12 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
1992
1992
  );
1993
1993
  });
1994
1994
  function NotificationsHeaderButton({ fallbackUnreadCount, disabled, dimmedClass }) {
1995
- const ctx = _chunkM5NBPOKJcjs.useOptionalNotifications.call(void 0, );
1995
+ const ctx = _chunkUVLTUSH3cjs.useOptionalNotifications.call(void 0, );
1996
1996
  const hasUnread = (_nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _56 => _56.unreadCount]), () => ( fallbackUnreadCount))) > 0;
1997
1997
  const isActive = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _57 => _57.isOpen]), () => ( false));
1998
1998
  const onClick = _optionalChain([ctx, 'optionalAccess', _58 => _58.toggle]);
1999
1999
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2000
- _chunkM5NBPOKJcjs.HeaderButton,
2000
+ _chunkUVLTUSH3cjs.HeaderButton,
2001
2001
  {
2002
2002
  icon: isActive ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, { className: "h-6 w-6" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCON36SEJcjs.BellIcon, { className: "h-6 w-6" }),
2003
2003
  showUnreadDot: !isActive && hasUnread,
@@ -2650,7 +2650,7 @@ function AppLayout({
2650
2650
  }),
2651
2651
  []
2652
2652
  );
2653
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM5NBPOKJcjs.AppLayoutDrawerContainerContext.Provider, { value: drawerContainer, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM5NBPOKJcjs.AppLayoutDrawerCoordinationContext.Provider, { value: drawerCoordination, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex h-screen flex-col bg-ods-bg", className), children: [
2653
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUVLTUSH3cjs.AppLayoutDrawerContainerContext.Provider, { value: drawerContainer, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUVLTUSH3cjs.AppLayoutDrawerCoordinationContext.Provider, { value: drawerCoordination, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex h-screen flex-col bg-ods-bg", className), children: [
2654
2654
  topBar,
2655
2655
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex min-h-0 flex-1", children: [
2656
2656
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NavigationSidebar, { config: sidebarConfig, disabled, pushOnTablet: hasSidePanel }),
@@ -2674,7 +2674,7 @@ function AppLayout({
2674
2674
  disabled
2675
2675
  }
2676
2676
  ),
2677
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM5NBPOKJcjs.NotificationDrawer, {}),
2677
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUVLTUSH3cjs.NotificationDrawer, {}),
2678
2678
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2679
2679
  "div",
2680
2680
  {
@@ -15,10 +15,10 @@ var _chunkHEVW75L3cjs = require('./chunk-HEVW75L3.cjs');
15
15
 
16
16
 
17
17
 
18
- var _chunkM5NBPOKJcjs = require('./chunk-M5NBPOKJ.cjs');
18
+ var _chunkUVLTUSH3cjs = require('./chunk-UVLTUSH3.cjs');
19
19
 
20
20
 
21
- var _chunk3B6PFUL3cjs = require('./chunk-3B6PFUL3.cjs');
21
+ var _chunkFRS2VO22cjs = require('./chunk-FRS2VO22.cjs');
22
22
 
23
23
 
24
24
  var _chunkBT53NHR7cjs = require('./chunk-BT53NHR7.cjs');
@@ -105,7 +105,7 @@ function PageDataSyncProvider({
105
105
  function PageDataSyncRow({ inline = false }) {
106
106
  const context = _react.useContext.call(void 0, PageDataSyncContext);
107
107
  if (!context) return null;
108
- const line = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM5NBPOKJcjs.DataSyncLine, { sync: context.state.sync, loading: context.state.loading, stated: context.stated, inline });
108
+ const line = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUVLTUSH3cjs.DataSyncLine, { sync: context.state.sync, loading: context.state.loading, stated: context.stated, inline });
109
109
  return context.stated ? line : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "contents", "data-loading-optional": "", children: line });
110
110
  }
111
111
  function usePageDataSync(sync, loading) {
@@ -166,7 +166,7 @@ function DevSectionView({ sectionKey, preControls, children, showHeading = true
166
166
  preControls,
167
167
  (search || filter) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
168
168
  search && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
169
- _chunkM5NBPOKJcjs.SearchInput,
169
+ _chunkUVLTUSH3cjs.SearchInput,
170
170
  {
171
171
  showDropdown: false,
172
172
  placeholder: search.placeholder,
@@ -176,7 +176,7 @@ function DevSectionView({ sectionKey, preControls, children, showHeading = true
176
176
  }
177
177
  ),
178
178
  filter && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
179
- _chunkM5NBPOKJcjs.StatusFilterComponent,
179
+ _chunkUVLTUSH3cjs.StatusFilterComponent,
180
180
  {
181
181
  selectedStatus: currentFilterValue,
182
182
  onStatusChange: handleFilterChange,
@@ -214,7 +214,7 @@ function DevSectionPage({
214
214
  // duplicate title. (The hero icon is intentionally dropped: TitleBlock is
215
215
  // frozen and renders title-only.)
216
216
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
217
- _chunk3B6PFUL3cjs.PageLayout,
217
+ _chunkFRS2VO22cjs.PageLayout,
218
218
  {
219
219
  title: _nullishCoalesce(title, () => ( section.hero.title)),
220
220
  subtitle: _nullishCoalesce(subtitle, () => ( section.hero.description)),
@@ -228,7 +228,7 @@ function DevSectionPage({
228
228
  }
229
229
  )
230
230
  );
231
- return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM5NBPOKJcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
231
+ return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUVLTUSH3cjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
232
232
  }
233
233
 
234
234
  // src/components/shared/dev-section/dev-card-row.tsx
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
2
2
 
3
3
 
4
- var _chunkM5NBPOKJcjs = require('./chunk-M5NBPOKJ.cjs');
4
+ var _chunkUVLTUSH3cjs = require('./chunk-UVLTUSH3.cjs');
5
5
 
6
6
 
7
7
 
@@ -72,7 +72,7 @@ function DocSearchBar({
72
72
  renderResult
73
73
  }) {
74
74
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
75
- _chunkM5NBPOKJcjs.SearchInput,
75
+ _chunkUVLTUSH3cjs.SearchInput,
76
76
  {
77
77
  placeholder,
78
78
  value: query,
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkIEDID3EBcjs = require('./chunk-IEDID3EB.cjs');
6
+ var _chunkWV44WJKRcjs = require('./chunk-WV44WJKR.cjs');
7
7
 
8
8
 
9
9
 
@@ -13,17 +13,17 @@ var _chunk5UTJARDMcjs = require('./chunk-5UTJARDM.cjs');
13
13
 
14
14
 
15
15
 
16
- var _chunkQPHQVTJOcjs = require('./chunk-QPHQVTJO.cjs');
16
+ var _chunkLUICXMHCcjs = require('./chunk-LUICXMHC.cjs');
17
17
 
18
18
 
19
19
 
20
20
 
21
21
 
22
22
 
23
- var _chunkM5NBPOKJcjs = require('./chunk-M5NBPOKJ.cjs');
23
+ var _chunkUVLTUSH3cjs = require('./chunk-UVLTUSH3.cjs');
24
24
 
25
25
 
26
- var _chunk3B6PFUL3cjs = require('./chunk-3B6PFUL3.cjs');
26
+ var _chunkFRS2VO22cjs = require('./chunk-FRS2VO22.cjs');
27
27
 
28
28
 
29
29
 
@@ -354,7 +354,7 @@ function toDocContent(value, requestedPath) {
354
354
  function toDataSync(value) {
355
355
  if (!isRecord(value)) return void 0;
356
356
  const source = readString(value, "source");
357
- if (!_chunkM5NBPOKJcjs.isDataSyncSource.call(void 0, source)) return void 0;
357
+ if (!_chunkUVLTUSH3cjs.isDataSyncSource.call(void 0, source)) return void 0;
358
358
  return { source, syncedAt: _nullishCoalesce(readString(value, "syncedAt"), () => ( null)) };
359
359
  }
360
360
  function useDocumentTree(config, initialPath) {
@@ -760,7 +760,7 @@ function DocViewerContent({
760
760
  label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _12 => _12.label]), () => ( "Back to home")),
761
761
  onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _13 => _13.href]), () => ( "/")))
762
762
  };
763
- const docSearch = _chunkQPHQVTJOcjs.useDocSearch.call(void 0, {
763
+ const docSearch = _chunkLUICXMHCcjs.useDocSearch.call(void 0, {
764
764
  source: chatSource,
765
765
  baseRoute,
766
766
  searchEndpoint,
@@ -795,10 +795,10 @@ function DocViewerContent({
795
795
  const containerBgStyle = colorPalette.containerBackground !== "transparent" ? { backgroundColor: colorPalette.containerBackground } : {};
796
796
  const defaultEmptyText = structure.length > 0 ? "Select a document from the sidebar to view" : "No documents yet. Add content from the admin panel.";
797
797
  const resolvedEmptyText = emptyStateText || defaultEmptyText;
798
- const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3B6PFUL3cjs.PageLayout, { title, subtitle, titleSize: "h1", titleWrap: true, backButton: _nullishCoalesce(backCfg, () => ( void 0)), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-10", children: [
799
- synced && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM5NBPOKJcjs.DataSyncLine, { sync: _optionalChain([content, 'optionalAccess', _19 => _19.sync]), loading: !content && (isLoadingContent || isLoadingStructure) }),
798
+ const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.PageLayout, { title, subtitle, titleSize: "h1", titleWrap: true, backButton: _nullishCoalesce(backCfg, () => ( void 0)), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-10", children: [
799
+ synced && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUVLTUSH3cjs.DataSyncLine, { sync: _optionalChain([content, 'optionalAccess', _19 => _19.sync]), loading: !content && (isLoadingContent || isLoadingStructure) }),
800
800
  showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
801
- _chunkQPHQVTJOcjs.DocSearchBar,
801
+ _chunkLUICXMHCcjs.DocSearchBar,
802
802
  {
803
803
  placeholder: `Search ${_optionalChain([sidebarLabel, 'optionalAccess', _20 => _20.toLowerCase, 'call', _21 => _21()]) || "documents"}...`,
804
804
  query: docSearch.query,
@@ -887,7 +887,7 @@ function DocViewerContent({
887
887
  ) })
888
888
  ] })
889
889
  ] }) }) });
890
- return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM5NBPOKJcjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
890
+ return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUVLTUSH3cjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
891
891
  }
892
892
 
893
893
  // src/components/docs/skeletons.tsx
@@ -959,7 +959,7 @@ function EmbedSkeleton({ documentType, region = true } = {}) {
959
959
  ] }),
960
960
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full items-center gap-2 content-sm:w-auto", children: Array.from({ length: buttonCount }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.UnifiedSkeleton, { className: "h-10 w-full flex-1 rounded content-sm:w-32 content-sm:flex-initial" }, i)) })
961
961
  ] }),
962
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM5NBPOKJcjs.EmbedLoadingSkeleton, { region: false })
962
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUVLTUSH3cjs.EmbedLoadingSkeleton, { region: false })
963
963
  ] });
964
964
  }
965
965
 
@@ -967,11 +967,11 @@ function EmbedSkeleton({ documentType, region = true } = {}) {
967
967
 
968
968
  var DEFAULT_TITLE = "Documents";
969
969
  var defaultFallbackRenderer = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "py-16 text-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: "Unsupported document type" }) });
970
- var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIEDID3EBcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
971
- var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIEDID3EBcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
972
- var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM5NBPOKJcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
970
+ var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWV44WJKRcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
971
+ var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWV44WJKRcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
972
+ var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUVLTUSH3cjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
973
973
  var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
974
- _chunkIEDID3EBcjs.FileDownloadCard,
974
+ _chunkWV44WJKRcjs.FileDownloadCard,
975
975
  {
976
976
  fileName: content.fileName,
977
977
  mimeType: content.mimeType,