@flamingo-stack/openframe-frontend-core 0.0.785 → 0.0.787

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 (56) hide show
  1. package/dist/{chunk-GX6YLDAS.cjs → chunk-3UB47O7L.cjs} +2 -2
  2. package/dist/{chunk-3ITHC2Y4.cjs → chunk-3ZYZOK7Z.cjs} +4 -4
  3. package/dist/{chunk-FDPAD7GS.cjs → chunk-75IHI7JO.cjs} +11 -11
  4. package/dist/{chunk-G7COLTR6.cjs → chunk-BAM6JT53.cjs} +4 -4
  5. package/dist/{chunk-DGUZUOWN.cjs → chunk-CF6IERIA.cjs} +14 -14
  6. package/dist/{chunk-NVWROBPF.cjs → chunk-HF35SNRU.cjs} +450 -439
  7. package/dist/{chunk-BQDO7PU7.cjs → chunk-HQJ56PDG.cjs} +30 -30
  8. package/dist/{chunk-EOZ23WOY.cjs → chunk-HQY6KYUD.cjs} +1 -1
  9. package/dist/{chunk-WNKOWR3E.cjs → chunk-ICVLG6MM.cjs} +4 -4
  10. package/dist/{chunk-7W3NVU4V.cjs → chunk-JFYHFBJ7.cjs} +4 -4
  11. package/dist/{chunk-5PVYYZEK.cjs → chunk-K2JUZV3X.cjs} +2 -2
  12. package/dist/{chunk-7FCOQCAK.cjs → chunk-LGUHTN46.cjs} +39 -39
  13. package/dist/{chunk-WLHHXAT7.cjs → chunk-NR6YD7BL.cjs} +2 -2
  14. package/dist/{chunk-2PMLX52X.cjs → chunk-PZ5ZMKKB.cjs} +16 -16
  15. package/dist/{chunk-EQKMFQ5J.cjs → chunk-RGGV3YOP.cjs} +37 -37
  16. package/dist/{chunk-EIXFIGLX.cjs → chunk-U5Z6FOMI.cjs} +11 -11
  17. package/dist/{chunk-JZUBBNTT.cjs → chunk-UY2NXJFL.cjs} +61 -61
  18. package/dist/{chunk-OOSSOL7E.cjs → chunk-W5ANQT3I.cjs} +32 -32
  19. package/dist/{chunk-YCSX7MCG.cjs → chunk-WFMLODQ4.cjs} +25 -25
  20. package/dist/{chunk-NXUL4W7Q.cjs → chunk-WM6QMQDO.cjs} +3 -3
  21. package/dist/{chunk-FFW3IY5E.cjs → chunk-XQAKD5QY.cjs} +48 -48
  22. package/dist/{chunk-7QK4R7UU.cjs → chunk-Y5RXNEO2.cjs} +2 -2
  23. package/dist/{chunk-Q73MAT62.cjs → chunk-YNMGACZT.cjs} +3 -3
  24. package/dist/{chunk-55KZW2P2.cjs → chunk-YXNETOPJ.cjs} +13 -13
  25. package/dist/{chunk-LCPJNG5M.cjs → chunk-ZDP5WEFF.cjs} +68 -68
  26. package/dist/{cloud-tenants-TJSSGC5O.cjs → cloud-tenants-Y2GSQAMJ.cjs} +6 -6
  27. package/dist/components/case-studies/index.cjs +20 -20
  28. package/dist/components/chat/entity-cards/program-card.js +1 -1
  29. package/dist/components/chat/index.cjs +5 -5
  30. package/dist/components/contact/index.cjs +7 -7
  31. package/dist/components/docs/index.cjs +10 -10
  32. package/dist/components/embeds/index.cjs +7 -7
  33. package/dist/components/faq/index.cjs +8 -8
  34. package/dist/components/features/index.cjs +6 -6
  35. package/dist/components/help-center-pages/index.cjs +82 -82
  36. package/dist/components/index.cjs +52 -52
  37. package/dist/components/meeting-scheduler/index.cjs +38 -38
  38. package/dist/components/navigation/index.cjs +9 -9
  39. package/dist/components/onboarding-guides/index.cjs +9 -9
  40. package/dist/components/product-demo/index.cjs +15 -15
  41. package/dist/components/related-content/index.cjs +5 -5
  42. package/dist/components/tickets/index.cjs +13 -13
  43. package/dist/components/ui/data-table/data-table-row.d.ts.map +1 -1
  44. package/dist/components/ui/data-table/data-table-row.js +11 -0
  45. package/dist/components/ui/index.cjs +6 -6
  46. package/dist/{devices-RQ7OSCJZ.cjs → devices-E3QVSJ3T.cjs} +7 -7
  47. package/dist/{embeddable-chat-SYWOS6YZ.cjs → embeddable-chat-IH6X2KIS.cjs} +62 -62
  48. package/dist/index.cjs +10 -10
  49. package/dist/{knowledge-5QKXKQ4Q.cjs → knowledge-A6AETFRT.cjs} +7 -7
  50. package/dist/{logs-GBKJZHMC.cjs → logs-GB6UWTM6.cjs} +14 -14
  51. package/dist/{policies-WAYKWIZM.cjs → policies-DGFI3VSQ.cjs} +10 -10
  52. package/dist/{scripts-L46FQYCQ.cjs → scripts-OV2PPYGS.cjs} +11 -11
  53. package/dist/{software-update-2HMC5XIV.cjs → software-update-LUR2BU2D.cjs} +9 -9
  54. package/package.json +1 -1
  55. package/src/components/chat/entity-cards/program-card.tsx +6 -2
  56. package/src/components/ui/data-table/data-table-row.tsx +23 -0
@@ -107,7 +107,7 @@ var _chunk5Z77NJZFcjs = require('./chunk-5Z77NJZF.cjs');
107
107
 
108
108
 
109
109
 
110
- var _chunkYCSX7MCGcjs = require('./chunk-YCSX7MCG.cjs');
110
+ var _chunkWFMLODQ4cjs = require('./chunk-WFMLODQ4.cjs');
111
111
 
112
112
 
113
113
 
@@ -127,7 +127,7 @@ var _chunkYCSX7MCGcjs = require('./chunk-YCSX7MCG.cjs');
127
127
 
128
128
 
129
129
 
130
- var _chunkEQKMFQ5Jcjs = require('./chunk-EQKMFQ5J.cjs');
130
+ var _chunkRGGV3YOPcjs = require('./chunk-RGGV3YOP.cjs');
131
131
 
132
132
 
133
133
 
@@ -486,7 +486,7 @@ var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
486
486
 
487
487
 
488
488
 
489
- var _chunkEOZ23WOYcjs = require('./chunk-EOZ23WOY.cjs');
489
+ var _chunkHQY6KYUDcjs = require('./chunk-HQY6KYUD.cjs');
490
490
 
491
491
 
492
492
 
@@ -695,7 +695,7 @@ function ThemeProvider({ children, ...overrides }) {
695
695
  var useTheme = _nextthemes.useTheme;
696
696
  function useThemeToggle() {
697
697
  const { resolvedTheme, theme, setTheme } = useTheme();
698
- const mounted = _chunkEQKMFQ5Jcjs.useIsHydrated.call(void 0, );
698
+ const mounted = _chunkRGGV3YOPcjs.useIsHydrated.call(void 0, );
699
699
  const active = mounted ? resolvedTheme === "light" || theme === "light" ? "light" : "dark" : DEFAULT_THEME;
700
700
  const setOdsTheme = _react.useCallback.call(void 0, (next) => setTheme(next), [setTheme]);
701
701
  const toggle = _react.useCallback.call(void 0, () => setTheme(active === "dark" ? "light" : "dark"), [active, setTheme]);
@@ -4539,7 +4539,7 @@ function AdminFormDrawer({
4539
4539
  "form",
4540
4540
  {
4541
4541
  id: formId,
4542
- ..._chunkYCSX7MCGcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
4542
+ ..._chunkWFMLODQ4cjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
4543
4543
  className: "flex flex-col gap-[var(--spacing-system-lf)]",
4544
4544
  onSubmit: (e) => {
4545
4545
  e.preventDefault();
@@ -4646,7 +4646,7 @@ function AdminFormModal({
4646
4646
  "form",
4647
4647
  {
4648
4648
  id: formId,
4649
- ..._chunkYCSX7MCGcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
4649
+ ..._chunkWFMLODQ4cjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
4650
4650
  className: "flex min-h-0 flex-1 flex-col",
4651
4651
  onSubmit: (e) => {
4652
4652
  e.preventDefault();
@@ -6040,7 +6040,7 @@ function EmbedViewerFrame({
6040
6040
  const controllerRef = _react.useRef.call(void 0, null);
6041
6041
  _react.useEffect.call(void 0, () => {
6042
6042
  if (!fullscreenControl) return void 0;
6043
- const controller = new (0, _chunkYCSX7MCGcjs.FullscreenSwitchController)({
6043
+ const controller = new (0, _chunkWFMLODQ4cjs.FullscreenSwitchController)({
6044
6044
  target: () => frameRef.current,
6045
6045
  onFullscreenChange: setIsFullscreen
6046
6046
  });
@@ -7279,7 +7279,7 @@ var formatTimeAgo = (timestamp) => {
7279
7279
  return `${Math.floor(diffSeconds / 86400)}d ago`;
7280
7280
  };
7281
7281
  function RedditEmbedClient({ url, maxWidth = 700, rel }) {
7282
- const postLinkRel = _chunkEQKMFQ5Jcjs.renderedLinkRel.call(void 0, rel, true);
7282
+ const postLinkRel = _chunkRGGV3YOPcjs.renderedLinkRel.call(void 0, rel, true);
7283
7283
  const { redditProxyUrl } = useRichMarkdownRuntime();
7284
7284
  const [redditData, setRedditData] = _react.useState.call(void 0, null);
7285
7285
  const [loading, setLoading] = _react.useState.call(void 0, true);
@@ -7611,7 +7611,7 @@ var UserIcon3 = () => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "svg", { wid
7611
7611
  ] });
7612
7612
  var XIcon = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2TEMEXDTcjs.XLogoIcon, { className: "h-5 w-5", color: "currentColor" });
7613
7613
  function TwitterEmbedClient({ url, tweetId, maxWidth = 700, rel }) {
7614
- const postLinkRel = _chunkEQKMFQ5Jcjs.renderedLinkRel.call(void 0, rel, true);
7614
+ const postLinkRel = _chunkRGGV3YOPcjs.renderedLinkRel.call(void 0, rel, true);
7615
7615
  const { twitterProxyUrl } = useRichMarkdownRuntime();
7616
7616
  const [tweetData, setTweetData] = _react.useState.call(void 0, null);
7617
7617
  const [fetchLoading, setLoading] = _react.useState.call(void 0, true);
@@ -7813,7 +7813,7 @@ function buildRichEmbedOverrides({
7813
7813
  ogEndpointPath,
7814
7814
  textSizes
7815
7815
  }) {
7816
- const standard = _chunkEQKMFQ5Jcjs.buildStandardLeafRenderers.call(void 0, { textSizes });
7816
+ const standard = _chunkRGGV3YOPcjs.buildStandardLeafRenderers.call(void 0, { textSizes });
7817
7817
  return {
7818
7818
  // Fence-language embeds (```youtube-embed etc.); everything else
7819
7819
  // (mermaid, highlighted blocks, inline code) falls through to `standard`.
@@ -7949,14 +7949,14 @@ function buildRichEmbedOverrides({
7949
7949
  // rich-markdown runtime (Supabase optimization on the hub, identity
7950
7950
  // elsewhere). Guard against empty `![]()`.
7951
7951
  img: ({ src, alt }) => {
7952
- if (!_chunkEQKMFQ5Jcjs.hasRenderableSrc.call(void 0, src)) return null;
7952
+ if (!_chunkRGGV3YOPcjs.hasRenderableSrc.call(void 0, src)) return null;
7953
7953
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownImage, { src: src.trim(), alt });
7954
7954
  },
7955
7955
  // Raw <iframe> tags in stored content (a pasted YouTube embed). A YouTube one becomes the same click-to-play
7956
7956
  // facade as the `youtube-embed` fence: the raw iframe loaded YouTube's whole player (about 470 KB of script) with
7957
7957
  // the page, on every post that carried one (CU-17tkuw5xp4q). Any other iframe loads when it nears the screen.
7958
7958
  iframe: ({ node: _node, src, ...rest }) => {
7959
- if (!_chunkEQKMFQ5Jcjs.hasRenderableSrc.call(void 0, src)) return null;
7959
+ if (!_chunkRGGV3YOPcjs.hasRenderableSrc.call(void 0, src)) return null;
7960
7960
  const url = src.trim();
7961
7961
  if (_chunk3SENOTWTcjs.extractYouTubeId.call(void 0, url)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3SENOTWTcjs.Video, { kind: "youtube", url });
7962
7962
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "iframe", { ...rest, src: url, loading: "lazy" });
@@ -7964,7 +7964,7 @@ function buildRichEmbedOverrides({
7964
7964
  // Raw <video> tags in stored content (blog publisher injection) route
7965
7965
  // to the <Video> SSOT (MuxPlayer) so HLS manifests play everywhere.
7966
7966
  video: ({ src, poster, className }) => {
7967
- if (!_chunkEQKMFQ5Jcjs.hasRenderableSrc.call(void 0, src)) return null;
7967
+ if (!_chunkRGGV3YOPcjs.hasRenderableSrc.call(void 0, src)) return null;
7968
7968
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `overflow-hidden ${className || "my-8 w-full rounded-lg"}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3SENOTWTcjs.Video, { kind: "file", url: src.trim(), poster: typeof poster === "string" ? poster : void 0 }) }) });
7969
7969
  }
7970
7970
  };
@@ -8073,7 +8073,7 @@ var processShortcodes = (content) => {
8073
8073
  try {
8074
8074
  const urlObj = new URL(url);
8075
8075
  const hostname = urlObj.hostname.toLowerCase();
8076
- const hostIs = (domain) => _chunkYCSX7MCGcjs.hostMatches.call(void 0, hostname, domain);
8076
+ const hostIs = (domain) => _chunkWFMLODQ4cjs.hostMatches.call(void 0, hostname, domain);
8077
8077
  const isYouTubeVideo = hostIs("youtube.com") && urlObj.searchParams.has("v") || hostIs("youtu.be");
8078
8078
  if (isYouTubeVideo || hostIs("reddit.com") || hostIs("twitter.com") || hostIs("x.com") || hostIs("figma.com")) {
8079
8079
  return match;
@@ -8150,13 +8150,13 @@ var RichMarkdownInner = ({
8150
8150
  },
8151
8151
  [resolveLinkEndpointUrl, resolveSource]
8152
8152
  );
8153
- const textSizes = _react.useMemo.call(void 0, () => _chunkEQKMFQ5Jcjs.resolveTextSizeConfig.call(void 0, "article"), []);
8153
+ const textSizes = _react.useMemo.call(void 0, () => _chunkRGGV3YOPcjs.resolveTextSizeConfig.call(void 0, "article"), []);
8154
8154
  const componentOverrides = _react.useMemo.call(void 0,
8155
8155
  () => buildRichEmbedOverrides({ ogApiBaseUrl, ogEndpointPath, textSizes }),
8156
8156
  [ogApiBaseUrl, ogEndpointPath, textSizes]
8157
8157
  );
8158
8158
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8159
- _chunkEQKMFQ5Jcjs.MarkdownEngine,
8159
+ _chunkRGGV3YOPcjs.MarkdownEngine,
8160
8160
  {
8161
8161
  content,
8162
8162
  className,
@@ -8180,7 +8180,7 @@ var RichMarkdownRendererImpl = ({
8180
8180
  className = "",
8181
8181
  sectionIds,
8182
8182
  onInternalLinkClick,
8183
- brokenLinks = _chunkEQKMFQ5Jcjs.NO_BROKEN_LINKS,
8183
+ brokenLinks = _chunkRGGV3YOPcjs.NO_BROKEN_LINKS,
8184
8184
  currentPath,
8185
8185
  resolveSource = "openframe-docs",
8186
8186
  resolveLinkEndpointUrl = "/api/docs/resolve-link",
@@ -9525,7 +9525,7 @@ function renderAdvancedPageContainer({
9525
9525
  contentClassName,
9526
9526
  showHeader = true
9527
9527
  }, inScope = false) {
9528
- const titleNode = title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2JDK4FWVcjs.PageTitle, { className: PAGE_CONTAINER_TITLE_CLASS, children: _chunkEOZ23WOYcjs.accentSentenceMarks.call(void 0, title) }) : inScope && title === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageContainerTitleSkeleton, {}) : null;
9528
+ const titleNode = title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2JDK4FWVcjs.PageTitle, { className: PAGE_CONTAINER_TITLE_CLASS, children: _chunkHQY6KYUDcjs.accentSentenceMarks.call(void 0, title) }) : inScope && title === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageContainerTitleSkeleton, {}) : null;
9529
9529
  const subtitleNode = subtitle ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: PAGE_CONTAINER_SUBTITLE_CLASS, children: subtitle }) : inScope && subtitle === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageContainerSubtitleSkeleton, {}) : null;
9530
9530
  const getActionsVariant = () => {
9531
9531
  if (actionsVariant) return actionsVariant;
@@ -9952,7 +9952,7 @@ var BenefitCardGrid = ({ children, className = "", columns = 2 }) => {
9952
9952
 
9953
9953
 
9954
9954
  function PlatformBrowseButton({ item }) {
9955
- const linkProps = _chunkEQKMFQ5Jcjs.useNavLinkViaRuntime.call(void 0, { href: item.link, targetPlatform: item.targetPlatform });
9955
+ const linkProps = _chunkRGGV3YOPcjs.useNavLinkViaRuntime.call(void 0, { href: item.link, targetPlatform: item.targetPlatform });
9956
9956
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIZXVGIQXcjs.Button, { variant: "outline", linkProps, rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-4 w-4" }), children: [
9957
9957
  "Browse ",
9958
9958
  item.buttonText
@@ -10460,10 +10460,10 @@ var OSTypeBadge = ({
10460
10460
  if (!osType) {
10461
10461
  return labelOnly ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkNWNC22IZcjs.cn.call(void 0, "text-ods-text-secondary", className), children: "Unknown" }) : null;
10462
10462
  }
10463
- const normalized = _chunkYCSX7MCGcjs.normalizeOSType.call(void 0, osType);
10463
+ const normalized = _chunkWFMLODQ4cjs.normalizeOSType.call(void 0, osType);
10464
10464
  if (!normalized && !labelOnly) return null;
10465
- const label = _chunkYCSX7MCGcjs.getOSLabel.call(void 0, osType);
10466
- const IconComponent = _chunkYCSX7MCGcjs.getOSIcon.call(void 0, osType);
10465
+ const label = _chunkWFMLODQ4cjs.getOSLabel.call(void 0, osType);
10466
+ const IconComponent = _chunkWFMLODQ4cjs.getOSIcon.call(void 0, osType);
10467
10467
  if (iconOnly && IconComponent) {
10468
10468
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: _chunkNWNC22IZcjs.cn.call(void 0, iconSize, "text-ods-text-secondary", className) });
10469
10469
  }
@@ -10759,7 +10759,7 @@ function ComplianceLogo({
10759
10759
  fallback = null,
10760
10760
  className
10761
10761
  }) {
10762
- const standard = _chunkYCSX7MCGcjs.complianceStandardForName.call(void 0, ...names);
10762
+ const standard = _chunkWFMLODQ4cjs.complianceStandardForName.call(void 0, ...names);
10763
10763
  if (!standard) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: fallback });
10764
10764
  const Official = standard.logo ? COMPLIANCE_LOGOS[standard.logo] : null;
10765
10765
  return Official ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -12575,6 +12575,7 @@ function dataTableLoadingRows(count, fill) {
12575
12575
 
12576
12576
  // src/components/ui/data-table/data-table-row.tsx
12577
12577
 
12578
+ var ROW_LINK_CONTROL_SELECTOR = 'button, [role="button"]';
12578
12579
  function DataTableRowSwitch(props) {
12579
12580
  const inScope = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, );
12580
12581
  if ((inScope || props.row === null) && !(props.drawsCells && props.row)) {
@@ -12680,7 +12681,7 @@ function DataTableRowImpl({
12680
12681
  const containerRef = _react.useRef.call(void 0, null);
12681
12682
  const handleClick = _react.useCallback.call(void 0,
12682
12683
  (e) => {
12683
- if (!_chunkYCSX7MCGcjs.isOwnClick.call(void 0, e.target, containerRef.current)) {
12684
+ if (!_chunkWFMLODQ4cjs.isOwnClick.call(void 0, e.target, containerRef.current)) {
12684
12685
  if (isLinkMode) e.preventDefault();
12685
12686
  return;
12686
12687
  }
@@ -12688,6 +12689,14 @@ function DataTableRowImpl({
12688
12689
  },
12689
12690
  [onClick, row.original, isLinkMode]
12690
12691
  );
12692
+ const preventControlNavigation = _react.useCallback.call(void 0, (e) => {
12693
+ const container = containerRef.current;
12694
+ const target = e.target;
12695
+ if (!(target instanceof Element) || !_optionalChain([container, 'optionalAccess', _222 => _222.contains, 'call', _223 => _223(target)])) return;
12696
+ const nestedLink = target.closest("a");
12697
+ if (nestedLink && nestedLink !== container && container.contains(nestedLink)) return;
12698
+ if (!_chunkWFMLODQ4cjs.isOwnClick.call(void 0, target, container) || target.closest(ROW_LINK_CONTROL_SELECTOR)) e.preventDefault();
12699
+ }, []);
12691
12700
  const containerClassName = _chunkNWNC22IZcjs.cn.call(void 0,
12692
12701
  DATA_TABLE_ROW_FRAME_CLASS,
12693
12702
  "text-inherit no-underline",
@@ -12722,10 +12731,10 @@ function DataTableRowImpl({
12722
12731
  {
12723
12732
  className: _chunkNWNC22IZcjs.cn.call(void 0,
12724
12733
  "flex flex-col overflow-hidden",
12725
- alignJustify(_optionalChain([meta, 'optionalAccess', _222 => _222.align])),
12726
- _optionalChain([meta, 'optionalAccess', _223 => _223.width]) || "min-w-0 flex-1",
12727
- _optionalChain([meta, 'optionalAccess', _224 => _224.cellClassName]),
12728
- getHideClasses(_optionalChain([meta, 'optionalAccess', _225 => _225.hideAt]))
12734
+ alignJustify(_optionalChain([meta, 'optionalAccess', _224 => _224.align])),
12735
+ _optionalChain([meta, 'optionalAccess', _225 => _225.width]) || "min-w-0 flex-1",
12736
+ _optionalChain([meta, 'optionalAccess', _226 => _226.cellClassName]),
12737
+ getHideClasses(_optionalChain([meta, 'optionalAccess', _227 => _227.hideAt]))
12729
12738
  ),
12730
12739
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CellContent, { children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) })
12731
12740
  },
@@ -12742,6 +12751,7 @@ function DataTableRowImpl({
12742
12751
  prefetch: false,
12743
12752
  ref: containerRef,
12744
12753
  className: containerClassName,
12754
+ onClickCapture: preventControlNavigation,
12745
12755
  onClick: handleClick,
12746
12756
  ...markers,
12747
12757
  children: cells
@@ -12765,6 +12775,7 @@ function DataTableRowImpl({
12765
12775
  "cursor-pointer text-inherit no-underline transition-colors hover:bg-ods-bg-active",
12766
12776
  rowHeightClassName ? "flex min-h-0 flex-1 flex-col" : "block"
12767
12777
  ),
12778
+ onClickCapture: preventControlNavigation,
12768
12779
  onClick: handleClick,
12769
12780
  children: cells
12770
12781
  }
@@ -12813,7 +12824,7 @@ function DataTableBody({
12813
12824
  const skeletonRowClassName = typeof rowClassName === "string" ? rowClassName : void 0;
12814
12825
  if (loading && loadingCells && hasRows) {
12815
12826
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12816
- _chunkEQKMFQ5Jcjs.LoadingFallback,
12827
+ _chunkRGGV3YOPcjs.LoadingFallback,
12817
12828
  {
12818
12829
  label: "Loading results",
12819
12830
  status: loadingRegion && !inScope,
@@ -12873,7 +12884,7 @@ function DataTableBody({
12873
12884
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, ROW_STACK_CLASSES, className), children: [
12874
12885
  rows.map((row, index) => {
12875
12886
  const item = row.original;
12876
- const href = _nullishCoalesce(_optionalChain([rowHref, 'optionalCall', _226 => _226(item)]), () => ( void 0));
12887
+ const href = _nullishCoalesce(_optionalChain([rowHref, 'optionalCall', _228 => _228(item)]), () => ( void 0));
12877
12888
  const cls = typeof rowClassName === "function" ? rowClassName(item, index) : rowClassName;
12878
12889
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12879
12890
  DataTableRow,
@@ -12884,7 +12895,7 @@ function DataTableBody({
12884
12895
  compact,
12885
12896
  rowHeightClassName,
12886
12897
  className: cls,
12887
- subRow: _optionalChain([renderSubRow, 'optionalCall', _227 => _227(item)]),
12898
+ subRow: _optionalChain([renderSubRow, 'optionalCall', _229 => _229(item)]),
12888
12899
  "data-loading-item": true
12889
12900
  },
12890
12901
  row.id
@@ -12940,7 +12951,7 @@ function DataTableColumnFilter({
12940
12951
  pending = false
12941
12952
  }) {
12942
12953
  const currentValue = column.getFilterValue();
12943
- const activeCount = _nullishCoalesce(_optionalChain([currentValue, 'optionalAccess', _228 => _228.length]), () => ( 0));
12954
+ const activeCount = _nullishCoalesce(_optionalChain([currentValue, 'optionalAccess', _230 => _230.length]), () => ( 0));
12944
12955
  const sections = _react.useMemo.call(void 0,
12945
12956
  () => [
12946
12957
  {
@@ -13072,7 +13083,7 @@ function DataTableHeader({
13072
13083
  );
13073
13084
  }
13074
13085
  function keepsCellOnTablet(meta) {
13075
- return Boolean(_optionalChain([meta, 'optionalAccess', _229 => _229.filter])) || _optionalChain([meta, 'optionalAccess', _230 => _230.sortable]) === true || _optionalChain([meta, 'optionalAccess', _231 => _231.alwaysShowHeader]) === true;
13086
+ return Boolean(_optionalChain([meta, 'optionalAccess', _231 => _231.filter])) || _optionalChain([meta, 'optionalAccess', _232 => _232.sortable]) === true || _optionalChain([meta, 'optionalAccess', _233 => _233.alwaysShowHeader]) === true;
13076
13087
  }
13077
13088
  var SHOW_FROM = {
13078
13089
  md: "content-md:flex",
@@ -13110,11 +13121,11 @@ function HeaderCell({ header, sort, onSortChange }) {
13110
13121
  if (header.isPlaceholder) return null;
13111
13122
  const column = header.column;
13112
13123
  const meta = column.columnDef.meta;
13113
- const filter = _optionalChain([meta, 'optionalAccess', _232 => _232.filter]);
13124
+ const filter = _optionalChain([meta, 'optionalAccess', _234 => _234.filter]);
13114
13125
  const keepOnTablet = keepsCellOnTablet(meta);
13115
- const align = _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _233 => _233.align]), () => ( "left"));
13116
- const canSort = _optionalChain([meta, 'optionalAccess', _234 => _234.sortable]) === true;
13117
- const sortDir = _optionalChain([sort, 'optionalAccess', _235 => _235.id]) === column.id ? sort.desc ? "desc" : "asc" : false;
13126
+ const align = _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _235 => _235.align]), () => ( "left"));
13127
+ const canSort = _optionalChain([meta, 'optionalAccess', _236 => _236.sortable]) === true;
13128
+ const sortDir = _optionalChain([sort, 'optionalAccess', _237 => _237.id]) === column.id ? sort.desc ? "desc" : "asc" : false;
13118
13129
  const filterTrigger = filter ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
13119
13130
  DataTableColumnFilter,
13120
13131
  {
@@ -13133,7 +13144,7 @@ function HeaderCell({ header, sort, onSortChange }) {
13133
13144
  "items-stretch",
13134
13145
  // Cells are hidden rather than dropped from the tree, so which columns
13135
13146
  // exist never depends on when an effect ran.
13136
- getCellVisibilityClasses(keepOnTablet, _optionalChain([meta, 'optionalAccess', _236 => _236.hideAt])),
13147
+ getCellVisibilityClasses(keepOnTablet, _optionalChain([meta, 'optionalAccess', _238 => _238.hideAt])),
13137
13148
  // Width applies from lg only. Stated as "always, neutralized below lg"
13138
13149
  // because `meta.width` is an opaque consumer string that cannot be
13139
13150
  // prefixed. Only `keepOnTablet` cells need the override — the rest are
@@ -13151,17 +13162,17 @@ function HeaderCell({ header, sort, onSortChange }) {
13151
13162
  // Specificity rather than `!important`: it stays a normal declaration, so a
13152
13163
  // consumer that genuinely needs a tablet width can still take it back with a
13153
13164
  // more specific rule — `!important` could only be answered with another one.
13154
- _optionalChain([meta, 'optionalAccess', _237 => _237.width]) || "min-w-0 flex-1",
13165
+ _optionalChain([meta, 'optionalAccess', _239 => _239.width]) || "min-w-0 flex-1",
13155
13166
  keepOnTablet && "content-max-lg:[&&]:w-auto content-max-lg:[&&]:flex-none content-max-lg:[&&]:basis-auto",
13156
- _optionalChain([meta, 'optionalAccess', _238 => _238.headerClassName])
13167
+ _optionalChain([meta, 'optionalAccess', _240 => _240.headerClassName])
13157
13168
  ),
13158
13169
  children: filterTrigger ? (
13159
13170
  // Only a column that HAS a hint gets the extra row, so every existing
13160
13171
  // filter header keeps its exact structure — the trigger stays a direct
13161
13172
  // child of the cell.
13162
- _optionalChain([meta, 'optionalAccess', _239 => _239.hint]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-[var(--spacing-system-xxs)]", children: [
13173
+ _optionalChain([meta, 'optionalAccess', _241 => _241.hint]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-[var(--spacing-system-xxs)]", children: [
13163
13174
  filterTrigger,
13164
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYCSX7MCGcjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
13175
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWFMLODQ4cjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
13165
13176
  ] }) : filterTrigger
13166
13177
  ) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
13167
13178
  "div",
@@ -13175,9 +13186,9 @@ function HeaderCell({ header, sort, onSortChange }) {
13175
13186
  keepOnTablet && "content-max-lg:justify-start",
13176
13187
  canSort && "group cursor-pointer"
13177
13188
  ),
13178
- onClick: canSort ? () => _optionalChain([onSortChange, 'optionalCall', _240 => _240(column.id)]) : void 0,
13189
+ onClick: canSort ? () => _optionalChain([onSortChange, 'optionalCall', _242 => _242(column.id)]) : void 0,
13179
13190
  children: [
13180
- _optionalChain([meta, 'optionalAccess', _241 => _241.hint]) ? (
13191
+ _optionalChain([meta, 'optionalAccess', _243 => _243.hint]) ? (
13181
13192
  // The hint shares a LABEL GROUP with the text, pinned to the FIRST
13182
13193
  // line (`items-start`): on a label that breaks onto a second line it
13183
13194
  // reads beside the opening word instead of floating in the gap
@@ -13186,7 +13197,7 @@ function HeaderCell({ header, sort, onSortChange }) {
13186
13197
  // centred on the row.
13187
13198
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-start gap-[var(--spacing-system-xxs)]", children: [
13188
13199
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
13189
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYCSX7MCGcjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
13200
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWFMLODQ4cjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
13190
13201
  ] })
13191
13202
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
13192
13203
  canSort && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortIcon, { sorted: sortDir })
@@ -13200,7 +13211,7 @@ var DATA_TABLE_HEADER_LABEL_CLASS = "min-w-0 text-balance uppercase text-ods-tex
13200
13211
  var DATA_TABLE_HEADER_LABEL_BAR_CLASS = "w-40 max-w-full";
13201
13212
  function HeaderLabel({ header }) {
13202
13213
  const headerDef = header.column.columnDef.header;
13203
- if (_optionalChain([header, 'access', _242 => _242.column, 'access', _243 => _243.columnDef, 'access', _244 => _244.meta, 'optionalAccess', _245 => _245.headerLoading])) {
13214
+ if (_optionalChain([header, 'access', _244 => _244.column, 'access', _245 => _245.columnDef, 'access', _246 => _246.meta, 'optionalAccess', _247 => _247.headerLoading])) {
13204
13215
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: DATA_TABLE_HEADER_LABEL_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "inherit", as: "span", className: DATA_TABLE_HEADER_LABEL_BAR_CLASS }) });
13205
13216
  }
13206
13217
  if (headerDef === void 0) return null;
@@ -13254,9 +13265,9 @@ function DataTableInfiniteFooter({
13254
13265
  loadMore.setSkeletonRows(requestedRows);
13255
13266
  return () => loadMore.setSkeletonRows(0);
13256
13267
  }, [loadMore, requestedRows]);
13257
- const tableRows = _optionalChain([table, 'optionalAccess', _246 => _246.getRowModel, 'call', _247 => _247(), 'access', _248 => _248.rows]);
13258
- const progressCount = _nullishCoalesce(loadedCount, () => ( _optionalChain([tableRows, 'optionalAccess', _249 => _249.length])));
13259
- const lastRowId = _nullishCoalesce(_optionalChain([tableRows, 'optionalAccess', _250 => _250[tableRows.length - 1], 'optionalAccess', _251 => _251.id]), () => ( ""));
13268
+ const tableRows = _optionalChain([table, 'optionalAccess', _248 => _248.getRowModel, 'call', _249 => _249(), 'access', _250 => _250.rows]);
13269
+ const progressCount = _nullishCoalesce(loadedCount, () => ( _optionalChain([tableRows, 'optionalAccess', _251 => _251.length])));
13270
+ const lastRowId = _nullishCoalesce(_optionalChain([tableRows, 'optionalAccess', _252 => _252[tableRows.length - 1], 'optionalAccess', _253 => _253.id]), () => ( ""));
13260
13271
  const tail = progressCount === void 0 ? null : `${progressCount}:${lastRowId}`;
13261
13272
  const [wasFetching, setWasFetching] = _react.useState.call(void 0, isFetchingNextPage);
13262
13273
  const [tailAtFetchStart, setTailAtFetchStart] = _react.useState.call(void 0, null);
@@ -13277,7 +13288,7 @@ function DataTableInfiniteFooter({
13277
13288
  if (!sentinel) return void 0;
13278
13289
  const observer = new IntersectionObserver(
13279
13290
  (entries) => {
13280
- if (_optionalChain([entries, 'access', _252 => _252[0], 'optionalAccess', _253 => _253.isIntersecting])) onLoadMoreRef.current();
13291
+ if (_optionalChain([entries, 'access', _254 => _254[0], 'optionalAccess', _255 => _255.isIntersecting])) onLoadMoreRef.current();
13281
13292
  },
13282
13293
  { root: findScrollParent(sentinel), rootMargin }
13283
13294
  );
@@ -13315,10 +13326,10 @@ function DataTableRowCount({
13315
13326
  const inScope = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, ) || loading;
13316
13327
  const count = _nullishCoalesce(totalCount, () => ( table.getRowModel().rows.length));
13317
13328
  if (inScope) {
13318
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTableRowCountSkeleton, { label: _nullishCoalesce(_optionalChain([pluralize, 'optionalCall', _254 => _254(2, itemName)]), () => ( `${itemName}s`)), className });
13329
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTableRowCountSkeleton, { label: _nullishCoalesce(_optionalChain([pluralize, 'optionalCall', _256 => _256(2, itemName)]), () => ( `${itemName}s`)), className });
13319
13330
  }
13320
13331
  if (hideWhenEmpty && count === 0) return null;
13321
- const label = _nullishCoalesce(_optionalChain([pluralize, 'optionalCall', _255 => _255(count, itemName)]), () => ( (count === 1 ? itemName : `${itemName}s`)));
13332
+ const label = _nullishCoalesce(_optionalChain([pluralize, 'optionalCall', _257 => _257(count, itemName)]), () => ( (count === 1 ? itemName : `${itemName}s`)));
13322
13333
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkNWNC22IZcjs.cn.call(void 0, ROW_COUNT_CLASS, className), children: [
13323
13334
  count,
13324
13335
  " ",
@@ -13425,7 +13436,7 @@ function PhoneInput({
13425
13436
  placeholder = "Phone Number (optional)",
13426
13437
  onKeyDown
13427
13438
  }) {
13428
- const { priority, others } = _react.useMemo.call(void 0, () => _chunkYCSX7MCGcjs.getCountryPhoneData.call(void 0, ), []);
13439
+ const { priority, others } = _react.useMemo.call(void 0, () => _chunkWFMLODQ4cjs.getCountryPhoneData.call(void 0, ), []);
13429
13440
  const selectedCountry = _react.useMemo.call(void 0,
13430
13441
  () => [...priority, ...others].find((c) => c.code === countryCode),
13431
13442
  [countryCode, priority, others]
@@ -13437,12 +13448,12 @@ function PhoneInput({
13437
13448
  (phone) => {
13438
13449
  if (!phone || digitCount(phone) === 0) {
13439
13450
  setIsInvalid(false);
13440
- _optionalChain([onValidationChange, 'optionalCall', _256 => _256(false)]);
13451
+ _optionalChain([onValidationChange, 'optionalCall', _258 => _258(false)]);
13441
13452
  return;
13442
13453
  }
13443
- const invalid = !_chunkYCSX7MCGcjs.validatePhoneNumber.call(void 0, phone, countryCode);
13454
+ const invalid = !_chunkWFMLODQ4cjs.validatePhoneNumber.call(void 0, phone, countryCode);
13444
13455
  setIsInvalid(invalid);
13445
- _optionalChain([onValidationChange, 'optionalCall', _257 => _257(invalid)]);
13456
+ _optionalChain([onValidationChange, 'optionalCall', _259 => _259(invalid)]);
13446
13457
  },
13447
13458
  [countryCode, digitCount, onValidationChange]
13448
13459
  );
@@ -13496,7 +13507,7 @@ function PhoneInput({
13496
13507
  debouncedValidation(val);
13497
13508
  } else if (digitCount(val) === 0) {
13498
13509
  setIsInvalid(false);
13499
- _optionalChain([onValidationChange, 'optionalCall', _258 => _258(false)]);
13510
+ _optionalChain([onValidationChange, 'optionalCall', _260 => _260(false)]);
13500
13511
  }
13501
13512
  }
13502
13513
  },
@@ -13616,7 +13627,7 @@ function SearchInput({
13616
13627
  if (!showHiddenTags) return void 0;
13617
13628
  const handleClick = (e) => {
13618
13629
  const target = e.target;
13619
- if (!_optionalChain([hiddenTagsRef, 'access', _259 => _259.current, 'optionalAccess', _260 => _260.contains, 'call', _261 => _261(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _262 => _262.current, 'optionalAccess', _263 => _263.contains, 'call', _264 => _264(target)])) {
13630
+ if (!_optionalChain([hiddenTagsRef, 'access', _261 => _261.current, 'optionalAccess', _262 => _262.contains, 'call', _263 => _263(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _264 => _264.current, 'optionalAccess', _265 => _265.contains, 'call', _266 => _266(target)])) {
13620
13631
  setShowHiddenTags(false);
13621
13632
  }
13622
13633
  };
@@ -13627,7 +13638,7 @@ function SearchInput({
13627
13638
  const popup = hiddenTagsPopupRef.current;
13628
13639
  const badge = badgeRef.current;
13629
13640
  if (!popup || !badge) return;
13630
- const originLeft = _nullishCoalesce(_optionalChain([containerRef, 'access', _265 => _265.current, 'optionalAccess', _266 => _266.getBoundingClientRect, 'call', _267 => _267(), 'access', _268 => _268.left]), () => ( 0));
13641
+ const originLeft = _nullishCoalesce(_optionalChain([containerRef, 'access', _267 => _267.current, 'optionalAccess', _268 => _268.getBoundingClientRect, 'call', _269 => _269(), 'access', _270 => _270.left]), () => ( 0));
13631
13642
  popup.style.left = `${badge.getBoundingClientRect().left - originLeft}px`;
13632
13643
  });
13633
13644
  const hiddenCount = filterChips.length - visibleCount;
@@ -13662,7 +13673,7 @@ function SearchInput({
13662
13673
  } else {
13663
13674
  setInternalValue(newVal);
13664
13675
  }
13665
- if (newVal === "" && currentValue !== "") _optionalChain([onSubmit, 'optionalCall', _269 => _269("")]);
13676
+ if (newVal === "" && currentValue !== "") _optionalChain([onSubmit, 'optionalCall', _271 => _271("")]);
13666
13677
  if (!isOpen) setIsOpen(true);
13667
13678
  setHighlightedIndex(-1);
13668
13679
  };
@@ -13674,11 +13685,11 @@ function SearchInput({
13674
13685
  } else {
13675
13686
  setInternalValue("");
13676
13687
  }
13677
- if (currentValue !== "") _optionalChain([onSubmit, 'optionalCall', _270 => _270("")]);
13678
- _optionalChain([inputRef, 'access', _271 => _271.current, 'optionalAccess', _272 => _272.focus, 'call', _273 => _273()]);
13688
+ if (currentValue !== "") _optionalChain([onSubmit, 'optionalCall', _272 => _272("")]);
13689
+ _optionalChain([inputRef, 'access', _273 => _273.current, 'optionalAccess', _274 => _274.focus, 'call', _275 => _275()]);
13679
13690
  };
13680
13691
  const handleResultClick = (result, e) => {
13681
- _optionalChain([onResultSelect, 'optionalCall', _274 => _274(
13692
+ _optionalChain([onResultSelect, 'optionalCall', _276 => _276(
13682
13693
  result,
13683
13694
  e ? {
13684
13695
  metaKey: e.metaKey,
@@ -13706,7 +13717,7 @@ function SearchInput({
13706
13717
  if (highlightedIndex >= 0 && flatResults[highlightedIndex]) {
13707
13718
  handleResultClick(flatResults[highlightedIndex]);
13708
13719
  } else {
13709
- _optionalChain([onSubmit, 'optionalCall', _275 => _275(currentValue)]);
13720
+ _optionalChain([onSubmit, 'optionalCall', _277 => _277(currentValue)]);
13710
13721
  }
13711
13722
  break;
13712
13723
  case "Escape":
@@ -13791,7 +13802,7 @@ function SearchInput({
13791
13802
  ),
13792
13803
  onClick: () => {
13793
13804
  if (disabled) return;
13794
- _optionalChain([inputRef, 'access', _276 => _276.current, 'optionalAccess', _277 => _277.focus, 'call', _278 => _278()]);
13805
+ _optionalChain([inputRef, 'access', _278 => _278.current, 'optionalAccess', _279 => _279.focus, 'call', _280 => _280()]);
13795
13806
  setIsOpen(true);
13796
13807
  },
13797
13808
  children: [
@@ -13876,10 +13887,10 @@ function SearchInput({
13876
13887
  collisionPadding: { bottom: keyboardPadding },
13877
13888
  onOpenAutoFocus: (e) => {
13878
13889
  e.preventDefault();
13879
- _optionalChain([inputRef, 'access', _279 => _279.current, 'optionalAccess', _280 => _280.focus, 'call', _281 => _281()]);
13890
+ _optionalChain([inputRef, 'access', _281 => _281.current, 'optionalAccess', _282 => _282.focus, 'call', _283 => _283()]);
13880
13891
  },
13881
13892
  onInteractOutside: (e) => {
13882
- if (_optionalChain([containerRef, 'access', _282 => _282.current, 'optionalAccess', _283 => _283.contains, 'call', _284 => _284(e.target)])) {
13893
+ if (_optionalChain([containerRef, 'access', _284 => _284.current, 'optionalAccess', _285 => _285.contains, 'call', _286 => _286(e.target)])) {
13883
13894
  e.preventDefault();
13884
13895
  }
13885
13896
  },
@@ -13896,7 +13907,7 @@ function SearchInput({
13896
13907
  ref: hiddenTagsPopupRef,
13897
13908
  items: hiddenChips.map((chip) => ({ label: chip.label, value: chip.id })),
13898
13909
  onRemove: (removedTag) => {
13899
- _optionalChain([onFilterRemove, 'optionalCall', _285 => _285(removedTag)]);
13910
+ _optionalChain([onFilterRemove, 'optionalCall', _287 => _287(removedTag)]);
13900
13911
  if (hiddenCount <= 1) setShowHiddenTags(false);
13901
13912
  }
13902
13913
  }
@@ -13938,7 +13949,7 @@ function FilterListItem({
13938
13949
  }) {
13939
13950
  const handleToggle = () => {
13940
13951
  if (disabled) return;
13941
- _optionalChain([onToggle, 'optionalCall', _286 => _286(!selected)]);
13952
+ _optionalChain([onToggle, 'optionalCall', _288 => _288(!selected)]);
13942
13953
  };
13943
13954
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
13944
13955
  "div",
@@ -13985,7 +13996,7 @@ function FilterListItem({
13985
13996
  CheckboxPrimitive2.Root,
13986
13997
  {
13987
13998
  checked: selected,
13988
- onCheckedChange: (c) => _optionalChain([onToggle, 'optionalCall', _287 => _287(c === true)]),
13999
+ onCheckedChange: (c) => _optionalChain([onToggle, 'optionalCall', _289 => _289(c === true)]),
13989
14000
  onClick: (e) => e.stopPropagation(),
13990
14001
  disabled,
13991
14002
  "aria-label": title,
@@ -14066,7 +14077,7 @@ function TagSearchInput({
14066
14077
  if (!showHiddenTags) return void 0;
14067
14078
  const handleClick = (e) => {
14068
14079
  const target = e.target;
14069
- if (!_optionalChain([hiddenTagsRef, 'access', _288 => _288.current, 'optionalAccess', _289 => _289.contains, 'call', _290 => _290(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _291 => _291.current, 'optionalAccess', _292 => _292.contains, 'call', _293 => _293(target)])) {
14080
+ if (!_optionalChain([hiddenTagsRef, 'access', _290 => _290.current, 'optionalAccess', _291 => _291.contains, 'call', _292 => _292(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _293 => _293.current, 'optionalAccess', _294 => _294.contains, 'call', _295 => _295(target)])) {
14070
14081
  setShowHiddenTags(false);
14071
14082
  }
14072
14083
  };
@@ -14077,7 +14088,7 @@ function TagSearchInput({
14077
14088
  const popup = hiddenTagsPopupRef.current;
14078
14089
  const badge = badgeRef.current;
14079
14090
  if (!popup || !badge) return;
14080
- const originLeft = _nullishCoalesce(_optionalChain([wrapperRef, 'access', _294 => _294.current, 'optionalAccess', _295 => _295.getBoundingClientRect, 'call', _296 => _296(), 'access', _297 => _297.left]), () => ( 0));
14091
+ const originLeft = _nullishCoalesce(_optionalChain([wrapperRef, 'access', _296 => _296.current, 'optionalAccess', _297 => _297.getBoundingClientRect, 'call', _298 => _298(), 'access', _299 => _299.left]), () => ( 0));
14081
14092
  popup.style.left = `${badge.getBoundingClientRect().left - originLeft}px`;
14082
14093
  });
14083
14094
  const hiddenCount = tags.length - visibleCount;
@@ -14089,13 +14100,13 @@ function TagSearchInput({
14089
14100
  e.preventDefault();
14090
14101
  onSubmit(searchValue);
14091
14102
  }
14092
- _optionalChain([onKeyDown, 'optionalCall', _298 => _298(e)]);
14103
+ _optionalChain([onKeyDown, 'optionalCall', _300 => _300(e)]);
14093
14104
  };
14094
14105
  const handleClearAll = (e) => {
14095
14106
  e.stopPropagation();
14096
14107
  e.preventDefault();
14097
- _optionalChain([onClearAll, 'optionalCall', _299 => _299()]);
14098
- _optionalChain([inputRef, 'access', _300 => _300.current, 'optionalAccess', _301 => _301.focus, 'call', _302 => _302()]);
14108
+ _optionalChain([onClearAll, 'optionalCall', _301 => _301()]);
14109
+ _optionalChain([inputRef, 'access', _302 => _302.current, 'optionalAccess', _303 => _303.focus, 'call', _304 => _304()]);
14099
14110
  };
14100
14111
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: wrapperRef, className: "relative", children: [
14101
14112
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -14118,7 +14129,7 @@ function TagSearchInput({
14118
14129
  className
14119
14130
  ),
14120
14131
  onClick: () => {
14121
- if (!disabled) _optionalChain([inputRef, 'access', _303 => _303.current, 'optionalAccess', _304 => _304.focus, 'call', _305 => _305()]);
14132
+ if (!disabled) _optionalChain([inputRef, 'access', _305 => _305.current, 'optionalAccess', _306 => _306.focus, 'call', _307 => _307()]);
14122
14133
  },
14123
14134
  children: [
14124
14135
  /* @__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" }) }),
@@ -14299,19 +14310,19 @@ function MarkdownLinkDialog({ isOpen, initial, editing, onSubmit, onRemove, onCl
14299
14310
  ),
14300
14311
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xsf)]", children: [
14301
14312
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14302
- _chunkEQKMFQ5Jcjs.TabSelector,
14313
+ _chunkRGGV3YOPcjs.TabSelector,
14303
14314
  {
14304
14315
  label: "Search engines",
14305
14316
  value: choice,
14306
14317
  onValueChange: (value) => {
14307
- const next = _nullishCoalesce(_optionalChain([LINK_REL_CHOICES, 'access', _306 => _306.find, 'call', _307 => _307((option) => option.id === value), 'optionalAccess', _308 => _308.id]), () => ( "follow"));
14318
+ const next = _nullishCoalesce(_optionalChain([LINK_REL_CHOICES, 'access', _308 => _308.find, 'call', _309 => _309((option) => option.id === value), 'optionalAccess', _310 => _310.id]), () => ( "follow"));
14308
14319
  setRel(next === "follow" ? [] : [next]);
14309
14320
  },
14310
14321
  items: LINK_REL_ITEMS,
14311
14322
  variant: "secondary"
14312
14323
  }
14313
14324
  ),
14314
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: _optionalChain([LINK_REL_CHOICES, 'access', _309 => _309.find, 'call', _310 => _310((option) => option.id === choice), 'optionalAccess', _311 => _311.hint]) })
14325
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: _optionalChain([LINK_REL_CHOICES, 'access', _311 => _311.find, 'call', _312 => _312((option) => option.id === choice), 'optionalAccess', _313 => _313.hint]) })
14315
14326
  ] })
14316
14327
  ]
14317
14328
  }
@@ -14336,7 +14347,7 @@ function useMarkdownLinkCommand() {
14336
14347
  void (async () => {
14337
14348
  try {
14338
14349
  const mod = await Promise.resolve().then(() => _interopRequireWildcard(require("@uiw/react-md-editor")));
14339
- if (!cancelled && _optionalChain([mod, 'access', _312 => _312.commands, 'optionalAccess', _313 => _313.getCommands])) setVendorCommands(mod.commands.getCommands());
14350
+ if (!cancelled && _optionalChain([mod, 'access', _314 => _314.commands, 'optionalAccess', _315 => _315.getCommands])) setVendorCommands(mod.commands.getCommands());
14340
14351
  } catch (error) {
14341
14352
  console.error("Failed to load markdown editor toolbar commands:", error);
14342
14353
  }
@@ -14356,7 +14367,7 @@ function useMarkdownLinkCommand() {
14356
14367
  buttonProps: { "aria-label": "Add or edit a link (ctrl + l)", title: "Add or edit a link (ctrl + l)" },
14357
14368
  icon: command.icon,
14358
14369
  execute: (state, api) => {
14359
- const existing = _chunkEQKMFQ5Jcjs.findMarkdownLinkAt.call(void 0, state.text, state.selection.start, state.selection.end);
14370
+ const existing = _chunkRGGV3YOPcjs.findMarkdownLinkAt.call(void 0, state.text, state.selection.start, state.selection.end);
14360
14371
  setPending(
14361
14372
  existing ? {
14362
14373
  api,
@@ -14384,10 +14395,10 @@ function useMarkdownLinkCommand() {
14384
14395
  MarkdownLinkDialog,
14385
14396
  {
14386
14397
  isOpen: pending !== null,
14387
- initial: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _314 => _314.initial]), () => ( EMPTY_LINK)),
14388
- editing: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _315 => _315.editing]), () => ( false)),
14398
+ initial: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _316 => _316.initial]), () => ( EMPTY_LINK)),
14399
+ editing: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _317 => _317.editing]), () => ( false)),
14389
14400
  onSubmit: (link) => {
14390
- if (pending) write(pending, _chunkEQKMFQ5Jcjs.formatMarkdownLink.call(void 0, link));
14401
+ if (pending) write(pending, _chunkRGGV3YOPcjs.formatMarkdownLink.call(void 0, link));
14391
14402
  },
14392
14403
  onRemove: () => {
14393
14404
  if (pending) write(pending, pending.initial.text);
@@ -14518,7 +14529,7 @@ function MarkdownEditor({
14518
14529
  try {
14519
14530
  const mod = await Promise.resolve().then(() => _interopRequireWildcard(require("@uiw/react-md-editor")));
14520
14531
  if (cancelled) return;
14521
- if (_optionalChain([mod, 'access', _316 => _316.commands, 'optionalAccess', _317 => _317.getExtraCommands])) {
14532
+ if (_optionalChain([mod, 'access', _318 => _318.commands, 'optionalAccess', _319 => _319.getExtraCommands])) {
14522
14533
  setDefaultExtraCommands(mod.commands.getExtraCommands());
14523
14534
  }
14524
14535
  } catch (error) {
@@ -14553,10 +14564,10 @@ function MarkdownEditor({
14553
14564
  setUploadProgress(`Uploading ${file.name}...`);
14554
14565
  try {
14555
14566
  const url = await onUploadFile(file);
14556
- const isImage = _chunkEOZ23WOYcjs.fileMediaType.call(void 0, file) === "image";
14567
+ const isImage = _chunkHQY6KYUDcjs.fileMediaType.call(void 0, file) === "image";
14557
14568
  const markdown = isImage ? `![${file.name}](${url})` : `[${file.name}](${url})`;
14558
14569
  insertTextAtCursor(markdown);
14559
- _optionalChain([onFileUploaded, 'optionalCall', _318 => _318(url, file.name)]);
14570
+ _optionalChain([onFileUploaded, 'optionalCall', _320 => _320(url, file.name)]);
14560
14571
  } catch (error) {
14561
14572
  console.error("File upload failed:", error);
14562
14573
  setUploadProgress("Upload failed. Please try again.");
@@ -14570,7 +14581,7 @@ function MarkdownEditor({
14570
14581
  const handleFileInputChange = _react.useCallback.call(void 0,
14571
14582
  (e) => {
14572
14583
  const input = e.target;
14573
- const file = _optionalChain([input, 'access', _319 => _319.files, 'optionalAccess', _320 => _320[0]]);
14584
+ const file = _optionalChain([input, 'access', _321 => _321.files, 'optionalAccess', _322 => _322[0]]);
14574
14585
  if (file) {
14575
14586
  void handleFileUpload(file);
14576
14587
  input.value = "";
@@ -14581,7 +14592,7 @@ function MarkdownEditor({
14581
14592
  const handlePaste = _react.useCallback.call(void 0,
14582
14593
  (e) => {
14583
14594
  if (!onUploadFile) return;
14584
- const items = _optionalChain([e, 'access', _321 => _321.clipboardData, 'optionalAccess', _322 => _322.items]);
14595
+ const items = _optionalChain([e, 'access', _323 => _323.clipboardData, 'optionalAccess', _324 => _324.items]);
14585
14596
  if (!items) return;
14586
14597
  for (const item of items) {
14587
14598
  if (item.type.startsWith("image/")) {
@@ -14606,7 +14617,7 @@ function MarkdownEditor({
14606
14617
  buttonProps: { "aria-label": "Upload file", title: "Upload file" },
14607
14618
  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" }),
14608
14619
  execute: () => {
14609
- _optionalChain([fileInputRef, 'access', _323 => _323.current, 'optionalAccess', _324 => _324.click, 'call', _325 => _325()]);
14620
+ _optionalChain([fileInputRef, 'access', _325 => _325.current, 'optionalAccess', _326 => _326.click, 'call', _327 => _327()]);
14610
14621
  }
14611
14622
  } : null;
14612
14623
  const extraCommands = uploadCommand ? [...defaultExtraCommands, uploadCommand] : defaultExtraCommands;
@@ -14618,7 +14629,7 @@ function MarkdownEditor({
14618
14629
  const EDGE_ZONE = 60;
14619
14630
  const MAX_SCROLL_SPEED = 15;
14620
14631
  const findScrollParent2 = _react.useCallback.call(void 0, (el) => {
14621
- let node = _optionalChain([el, 'optionalAccess', _326 => _326.parentElement]);
14632
+ let node = _optionalChain([el, 'optionalAccess', _328 => _328.parentElement]);
14622
14633
  while (node && node !== document.documentElement) {
14623
14634
  const { overflowY } = window.getComputedStyle(node);
14624
14635
  if ((overflowY === "auto" || overflowY === "scroll") && node.scrollHeight > node.clientHeight) {
@@ -14683,7 +14694,7 @@ function MarkdownEditor({
14683
14694
  type: "file",
14684
14695
  className: "hidden",
14685
14696
  onChange: handleFileInputChange,
14686
- accept: `${_chunkEOZ23WOYcjs.IMAGE_FILE_ACCEPT},.pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.zip,.txt`
14697
+ accept: `${_chunkHQY6KYUDcjs.IMAGE_FILE_ACCEPT},.pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.zip,.txt`
14687
14698
  }
14688
14699
  ),
14689
14700
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownEditorHeightContext.Provider, { value: height, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Suspense, { fallback: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownEditorFieldSkeleton, { height }), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -14758,7 +14769,7 @@ function matchesAccept(file, accept) {
14758
14769
  });
14759
14770
  }
14760
14771
  function dragHasFiles(e) {
14761
- const types = _optionalChain([e, 'access', _327 => _327.dataTransfer, 'optionalAccess', _328 => _328.types]);
14772
+ const types = _optionalChain([e, 'access', _329 => _329.dataTransfer, 'optionalAccess', _330 => _330.types]);
14762
14773
  if (!types) return false;
14763
14774
  for (let i = 0; i < types.length; i++) {
14764
14775
  if (types[i] === "Files") return true;
@@ -14857,7 +14868,7 @@ function FileUpload({
14857
14868
  e.stopPropagation();
14858
14869
  setDragActive(false);
14859
14870
  if (disabled) return;
14860
- if (_optionalChain([e, 'access', _329 => _329.dataTransfer, 'access', _330 => _330.files, 'optionalAccess', _331 => _331.length])) {
14871
+ if (_optionalChain([e, 'access', _331 => _331.dataTransfer, 'access', _332 => _332.files, 'optionalAccess', _333 => _333.length])) {
14861
14872
  handleFiles(e.dataTransfer.files);
14862
14873
  }
14863
14874
  };
@@ -14885,7 +14896,7 @@ function FileUpload({
14885
14896
  e.preventDefault();
14886
14897
  dragCounter = 0;
14887
14898
  setDragActive(false);
14888
- if (_optionalChain([e, 'access', _332 => _332.dataTransfer, 'optionalAccess', _333 => _333.files, 'optionalAccess', _334 => _334.length])) {
14899
+ if (_optionalChain([e, 'access', _334 => _334.dataTransfer, 'optionalAccess', _335 => _335.files, 'optionalAccess', _336 => _336.length])) {
14889
14900
  handleFilesRef.current(e.dataTransfer.files);
14890
14901
  }
14891
14902
  };
@@ -14907,7 +14918,7 @@ function FileUpload({
14907
14918
  };
14908
14919
  }, [acceptWindowDrops, disabled]);
14909
14920
  const handleFileSelect = (e) => {
14910
- if (_optionalChain([e, 'access', _335 => _335.target, 'access', _336 => _336.files, 'optionalAccess', _337 => _337.length])) {
14921
+ if (_optionalChain([e, 'access', _337 => _337.target, 'access', _338 => _338.files, 'optionalAccess', _339 => _339.length])) {
14911
14922
  handleFiles(e.target.files);
14912
14923
  }
14913
14924
  };
@@ -14925,7 +14936,7 @@ function FileUpload({
14925
14936
  const openDialog = async () => {
14926
14937
  if (disabled) return;
14927
14938
  if (!pickFiles) {
14928
- _optionalChain([fileInputRef, 'access', _338 => _338.current, 'optionalAccess', _339 => _339.click, 'call', _340 => _340()]);
14939
+ _optionalChain([fileInputRef, 'access', _340 => _340.current, 'optionalAccess', _341 => _341.click, 'call', _342 => _342()]);
14929
14940
  return;
14930
14941
  }
14931
14942
  try {
@@ -15003,7 +15014,7 @@ function FileUpload({
15003
15014
  "data-tone": "error",
15004
15015
  size: "icon-sm",
15005
15016
  type: "button",
15006
- onClick: () => _optionalChain([onRemoveManagedFile, 'optionalCall', _341 => _341(entry.id)]),
15017
+ onClick: () => _optionalChain([onRemoveManagedFile, 'optionalCall', _343 => _343(entry.id)]),
15007
15018
  className: "shrink-0",
15008
15019
  "aria-label": `Remove ${entry.fileName}`,
15009
15020
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYHH5EIOcjs.TrashIcon, { className: "text-ods-error" })
@@ -15097,7 +15108,7 @@ function matchesAccept2(file, accept) {
15097
15108
  return patterns.some((pattern) => {
15098
15109
  if (pattern.startsWith(".")) return fileName.endsWith(pattern);
15099
15110
  if (pattern.endsWith("/*"))
15100
- return fileType.startsWith(pattern.slice(0, -1)) || _chunkEOZ23WOYcjs.fileMediaType.call(void 0, file) === pattern.slice(0, -2);
15111
+ return fileType.startsWith(pattern.slice(0, -1)) || _chunkHQY6KYUDcjs.fileMediaType.call(void 0, file) === pattern.slice(0, -2);
15101
15112
  return fileType === pattern;
15102
15113
  });
15103
15114
  }
@@ -15105,7 +15116,7 @@ function ImageUploader({
15105
15116
  value,
15106
15117
  onChange,
15107
15118
  onRemove,
15108
- accept = _chunkEOZ23WOYcjs.IMAGE_FILE_ACCEPT,
15119
+ accept = _chunkHQY6KYUDcjs.IMAGE_FILE_ACCEPT,
15109
15120
  maxSize = DEFAULT_MAX_SIZE,
15110
15121
  label = "Cover Image",
15111
15122
  description = "(Click Here or Drag and Drop)",
@@ -15143,7 +15154,7 @@ function ImageUploader({
15143
15154
  onChange(file);
15144
15155
  };
15145
15156
  const handleFileSelect = (e) => {
15146
- validateAndEmit(_optionalChain([e, 'access', _342 => _342.target, 'access', _343 => _343.files, 'optionalAccess', _344 => _344[0]]));
15157
+ validateAndEmit(_optionalChain([e, 'access', _344 => _344.target, 'access', _345 => _345.files, 'optionalAccess', _346 => _346[0]]));
15147
15158
  if (inputRef.current) inputRef.current.value = "";
15148
15159
  };
15149
15160
  const handleDrag = (e) => {
@@ -15158,11 +15169,11 @@ function ImageUploader({
15158
15169
  e.stopPropagation();
15159
15170
  setDragActive(false);
15160
15171
  if (!interactive) return;
15161
- validateAndEmit(_optionalChain([e, 'access', _345 => _345.dataTransfer, 'access', _346 => _346.files, 'optionalAccess', _347 => _347[0]]));
15172
+ validateAndEmit(_optionalChain([e, 'access', _347 => _347.dataTransfer, 'access', _348 => _348.files, 'optionalAccess', _349 => _349[0]]));
15162
15173
  };
15163
15174
  const openDialog = () => {
15164
15175
  if (!interactive) return;
15165
- _optionalChain([inputRef, 'access', _348 => _348.current, 'optionalAccess', _349 => _349.click, 'call', _350 => _350()]);
15176
+ _optionalChain([inputRef, 'access', _350 => _350.current, 'optionalAccess', _351 => _351.click, 'call', _352 => _352()]);
15166
15177
  };
15167
15178
  const handleRootKeyDown = (e) => {
15168
15179
  if (hasImage || !interactive) return;
@@ -15329,8 +15340,8 @@ function ColorPresetSelect({
15329
15340
  }) {
15330
15341
  const selectedPreset = presets.find((p) => p.key === presetKey);
15331
15342
  const isCustom = !selectedPreset;
15332
- const displayLabel = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _351 => _351.label]), () => ( "Custom"));
15333
- const displayColor = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _352 => _352.color]), () => ( value));
15343
+ const displayLabel = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _353 => _353.label]), () => ( "Custom"));
15344
+ const displayColor = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _354 => _354.color]), () => ( value));
15334
15345
  const groups = [
15335
15346
  {
15336
15347
  items: [
@@ -15643,7 +15654,7 @@ function TicketStatusConfigRow({
15643
15654
  {
15644
15655
  id: nameInputId,
15645
15656
  value: name,
15646
- onChange: (e) => _optionalChain([onNameChange, 'optionalCall', _353 => _353(e.target.value)]),
15657
+ onChange: (e) => _optionalChain([onNameChange, 'optionalCall', _355 => _355(e.target.value)]),
15647
15658
  disabled: isSystem,
15648
15659
  readOnly: isSystem,
15649
15660
  maxLength: 50
@@ -16208,14 +16219,14 @@ function TicketInfoSection({
16208
16219
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
16209
16220
  _chunkKKD7XV5Acjs.SquareAvatar,
16210
16221
  {
16211
- src: _optionalChain([organization, 'optionalAccess', _354 => _354.imageSrc]),
16212
- alt: _optionalChain([organization, 'optionalAccess', _355 => _355.name]),
16213
- fallback: _optionalChain([organization, 'optionalAccess', _356 => _356.name]) || "Org",
16222
+ src: _optionalChain([organization, 'optionalAccess', _356 => _356.imageSrc]),
16223
+ alt: _optionalChain([organization, 'optionalAccess', _357 => _357.name]),
16224
+ fallback: _optionalChain([organization, 'optionalAccess', _358 => _358.name]) || "Org",
16214
16225
  size: "md",
16215
16226
  className: "shrink-0"
16216
16227
  }
16217
16228
  ),
16218
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: _optionalChain([organization, 'optionalAccess', _357 => _357.name]) || "Unassigned", label: "Organization" })
16229
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: _optionalChain([organization, 'optionalAccess', _359 => _359.name]) || "Unassigned", label: "Organization" })
16219
16230
  ] }),
16220
16231
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: assigned ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
16221
16232
  AssigneeDropdown,
@@ -16233,7 +16244,7 @@ function TicketInfoSection({
16233
16244
  ] }),
16234
16245
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "block truncate text-ods-text-secondary text-h6", children: "Assigned" })
16235
16246
  ] }) }),
16236
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: _optionalChain([device, 'optionalAccess', _358 => _358.name]) || "Unassigned", label: "Device", icon: _optionalChain([device, 'optionalAccess', _359 => _359.icon]), onClick: _optionalChain([device, 'optionalAccess', _360 => _360.onClick]) }),
16247
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: _optionalChain([device, 'optionalAccess', _360 => _360.name]) || "Unassigned", label: "Device", icon: _optionalChain([device, 'optionalAccess', _361 => _361.icon]), onClick: _optionalChain([device, 'optionalAccess', _362 => _362.onClick]) }),
16237
16248
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-4", children: [
16238
16249
  (status || statusLabel) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
16239
16250
  _chunkHAAQUV3Ocjs.TicketStatusTag,
@@ -16266,7 +16277,7 @@ function TicketInfoSection({
16266
16277
  expanded && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
16267
16278
  createdAt && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid grid-cols-2 items-center gap-4 border-b border-ods-border bg-ods-bg px-4 py-3", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: createdAt, label: "Created" }) }),
16268
16279
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-4 border-b border-ods-border bg-ods-bg p-4", children: [
16269
- description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEQKMFQ5Jcjs.SimpleMarkdownRenderer, { content: description }),
16280
+ description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRGGV3YOPcjs.SimpleMarkdownRenderer, { content: description }),
16270
16281
  attachments && attachments.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Attachments", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketAttachmentsList, { attachments }) }),
16271
16282
  tags && tags.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Tags", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-wrap gap-2", children: tags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKKD7XV5Acjs.Tag, { label: tag, variant: "outline", className: "max-w-full" }, tag)) }) }),
16272
16283
  (notes || onAddNote) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Notes", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -16329,7 +16340,7 @@ function TakeOverTicketModal({
16329
16340
  setAssigneeId(_nullishCoalesce(initialAssigneeId, () => ( null)));
16330
16341
  }
16331
16342
  }
16332
- const selectedStatusId = _nullishCoalesce(_nullishCoalesce(statusId, () => ( _optionalChain([statusOptions, 'access', _361 => _361[0], 'optionalAccess', _362 => _362.value]))), () => ( null));
16343
+ const selectedStatusId = _nullishCoalesce(_nullishCoalesce(statusId, () => ( _optionalChain([statusOptions, 'access', _363 => _363[0], 'optionalAccess', _364 => _364.value]))), () => ( null));
16333
16344
  const selectedStatus = statusOptions.find((o) => o.value === selectedStatusId);
16334
16345
  const selectedAssignee = assigneeOptions.find((o) => o.value === assigneeId);
16335
16346
  const handleConfirm = () => {
@@ -16427,7 +16438,7 @@ function ReopenTicketModal({
16427
16438
  setReason("");
16428
16439
  }
16429
16440
  }
16430
- const selectedStatusId = _nullishCoalesce(_nullishCoalesce(statusId, () => ( _optionalChain([statusOptions, 'access', _363 => _363[0], 'optionalAccess', _364 => _364.value]))), () => ( null));
16441
+ const selectedStatusId = _nullishCoalesce(_nullishCoalesce(statusId, () => ( _optionalChain([statusOptions, 'access', _365 => _365[0], 'optionalAccess', _366 => _366.value]))), () => ( null));
16431
16442
  const selectedStatus = statusOptions.find((o) => o.value === selectedStatusId);
16432
16443
  const selectedAssignee = assigneeOptions.find((o) => o.value === assigneeId);
16433
16444
  const handleConfirm = () => {
@@ -16668,7 +16679,7 @@ function usePhotoOrientations(urls) {
16668
16679
  }
16669
16680
  };
16670
16681
  }, [key]);
16671
- return _optionalChain([measured, 'optionalAccess', _365 => _365.key]) === key ? measured.byUrl : null;
16682
+ return _optionalChain([measured, 'optionalAccess', _367 => _367.key]) === key ? measured.byUrl : null;
16672
16683
  }
16673
16684
  function PhotoWall({
16674
16685
  images,
@@ -16687,7 +16698,7 @@ function PhotoWall({
16687
16698
  const root = rootRef.current;
16688
16699
  if (!root) return void 0;
16689
16700
  const read = () => setBox(
16690
- (previous) => _optionalChain([previous, 'optionalAccess', _366 => _366.width]) === root.clientWidth && previous.height === root.clientHeight ? previous : { width: root.clientWidth, height: root.clientHeight }
16701
+ (previous) => _optionalChain([previous, 'optionalAccess', _368 => _368.width]) === root.clientWidth && previous.height === root.clientHeight ? previous : { width: root.clientWidth, height: root.clientHeight }
16691
16702
  );
16692
16703
  read();
16693
16704
  if (typeof ResizeObserver === "undefined") return void 0;
@@ -16747,11 +16758,11 @@ function PhotoWall({
16747
16758
  if (images.length === 0 && !loading) return null;
16748
16759
  const columnsToDraw = loading || !sizedUpFront && requestWidth === void 0 ? null : layout;
16749
16760
  const gridStyle = {
16750
- gridTemplateColumns: `repeat(${_optionalChain([columnsToDraw, 'optionalAccess', _367 => _367.length]) || columns}, minmax(0, 1fr))`,
16761
+ gridTemplateColumns: `repeat(${_optionalChain([columnsToDraw, 'optionalAccess', _369 => _369.length]) || columns}, minmax(0, 1fr))`,
16751
16762
  gap: COLUMN_GAP_PX
16752
16763
  };
16753
16764
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: rootRef, "aria-hidden": "true", className: _chunkNWNC22IZcjs.cn.call(void 0, "grid overflow-hidden", className), style: gridStyle, children: columnsToDraw ? columnsToDraw.map((column, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
16754
- _chunkEQKMFQ5Jcjs.MarqueeWall,
16765
+ _chunkRGGV3YOPcjs.MarqueeWall,
16755
16766
  {
16756
16767
  axis: "y",
16757
16768
  reverse: index % 2 === 1,
@@ -17100,7 +17111,7 @@ function subscribeToClock(onTick) {
17100
17111
  }
17101
17112
  function readClock() {
17102
17113
  const parts = new Intl.DateTimeFormat(void 0, { hour: "numeric", minute: "2-digit" }).formatToParts(/* @__PURE__ */ new Date());
17103
- const part = (type) => _nullishCoalesce(_optionalChain([parts, 'access', _368 => _368.find, 'call', _369 => _369((p) => p.type === type), 'optionalAccess', _370 => _370.value]), () => ( ""));
17114
+ const part = (type) => _nullishCoalesce(_optionalChain([parts, 'access', _370 => _370.find, 'call', _371 => _371((p) => p.type === type), 'optionalAccess', _372 => _372.value]), () => ( ""));
17104
17115
  return `${part("hour")}:${part("minute")}`;
17105
17116
  }
17106
17117
  function readDate() {
@@ -17311,7 +17322,7 @@ var TRIAL_TERM_ICONS = {
17311
17322
  };
17312
17323
  var DEFAULT_TRIAL_TERMS = ["cancel", "length", "noContract"];
17313
17324
  function trialBenefits(trialDays, terms = DEFAULT_TRIAL_TERMS) {
17314
- const labels = _chunkYCSX7MCGcjs.trialLabels.call(void 0, trialDays);
17325
+ const labels = _chunkWFMLODQ4cjs.trialLabels.call(void 0, trialDays);
17315
17326
  return terms.flatMap((term) => {
17316
17327
  const label = labels[term];
17317
17328
  return label ? [{ icon: TRIAL_TERM_ICONS[term], label }] : [];
@@ -17640,7 +17651,7 @@ function SnapCarousel({
17640
17651
  const auto = _chunkOJZBZH56cjs.useAutoplay.call(void 0, inView);
17641
17652
  const count = items.length;
17642
17653
  const slideStep = _react.useCallback.call(void 0, () => {
17643
- const first = _optionalChain([trackRef, 'access', _371 => _371.current, 'optionalAccess', _372 => _372.firstElementChild]);
17654
+ const first = _optionalChain([trackRef, 'access', _373 => _373.current, 'optionalAccess', _374 => _374.firstElementChild]);
17644
17655
  return first ? first.offsetWidth + SNAP_CAROUSEL_GAP_PX : 0;
17645
17656
  }, []);
17646
17657
  const goTo = _react.useCallback.call(void 0,
@@ -18019,10 +18030,10 @@ function AccountDetailsFields({
18019
18030
  onKeyDown,
18020
18031
  layout = "stacked"
18021
18032
  }) {
18022
- const firstNameErr = _chunk2U4H74KScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _373 => _373.firstName]), firstName);
18023
- const lastNameErr = _chunk2U4H74KScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _374 => _374.lastName]), lastName);
18024
- const passwordErr = _chunk2U4H74KScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _375 => _375.password]), password);
18025
- const confirmErr = _chunk2U4H74KScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _376 => _376.confirmPassword]), confirmPassword);
18033
+ const firstNameErr = _chunk2U4H74KScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _375 => _375.firstName]), firstName);
18034
+ const lastNameErr = _chunk2U4H74KScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _376 => _376.lastName]), lastName);
18035
+ const passwordErr = _chunk2U4H74KScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _377 => _377.password]), password);
18036
+ const confirmErr = _chunk2U4H74KScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _378 => _378.confirmPassword]), confirmPassword);
18026
18037
  const names = [
18027
18038
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
18028
18039
  _chunkTC2T5Q7Mcjs.Input,
@@ -18280,7 +18291,7 @@ function SsoProviderButtons({
18280
18291
  disabled: disabled || (enabledProviders ? !enabledProviders.includes(provider) : false),
18281
18292
  className: "disabled:bg-ods-bg",
18282
18293
  leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "h-5 w-5" }),
18283
- onClick: () => _optionalChain([onSsoClick, 'optionalCall', _377 => _377(provider)]),
18294
+ onClick: () => _optionalChain([onSsoClick, 'optionalCall', _379 => _379(provider)]),
18284
18295
  children: [
18285
18296
  `${actionLabel} ${meta.name}`,
18286
18297
  tag && // A child, not `rightIcon`: the Button lays its children out through a `contents` span,
@@ -18348,7 +18359,7 @@ function CompleteAccountForm({
18348
18359
  ),
18349
18360
  children: [
18350
18361
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
18351
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkEOZ23WOYcjs.accentSentenceMarks.call(void 0, title) }),
18362
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkHQY6KYUDcjs.accentSentenceMarks.call(void 0, title) }),
18352
18363
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
18353
18364
  ] }),
18354
18365
  (ssoProvidersLoading || ssoProviders && ssoProviders.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
@@ -18482,9 +18493,9 @@ function CreateOrganizationForm({
18482
18493
  }) {
18483
18494
  const hasSso = !!ssoProviders && ssoProviders.length > 0;
18484
18495
  const fieldsDisabled = disabled || loading;
18485
- const emailErr = _chunk2U4H74KScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _378 => _378.email]), _nullishCoalesce(email, () => ( "")));
18486
- const orgNameErr = _chunk2U4H74KScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _379 => _379.organizationName]), organizationName);
18487
- const domainErr = _chunk2U4H74KScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _380 => _380.domain]), domain);
18496
+ const emailErr = _chunk2U4H74KScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _380 => _380.email]), _nullishCoalesce(email, () => ( "")));
18497
+ const orgNameErr = _chunk2U4H74KScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _381 => _381.organizationName]), organizationName);
18498
+ const domainErr = _chunk2U4H74KScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _382 => _382.domain]), domain);
18488
18499
  const handleKeyDown = (event) => {
18489
18500
  if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
18490
18501
  onSubmit();
@@ -18499,7 +18510,7 @@ function CreateOrganizationForm({
18499
18510
  ),
18500
18511
  children: [
18501
18512
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
18502
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkEOZ23WOYcjs.accentSentenceMarks.call(void 0, title) }),
18513
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkHQY6KYUDcjs.accentSentenceMarks.call(void 0, title) }),
18503
18514
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle === null ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "inherit", as: "span", className: CREATE_ORGANIZATION_SUBTITLE_BAR_CLASS }) : subtitle })
18504
18515
  ] }),
18505
18516
  email === void 0 ? null : emailReadOnly && emailReadOnlyLabel === null ? (
@@ -18515,11 +18526,11 @@ function CreateOrganizationForm({
18515
18526
  label: "Email",
18516
18527
  placeholder: "username@mail.com",
18517
18528
  value: email,
18518
- error: _nullishCoalesce(emailErr.error, () => ( _optionalChain([emailStatus, 'optionalAccess', _381 => _381.message]))),
18519
- errorVariant: emailErr.error ? "error" : _optionalChain([emailStatus, 'optionalAccess', _382 => _382.variant]),
18529
+ error: _nullishCoalesce(emailErr.error, () => ( _optionalChain([emailStatus, 'optionalAccess', _383 => _383.message]))),
18530
+ errorVariant: emailErr.error ? "error" : _optionalChain([emailStatus, 'optionalAccess', _384 => _384.variant]),
18520
18531
  disabled: fieldsDisabled,
18521
18532
  onBlur: emailErr.onBlur,
18522
- onChange: (event) => _optionalChain([onEmailChange, 'optionalCall', _383 => _383(event.target.value)]),
18533
+ onChange: (event) => _optionalChain([onEmailChange, 'optionalCall', _385 => _385(event.target.value)]),
18523
18534
  onKeyDown: handleKeyDown
18524
18535
  }
18525
18536
  ),
@@ -18543,8 +18554,8 @@ function CreateOrganizationForm({
18543
18554
  label: "Domain",
18544
18555
  placeholder: domainPlaceholder,
18545
18556
  value: domain,
18546
- error: _nullishCoalesce(domainErr.error, () => ( _optionalChain([domainStatus, 'optionalAccess', _384 => _384.message]))),
18547
- errorVariant: domainErr.error ? "error" : _optionalChain([domainStatus, 'optionalAccess', _385 => _385.variant]),
18557
+ error: _nullishCoalesce(domainErr.error, () => ( _optionalChain([domainStatus, 'optionalAccess', _386 => _386.message]))),
18558
+ errorVariant: domainErr.error ? "error" : _optionalChain([domainStatus, 'optionalAccess', _387 => _387.variant]),
18548
18559
  disabled: fieldsDisabled,
18549
18560
  onBlur: domainErr.onBlur,
18550
18561
  endAdornment: domainSuffix ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: domainSuffix }) : void 0,
@@ -18579,7 +18590,7 @@ function CreateOrganizationForm({
18579
18590
  label: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TermsAgreementLabel, { termsUrl, privacyPolicyUrl }),
18580
18591
  checked: agreedToTerms,
18581
18592
  disabled: fieldsDisabled,
18582
- error: _optionalChain([errors, 'optionalAccess', _386 => _386.terms]),
18593
+ error: _optionalChain([errors, 'optionalAccess', _388 => _388.terms]),
18583
18594
  onCheckedChange: onAgreedToTermsChange
18584
18595
  }
18585
18596
  ),
@@ -18646,7 +18657,7 @@ function InviteLinkInvalidModal({
18646
18657
  ),
18647
18658
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full max-w-[600px] flex-col gap-[var(--spacing-system-l)] rounded-md border border-ods-border bg-ods-card p-[var(--spacing-system-xl)]", children: [
18648
18659
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-mf)]", children: [
18649
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "flex-1 tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkEOZ23WOYcjs.accentSentenceMarks.call(void 0, title) }),
18660
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "flex-1 tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkHQY6KYUDcjs.accentSentenceMarks.call(void 0, title) }),
18650
18661
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
18651
18662
  _chunkIZXVGIQXcjs.Button,
18652
18663
  {
@@ -18712,14 +18723,14 @@ function LoginForm({
18712
18723
  }) {
18713
18724
  const fieldDisabled = disabled || loading;
18714
18725
  const providersDisabled = fieldDisabled || ssoDisabled;
18715
- const emailErr = _chunk2U4H74KScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _387 => _387.email]), email);
18726
+ const emailErr = _chunk2U4H74KScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _389 => _389.email]), email);
18716
18727
  const handleKeyDown = (event) => {
18717
18728
  if (event.key !== "Enter" || event.repeat || fieldDisabled) return;
18718
18729
  if (onSubmitClick) {
18719
18730
  if (!submitDisabled) onSubmitClick();
18720
18731
  return;
18721
18732
  }
18722
- _optionalChain([onEmailEnter, 'optionalCall', _388 => _388()]);
18733
+ _optionalChain([onEmailEnter, 'optionalCall', _390 => _390()]);
18723
18734
  };
18724
18735
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
18725
18736
  "div",
@@ -18730,7 +18741,7 @@ function LoginForm({
18730
18741
  ),
18731
18742
  children: [
18732
18743
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
18733
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkEOZ23WOYcjs.accentSentenceMarks.call(void 0, title) }),
18744
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkHQY6KYUDcjs.accentSentenceMarks.call(void 0, title) }),
18734
18745
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
18735
18746
  ] }),
18736
18747
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -18740,8 +18751,8 @@ function LoginForm({
18740
18751
  label: "Email",
18741
18752
  placeholder: emailPlaceholder,
18742
18753
  value: email,
18743
- error: _nullishCoalesce(emailErr.error, () => ( _optionalChain([emailStatus, 'optionalAccess', _389 => _389.message]))),
18744
- errorVariant: emailErr.error ? "error" : _optionalChain([emailStatus, 'optionalAccess', _390 => _390.variant]),
18754
+ error: _nullishCoalesce(emailErr.error, () => ( _optionalChain([emailStatus, 'optionalAccess', _391 => _391.message]))),
18755
+ errorVariant: emailErr.error ? "error" : _optionalChain([emailStatus, 'optionalAccess', _392 => _392.variant]),
18745
18756
  disabled: fieldDisabled,
18746
18757
  onBlur: emailErr.onBlur,
18747
18758
  onChange: (event) => onEmailChange(event.target.value),
@@ -18857,7 +18868,7 @@ function NoAccountNotice({
18857
18868
  ),
18858
18869
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full max-w-[600px] flex-col gap-[var(--spacing-system-l)] rounded-md border border-ods-border bg-ods-card p-[var(--spacing-system-xl)]", children: [
18859
18870
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
18860
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkEOZ23WOYcjs.accentSentenceMarks.call(void 0, title) }),
18871
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkHQY6KYUDcjs.accentSentenceMarks.call(void 0, title) }),
18861
18872
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: description })
18862
18873
  ] }),
18863
18874
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZXVGIQXcjs.Button, { type: "button", variant: "outline", fullWidth: true, onClick: onBackToLogin, children: backLabel })
@@ -18890,8 +18901,8 @@ function OpenFrameSsoLoginForm({
18890
18901
  className
18891
18902
  }) {
18892
18903
  const fieldsDisabled = disabled || loading;
18893
- const emailErr = _chunk2U4H74KScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _391 => _391.email]), email);
18894
- const passwordErr = _chunk2U4H74KScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _392 => _392.password]), password);
18904
+ const emailErr = _chunk2U4H74KScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _393 => _393.email]), email);
18905
+ const passwordErr = _chunk2U4H74KScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _394 => _394.password]), password);
18895
18906
  const handleKeyDown = (event) => {
18896
18907
  if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
18897
18908
  onSubmit();
@@ -18906,7 +18917,7 @@ function OpenFrameSsoLoginForm({
18906
18917
  ),
18907
18918
  children: [
18908
18919
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
18909
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkEOZ23WOYcjs.accentSentenceMarks.call(void 0, title) }),
18920
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkHQY6KYUDcjs.accentSentenceMarks.call(void 0, title) }),
18910
18921
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
18911
18922
  ] }),
18912
18923
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -18996,7 +19007,7 @@ function OpenFrameSsoSignUpForm({
18996
19007
  className
18997
19008
  }) {
18998
19009
  const fieldsDisabled = disabled || loading;
18999
- const emailErr = _chunk2U4H74KScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _393 => _393.email]), email);
19010
+ const emailErr = _chunk2U4H74KScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _395 => _395.email]), email);
19000
19011
  const handleKeyDown = (event) => {
19001
19012
  if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
19002
19013
  onSubmit();
@@ -19011,7 +19022,7 @@ function OpenFrameSsoSignUpForm({
19011
19022
  ),
19012
19023
  children: [
19013
19024
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
19014
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkEOZ23WOYcjs.accentSentenceMarks.call(void 0, title) }),
19025
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkHQY6KYUDcjs.accentSentenceMarks.call(void 0, title) }),
19015
19026
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
19016
19027
  ] }),
19017
19028
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -19101,8 +19112,8 @@ function PasswordResetForm({
19101
19112
  className
19102
19113
  }) {
19103
19114
  const fieldsDisabled = disabled || loading;
19104
- const passwordErr = _chunk2U4H74KScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _394 => _394.password]), password);
19105
- const confirmErr = _chunk2U4H74KScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _395 => _395.confirmPassword]), confirmPassword);
19115
+ const passwordErr = _chunk2U4H74KScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _396 => _396.password]), password);
19116
+ const confirmErr = _chunk2U4H74KScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _397 => _397.confirmPassword]), confirmPassword);
19106
19117
  const handleKeyDown = (event) => {
19107
19118
  if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
19108
19119
  onSubmit();
@@ -19117,7 +19128,7 @@ function PasswordResetForm({
19117
19128
  ),
19118
19129
  children: [
19119
19130
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
19120
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkEOZ23WOYcjs.accentSentenceMarks.call(void 0, title) }),
19131
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkHQY6KYUDcjs.accentSentenceMarks.call(void 0, title) }),
19121
19132
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
19122
19133
  ] }),
19123
19134
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -19227,7 +19238,7 @@ function SsoJoinForm({
19227
19238
  }) {
19228
19239
  const readingIdentity = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, ) || identityLoading;
19229
19240
  const fieldsDisabled = disabled || loading || readingIdentity;
19230
- const displayName = _optionalChain([name, 'optionalAccess', _396 => _396.trim, 'call', _397 => _397()]) || _optionalChain([email, 'optionalAccess', _398 => _398.trim, 'call', _399 => _399()]) || "";
19241
+ const displayName = _optionalChain([name, 'optionalAccess', _398 => _398.trim, 'call', _399 => _399()]) || _optionalChain([email, 'optionalAccess', _400 => _400.trim, 'call', _401 => _401()]) || "";
19231
19242
  const shownRoles = readingIdentity && roles.length === 0 ? [""] : roles;
19232
19243
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
19233
19244
  "div",
@@ -19238,7 +19249,7 @@ function SsoJoinForm({
19238
19249
  ),
19239
19250
  children: [
19240
19251
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
19241
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkEOZ23WOYcjs.accentSentenceMarks.call(void 0, title) }),
19252
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkHQY6KYUDcjs.accentSentenceMarks.call(void 0, title) }),
19242
19253
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
19243
19254
  ] }),
19244
19255
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-s)] rounded-md border border-ods-border bg-ods-bg p-[var(--spacing-system-m)]", children: [
@@ -19414,7 +19425,7 @@ function ChangelogManager({
19414
19425
  descriptionLabel = "Description",
19415
19426
  descriptionPlaceholder = "Detailed explanation of the change..."
19416
19427
  }) {
19417
- const tagLabelOf = (value) => _optionalChain([tagOptions, 'optionalAccess', _400 => _400.find, 'call', _401 => _401((o) => o.value === value), 'optionalAccess', _402 => _402.label]);
19428
+ const tagLabelOf = (value) => _optionalChain([tagOptions, 'optionalAccess', _402 => _402.find, 'call', _403 => _403((o) => o.value === value), 'optionalAccess', _404 => _404.label]);
19418
19429
  const entryCount = entries.length;
19419
19430
  const allExpanded = () => new Set(Array.from({ length: entryCount }, (_, i) => i));
19420
19431
  const [expandedIndices, setExpandedIndices] = _react.useState.call(void 0,
@@ -19432,7 +19443,7 @@ function ChangelogManager({
19432
19443
  title: "",
19433
19444
  description: "",
19434
19445
  ...showVisibilityToggle && { visibility: "public" },
19435
- ..._optionalChain([tagOptions, 'optionalAccess', _403 => _403.length]) && { tag: tagOptions[0].value }
19446
+ ..._optionalChain([tagOptions, 'optionalAccess', _405 => _405.length]) && { tag: tagOptions[0].value }
19436
19447
  };
19437
19448
  onChange([...entries, newEntry]);
19438
19449
  setExpandedIndices((prev) => /* @__PURE__ */ new Set([...prev, entries.length]));
@@ -19700,12 +19711,12 @@ function CommandBox({
19700
19711
  title,
19701
19712
  lines: !fixedHeight && maxLines > 0 ? maxLines : void 0,
19702
19713
  visibleLines: fixedHeight ? visibleLines : void 0,
19703
- primaryActionLabel: _optionalChain([primaryAction, 'optionalAccess', _404 => _404.label]),
19704
- primaryActionIcon: _optionalChain([primaryAction, 'optionalAccess', _405 => _405.icon]),
19705
- primaryActionVariant: _optionalChain([primaryAction, 'optionalAccess', _406 => _406.variant]),
19706
- secondaryActionLabel: _optionalChain([secondaryAction, 'optionalAccess', _407 => _407.label]),
19707
- secondaryActionIcon: _optionalChain([secondaryAction, 'optionalAccess', _408 => _408.icon]),
19708
- secondaryActionVariant: _optionalChain([secondaryAction, 'optionalAccess', _409 => _409.variant]),
19714
+ primaryActionLabel: _optionalChain([primaryAction, 'optionalAccess', _406 => _406.label]),
19715
+ primaryActionIcon: _optionalChain([primaryAction, 'optionalAccess', _407 => _407.icon]),
19716
+ primaryActionVariant: _optionalChain([primaryAction, 'optionalAccess', _408 => _408.variant]),
19717
+ secondaryActionLabel: _optionalChain([secondaryAction, 'optionalAccess', _409 => _409.label]),
19718
+ secondaryActionIcon: _optionalChain([secondaryAction, 'optionalAccess', _410 => _410.icon]),
19719
+ secondaryActionVariant: _optionalChain([secondaryAction, 'optionalAccess', _411 => _411.variant]),
19709
19720
  showCopy: Boolean(onCopy),
19710
19721
  className
19711
19722
  }
@@ -20065,13 +20076,13 @@ var SectionSelector = ({
20065
20076
  const listRef = _react.useRef.call(void 0, null);
20066
20077
  _react.useEffect.call(void 0, () => {
20067
20078
  const list = listRef.current;
20068
- const active = _optionalChain([list, 'optionalAccess', _410 => _410.querySelector, 'call', _411 => _411('[role="tab"][aria-selected="true"]')]);
20079
+ const active = _optionalChain([list, 'optionalAccess', _412 => _412.querySelector, 'call', _413 => _413('[role="tab"][aria-selected="true"]')]);
20069
20080
  if (!list || !active || list.scrollWidth <= list.clientWidth) return;
20070
20081
  const offset = active.getBoundingClientRect().left - list.getBoundingClientRect().left;
20071
20082
  list.scrollLeft += offset - (list.clientWidth - active.clientWidth) / 2;
20072
20083
  }, [activeSection]);
20073
20084
  const enabled = sections.filter((section) => !section.disabled && !disabled);
20074
- const tabStopId = enabled.some((section) => section.id === activeSection) ? activeSection : _optionalChain([enabled, 'access', _412 => _412[0], 'optionalAccess', _413 => _413.id]);
20085
+ const tabStopId = enabled.some((section) => section.id === activeSection) ? activeSection : _optionalChain([enabled, 'access', _414 => _414[0], 'optionalAccess', _415 => _415.id]);
20075
20086
  const onKeyDown = (event) => {
20076
20087
  const step = event.key === "ArrowRight" || event.key === "ArrowDown" ? 1 : event.key === "ArrowLeft" || event.key === "ArrowUp" ? -1 : 0;
20077
20088
  if (!step && event.key !== "Home" && event.key !== "End") return;
@@ -20084,7 +20095,7 @@ var SectionSelector = ({
20084
20095
  const next = event.key === "Home" ? enabled[0] : event.key === "End" ? enabled[enabled.length - 1] : enabled[(at + step + enabled.length) % enabled.length];
20085
20096
  onSectionChange(next.id);
20086
20097
  requestAnimationFrame(
20087
- () => _optionalChain([listRef, 'access', _414 => _414.current, 'optionalAccess', _415 => _415.querySelector, 'call', _416 => _416('[role="tab"][aria-selected="true"]'), 'optionalAccess', _417 => _417.focus, 'call', _418 => _418()])
20098
+ () => _optionalChain([listRef, 'access', _416 => _416.current, 'optionalAccess', _417 => _417.querySelector, 'call', _418 => _418('[role="tab"][aria-selected="true"]'), 'optionalAccess', _419 => _419.focus, 'call', _420 => _420()])
20088
20099
  );
20089
20100
  };
20090
20101
  const getButtonWidthClasses = () => {
@@ -20127,10 +20138,10 @@ var getContentDimensions = (config) => {
20127
20138
  const envMobileHeight = process.env.NEXT_PUBLIC_FIGMA_MOBILE_HEIGHT ? parseInt(process.env.NEXT_PUBLIC_FIGMA_MOBILE_HEIGHT) : null;
20128
20139
  const envDesktopWidth = process.env.NEXT_PUBLIC_FIGMA_DESKTOP_WIDTH ? parseInt(process.env.NEXT_PUBLIC_FIGMA_DESKTOP_WIDTH) : null;
20129
20140
  const envDesktopHeight = process.env.NEXT_PUBLIC_FIGMA_DESKTOP_HEIGHT ? parseInt(process.env.NEXT_PUBLIC_FIGMA_DESKTOP_HEIGHT) : null;
20130
- const mobileWidth = _nullishCoalesce(_nullishCoalesce(envMobileWidth, () => ( _optionalChain([config, 'optionalAccess', _419 => _419.mobileContentDimensions, 'optionalAccess', _420 => _420.width]))), () => ( defaultMobile.width));
20131
- const mobileHeight = _nullishCoalesce(_nullishCoalesce(envMobileHeight, () => ( _optionalChain([config, 'optionalAccess', _421 => _421.mobileContentDimensions, 'optionalAccess', _422 => _422.height]))), () => ( defaultMobile.height));
20132
- const desktopWidth = _nullishCoalesce(_nullishCoalesce(envDesktopWidth, () => ( _optionalChain([config, 'optionalAccess', _423 => _423.desktopContentDimensions, 'optionalAccess', _424 => _424.width]))), () => ( defaultDesktop.width));
20133
- const desktopHeight = _nullishCoalesce(_nullishCoalesce(envDesktopHeight, () => ( _optionalChain([config, 'optionalAccess', _425 => _425.desktopContentDimensions, 'optionalAccess', _426 => _426.height]))), () => ( defaultDesktop.height));
20141
+ const mobileWidth = _nullishCoalesce(_nullishCoalesce(envMobileWidth, () => ( _optionalChain([config, 'optionalAccess', _421 => _421.mobileContentDimensions, 'optionalAccess', _422 => _422.width]))), () => ( defaultMobile.width));
20142
+ const mobileHeight = _nullishCoalesce(_nullishCoalesce(envMobileHeight, () => ( _optionalChain([config, 'optionalAccess', _423 => _423.mobileContentDimensions, 'optionalAccess', _424 => _424.height]))), () => ( defaultMobile.height));
20143
+ const desktopWidth = _nullishCoalesce(_nullishCoalesce(envDesktopWidth, () => ( _optionalChain([config, 'optionalAccess', _425 => _425.desktopContentDimensions, 'optionalAccess', _426 => _426.width]))), () => ( defaultDesktop.width));
20144
+ const desktopHeight = _nullishCoalesce(_nullishCoalesce(envDesktopHeight, () => ( _optionalChain([config, 'optionalAccess', _427 => _427.desktopContentDimensions, 'optionalAccess', _428 => _428.height]))), () => ( defaultDesktop.height));
20134
20145
  return {
20135
20146
  mobile: { width: mobileWidth, height: mobileHeight },
20136
20147
  desktop: { width: desktopWidth, height: desktopHeight }
@@ -20289,7 +20300,7 @@ function UnifiedUI({ state, handlers, config, iframeRef }) {
20289
20300
  const contentDimensions = getContentDimensions(config);
20290
20301
  const mobileHeight = contentDimensions.mobile.height;
20291
20302
  const calculatedHeight = Math.max(mobileHeight + 100, 400);
20292
- return `${Math.min(calculatedHeight, _optionalChain([window, 'optionalAccess', _427 => _427.innerHeight]) * 0.85 || 650)}px`;
20303
+ return `${Math.min(calculatedHeight, _optionalChain([window, 'optionalAccess', _429 => _429.innerHeight]) * 0.85 || 650)}px`;
20293
20304
  })(),
20294
20305
  minHeight: viewMode === "DESKTOP" ? "auto" : (() => {
20295
20306
  const contentDimensions = getContentDimensions(config);
@@ -20384,7 +20395,7 @@ var FigmaPrototypeViewer = ({
20384
20395
  const [isInitialized, setIsInitialized] = _react.useState.call(void 0, false);
20385
20396
  const [currentNodeId, setCurrentNodeId] = _react.useState.call(void 0, null);
20386
20397
  const [internalActiveSection, setInternalActiveSection] = _react.useState.call(void 0,
20387
- config.defaultSectionId || _optionalChain([config, 'access', _428 => _428.sections, 'access', _429 => _429[0], 'optionalAccess', _430 => _430.id]) || ""
20398
+ config.defaultSectionId || _optionalChain([config, 'access', _430 => _430.sections, 'access', _431 => _431[0], 'optionalAccess', _432 => _432.id]) || ""
20388
20399
  );
20389
20400
  const activeSection = externalActiveSection || internalActiveSection;
20390
20401
  const [isNavigating, setIsNavigating] = _react.useState.call(void 0, false);
@@ -20482,19 +20493,19 @@ var FigmaPrototypeViewer = ({
20482
20493
  setIframeState("READY");
20483
20494
  break;
20484
20495
  case "PRESENTED_NODE_CHANGED":
20485
- if (_optionalChain([figmaEvent, 'access', _431 => _431.data, 'optionalAccess', _432 => _432.presentedNodeId])) {
20496
+ if (_optionalChain([figmaEvent, 'access', _433 => _433.data, 'optionalAccess', _434 => _434.presentedNodeId])) {
20486
20497
  setCurrentNodeId(figmaEvent.data.presentedNodeId);
20487
20498
  if (!isNavigating) {
20488
20499
  const matchingSection = configSections.find((s) => {
20489
- const desktopMatch = s.startingNodeId === _optionalChain([figmaEvent, 'access', _433 => _433.data, 'optionalAccess', _434 => _434.presentedNodeId]) || s.startingNodeId.replace(":", "-") === _optionalChain([figmaEvent, 'access', _435 => _435.data, 'optionalAccess', _436 => _436.presentedNodeId]);
20490
- const mobileMatch = s.mobileStartingNodeId === _optionalChain([figmaEvent, 'access', _437 => _437.data, 'optionalAccess', _438 => _438.presentedNodeId]) || _optionalChain([s, 'access', _439 => _439.mobileStartingNodeId, 'optionalAccess', _440 => _440.replace, 'call', _441 => _441(":", "-")]) === _optionalChain([figmaEvent, 'access', _442 => _442.data, 'optionalAccess', _443 => _443.presentedNodeId]);
20500
+ const desktopMatch = s.startingNodeId === _optionalChain([figmaEvent, 'access', _435 => _435.data, 'optionalAccess', _436 => _436.presentedNodeId]) || s.startingNodeId.replace(":", "-") === _optionalChain([figmaEvent, 'access', _437 => _437.data, 'optionalAccess', _438 => _438.presentedNodeId]);
20501
+ const mobileMatch = s.mobileStartingNodeId === _optionalChain([figmaEvent, 'access', _439 => _439.data, 'optionalAccess', _440 => _440.presentedNodeId]) || _optionalChain([s, 'access', _441 => _441.mobileStartingNodeId, 'optionalAccess', _442 => _442.replace, 'call', _443 => _443(":", "-")]) === _optionalChain([figmaEvent, 'access', _444 => _444.data, 'optionalAccess', _445 => _445.presentedNodeId]);
20491
20502
  return desktopMatch || mobileMatch;
20492
20503
  });
20493
20504
  if (matchingSection && matchingSection.id !== activeSection) {
20494
20505
  if (!externalActiveSection) {
20495
20506
  setInternalActiveSection(matchingSection.id);
20496
20507
  }
20497
- _optionalChain([onSectionChange, 'optionalCall', _444 => _444(matchingSection.id)]);
20508
+ _optionalChain([onSectionChange, 'optionalCall', _446 => _446(matchingSection.id)]);
20498
20509
  }
20499
20510
  }
20500
20511
  }
@@ -20508,7 +20519,7 @@ var FigmaPrototypeViewer = ({
20508
20519
  const navigateToSection = _react.useCallback.call(void 0,
20509
20520
  (sectionId) => {
20510
20521
  const section = config.sections.find((s) => s.id === sectionId);
20511
- if (!section || !_optionalChain([iframeRef, 'access', _445 => _445.current, 'optionalAccess', _446 => _446.contentWindow]) || !isInitialized) {
20522
+ if (!section || !_optionalChain([iframeRef, 'access', _447 => _447.current, 'optionalAccess', _448 => _448.contentWindow]) || !isInitialized) {
20512
20523
  return;
20513
20524
  }
20514
20525
  setIsNavigating(true);
@@ -20516,7 +20527,7 @@ var FigmaPrototypeViewer = ({
20516
20527
  if (!externalActiveSection) {
20517
20528
  setInternalActiveSection(sectionId);
20518
20529
  }
20519
- _optionalChain([config, 'access', _447 => _447.onSectionChange, 'optionalCall', _448 => _448(sectionId)]);
20530
+ _optionalChain([config, 'access', _449 => _449.onSectionChange, 'optionalCall', _450 => _450(sectionId)]);
20520
20531
  const command = {
20521
20532
  type: "NAVIGATE_TO_FRAME_AND_CLOSE_OVERLAYS",
20522
20533
  data: { nodeId }
@@ -20855,7 +20866,7 @@ var FiltersDropdown = ({
20855
20866
  defaults[section.id] = section.defaultSelected || [];
20856
20867
  });
20857
20868
  setSelectedFilters(defaults);
20858
- _optionalChain([onReset, 'optionalCall', _449 => _449()]);
20869
+ _optionalChain([onReset, 'optionalCall', _451 => _451()]);
20859
20870
  setIsOpen(false);
20860
20871
  };
20861
20872
  const handleApply = () => {
@@ -21093,15 +21104,15 @@ function useLoading() {
21093
21104
 
21094
21105
 
21095
21106
  function isAlreadyThere(file, existing) {
21096
- const key = _chunkEOZ23WOYcjs.mediaNameKey.call(void 0, file.name);
21107
+ const key = _chunkHQY6KYUDcjs.mediaNameKey.call(void 0, file.name);
21097
21108
  if (!key) return false;
21098
21109
  return existing.some(
21099
- (item) => (item.title ? _chunkEOZ23WOYcjs.mediaNameKey.call(void 0, item.title) === key : false) || (item.media_url ? _chunkEOZ23WOYcjs.mediaNameKey.call(void 0, item.media_url) === key : false)
21110
+ (item) => (item.title ? _chunkHQY6KYUDcjs.mediaNameKey.call(void 0, item.title) === key : false) || (item.media_url ? _chunkHQY6KYUDcjs.mediaNameKey.call(void 0, item.media_url) === key : false)
21100
21111
  );
21101
21112
  }
21102
21113
  var isFileDrag = (event) => Array.from(event.dataTransfer.types).includes("Files");
21103
- var isVideoItem = (item) => _chunkEOZ23WOYcjs.isVideoMedia.call(void 0, item) || item.media_type === "demo";
21104
- var MEDIA_KIND_ACCEPT = { image: _chunkEOZ23WOYcjs.IMAGE_FILE_ACCEPT, video: "video/*", both: _chunkEOZ23WOYcjs.MEDIA_FILE_ACCEPT };
21114
+ var isVideoItem = (item) => _chunkHQY6KYUDcjs.isVideoMedia.call(void 0, item) || item.media_type === "demo";
21115
+ var MEDIA_KIND_ACCEPT = { image: _chunkHQY6KYUDcjs.IMAGE_FILE_ACCEPT, video: "video/*", both: _chunkHQY6KYUDcjs.MEDIA_FILE_ACCEPT };
21105
21116
  var MEDIA_KIND_COPY = {
21106
21117
  image: { noun: "pictures", refusal: "Not a picture" },
21107
21118
  video: { noun: "videos", refusal: "Not a video" },
@@ -21125,12 +21136,12 @@ function useMediaIntake({ existing, onUpload, onUploaded, kinds = "both" }) {
21125
21136
  const seen = /* @__PURE__ */ new Set();
21126
21137
  const accepted = [];
21127
21138
  for (const file of files) {
21128
- const mediaType = _chunkEOZ23WOYcjs.fileMediaType.call(void 0, file);
21139
+ const mediaType = _chunkHQY6KYUDcjs.fileMediaType.call(void 0, file);
21129
21140
  if (!mediaType || kinds !== "both" && mediaType !== kinds) {
21130
21141
  unsupported.push(file.name);
21131
21142
  continue;
21132
21143
  }
21133
- const contentKey = await _chunkEOZ23WOYcjs.fileContentKey.call(void 0, file).catch(() => `${file.name}:${file.size}`);
21144
+ const contentKey = await _chunkHQY6KYUDcjs.fileContentKey.call(void 0, file).catch(() => `${file.name}:${file.size}`);
21134
21145
  if (seen.has(contentKey) || isAlreadyThere(file, existingRef.current)) {
21135
21146
  duplicates.push(file.name);
21136
21147
  continue;
@@ -21143,7 +21154,7 @@ function useMediaIntake({ existing, onUpload, onUploaded, kinds = "both" }) {
21143
21154
  try {
21144
21155
  const url = await onUpload(file, mediaType);
21145
21156
  if (!url) throw new Error("no URL");
21146
- _optionalChain([onUploaded, 'optionalCall', _450 => _450({ file, mediaType, url })]);
21157
+ _optionalChain([onUploaded, 'optionalCall', _452 => _452({ file, mediaType, url })]);
21147
21158
  } catch (error) {
21148
21159
  console.error("Upload failed:", error);
21149
21160
  failed.push(file.name);
@@ -21166,7 +21177,7 @@ function useMediaIntake({ existing, onUpload, onUploaded, kinds = "both" }) {
21166
21177
  notice,
21167
21178
  busy: pending.length > 0,
21168
21179
  dropActive,
21169
- open: () => _optionalChain([inputRef, 'access', _451 => _451.current, 'optionalAccess', _452 => _452.click, 'call', _453 => _453()]),
21180
+ open: () => _optionalChain([inputRef, 'access', _453 => _453.current, 'optionalAccess', _454 => _454.click, 'call', _455 => _455()]),
21170
21181
  /** Spread on the element files may be dropped on (the area itself, or a whole gallery). */
21171
21182
  dropHandlers: {
21172
21183
  onDragOver: (event) => {
@@ -21509,9 +21520,9 @@ function PushButtonSelector({
21509
21520
  const skeletonDescription = options.length > 0 ? options.some((option) => !!option.description) : optionDescriptions;
21510
21521
  const scrollRef = _react.useRef.call(void 0, null);
21511
21522
  const sentinelRef = _react.useRef.call(void 0, null);
21512
- const lazyHasMore = _nullishCoalesce(_optionalChain([lazyLoad, 'optionalAccess', _454 => _454.hasMore]), () => ( false));
21513
- const lazyFetching = _nullishCoalesce(_optionalChain([lazyLoad, 'optionalAccess', _455 => _455.isFetchingMore]), () => ( false));
21514
- const onLoadMore = _optionalChain([lazyLoad, 'optionalAccess', _456 => _456.onLoadMore]);
21523
+ const lazyHasMore = _nullishCoalesce(_optionalChain([lazyLoad, 'optionalAccess', _456 => _456.hasMore]), () => ( false));
21524
+ const lazyFetching = _nullishCoalesce(_optionalChain([lazyLoad, 'optionalAccess', _457 => _457.isFetchingMore]), () => ( false));
21525
+ const onLoadMore = _optionalChain([lazyLoad, 'optionalAccess', _458 => _458.onLoadMore]);
21515
21526
  const optionCount = options.length;
21516
21527
  _react.useEffect.call(void 0, () => {
21517
21528
  const sentinel = sentinelRef.current;
@@ -21745,7 +21756,7 @@ var MODEL_TOKEN_RATES_COPY = {
21745
21756
  empty: "No token rates are in effect right now."
21746
21757
  };
21747
21758
  function providerMark(providerType, stated, className) {
21748
- const Mark = _chunkRU37NNZGcjs.findIcon.call(void 0, _chunkYCSX7MCGcjs.aiProvider.call(void 0, providerType, { icon: stated }).icon);
21759
+ const Mark = _chunkRU37NNZGcjs.findIcon.call(void 0, _chunkWFMLODQ4cjs.aiProvider.call(void 0, providerType, { icon: stated }).icon);
21749
21760
  return Mark ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Mark, { className }) : void 0;
21750
21761
  }
21751
21762
  var PAD_X = "px-[var(--spacing-system-s)]";
@@ -21763,7 +21774,7 @@ var UNIT_LINE_CLASS = _chunkNWNC22IZcjs.cn.call(void 0,
21763
21774
  var TABS_ROW_CLASS = _chunkNWNC22IZcjs.cn.call(void 0, "shrink-0 border-b border-ods-border py-[var(--spacing-system-xs)]", PAD_X);
21764
21775
  var NUMBER_CELL = "w-16 shrink-0 whitespace-nowrap text-right tabular-nums";
21765
21776
  function useProviderGroup(rates) {
21766
- const groups = _chunkYCSX7MCGcjs.groupTokenRatesByProvider.call(void 0, rates);
21777
+ const groups = _chunkWFMLODQ4cjs.groupTokenRatesByProvider.call(void 0, rates);
21767
21778
  const [picked, setPicked] = _react.useState.call(void 0, null);
21768
21779
  return { groups, group: _nullishCoalesce(groups.find((candidate) => candidate.providerType === picked), () => ( groups[0])), setPicked };
21769
21780
  }
@@ -21774,7 +21785,7 @@ function ProviderTabs({
21774
21785
  className
21775
21786
  }) {
21776
21787
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
21777
- _chunkEQKMFQ5Jcjs.TabSelector,
21788
+ _chunkRGGV3YOPcjs.TabSelector,
21778
21789
  {
21779
21790
  variant: "secondary",
21780
21791
  scrollable: true,
@@ -21782,8 +21793,8 @@ function ProviderTabs({
21782
21793
  onValueChange,
21783
21794
  items: groups.map((candidate) => ({
21784
21795
  id: candidate.providerType,
21785
- label: _chunkYCSX7MCGcjs.tokenRateProviderLabel.call(void 0, candidate.providerType, _optionalChain([candidate, 'access', _457 => _457.rates, 'access', _458 => _458[0], 'optionalAccess', _459 => _459.providerLabel])),
21786
- icon: providerMark(candidate.providerType, _optionalChain([candidate, 'access', _460 => _460.rates, 'access', _461 => _461[0], 'optionalAccess', _462 => _462.providerIcon]), "size-full")
21796
+ label: _chunkWFMLODQ4cjs.tokenRateProviderLabel.call(void 0, candidate.providerType, _optionalChain([candidate, 'access', _459 => _459.rates, 'access', _460 => _460[0], 'optionalAccess', _461 => _461.providerLabel])),
21797
+ icon: providerMark(candidate.providerType, _optionalChain([candidate, 'access', _462 => _462.rates, 'access', _463 => _463[0], 'optionalAccess', _464 => _464.providerIcon]), "size-full")
21787
21798
  })),
21788
21799
  className
21789
21800
  }
@@ -21859,8 +21870,8 @@ function ModelTokenRatesTable({ rates }) {
21859
21870
  ] }),
21860
21871
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { role: "rowgroup", className: "min-h-0 flex-1 overflow-y-auto", children: group.rates.map((rate) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { "data-loading-item": true, role: "row", className: BODY_ROW_CLASS, children: [
21861
21872
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "rowheader", className: "min-w-0 flex-1 truncate", children: rate.displayName || rate.modelName }),
21862
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunkYCSX7MCGcjs.formatTokenRate.call(void 0, rate.inputTokenRate) }),
21863
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunkYCSX7MCGcjs.formatTokenRate.call(void 0, rate.outputTokenRate) })
21873
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunkWFMLODQ4cjs.formatTokenRate.call(void 0, rate.inputTokenRate) }),
21874
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunkWFMLODQ4cjs.formatTokenRate.call(void 0, rate.outputTokenRate) })
21864
21875
  ] }, rate.modelName)) })
21865
21876
  ] }),
21866
21877
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: UNIT_LINE_CLASS, children: MODEL_TOKEN_RATES_COPY.unit })
@@ -21907,7 +21918,7 @@ function modelOption(rate) {
21907
21918
  return {
21908
21919
  label: rate.displayName || rate.modelName,
21909
21920
  value: rate.modelName,
21910
- description: _chunkYCSX7MCGcjs.tokenRateProviderLabel.call(void 0, rate.providerType, rate.providerLabel),
21921
+ description: _chunkWFMLODQ4cjs.tokenRateProviderLabel.call(void 0, rate.providerType, rate.providerLabel),
21911
21922
  icon: providerMark(rate.providerType, rate.providerIcon, "size-full text-ods-text-secondary")
21912
21923
  };
21913
21924
  }
@@ -21960,10 +21971,10 @@ function ModelTokenExchange({
21960
21971
  const failed = !loading && (status === "error" || status === "ready" && !rate);
21961
21972
  const sliderId = _react.useId.call(void 0, );
21962
21973
  const [chosen, setChosen] = _react.useState.call(void 0, null);
21963
- const balance = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(chosen, () => ( defaultAmount)), () => ( _optionalChain([tokenPrice, 'optionalAccess', _463 => _463.tokens]))), () => ( MODEL_TOKEN_EXCHANGE_BALANCE));
21974
+ const balance = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(chosen, () => ( defaultAmount)), () => ( _optionalChain([tokenPrice, 'optionalAccess', _465 => _465.tokens]))), () => ( MODEL_TOKEN_EXCHANGE_BALANCE));
21964
21975
  const max = Math.max(amountRange.max, balance, ...presets.map((preset) => preset.tokens));
21965
- const tokens = _chunkYCSX7MCGcjs.formatTokenAmount.call(void 0, balance);
21966
- const cost = _chunkYCSX7MCGcjs.tokenCost.call(void 0, balance, tokenPrice);
21976
+ const tokens = _chunkWFMLODQ4cjs.formatTokenAmount.call(void 0, balance);
21977
+ const cost = _chunkWFMLODQ4cjs.tokenCost.call(void 0, balance, tokenPrice);
21967
21978
  const balancePrice = cost === null ? null : _chunkKKD7XV5Acjs.formatPrice.call(void 0, cost);
21968
21979
  const model = rate ? rate.displayName || rate.modelName : "";
21969
21980
  const options = models.map(modelOption);
@@ -22006,7 +22017,7 @@ function ModelTokenExchange({
22006
22017
  variant: preset.tokens === balance ? "accent" : "outline",
22007
22018
  size: "small",
22008
22019
  onClick: () => setChosen(preset.tokens),
22009
- children: copy.buy.preset(_chunkYCSX7MCGcjs.formatTokenAmount.call(void 0, preset.tokens), preset.label)
22020
+ children: copy.buy.preset(_chunkWFMLODQ4cjs.formatTokenAmount.call(void 0, preset.tokens), preset.label)
22010
22021
  },
22011
22022
  preset.label
22012
22023
  )) })
@@ -22020,16 +22031,16 @@ function ModelTokenExchange({
22020
22031
  skeletonCount: PROVIDER_SKELETON_ROWS,
22021
22032
  optionDescriptions: false,
22022
22033
  options: providers.map((providerType) => {
22023
- const stated = _nullishCoalesce(models.find((option) => option.providerType === providerType), () => ( (_optionalChain([rate, 'optionalAccess', _464 => _464.providerType]) === providerType ? rate : null)));
22034
+ const stated = _nullishCoalesce(models.find((option) => option.providerType === providerType), () => ( (_optionalChain([rate, 'optionalAccess', _466 => _466.providerType]) === providerType ? rate : null)));
22024
22035
  return {
22025
22036
  id: providerType,
22026
- name: _chunkYCSX7MCGcjs.tokenRateProviderLabel.call(void 0, providerType, _optionalChain([stated, 'optionalAccess', _465 => _465.providerLabel])),
22027
- icon: providerMark(providerType, _optionalChain([stated, 'optionalAccess', _466 => _466.providerIcon]), "size-8 text-ods-text-secondary")
22037
+ name: _chunkWFMLODQ4cjs.tokenRateProviderLabel.call(void 0, providerType, _optionalChain([stated, 'optionalAccess', _467 => _467.providerLabel])),
22038
+ icon: providerMark(providerType, _optionalChain([stated, 'optionalAccess', _468 => _468.providerIcon]), "size-8 text-ods-text-secondary")
22028
22039
  };
22029
22040
  }),
22030
22041
  selectedIds: provider ? [provider] : [],
22031
22042
  onSelectionChange: (ids) => {
22032
- if (ids[0]) _optionalChain([onProviderChange, 'optionalCall', _467 => _467(ids[0])]);
22043
+ if (ids[0]) _optionalChain([onProviderChange, 'optionalCall', _469 => _469(ids[0])]);
22033
22044
  },
22034
22045
  multiSelect: false
22035
22046
  }
@@ -22039,13 +22050,13 @@ function ModelTokenExchange({
22039
22050
  {
22040
22051
  fieldLoading: loading,
22041
22052
  label: copy.use.model,
22042
- value: _nullishCoalesce(_optionalChain([rate, 'optionalAccess', _468 => _468.modelName]), () => ( null)),
22053
+ value: _nullishCoalesce(_optionalChain([rate, 'optionalAccess', _470 => _470.modelName]), () => ( null)),
22043
22054
  onChange: (modelName) => {
22044
- if (modelName) _optionalChain([onPick, 'optionalCall', _469 => _469(modelName)]);
22055
+ if (modelName) _optionalChain([onPick, 'optionalCall', _471 => _471(modelName)]);
22045
22056
  },
22046
22057
  options,
22047
22058
  inputValue: query,
22048
- onInputChange: (value) => _optionalChain([onQueryChange, 'optionalCall', _470 => _470(value)]),
22059
+ onInputChange: (value) => _optionalChain([onQueryChange, 'optionalCall', _472 => _472(value)]),
22049
22060
  disableClientFilter: true,
22050
22061
  loading: searching && Boolean(query),
22051
22062
  disabled: providers.length === 0,
@@ -22062,7 +22073,7 @@ function ModelTokenExchange({
22062
22073
  {
22063
22074
  size: "plain",
22064
22075
  loading,
22065
- figure: _chunkYCSX7MCGcjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _471 => _471.inputTokenRate])),
22076
+ figure: _chunkWFMLODQ4cjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _473 => _473.inputTokenRate])),
22066
22077
  words: copy.charge.input
22067
22078
  }
22068
22079
  ),
@@ -22071,7 +22082,7 @@ function ModelTokenExchange({
22071
22082
  {
22072
22083
  size: "plain",
22073
22084
  loading,
22074
- figure: _chunkYCSX7MCGcjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _472 => _472.outputTokenRate])),
22085
+ figure: _chunkWFMLODQ4cjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _474 => _474.outputTokenRate])),
22075
22086
  words: copy.charge.output
22076
22087
  }
22077
22088
  )
@@ -22083,9 +22094,9 @@ function ModelTokenExchange({
22083
22094
  className: "mt-auto flex flex-col rounded-md border border-ods-accent bg-ods-bg p-[var(--spacing-system-mf)]",
22084
22095
  children: [
22085
22096
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[2lh] text-ods-text-secondary text-h4", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-full max-w-xs" }) : copy.charge.so(_nullishCoalesce(balancePrice, () => ( copy.buy.tokens(tokens))), model) }),
22086
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] whitespace-nowrap tabular-nums text-ods-text-primary text-h1", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-40" }) : _chunkYCSX7MCGcjs.formatTokenAmount.call(void 0, _chunkYCSX7MCGcjs.tokensForBalance.call(void 0, balance, rate.inputTokenRate)) }),
22097
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] whitespace-nowrap tabular-nums text-ods-text-primary text-h1", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-40" }) : _chunkWFMLODQ4cjs.formatTokenAmount.call(void 0, _chunkWFMLODQ4cjs.tokensForBalance.call(void 0, balance, rate.inputTokenRate)) }),
22087
22098
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-primary text-h3", children: copy.charge.read }),
22088
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-secondary text-h4", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-48" }) : copy.charge.orWritten(_chunkYCSX7MCGcjs.formatTokenAmount.call(void 0, _chunkYCSX7MCGcjs.tokensForBalance.call(void 0, balance, rate.outputTokenRate))) })
22099
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-secondary text-h4", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-48" }) : copy.charge.orWritten(_chunkWFMLODQ4cjs.formatTokenAmount.call(void 0, _chunkWFMLODQ4cjs.tokensForBalance.call(void 0, balance, rate.outputTokenRate))) })
22089
22100
  ]
22090
22101
  }
22091
22102
  )
@@ -22632,14 +22643,14 @@ var ConfidenceBadge = ({
22632
22643
  size = "sm",
22633
22644
  className
22634
22645
  }) => {
22635
- const level = _chunkYCSX7MCGcjs.getConfidenceLevel.call(void 0, confidence);
22646
+ const level = _chunkWFMLODQ4cjs.getConfidenceLevel.call(void 0, confidence);
22636
22647
  if (level === "none") {
22637
22648
  return null;
22638
22649
  }
22639
- const label = _chunkYCSX7MCGcjs.getConfidenceLabel.call(void 0, confidence);
22640
- const borderClass = _chunkYCSX7MCGcjs.getConfidenceBorderClass.call(void 0, confidence);
22641
- const textClass = _chunkYCSX7MCGcjs.getConfidenceTextClass.call(void 0, confidence);
22642
- const bgClass = _chunkYCSX7MCGcjs.getConfidenceBgClass.call(void 0, confidence);
22650
+ const label = _chunkWFMLODQ4cjs.getConfidenceLabel.call(void 0, confidence);
22651
+ const borderClass = _chunkWFMLODQ4cjs.getConfidenceBorderClass.call(void 0, confidence);
22652
+ const textClass = _chunkWFMLODQ4cjs.getConfidenceTextClass.call(void 0, confidence);
22653
+ const bgClass = _chunkWFMLODQ4cjs.getConfidenceBgClass.call(void 0, confidence);
22643
22654
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
22644
22655
  "span",
22645
22656
  {
@@ -22690,9 +22701,9 @@ function SEOEditorPreview({
22690
22701
  const [isUploading, setIsUploading] = _react.useState.call(void 0, false);
22691
22702
  const [fileInputRef, setFileInputRef] = _react.useState.call(void 0, null);
22692
22703
  const seoTitleLength = (seoTitle || "").length;
22693
- const seoTitleTooLong = seoTitleLength > _chunkYCSX7MCGcjs.SEO_TITLE_MAX_LENGTH;
22704
+ const seoTitleTooLong = seoTitleLength > _chunkWFMLODQ4cjs.SEO_TITLE_MAX_LENGTH;
22694
22705
  const seoDescriptionLength = (seoDescription || "").length;
22695
- const seoDescriptionTooLong = seoDescriptionLength > _chunkYCSX7MCGcjs.SEO_DESCRIPTION_MAX_LENGTH;
22706
+ const seoDescriptionTooLong = seoDescriptionLength > _chunkWFMLODQ4cjs.SEO_DESCRIPTION_MAX_LENGTH;
22696
22707
  const displayTitle = seoTitle.trim() || title || "Untitled";
22697
22708
  const displayDescription = seoDescription.trim() || summary || "No description";
22698
22709
  const hasOgImage = ogImageUrl.trim();
@@ -22700,7 +22711,7 @@ function SEOEditorPreview({
22700
22711
  const displayImage = hasOgImage || hasFeaturedImage;
22701
22712
  const handleImageUpload = async (event) => {
22702
22713
  if (!onOgImageUpload) return;
22703
- const file = _optionalChain([event, 'access', _473 => _473.target, 'access', _474 => _474.files, 'optionalAccess', _475 => _475[0]]);
22714
+ const file = _optionalChain([event, 'access', _475 => _475.target, 'access', _476 => _476.files, 'optionalAccess', _477 => _477[0]]);
22704
22715
  if (!file) return;
22705
22716
  setIsUploading(true);
22706
22717
  try {
@@ -22717,10 +22728,10 @@ function SEOEditorPreview({
22717
22728
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
22718
22729
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
22719
22730
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
22720
- _chunkYCSX7MCGcjs.Field,
22731
+ _chunkWFMLODQ4cjs.Field,
22721
22732
  {
22722
22733
  label: "SEO Title",
22723
- error: seoTitleTooLong ? `Too long: search engines may truncate this title (keep it under ${_chunkYCSX7MCGcjs.SEO_TITLE_MAX_LENGTH})` : null,
22734
+ error: seoTitleTooLong ? `Too long: search engines may truncate this title (keep it under ${_chunkWFMLODQ4cjs.SEO_TITLE_MAX_LENGTH})` : null,
22724
22735
  labelExtras: aiConfidenceSeoTitle !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
22725
22736
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
22726
22737
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ConfidenceBadge, { confidence: aiConfidenceSeoTitle, showLabel: true, showPercentage: true, size: "sm" })
@@ -22735,7 +22746,7 @@ function SEOEditorPreview({
22735
22746
  children: [
22736
22747
  seoTitleLength,
22737
22748
  "/",
22738
- _chunkYCSX7MCGcjs.SEO_TITLE_MAX_LENGTH
22749
+ _chunkWFMLODQ4cjs.SEO_TITLE_MAX_LENGTH
22739
22750
  ]
22740
22751
  }
22741
22752
  ),
@@ -22746,7 +22757,7 @@ function SEOEditorPreview({
22746
22757
  value: seoTitle || "",
22747
22758
  onChange: (e) => onSeoTitleChange(e.target.value),
22748
22759
  disabled,
22749
- maxLength: _chunkYCSX7MCGcjs.SEO_TITLE_MAX_LENGTH,
22760
+ maxLength: _chunkWFMLODQ4cjs.SEO_TITLE_MAX_LENGTH,
22750
22761
  invalid: seoTitleTooLong,
22751
22762
  placeholder: "Enter SEO meta title...",
22752
22763
  className: "border-ods-border bg-ods-bg text-ods-text-primary"
@@ -22757,7 +22768,7 @@ function SEOEditorPreview({
22757
22768
  !seoTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-accent text-h6", children: "Auto-populated from title" })
22758
22769
  ] }),
22759
22770
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
22760
- _chunkYCSX7MCGcjs.Field,
22771
+ _chunkWFMLODQ4cjs.Field,
22761
22772
  {
22762
22773
  label: "SEO Keywords",
22763
22774
  labelExtras: aiConfidenceSeoKeywords !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
@@ -22789,10 +22800,10 @@ function SEOEditorPreview({
22789
22800
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
22790
22801
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
22791
22802
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
22792
- _chunkYCSX7MCGcjs.Field,
22803
+ _chunkWFMLODQ4cjs.Field,
22793
22804
  {
22794
22805
  label: "SEO Description",
22795
- error: seoDescriptionTooLong ? `Too long: search engines may truncate this description (keep it under ${_chunkYCSX7MCGcjs.SEO_DESCRIPTION_MAX_LENGTH})` : null,
22806
+ error: seoDescriptionTooLong ? `Too long: search engines may truncate this description (keep it under ${_chunkWFMLODQ4cjs.SEO_DESCRIPTION_MAX_LENGTH})` : null,
22796
22807
  labelExtras: aiConfidenceSeoDescription !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
22797
22808
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
22798
22809
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -22815,7 +22826,7 @@ function SEOEditorPreview({
22815
22826
  children: [
22816
22827
  seoDescriptionLength,
22817
22828
  "/",
22818
- _chunkYCSX7MCGcjs.SEO_DESCRIPTION_MAX_LENGTH
22829
+ _chunkWFMLODQ4cjs.SEO_DESCRIPTION_MAX_LENGTH
22819
22830
  ]
22820
22831
  }
22821
22832
  ),
@@ -22826,7 +22837,7 @@ function SEOEditorPreview({
22826
22837
  value: seoDescription || "",
22827
22838
  onChange: (e) => onSeoDescriptionChange(e.target.value),
22828
22839
  disabled,
22829
- maxLength: _chunkYCSX7MCGcjs.SEO_DESCRIPTION_MAX_LENGTH,
22840
+ maxLength: _chunkWFMLODQ4cjs.SEO_DESCRIPTION_MAX_LENGTH,
22830
22841
  invalid: seoDescriptionTooLong,
22831
22842
  placeholder: "Enter SEO meta description...",
22832
22843
  className: _chunkNWNC22IZcjs.cn.call(void 0, "resize-none border-ods-border bg-ods-bg text-ods-text-primary", SEO_MEDIA_BOX_HEIGHT)
@@ -22857,7 +22868,7 @@ function SEOEditorPreview({
22857
22868
  type: "button",
22858
22869
  variant: "outline",
22859
22870
  size: "icon",
22860
- onClick: () => _optionalChain([fileInputRef, 'optionalAccess', _476 => _476.click, 'call', _477 => _477()]),
22871
+ onClick: () => _optionalChain([fileInputRef, 'optionalAccess', _478 => _478.click, 'call', _479 => _479()]),
22861
22872
  disabled: disabled || isUploading,
22862
22873
  className: "rounded-full bg-white text-black opacity-0 hover:bg-gray-100 group-hover:opacity-100",
22863
22874
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Upload, { className: "h-4 w-4" })
@@ -22883,7 +22894,7 @@ function SEOEditorPreview({
22883
22894
  SEO_MEDIA_BOX_HEIGHT,
22884
22895
  "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"
22885
22896
  ),
22886
- onClick: () => onOgImageUpload && _optionalChain([fileInputRef, 'optionalAccess', _478 => _478.click, 'call', _479 => _479()]),
22897
+ onClick: () => onOgImageUpload && _optionalChain([fileInputRef, 'optionalAccess', _480 => _480.click, 'call', _481 => _481()]),
22887
22898
  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: [
22888
22899
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Upload, { className: "mb-2 h-8 w-8 text-ods-text-secondary" }),
22889
22900
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h6", children: onOgImageUpload ? "Click to upload OG image" : "No image" })
@@ -22895,7 +22906,7 @@ function SEOEditorPreview({
22895
22906
  {
22896
22907
  ref: setFileInputRef,
22897
22908
  type: "file",
22898
- accept: _chunkEOZ23WOYcjs.IMAGE_FILE_ACCEPT,
22909
+ accept: _chunkHQY6KYUDcjs.IMAGE_FILE_ACCEPT,
22899
22910
  onChange: handleImageUpload,
22900
22911
  className: "hidden",
22901
22912
  disabled: disabled || isUploading
@@ -22979,7 +22990,7 @@ function socialIcon(platform) {
22979
22990
  return _nullishCoalesce(_chunkRU37NNZGcjs.iconOf.call(void 0, SOCIAL_ICONS[platform]), () => ( void 0));
22980
22991
  }
22981
22992
  function renderSocialIcon(platform) {
22982
- const key = _nullishCoalesce(_chunkYCSX7MCGcjs.normalizeSocialPlatform.call(void 0, platform), () => ( "website"));
22993
+ const key = _nullishCoalesce(_chunkWFMLODQ4cjs.normalizeSocialPlatform.call(void 0, platform), () => ( "website"));
22983
22994
  const icon = _nullishCoalesce(socialIcon(key), () => ( socialIcon("website")));
22984
22995
  return icon ? _react.createElement.call(void 0, icon, { className: "h-5 w-5" }) : null;
22985
22996
  }
@@ -23057,7 +23068,7 @@ function SocialLinksManager({
23057
23068
  className = ""
23058
23069
  }) {
23059
23070
  const addLink = () => {
23060
- const firstPlatform = _optionalChain([platforms, 'access', _480 => _480[0], 'optionalAccess', _481 => _481.name]) || "website";
23071
+ const firstPlatform = _optionalChain([platforms, 'access', _482 => _482[0], 'optionalAccess', _483 => _483.name]) || "website";
23061
23072
  onChange([...links, { platform: firstPlatform, url: "" }]);
23062
23073
  };
23063
23074
  const removeLink = (index) => {
@@ -23069,8 +23080,8 @@ function SocialLinksManager({
23069
23080
  onChange(updated);
23070
23081
  };
23071
23082
  const getIcon = (link, platform) => {
23072
- const iconKey = _optionalChain([platform, 'optionalAccess', _482 => _482.icon_name]) || link.platform;
23073
- const key = _chunkYCSX7MCGcjs.normalizeSocialPlatform.call(void 0, iconKey);
23083
+ const iconKey = _optionalChain([platform, 'optionalAccess', _484 => _484.icon_name]) || link.platform;
23084
+ const key = _chunkWFMLODQ4cjs.normalizeSocialPlatform.call(void 0, iconKey);
23074
23085
  if (!key) return null;
23075
23086
  const icon = socialIcon(key);
23076
23087
  return icon ? _react.createElement.call(void 0, icon, { className: "h-5 w-5 text-ods-text-secondary" }) : null;
@@ -23093,7 +23104,7 @@ function SocialLinksManager({
23093
23104
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
23094
23105
  _chunkTC2T5Q7Mcjs.Input,
23095
23106
  {
23096
- placeholder: _optionalChain([platform, 'optionalAccess', _483 => _483.placeholder]) || "Profile URL",
23107
+ placeholder: _optionalChain([platform, 'optionalAccess', _485 => _485.placeholder]) || "Profile URL",
23097
23108
  value: link.url,
23098
23109
  onChange: (e) => updateLink(index, "url", e.target.value),
23099
23110
  onKeyDown: (e) => {
@@ -23538,7 +23549,7 @@ function VideoBitesDisplay({
23538
23549
  filterPublished = true,
23539
23550
  showTitle = true
23540
23551
  }) {
23541
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEQKMFQ5Jcjs.VideoBitesStrip, { bites, title, filterPublished, showTitle });
23552
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRGGV3YOPcjs.VideoBitesStrip, { bites, title, filterPublished, showTitle });
23542
23553
  }
23543
23554
 
23544
23555
  // src/components/features/walkthrough-video.tsx
@@ -23550,8 +23561,8 @@ var INLINE_CARD_BOX_CLASS = `${_chunkLCSYTFFOcjs.MEDIA_ASPECT.video} w-full roun
23550
23561
  var FIRST_INTERACTION_EVENTS = ["scroll", "pointerdown", "keydown"];
23551
23562
  var isAtEnd = (duration, time) => duration > 0 && duration - time < 1;
23552
23563
  function theaterSeedFromLive(live, fallbackTime, fallbackMuted) {
23553
- const time = _nullishCoalesce(_optionalChain([live, 'optionalAccess', _484 => _484.getCurrentTime, 'call', _485 => _485()]), () => ( 0));
23554
- const atEnd = isAtEnd(_nullishCoalesce(_optionalChain([live, 'optionalAccess', _486 => _486.getDuration, 'call', _487 => _487()]), () => ( 0)), time);
23564
+ const time = _nullishCoalesce(_optionalChain([live, 'optionalAccess', _486 => _486.getCurrentTime, 'call', _487 => _487()]), () => ( 0));
23565
+ const atEnd = isAtEnd(_nullishCoalesce(_optionalChain([live, 'optionalAccess', _488 => _488.getDuration, 'call', _489 => _489()]), () => ( 0)), time);
23555
23566
  return {
23556
23567
  // At end -> start over, never rewind to an unrelated older anchor.
23557
23568
  time: atEnd ? 0 : time > 0.5 ? time : fallbackTime,
@@ -23568,7 +23579,7 @@ function WalkthroughVideo({
23568
23579
  onOpenChange,
23569
23580
  defaultOpen,
23570
23581
  defaultOpenPaused,
23571
- deepLinkParam = _chunkYCSX7MCGcjs.WALKTHROUGH_OPEN_QUERY_PARAM,
23582
+ deepLinkParam = _chunkWFMLODQ4cjs.WALKTHROUGH_OPEN_QUERY_PARAM,
23572
23583
  autoPlayCard = false,
23573
23584
  label = "Play Demo Video",
23574
23585
  placement,
@@ -23585,19 +23596,19 @@ function WalkthroughVideo({
23585
23596
  const inline = placement === "inline";
23586
23597
  const inScope = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, );
23587
23598
  const dismissEnabled = dismissal !== false;
23588
- const storageKey = dismissEnabled && dismissal.storageKey || _chunkYCSX7MCGcjs.WALKTHROUGH_VIDEO_DISMISS_KEY;
23589
- const dismissalId = _optionalChain([video, 'optionalAccess', _488 => _488.id]) != null ? String(video.id) : "dismissed";
23599
+ const storageKey = dismissEnabled && dismissal.storageKey || _chunkWFMLODQ4cjs.WALKTHROUGH_VIDEO_DISMISS_KEY;
23600
+ const dismissalId = _optionalChain([video, 'optionalAccess', _490 => _490.id]) != null ? String(video.id) : "dismissed";
23590
23601
  const [mounted, setMounted] = _react.useState.call(void 0, false);
23591
23602
  const [dismissed, setDismissed] = _react.useState.call(void 0, false);
23592
23603
  const hasVideo = video != null;
23593
- const videoId = _optionalChain([video, 'optionalAccess', _489 => _489.id]);
23604
+ const videoId = _optionalChain([video, 'optionalAccess', _491 => _491.id]);
23594
23605
  _react.useEffect.call(void 0, () => {
23595
23606
  let idleHandle = null;
23596
23607
  if (!hasVideo) return void 0;
23597
23608
  let delayElapsed = false;
23598
23609
  let interacted = inline;
23599
23610
  const reveal = () => {
23600
- if (dismissEnabled && _chunkYCSX7MCGcjs.isWalkthroughDismissed.call(void 0, storageKey, dismissalId)) {
23611
+ if (dismissEnabled && _chunkWFMLODQ4cjs.isWalkthroughDismissed.call(void 0, storageKey, dismissalId)) {
23601
23612
  setDismissed(true);
23602
23613
  return;
23603
23614
  }
@@ -23634,13 +23645,13 @@ function WalkthroughVideo({
23634
23645
  if (idleHandle !== null && typeof cic === "function") cic(idleHandle);
23635
23646
  };
23636
23647
  }, [appearDelayMs, dismissEnabled, storageKey, dismissalId, hasVideo, videoId, inline]);
23637
- const hydrated = _chunkEQKMFQ5Jcjs.useIsHydrated.call(void 0, );
23648
+ const hydrated = _chunkRGGV3YOPcjs.useIsHydrated.call(void 0, );
23638
23649
  const previewSuppressed = _react.useMemo.call(void 0, () => {
23639
23650
  if (!hydrated) return false;
23640
23651
  try {
23641
- const reducedMotion = _nullishCoalesce(_optionalChain([window, 'access', _490 => _490.matchMedia, 'optionalCall', _491 => _491("(prefers-reduced-motion: reduce)"), 'access', _492 => _492.matches]), () => ( false));
23652
+ const reducedMotion = _nullishCoalesce(_optionalChain([window, 'access', _492 => _492.matchMedia, 'optionalCall', _493 => _493("(prefers-reduced-motion: reduce)"), 'access', _494 => _494.matches]), () => ( false));
23642
23653
  const conn = navigator.connection;
23643
- const saveData = _optionalChain([conn, 'optionalAccess', _493 => _493.saveData]) === true || _optionalChain([conn, 'optionalAccess', _494 => _494.effectiveType]) === "2g" || _optionalChain([conn, 'optionalAccess', _495 => _495.effectiveType]) === "slow-2g";
23654
+ const saveData = _optionalChain([conn, 'optionalAccess', _495 => _495.saveData]) === true || _optionalChain([conn, 'optionalAccess', _496 => _496.effectiveType]) === "2g" || _optionalChain([conn, 'optionalAccess', _497 => _497.effectiveType]) === "slow-2g";
23644
23655
  return Boolean(reducedMotion || saveData);
23645
23656
  } catch (e15) {
23646
23657
  return false;
@@ -23666,7 +23677,7 @@ function WalkthroughVideo({
23666
23677
  const endedLatchRef = _react.useRef.call(void 0, false);
23667
23678
  const [hovered, setHovered] = _react.useState.call(void 0, false);
23668
23679
  const [handoff, setHandoff] = _react.useState.call(void 0,
23669
- () => autoPlayCard && !_optionalChain([video, 'optionalAccess', _496 => _496.youtubeUrl]) ? { time: 0, muted: true, playing: true } : null
23680
+ () => autoPlayCard && !_optionalChain([video, 'optionalAccess', _498 => _498.youtubeUrl]) ? { time: 0, muted: true, playing: true } : null
23670
23681
  );
23671
23682
  const [suspended, setSuspended] = _react.useState.call(void 0, false);
23672
23683
  const [theaterStart, setTheaterStart] = _react.useState.call(void 0, { time: 0, muted: false });
@@ -23675,18 +23686,18 @@ function WalkthroughVideo({
23675
23686
  const [cardMuted, setCardMuted] = _react.useState.call(void 0, false);
23676
23687
  const [cardPaused, setCardPaused] = _react.useState.call(void 0, false);
23677
23688
  const [userMuted, setUserMuted] = _react.useState.call(void 0, false);
23678
- const isYouTube = Boolean(_optionalChain([video, 'optionalAccess', _497 => _497.youtubeUrl]));
23689
+ const isYouTube = Boolean(_optionalChain([video, 'optionalAccess', _499 => _499.youtubeUrl]));
23679
23690
  const resumeMode = !open && handoff !== null && !isYouTube;
23680
23691
  const previewAllowed = !previewSuppressed && !isYouTube;
23681
23692
  const footerFadeKey = `${mounted ? 1 : 0}|${inline ? 1 : 0}|${hideNearSelector}|${pathname}`;
23682
- const footerHidden = _optionalChain([footerObservation, 'optionalAccess', _498 => _498.key]) === footerFadeKey && footerObservation.hidden;
23693
+ const footerHidden = _optionalChain([footerObservation, 'optionalAccess', _500 => _500.key]) === footerFadeKey && footerObservation.hidden;
23683
23694
  _react.useEffect.call(void 0, () => {
23684
23695
  if (!mounted) return void 0;
23685
23696
  if (inline) return void 0;
23686
23697
  const el = typeof document !== "undefined" ? document.querySelector(hideNearSelector) : null;
23687
23698
  if (!el || typeof IntersectionObserver === "undefined") return void 0;
23688
23699
  const io = new IntersectionObserver(
23689
- (entries) => setFooterObservation({ key: footerFadeKey, hidden: _nullishCoalesce(_optionalChain([entries, 'access', _499 => _499[0], 'optionalAccess', _500 => _500.isIntersecting]), () => ( false)) }),
23700
+ (entries) => setFooterObservation({ key: footerFadeKey, hidden: _nullishCoalesce(_optionalChain([entries, 'access', _501 => _501[0], 'optionalAccess', _502 => _502.isIntersecting]), () => ( false)) }),
23690
23701
  { rootMargin: "0px 0px -40px 0px" }
23691
23702
  );
23692
23703
  io.observe(el);
@@ -23712,7 +23723,7 @@ function WalkthroughVideo({
23712
23723
  if (!footerHidden) return;
23713
23724
  const h = _nullishCoalesce(resumeHandleRef.current, () => ( previewHandleRef.current));
23714
23725
  try {
23715
- _optionalChain([h, 'optionalAccess', _501 => _501.pause, 'call', _502 => _502()]);
23726
+ _optionalChain([h, 'optionalAccess', _503 => _503.pause, 'call', _504 => _504()]);
23716
23727
  } catch (e17) {
23717
23728
  }
23718
23729
  }, [footerHidden, resumeMode, hovered]);
@@ -23731,30 +23742,30 @@ function WalkthroughVideo({
23731
23742
  }, 400);
23732
23743
  }
23733
23744
  if (openProp === void 0) setOpenState(next);
23734
- _optionalChain([onOpenChange, 'optionalCall', _503 => _503(next)]);
23745
+ _optionalChain([onOpenChange, 'optionalCall', _505 => _505(next)]);
23735
23746
  },
23736
23747
  [openProp, onOpenChange]
23737
23748
  );
23738
23749
  const pausePreviewNow = _react.useCallback.call(void 0, () => {
23739
23750
  const h = _nullishCoalesce(resumeHandleRef.current, () => ( previewHandleRef.current));
23740
23751
  try {
23741
- _optionalChain([h, 'optionalAccess', _504 => _504.pause, 'call', _505 => _505()]);
23752
+ _optionalChain([h, 'optionalAccess', _506 => _506.pause, 'call', _507 => _507()]);
23742
23753
  } catch (e18) {
23743
23754
  }
23744
23755
  setCardPaused(true);
23745
23756
  }, [setCardPaused]);
23746
23757
  const openTheater = _react.useCallback.call(void 0, () => {
23747
23758
  const handleBeforePause = _nullishCoalesce(resumeHandleRef.current, () => ( previewHandleRef.current));
23748
- const liveWasPlaying = _optionalChain([handleBeforePause, 'optionalAccess', _506 => _506.getPaused, 'call', _507 => _507()]) === false;
23759
+ const liveWasPlaying = _optionalChain([handleBeforePause, 'optionalAccess', _508 => _508.getPaused, 'call', _509 => _509()]) === false;
23749
23760
  pausePreviewNow();
23750
23761
  const liveHandle = _nullishCoalesce(resumeHandleRef.current, () => ( (cardModeRef.current === "preview" ? previewHandleRef.current : null)));
23751
- const liveTime = _nullishCoalesce(_optionalChain([liveHandle, 'optionalAccess', _508 => _508.getCurrentTime, 'call', _509 => _509()]), () => ( 0));
23752
- const liveDuration = _nullishCoalesce(_optionalChain([liveHandle, 'optionalAccess', _510 => _510.getDuration, 'call', _511 => _511()]), () => ( 0));
23762
+ const liveTime = _nullishCoalesce(_optionalChain([liveHandle, 'optionalAccess', _510 => _510.getCurrentTime, 'call', _511 => _511()]), () => ( 0));
23763
+ const liveDuration = _nullishCoalesce(_optionalChain([liveHandle, 'optionalAccess', _512 => _512.getDuration, 'call', _513 => _513()]), () => ( 0));
23753
23764
  const liveAtEnd = isAtEnd(liveDuration, liveTime);
23754
23765
  const start = {
23755
23766
  // At end -> start over. Falling back to `handoff.time` here would rewind
23756
23767
  // to an unrelated older anchor (e.g. 3:20) instead of restarting.
23757
- time: liveAtEnd ? 0 : liveTime > 0.5 ? liveTime : _nullishCoalesce(_optionalChain([handoff, 'optionalAccess', _512 => _512.time]), () => ( 0)),
23768
+ time: liveAtEnd ? 0 : liveTime > 0.5 ? liveTime : _nullishCoalesce(_optionalChain([handoff, 'optionalAccess', _514 => _514.time]), () => ( 0)),
23758
23769
  // Live element wins over remembered intent (the theater's own chrome may
23759
23770
  // have changed it) — EXCEPT when the element is muted only because
23760
23771
  // autoplay policy forced it, which is not intent.
@@ -23782,7 +23793,7 @@ function WalkthroughVideo({
23782
23793
  const selfDriven = selfDrivenFor === open;
23783
23794
  if (openProp !== void 0 && !selfDriven) {
23784
23795
  if (open) {
23785
- setTheaterStart(theaterSeedFromLive(resumeHandleRef.current, _nullishCoalesce(_optionalChain([handoff, 'optionalAccess', _513 => _513.time]), () => ( 0)), userMuted));
23796
+ setTheaterStart(theaterSeedFromLive(resumeHandleRef.current, _nullishCoalesce(_optionalChain([handoff, 'optionalAccess', _515 => _515.time]), () => ( 0)), userMuted));
23786
23797
  setHovered(false);
23787
23798
  setSuspended(false);
23788
23799
  setHandoff(null);
@@ -23868,8 +23879,8 @@ function WalkthroughVideo({
23868
23879
  });
23869
23880
  _react.useEffect.call(void 0, () => {
23870
23881
  if (resumeMode) {
23871
- setCardMuted(_nullishCoalesce(_optionalChain([handoffRef, 'access', _514 => _514.current, 'optionalAccess', _515 => _515.muted]), () => ( false)));
23872
- setCardPaused(_optionalChain([handoffRef, 'access', _516 => _516.current, 'optionalAccess', _517 => _517.playing]) === false);
23882
+ setCardMuted(_nullishCoalesce(_optionalChain([handoffRef, 'access', _516 => _516.current, 'optionalAccess', _517 => _517.muted]), () => ( false)));
23883
+ setCardPaused(_optionalChain([handoffRef, 'access', _518 => _518.current, 'optionalAccess', _519 => _519.playing]) === false);
23873
23884
  }
23874
23885
  }, [resumeMode]);
23875
23886
  const [hoverSeeded, setHoverSeeded] = _react.useState.call(void 0, hovered);
@@ -23884,7 +23895,7 @@ function WalkthroughVideo({
23884
23895
  (e) => {
23885
23896
  e.stopPropagation();
23886
23897
  pausePreviewNow();
23887
- if (dismissEnabled) _chunkYCSX7MCGcjs.dismissWalkthrough.call(void 0, storageKey, dismissalId);
23898
+ if (dismissEnabled) _chunkWFMLODQ4cjs.dismissWalkthrough.call(void 0, storageKey, dismissalId);
23888
23899
  setDismissed(true);
23889
23900
  },
23890
23901
  [dismissEnabled, storageKey, dismissalId, pausePreviewNow]
@@ -23951,11 +23962,11 @@ function WalkthroughVideo({
23951
23962
  },
23952
23963
  [cardFallback.blocked, cardPaused, activeHandle, setCardPaused]
23953
23964
  );
23954
- const summaryTitle = _optionalChain([video, 'optionalAccess', _518 => _518.title]) || void 0;
23955
- const presenterAvatarSrc = _nullishCoalesce(_optionalChain([video, 'optionalAccess', _519 => _519.presenterAvatarUrl]), () => ( null));
23965
+ const summaryTitle = _optionalChain([video, 'optionalAccess', _520 => _520.title]) || void 0;
23966
+ const presenterAvatarSrc = _nullishCoalesce(_optionalChain([video, 'optionalAccess', _521 => _521.presenterAvatarUrl]), () => ( null));
23956
23967
  const embedUrlKey = _react.useMemo.call(void 0,
23957
- () => `${_nullishCoalesce(_optionalChain([video, 'optionalAccess', _520 => _520.mainVideoUrl]), () => ( ""))}|${_nullishCoalesce(_optionalChain([video, 'optionalAccess', _521 => _521.youtubeUrl]), () => ( ""))}`,
23958
- [_optionalChain([video, 'optionalAccess', _522 => _522.mainVideoUrl]), _optionalChain([video, 'optionalAccess', _523 => _523.youtubeUrl])]
23968
+ () => `${_nullishCoalesce(_optionalChain([video, 'optionalAccess', _522 => _522.mainVideoUrl]), () => ( ""))}|${_nullishCoalesce(_optionalChain([video, 'optionalAccess', _523 => _523.youtubeUrl]), () => ( ""))}`,
23969
+ [_optionalChain([video, 'optionalAccess', _524 => _524.mainVideoUrl]), _optionalChain([video, 'optionalAccess', _525 => _525.youtubeUrl])]
23959
23970
  );
23960
23971
  const cardActive = !open && previewAllowed && hovered && !resumeMode;
23961
23972
  const cardMode = resumeMode ? "resume" : cardActive ? "preview" : "poster";
@@ -24016,7 +24027,7 @@ function WalkthroughVideo({
24016
24027
  const el = e.target;
24017
24028
  let keyboard = false;
24018
24029
  try {
24019
- keyboard = _nullishCoalesce(_optionalChain([el, 'access', _524 => _524.matches, 'optionalCall', _525 => _525(":focus-visible")]), () => ( false));
24030
+ keyboard = _nullishCoalesce(_optionalChain([el, 'access', _526 => _526.matches, 'optionalCall', _527 => _527(":focus-visible")]), () => ( false));
24020
24031
  } catch (e23) {
24021
24032
  keyboard = false;
24022
24033
  }
@@ -24051,15 +24062,15 @@ function WalkthroughVideo({
24051
24062
  previewHandleRef: cardMode === "resume" ? resumeHandleRef : previewHandleRef,
24052
24063
  mutedIntent: userMuted,
24053
24064
  continuation: cardMode === "resume",
24054
- autoPlay: cardMode === "resume" && _optionalChain([handoff, 'optionalAccess', _526 => _526.playing]) !== false && !footerHidden,
24055
- startTime: _optionalChain([resumeHandoff, 'optionalAccess', _527 => _527.time]),
24056
- startMuted: _nullishCoalesce(_optionalChain([resumeHandoff, 'optionalAccess', _528 => _528.muted]), () => ( false)),
24065
+ autoPlay: cardMode === "resume" && _optionalChain([handoff, 'optionalAccess', _528 => _528.playing]) !== false && !footerHidden,
24066
+ startTime: _optionalChain([resumeHandoff, 'optionalAccess', _529 => _529.time]),
24067
+ startMuted: _nullishCoalesce(_optionalChain([resumeHandoff, 'optionalAccess', _530 => _530.muted]), () => ( false)),
24057
24068
  onEnded: cardMode === "resume" ? () => setHandoff(null) : () => setCardPaused(true)
24058
24069
  },
24059
24070
  `card-${embedUrlKey}`
24060
24071
  ) }),
24061
24072
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
24062
- _chunkEQKMFQ5Jcjs.CardHitLayer,
24073
+ _chunkRGGV3YOPcjs.CardHitLayer,
24063
24074
  {
24064
24075
  label: video.title ? `${label}: ${video.title}` : label,
24065
24076
  onPointerDown: pausePreviewNow,
@@ -24151,7 +24162,7 @@ function WalkthroughVideo({
24151
24162
  {
24152
24163
  onOpenAutoFocus: (e) => {
24153
24164
  e.preventDefault();
24154
- _optionalChain([closeButtonRef, 'access', _529 => _529.current, 'optionalAccess', _530 => _530.focus, 'call', _531 => _531()]);
24165
+ _optionalChain([closeButtonRef, 'access', _531 => _531.current, 'optionalAccess', _532 => _532.focus, 'call', _533 => _533()]);
24155
24166
  },
24156
24167
  className: _chunkNWNC22IZcjs.cn.call(void 0,
24157
24168
  // PURE theater: just the video, centered on a dimmed backdrop.
@@ -24231,7 +24242,7 @@ function useWalkthroughVideo(opts) {
24231
24242
  const { endpoint, initialData, enabled: enabledGiven = true, transformCaptionsUrl } = opts;
24232
24243
  const inScope = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, );
24233
24244
  const enabled = enabledGiven && !inScope;
24234
- const captions = _chunkEQKMFQ5Jcjs.useCaptions.call(void 0, );
24245
+ const captions = _chunkRGGV3YOPcjs.useCaptions.call(void 0, );
24235
24246
  const query = _reactquery.useQuery.call(void 0, {
24236
24247
  queryKey: ["walkthrough-video", endpoint],
24237
24248
  enabled,
@@ -24250,14 +24261,14 @@ function useWalkthroughVideo(opts) {
24250
24261
  if (res.status === 404) return null;
24251
24262
  if (!res.ok) throw new Error(`Walkthrough video request failed (${res.status})`);
24252
24263
  const body = await res.json();
24253
- return _nullishCoalesce(_optionalChain([body, 'optionalAccess', _532 => _532.walkthroughVideo]), () => ( null));
24264
+ return _nullishCoalesce(_optionalChain([body, 'optionalAccess', _534 => _534.walkthroughVideo]), () => ( null));
24254
24265
  },
24255
24266
  // Per-observer transform — NEVER mutate the cached data. `select` also runs
24256
24267
  // over `initialData`, so the SSR seed is rewritten too. Keeping the proxy
24257
24268
  // rewrite here (not in queryFn) means a second consumer of the same
24258
24269
  // endpoint can't inherit this observer's proxied captionsUrl from the cache.
24259
24270
  select: (video) => {
24260
- if (!_optionalChain([video, 'optionalAccess', _533 => _533.captionsUrl])) return video;
24271
+ if (!_optionalChain([video, 'optionalAccess', _535 => _535.captionsUrl])) return video;
24261
24272
  if (transformCaptionsUrl && video.captionsUrl.startsWith("/")) {
24262
24273
  return { ...video, captionsUrl: transformCaptionsUrl(video.captionsUrl) };
24263
24274
  }
@@ -24304,7 +24315,7 @@ function VideoSourceSelector({
24304
24315
  input.accept = "video/*";
24305
24316
  input.onchange = async (e) => {
24306
24317
  const target = e.target;
24307
- const file = _optionalChain([target, 'access', _534 => _534.files, 'optionalAccess', _535 => _535[0]]);
24318
+ const file = _optionalChain([target, 'access', _536 => _536.files, 'optionalAccess', _537 => _537[0]]);
24308
24319
  if (!file) return;
24309
24320
  setIsUploading(true);
24310
24321
  setUploadProgress(0);
@@ -24482,7 +24493,7 @@ function SubtitlesEditor({
24482
24493
  {
24483
24494
  id,
24484
24495
  value: subtitles || "",
24485
- onChange: (e) => _optionalChain([onSubtitlesChange, 'optionalCall', _536 => _536(e.target.value)]),
24496
+ onChange: (e) => _optionalChain([onSubtitlesChange, 'optionalCall', _538 => _538(e.target.value)]),
24486
24497
  placeholder,
24487
24498
  disabled: disabled || !onSubtitlesChange,
24488
24499
  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",
@@ -24711,7 +24722,7 @@ var AIEnrichSection = ({
24711
24722
  }) => {
24712
24723
  const hasResults = status === "success" || status === "error";
24713
24724
  const shouldDisable = disabled || !canEnrich;
24714
- const unfilledFields = _optionalChain([requiredFields, 'optionalAccess', _537 => _537.filter, 'call', _538 => _538((f) => !f.isFilled)]) || [];
24725
+ const unfilledFields = _optionalChain([requiredFields, 'optionalAccess', _539 => _539.filter, 'call', _540 => _540((f) => !f.isFilled)]) || [];
24715
24726
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
24716
24727
  "div",
24717
24728
  {
@@ -24743,7 +24754,7 @@ var AIEnrichSection = ({
24743
24754
  {
24744
24755
  id: "ai-enrich-custom-instructions",
24745
24756
  value: _nullishCoalesce(customInstructions, () => ( "")),
24746
- onChange: (e) => _optionalChain([onCustomInstructionsChange, 'optionalCall', _539 => _539(e.target.value)]),
24757
+ onChange: (e) => _optionalChain([onCustomInstructionsChange, 'optionalCall', _541 => _541(e.target.value)]),
24747
24758
  placeholder: customInstructionsPlaceholder,
24748
24759
  disabled: loading,
24749
24760
  maxLength: customInstructionsMaxLength,
@@ -24865,7 +24876,7 @@ function HighlightVideoSection({
24865
24876
  input.accept = "video/*";
24866
24877
  input.onchange = async (e) => {
24867
24878
  const target = e.target;
24868
- const file = _optionalChain([target, 'access', _540 => _540.files, 'optionalAccess', _541 => _541[0]]);
24879
+ const file = _optionalChain([target, 'access', _542 => _542.files, 'optionalAccess', _543 => _543[0]]);
24869
24880
  if (!file) return;
24870
24881
  setUploadError(null);
24871
24882
  try {
@@ -24982,7 +24993,7 @@ function HighlightConfigSection({
24982
24993
  disabled = false,
24983
24994
  className = ""
24984
24995
  }) {
24985
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `space-y-3 rounded-lg border border-ods-border bg-ods-card p-4 ${className}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYCSX7MCGcjs.Field, { label: "Target Duration", children: (f) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
24996
+ 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, _chunkWFMLODQ4cjs.Field, { label: "Target Duration", children: (f) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
24986
24997
  _chunk2JDK4FWVcjs.Select,
24987
24998
  {
24988
24999
  value: targetDurationSeconds.toString(),
@@ -25083,7 +25094,7 @@ var AIStatusIndicator = ({
25083
25094
  }) => {
25084
25095
  const config = statusConfig[status];
25085
25096
  const displayText = message || config.label;
25086
- const confidenceLabel = showConfidence && confidence !== void 0 ? `${_chunkYCSX7MCGcjs.getConfidenceLabel.call(void 0, confidence)} (${confidence}%)` : null;
25097
+ const confidenceLabel = showConfidence && confidence !== void 0 ? `${_chunkWFMLODQ4cjs.getConfidenceLabel.call(void 0, confidence)} (${confidence}%)` : null;
25087
25098
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, "inline-flex items-center gap-2 rounded-lg px-3 py-1.5", config.bgColor, className), children: [
25088
25099
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
25089
25100
  _chunkUNFCRSYIcjs.SparklesIcon,
@@ -25091,7 +25102,7 @@ var AIStatusIndicator = ({
25091
25102
  size: 16,
25092
25103
  className: _chunkNWNC22IZcjs.cn.call(void 0,
25093
25104
  status === "loading" && _chunkLCSYTFFOcjs.LIVE_PULSE_CLASS,
25094
- confidence !== void 0 && status === "success" ? _chunkYCSX7MCGcjs.getConfidenceTextClass.call(void 0, confidence) : config.color
25105
+ confidence !== void 0 && status === "success" ? _chunkWFMLODQ4cjs.getConfidenceTextClass.call(void 0, confidence) : config.color
25095
25106
  )
25096
25107
  }
25097
25108
  ),
@@ -25100,7 +25111,7 @@ var AIStatusIndicator = ({
25100
25111
  {
25101
25112
  className: _chunkNWNC22IZcjs.cn.call(void 0,
25102
25113
  "text-h6",
25103
- confidence !== void 0 && status === "success" ? _chunkYCSX7MCGcjs.getConfidenceTextClass.call(void 0, confidence) : config.color
25114
+ confidence !== void 0 && status === "success" ? _chunkWFMLODQ4cjs.getConfidenceTextClass.call(void 0, confidence) : config.color
25104
25115
  ),
25105
25116
  children: displayText
25106
25117
  }
@@ -25110,8 +25121,8 @@ var AIStatusIndicator = ({
25110
25121
  {
25111
25122
  className: _chunkNWNC22IZcjs.cn.call(void 0,
25112
25123
  "rounded-full border px-2 py-0.5 text-h6",
25113
- _chunkYCSX7MCGcjs.getConfidenceBorderClass.call(void 0, confidence),
25114
- _chunkYCSX7MCGcjs.getConfidenceTextClass.call(void 0, confidence)
25124
+ _chunkWFMLODQ4cjs.getConfidenceBorderClass.call(void 0, confidence),
25125
+ _chunkWFMLODQ4cjs.getConfidenceTextClass.call(void 0, confidence)
25115
25126
  ),
25116
25127
  children: confidenceLabel
25117
25128
  }
@@ -25301,7 +25312,7 @@ function HighlightVideoPreview({
25301
25312
  input.accept = "video/*";
25302
25313
  input.onchange = async (e) => {
25303
25314
  const target = e.target;
25304
- const file = _optionalChain([target, 'access', _542 => _542.files, 'optionalAccess', _543 => _543[0]]);
25315
+ const file = _optionalChain([target, 'access', _544 => _544.files, 'optionalAccess', _545 => _545[0]]);
25305
25316
  if (!file) return;
25306
25317
  await onUpload(file);
25307
25318
  };
@@ -25480,7 +25491,7 @@ function HighlightVideoCombinedSection({
25480
25491
  input.accept = "video/*";
25481
25492
  input.onchange = async (e) => {
25482
25493
  const target = e.target;
25483
- const file = _optionalChain([target, 'access', _544 => _544.files, 'optionalAccess', _545 => _545[0]]);
25494
+ const file = _optionalChain([target, 'access', _546 => _546.files, 'optionalAccess', _547 => _547[0]]);
25484
25495
  if (!file) return;
25485
25496
  await onUpload(file);
25486
25497
  };
@@ -25701,7 +25712,7 @@ function ApprovalLevelView({
25701
25712
  value,
25702
25713
  disabled,
25703
25714
  onValueChange: (next) => {
25704
- if (next && next !== value) _optionalChain([onChange, 'optionalCall', _546 => _546(next)]);
25715
+ if (next && next !== value) _optionalChain([onChange, 'optionalCall', _548 => _548(next)]);
25705
25716
  },
25706
25717
  "aria-labelledby": labelledBy,
25707
25718
  children: APPROVAL_LEVELS.map((level) => {
@@ -25769,7 +25780,7 @@ var CATEGORY_LEVEL_COLUMN_CLASS = _chunkNWNC22IZcjs.cn.call(void 0,
25769
25780
  CATEGORY_LEVEL_WIDTH
25770
25781
  );
25771
25782
  var CHEVRON_CLASS2 = "h-6 w-6 text-ods-text-primary transition-transform duration-300";
25772
- var getApprovalLevelLabel = (level) => _nullishCoalesce(_optionalChain([APPROVAL_LEVEL_META, 'access', _547 => _547[level], 'optionalAccess', _548 => _548.label]), () => ( level));
25783
+ var getApprovalLevelLabel = (level) => _nullishCoalesce(_optionalChain([APPROVAL_LEVEL_META, 'access', _549 => _549[level], 'optionalAccess', _550 => _550.label]), () => ( level));
25773
25784
  var ApprovalLevelDropdown = ({ value, onChange, allowClear = false, triggerClassName, contentClassName, disabled }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkHE6UVP6Rcjs.DropdownMenu, { children: [
25774
25785
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHE6UVP6Rcjs.DropdownMenuTrigger, { asChild: true, disabled, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
25775
25786
  _chunkIZXVGIQXcjs.Button,
@@ -25991,7 +26002,7 @@ function OpenPolicyButton({ href, name }) {
25991
26002
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
25992
26003
  _chunkIZXVGIQXcjs.Button,
25993
26004
  {
25994
- onClick: loading ? void 0 : _chunkYCSX7MCGcjs.openInNewTab.call(void 0, href),
26005
+ onClick: loading ? void 0 : _chunkWFMLODQ4cjs.openInNewTab.call(void 0, href),
25995
26006
  disabled: loading,
25996
26007
  variant: "outline",
25997
26008
  size: "icon",
@@ -26190,7 +26201,7 @@ var POLICY_STATUS_CONFIG = {
26190
26201
  };
26191
26202
  function missingHostCount(policy) {
26192
26203
  const responded = policy.passing_host_count + policy.failing_host_count;
26193
- return (_nullishCoalesce(_optionalChain([policy, 'access', _549 => _549.hosts_include_any, 'optionalAccess', _550 => _550.length]), () => ( 0))) - responded;
26204
+ return (_nullishCoalesce(_optionalChain([policy, 'access', _551 => _551.hosts_include_any, 'optionalAccess', _552 => _552.length]), () => ( 0))) - responded;
26194
26205
  }
26195
26206
  function getPolicyStatus(policy) {
26196
26207
  const failing = policy.failing_host_count;
@@ -26365,7 +26376,7 @@ function OpenTenantButton({ href, name }) {
26365
26376
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
26366
26377
  _chunkIZXVGIQXcjs.Button,
26367
26378
  {
26368
- onClick: loading ? void 0 : _chunkYCSX7MCGcjs.openInNewTab.call(void 0, href),
26379
+ onClick: loading ? void 0 : _chunkWFMLODQ4cjs.openInNewTab.call(void 0, href),
26369
26380
  disabled: loading,
26370
26381
  variant: "outline",
26371
26382
  size: "icon",
@@ -26500,7 +26511,7 @@ function WaitlistForm({
26500
26511
  const { toast } = _chunk2U4H74KScjs.useToast.call(void 0, );
26501
26512
  const { honeypotInputProps, getSignals, resetSignals } = _chunk2U4H74KScjs.useHumanitySignals.call(void 0, );
26502
26513
  const [smsConsent, setSmsConsent] = _react.useState.call(void 0, false);
26503
- const isClient = _chunkEQKMFQ5Jcjs.useIsHydrated.call(void 0, );
26514
+ const isClient = _chunkRGGV3YOPcjs.useIsHydrated.call(void 0, );
26504
26515
  const [isPhoneInvalid, setIsPhoneInvalid] = _react.useState.call(void 0, false);
26505
26516
  const [showConsentError, setShowConsentError] = _react.useState.call(void 0, false);
26506
26517
  const rescue = _chunk2U4H74KScjs.useFormRescue.call(void 0, {
@@ -26515,7 +26526,7 @@ function WaitlistForm({
26515
26526
  _react.useEffect.call(void 0, () => {
26516
26527
  rescue.track({ email, phone }, null);
26517
26528
  }, [email, phone, rescue]);
26518
- const isMailDomainGeneric = _chunkYCSX7MCGcjs.hasGenericEmailDomain.call(void 0, email);
26529
+ const isMailDomainGeneric = _chunkWFMLODQ4cjs.hasGenericEmailDomain.call(void 0, email);
26519
26530
  const [syncedDefaultEmail, setSyncedDefaultEmail] = _react.useState.call(void 0, defaultEmail);
26520
26531
  if (syncedDefaultEmail !== defaultEmail) {
26521
26532
  setSyncedDefaultEmail(defaultEmail);
@@ -26549,7 +26560,7 @@ function WaitlistForm({
26549
26560
  setShowConsentError(true);
26550
26561
  return;
26551
26562
  }
26552
- const finalPhone = phone ? _chunkYCSX7MCGcjs.formatPhoneE164.call(void 0, phone, countryCode) : void 0;
26563
+ const finalPhone = phone ? _chunkWFMLODQ4cjs.formatPhoneE164.call(void 0, phone, countryCode) : void 0;
26553
26564
  try {
26554
26565
  await onRegister(email, finalPhone, getSignals(), rescue.submitFields());
26555
26566
  rescue.complete();
@@ -26810,19 +26821,19 @@ function NotificationsProvider({
26810
26821
  }, []);
26811
26822
  const markRead = _react.useCallback.call(void 0, (id) => {
26812
26823
  dispatch({ type: "markRead", id });
26813
- void _optionalChain([actionsRef, 'access', _551 => _551.current, 'optionalAccess', _552 => _552.onMarkRead, 'optionalCall', _553 => _553(id)]);
26824
+ void _optionalChain([actionsRef, 'access', _553 => _553.current, 'optionalAccess', _554 => _554.onMarkRead, 'optionalCall', _555 => _555(id)]);
26814
26825
  }, []);
26815
26826
  const markAllRead = _react.useCallback.call(void 0, () => {
26816
26827
  dispatch({ type: "markAllRead" });
26817
- void _optionalChain([actionsRef, 'access', _554 => _554.current, 'optionalAccess', _555 => _555.onMarkAllRead, 'optionalCall', _556 => _556()]);
26828
+ void _optionalChain([actionsRef, 'access', _556 => _556.current, 'optionalAccess', _557 => _557.onMarkAllRead, 'optionalCall', _558 => _558()]);
26818
26829
  }, []);
26819
26830
  const markSettled = _react.useCallback.call(void 0, (id) => {
26820
26831
  dispatch({ type: "markSettled", id });
26821
- void _optionalChain([actionsRef, 'access', _557 => _557.current, 'optionalAccess', _558 => _558.onMarkSettled, 'optionalCall', _559 => _559(id)]);
26832
+ void _optionalChain([actionsRef, 'access', _559 => _559.current, 'optionalAccess', _560 => _560.onMarkSettled, 'optionalCall', _561 => _561(id)]);
26822
26833
  }, []);
26823
26834
  const remove = _react.useCallback.call(void 0, (id) => {
26824
26835
  dispatch({ type: "remove", id });
26825
- void _optionalChain([actionsRef, 'access', _560 => _560.current, 'optionalAccess', _561 => _561.onRemove, 'optionalCall', _562 => _562(id)]);
26836
+ void _optionalChain([actionsRef, 'access', _562 => _562.current, 'optionalAccess', _563 => _563.onRemove, 'optionalCall', _564 => _564(id)]);
26826
26837
  }, []);
26827
26838
  const clear = _react.useCallback.call(void 0, () => dispatch({ type: "clear" }), []);
26828
26839
  const open = _react.useCallback.call(void 0, () => setIsOpen(true), []);
@@ -26831,14 +26842,14 @@ function NotificationsProvider({
26831
26842
  const setShowPopups = _react.useCallback.call(void 0,
26832
26843
  (value2) => {
26833
26844
  setShowPopupsState(value2);
26834
- _optionalChain([onShowPopupsChange, 'optionalCall', _563 => _563(value2)]);
26845
+ _optionalChain([onShowPopupsChange, 'optionalCall', _565 => _565(value2)]);
26835
26846
  },
26836
26847
  [onShowPopupsChange]
26837
26848
  );
26838
26849
  const setShowDesktopPopups = _react.useCallback.call(void 0,
26839
26850
  (value2) => {
26840
26851
  setShowDesktopPopupsState(value2);
26841
- _optionalChain([onShowDesktopPopupsChange, 'optionalCall', _564 => _564(value2)]);
26852
+ _optionalChain([onShowDesktopPopupsChange, 'optionalCall', _566 => _566(value2)]);
26842
26853
  },
26843
26854
  [onShowDesktopPopupsChange]
26844
26855
  );
@@ -26954,7 +26965,7 @@ var AppLayoutDrawerRoot = ({
26954
26965
  const handleOpenChange = _react.useCallback.call(void 0,
26955
26966
  (next) => {
26956
26967
  if (!isControlled) setInternalOpen(next);
26957
- _optionalChain([onOpenChange, 'optionalCall', _565 => _565(next)]);
26968
+ _optionalChain([onOpenChange, 'optionalCall', _567 => _567(next)]);
26958
26969
  },
26959
26970
  [isControlled, onOpenChange]
26960
26971
  );
@@ -26971,9 +26982,9 @@ var AppLayoutDrawerRoot = ({
26971
26982
  }
26972
26983
  }));
26973
26984
  _react.useEffect.call(void 0, () => {
26974
- if (open) _optionalChain([coordination, 'optionalAccess', _566 => _566.notifyDrawerDidOpen, 'call', _567 => _567(selfHandle)]);
26985
+ if (open) _optionalChain([coordination, 'optionalAccess', _568 => _568.notifyDrawerDidOpen, 'call', _569 => _569(selfHandle)]);
26975
26986
  }, [open, coordination, selfHandle]);
26976
- _react.useEffect.call(void 0, () => _optionalChain([coordination, 'optionalAccess', _568 => _568.registerDrawer, 'call', _569 => _569(selfHandle)]), [coordination, selfHandle]);
26987
+ _react.useEffect.call(void 0, () => _optionalChain([coordination, 'optionalAccess', _570 => _570.registerDrawer, 'call', _571 => _571(selfHandle)]), [coordination, selfHandle]);
26977
26988
  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 }) });
26978
26989
  };
26979
26990
  AppLayoutDrawerRoot.displayName = "AppLayoutDrawer";
@@ -27195,10 +27206,10 @@ var AppLayoutDrawerContent = _react.forwardRef.call(void 0,
27195
27206
  ),
27196
27207
  style,
27197
27208
  onInteractOutside: (event) => {
27198
- _optionalChain([onInteractOutside, 'optionalCall', _570 => _570(event)]);
27209
+ _optionalChain([onInteractOutside, 'optionalCall', _572 => _572(event)]);
27199
27210
  if (event.defaultPrevented) return;
27200
27211
  const target = event.target;
27201
- const isInsideContainer = !!target && !!_optionalChain([portalContainer, 'optionalAccess', _571 => _571.contains, 'call', _572 => _572(target)]);
27212
+ const isInsideContainer = !!target && !!_optionalChain([portalContainer, 'optionalAccess', _573 => _573.contains, 'call', _574 => _574(target)]);
27202
27213
  if (!isInsideContainer) {
27203
27214
  event.preventDefault();
27204
27215
  return;
@@ -27333,7 +27344,7 @@ function LoadedNotificationTile({
27333
27344
  if (!counting) return void 0;
27334
27345
  const remaining = Math.max(0, liveDurationMs - initialElapsed);
27335
27346
  const timer = window.setTimeout(() => {
27336
- _optionalChain([onSettle, 'optionalCall', _573 => _573(id)]);
27347
+ _optionalChain([onSettle, 'optionalCall', _575 => _575(id)]);
27337
27348
  }, remaining);
27338
27349
  return () => window.clearTimeout(timer);
27339
27350
  }, [id, counting, initialElapsed, liveDurationMs, onSettle]);
@@ -27384,7 +27395,7 @@ function LoadedNotificationTile({
27384
27395
  active: isLive,
27385
27396
  label: "Dismiss notification",
27386
27397
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, { size: 16 }),
27387
- onClick: () => _optionalChain([onSettle, 'optionalCall', _574 => _574(id)])
27398
+ onClick: () => _optionalChain([onSettle, 'optionalCall', _576 => _576(id)])
27388
27399
  },
27389
27400
  {
27390
27401
  active: !isLive,
@@ -27642,7 +27653,7 @@ function DrawerScrollList({
27642
27653
  if (!sentinel || !root) return void 0;
27643
27654
  const observer = new IntersectionObserver(
27644
27655
  (entries) => {
27645
- if (_optionalChain([entries, 'access', _575 => _575[0], 'optionalAccess', _576 => _576.isIntersecting])) _optionalChain([loadMoreRef, 'access', _577 => _577.current, 'optionalCall', _578 => _578()]);
27656
+ if (_optionalChain([entries, 'access', _577 => _577[0], 'optionalAccess', _578 => _578.isIntersecting])) _optionalChain([loadMoreRef, 'access', _579 => _579.current, 'optionalCall', _580 => _580()]);
27646
27657
  },
27647
27658
  { root, rootMargin: loadMoreRootMargin }
27648
27659
  );
@@ -27657,7 +27668,7 @@ function DrawerScrollList({
27657
27668
  className: "flex flex-1 flex-col gap-[var(--spacing-system-xs)] overflow-y-auto px-[var(--spacing-system-m)]",
27658
27669
  children: isEmpty && !isLoadingMore ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmptyState, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
27659
27670
  unreadNotifications.map((n) => {
27660
- const custom = _optionalChain([renderTile, 'optionalCall', _579 => _579(n, { onComplete, onSettle, liveDurationMs })]);
27671
+ const custom = _optionalChain([renderTile, 'optionalCall', _581 => _581(n, { onComplete, onSettle, liveDurationMs })]);
27661
27672
  if (custom) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: custom }, n.id);
27662
27673
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
27663
27674
  NotificationTile,
@@ -27768,7 +27779,7 @@ function NotificationPopups({
27768
27779
  }) {
27769
27780
  const ctx = useOptionalNotifications();
27770
27781
  const [now, setNow] = _react.useState.call(void 0, () => Date.now());
27771
- const hasAgeingNotifications = Boolean(_optionalChain([ctx, 'optionalAccess', _580 => _580.notifications, 'access', _581 => _581.some, 'call', _582 => _582((n) => !n.read && !n.settled)]));
27782
+ const hasAgeingNotifications = Boolean(_optionalChain([ctx, 'optionalAccess', _582 => _582.notifications, 'access', _583 => _583.some, 'call', _584 => _584((n) => !n.read && !n.settled)]));
27772
27783
  _react.useEffect.call(void 0, () => {
27773
27784
  if (!hasAgeingNotifications) return void 0;
27774
27785
  const id = setInterval(() => setNow(Date.now()), 500);
@@ -27811,7 +27822,7 @@ function NotificationPopups({
27811
27822
  className
27812
27823
  ),
27813
27824
  children: live.map((n) => {
27814
- const custom = _optionalChain([renderTile, 'optionalCall', _583 => _583(n, { onComplete: markRead, onSettle: markSettled, liveDurationMs })]);
27825
+ const custom = _optionalChain([renderTile, 'optionalCall', _585 => _585(n, { onComplete: markRead, onSettle: markSettled, liveDurationMs })]);
27815
27826
  if (custom) {
27816
27827
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pointer-events-auto", children: custom }, n.id);
27817
27828
  }
@@ -27858,21 +27869,21 @@ function isApprovalNotificationType(type) {
27858
27869
  return typeof type === "string" && APPROVAL_REQUEST_TYPES.has(type);
27859
27870
  }
27860
27871
  function isApprovalNotification(notification) {
27861
- return isApprovalNotificationType(_optionalChain([notification, 'access', _584 => _584.meta, 'optionalAccess', _585 => _585.notificationType]));
27872
+ return isApprovalNotificationType(_optionalChain([notification, 'access', _586 => _586.meta, 'optionalAccess', _587 => _587.notificationType]));
27862
27873
  }
27863
27874
  function getApprovalMeta(notification) {
27864
27875
  if (!isApprovalNotification(notification)) return null;
27865
27876
  const meta = notification.meta;
27866
- const approvalRequestId = _optionalChain([meta, 'optionalAccess', _586 => _586.approvalRequestId]);
27867
- const toolCalls = _optionalChain([meta, 'optionalAccess', _587 => _587.toolCalls]);
27877
+ const approvalRequestId = _optionalChain([meta, 'optionalAccess', _588 => _588.approvalRequestId]);
27878
+ const toolCalls = _optionalChain([meta, 'optionalAccess', _589 => _589.toolCalls]);
27868
27879
  if (typeof approvalRequestId !== "string" || !Array.isArray(toolCalls)) return null;
27869
27880
  return {
27870
27881
  approvalRequestId,
27871
- dialogId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _588 => _588.dialogId]), () => ( null)),
27872
- ticketId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _589 => _589.ticketId]), () => ( null)),
27873
- approvalType: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _590 => _590.approvalType]), () => ( null)),
27874
- resolution: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _591 => _591.resolution]), () => ( null)),
27875
- resolvedByName: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _592 => _592.resolvedByName]), () => ( null)),
27882
+ dialogId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _590 => _590.dialogId]), () => ( null)),
27883
+ ticketId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _591 => _591.ticketId]), () => ( null)),
27884
+ approvalType: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _592 => _592.approvalType]), () => ( null)),
27885
+ resolution: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _593 => _593.resolution]), () => ( null)),
27886
+ resolvedByName: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _594 => _594.resolvedByName]), () => ( null)),
27876
27887
  toolCalls
27877
27888
  };
27878
27889
  }
@@ -27927,7 +27938,7 @@ function ApprovalRequestNotificationTile({
27927
27938
  const [processing, setProcessing] = _react.useState.call(void 0, false);
27928
27939
  const [localStatus, setLocalStatus] = _react.useState.call(void 0, null);
27929
27940
  const approval = getApprovalMeta(notification);
27930
- const resolvedStatus = resolutionToStatus(_optionalChain([approval, 'optionalAccess', _593 => _593.resolution]));
27941
+ const resolvedStatus = resolutionToStatus(_optionalChain([approval, 'optionalAccess', _595 => _595.resolution]));
27931
27942
  const status = resolvedStatus !== "pending" ? resolvedStatus : _nullishCoalesce(localStatus, () => ( "pending"));
27932
27943
  const batchData = _react.useMemo.call(void 0, () => approval ? approvalMetaToBatchData(approval) : null, [approval]);
27933
27944
  const { innerRef, containerStyle } = _chunkHAAQUV3Ocjs.useCollapsible.call(void 0, { expanded });
@@ -28264,7 +28275,7 @@ function TimeTrackerPanel({
28264
28275
  error: showFieldError ? "Required if no notes added" : void 0,
28265
28276
  disableClientFilter: !!onTicketSearch,
28266
28277
  onInputChange: (value, reason) => {
28267
- if (reason === "input") _optionalChain([onTicketSearch, 'optionalCall', _594 => _594(value)]);
28278
+ if (reason === "input") _optionalChain([onTicketSearch, 'optionalCall', _596 => _596(value)]);
28268
28279
  }
28269
28280
  }
28270
28281
  ),
@@ -28279,7 +28290,7 @@ function TimeTrackerPanel({
28279
28290
  disabled: customerLocked,
28280
28291
  disableClientFilter: !!onCustomerSearch,
28281
28292
  onInputChange: (value, reason) => {
28282
- if (reason === "input") _optionalChain([onCustomerSearch, 'optionalCall', _595 => _595(value)]);
28293
+ if (reason === "input") _optionalChain([onCustomerSearch, 'optionalCall', _597 => _597(value)]);
28283
28294
  },
28284
28295
  startAdornment: customerStartAdornment,
28285
28296
  renderOption: renderCustomerOption
@@ -28381,7 +28392,7 @@ function LastEntryRow({ entry, onClick }) {
28381
28392
  {
28382
28393
  variant: "outline",
28383
28394
  size: "icon",
28384
- onClick: () => _optionalChain([onClick, 'optionalCall', _596 => _596(entry)]),
28395
+ onClick: () => _optionalChain([onClick, 'optionalCall', _598 => _598(entry)]),
28385
28396
  disabled: !onClick,
28386
28397
  "aria-label": `Open entry: ${entry.title}`,
28387
28398
  className: "h-12 w-12 shrink-0 [&_svg]:!size-6",
@@ -28460,29 +28471,29 @@ function HeaderButton({
28460
28471
  function TimeTrackerHeaderButton({ className, disabled }) {
28461
28472
  const ctx = useOptionalTimeTracker();
28462
28473
  const elapsedLabel = useTrackerClock({
28463
- status: _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _597 => _597.status]), () => ( "ready")),
28464
- runningSince: _optionalChain([ctx, 'optionalAccess', _598 => _598.runningSince]),
28465
- accumulatedMs: _optionalChain([ctx, 'optionalAccess', _599 => _599.accumulatedMs])
28474
+ status: _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _599 => _599.status]), () => ( "ready")),
28475
+ runningSince: _optionalChain([ctx, 'optionalAccess', _600 => _600.runningSince]),
28476
+ accumulatedMs: _optionalChain([ctx, 'optionalAccess', _601 => _601.accumulatedMs])
28466
28477
  });
28467
28478
  const layoutContainer = useAppLayoutDrawerContainer();
28468
28479
  const portalContainer = _chunkHE6UVP6Rcjs.usePortalContainer.call(void 0, );
28469
28480
  const coordination = useAppLayoutDrawerCoordination();
28470
- const isOpen = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _600 => _600.isOpen]), () => ( false));
28481
+ const isOpen = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _602 => _602.isOpen]), () => ( false));
28471
28482
  const isOpenRef = _react.useRef.call(void 0, isOpen);
28472
- const closeRef = _react.useRef.call(void 0, _optionalChain([ctx, 'optionalAccess', _601 => _601.close]));
28483
+ const closeRef = _react.useRef.call(void 0, _optionalChain([ctx, 'optionalAccess', _603 => _603.close]));
28473
28484
  _react.useEffect.call(void 0, () => {
28474
28485
  isOpenRef.current = isOpen;
28475
- closeRef.current = _optionalChain([ctx, 'optionalAccess', _602 => _602.close]);
28486
+ closeRef.current = _optionalChain([ctx, 'optionalAccess', _604 => _604.close]);
28476
28487
  });
28477
28488
  const [selfHandle] = _react.useState.call(void 0, () => ({
28478
28489
  close: () => {
28479
- if (isOpenRef.current) _optionalChain([closeRef, 'access', _603 => _603.current, 'optionalCall', _604 => _604()]);
28490
+ if (isOpenRef.current) _optionalChain([closeRef, 'access', _605 => _605.current, 'optionalCall', _606 => _606()]);
28480
28491
  }
28481
28492
  }));
28482
28493
  _react.useEffect.call(void 0, () => {
28483
- if (isOpen) _optionalChain([coordination, 'optionalAccess', _605 => _605.notifyDrawerDidOpen, 'call', _606 => _606(selfHandle)]);
28494
+ if (isOpen) _optionalChain([coordination, 'optionalAccess', _607 => _607.notifyDrawerDidOpen, 'call', _608 => _608(selfHandle)]);
28484
28495
  }, [isOpen, coordination, selfHandle]);
28485
- _react.useEffect.call(void 0, () => _optionalChain([coordination, 'optionalAccess', _607 => _607.registerDrawer, 'call', _608 => _608(selfHandle)]), [coordination, selfHandle]);
28496
+ _react.useEffect.call(void 0, () => _optionalChain([coordination, 'optionalAccess', _609 => _609.registerDrawer, 'call', _610 => _610(selfHandle)]), [coordination, selfHandle]);
28486
28497
  if (!ctx) return null;
28487
28498
  const { open, close, status } = ctx;
28488
28499
  const isPaused = status === "paused";
@@ -28560,12 +28571,12 @@ function formatLastOnline(lastSeen) {
28560
28571
 
28561
28572
  // src/components/features/devices/device-name.ts
28562
28573
  function getDeviceName(device) {
28563
- return _optionalChain([device, 'optionalAccess', _609 => _609.nickname]) || _optionalChain([device, 'optionalAccess', _610 => _610.displayName]) || _optionalChain([device, 'optionalAccess', _611 => _611.hostname]) || "";
28574
+ return _optionalChain([device, 'optionalAccess', _611 => _611.nickname]) || _optionalChain([device, 'optionalAccess', _612 => _612.displayName]) || _optionalChain([device, 'optionalAccess', _613 => _613.hostname]) || "";
28564
28575
  }
28565
28576
  function matchesDeviceName(device, search = "") {
28566
28577
  const needle = search.trim().toLowerCase();
28567
28578
  if (!needle) return true;
28568
- return getDeviceName(device).toLowerCase().includes(needle) || (_nullishCoalesce(_optionalChain([device, 'optionalAccess', _612 => _612.hostname]), () => ( ""))).toLowerCase().includes(needle);
28579
+ return getDeviceName(device).toLowerCase().includes(needle) || (_nullishCoalesce(_optionalChain([device, 'optionalAccess', _614 => _614.hostname]), () => ( ""))).toLowerCase().includes(needle);
28569
28580
  }
28570
28581
 
28571
28582
  // src/components/features/devices/devices-view-config.tsx
@@ -28704,7 +28715,7 @@ function getDeviceStatusConfig(status) {
28704
28715
  }
28705
28716
  }
28706
28717
  function getDeviceOperatingSystem(osType) {
28707
- return _chunkYCSX7MCGcjs.getOSPlatformId.call(void 0, osType);
28718
+ return _chunkWFMLODQ4cjs.getOSPlatformId.call(void 0, osType);
28708
28719
  }
28709
28720
 
28710
28721
  // src/components/features/devices/device-statuses.ts
@@ -28758,7 +28769,7 @@ var HIDDEN_DEVICE_STATUSES = [DEVICE_STATUS.ARCHIVED, DEVICE_STATUS.DELETED];
28758
28769
 
28759
28770
  var DEFAULT_CLASS_NAME = "w-6 h-6 text-ods-text-secondary";
28760
28771
  function renderDeviceTypeIcon(type, className = DEFAULT_CLASS_NAME) {
28761
- switch (_optionalChain([type, 'optionalAccess', _613 => _613.toLowerCase, 'call', _614 => _614()])) {
28772
+ switch (_optionalChain([type, 'optionalAccess', _615 => _615.toLowerCase, 'call', _616 => _616()])) {
28762
28773
  case "desktop":
28763
28774
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPTK7GOIIcjs.MonitorIcon, { className });
28764
28775
  case "laptop":
@@ -28902,7 +28913,7 @@ function getDeviceActionsColumn(renderRowActions) {
28902
28913
  function OpenDeviceButton({ device }) {
28903
28914
  const { getDeviceHref } = useDevicesViewConfig();
28904
28915
  const loading = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, );
28905
- const href = loading ? void 0 : _optionalChain([getDeviceHref, 'optionalCall', _615 => _615(device)]);
28916
+ const href = loading ? void 0 : _optionalChain([getDeviceHref, 'optionalCall', _617 => _617(device)]);
28906
28917
  const open = (event) => {
28907
28918
  event.preventDefault();
28908
28919
  if (href) window.open(href, "_blank", "noopener,noreferrer");
@@ -29012,10 +29023,10 @@ function DeviceLastSeen({ lastSeen }) {
29012
29023
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "hidden text-ods-text-secondary text-h6 content-md:flex", children: lastSeen ? formatDateTime(lastSeen) : "Never" });
29013
29024
  }
29014
29025
  function buildDeviceFilterOptions(deviceFilters) {
29015
- const status = (_nullishCoalesce(_optionalChain([deviceFilters, 'optionalAccess', _616 => _616.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 }));
29016
- const os = (_nullishCoalesce(_optionalChain([deviceFilters, 'optionalAccess', _617 => _617.osTypes]), () => ( []))).map((o) => ({ id: o.value, label: o.value, value: o.value, count: o.count }));
29026
+ const status = (_nullishCoalesce(_optionalChain([deviceFilters, 'optionalAccess', _618 => _618.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 }));
29027
+ const os = (_nullishCoalesce(_optionalChain([deviceFilters, 'optionalAccess', _619 => _619.osTypes]), () => ( []))).map((o) => ({ id: o.value, label: o.value, value: o.value, count: o.count }));
29017
29028
  const organization = uniqueById(
29018
- (_nullishCoalesce(_optionalChain([deviceFilters, 'optionalAccess', _618 => _618.organizationIds]), () => ( []))).map((org) => ({
29029
+ (_nullishCoalesce(_optionalChain([deviceFilters, 'optionalAccess', _620 => _620.organizationIds]), () => ( []))).map((org) => ({
29019
29030
  id: org.value,
29020
29031
  label: org.label,
29021
29032
  value: org.value,
@@ -29109,7 +29120,7 @@ function isCompleteTag(tag) {
29109
29120
  const i = tag.indexOf(":");
29110
29121
  return i > 0 && i < tag.length - 1;
29111
29122
  }
29112
- var scrollMainToTop = () => _optionalChain([document, 'access', _619 => _619.querySelector, 'call', _620 => _620("main"), 'optionalAccess', _621 => _621.scrollTo, 'call', _622 => _622({ top: 0, behavior: "instant" })]);
29123
+ var scrollMainToTop = () => _optionalChain([document, 'access', _621 => _621.querySelector, 'call', _622 => _622("main"), 'optionalAccess', _623 => _623.scrollTo, 'call', _624 => _624({ top: 0, behavior: "instant" })]);
29113
29124
  function useTagFilterModal({
29114
29125
  tags,
29115
29126
  deviceFilters,
@@ -29131,7 +29142,7 @@ function useTagFilterModal({
29131
29142
  }));
29132
29143
  }, [columns, isMdUp]);
29133
29144
  const tagFilterKeys = _react.useMemo.call(void 0, () => {
29134
- if (!_optionalChain([deviceFilters, 'optionalAccess', _623 => _623.tagKeys])) return [];
29145
+ if (!_optionalChain([deviceFilters, 'optionalAccess', _625 => _625.tagKeys])) return [];
29135
29146
  const grouped = /* @__PURE__ */ new Map();
29136
29147
  for (const tag of deviceFilters.tagKeys) {
29137
29148
  if (tag.key === "null") continue;
@@ -29324,7 +29335,7 @@ function DeviceSelector({
29324
29335
  const clientToggleDevice = _react.useCallback.call(void 0,
29325
29336
  (device) => {
29326
29337
  if (disabled) return;
29327
- if (_optionalChain([isDeviceDisabled, 'optionalCall', _624 => _624(device)])) return;
29338
+ if (_optionalChain([isDeviceDisabled, 'optionalCall', _626 => _626(device)])) return;
29328
29339
  const key = getDeviceKey(device);
29329
29340
  if (key === void 0) return;
29330
29341
  const current = selectedIdsRef.current;
@@ -29349,7 +29360,7 @@ function DeviceSelector({
29349
29360
  return;
29350
29361
  }
29351
29362
  if (disabled) return;
29352
- if (_optionalChain([isDeviceDisabled, 'optionalCall', _625 => _625(device)])) return;
29363
+ if (_optionalChain([isDeviceDisabled, 'optionalCall', _627 => _627(device)])) return;
29353
29364
  if (server.activeTab === "selected") {
29354
29365
  server.onRemove(device);
29355
29366
  return;
@@ -29410,7 +29421,7 @@ function DeviceSelector({
29410
29421
  const base = addAllBehavior === "replace" ? /* @__PURE__ */ new Set() : new Set(selectedIds);
29411
29422
  for (const d of client.filteredDevices) {
29412
29423
  if (!matchesVisibleFilters(d)) continue;
29413
- if (_optionalChain([isDeviceDisabled, 'optionalCall', _626 => _626(d)])) continue;
29424
+ if (_optionalChain([isDeviceDisabled, 'optionalCall', _628 => _628(d)])) continue;
29414
29425
  const key = getDeviceKey(d);
29415
29426
  if (key !== void 0) {
29416
29427
  base.add(key);
@@ -29439,7 +29450,7 @@ function DeviceSelector({
29439
29450
  const orgKey = _nullishCoalesce(d.organizationId, () => ( d.organization));
29440
29451
  if (orgKey) {
29441
29452
  const existing = orgCounts.get(orgKey);
29442
- orgCounts.set(orgKey, { label: _nullishCoalesce(d.organization, () => ( orgKey)), count: (_nullishCoalesce(_optionalChain([existing, 'optionalAccess', _627 => _627.count]), () => ( 0))) + 1 });
29453
+ orgCounts.set(orgKey, { label: _nullishCoalesce(d.organization, () => ( orgKey)), count: (_nullishCoalesce(_optionalChain([existing, 'optionalAccess', _629 => _629.count]), () => ( 0))) + 1 });
29443
29454
  }
29444
29455
  for (const tag of _nullishCoalesce(d.tags, () => ( []))) {
29445
29456
  const vc = _nullishCoalesce(tagSeen.get(tag.key), () => ( /* @__PURE__ */ new Map()));
@@ -29462,18 +29473,18 @@ function DeviceSelector({
29462
29473
  filteredCount: devices.length
29463
29474
  };
29464
29475
  }, [devices]);
29465
- const deviceFilters = _nullishCoalesce(_optionalChain([server, 'optionalAccess', _628 => _628.filterOptions]), () => ( clientDeviceFilters));
29466
- const serverFaceted = Boolean(_optionalChain([server, 'optionalAccess', _629 => _629.filterOptions]));
29476
+ const deviceFilters = _nullishCoalesce(_optionalChain([server, 'optionalAccess', _630 => _630.filterOptions]), () => ( clientDeviceFilters));
29477
+ const serverFaceted = Boolean(_optionalChain([server, 'optionalAccess', _631 => _631.filterOptions]));
29467
29478
  const filterColumns = _react.useMemo.call(void 0, () => {
29468
29479
  const columns2 = getDeviceFilterColumns(deviceFilters);
29469
29480
  if (serverFaceted) return columns2;
29470
29481
  return columns2.map((column) => ({
29471
29482
  ...column,
29472
- filterOptions: _optionalChain([column, 'access', _630 => _630.filterOptions, 'optionalAccess', _631 => _631.map, 'call', _632 => _632(({ count: _count, ...option }) => option)])
29483
+ filterOptions: _optionalChain([column, 'access', _632 => _632.filterOptions, 'optionalAccess', _633 => _633.map, 'call', _634 => _634(({ count: _count, ...option }) => option)])
29473
29484
  }));
29474
29485
  }, [deviceFilters, serverFaceted]);
29475
29486
  const statusFilterOptions = _react.useMemo.call(void 0, () => {
29476
- const options = _nullishCoalesce(_optionalChain([filterColumns, 'access', _633 => _633.find, 'call', _634 => _634((column) => column.key === "status"), 'optionalAccess', _635 => _635.filterOptions]), () => ( []));
29487
+ const options = _nullishCoalesce(_optionalChain([filterColumns, 'access', _635 => _635.find, 'call', _636 => _636((column) => column.key === "status"), 'optionalAccess', _637 => _637.filterOptions]), () => ( []));
29477
29488
  return [...options].sort((a, b) => {
29478
29489
  if (a.value === DEVICE_STATUS.ARCHIVED) return 1;
29479
29490
  if (b.value === DEVICE_STATUS.ARCHIVED) return -1;
@@ -29481,15 +29492,15 @@ function DeviceSelector({
29481
29492
  });
29482
29493
  }, [filterColumns]);
29483
29494
  const orgFilterOptions = _react.useMemo.call(void 0,
29484
- () => _nullishCoalesce(_optionalChain([filterColumns, 'access', _636 => _636.find, 'call', _637 => _637((column) => column.key === "organization"), 'optionalAccess', _638 => _638.filterOptions]), () => ( [])),
29495
+ () => _nullishCoalesce(_optionalChain([filterColumns, 'access', _638 => _638.find, 'call', _639 => _639((column) => column.key === "organization"), 'optionalAccess', _640 => _640.filterOptions]), () => ( [])),
29485
29496
  [filterColumns]
29486
29497
  );
29487
29498
  const handleSetParams = _react.useCallback.call(void 0,
29488
29499
  (params) => {
29489
29500
  setColumnFilters([
29490
- ..._optionalChain([params, 'access', _639 => _639.statuses, 'optionalAccess', _640 => _640.length]) ? [{ id: "status", value: params.statuses }] : [],
29491
- ..._optionalChain([params, 'access', _641 => _641.osTypes, 'optionalAccess', _642 => _642.length]) ? [{ id: "os", value: params.osTypes }] : [],
29492
- ..._optionalChain([params, 'access', _643 => _643.organizationIds, 'optionalAccess', _644 => _644.length]) ? [{ id: "organization", value: params.organizationIds }] : []
29501
+ ..._optionalChain([params, 'access', _641 => _641.statuses, 'optionalAccess', _642 => _642.length]) ? [{ id: "status", value: params.statuses }] : [],
29502
+ ..._optionalChain([params, 'access', _643 => _643.osTypes, 'optionalAccess', _644 => _644.length]) ? [{ id: "os", value: params.osTypes }] : [],
29503
+ ..._optionalChain([params, 'access', _645 => _645.organizationIds, 'optionalAccess', _646 => _646.length]) ? [{ id: "organization", value: params.organizationIds }] : []
29493
29504
  ]);
29494
29505
  setSelectedTags(_nullishCoalesce(params.tags, () => ( [])));
29495
29506
  },
@@ -29513,9 +29524,9 @@ function DeviceSelector({
29513
29524
  const tagOptions = _react.useMemo.call(void 0, () => selectedTags.map((t) => ({ label: t, value: t })), [selectedTags]);
29514
29525
  const tableFilters = _react.useMemo.call(void 0,
29515
29526
  () => ({
29516
- status: _nullishCoalesce(_optionalChain([columnFilters, 'access', _645 => _645.find, 'call', _646 => _646((f) => f.id === "status"), 'optionalAccess', _647 => _647.value]), () => ( [])),
29517
- os: _nullishCoalesce(_optionalChain([columnFilters, 'access', _648 => _648.find, 'call', _649 => _649((f) => f.id === "os"), 'optionalAccess', _650 => _650.value]), () => ( [])),
29518
- organization: _nullishCoalesce(_optionalChain([columnFilters, 'access', _651 => _651.find, 'call', _652 => _652((f) => f.id === "organization"), 'optionalAccess', _653 => _653.value]), () => ( []))
29527
+ status: _nullishCoalesce(_optionalChain([columnFilters, 'access', _647 => _647.find, 'call', _648 => _648((f) => f.id === "status"), 'optionalAccess', _649 => _649.value]), () => ( [])),
29528
+ os: _nullishCoalesce(_optionalChain([columnFilters, 'access', _650 => _650.find, 'call', _651 => _651((f) => f.id === "os"), 'optionalAccess', _652 => _652.value]), () => ( [])),
29529
+ organization: _nullishCoalesce(_optionalChain([columnFilters, 'access', _653 => _653.find, 'call', _654 => _654((f) => f.id === "organization"), 'optionalAccess', _655 => _655.value]), () => ( []))
29519
29530
  }),
29520
29531
  [columnFilters]
29521
29532
  );
@@ -29585,7 +29596,7 @@ function DeviceSelector({
29585
29596
  id: "actions",
29586
29597
  cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InertInScope, { children: (() => {
29587
29598
  const device = row.original;
29588
- const disabledReason = _optionalChain([isDeviceDisabled, 'optionalCall', _654 => _654(device)]);
29599
+ const disabledReason = _optionalChain([isDeviceDisabled, 'optionalCall', _656 => _656(device)]);
29589
29600
  if (disabledReason) {
29590
29601
  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: [
29591
29602
  /* @__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 }),
@@ -29702,7 +29713,7 @@ function DeviceSelector({
29702
29713
  showHeader && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
29703
29714
  DataTable.Header,
29704
29715
  {
29705
- rightSlot: _nullishCoalesce(bulkAction, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTable.RowCount, { itemName: "device", totalCount: _nullishCoalesce(totalCount, () => ( _optionalChain([server, 'optionalAccess', _655 => _655.totalCount]))), loading })))
29716
+ rightSlot: _nullishCoalesce(bulkAction, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTable.RowCount, { itemName: "device", totalCount: _nullishCoalesce(totalCount, () => ( _optionalChain([server, 'optionalAccess', _657 => _657.totalCount]))), loading })))
29706
29717
  }
29707
29718
  ),
29708
29719
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -29789,7 +29800,7 @@ function DeviceSelector({
29789
29800
  // src/components/features/devices/device-selector/narrowing.ts
29790
29801
  var EMPTY_NARROWING = { columnFilters: [], tags: [] };
29791
29802
  function narrowingToFilter(narrowing) {
29792
- const column = (id) => _optionalChain([narrowing, 'access', _656 => _656.columnFilters, 'access', _657 => _657.find, 'call', _658 => _658((f) => f.id === id), 'optionalAccess', _659 => _659.value]);
29803
+ const column = (id) => _optionalChain([narrowing, 'access', _658 => _658.columnFilters, 'access', _659 => _659.find, 'call', _660 => _660((f) => f.id === id), 'optionalAccess', _661 => _661.value]);
29793
29804
  const tagPairs = narrowing.tags.flatMap((t) => {
29794
29805
  const i = t.indexOf(":");
29795
29806
  return i > 0 ? [{ key: t.slice(0, i), value: t.slice(i + 1) }] : [];
@@ -29798,9 +29809,9 @@ function narrowingToFilter(narrowing) {
29798
29809
  const statuses = column("status");
29799
29810
  const osTypes = column("os");
29800
29811
  const organizationIds = column("organization");
29801
- if (_optionalChain([statuses, 'optionalAccess', _660 => _660.length])) filter.statuses = statuses;
29802
- if (_optionalChain([osTypes, 'optionalAccess', _661 => _661.length])) filter.osTypes = osTypes;
29803
- if (_optionalChain([organizationIds, 'optionalAccess', _662 => _662.length])) filter.organizationIds = organizationIds;
29812
+ if (_optionalChain([statuses, 'optionalAccess', _662 => _662.length])) filter.statuses = statuses;
29813
+ if (_optionalChain([osTypes, 'optionalAccess', _663 => _663.length])) filter.osTypes = osTypes;
29814
+ if (_optionalChain([organizationIds, 'optionalAccess', _664 => _664.length])) filter.organizationIds = organizationIds;
29804
29815
  if (tagPairs.length) {
29805
29816
  filter.tagKeys = tagPairs.map((t) => t.key);
29806
29817
  filter.tagValues = tagPairs.map((t) => t.value);
@@ -29830,7 +29841,7 @@ function DevicesGrid({
29830
29841
  const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
29831
29842
  const { getDeviceHref } = useDevicesViewConfig();
29832
29843
  const handleDeviceClick = (device) => {
29833
- const href = device.machineId || device.id ? _optionalChain([getDeviceHref, 'optionalCall', _663 => _663(device)]) : void 0;
29844
+ const href = device.machineId || device.id ? _optionalChain([getDeviceHref, 'optionalCall', _665 => _665(device)]) : void 0;
29834
29845
  if (href) router.push(href);
29835
29846
  };
29836
29847
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: isLoading && devices.length === 0 ? (
@@ -29990,7 +30001,7 @@ function DevicesList({
29990
30001
  const onColumnFiltersChange = _react.useCallback.call(void 0,
29991
30002
  (updater) => {
29992
30003
  const next = typeof updater === "function" ? updater(columnFilters) : updater;
29993
- const pick = (id) => _nullishCoalesce(_optionalChain([next, 'access', _664 => _664.find, 'call', _665 => _665((f) => f.id === id), 'optionalAccess', _666 => _666.value]), () => ( []));
30004
+ const pick = (id) => _nullishCoalesce(_optionalChain([next, 'access', _666 => _666.find, 'call', _667 => _667((f) => f.id === id), 'optionalAccess', _668 => _668.value]), () => ( []));
29994
30005
  patch({ statuses: pick("status"), osTypes: pick("os"), organizationIds: pick("organization") });
29995
30006
  },
29996
30007
  [columnFilters, patch]
@@ -30214,7 +30225,7 @@ function DevicesPanelView({
30214
30225
  }) {
30215
30226
  const scoped = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, );
30216
30227
  const loading = scoped || loadingGiven;
30217
- const gridColumns = _nullishCoalesce(filterColumns, () => ( getDeviceFilterColumns(deviceFilters).filter((column) => !_optionalChain([hideFilters, 'optionalAccess', _667 => _667.includes, 'call', _668 => _668(column.key)]))));
30228
+ const gridColumns = _nullishCoalesce(filterColumns, () => ( getDeviceFilterColumns(deviceFilters).filter((column) => !_optionalChain([hideFilters, 'optionalAccess', _669 => _669.includes, 'call', _670 => _670(column.key)]))));
30218
30229
  const list = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
30219
30230
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DevicesFilterToolbar, { ...toolbar, isLoading: loading }),
30220
30231
  viewMode === "table" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -30279,10 +30290,10 @@ function DevicesPanelView({
30279
30290
  actionsVariant: "icon-buttons",
30280
30291
  className,
30281
30292
  selector: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
30282
- _chunkEQKMFQ5Jcjs.TabSelector,
30293
+ _chunkRGGV3YOPcjs.TabSelector,
30283
30294
  {
30284
30295
  value: viewMode,
30285
- onValueChange: (value) => _optionalChain([onViewModeChange, 'optionalCall', _669 => _669(value)]),
30296
+ onValueChange: (value) => _optionalChain([onViewModeChange, 'optionalCall', _671 => _671(value)]),
30286
30297
  items: DEVICE_VIEW_MODE_ITEMS,
30287
30298
  disabled: loading
30288
30299
  }
@@ -30503,9 +30514,9 @@ function SoftwareRowFields({ row, removable, onChange, onRemove, renderPackageSe
30503
30514
  value: row.pkg,
30504
30515
  onChange: (pkg) => onChange({ ...row, pkg })
30505
30516
  }) }),
30506
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: _optionalChain([row, 'access', _670 => _670.pkg, 'optionalAccess', _671 => _671.description]), label: "Description" }),
30517
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: _optionalChain([row, 'access', _672 => _672.pkg, 'optionalAccess', _673 => _673.description]), label: "Description" }),
30507
30518
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-end gap-[var(--spacing-system-lf)]", children: [
30508
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: _optionalChain([row, 'access', _672 => _672.pkg, 'optionalAccess', _673 => _673.version]), label: "Current Version" }),
30519
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: _optionalChain([row, 'access', _674 => _674.pkg, 'optionalAccess', _675 => _675.version]), label: "Current Version" }),
30509
30520
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
30510
30521
  _chunkIZXVGIQXcjs.Button,
30511
30522
  {
@@ -30814,11 +30825,11 @@ var ToolBadge = ({
30814
30825
  iconClassName
30815
30826
  }) => {
30816
30827
  const loading = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, );
30817
- const text = _nullishCoalesce(label, () => ( (toolType ? _chunkYCSX7MCGcjs.getToolLabel.call(void 0, toolType) : "")));
30828
+ const text = _nullishCoalesce(label, () => ( (toolType ? _chunkWFMLODQ4cjs.getToolLabel.call(void 0, toolType) : "")));
30818
30829
  const mark = _nullishCoalesce(icon, () => ( (toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ4ZNQ55Ocjs.ToolIcon, { toolType, className: iconClassName, size: 16 }) : null)));
30819
30830
  if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ToolBadgeSkeleton, { variant, icon: !!mark, className });
30820
30831
  const linked = (node, linkClassName) => href && targetPlatform ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
30821
- _chunkEQKMFQ5Jcjs.NavLinkAnchorViaRuntime,
30832
+ _chunkRGGV3YOPcjs.NavLinkAnchorViaRuntime,
30822
30833
  {
30823
30834
  href,
30824
30835
  targetPlatform,
@@ -30954,7 +30965,7 @@ function LogsTableView({
30954
30965
  meta: {
30955
30966
  width: LOG_COLUMN_WIDTHS.status,
30956
30967
  filter: {
30957
- options: _nullishCoalesce(_optionalChain([facets, 'optionalAccess', _674 => _674.severities, 'access', _675 => _675.map, 'call', _676 => _676((severity) => ({
30968
+ options: _nullishCoalesce(_optionalChain([facets, 'optionalAccess', _676 => _676.severities, 'access', _677 => _677.map, 'call', _678 => _678((severity) => ({
30958
30969
  id: severity,
30959
30970
  label: severity.charAt(0).toUpperCase() + severity.slice(1).toLowerCase(),
30960
30971
  value: severity
@@ -30968,7 +30979,7 @@ function LogsTableView({
30968
30979
  cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
30969
30980
  ToolBadge,
30970
30981
  {
30971
- toolType: _chunkYCSX7MCGcjs.normalizeToolTypeWithFallback.call(void 0, row.original.source.toolType),
30982
+ toolType: _chunkWFMLODQ4cjs.normalizeToolTypeWithFallback.call(void 0, row.original.source.toolType),
30972
30983
  iconClassName: "h-4 w-4 content-md:h-6 content-md:w-6"
30973
30984
  }
30974
30985
  ),
@@ -30978,9 +30989,9 @@ function LogsTableView({
30978
30989
  width: LOG_COLUMN_WIDTHS.tool,
30979
30990
  hideAt: "md",
30980
30991
  filter: {
30981
- options: _nullishCoalesce(_optionalChain([facets, 'optionalAccess', _677 => _677.toolTypes, 'access', _678 => _678.map, 'call', _679 => _679((toolType) => ({
30992
+ options: _nullishCoalesce(_optionalChain([facets, 'optionalAccess', _679 => _679.toolTypes, 'access', _680 => _680.map, 'call', _681 => _681((toolType) => ({
30982
30993
  id: toolType,
30983
- label: _chunkYCSX7MCGcjs.toToolLabel.call(void 0, toolType),
30994
+ label: _chunkWFMLODQ4cjs.toToolLabel.call(void 0, toolType),
30984
30995
  value: toolType
30985
30996
  }))]), () => ( []))
30986
30997
  }
@@ -30995,7 +31006,7 @@ function LogsTableView({
30995
31006
  meta: {
30996
31007
  width: LOG_COLUMN_WIDTHS.source,
30997
31008
  hideAt: "md",
30998
- filter: organizationLocked ? void 0 : { options: [..._nullishCoalesce(_optionalChain([facets, 'optionalAccess', _680 => _680.organizations]), () => ( []))] }
31009
+ filter: organizationLocked ? void 0 : { options: [..._nullishCoalesce(_optionalChain([facets, 'optionalAccess', _682 => _682.organizations]), () => ( []))] }
30999
31010
  }
31000
31011
  },
31001
31012
  {
@@ -31007,7 +31018,7 @@ function LogsTableView({
31007
31018
  },
31008
31019
  {
31009
31020
  id: "copy",
31010
- 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', _681 => _681(row.original)]) }),
31021
+ 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', _683 => _683(row.original)]) }),
31011
31022
  enableSorting: false,
31012
31023
  meta: { width: `${LOG_COLUMN_WIDTHS.action} ml-auto`, align: "right" }
31013
31024
  },
@@ -31016,7 +31027,7 @@ function LogsTableView({
31016
31027
  cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
31017
31028
  LogRowButton,
31018
31029
  {
31019
- onClick: () => _optionalChain([onQuickView, 'optionalCall', _682 => _682(row.original)]),
31030
+ onClick: () => _optionalChain([onQuickView, 'optionalCall', _684 => _684(row.original)]),
31020
31031
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMMLT7ASAcjs.EyeIcon, { className: "h-5 w-5" }),
31021
31032
  label: "Quick view"
31022
31033
  }
@@ -31029,7 +31040,7 @@ function LogsTableView({
31029
31040
  cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
31030
31041
  LogRowButton,
31031
31042
  {
31032
- onClick: getLogHref ? _chunkYCSX7MCGcjs.openInNewTab.call(void 0, getLogHref(row.original)) : void 0,
31043
+ onClick: getLogHref ? _chunkWFMLODQ4cjs.openInNewTab.call(void 0, getLogHref(row.original)) : void 0,
31033
31044
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
31034
31045
  label: "Open in new tab"
31035
31046
  }
@@ -31038,14 +31049,14 @@ function LogsTableView({
31038
31049
  meta: { width: LOG_COLUMN_WIDTHS.action, hideAt: "md", align: "right" }
31039
31050
  }
31040
31051
  ];
31041
- if (!_optionalChain([hiddenColumns, 'optionalAccess', _683 => _683.length])) return all;
31052
+ if (!_optionalChain([hiddenColumns, 'optionalAccess', _685 => _685.length])) return all;
31042
31053
  return all.filter((column) => !hiddenColumns.includes(columnId(column)));
31043
31054
  }, [facets, getLogHref, organizationLocked, logIdHeader, renderCopyAction, onQuickView, hiddenColumns]);
31044
31055
  const filterGroups = _react.useMemo.call(void 0,
31045
- () => columns.filter((column) => _optionalChain([column, 'access', _684 => _684.meta, 'optionalAccess', _685 => _685.filter, 'optionalAccess', _686 => _686.options])).map((column) => ({
31056
+ () => columns.filter((column) => _optionalChain([column, 'access', _686 => _686.meta, 'optionalAccess', _687 => _687.filter, 'optionalAccess', _688 => _688.options])).map((column) => ({
31046
31057
  id: columnId(column),
31047
31058
  title: typeof column.header === "string" ? column.header : "",
31048
- options: _optionalChain([column, 'access', _687 => _687.meta, 'optionalAccess', _688 => _688.filter, 'optionalAccess', _689 => _689.options]) || []
31059
+ options: _optionalChain([column, 'access', _689 => _689.meta, 'optionalAccess', _690 => _690.filter, 'optionalAccess', _691 => _691.options]) || []
31049
31060
  })),
31050
31061
  [columns]
31051
31062
  );
@@ -31078,14 +31089,14 @@ function LogsTableView({
31078
31089
  onColumnFiltersChange: handleColumnFiltersChange
31079
31090
  });
31080
31091
  const hasActiveFilters = Object.values(filters).some((values) => values.length > 0);
31081
- const hasQuery = Boolean(search) || hasActiveFilters || Boolean(_optionalChain([dateFilter, 'optionalAccess', _690 => _690.range]));
31092
+ const hasQuery = Boolean(search) || hasActiveFilters || Boolean(_optionalChain([dateFilter, 'optionalAccess', _692 => _692.range]));
31082
31093
  const noRows = !loading && logs.length === 0;
31083
31094
  const showEmptyState = !organizationLocked && !hasQuery && noRows;
31084
31095
  const scoped = deviceScoped || organizationLocked;
31085
31096
  const scopedEmpty = scoped && noRows;
31086
31097
  const hideSearch = showEmptyState || scopedEmpty && !hasQuery;
31087
31098
  _react.useEffect.call(void 0, () => {
31088
- _optionalChain([onHideSearchChange, 'optionalCall', _691 => _691(hideSearch)]);
31099
+ _optionalChain([onHideSearchChange, 'optionalCall', _693 => _693(hideSearch)]);
31089
31100
  }, [hideSearch, onHideSearchChange]);
31090
31101
  if (showEmptyState) {
31091
31102
  const emptyProps = deviceScoped ? { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIK3ZQW3Dcjs.ClipboardListIcon, {}), title: EMPTY_TITLE, description: EMPTY_DESCRIPTION } : {
@@ -31206,7 +31217,7 @@ function ExecutionTimestampCell({ timestamp, executionId }) {
31206
31217
  }
31207
31218
  function ExecutionStatusCell({ status }) {
31208
31219
  const presentation = scriptExecutionStatus(status);
31209
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKKD7XV5Acjs.Tag, { label: _nullishCoalesce(_optionalChain([presentation, 'optionalAccess', _692 => _692.label]), () => ( String(_nullishCoalesce(status, () => ( ""))))), variant: _nullishCoalesce(_optionalChain([presentation, 'optionalAccess', _693 => _693.variant]), () => ( "grey")) }) });
31220
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKKD7XV5Acjs.Tag, { label: _nullishCoalesce(_optionalChain([presentation, 'optionalAccess', _694 => _694.label]), () => ( String(_nullishCoalesce(status, () => ( ""))))), variant: _nullishCoalesce(_optionalChain([presentation, 'optionalAccess', _695 => _695.variant]), () => ( "grey")) }) });
31210
31221
  }
31211
31222
  function ExecutionDeviceCell({ name, organization }) {
31212
31223
  const loading = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, );
@@ -31351,7 +31362,7 @@ function OpenInNewTabCell({ href }) {
31351
31362
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
31352
31363
  _chunkIZXVGIQXcjs.Button,
31353
31364
  {
31354
- onClick: loading ? void 0 : _chunkYCSX7MCGcjs.openInNewTab.call(void 0, href),
31365
+ onClick: loading ? void 0 : _chunkWFMLODQ4cjs.openInNewTab.call(void 0, href),
31355
31366
  disabled: loading,
31356
31367
  variant: "outline",
31357
31368
  size: "icon",
@@ -31413,7 +31424,7 @@ function ScriptExecutionsTable({
31413
31424
  [EXECUTION_COLUMNS.result.id]: (row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExecutionResultCell, { result: row.result }),
31414
31425
  [EXECUTION_COLUMNS.open.id]: (row) => row.href !== void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OpenInNewTabCell, { href: row.href }) : null
31415
31426
  };
31416
- return layout.filter((column) => renderers[column.id] && !_optionalChain([hideColumns, 'optionalAccess', _694 => _694.includes, 'call', _695 => _695(column.id)])).map((column) => ({
31427
+ return layout.filter((column) => renderers[column.id] && !_optionalChain([hideColumns, 'optionalAccess', _696 => _696.includes, 'call', _697 => _697(column.id)])).map((column) => ({
31417
31428
  id: column.id,
31418
31429
  header: _nullishCoalesce(column.header, () => ( "")),
31419
31430
  cell: ({ row }) => renderers[column.id](row.original),
@@ -31540,15 +31551,15 @@ function ScriptSchedulesTable({
31540
31551
 
31541
31552
  // src/components/features/scripts/shell-types.ts
31542
31553
  var SCRIPT_SHELL_TYPES = [
31543
- { id: _chunkYCSX7MCGcjs.ShellTypeValues.POWERSHELL, label: "PowerShell", value: "powershell", icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon },
31544
- { id: _chunkYCSX7MCGcjs.ShellTypeValues.CMD, label: "CMD", value: "cmd", icon: _chunkNIVJEJSGcjs.TerminalSquareIcon },
31545
- { id: _chunkYCSX7MCGcjs.ShellTypeValues.BASH, label: "Bash", value: "bash", icon: _chunkTRUW6DDAcjs.TerminalIcon }
31554
+ { id: _chunkWFMLODQ4cjs.ShellTypeValues.POWERSHELL, label: "PowerShell", value: "powershell", icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon },
31555
+ { id: _chunkWFMLODQ4cjs.ShellTypeValues.CMD, label: "CMD", value: "cmd", icon: _chunkNIVJEJSGcjs.TerminalSquareIcon },
31556
+ { id: _chunkWFMLODQ4cjs.ShellTypeValues.BASH, label: "Bash", value: "bash", icon: _chunkTRUW6DDAcjs.TerminalIcon }
31546
31557
  ];
31547
31558
  function scriptShellType(value) {
31548
31559
  return SCRIPT_SHELL_TYPES.find((shell) => shell.value === value);
31549
31560
  }
31550
31561
  function scriptShellLabel(value) {
31551
- return _nullishCoalesce(_optionalChain([scriptShellType, 'call', _696 => _696(value), 'optionalAccess', _697 => _697.label]), () => ( value));
31562
+ return _nullishCoalesce(_optionalChain([scriptShellType, 'call', _698 => _698(value), 'optionalAccess', _699 => _699.label]), () => ( value));
31552
31563
  }
31553
31564
 
31554
31565
  // src/components/features/scripts/script-shell-badge.tsx
@@ -31561,10 +31572,10 @@ function ScriptShellBadge({ value, className, iconClassName }) {
31561
31572
  ] });
31562
31573
  }
31563
31574
  const shell = scriptShellType(value);
31564
- const Icon = _optionalChain([shell, 'optionalAccess', _698 => _698.icon]);
31575
+ const Icon = _optionalChain([shell, 'optionalAccess', _700 => _700.icon]);
31565
31576
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkNWNC22IZcjs.cn.call(void 0, "flex items-center gap-2", className), children: [
31566
31577
  Icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: _chunkNWNC22IZcjs.cn.call(void 0, "h-5 w-5 text-ods-text-secondary", iconClassName) }),
31567
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([shell, 'optionalAccess', _699 => _699.label]), () => ( value)) })
31578
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([shell, 'optionalAccess', _701 => _701.label]), () => ( value)) })
31568
31579
  ] });
31569
31580
  }
31570
31581
 
@@ -31916,7 +31927,7 @@ function ScheduleIntervalInput(props) {
31916
31927
  onBlur: () => {
31917
31928
  focused.current = false;
31918
31929
  setText(value === null ? "" : String(value));
31919
- _optionalChain([onBlur, 'optionalCall', _700 => _700()]);
31930
+ _optionalChain([onBlur, 'optionalCall', _702 => _702()]);
31920
31931
  },
31921
31932
  onChange: (e) => {
31922
31933
  const raw = e.target.value;
@@ -31979,7 +31990,7 @@ function ScheduleOfflineFields({ showErrors, disabled = false }) {
31979
31990
  const { field: intervalField, fieldState: intervalState } = _reacthookform.useController.call(void 0, { control, name: "reconnectInterval" });
31980
31991
  const { field: unitField } = _reacthookform.useController.call(void 0, { control, name: "reconnectUnit" });
31981
31992
  const windowDisabled = disabled || !isRetryOnReconnect(behaviorField.value);
31982
- const intervalError = showErrors ? _optionalChain([intervalState, 'access', _701 => _701.error, 'optionalAccess', _702 => _702.message]) : void 0;
31993
+ const intervalError = showErrors ? _optionalChain([intervalState, 'access', _703 => _703.error, 'optionalAccess', _704 => _704.message]) : void 0;
31983
31994
  const handleUnitChange = (next) => {
31984
31995
  unitField.onChange(next);
31985
31996
  const snapped = snapReconnectInterval(intervalField.value, next);
@@ -32124,13 +32135,13 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
32124
32135
  const [flipTick, setFlipTick] = _react.useState.call(void 0, 0);
32125
32136
  const flipTimer = _react.useRef.call(void 0, null);
32126
32137
  const readItems = _react.useCallback.call(void 0,
32127
- () => [..._nullishCoalesce(_optionalChain([listRef, 'access', _703 => _703.current, 'optionalAccess', _704 => _704.querySelectorAll, 'call', _705 => _705(`[${SORTABLE_ITEM_ATTRIBUTE}]`)]), () => ( []))],
32138
+ () => [..._nullishCoalesce(_optionalChain([listRef, 'access', _705 => _705.current, 'optionalAccess', _706 => _706.querySelectorAll, 'call', _707 => _707(`[${SORTABLE_ITEM_ATTRIBUTE}]`)]), () => ( []))],
32128
32139
  []
32129
32140
  );
32130
32141
  const reorder = _react.useCallback.call(void 0,
32131
32142
  (from, to) => {
32132
32143
  if (from === to) return;
32133
- const label = _nullishCoalesce(_optionalChain([getItemLabelRef, 'access', _706 => _706.current, 'optionalCall', _707 => _707(from)]), () => ( "Item"));
32144
+ const label = _nullishCoalesce(_optionalChain([getItemLabelRef, 'access', _708 => _708.current, 'optionalCall', _709 => _709(from)]), () => ( "Item"));
32134
32145
  setAnnouncement(`${label} moved to position ${to + 1} of ${readItems().length}.`);
32135
32146
  onReorderRef.current(from, to);
32136
32147
  },
@@ -32218,7 +32229,7 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
32218
32229
  moving.push(item);
32219
32230
  }
32220
32231
  if (moving.length === 0) return;
32221
- void _optionalChain([listRef, 'access', _708 => _708.current, 'optionalAccess', _709 => _709.offsetHeight]);
32232
+ void _optionalChain([listRef, 'access', _710 => _710.current, 'optionalAccess', _711 => _711.offsetHeight]);
32222
32233
  for (const item of moving) {
32223
32234
  item.style.transition = `transform ${DROP_MS}ms ${EASING}`;
32224
32235
  item.style.transform = "";
@@ -32385,8 +32396,8 @@ function SortableMoveButtons({ index, count, label, className }) {
32385
32396
  if (to < 0 || to >= count) return;
32386
32397
  reorder(index, to);
32387
32398
  requestAnimationFrame(() => {
32388
- if (step === -1 && to === 0) _optionalChain([downRef, 'access', _710 => _710.current, 'optionalAccess', _711 => _711.focus, 'call', _712 => _712()]);
32389
- if (step === 1 && to === count - 1) _optionalChain([upRef, 'access', _713 => _713.current, 'optionalAccess', _714 => _714.focus, 'call', _715 => _715()]);
32399
+ if (step === -1 && to === 0) _optionalChain([downRef, 'access', _712 => _712.current, 'optionalAccess', _713 => _713.focus, 'call', _714 => _714()]);
32400
+ if (step === 1 && to === count - 1) _optionalChain([upRef, 'access', _715 => _715.current, 'optionalAccess', _716 => _716.focus, 'call', _717 => _717()]);
32390
32401
  });
32391
32402
  };
32392
32403
  const subject = _nullishCoalesce(label, () => ( "item"));
@@ -32434,7 +32445,7 @@ function useSortableItem() {
32434
32445
  const [handle, setHandle] = _react.useState.call(void 0, null);
32435
32446
  const [isDragging, setIsDragging] = _react.useState.call(void 0, false);
32436
32447
  const itemRef = _react.useCallback.call(void 0, (node) => {
32437
- _optionalChain([node, 'optionalAccess', _716 => _716.setAttribute, 'call', _717 => _717(SORTABLE_ITEM_ATTRIBUTE, "")]);
32448
+ _optionalChain([node, 'optionalAccess', _718 => _718.setAttribute, 'call', _719 => _719(SORTABLE_ITEM_ATTRIBUTE, "")]);
32438
32449
  setItem(node);
32439
32450
  }, []);
32440
32451
  _react.useEffect.call(void 0, () => {
@@ -32464,7 +32475,7 @@ function useSortableItem() {
32464
32475
  if (from < 0 || to < 0 || to >= items.length) return;
32465
32476
  event.preventDefault();
32466
32477
  reorder(from, to);
32467
- requestAnimationFrame(() => _optionalChain([handle, 'optionalAccess', _718 => _718.focus, 'call', _719 => _719()]));
32478
+ requestAnimationFrame(() => _optionalChain([handle, 'optionalAccess', _720 => _720.focus, 'call', _721 => _721()]));
32468
32479
  },
32469
32480
  [inert, readItems, reorder, handle]
32470
32481
  );
@@ -32487,7 +32498,7 @@ function ScheduleScriptPickerCard({
32487
32498
  }) {
32488
32499
  const { control, setValue, watch } = _reacthookform.useFormContext.call(void 0, );
32489
32500
  const selected = watch(`scripts.${index}`);
32490
- const runParamsLocked = disabled || !_optionalChain([selected, 'optionalAccess', _720 => _720.scriptId]);
32501
+ const runParamsLocked = disabled || !_optionalChain([selected, 'optionalAccess', _722 => _722.scriptId]);
32491
32502
  const { itemRef, dragHandleProps, isDragging, dragAndDropEnabled } = useSortableItem();
32492
32503
  const isMdUp = _chunkAQXKXZWBcjs.useContentMdUp.call(void 0, );
32493
32504
  const handleScriptPick = (row) => {
@@ -32521,7 +32532,7 @@ function ScheduleScriptPickerCard({
32521
32532
  type: "button",
32522
32533
  ...dragHandleProps,
32523
32534
  disabled,
32524
- "aria-label": `Reorder ${_optionalChain([selected, 'optionalAccess', _721 => _721.name]) || `script ${index + 1}`}`,
32535
+ "aria-label": `Reorder ${_optionalChain([selected, 'optionalAccess', _723 => _723.name]) || `script ${index + 1}`}`,
32525
32536
  className: `shrink-0 ${isDragging ? "cursor-grabbing" : "cursor-grab"}`,
32526
32537
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJAWIFYB2cjs.DraggerIcon, { size: 24 })
32527
32538
  }
@@ -32532,18 +32543,18 @@ function ScheduleScriptPickerCard({
32532
32543
  name: `scripts.${index}.scriptId`,
32533
32544
  control,
32534
32545
  render: ({ fieldState }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: renderScriptSearch({
32535
- scriptId: _nullishCoalesce(_optionalChain([selected, 'optionalAccess', _722 => _722.scriptId]), () => ( "")),
32536
- name: _nullishCoalesce(_optionalChain([selected, 'optionalAccess', _723 => _723.name]), () => ( "")),
32546
+ scriptId: _nullishCoalesce(_optionalChain([selected, 'optionalAccess', _724 => _724.scriptId]), () => ( "")),
32547
+ name: _nullishCoalesce(_optionalChain([selected, 'optionalAccess', _725 => _725.name]), () => ( "")),
32537
32548
  supportedPlatforms,
32538
32549
  onPick: handleScriptPick,
32539
32550
  disabled,
32540
- error: showErrors ? _optionalChain([fieldState, 'access', _724 => _724.error, 'optionalAccess', _725 => _725.message]) : void 0,
32551
+ error: showErrors ? _optionalChain([fieldState, 'access', _726 => _726.error, 'optionalAccess', _727 => _727.message]) : void 0,
32541
32552
  invalid: showErrors && !!fieldState.error
32542
32553
  }) })
32543
32554
  }
32544
32555
  ),
32545
32556
  !dragAndDropEnabled && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
32546
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortableMoveButtons, { index, count, label: _optionalChain([selected, 'optionalAccess', _726 => _726.name]) || `script ${index + 1}` }),
32557
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortableMoveButtons, { index, count, label: _optionalChain([selected, 'optionalAccess', _728 => _728.name]) || `script ${index + 1}` }),
32547
32558
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
32548
32559
  _chunkIZXVGIQXcjs.Button,
32549
32560
  {
@@ -32584,7 +32595,7 @@ function ScheduleScriptPickerCard({
32584
32595
  onChange: (e) => field.onChange(e.target.value ? Number(e.target.value) : UNSET_TIMEOUT),
32585
32596
  disabled: runParamsLocked,
32586
32597
  endAdornment: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h6", children: "Seconds" }),
32587
- error: showErrors ? _optionalChain([fieldState, 'access', _727 => _727.error, 'optionalAccess', _728 => _728.message]) : void 0,
32598
+ error: showErrors ? _optionalChain([fieldState, 'access', _729 => _729.error, 'optionalAccess', _730 => _730.message]) : void 0,
32588
32599
  invalid: showErrors && !!fieldState.error
32589
32600
  }
32590
32601
  )
@@ -32838,7 +32849,7 @@ function ScheduleTimingFields({
32838
32849
  fromDate: minDate,
32839
32850
  disabled: fieldsDisabled,
32840
32851
  className: "w-full",
32841
- error: _nullishCoalesce(dateError, () => ( (showErrors ? _optionalChain([fieldState, 'access', _729 => _729.error, 'optionalAccess', _730 => _730.message]) : void 0))),
32852
+ error: _nullishCoalesce(dateError, () => ( (showErrors ? _optionalChain([fieldState, 'access', _731 => _731.error, 'optionalAccess', _732 => _732.message]) : void 0))),
32842
32853
  invalid: !!dateError || showErrors && !!fieldState.error
32843
32854
  }
32844
32855
  ),
@@ -32875,7 +32886,7 @@ function ScheduleTimingFields({
32875
32886
  _chunk2JDK4FWVcjs.SelectTrigger,
32876
32887
  {
32877
32888
  className: "w-full",
32878
- error: _nullishCoalesce(pastTimeError, () => ( (showErrors ? _optionalChain([fieldState, 'access', _731 => _731.error, 'optionalAccess', _732 => _732.message]) : void 0))),
32889
+ error: _nullishCoalesce(pastTimeError, () => ( (showErrors ? _optionalChain([fieldState, 'access', _733 => _733.error, 'optionalAccess', _734 => _734.message]) : void 0))),
32879
32890
  invalid: !!pastTimeError || showErrors && !!fieldState.error,
32880
32891
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2JDK4FWVcjs.SelectValue, { placeholder: "Select time" })
32881
32892
  }
@@ -32955,7 +32966,7 @@ function ScheduleTimingFields({
32955
32966
  recheckReconnectWindow();
32956
32967
  },
32957
32968
  disabled: fieldsDisabled || !repeatEnabled,
32958
- error: showErrors ? _optionalChain([fieldState, 'access', _733 => _733.error, 'optionalAccess', _734 => _734.message]) : void 0,
32969
+ error: showErrors ? _optionalChain([fieldState, 'access', _735 => _735.error, 'optionalAccess', _736 => _736.message]) : void 0,
32959
32970
  invalid: showErrors && !!fieldState.error
32960
32971
  }
32961
32972
  )
@@ -32999,7 +33010,7 @@ function ScheduleFormFields({
32999
33010
  disabled = false,
33000
33011
  renderScriptSearch,
33001
33012
  timeReferenceGate = "off",
33002
- platforms = _chunkYCSX7MCGcjs.OS_PLATFORMS,
33013
+ platforms = _chunkWFMLODQ4cjs.OS_PLATFORMS,
33003
33014
  comingSoonPlatforms = [],
33004
33015
  getTimeSlots,
33005
33016
  nameLayout = "stacked",
@@ -33040,7 +33051,7 @@ function ScheduleFormFields({
33040
33051
  onChange: field.onChange,
33041
33052
  disabled,
33042
33053
  className: "w-full",
33043
- error: showErrors ? _optionalChain([fieldState, 'access', _735 => _735.error, 'optionalAccess', _736 => _736.message]) : void 0,
33054
+ error: showErrors ? _optionalChain([fieldState, 'access', _737 => _737.error, 'optionalAccess', _738 => _738.message]) : void 0,
33044
33055
  invalid: showErrors && !!fieldState.error
33045
33056
  }
33046
33057
  )
@@ -33145,7 +33156,7 @@ function ScheduleFormFields({
33145
33156
  // src/components/features/scripts/schedule-form/schedule-script-search-field.tsx
33146
33157
 
33147
33158
  function ScriptPlatformIcons({ platforms }) {
33148
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex shrink-0 items-center gap-0.5", children: _chunkYCSX7MCGcjs.OS_PLATFORMS.filter((p) => platforms.includes(p.id)).map((p) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, p.icon, { className: "h-3.5 w-3.5 text-ods-text-secondary opacity-60" }, p.id)) });
33159
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex shrink-0 items-center gap-0.5", children: _chunkWFMLODQ4cjs.OS_PLATFORMS.filter((p) => platforms.includes(p.id)).map((p) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, p.icon, { className: "h-3.5 w-3.5 text-ods-text-secondary opacity-60" }, p.id)) });
33149
33160
  }
33150
33161
  function ScheduleScriptSearchField({
33151
33162
  scriptId,
@@ -33162,7 +33173,7 @@ function ScheduleScriptSearchField({
33162
33173
  invalid = false
33163
33174
  }) {
33164
33175
  const handleBlur = (e) => {
33165
- if (!e.currentTarget.contains(e.relatedTarget)) _optionalChain([onClose, 'optionalCall', _737 => _737()]);
33176
+ if (!e.currentTarget.contains(e.relatedTarget)) _optionalChain([onClose, 'optionalCall', _739 => _739()]);
33166
33177
  };
33167
33178
  const options = scripts.map((s) => ({ label: s.name, value: s.id }));
33168
33179
  if (scriptId && !options.some((o) => o.value === scriptId)) {
@@ -33187,7 +33198,7 @@ function ScheduleScriptSearchField({
33187
33198
  invalid,
33188
33199
  renderOption: (option, isSelected) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex w-full min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
33189
33200
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2JDK4FWVcjs.TruncateText, { className: isSelected ? "text-ods-accent" : void 0, children: option.label }) }),
33190
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScriptPlatformIcons, { platforms: _nullishCoalesce(_optionalChain([scripts, 'access', _738 => _738.find, 'call', _739 => _739((s) => s.id === option.value), 'optionalAccess', _740 => _740.supportedPlatforms]), () => ( [])) })
33201
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScriptPlatformIcons, { platforms: _nullishCoalesce(_optionalChain([scripts, 'access', _740 => _740.find, 'call', _741 => _741((s) => s.id === option.value), 'optionalAccess', _742 => _742.supportedPlatforms]), () => ( [])) })
33191
33202
  ] })
33192
33203
  }
33193
33204
  )
@@ -33218,7 +33229,7 @@ function KnowledgeBaseOpenButton({ href }) {
33218
33229
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
33219
33230
  _chunkIZXVGIQXcjs.Button,
33220
33231
  {
33221
- onClick: loading ? void 0 : _chunkYCSX7MCGcjs.openInNewTab.call(void 0, href),
33232
+ onClick: loading ? void 0 : _chunkWFMLODQ4cjs.openInNewTab.call(void 0, href),
33222
33233
  disabled: loading,
33223
33234
  variant: "outline",
33224
33235
  size: "icon",
@@ -33468,7 +33479,7 @@ function TicketStatusConfigList({
33468
33479
  ) }) }) }) })
33469
33480
  );
33470
33481
  }
33471
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortableList, { onReorder, getItemLabel, className: _chunkNWNC22IZcjs.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', _741 => _741(index)]), children: (args) => renderRow(item, args) }, item.id)) });
33482
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortableList, { onReorder, getItemLabel, className: _chunkNWNC22IZcjs.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', _743 => _743(index)]), children: (args) => renderRow(item, args) }, item.id)) });
33472
33483
  }
33473
33484
  function SortableRow({
33474
33485
  index,
@@ -33564,13 +33575,13 @@ function ConversationCard({
33564
33575
  className: _chunkNWNC22IZcjs.cn.call(void 0,
33565
33576
  CARD_FRAME_CLASS,
33566
33577
  selection && "cursor-pointer transition-colors hover:border-ods-border-hover",
33567
- _optionalChain([selection, 'optionalAccess', _742 => _742.pressed]) && "border-ods-accent ring-1 ring-ods-accent",
33578
+ _optionalChain([selection, 'optionalAccess', _744 => _744.pressed]) && "border-ods-accent ring-1 ring-ods-accent",
33568
33579
  className
33569
33580
  ),
33570
33581
  style: tint,
33571
33582
  onClick: selection && ((event) => {
33572
- if (event.button !== 0 || _optionalChain([window, 'access', _743 => _743.getSelection, 'call', _744 => _744(), 'optionalAccess', _745 => _745.toString, 'call', _746 => _746()])) return;
33573
- if (!_chunkYCSX7MCGcjs.isOwnClick.call(void 0, event.target, event.currentTarget, { controls: true })) return;
33583
+ if (event.button !== 0 || _optionalChain([window, 'access', _745 => _745.getSelection, 'call', _746 => _746(), 'optionalAccess', _747 => _747.toString, 'call', _748 => _748()])) return;
33584
+ if (!_chunkWFMLODQ4cjs.isOwnClick.call(void 0, event.target, event.currentTarget, { controls: true })) return;
33574
33585
  selection.onToggle();
33575
33586
  }),
33576
33587
  children: [
@@ -33593,7 +33604,7 @@ function ConversationCard({
33593
33604
  children: selection.pressed ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX4UZ62MYcjs.PlusIcon, {})
33594
33605
  }
33595
33606
  ),
33596
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYCSX7MCGcjs.ChatTurn, { avatar: requester.avatar, name: requester.name, meta: requester.meta, time: requester.time, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
33607
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWFMLODQ4cjs.ChatTurn, { avatar: requester.avatar, name: requester.name, meta: requester.meta, time: requester.time, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
33597
33608
  "p",
33598
33609
  {
33599
33610
  id: requestId,
@@ -33609,10 +33620,10 @@ function ConversationCard({
33609
33620
  ) }),
33610
33621
  context && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CONTEXT_BLOCK_CLASS, children: [
33611
33622
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: CONTEXT_LABEL_CLASS, children: context.label }),
33612
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: CONTEXT_TEXT_CLASS, style: partLinesStyle(_optionalChain([lines, 'optionalAccess', _747 => _747.context])), children: context.text })
33623
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: CONTEXT_TEXT_CLASS, style: partLinesStyle(_optionalChain([lines, 'optionalAccess', _749 => _749.context])), children: context.text })
33613
33624
  ] }),
33614
33625
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
33615
- _chunkYCSX7MCGcjs.ChatTurn,
33626
+ _chunkWFMLODQ4cjs.ChatTurn,
33616
33627
  {
33617
33628
  avatar: responder.avatar,
33618
33629
  name: responder.name,
@@ -33620,7 +33631,7 @@ function ConversationCard({
33620
33631
  time: responder.time,
33621
33632
  className: ANSWER_BLOCK_CLASS,
33622
33633
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: OUTCOME_ROW_CLASS, children: [
33623
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: OUTCOME_TEXT_CLASS, style: partLinesStyle(_optionalChain([lines, 'optionalAccess', _748 => _748.outcome])), children: outcome }),
33634
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: OUTCOME_TEXT_CLASS, style: partLinesStyle(_optionalChain([lines, 'optionalAccess', _750 => _750.outcome])), children: outcome }),
33624
33635
  outcomeAside,
33625
33636
  /* @__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 }) })
33626
33637
  ] })
@@ -33649,8 +33660,8 @@ function ConversationCardSkeleton({
33649
33660
  announce = true,
33650
33661
  className
33651
33662
  }) {
33652
- const contextLines = partLines(_optionalChain([lines, 'optionalAccess', _749 => _749.context]));
33653
- const outcomeLines = partLines(_optionalChain([lines, 'optionalAccess', _750 => _750.outcome]));
33663
+ const contextLines = partLines(_optionalChain([lines, 'optionalAccess', _751 => _751.context]));
33664
+ const outcomeLines = partLines(_optionalChain([lines, 'optionalAccess', _752 => _752.outcome]));
33654
33665
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDNB5DELQcjs.LoadingRegion, { label, announce, className: _chunkNWNC22IZcjs.cn.call(void 0, CARD_FRAME_CLASS, className), children: [
33655
33666
  selection && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNWNC22IZcjs.InertWhileLoading, { className: "contents", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
33656
33667
  _chunkIZXVGIQXcjs.Button,
@@ -33664,7 +33675,7 @@ function ConversationCardSkeleton({
33664
33675
  }
33665
33676
  ) }),
33666
33677
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
33667
- _chunkYCSX7MCGcjs.ChatTurn,
33678
+ _chunkWFMLODQ4cjs.ChatTurn,
33668
33679
  {
33669
33680
  loading: true,
33670
33681
  name: "",
@@ -33685,7 +33696,7 @@ function ConversationCardSkeleton({
33685
33696
  ] })
33686
33697
  ] }),
33687
33698
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
33688
- _chunkYCSX7MCGcjs.ChatTurn,
33699
+ _chunkWFMLODQ4cjs.ChatTurn,
33689
33700
  {
33690
33701
  loading: true,
33691
33702
  name: "",
@@ -33775,16 +33786,16 @@ function Example({
33775
33786
  ),
33776
33787
  children: [
33777
33788
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 gap-2.5", children: [
33778
- mark(_nullishCoalesce(_optionalChain([requester, 'optionalAccess', _751 => _751.mark]), () => ( requesterMark))),
33789
+ mark(_nullishCoalesce(_optionalChain([requester, 'optionalAccess', _753 => _753.mark]), () => ( requesterMark))),
33779
33790
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
33780
- who(_nullishCoalesce(_optionalChain([requester, 'optionalAccess', _752 => _752.name]), () => ( labels.requester)), _nullishCoalesce(_optionalChain([requester, 'optionalAccess', _753 => _753.note]), () => ( labels.requesterNote))),
33791
+ who(_nullishCoalesce(_optionalChain([requester, 'optionalAccess', _754 => _754.name]), () => ( labels.requester)), _nullishCoalesce(_optionalChain([requester, 'optionalAccess', _755 => _755.note]), () => ( labels.requesterNote))),
33781
33792
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2JDK4FWVcjs.TruncateText, { lines: 2, variant: "h4", className: "min-h-[2lh]", children: `\u201C${example.request}\u201D` })
33782
33793
  ] })
33783
33794
  ] }),
33784
33795
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 gap-2.5 border-t border-ods-border pt-3", children: [
33785
- mark(_nullishCoalesce(_optionalChain([responder, 'optionalAccess', _754 => _754.mark]), () => ( responderMark))),
33796
+ mark(_nullishCoalesce(_optionalChain([responder, 'optionalAccess', _756 => _756.mark]), () => ( responderMark))),
33786
33797
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
33787
- who(_nullishCoalesce(_optionalChain([responder, 'optionalAccess', _755 => _755.name]), () => ( labels.responder)), _nullishCoalesce(_optionalChain([responder, 'optionalAccess', _756 => _756.note]), () => ( labels.responderNote))),
33798
+ who(_nullishCoalesce(_optionalChain([responder, 'optionalAccess', _757 => _757.name]), () => ( labels.responder)), _nullishCoalesce(_optionalChain([responder, 'optionalAccess', _758 => _758.note]), () => ( labels.responderNote))),
33788
33799
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-start gap-2", children: [
33789
33800
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { size: 16, className: "mt-0.5 shrink-0 text-ods-flamingo-cyan" }),
33790
33801
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2JDK4FWVcjs.TruncateText, { lines: 2, variant: "h6", tone: "secondary", className: "min-h-[2lh]", triggerClassName: "flex-1", children: example.outcome })
@@ -33961,7 +33972,7 @@ function CapabilityExplorer({
33961
33972
  if (next === null) return;
33962
33973
  event.preventDefault();
33963
33974
  onActiveChange(items[next].id);
33964
- _optionalChain([listRef, 'access', _757 => _757.current, 'optionalAccess', _758 => _758.querySelectorAll, 'call', _759 => _759('[role="tab"]'), 'access', _760 => _760[next], 'optionalAccess', _761 => _761.focus, 'call', _762 => _762()]);
33975
+ _optionalChain([listRef, 'access', _759 => _759.current, 'optionalAccess', _760 => _760.querySelectorAll, 'call', _761 => _761('[role="tab"]'), 'access', _762 => _762[next], 'optionalAccess', _763 => _763.focus, 'call', _764 => _764()]);
33965
33976
  };
33966
33977
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
33967
33978
  "div",